/* LayerLab 3D customer portal (demo). Uses the same tokens as the public website. */

.guarding .app { visibility: hidden; }

body.portal { background: var(--warm); }

/* Shell */
.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.sidebar { position: sticky; top: 0; align-self: start; height: 100vh; height: 100dvh; display: flex; flex-direction: column; gap: 28px; padding: 22px 14px 16px; background: var(--paper); border-right: 1px solid var(--line); }
.sidebar .wordmark { padding: 0 10px; }
.side-nav { display: grid; gap: 2px; }
.side-link { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: var(--r); color: var(--ink-2); font-weight: 450; font-size: 0.9375rem; transition: background-color 0.15s, color 0.15s; background: none; border: 0; width: 100%; text-align: left; }
.side-link svg { width: 19px; height: 19px; flex: none; }
.side-link:hover { background: var(--warm); color: var(--ink); }
.side-link[aria-current="page"] { background: var(--blue-tint); color: var(--blue-ink); font-weight: 550; }
.side-foot { margin-top: auto; display: grid; gap: 10px; }
.user-chip { display: flex; align-items: center; gap: 12px; padding: 12px; border-top: 1px solid var(--line); margin-top: 6px; }
.user-chip strong { display: block; font-size: 0.9375rem; line-height: 1.25; }
.user-chip small { display: block; color: var(--ink-3); font-size: 0.8125rem; line-height: 1.3; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 600 0.8125rem var(--font-body); letter-spacing: 0.02em; flex: none; }

.app-main { min-width: 0; display: flex; flex-direction: column; }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; padding: 8px var(--gutter); background: var(--paper); border-bottom: 1px solid var(--line); font-size: 0.8125rem; color: var(--ink-2); text-align: center; }
.mobile-bar { display: none; }
.page { width: 100%; max-width: 1180px; margin-inline: auto; padding: clamp(24px, 3.4vw, 44px) var(--gutter) 72px; flex: 1; outline: none; }
.page-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(24px, 3vw, 36px); }
.page-head h1 { font-size: clamp(1.875rem, 3.6vw, 2.625rem); letter-spacing: -0.04em; }
.page-head p { color: var(--ink-2); margin-top: 8px; max-width: 58ch; }

.tabbar { display: none; }
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .mobile-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px var(--gutter); background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(255, 255, 255, 0.95); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 58px; font-size: 0.6875rem; font-weight: 500; color: var(--ink-3); }
  .tabbar a svg { width: 21px; height: 21px; }
  .tabbar a[aria-current="page"] { color: var(--blue-ink); }
  .page { padding-bottom: 104px; }
  .toast-region { bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* Panels */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel__title { font: 600 1.0625rem var(--font-display); letter-spacing: -0.02em; }
.panel__body { padding: 20px; }
.panel__foot { padding: 12px 20px; border-top: 1px solid var(--line); font-size: 0.875rem; }
.stack { display: grid; gap: 20px; min-width: 0; }

/* Dashboard */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 20px; overflow: hidden; }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { padding: 18px 20px; display: grid; gap: 2px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat:nth-child(2n) { border-right: 0; }
@media (min-width: 860px) { .stat { border-bottom: 0; } .stat:nth-child(2n) { border-right: 1px solid var(--line); } .stat:last-child { border-right: 0; } }
.stat:nth-last-child(-n + 2) { border-bottom: 0; }
.stat__value { font: 600 1.875rem/1.1 var(--font-display); letter-spacing: -0.04em; order: 1; }
.stat__label { font-size: 0.875rem; color: var(--ink-3); order: 2; }
.dash-grid { display: grid; gap: 20px; }
@media (min-width: 1040px) { .dash-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }

.o-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); transition: background-color 0.15s; }
.o-row:last-child { border-bottom: 0; }
a.o-row:hover { background: var(--warm); }
.o-row__main { display: grid; gap: 2px; min-width: 0; }
.o-row__main .ref { font: 400 0.8125rem var(--font-mono); color: var(--ink-3); }
.o-row__name { font-weight: 600; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.o-row__meta { font-size: 0.875rem; color: var(--ink-2); }
.o-row__side { display: grid; gap: 8px; justify-items: end; }
.o-row__eta { font-size: 0.8125rem; color: var(--ink-3); }
.o-row__eta b { color: var(--ink); font-weight: 500; }
.segs { display: grid; grid-auto-flow: column; gap: 3px; grid-column: 1 / -1; }
.segs i { height: 4px; border-radius: 2px; background: var(--warm-2); }
.segs i.on { background: var(--blue); }
.segs i.now { background: var(--blue); opacity: 0.45; }
.segs--done i.on { background: var(--ok); }

.q-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); align-items: center; }
.q-row:last-child { border-bottom: 0; }
.q-row strong { font-weight: 600; letter-spacing: -0.01em; }
.q-row small { color: var(--ink-3); font-size: 0.8125rem; display: block; }
.q-row .mono { font-size: 0.8125rem; color: var(--ink-3); }
.q-row__amt { font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }

.live { padding: 20px; display: grid; gap: 12px; }
.live__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.live__title { font-weight: 600; letter-spacing: -0.01em; }
.live__figure { font: 600 2.25rem/1 var(--font-display); letter-spacing: -0.04em; }
.live__figure small { font: 400 0.875rem var(--font-body); letter-spacing: 0; color: var(--ink-3); margin-left: 6px; }
.live__meta { display: flex; justify-content: space-between; font-size: 0.8125rem; color: var(--ink-2); }
.live__meta b { font-family: var(--font-mono); font-weight: 500; color: var(--ink); }

.qa-list { list-style: none; }
.qa { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 10px 20px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; transition: background-color 0.15s; color: var(--ink); }
.qa-list li:last-child .qa { border-bottom: 0; }
.qa:hover { background: var(--warm); }
.qa svg { width: 20px; height: 20px; color: var(--blue-ink); flex: none; }
.qa span { display: grid; line-height: 1.3; }
.qa small { color: var(--ink-3); font-size: 0.8125rem; }

.kv { display: grid; gap: 0; margin: 0; font-size: 0.9375rem; }
.kv > div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--ink-3); flex: none; }
.kv dd { margin: 0; font-weight: 500; text-align: right; overflow-wrap: anywhere; }

/* Orders */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.chips { position: relative; display: flex; gap: 4px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); font-size: 0.875rem; font-weight: 500; color: var(--ink-2); transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s var(--ease); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip:active { transform: scale(0.96); }
.chip span { font: 400 0.75rem var(--font-mono); color: var(--ink-3); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[aria-pressed="true"] span { color: #c9cad0; }
.search { position: relative; width: min(100%, 280px); }
.search svg { position: absolute; left: 12px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search .input { padding-left: 38px; min-height: 40px; }

.orders-layout { display: grid; gap: 20px; }
@media (min-width: 1100px) { .orders-layout { grid-template-columns: minmax(340px, 5fr) minmax(0, 7fr); align-items: start; } .orders-layout .detail-col { position: sticky; top: 24px; } }
@media (max-width: 1099px) { .orders-layout.is-detail .list-col { display: none; } .orders-layout:not(.is-detail) .detail-col { display: none; } }
.o-item { display: grid; gap: 8px; width: 100%; text-align: left; padding: 16px 18px; border: 0; border-bottom: 1px solid var(--line); background: var(--paper); transition: background-color 0.15s; }
.o-item:last-child { border-bottom: 0; }
.o-item:hover { background: var(--warm); }
.o-item[aria-current="true"] { background: var(--blue-tint); }
.o-item[aria-current="true"] .ref { color: var(--blue-ink); }
.o-item__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.o-item__top .ref { font: 400 0.8125rem var(--font-mono); color: var(--ink-3); }
.o-item strong { font-weight: 600; letter-spacing: -0.01em; }
.o-item__meta { display: flex; justify-content: space-between; gap: 12px; font-size: 0.8125rem; color: var(--ink-3); }
.list-panel { overflow: hidden; }
.list-count { font-size: 0.875rem; color: var(--ink-3); padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--paper); }

.detail { overflow: hidden; }
.detail__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 20px; padding: 20px; border-bottom: 1px solid var(--line); }
.detail__head h2 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); letter-spacing: -0.035em; margin-top: 4px; }
.detail__head .ref { font: 400 0.8125rem var(--font-mono); color: var(--ink-3); }
.back-btn { margin: 14px 20px 0; }
@media (min-width: 1100px) { .back-btn { display: none; } }
.detail__sec { padding: 20px; border-bottom: 1px solid var(--line); }
.detail__sec:last-child { border-bottom: 0; }
.detail__sec h3 { font: 600 0.9375rem var(--font-body); letter-spacing: 0; margin-bottom: 16px; }

.tracker { list-style: none; display: grid; gap: 0; position: relative; }
.tracker li { position: relative; display: grid; grid-template-columns: 28px 1fr auto; gap: 0 14px; padding-bottom: 22px; align-items: start; }
.tracker li:last-child { padding-bottom: 0; }
.tracker li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: -2px; width: 2px; background: var(--line); }
.tracker li:last-child::before { display: none; }
.tracker li.is-done::before { background: var(--blue); }
.tracker__dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-2); background: #fff; display: grid; place-items: center; color: #fff; z-index: 1; }
.tracker__dot svg { width: 14px; height: 14px; display: none; }
.tracker li.is-done .tracker__dot { background: var(--blue); border-color: var(--blue); }
.tracker li.is-done .tracker__dot svg { display: block; }
.tracker li.is-current .tracker__dot { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-tint); }
.tracker li.is-current .tracker__dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.tracker__label { font-weight: 550; line-height: 1.3; padding-top: 3px; }
.tracker__hint { display: block; font-weight: 400; font-size: 0.8125rem; color: var(--ink-3); margin-top: 1px; }
.tracker li.is-todo .tracker__label { color: var(--ink-3); font-weight: 450; }
.tracker__date { font: 400 0.8125rem var(--font-mono); color: var(--ink-3); padding-top: 5px; text-align: right; }
@media (min-width: 760px) {
  .tracker { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; }
  .tracker li { grid-template-columns: 1fr; grid-template-rows: auto auto auto; gap: 10px 0; padding: 0 8px 0 0; }
  .tracker li::before { left: 28px; right: -8px; top: 13px; bottom: auto; width: auto; height: 2px; }
  .tracker li:last-child::before { display: none; }
  .tracker__date { text-align: left; padding-top: 0; }
  .tracker__label { padding-top: 0; font-size: 0.875rem; }
  .tracker__hint { display: none; }
}
@media (min-width: 760px) and (max-width: 1099px) { .tracker__label { font-size: 0.8125rem; } }
@media (min-width: 1100px) { .tracker { grid-template-columns: 1fr; } .tracker li { grid-template-columns: 28px 1fr auto; padding: 0 0 22px; gap: 0 14px; } .tracker li:last-child { padding-bottom: 0; } .tracker li::before { left: 13px; right: auto; top: 28px; bottom: -2px; width: 2px; height: auto; } .tracker li:last-child::before { display: none; } .tracker__hint { display: block; } .tracker__label { font-size: 0.9375rem; padding-top: 3px; } .tracker__date { padding-top: 5px; text-align: right; } }

.specs { display: grid; gap: 0 32px; margin: 0; font-size: 0.9375rem; }
@media (min-width: 640px) { .specs { grid-template-columns: 1fr 1fr; } }
.specs > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--ink-3); flex: none; }
.specs dd { margin: 0; font-weight: 500; text-align: right; }
.detail__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.thumb { aspect-ratio: 16 / 7; border-radius: var(--r); overflow: hidden; position: relative; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Quote request */
.qf { display: grid; gap: 24px; }
@media (min-width: 1040px) { .qf { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } .qf__side { position: sticky; top: 24px; } }
.qsec { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 22px 22px 24px; display: grid; gap: 20px; }
.qsec > legend { float: left; width: 100%; font: 600 1.125rem var(--font-display); letter-spacing: -0.02em; margin: 0 0 -4px; padding: 0; }
.qsec > legend + * { clear: both; }
.qsec__sub { color: var(--ink-3); font-size: 0.875rem; margin-top: -10px; }
.qf__main { display: grid; gap: 16px; min-width: 0; }
.choice-grid { display: grid; gap: 10px; }
@media (min-width: 560px) { .choice-grid { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.choice__body { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s; }
.choice__body strong { font-weight: 600; }
.choice__body span { font-size: 0.8125rem; color: var(--ink-3); line-height: 1.4; }
.choice:hover .choice__body { border-color: #b4af9f; }
.choice input:checked + .choice__body { border-color: var(--blue); background: var(--blue-tint); box-shadow: inset 0 0 0 1px var(--blue); }
.choice input:focus-visible + .choice__body { outline: 2px solid var(--blue); outline-offset: 2px; }
.swatch-pick { display: flex; flex-wrap: wrap; gap: 10px; }
.sw { position: relative; }
.sw input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.sw__body { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 10px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; font-size: 0.875rem; transition: border-color 0.15s, background-color 0.15s; }
.sw__dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(29, 30, 34, 0.2); }
.sw:hover .sw__body { border-color: #b4af9f; }
.sw input:checked + .sw__body { border-color: var(--blue); background: var(--blue-tint); box-shadow: inset 0 0 0 1px var(--blue); }
.sw input:focus-visible + .sw__body { outline: 2px solid var(--blue); outline-offset: 2px; }

.drop { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 32px 20px; border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); background: var(--warm); cursor: pointer; transition: border-color 0.15s, background-color 0.15s; }
.drop:hover, .drop.is-over { border-color: var(--blue); background: var(--blue-tint); }
input:focus-visible + .drop { outline: 2px solid var(--blue); outline-offset: 2px; }
.drop svg { width: 30px; height: 30px; color: var(--blue-ink); }
.drop strong { font-weight: 600; }
.drop span { font-size: 0.875rem; color: var(--ink-3); }
.field.has-error .drop { border-color: var(--err); background: var(--err-tint); }
.file-card { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: #fff; }
.file-card__top { display: flex; align-items: center; gap: 14px; }
.file-card__icon { width: 44px; height: 44px; border-radius: var(--r); background: var(--blue-tint); display: grid; place-items: center; color: var(--blue-ink); flex: none; }
.file-card__icon svg { width: 22px; height: 22px; }
.file-card__name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.file-card__info { min-width: 0; flex: 1; }
.file-card__meta { font-size: 0.8125rem; color: var(--ink-3); }
.file-card__status { display: flex; justify-content: space-between; gap: 12px; font-size: 0.8125rem; color: var(--ink-2); }
.file-card__status b { font-weight: 500; color: var(--ink); }

.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; width: max-content; max-width: 100%; }
.stepper button { width: 44px; border: 0; background: none; font-size: 1.25rem; color: var(--ink-2); transition: background-color 0.15s; }
.stepper button:first-child { border-radius: var(--r) 0 0 var(--r); }
.stepper button:last-child { border-radius: 0 var(--r) var(--r) 0; }
.stepper button:hover { background: var(--warm); color: var(--ink); }
.stepper input { width: 72px; text-align: center; border: 0; border-inline: 1px solid var(--line-2); min-height: 44px; font-size: 1rem; font-variant-numeric: tabular-nums; -moz-appearance: textfield; background: #fff; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--blue); }

.viewer-box { position: relative; aspect-ratio: 4 / 3.4; background: var(--warm); border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; overflow: hidden; }
.viewer-box canvas { width: 100%; height: 100%; touch-action: none; cursor: grab; }
.viewer-box canvas:active { cursor: grabbing; }
.viewer-box__empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; padding: 24px; color: var(--ink-3); font-size: 0.875rem; pointer-events: none; }
.viewer-box__empty svg { width: 34px; height: 34px; }
.viewer-box__hint { position: absolute; left: 12px; bottom: 10px; font-size: 0.75rem; color: var(--ink-3); pointer-events: none; }
.estimate { padding: 18px 20px; display: grid; gap: 14px; }
.estimate__price { display: grid; gap: 2px; }
.estimate__price small { color: var(--ink-3); font-size: 0.8125rem; }
.estimate__price strong { font: 600 1.875rem/1.1 var(--font-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.estimate__price strong.is-empty { font-size: 1.125rem; color: var(--ink-3); font-weight: 500; letter-spacing: -0.01em; }
.estimate .kv { font-size: 0.875rem; }
.estimate .kv > div { padding: 7px 0; }
.err-summary { display: none; }
.err-summary.is-visible { display: block; }
.err-summary ul { margin: 8px 0 0; padding-left: 18px; }
.err-summary a { text-decoration: underline; }

.success { display: grid; gap: 20px; max-width: 720px; }
.success__head { display: grid; gap: 10px; padding: 28px; background: var(--ok-tint); border: 1px solid #b9dbc9; border-radius: 8px; }
.success__head h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); }
.success__ref { font: 500 0.9375rem var(--font-mono); }
.steps-simple { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); font-size: 0.9375rem; }

/* Account */
.account-grid { display: grid; gap: 20px; }
@media (min-width: 1000px) { .account-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.toggle-row:last-child { border-bottom: 0; }
.toggle-row small { display: block; color: var(--ink-3); font-size: 0.8125rem; }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--line-2); transition: background-color 0.2s; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.35s var(--spring); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
.switch input:checked + i { background: var(--blue); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Login */
.auth { display: grid; min-height: 100vh; min-height: 100dvh; background: var(--paper); }
@media (min-width: 960px) { .auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.auth__form { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(24px, 4vw, 48px); }
.auth__inner { width: 100%; max-width: 420px; margin: auto; display: grid; gap: 28px; }
.auth__inner h1 { font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -0.04em; }
.auth__inner > div > p { color: var(--ink-2); margin-top: 10px; }
.auth__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.auth__foot { font-size: 0.8125rem; color: var(--ink-3); }
.auth__foot a { text-decoration: underline; text-underline-offset: 3px; }
.auth__visual { position: relative; display: none; background: var(--warm-2); overflow: hidden; }
@media (min-width: 960px) { .auth__visual { display: block; } }
.auth__visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cred-card { position: absolute; left: clamp(20px, 3vw, 40px); right: clamp(20px, 3vw, 40px); bottom: clamp(20px, 3vw, 40px); max-width: 430px; background: rgba(255, 255, 255, 0.97); border: 1px solid var(--line); border-radius: 8px; padding: 20px 22px; display: grid; gap: 12px; }
.cred-card h2 { font: 600 1.0625rem var(--font-display); letter-spacing: -0.02em; }
.cred-card .kv { font-size: 0.875rem; }
.cred-card .kv dd { font-family: var(--font-mono); font-weight: 400; font-size: 0.8125rem; }
.cred-inline { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--warm); font-size: 0.875rem; }
@media (min-width: 960px) { .cred-inline { display: none; } }
.pw { position: relative; }
.pw .input { padding-right: 48px; }
.pw__toggle { position: absolute; right: 2px; top: 2px; width: 40px; height: 40px; border: 0; background: none; color: var(--ink-3); border-radius: var(--r); display: grid; place-items: center; }
.pw__toggle:hover { color: var(--ink); background: var(--warm); }
.pw__toggle svg { width: 19px; height: 19px; }
