:root {
  color-scheme: light;
  --bg: #f4f3ef;
  --surface: #ffffff;
  --surface-2: #ecebe6;
  --surface-dark: #111315;
  --text: #151719;
  --muted: #686c70;
  --line: #deddd7;
  --accent: #d97732;
  --accent-dark: #a74d13;
  --danger: #c33a3a;
  --success: #2d7b58;
  --warning: #a3650a;
  --shadow: 0 12px 35px rgba(22, 24, 26, 0.09);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --topbar-height: 76px;
  --nav-height: 76px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.app-shell { min-height: 100vh; }
.topbar {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  min-height: calc(var(--topbar-height) + env(safe-area-inset-top, 0px));
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 10px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
  background: rgba(244, 243, 239, 0.92);
  border-bottom: 1px solid rgba(222, 221, 215, 0.85);
  backdrop-filter: blur(18px);
}
.topbar__titles { min-width: 0; }
.topbar h1 { margin: 1px 0 0; font-size: 22px; line-height: 1.1; letter-spacing: -0.035em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__eyebrow { color: var(--accent-dark); font-size: 10px; font-weight: 800; letter-spacing: 0.15em; }
.icon-button {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 4px 15px rgba(20, 22, 24, 0.07);
  cursor: pointer;
}
.icon-button:active { transform: scale(0.96); }
.icon-button svg, .bottom-nav svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.topbar__back[hidden] + .topbar__titles { grid-column: 2; }

.main-content {
  min-height: 100vh;
  padding: calc(var(--topbar-height) + env(safe-area-inset-top, 0px) + 16px) 14px calc(var(--nav-height) + var(--safe-bottom) + 24px);
  outline: none;
}
.bottom-nav {
  position: fixed;
  z-index: 35;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--nav-height) + var(--safe-bottom));
  padding: 8px 8px calc(8px + var(--safe-bottom));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  background: rgba(17, 19, 21, 0.96);
  color: #d7d7d3;
  backdrop-filter: blur(18px);
}
.bottom-nav__item {
  position: relative;
  min-width: 0;
  height: 57px;
  padding: 5px 2px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 10px;
  cursor: pointer;
}
.bottom-nav__item svg { width: 22px; height: 22px; }
.bottom-nav__item.is-active { color: #fff; }
.bottom-nav__item.is-active::after { content: ""; position: absolute; bottom: 0; width: 18px; height: 2px; border-radius: 2px; background: var(--accent); }
.bottom-nav__item--add { color: white; }
.bottom-nav__plus { width: 42px; height: 42px; margin-top: -23px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); border: 4px solid var(--surface-dark); font-size: 27px; line-height: 1; box-shadow: 0 7px 20px rgba(217, 119, 50, 0.35); }

.page-stack { display: grid; gap: 16px; }
.hero {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface-dark);
  color: white;
  overflow: hidden;
}
.hero__kicker { color: #e3a072; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.hero h2 { margin: 8px 0 5px; max-width: 15ch; font-size: clamp(28px, 8vw, 38px); line-height: .98; letter-spacing: -.05em; }
.hero p { margin: 0; max-width: 45ch; color: #b7babd; font-size: 14px; line-height: 1.45; }
.hero__stats { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat { padding: 13px; border: 1px solid #303438; border-radius: 14px; background: #181b1e; }
.stat strong { display: block; font-size: 24px; line-height: 1; }
.stat span { display: block; margin-top: 5px; color: #a8abad; font-size: 11px; }

.toolbar { display: grid; gap: 10px; }
.search-box { position: relative; }
.search-box input {
  width: 100%;
  height: 50px;
  padding: 0 42px 0 44px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  box-shadow: 0 5px 18px rgba(20,22,24,.04);
}
.search-box input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217,119,50,.14); }
.search-box__icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 18px; }
.search-box__clear { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--surface-2); cursor: pointer; }
.filter-row { display: flex; gap: 8px; overflow-x: auto; padding: 1px 1px 5px; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-select, .filter-button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  outline: none;
}
.filter-button.is-active { border-color: var(--accent); background: #fff2e9; color: var(--accent-dark); }
.result-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }
.result-summary strong { color: var(--text); }

.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.visual-card {
  min-width: 0;
  border: 0;
  padding: 0;
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
  overflow: hidden;
  box-shadow: 0 7px 22px rgba(20,22,24,.06);
  cursor: pointer;
}
.visual-card:active { transform: scale(.985); }
.visual-card__media { position: relative; aspect-ratio: 4 / 5; background: #e4e3de; overflow: hidden; }
.visual-card__media > img { width: 100%; height: 100%; object-fit: cover; }
.visual-card__body { padding: 11px 11px 13px; }
.visual-card__code { color: var(--accent-dark); font-size: 10px; font-weight: 850; letter-spacing: .09em; }
.visual-card__title { margin-top: 4px; min-height: 36px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 750; line-height: 1.25; }
.visual-card__meta { margin-top: 7px; display: flex; align-items: center; justify-content: space-between; gap: 7px; color: var(--muted); font-size: 11px; }
.badge { display: inline-flex; align-items: center; min-height: 23px; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: #55595d; font-size: 10px; font-weight: 700; }
.badge--rating { position: absolute; right: 8px; top: 8px; background: rgba(17,19,21,.86); color: white; backdrop-filter: blur(8px); }
.badge--archived { position: absolute; left: 8px; top: 8px; background: rgba(151,83,14,.88); color: white; }
.photo-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(145deg, #e8e7e2, #d7d6d0); color: #8b8c88; font-size: 34px; }
.collage { width: 100%; height: 100%; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; background: #d8d7d2; }
.collage > img, .collage > .photo-placeholder { width: 100%; height: 100%; object-fit: cover; font-size: 18px; }
.collage > :only-child { grid-column: 1 / 3; grid-row: 1 / 3; }
.collage > :nth-child(2):last-child { grid-row: 1 / 3; }
.collage > :nth-child(1):nth-last-child(2) { grid-row: 1 / 3; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.section-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.section-heading__action { border: 0; background: transparent; color: var(--accent-dark); font-weight: 700; cursor: pointer; }

.detail-cover { margin: -16px -14px 0; background: var(--surface-dark); }
.detail-cover__media { position: relative; min-height: 360px; max-height: 68vh; overflow: hidden; }
.detail-cover__media img { width: 100%; height: 100%; min-height: 360px; max-height: 68vh; object-fit: cover; }
.detail-cover__media .photo-placeholder { min-height: 360px; background: #24282b; color: #73797d; }
.detail-cover__count { position: absolute; right: 14px; bottom: 14px; padding: 7px 10px; border-radius: 999px; background: rgba(17,19,21,.78); color: white; font-size: 12px; backdrop-filter: blur(9px); }
.detail-sheet { position: relative; margin: -24px -4px 0; padding: 22px 18px 16px; border-radius: 25px 25px 0 0; background: var(--bg); }
.detail-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.detail-code { color: var(--accent-dark); font-size: 11px; font-weight: 850; letter-spacing: .12em; }
.detail-title { margin: 4px 0 0; font-size: 28px; line-height: 1.04; letter-spacing: -.045em; }
.detail-subtitle { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.rating-pill { flex: 0 0 auto; padding: 10px 12px; border-radius: 14px; background: var(--surface-dark); color: white; font-weight: 800; }
.action-row { margin-top: 17px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.action-button { min-height: 47px; padding: 7px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-size: 12px; font-weight: 700; cursor: pointer; }
.action-button--danger { color: var(--danger); }
.info-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.info-cell { padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.info-cell span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.info-cell strong { display: block; margin-top: 4px; font-size: 14px; overflow-wrap: anywhere; }
.note-card { margin-top: 16px; padding: 16px; border-radius: 16px; background: #ebe8df; }
.note-card h3 { margin: 0 0 7px; font-size: 13px; }
.note-card p { margin: 0; color: #4f5356; white-space: pre-wrap; font-size: 14px; line-height: 1.5; }
.gallery-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.gallery-strip::-webkit-scrollbar { display: none; }
.gallery-strip__image { position: relative; aspect-ratio: 4 / 5; border: 0; padding: 0; border-radius: 18px; overflow: hidden; background: #ddd; scroll-snap-align: start; cursor: pointer; }
.gallery-strip__image img { width: 100%; height: 100%; object-fit: cover; }
.small-item-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.small-item { border: 0; padding: 0; overflow: hidden; border-radius: 14px; background: var(--surface); text-align: left; cursor: pointer; }
.small-item__media { aspect-ratio: 1 / 1; background: #e2e1dc; }
.small-item__media img { width: 100%; height: 100%; object-fit: cover; }
.small-item__body { padding: 8px; }
.small-item__code { color: var(--accent-dark); font-size: 9px; font-weight: 800; }
.small-item__name { margin-top: 3px; font-size: 11px; font-weight: 700; line-height: 1.2; }
.small-item__role { margin-top: 4px; color: var(--muted); font-size: 9px; }

.form-page { display: grid; gap: 15px; }
.form-card { padding: 16px; border-radius: 20px; background: var(--surface); box-shadow: 0 7px 22px rgba(20,22,24,.05); }
.form-card h2 { margin: 0 0 14px; font-size: 18px; }
.form-grid { display: grid; gap: 13px; }
.form-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: 7px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 750; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfbf9;
  color: var(--text);
  outline: none;
}
.field textarea { min-height: 105px; resize: vertical; line-height: 1.45; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217,119,50,.12); }
.field__hint { color: var(--muted); font-size: 11px; line-height: 1.35; }
.required { color: var(--danger); }
.form-actions { position: sticky; z-index: 10; bottom: calc(var(--nav-height) + var(--safe-bottom) + 8px); padding: 9px; display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; border-radius: 18px; background: rgba(244,243,239,.92); backdrop-filter: blur(14px); }
.button { min-height: 47px; padding: 10px 16px; border: 0; border-radius: 14px; font-weight: 800; cursor: pointer; }
.button--primary { background: var(--surface-dark); color: white; }
.button--accent { background: var(--accent); color: white; }
.button--secondary { background: var(--surface-2); color: var(--text); }
.button--danger { background: #fae7e7; color: var(--danger); }
.button:disabled { opacity: .55; cursor: not-allowed; }

.photo-uploader { display: grid; gap: 12px; }
.upload-zone { min-height: 110px; padding: 18px; display: grid; place-items: center; border: 1.5px dashed #bbb9b1; border-radius: 17px; background: #faf9f6; text-align: center; cursor: pointer; }
.upload-zone strong { display: block; font-size: 14px; }
.upload-zone span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.photo-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.photo-editor__item { position: relative; border-radius: 15px; overflow: hidden; background: #ddd; }
.photo-editor__image { aspect-ratio: 4 / 5; }
.photo-editor__image img { width: 100%; height: 100%; object-fit: cover; }
.photo-editor__toolbar { padding: 7px; display: grid; grid-template-columns: 1fr auto auto; gap: 4px; background: var(--surface); }
.mini-button { min-width: 32px; min-height: 30px; padding: 4px 7px; border: 0; border-radius: 8px; background: var(--surface-2); font-size: 10px; font-weight: 750; cursor: pointer; }
.mini-button.is-primary { background: #fff0e5; color: var(--accent-dark); }
.mini-button--danger { color: var(--danger); }
.drag-handle { position: absolute; left: 7px; top: 7px; padding: 5px 7px; border-radius: 8px; background: rgba(17,19,21,.72); color: white; font-size: 10px; cursor: grab; }

.item-picker { display: grid; gap: 11px; }
.item-picker__grid { max-height: 55vh; padding: 2px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; overflow-y: auto; }
.picker-card { position: relative; border: 2px solid transparent; border-radius: 13px; background: #f0efea; overflow: hidden; cursor: pointer; }
.picker-card.is-selected { border-color: var(--accent); }
.picker-card__media { aspect-ratio: 1; }
.picker-card__media img { width: 100%; height: 100%; object-fit: cover; }
.picker-card__body { padding: 7px; background: var(--surface); }
.picker-card__code { font-size: 8px; color: var(--accent-dark); font-weight: 800; }
.picker-card__name { margin-top: 2px; font-size: 10px; font-weight: 700; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.picker-card__check { position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(17,19,21,.82); color: white; font-weight: 900; opacity: 0; }
.picker-card.is-selected .picker-card__check { opacity: 1; background: var(--accent); }
.selected-items { display: grid; gap: 8px; }
.selected-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(90px, .8fr) 34px; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 13px; background: #fbfbf9; }
.selected-row img, .selected-row .photo-placeholder { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; font-size: 17px; }
.selected-row__text { min-width: 0; }
.selected-row__text strong, .selected-row__text span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.selected-row__text strong { font-size: 12px; }
.selected-row__text span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.selected-row select { min-width: 0; height: 38px; border: 1px solid var(--line); border-radius: 9px; background: white; font-size: 11px; }
.selected-row__remove { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #fae7e7; color: var(--danger); cursor: pointer; }

.empty-state { min-height: 48vh; padding: 35px 18px; display: grid; place-items: center; align-content: center; text-align: center; }
.empty-state__icon { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); color: var(--accent); font-size: 34px; }
.empty-state h2 { margin: 18px 0 7px; font-size: 23px; letter-spacing: -.03em; }
.empty-state p { margin: 0 0 18px; max-width: 35ch; color: var(--muted); line-height: 1.45; }

.settings-list { display: grid; gap: 9px; }
.settings-card { width: 100%; padding: 15px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-align: left; cursor: pointer; }
.settings-card__text strong { display: block; font-size: 14px; }
.settings-card__text span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.settings-card__arrow { color: var(--muted); font-size: 20px; }
.warning-card { padding: 15px; border-radius: 16px; background: #fff2dc; color: #734e12; font-size: 13px; line-height: 1.45; }

.modal-backdrop { position: fixed; z-index: 100; inset: 0; padding: 18px; display: grid; place-items: end center; background: rgba(9,10,11,.55); backdrop-filter: blur(5px); }
.modal { width: min(100%, 520px); max-height: 88vh; padding: 20px; border-radius: 24px; background: var(--surface); box-shadow: 0 24px 70px rgba(0,0,0,.26); overflow-y: auto; }
.modal h2 { margin: 0; font-size: 21px; letter-spacing: -.03em; }
.modal p { margin: 9px 0 0; color: var(--muted); font-size: 14px; line-height: 1.48; white-space: pre-wrap; }
.modal__actions { margin-top: 20px; display: grid; gap: 8px; }
.action-sheet__option { width: 100%; min-height: 54px; padding: 12px 14px; border: 0; border-radius: 14px; background: var(--surface-2); text-align: left; font-weight: 750; cursor: pointer; }
.action-sheet__option span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 500; }
.action-sheet__option--danger { background: #fae7e7; color: var(--danger); }
.viewer { position: fixed; z-index: 120; inset: 0; display: grid; grid-template-rows: auto 1fr; background: rgba(0,0,0,.96); }
.viewer__top { padding: calc(10px + env(safe-area-inset-top,0px)) 12px 10px; display: flex; justify-content: flex-end; }
.viewer__close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: white; font-size: 24px; cursor: pointer; }
.viewer__stage { min-height: 0; display: grid; place-items: center; overflow: auto; }
.viewer__stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.toast-root { position: fixed; z-index: 140; left: 50%; bottom: calc(var(--nav-height) + var(--safe-bottom) + 14px); width: min(calc(100% - 28px), 480px); transform: translateX(-50%); display: grid; gap: 8px; pointer-events: none; }
.toast { padding: 12px 14px; border-radius: 14px; background: rgba(17,19,21,.94); color: white; box-shadow: var(--shadow); font-size: 13px; animation: toast-in .22s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.loading { min-height: 45vh; display: grid; place-items: center; color: var(--muted); }
.loading::before { content: ""; width: 34px; height: 34px; border: 3px solid #d4d2cc; border-top-color: var(--accent); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 700px) {
  .main-content { width: min(100%, 1180px); margin-inline: auto; padding-inline: 24px; }
  .topbar { padding-inline: max(24px, calc((100vw - 1180px)/2 + 24px)); }
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .detail-cover { margin-inline: 0; border-radius: 24px; overflow: hidden; }
  .detail-sheet { margin-inline: 18px; }
  .small-item-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .gallery-strip { grid-auto-columns: 42%; }
  .photo-editor { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .item-picker__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .modal-backdrop { place-items: center; }
}
@media (min-width: 1020px) {
  .card-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .hero { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px; }
  .hero__stats { width: 360px; margin-top: 0; }
  .form-grid--desktop { grid-template-columns: 1fr 1fr; align-items: start; }
  .bottom-nav { left: 50%; right: auto; bottom: 18px; width: 540px; height: 70px; padding: 7px; transform: translateX(-50%); border-radius: 22px; box-shadow: 0 18px 45px rgba(17,19,21,.28); }
  .main-content { padding-bottom: 120px; }
  .form-actions { bottom: 98px; }
}


/* Dopolnitve za dinamične vsebine */
.empty-state { grid-column: 1 / -1; }
.small-item-grid > .warning-card, .card-grid > .field__hint { grid-column: 1 / -1; }
.detail-cover__media > .collage { position: absolute; inset: 0; }
.selected-row .selected-role {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  font-size: 11px;
  outline: none;
}
.selected-row .selected-role:focus { border-color: var(--accent); }

/* Strežniška različica */
button:disabled, input:disabled { opacity: .62; cursor: wait; }
.progress-bar { height: 8px; overflow: hidden; border-radius: 999px; background: var(--surface-2); }
.progress-bar span { display: block; width: 35%; height: 100%; border-radius: inherit; background: var(--accent); transition: width .25s ease; }
.progress-bar span.is-indeterminate { animation: progress-slide 1.15s ease-in-out infinite alternate; }
@keyframes progress-slide { from { transform: translateX(-65%); } to { transform: translateX(190%); } }

.auth-page { min-height: 100vh; background: var(--surface-dark); }
.auth-shell { min-height: 100vh; display: grid; align-content: center; gap: 0; max-width: 920px; margin: 0 auto; padding: max(24px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom)); }
.auth-hero { padding: 34px 24px 54px; color: white; }
.auth-hero__kicker { color: #e3a072; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.auth-hero h1 { margin: 12px 0 14px; font-size: clamp(52px, 17vw, 86px); line-height: .84; letter-spacing: -.075em; }
.auth-hero p { max-width: 38ch; margin: 0; color: #b7babd; line-height: 1.5; }
.auth-card { margin-top: -28px; padding: 24px; border-radius: 28px; background: var(--bg); box-shadow: 0 -12px 40px rgba(0,0,0,.16); }
.auth-card h2 { margin: 0; font-size: 27px; letter-spacing: -.04em; }
.auth-card > div > p { margin: 6px 0 20px; color: var(--muted); }
.auth-submit { width: 100%; }
.auth-error { padding: 12px 14px; border-radius: 13px; background: #fdeaea; color: #8d2020; font-size: 13px; line-height: 1.4; }
@media (min-width: 760px) {
  .auth-shell { grid-template-columns: 1.1fr .9fr; align-items: center; }
  .auth-hero { padding: 48px; }
  .auth-card { margin: 0; padding: 34px; }
}
