@import url("assets/brand/tokens.css");
:root {
  color: var(--text-1);
  background: var(--surface-0);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button,
.button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-1);
  padding: 10px 15px;
  cursor: pointer;
  line-height: 1.4;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
}
button:hover,
.button:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
}
button.primary,
.button.primary {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
button.primary:hover,
.button.primary:hover {
  background: var(--accent-text);
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.danger {
  color: var(--critical);
  border-color: var(--critical-soft);
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration: underline;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
input,
textarea,
select {
  border: 1px solid var(--border-strong);
  background: var(--surface-1);
  border-radius: 8px;
  padding: 11px 12px;
  min-height: 43px;
  width: 100%;
  max-width: 100%;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  accent-color: var(--accent);
  flex-shrink: 0;
}
input[type="file"] {
  padding: 10px;
}
textarea {
  resize: vertical;
  min-height: 90px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(27px, 3vw, 36px);
  font-weight: 650;
  letter-spacing: -1.2px;
  line-height: 1.06;
  margin-bottom: 10px;
}
h2 {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.25px;
  line-height: 1.4;
  margin-bottom: 14px;
}
h3 {
  font-size: 15px;
  margin-bottom: 8px;
}
p {
  color: var(--muted);
  line-height: 1.4;
  letter-spacing: -0.01em;
  font-size: 14px;
}
small,
.sub {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
strong {
  font-weight: 650;
}
.sidebar {
  width: 236px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--surface-1);
  color: var(--text-1);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 30px 18px 18px;
  z-index: 30;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-1);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.brand:hover {
  text-decoration: none;
}
.brand-symbol {
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: block;
  flex-shrink: 0;
}
.brand-wordmark {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.brand-descriptor {
  font-weight: 500;
  color: var(--accent);
}
.brand-wrap {
  padding: 0 16px 29px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.sidebar nav {
  overflow-y: auto;
  scrollbar-width: thin;
  flex: 1;
}
.nav-group {
  font-size: 9px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 24px 15px 9px;
}
.nav-link {
  color: var(--text-2);
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin: 3px 0;
}
.nav-link:hover {
  background: var(--surface-2);
  color: white;
  text-decoration: none;
}
.nav-link.active {
  background: var(--accent-soft);
  color: var(--accent-text);
}
.nav-link.active:before {
  content: "";
  width: 3px;
  height: 18px;
  background: var(--hero-accent);
  position: absolute;
  left: 18px;
}
.sidebar-footer {
  font-size: 10px;
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding: 17px 13px 0;
  color: var(--text-2);
}
.sidebar-footer strong {
  display: block;
  color: var(--text-2);
  letter-spacing: 1px;
  font-size: 9px;
}
.workspace {
  margin-left: 236px;
}
.topbar {
  height: 79px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  background: var(--surface-0);
  gap: 18px;
}
.topbar .context {
  font-size: 12px;
  color: var(--muted);
}
.topbar-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}
.role-select {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  white-space: nowrap;
}
.role-select select {
  font-size: 12px;
  min-height: 36px;
  padding: 7px 27px 7px 10px;
  width: auto;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-2);
}
.demo-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--text-2);
  letter-spacing: 0.5px;
}
.demo-label:before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--positive);
  border-radius: 50%;
}
main {
  padding: 30px 38px 60px;
  max-width: 1600px;
  margin: auto;
  min-width: 0;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin: 7px 0 28px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--text-2);
  margin-bottom: 12px;
}
.page-heading p {
  margin: 0;
  max-width: 750px;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.page-heading > .actions {
  padding-top: 18px;
}
.hero {
  padding: 27px 30px;
  background: var(--dark);
  color: white;
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  position: relative;
  overflow: hidden;
}
.hero:after {
  content: "";
  position: absolute;
  right: -50px;
  top: -140px;
  width: 360px;
  height: 360px;
  border: 1px solid var(--hero-border);
  border-radius: 50%;
  pointer-events: none;
}
.hero .eyebrow {
  color: var(--hero-accent);
}
.hero h2 {
  font-size: 26px;
  letter-spacing: -0.7px;
  line-height: 1.3;
}
.hero p {
  color: var(--hero-muted);
  font-size: 13px;
}
.hero .button,
.hero button {
  background: var(--hero-accent);
  border-color: var(--hero-accent);
  color: #141416;
}
.hero .hero-status {
  z-index: 1;
  border-left: 1px solid var(--hero-border);
  padding-left: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero .hero-status strong {
  font-size: 19px;
  line-height: 1.5;
}
.hero .hero-status small {
  color: var(--hero-muted);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-1);
  margin: 23px 0 28px;
}
.metric {
  padding: 21px 24px;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.metric:last-child {
  border-right: 0;
}
.metric > span {
  font-size: 11px;
  color: var(--muted);
}
.metric strong {
  display: block;
  font-size: 28px;
  letter-spacing: -0.9px;
  margin: 10px 0 3px;
  font-variant-numeric: tabular-nums;
}
.metric small {
  font-size: 10px;
}
.panel {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 23px;
  margin-bottom: 23px;
  min-width: 0;
}
.panel.flush {
  padding: 0;
  overflow: hidden;
}
.panel.flush > .section-heading {
  padding: 21px 23px 0;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.section-heading h2 {
  margin: 0;
}
.section-heading a {
  font-size: 12px;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr);
  gap: 23px;
}
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 23px;
}
.three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.badge {
  display: inline-block;
  vertical-align: middle;
  font-size: 10px;
  font-weight: 600;
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--surface-2);
  color: var(--text-2);
  white-space: nowrap;
  line-height: 1.4;
}
.badge.amber {
  background: var(--attention-soft);
  color: var(--attention);
}
.badge.red {
  background: var(--critical-soft);
  color: var(--critical);
}
.badge.blue {
  background: var(--surface-2);
  color: var(--text-2);
}
.badge.dark {
  background: var(--text-1);
  color: var(--surface-1);
}
.table-scroll {
  overflow: auto;
  max-width: 100%;
  border-radius: 8px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
thead {
  background: var(--surface-2);
}
th {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-2);
  font-weight: 650;
  white-space: nowrap;
}
th,
td {
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
  line-height: 1.65;
  vertical-align: middle;
}
td {
  font-variant-numeric: tabular-nums;
}
tbody tr:last-child td {
  border-bottom: 0;
}
td .actions {
  flex-wrap: nowrap;
}
td .actions button,
td .button {
  font-size: 11px;
  padding: 7px 10px;
  min-height: 34px;
}
td strong {
  display: block;
  font-size: 12px;
}
.text-link {
  font-weight: 650;
  text-decoration: none;
}
.text-link:hover {
  text-decoration: underline;
}
.muted {
  color: var(--muted);
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  flex-wrap: wrap;
}
.toolbar select {
  width: auto;
  max-width: 240px;
}
.search {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--surface-1);
  border-radius: 7px;
  min-width: 200px;
  max-width: 450px;
  flex: 1;
  padding-left: 13px;
  gap: 9px;
}
.search > span:not(.sr-only) {
  color: var(--text-3);
  font-size: 22px;
}
.search input {
  border: 0;
  background: transparent;
  min-width: 100px;
  padding-left: 0;
}
.search:focus-within {
  outline: 2px solid var(--accent);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  line-height: 1.5;
  min-width: 0;
}
.field > span {
  font-weight: 550;
}
.field small {
  font-size: 10px;
}
.wide {
  grid-column: 1/-1;
}
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  font-size: 13px;
  line-height: 1.55;
  cursor: pointer;
}
.check input {
  margin-top: 2px;
}
.check + .check {
  border-top: 1px solid var(--border);
}
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
}
.form-error {
  margin-top: 18px;
  margin-bottom: 0;
  padding: 12px;
  background: var(--critical-soft);
  color: var(--critical);
  border-radius: 8px;
  font-size: 12px;
}
.notice {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 13px 16px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-2);
  margin: 15px 0;
}
.notice.warning {
  background: var(--attention-soft);
  border-color: var(--attention-soft);
  color: var(--attention);
}
.notice.error {
  background: var(--critical-soft);
  border-color: var(--critical-soft);
  color: var(--critical);
}
.notice a {
  color: inherit;
}
.tabs {
  display: flex;
  overflow-x: auto;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin: 24px 0;
  scrollbar-width: thin;
}
.tabs a {
  display: block;
  white-space: nowrap;
  padding: 13px 15px;
  text-decoration: none;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 3px solid transparent;
}
.tabs a.active {
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 650;
}
.tabs a:hover {
  background: var(--surface-2);
}
.journey {
  display: flex;
  gap: 3px;
  margin: 24px 0 14px;
  overflow: auto;
}
.journey a {
  min-width: 110px;
  flex: 1;
  background: var(--surface-2);
  padding: 13px 14px;
  text-decoration: none;
  color: var(--text-2);
  border-radius: 5px;
  font-size: 10px;
}
.journey a strong {
  display: block;
  margin-top: 5px;
  font-size: 12px;
}
.journey .done {
  background: var(--positive-soft);
  color: var(--positive);
}
.journey .current {
  background: var(--accent);
  color: white;
}
.progress {
  height: 5px;
  background: var(--surface-2);
  border-radius: 5px;
  overflow: hidden;
  margin: 10px 0;
}
.progress span {
  height: 100%;
  display: block;
  background: var(--accent);
}
.row-item {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.row-item:last-child {
  border-bottom: 0;
}
.row-item > div:first-child {
  flex: 1;
  min-width: 0;
}
.row-item p {
  font-size: 12px;
  margin: 4px 0;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--positive);
  margin-right: 5px;
  display: inline-block;
}
.stat-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.stat-line:last-child {
  border: 0;
}
.stat-line span {
  color: var(--muted);
}
.empty {
  text-align: center;
  padding: 35px 20px;
}
.empty-symbol {
  font-size: 26px;
  color: var(--text-3);
}
.empty h3 {
  margin-top: 12px;
}
.empty p {
  font-size: 12px;
}
.timeline {
  border-left: 2px solid var(--border);
  margin-left: 7px;
  padding-left: 23px;
}
.timeline article {
  padding: 0 0 22px;
  position: relative;
}
.timeline article:before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  left: -28px;
  top: 6px;
}
.timeline p {
  margin: 5px 0 0;
  font-size: 12px;
}
.timeline small {
  font-size: 10px;
}
dialog {
  width: min(760px, calc(100% - 28px));
  max-height: 90dvh;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 26px 28px;
  color: var(--ink);
  box-shadow: var(--shadow-floating);
  background: var(--surface-1);
}
dialog::backdrop {
  background: rgb(13 14 16 / 0.56);
  backdrop-filter: blur(3px);
}
dialog .dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: flex-start;
  margin-bottom: 22px;
}
dialog h2 {
  font-size: 23px;
  letter-spacing: -0.5px;
}
dialog .close {
  width: 35px;
  min-height: 35px;
  padding: 5px;
  background: var(--surface-2);
  border: 0;
}
.toast {
  position: fixed;
  bottom: 22px;
  right: 24px;
  z-index: 100;
  background: var(--dark);
  color: white;
  padding: 15px 20px;
  border-radius: 9px;
  box-shadow: 0 6px 25px rgb(20 20 22 / 0.12);
  max-width: min(460px, calc(100% - 32px));
  font-size: 13px;
  line-height: 1.6;
}
.toast.error {
  background: var(--critical);
}
.toast button {
  margin-left: 15px;
  min-height: 30px;
  padding: 4px 10px;
}
.file-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.file-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: var(--surface-1);
  margin: 0;
}
.file-card img,
.file-placeholder {
  height: 180px;
  width: 100%;
  object-fit: cover;
  background: var(--surface-2);
}
.file-placeholder {
  display: grid;
  place-items: center;
  font-size: 30px;
  color: var(--text-3);
}
.file-card figcaption {
  padding: 15px;
}
.file-card p {
  font-size: 12px;
  margin: 8px 0;
}
.roof-svg {
  width: 100%;
  height: auto;
  max-height: 260px;
  background: var(--surface-2);
  border-radius: 7px;
  border: 1px solid var(--line);
}
.chart {
  display: block;
  width: 100%;
  height: auto;
  max-height: 240px;
}
.chart text {
  font:
    10px Inter,
    system-ui;
  fill: var(--text-2);
}
.legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
  margin: 12px 0;
}
.legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  margin-right: 5px;
}
.comparison-best {
  background: var(--accent-soft);
}
.timer-bar {
  position: sticky;
  top: 0;
  z-index: 25;
  padding: 9px 38px;
  background: var(--accent-soft);
  border-bottom: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}
.timer-bar button {
  font-size: 11px;
  min-height: 30px;
  padding: 5px 10px;
}
.inline-code {
  background: var(--surface-2);
  padding: 3px 6px;
  font-size: 12px;
}
.list-of-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.list-of-links a {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 7px;
  text-decoration: none;
}
.list-of-links a:hover {
  background: var(--surface-2);
}
.mobile-menu,
.mobile-close {
  display: none;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 12px;
  background: var(--surface-1);
  padding: 12px;
  z-index: 150;
}
.skip-link:focus {
  top: 10px;
}
.loading {
  padding: 70px;
  text-align: center;
  color: var(--muted);
}
.footer-note {
  font-size: 10px;
  color: var(--text-3);
  margin-top: 27px;
  line-height: 1.6;
}
.print-only {
  display: none;
}
.roof-editor {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 16px 0;
}
.roof-editor h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.import-preview {
  max-height: 220px;
  overflow: auto;
}
.photo-preview {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
}
.portal {
  max-width: 1000px;
  margin: auto;
}
.portal-brand {
  padding: 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
}
.total-price {
  font-size: 30px;
  letter-spacing: -1px;
  margin: 12px 0;
}
.technical-note {
  border-left: 3px solid var(--border-strong);
  padding-left: 14px;
  font-size: 11px;
}
.chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.chips .active {
  background: var(--accent);
  color: white;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
  overflow: auto;
}
.plan-day {
  background: var(--surface-2);
  padding: 13px;
  border-radius: 8px;
}
.plan-entry {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 12px;
  border-radius: 8px;
  margin-top: 12px;
  font-size: 11px;
}
.plan-entry.conflict {
  border-left-color: var(--attention);
}
.plan-entry p {
  font-size: 11px;
  margin: 6px 0;
}
.plan-entry button {
  font-size: 10px;
  padding: 5px 8px;
}
.catalog-tile {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-1);
}
.catalog-tile h3 {
  font-size: 16px;
  line-height: 1.45;
  margin-top: 14px;
}
.catalog-tile p {
  font-size: 12px;
  min-height: 40px;
}
.catalog-tile .price {
  font-size: 22px;
  margin: 15px 0;
}
.catalog-tile .actions {
  margin-top: 15px;
}
.view-switch {
  display: flex;
  gap: 5px;
}
.view-switch a {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 11px;
  text-decoration: none;
}
.view-switch .active {
  background: var(--accent-soft);
}
.section-divider {
  height: 1px;
  background: var(--line);
  margin: 25px 0;
}
.energy-scroll {
  max-height: 320px;
  overflow: auto;
}
@media (min-width: 1500px) {
  main {
    padding-top: 36px;
  }
  .sidebar {
    width: 250px;
  }
  .workspace {
    margin-left: 250px;
  }
}
@media (max-width: 1150px) {
  .columns {
    grid-template-columns: 1fr;
  }
  .three-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  main {
    padding: 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .sidebar {
    width: 213px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .workspace {
    margin-left: 213px;
  }
  .nav-link {
    font-size: 12px;
  }
  .metric {
    padding: 20px 17px;
  }
  .metric strong {
    font-size: 24px;
  }
  .hero {
    gap: 25px;
  }
  .file-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .demo-label {
    display: none;
  }
}
@media (max-width: 760px) {
  .sidebar {
    transform: translateX(-100%);
    width: 260px;
    transition: transform 0.18s;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 0 0 0 100vmax rgb(13 14 16 / 0.5);
  }
  .mobile-menu,
  .mobile-close {
    display: inline-flex;
  }
  .mobile-close {
    padding: 2px 7px;
    min-height: 28px;
    color: white;
    border-color: var(--border-strong);
    background: none;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 66px;
    padding: 0 16px;
  }
  .topbar .context {
    display: none;
  }
  .topbar-actions {
    gap: 10px;
  }
  .avatar {
    display: none;
  }
  .role-select > span {
    display: none;
  }
  .role-select select {
    font-size: 12px;
    max-width: 175px;
  }
  main {
    padding: 23px 16px 40px;
  }
  .page-heading {
    flex-direction: column;
    gap: 9px;
    margin-top: 0;
  }
  .page-heading > .actions {
    padding-top: 0;
  }
  .page-heading p {
    font-size: 12px;
  }
  .hero {
    padding: 23px;
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .hero h2 {
    font-size: 23px;
  }
  .hero .hero-status {
    border-left: 0;
    border-top: 1px solid var(--hero-border);
    padding: 18px 0 0;
  }
  .hero:after {
    width: 250px;
    height: 250px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 18px 0 23px;
  }
  .metric {
    padding: 17px;
  }
  .metric:nth-child(2) {
    border-right: 0;
  }
  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .metric strong {
    font-size: 25px;
  }
  .two-col,
  .three-col,
  .file-grid {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 19px;
    margin-bottom: 19px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .wide {
    grid-column: auto;
  }
  .tabs {
    margin: 18px 0;
  }
  .tabs a {
    padding: 12px;
    font-size: 11px;
  }
  .toolbar {
    gap: 9px;
  }
  .toolbar select {
    max-width: 100%;
  }
  .toolbar > * {
    flex-basis: 100%;
  }
  .search {
    max-width: 100%;
  }
  th,
  td {
    padding: 12px 11px;
  }
  .table-scroll {
    margin: 0 -4px;
  }
  .timer-bar {
    padding: 9px 16px;
    font-size: 11px;
    flex-wrap: wrap;
  }
  dialog {
    padding: 22px 19px;
  }
  .list-of-links {
    grid-template-columns: 1fr;
  }
  .journey a {
    min-width: 100px;
    padding: 10px;
  }
  .actions {
    gap: 7px;
  }
  .section-heading {
    align-items: flex-start;
  }
  .file-card img {
    height: 220px;
  }
  .toast {
    bottom: 12px;
    right: 16px;
  }
  .plan-grid {
    grid-template-columns: 1fr;
  }
  .plan-day {
    padding: 14px;
  }
  .page-heading .eyebrow {
    font-size: 9px;
  }
  .demo-label {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .sidebar,
  .topbar,
  .timer-bar,
  .tabs,
  .journey,
  .actions,
  .form-actions,
  .toast,
  .skip-link,
  .no-print {
    display: none !important;
  }
  .workspace {
    margin: 0;
  }
  main {
    padding: 0;
    max-width: none;
  }
  .print-only {
    display: block;
  }
  .panel {
    break-inside: avoid;
    border-color: #ccc;
    box-shadow: none;
  }
  .hero {
    background: var(--surface-1);
    color: black;
  }
  .hero p {
    color: #333;
  }
  body {
    background: var(--surface-1);
  }
  h1 {
    font-size: 25px;
  }
  a {
    color: black;
    text-decoration: none;
  }
  .table-scroll {
    overflow: visible;
  }
  .metrics {
    break-inside: avoid;
  }
}
@media print {
  body:has(dialog[open]) #shell {
    display: none;
  }
  dialog[open] {
    position: static;
    max-height: none;
    width: 100%;
    border: 0;
    padding: 0;
    box-shadow: none;
    overflow: visible;
  }
  dialog[open] .dialog-head {
    display: none;
  }
  dialog[open]::backdrop {
    display: none;
  }
  dialog .actions {
    display: none;
  }
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 14px 16px;
  margin: 0;
  min-width: 0;
}
legend {
  font-size: 12px;
  font-weight: 600;
  padding: 0 6px;
}
.sidebar nav {
  scrollbar-color: var(--border-strong) transparent;
}
/* Nolens Build identity: neutral workspace, black canonical N, mineral amber. */
.sidebar {
  padding-top: 24px;
}
.brand-wrap {
  padding: 0 10px 20px;
  align-items: center;
  min-height: 60px;
}
.nav-link:hover {
  color: var(--text-1);
}
.nav-link.active:before {
  background: var(--accent);
}
.sidebar-footer strong {
  color: var(--text-2);
}
.brand-guide-link {
  display: block;
  margin-top: 13px;
  font-size: 11px;
  color: var(--text-2);
}
.mobile-brand {
  display: none;
}
.theme-control {
  padding: 8px 10px;
  min-height: 36px;
  background: transparent;
  color: var(--text-2);
  border-color: var(--border);
  font-size: 11px;
}
.hero {
  background: var(--hero-bg);
  color: var(--hero-text);
  border: 1px solid var(--hero-border);
  isolation: isolate;
}
.hero::after {
  z-index: -1;
  top: -25px;
  right: -40px;
  width: 300px;
  height: 300px;
  border: 0;
  border-radius: 0;
  transform: rotate(-8deg);
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 25px,
    rgb(255 255 255 / 0.045) 25px 59px,
    transparent 59px 72px
  );
}
.hero .brand-highlight {
  color: var(--hero-accent);
}
.hero small,
.hero .hero-status small {
  color: var(--hero-muted);
}
.hero .progress {
  background: var(--hero-border);
}
.hero .progress span {
  background: var(--hero-accent);
}
.hero .button,
.hero button {
  background: var(--hero-accent);
  border-color: var(--hero-accent);
  color: #141416;
}
.hero .button:hover,
.hero button:hover {
  background: #f7dc98;
  border-color: #f7dc98;
}
.hero .eyebrow {
  color: var(--hero-accent);
}
.journey .current,
.chips .active {
  color: var(--on-accent);
}
.badge.dark {
  background: var(--text-1);
  color: var(--surface-1);
}
.mobile-close {
  color: var(--text-1);
}
.toast {
  background: var(--text-1);
  color: var(--surface-1);
  box-shadow: var(--shadow-floating);
}
.toast button {
  color: var(--text-1);
  background: var(--surface-1);
}
.toast.error {
  background: var(--critical);
  color: var(--on-critical, #ffffff);
}
:root[data-theme="dark"] {
  --on-critical: #141416;
}
:root[data-theme="light"] {
  --on-critical: #ffffff;
}
.field > span,
legend {
  font-weight: 600;
}
button,
.button,
input,
select,
textarea,
.sidebar {
  transition:
    background-color 0.16s var(--ease-out),
    border-color 0.16s var(--ease-out),
    color 0.16s var(--ease-out);
}
button.primary:hover,
.button.primary:hover {
  background: var(--accent-text);
  border-color: var(--accent-text);
  color: var(--on-accent);
}
:root[data-theme="dark"] button.primary:hover,
:root[data-theme="dark"] .button.primary:hover {
  background: #f7dc98;
  border-color: #f7dc98;
  color: #141416;
}
dialog {
  background: var(--surface-1);
}
.portal-brand {
  align-items: center;
  gap: 20px;
  padding: 15px 0 22px;
  flex-wrap: wrap;
}
.portal-brand .brand-symbol {
  width: 32px;
  height: 32px;
}
.portal-brand .brand-wordmark {
  font-size: 20px;
}
.portal-brand > span:last-child:not(.brand) {
  font-size: 11px;
  color: var(--text-2);
}
@media (max-width: 1150px) {
  .brand-wordmark {
    font-size: 18px;
  }
  .brand {
    gap: 8px;
  }
  .brand-symbol {
    width: 30px;
    height: 30px;
    min-width: 30px;
  }
  .topbar .context {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .topbar-actions {
    gap: 10px;
  }
}
@media (max-width: 760px) {
  .mobile-brand {
    display: inline-flex;
    gap: 7px;
    margin-right: auto;
  }
  .mobile-brand .brand-symbol {
    width: 28px;
    height: 28px;
    min-width: 28px;
  }
  .mobile-brand .brand-wordmark {
    font-size: 17px;
  }
  .mobile-menu {
    padding: 8px 10px;
    min-height: 36px;
    font-size: 16px;
  }
  .topbar {
    gap: 10px;
  }
  .topbar-actions {
    gap: 6px;
  }
  .topbar-actions .role-select select {
    width: 88px;
    max-width: 100px;
    padding: 7px;
    font-size: 11px;
  }
  .theme-control {
    padding: 8px;
    min-width: 34px;
  }
  .theme-control span {
    display: none;
  }
  .sidebar {
    transition: transform 0.22s var(--ease-out);
  }
  .mobile-close {
    color: var(--text-1);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  .hero,
  .panel,
  .metrics,
  .notice,
  .badge,
  .file-card,
  button,
  .button,
  thead {
    background: none !important;
    color: var(--text-1);
  }
  .hero::after {
    display: none;
  }
  .brand-descriptor,
  .hero .brand-highlight {
    color: #8a6300;
  }
  .brand-guide-link {
    display: none;
  }
}
@media (max-width: 360px) {
  .topbar {
    padding: 0 12px;
    gap: 7px;
  }
  .mobile-brand .brand-wordmark {
    font-size: 15px;
  }
  .mobile-brand {
    gap: 6px;
  }
  .topbar-actions .role-select select {
    width: 76px;
    padding: 6px;
    font-size: 10px;
  }
  .theme-control {
    padding: 6px;
    min-width: 30px;
  }
  .topbar-actions {
    gap: 5px;
  }
}
/* Catalogue: families, typical sets and maintenance hints. */
.chips-inline {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.badge.ok {
  background: var(--positive-soft);
  color: var(--positive);
}
.catalog-tile {
  display: flex;
  flex-direction: column;
}
.catalog-tile .price {
  margin-top: auto;
  padding-top: 15px;
}
.catalog-tile .catalog-meta {
  min-height: 0;
  margin-bottom: 6px;
  color: var(--text-2);
}
.catalog-meta strong {
  display: block;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-1);
}
.kit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.kit-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 9px;
  background: var(--surface-1);
}
.kit-card > .badge {
  align-self: flex-start;
}
.kit-card h3 {
  margin: 10px 0 4px;
  line-height: 1.4;
}
.kit-card ul {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  font-size: 12px;
  color: var(--text-2);
}
.kit-card li {
  display: flex;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
}
.kit-card li span {
  min-width: 52px;
  font-variant-numeric: tabular-nums;
  color: var(--text-1);
  font-weight: 600;
}
.kit-card button {
  margin-top: auto;
}
/* "Como fazer": black N, amber for the current step. */
.help-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-1);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}
.help-link:hover {
  border-color: var(--accent);
  text-decoration: none;
}
.help-link > span:first-child {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--brand-parent);
  color: #f7f7f5;
  font-size: 11px;
}
.hero .button.ghost {
  background: transparent;
  border-color: var(--hero-border);
  color: var(--hero-text);
  margin-left: 8px;
}
.hero .button.ghost:hover {
  background: rgb(255 255 255 / 0.06);
  border-color: var(--hero-accent);
  color: var(--hero-text);
}
.guide-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(220px, 0.6fr);
  gap: 24px;
  align-items: center;
  margin: 23px 0 20px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface-1);
}
.guide-hero > .brand-symbol {
  width: 56px;
  height: 56px;
  border-radius: 15px;
  box-shadow: 0 0 0 1px var(--border-strong);
}
.guide-hero h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.guide-hero h2 span[aria-hidden] {
  color: var(--text-3);
}
.guide-hero .brand-highlight {
  color: var(--accent);
}
.guide-hero p {
  margin: 0;
  font-size: 13px;
}
.guide-status {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.guide-status strong {
  font-size: 18px;
}
.guide-status span {
  font-size: 12px;
  color: var(--text-2);
}
.guide-index {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.guide-index a {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
}
.guide-index a:hover {
  color: var(--text-1);
  border-color: var(--accent);
}
.guide-phase {
  margin: 30px 0 10px;
}
.guide-phase > h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
}
.guide-phase > h2 span {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.guide-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.guide-step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-1);
  scroll-margin-top: 90px;
}
.guide-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand-parent);
  color: #f7f7f5;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 1px var(--border-strong);
}
.guide-step.done .guide-number {
  background: var(--positive-soft);
  color: var(--positive);
  box-shadow: none;
}
.guide-step.current {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.guide-step.current .guide-number {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: none;
}
.guide-step.attention {
  border-color: var(--critical-soft);
}
.guide-step.focused {
  background: var(--accent-soft);
}
.guide-step-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.guide-step h3 {
  font-size: 16px;
  margin: 8px 0 6px;
}
.guide-step ul {
  margin: 6px 0 10px;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
}
.guide-note {
  font-size: 12px;
  margin-bottom: 4px;
}
.guide-gate {
  font-size: 12px;
  padding: 9px 12px;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--text-1);
}
.guide-gate strong {
  margin-right: 6px;
  color: var(--accent-text);
}
:root[data-theme="dark"] .guide-gate strong {
  color: var(--accent);
}
@media (max-width: 1150px) {
  .guide-hero {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .guide-status {
    grid-column: 1 / -1;
    padding: 16px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 760px) {
  .help-link {
    padding: 8px;
    min-width: 34px;
    justify-content: center;
  }
  .help-link .help-text {
    display: none;
  }
  .guide-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 20px;
  }
  .guide-hero > .brand-symbol {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }
  .guide-step {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 18px;
  }
  .hero .button.ghost {
    margin: 8px 0 0;
  }
}
@media print {
  .help-link {
    display: none;
  }
}
/* On-screen guide: amber ring on the element to use, card with the black N. */
.tour-ring {
  position: fixed;
  z-index: 60;
  border-radius: 10px;
  border: 2px solid var(--accent);
  box-shadow:
    0 0 0 4px color-mix(in oklab, var(--accent) 35%, transparent),
    0 0 0 9999px rgb(13 14 16 / 0.42);
  pointer-events: none;
  transition:
    top 0.18s var(--ease-out),
    left 0.18s var(--ease-out),
    width 0.18s var(--ease-out),
    height 0.18s var(--ease-out);
}
.tour-ring[hidden] {
  display: none;
}
.tour-card {
  position: fixed;
  z-index: 61;
  width: min(360px, calc(100vw - 24px));
  padding: 16px 16px 14px;
  border: 1px solid var(--border-strong);
  border-top: 3px solid var(--accent);
  border-radius: 14px;
  background: var(--surface-1);
  color: var(--text-1);
  box-shadow: var(--shadow-floating);
}
.tour.docked .tour-card {
  top: auto !important;
  left: 50% !important;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(440px, calc(100vw - 24px));
}
.tour-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.tour-head .brand-symbol {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--border-strong);
}
.tour-head small {
  display: block;
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.06em;
  color: var(--accent-text);
}
:root[data-theme="dark"] .tour-head small {
  color: var(--accent);
}
.tour-head strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}
.tour-close {
  width: 32px;
  min-height: 32px;
  padding: 0;
  font-size: 18px;
  background: var(--surface-2);
}
.tour-card p {
  margin: 12px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-1);
}
.tour-card .tour-missing {
  font-size: 12px;
  color: var(--text-2);
}
.tour-dots {
  display: flex;
  gap: 5px;
  margin-top: 12px;
}
.tour-dots i {
  width: 18px;
  height: 4px;
  border-radius: 4px;
  background: var(--surface-2);
}
.tour-dots .done {
  background: var(--positive);
}
.tour-dots .current {
  background: var(--accent);
}
.tour-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.tour-actions button {
  min-height: 36px;
  padding: 8px 13px;
}
.tour.finished .tour-actions {
  justify-content: flex-start;
}
@media (max-width: 760px) {
  .tour.docked .tour-card {
    bottom: 12px;
  }
}
@media print {
  .tour {
    display: none;
  }
}
