@charset "UTF-8";
[hidden] {
  display: none !important;
}
input[type="hidden"] {
  display: none !important;
}
.split > *,
.form-grid > *,
.account-grid > * {
  min-width: 0;
}
input,
select,
textarea {
  min-width: 0;
  max-width: 100%;
}
img {
  max-width: 100%;
}
.issue-preview > img {
  display: block;
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  margin-bottom: 1rem;
  border-radius: 6px;
}
:root {
  color-scheme: light;
  --bg: #f3f6f8;
  --surface: #fff;
  --text: #182d38;
  --muted: #526674;
  --line: #d5dfe4;
  --accent: #806020;
  --on-accent: #fff;
  --soft: #f4efe3;
  --ok: #176453;
  --danger: #a42d3a;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-size: 15px;
  line-height: 1.55;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
h1,
h2,
h3,
p {
  margin: 0 0 1rem;
}
h1,
h2,
.brand,
.document-title {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}
h1 {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.15;
}
h2 {
  font-size: 1.6rem;
}
h3 {
  font-size: 1.1rem;
}
p {
  max-width: 72ch;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 7px;
  padding: 0.65rem 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  min-height: 42px;
}
button:hover,
.button:hover {
  border-color: var(--accent);
  background: var(--soft);
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.primary:hover {
  background: var(--text);
  color: var(--surface);
}
.danger {
  color: var(--danger);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.7rem 0.8rem;
  min-height: 44px;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.95rem;
}
label small,
.help {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.85rem;
  margin-top: 0.3rem;
}
input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  display: inline;
  vertical-align: middle;
}
.check {
  font-weight: 400;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}
input[type="file"] {
  font-size: 0.86rem;
}
.muted {
  color: var(--muted);
}
.mono {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.85em;
  overflow-wrap: anywhere;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin: 1rem 0;
}
.error {
  color: var(--danger);
  font-weight: 600;
}
.notice {
  padding: 1rem 1.25rem;
  background: var(--soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  margin: 1rem 0;
}
.badge {
  display: inline-block;
  background: var(--soft);
  color: var(--text);
  border: 1px solid var(--line);
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}
.status-ACTIVE {
  color: var(--ok);
}
.status-REPORTED_LOST,
.status-REVOKED {
  color: var(--danger);
}
.skip {
  position: fixed;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--surface);
  padding: 0.7rem;
}
.skip:focus {
  top: 1rem;
}
.loading {
  max-width: 750px;
  margin: 12vh auto;
  padding: 2rem;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  max-width: 1500px;
  margin: auto;
}
.login-story {
  background: #183630;
  color: #f6f8f4;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2rem, 5vw, 5rem);
  overflow: hidden;
}
.brand {
  font-size: 2rem;
  letter-spacing: 0.08em;
}
.brand small {
  font: 400 0.78rem system-ui;
  letter-spacing: 0;
  display: block;
  margin-top: 0.2rem;
}
.login-story h1 {
  max-width: 11ch;
  margin: 1.3rem 0;
  font-size: clamp(2.8rem, 5vw, 4.7rem);
}
.login-story p {
  max-width: 36ch;
  color: #d4e2dc;
}
.hero-product {
  width: min(290px, 75%);
  aspect-ratio: 1;
  object-fit: cover;
  align-self: flex-end;
  border-radius: 50% 50% 9px 9px;
  margin-top: 1rem;
}
.login-forms {
  padding: clamp(2rem, 6vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}
.login-forms form {
  max-width: 440px;
  width: 100%;
}
.login-forms hr {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
}
.shell {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 1.6rem 1.1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.sidebar .brand {
  padding: 0.5rem 0.6rem 2rem;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.sidebar nav button {
  justify-content: flex-start;
  background: transparent;
  border-color: transparent;
  font-weight: 500;
}
.sidebar nav button[aria-current="page"] {
  background: var(--soft);
  color: var(--accent);
  font-weight: 700;
  border-left: 3px solid var(--accent);
}
.sidebar-footer {
  margin-top: auto;
  padding: 0.8rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.workspace {
  min-width: 0;
}
.topbar {
  padding: 1rem 2rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.topbar strong {
  display: block;
}
.topbar .actions {
  margin: 0;
}
.content {
  max-width: 1450px;
  margin: auto;
  padding: 2rem 2.5rem 4rem;
}
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.page-head p {
  color: var(--muted);
  margin: 0.8rem 0;
}
.surface {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.6rem;
  margin-bottom: 1.3rem;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 1.4rem;
  align-items: start;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}
.wide {
  grid-column: 1/-1;
}
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 1.2rem 0 2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
.stats strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 2.6rem;
  font-weight: 400;
}
.stats span {
  color: var(--muted);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 1rem;
}
.product {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.product img,
.product .placeholder {
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
  background: var(--soft);
}
.product-body {
  padding: 1rem;
}
.product-body h3 {
  margin: 0.35rem 0;
}
.product-body .actions {
  margin-bottom: 0;
}
.placeholder {
  display: grid;
  place-content: center;
  color: var(--muted);
  min-height: 100px;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}
th,
td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  background: var(--soft);
  font-weight: 600;
  white-space: nowrap;
}
tr:last-child td {
  border-bottom: 0;
}
td small {
  display: block;
  color: var(--muted);
}
td button {
  min-height: 36px;
  padding: 0.35rem 0.7rem;
}
td .actions {
  margin: 0;
}
.empty {
  padding: 3rem 1rem;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 8px;
}
.preview-photo {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--bg);
}
.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.photo-pair img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.steps article {
  border-top: 2px solid var(--accent);
  padding: 1rem 0;
}
.steps h3 {
  margin: 0.7rem 0;
}
.steps p {
  color: var(--muted);
  font-size: 0.92rem;
}
.search {
  max-width: 440px;
  margin-bottom: 1rem;
}
.document {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  padding: 2rem;
  max-width: 950px;
  margin: auto;
  position: relative;
}
.document-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1.2rem;
  margin-bottom: 1.5rem;
}
.document-title {
  font-size: 1.8rem;
}
.document-meta {
  font-size: 0.85rem;
  color: var(--muted);
}
.document-hero {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.6rem;
}
.document-hero > img {
  width: 100%;
  border-radius: 80px 80px 5px 5px;
  object-fit: cover;
  aspect-ratio: 1;
}
.specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1.3rem 0;
}
.specs div {
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 0;
}
.specs dt {
  color: var(--muted);
  font-size: 0.8rem;
}
.specs dd {
  margin: 0.2rem 0;
  font-weight: 600;
}
.document-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.qr {
  flex-shrink: 0;
}
.qr svg {
  max-width: 100%;
  height: auto;
}
.document-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 1rem 0 0;
}
.public {
  max-width: 1000px;
  margin: auto;
  padding: 2rem 1rem 4rem;
}
.public-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.7rem;
}
.public-state {
  padding: 4rem 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
}
.public-state p {
  margin: 1rem auto;
}
.demo-banner {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  max-width: 1100px;
  width: 95vw;
  max-height: 94vh;
  padding: 2.8rem 1.4rem 1.4rem;
}
dialog::backdrop {
  background: #14242ecc;
}
.dialog-close {
  position: absolute;
  right: 0.7rem;
  top: 0.5rem;
  font-size: 1.5rem;
  padding: 0.1rem 0.7rem;
  min-height: 32px;
}
.timeline {
  list-style: none;
  padding: 0;
}
.timeline li {
  border-left: 2px solid var(--line);
  padding: 0 0 1.3rem 1rem;
}
.timeline li small {
  display: block;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  padding: 0.8rem 1.3rem;
  border-radius: 7px;
  background: var(--text);
  color: var(--surface);
  z-index: 100;
  box-shadow: 0 4px 24px #0002;
  display: none;
}
#toast.visible {
  display: block;
}
#printArea {
  display: none;
}
.palette-options {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.theme-preview {
  padding: 1rem;
  border-left: 4px solid var(--accent);
  background: var(--soft);
}
.file-note {
  font-size: 0.8rem;
  color: var(--muted);
}
.issue-preview {
  position: sticky;
  top: 1rem;
}
.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
html[data-theme="ink"] {
  --bg: #f6f6f3;
  --accent: #374454;
  --soft: #e9edf0;
}
html[data-theme="emerald"] {
  --bg: #edf5f0;
  --accent: #176453;
  --soft: #e0eee7;
}
html[data-theme="vault"] {
  color-scheme: dark;
  --bg: #111c25;
  --surface: #1a2934;
  --text: #eff4f6;
  --muted: #b0c3cf;
  --line: #3e5363;
  --accent: #e2c276;
  --on-accent: #172631;
  --soft: #283846;
  --ok: #8bdbb5;
  --danger: #ffb3b8;
}
html[data-theme="terminal"] {
  --bg: #edf2f6;
  --accent: #245b7b;
  --soft: #e0ebf2;
}
html[data-palette="1"] {
  --accent: #883e50;
  --soft: #f7e9ec;
}
html[data-palette="2"] {
  --accent: #285e82;
  --soft: #e5eff6;
}
html[data-palette="3"] {
  --accent: #3e6543;
  --soft: #e6f0e7;
}
html[data-theme="vault"][data-palette="1"] {
  --accent: #efb9c5;
  --soft: #3d2f3d;
}
html[data-theme="vault"][data-palette="2"] {
  --accent: #a7d4f0;
  --soft: #243e52;
}
html[data-theme="vault"][data-palette="3"] {
  --accent: #a2d7b3;
  --soft: #264338;
}
@media (max-width: 1000px) {
  .shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .content {
    padding: 1.5rem;
  }
  .topbar {
    padding: 1rem 1.5rem;
  }
  .split,
  .account-grid {
    grid-template-columns: 1fr;
  }
  .issue-preview {
    position: static;
  }
  .document-hero {
    grid-template-columns: 180px 1fr;
  }
  .login-story {
    padding: 2.5rem;
  }
  .login-forms {
    padding: 2.5rem;
  }
}
@media (max-width: 700px) {
  .login {
    display: block;
  }
  .login-story {
    padding: 2rem;
    min-height: 350px;
  }
  .login-story h1 {
    font-size: 2.8rem;
    max-width: 13ch;
  }
  .hero-product {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    width: 130px;
    opacity: 0.6;
  }
  .login-story p {
    max-width: 24ch;
    position: relative;
    z-index: 1;
  }
  .login-forms {
    padding: 2rem 1.3rem;
  }
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0.8rem;
  }
  .sidebar .brand,
  .sidebar-footer {
    display: none;
  }
  .sidebar nav {
    flex-direction: row;
    overflow: auto;
    white-space: nowrap;
  }
  .sidebar nav button {
    flex-shrink: 0;
  }
  .sidebar nav button[aria-current="page"] {
    border-left: 0;
    border-bottom: 3px solid var(--accent);
  }
  .topbar {
    padding: 0.8rem 1rem;
  }
  .topbar small {
    display: none;
  }
  .topbar strong {
    font-size: 0.9rem;
  }
  .topbar button {
    min-height: 36px;
    padding: 0.4rem 0.65rem;
  }
  .content {
    padding: 1.2rem 1rem 3rem;
  }
  .page-head {
    display: block;
  }
  .page-head .actions {
    margin-top: 0;
  }
  .surface {
    padding: 1.1rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .wide {
    grid-column: auto;
  }
  .stats {
    gap: 1.3rem;
  }
  .stats strong {
    font-size: 2rem;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .document {
    padding: 1.1rem;
  }
  .document-top {
    display: block;
  }
  .document-top .badge {
    margin-top: 0.8rem;
  }
  .document-hero {
    grid-template-columns: 1fr;
  }
  .document-hero > img {
    max-height: 300px;
    object-fit: contain;
    border-radius: 6px;
  }
  .specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .document-bottom {
    align-items: flex-start;
    gap: 0.8rem;
  }
  .document-title {
    font-size: 1.4rem;
  }
  .public-head .brand {
    font-size: 1.5rem;
  }
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  dialog {
    padding: 2.8rem 0.7rem 0.7rem;
  }
  .demo-banner {
    padding: 0.5rem;
    font-size: 0.8rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  @page {
    size: A4;
    margin: 12mm;
  }
  body {
    background: white;
    color: #182d38;
  }
  body > * {
    display: none !important;
  }
  #printArea {
    display: block !important;
  }
  .document {
    color: #182d38;
    background: white;
    border-color: #bbb;
    max-width: none;
    break-inside: avoid;
  }
  .document * {
    color: inherit;
  }
  .document-note {
    font-size: 9pt;
  }
  .document-hero {
    grid-template-columns: 180px 1fr;
  }
  .document-hero > img {
    max-height: 200px;
  }
  .document-title {
    font-size: 20pt;
  }
  .specs {
    grid-template-columns: repeat(3, 1fr);
  }
  body[data-print="card"] .document {
    width: 85mm;
    height: 54mm;
    overflow: hidden;
    padding: 3mm;
    font-size: 7pt;
    border: 1px solid #888;
  }
  body[data-print="card"] .document-title {
    font-size: 10pt;
  }
  body[data-print="card"] .document-top {
    padding: 0;
    margin: 0 0 2mm;
    border-bottom: 1px solid #888;
  }
  body[data-print="card"] .document-hero {
    grid-template-columns: 18mm 1fr;
    gap: 2mm;
  }
  body[data-print="card"] .document-hero > img {
    height: 18mm;
    border-radius: 0;
  }
  body[data-print="card"] .specs {
    margin: 0;
    gap: 1mm;
    grid-template-columns: repeat(3, 1fr);
  }
  body[data-print="card"] .specs div {
    padding: 0;
    border: 0;
  }
  body[data-print="card"] .specs dt {
    font-size: 5.5pt;
  }
  body[data-print="card"] .document-hero h2 {
    font-size: 9pt;
    margin: 0;
  }
  body[data-print="card"] .document-bottom {
    position: absolute;
    right: 2mm;
    bottom: 2mm;
    border: 0;
    padding: 0;
  }
  body[data-print="card"] .qr svg {
    width: 16mm;
    height: 16mm;
  }
  body[data-print="card"] .document-note,
  body[data-print="card"] .private-info,
  body[data-print="card"] .document-meta,
  body[data-print="card"] .document-bottom > div:first-child {
    display: none;
  }
  body[data-print="tag"] .document {
    width: 72mm;
    height: 12mm;
    overflow: hidden;
    padding: 1mm 13mm 1mm 1mm;
    font-size: 5pt;
    border: 1px solid #888;
  }
  body[data-print="tag"] .document-top {
    margin: 0;
    padding: 0;
    border: 0;
  }
  body[data-print="tag"] .document-title {
    font-size: 6pt;
  }
  body[data-print="tag"] .document-hero {
    display: block;
  }
  body[data-print="tag"] .document-hero h2 {
    font: 600 5pt system-ui;
    margin: 0;
  }
  body[data-print="tag"] .document-hero > img,
  body[data-print="tag"] .specs,
  body[data-print="tag"] .document-note,
  body[data-print="tag"] .private-info,
  body[data-print="tag"] .document-meta,
  body[data-print="tag"] .badge,
  body[data-print="tag"] .document-bottom > div:first-child {
    display: none;
  }
  body[data-print="tag"] .document-bottom {
    position: absolute;
    right: 0;
    top: 0;
    border: 0;
    padding: 0;
  }
  body[data-print="tag"] .qr svg {
    width: 12mm;
    height: 12mm;
  }
}

.local-qr {
  display: block;
  background: #fff;
}
.print-demo {
  display: none;
}
@media print {
  body[data-print="card"] .document .notice,
  body[data-print="tag"] .document .notice {
    display: none;
  }
  body[data-print="card"] .print-demo,
  body[data-print="tag"] .print-demo {
    display: block;
    font-size: 6pt;
    color: #a42d3a;
  }
}

/* Five independent visual systems. Screen-only: physical document sizes stay fixed. */
@media screen {
  .look-switch {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
    min-width: 0;
  }
  .look-switch label {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 500;
  }
  .look-switch select {
    padding: 0.35rem 0.55rem;
    min-height: 34px;
    font-size: 0.8rem;
    max-width: 180px;
  }
  .look-status {
    font-size: 0.7rem;
    padding: 0.35rem 0.5rem;
    min-height: 32px;
    align-self: end;
  }
  .topbar {
    flex-wrap: wrap;
  }
  .atmosphere {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 300px;
    margin: 0 0 2.5rem;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--surface);
  }
  .atmosphere-copy {
    padding: clamp(1.5rem, 4vw, 3.5rem);
    align-self: center;
    z-index: 2;
  }
  .atmosphere-copy h2 {
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.05;
    margin: 1rem 0;
    max-width: 15ch;
  }
  .atmosphere-copy p {
    font-size: 0.85rem;
    max-width: 34ch;
    color: var(--muted);
  }
  .atmosphere-label {
    font-size: 0.8rem;
    color: var(--accent);
  }
  .atmosphere-art {
    margin: 0;
    position: relative;
    min-width: 0;
    min-height: 250px;
  }
  .atmosphere-art img {
    width: 100%;
    height: 100%;
    position: absolute;
    object-fit: cover;
  }
  .atmosphere-art figcaption {
    position: absolute;
    bottom: 0.6rem;
    right: 0.6rem;
    font-size: 0.65rem;
    background: #fff;
    color: #26343a;
    border-radius: 3px;
    padding: 0.2rem 0.5rem;
    z-index: 3;
  }
  .theme-studio {
    margin: 0 0 2rem;
  }
  .theme-cards {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.7rem;
  }
  .theme-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    padding: 0.6rem;
    gap: 0.6rem;
    font-weight: 400;
    justify-content: flex-start;
    border: 2px solid var(--line);
    min-width: 0;
  }
  .theme-card[aria-pressed="true"] {
    border-color: var(--accent);
    outline: 1px solid var(--accent);
    outline-offset: 2px;
  }
  .theme-card > span:last-child {
    font-size: 0.75rem;
    color: var(--muted);
  }
  .theme-mini {
    display: block;
    height: 90px;
    position: relative;
    overflow: hidden;
    flex: none;
  }
  .theme-mini i,
  .theme-mini b,
  .theme-mini em {
    position: absolute;
    display: block;
  }
  .mini-classic {
    background: #f2ebdc;
    border: 4px double #907538;
  }
  .mini-classic i {
    inset: 5px 0 auto;
    height: 10px;
    background: #26352f;
  }
  .mini-classic b {
    inset: 26px auto 10px 10px;
    width: 35%;
    background: #bdac88;
  }
  .mini-classic em {
    inset: 32px 10px 24px 52%;
    border-block: 3px double #907538;
  }
  .mini-ink {
    background: #fafafa;
    border-left: 14px solid #252b32;
  }
  .mini-ink i {
    inset: 8px 10px auto 10px;
    height: 8px;
    background: #202d34;
  }
  .mini-ink b {
    inset: 26px 42% 8px 10px;
    background: #bac5cf;
  }
  .mini-ink em {
    inset: 40px 8px 8px 65%;
    background: #d8d9d7;
  }
  .mini-emerald {
    background: #e5efe6;
    border-right: 18px solid #315d4a;
    border-radius: 14px;
  }
  .mini-emerald i {
    inset: 18px 52% 12px 10px;
    background: #a5bca4;
    border-radius: 50% 50% 10px 10px;
  }
  .mini-emerald b {
    inset: 28px 8px 4px 56%;
    background: #c2ccc0;
    border-radius: 50% 50% 10px 10px;
  }
  .mini-vault {
    background: #12121c;
    border-top: 12px solid #353244;
  }
  .mini-vault i {
    inset: 7px 10px 9px 50%;
    border: 1px solid #d5b972;
    border-radius: 50%;
    background: radial-gradient(ellipse, #a4956a, #242430 65%);
  }
  .mini-vault b {
    inset: 30px 57% 30px 10px;
    border-block: 3px solid #d5b972;
  }
  .mini-terminal {
    background: repeating-linear-gradient(
      0deg,
      #d9e4e9 0 1px,
      #f1f6f8 1px 12px
    );
    border-left: 18px solid #29404f;
  }
  .mini-terminal i {
    inset: 12px 8px 12px 8px;
    background: repeating-linear-gradient(
      0deg,
      transparent 0 14px,
      #577d91 14px 17px
    );
  }

  /* Heritage: horizontal masthead, framed register, landscape inventory. */
  html[data-theme="classic"] {
    --bg: #ede9de;
    --surface: #fffdf8;
    --text: #30352f;
    --muted: #5d6258;
    --line: #c9c2af;
    --accent: #71551d;
    --soft: #e8dfc6;
  }
  [data-theme="classic"] .shell {
    display: block;
  }
  [data-theme="classic"] .sidebar {
    height: auto;
    position: static;
    padding: 1.3rem 3rem 0.65rem;
    border: 0;
    border-bottom: 4px double var(--accent);
    align-items: center;
  }
  [data-theme="classic"] .sidebar .brand {
    padding: 0 0 1rem;
    text-align: center;
    letter-spacing: 0.13em;
    font-size: 2.2rem;
  }
  [data-theme="classic"] .sidebar nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.2rem;
  }
  [data-theme="classic"] .sidebar nav button {
    border-radius: 0;
    font-family: Georgia, serif;
    font-size: 0.9rem;
  }
  [data-theme="classic"] .sidebar nav button[aria-current] {
    border: 0;
    border-bottom: 2px solid var(--accent);
  }
  [data-theme="classic"] .sidebar-footer {
    display: none;
  }
  [data-theme="classic"] .topbar {
    background: transparent;
    border: 0;
    max-width: 1450px;
    margin: auto;
  }
  [data-theme="classic"] .atmosphere {
    border: 6px double var(--accent);
    padding: 1rem;
    grid-template-columns: 1fr 1fr;
    background: var(--surface);
    animation: heritage-settle 0.55s ease-out;
  }
  [data-theme="classic"] .atmosphere-copy {
    text-align: center;
  }
  [data-theme="classic"] .atmosphere-copy h2,
  [data-theme="classic"] .atmosphere-copy p {
    margin: 1rem auto;
  }
  [data-theme="classic"] .atmosphere-art {
    border: 1px solid var(--line);
  }
  [data-theme="classic"] .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
  }
  [data-theme="classic"] .product {
    display: grid;
    grid-template-columns: 42% 1fr;
    border: 4px double var(--line);
    border-radius: 0;
  }
  [data-theme="classic"] .product > img,
  [data-theme="classic"] .product > .placeholder {
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
  }
  [data-theme="classic"] .product-body h3 {
    font-family: Georgia, serif;
    font-size: 1.3rem;
  }
  [data-theme="classic"]
    :is(button, .button, .surface, .table-wrap, input, select, textarea) {
    border-radius: 0;
  }
  [data-theme="classic"] .document {
    border: 6px double var(--accent);
  }
  [data-theme="classic"] .document-title {
    font-variant: small-caps;
    font-size: 2rem;
  }
  [data-theme="classic"] .document-hero > img {
    border-radius: 0;
    padding: 0.5rem;
    border: 4px double var(--line);
  }
  [data-theme="classic"] .stats {
    justify-content: space-around;
    border-block: 4px double var(--line);
    padding: 1rem;
  }
  [data-theme="classic"] .surface {
    border: 4px double var(--line);
  }
  @keyframes heritage-settle {
    from {
      opacity: 0;
      transform: scale(0.97);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  /* Gallery: asymmetric exhibition, slim rail, edge-to-edge photographs. */
  html[data-theme="ink"] {
    --bg: #f9fafb;
    --surface: #fff;
    --text: #202b36;
    --muted: #58626e;
    --line: #d5dbe1;
    --accent: #364553;
    --soft: #e6edf3;
    font-family: "Arial", sans-serif;
  }
  [data-theme="ink"] .shell {
    grid-template-columns: 175px minmax(0, 1fr);
  }
  [data-theme="ink"] .sidebar {
    padding: 2rem 0.8rem;
    border-right: 0;
    background: var(--text);
    color: var(--surface);
  }
  [data-theme="ink"] .sidebar .brand {
    font-family: Arial, sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    padding: 0.5rem 0.5rem 3rem;
  }
  [data-theme="ink"] .sidebar nav button {
    color: var(--surface);
    border-radius: 0;
    font-size: 0.85rem;
    padding: 0.9rem 0.5rem;
  }
  [data-theme="ink"] .sidebar nav button[aria-current] {
    background: var(--surface);
    color: var(--text);
    border: 0;
  }
  [data-theme="ink"] .sidebar-footer {
    color: #d2dbe2;
  }
  [data-theme="ink"] :is(h1, h2, .document-title) {
    font-family: Arial, sans-serif;
    font-weight: 700;
    letter-spacing: -0.055em;
  }
  [data-theme="ink"] h1 {
    font-size: clamp(2.5rem, 4.5vw, 4rem);
  }
  [data-theme="ink"] .topbar {
    background: transparent;
    padding-block: 1.5rem;
    border-bottom: 0;
  }
  [data-theme="ink"] .atmosphere {
    grid-template-columns: 1fr 1.2fr;
    background: transparent;
    min-height: 350px;
    overflow: visible;
    animation: gallery-open 0.65s cubic-bezier(0.2, 0.7, 0.3, 1);
  }
  [data-theme="ink"] .atmosphere-copy {
    padding: 2rem 1rem 2rem 0;
    align-self: end;
  }
  [data-theme="ink"] .atmosphere-copy h2 {
    font-size: clamp(2.7rem, 5vw, 5rem);
    max-width: 8ch;
  }
  [data-theme="ink"] .atmosphere-art {
    margin-left: 1rem;
    border-left: 12px solid var(--soft);
  }
  [data-theme="ink"] .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 1.5rem;
    align-items: start;
  }
  [data-theme="ink"] .product {
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  [data-theme="ink"] .product:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }
  [data-theme="ink"] .product img {
    aspect-ratio: 1;
    transition:
      clip-path 0.4s,
      filter 0.4s;
    clip-path: inset(0);
  }
  [data-theme="ink"] .product:hover img {
    clip-path: inset(3%);
    filter: contrast(1.08);
  }
  [data-theme="ink"] .product-body {
    padding: 1rem 0;
    border-top: 2px solid var(--text);
  }
  [data-theme="ink"] .product-body h3 {
    font-size: 1.45rem;
    letter-spacing: -0.04em;
  }
  [data-theme="ink"]
    :is(button, .button, .surface, .table-wrap, input, select, textarea) {
    border-radius: 0;
  }
  [data-theme="ink"] .surface {
    border: 0;
    border-top: 2px solid var(--text);
    padding: 1.5rem 0;
    background: transparent;
  }
  [data-theme="ink"] .document-hero {
    grid-template-columns: 1.1fr 1fr;
  }
  [data-theme="ink"] .document-hero > img {
    border-radius: 0;
    aspect-ratio: 1;
  }
  [data-theme="ink"] .document-top {
    border-bottom: 5px solid var(--text);
  }
  [data-theme="ink"] .stats strong {
    font-family: Arial, sans-serif;
    font-weight: 700;
  }
  @keyframes gallery-open {
    from {
      clip-path: inset(0 100% 0 0);
    }
    to {
      clip-path: inset(0);
    }
  }

  /* Boutique: navigation on the right, arch niches, soft organic geometry. */
  html[data-theme="emerald"] {
    --bg: #e7eee7;
    --surface: #fcfdf9;
    --text: #243e33;
    --muted: #51675b;
    --line: #b9cebd;
    --accent: #245b46;
    --soft: #d6e6d8;
  }
  [data-theme="emerald"] .shell {
    grid-template-columns: minmax(0, 1fr) 225px;
  }
  [data-theme="emerald"] .sidebar {
    grid-column: 2;
    grid-row: 1;
    border: 0;
    padding: 2rem 1rem;
    background: var(--soft);
    border-radius: 50px 0 0 0;
  }
  [data-theme="emerald"] .workspace {
    grid-column: 1;
    grid-row: 1;
  }
  [data-theme="emerald"] :is(h1, h2, h3, .brand, .document-title) {
    font-family: "Palatino Linotype", Palatino, Georgia, serif;
  }
  [data-theme="emerald"] .sidebar nav button {
    border-radius: 30px;
    padding: 0.85rem 1rem;
  }
  [data-theme="emerald"] .sidebar nav button[aria-current] {
    background: var(--accent);
    color: var(--on-accent);
    border: 0;
  }
  [data-theme="emerald"] .topbar {
    background: transparent;
    border: 0;
  }
  [data-theme="emerald"] .atmosphere {
    border-radius: 120px 120px 25px 25px;
    min-height: 370px;
    background: var(--soft);
    grid-template-columns: 1.2fr 1fr;
    animation: botanical-bloom 0.65s ease-out;
  }
  [data-theme="emerald"] .atmosphere-copy {
    padding: 3rem 2.2rem;
  }
  [data-theme="emerald"] .atmosphere-copy h2 {
    font-size: clamp(2rem, 3.4vw, 3.3rem);
  }
  [data-theme="emerald"] .atmosphere-art {
    margin: 2rem 2rem 0 0;
    border-radius: 180px 180px 0 0;
    overflow: hidden;
  }
  [data-theme="emerald"] .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: start;
    padding-top: 1rem;
  }
  [data-theme="emerald"] .product {
    border: 0;
    border-radius: 150px 150px 22px 22px;
    background: var(--surface);
    transition: box-shadow 0.3s;
  }
  [data-theme="emerald"] .product:nth-child(3n + 2) {
    margin-top: 3rem;
  }
  [data-theme="emerald"] .product > img {
    aspect-ratio: 0.83;
    border-radius: 150px 150px 0 0;
    object-fit: cover;
    padding: 0.6rem;
  }
  [data-theme="emerald"] .product:hover {
    box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 18%, transparent);
  }
  [data-theme="emerald"] .product-body {
    padding: 1.2rem;
  }
  [data-theme="emerald"] :is(button, .button) {
    border-radius: 30px;
  }
  [data-theme="emerald"] .surface {
    border-radius: 24px;
    border: 0;
    padding: 1.8rem;
  }
  [data-theme="emerald"] :is(input, select, textarea) {
    border-radius: 14px;
  }
  [data-theme="emerald"] .document {
    border-radius: 55px 55px 18px 18px;
    padding: 2.5rem;
    border: 0;
  }
  [data-theme="emerald"] .document-hero > img {
    border-radius: 120px 120px 14px 14px;
    aspect-ratio: 0.85;
  }
  [data-theme="emerald"] .stats {
    border: 0;
    border-radius: 40px;
    background: var(--surface);
    justify-content: space-around;
    padding: 1.5rem;
  }
  [data-theme="emerald"] .steps article {
    border: 0;
    background: var(--soft);
    border-radius: 24px;
    padding: 1.5rem;
  }
  @keyframes botanical-bloom {
    from {
      opacity: 0;
      clip-path: ellipse(35% 30% at 60% 65%);
    }
    to {
      opacity: 1;
      clip-path: ellipse(100% 100% at 50% 50%);
    }
  }

  /* Velvet: dark salon, horizontal navigation, cinematic product stage. */
  html[data-theme="vault"] {
    --bg: #121219;
    --surface: #20202b;
    --text: #f1ece1;
    --muted: #c0bcc9;
    --line: #4c4658;
    --accent: #e4c681;
    --on-accent: #211a0c;
    --soft: #332e3c;
    --ok: #9ce0bc;
    --danger: #ffb6bc;
  }
  [data-theme="vault"] .shell {
    display: block;
  }
  [data-theme="vault"] .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 1.4rem 2.5rem;
    background: var(--bg);
  }
  [data-theme="vault"] .sidebar .brand {
    padding: 0;
    flex: none;
    font-size: 1.65rem;
  }
  [data-theme="vault"] .sidebar nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.15rem;
  }
  [data-theme="vault"] .sidebar nav button {
    font-size: 0.8rem;
    padding: 0.55rem 0.75rem;
    border-radius: 3px;
  }
  [data-theme="vault"] .sidebar nav button[aria-current] {
    border: 1px solid var(--accent);
    color: var(--accent);
  }
  [data-theme="vault"] .sidebar-footer {
    display: none;
  }
  [data-theme="vault"] .topbar {
    background: transparent;
    border: 0;
    max-width: 1450px;
    margin: auto;
  }
  [data-theme="vault"] .atmosphere {
    min-height: 440px;
    grid-template-columns: 1fr 1.4fr;
    background: radial-gradient(ellipse at 75% 60%, var(--soft), var(--bg) 70%);
    border-block: 1px solid var(--line);
    animation: velvet-focus 0.9s ease-out;
  }
  [data-theme="vault"] .atmosphere-copy h2 {
    font-size: clamp(2.6rem, 5vw, 5rem);
    font-style: italic;
    max-width: 10ch;
  }
  [data-theme="vault"] .atmosphere-art {
    margin: 1.6rem;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--accent);
    box-shadow: 0 0 60px color-mix(in srgb, var(--accent) 12%, transparent);
  }
  [data-theme="vault"] .atmosphere-art img {
    object-fit: cover;
    border-radius: 50%;
    opacity: 0.92;
  }
  [data-theme="vault"] .art-orbit {
    position: absolute;
    inset: 12px;
    border: 1px solid #ffffff40;
    border-radius: 50%;
    pointer-events: none;
  }
  [data-theme="vault"] .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
  [data-theme="vault"] .product {
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid var(--accent);
    background: var(--surface);
    transition: box-shadow 0.4s;
  }
  [data-theme="vault"] .product > img {
    aspect-ratio: 1.9;
    object-fit: cover;
    transition: filter 0.45s;
    filter: brightness(0.85);
  }
  [data-theme="vault"] .product:hover > img {
    filter: brightness(1.12);
  }
  [data-theme="vault"] .product:hover {
    box-shadow: 0 14px 40px #0007;
  }
  [data-theme="vault"] .product-body {
    padding: 1.5rem 1.8rem;
  }
  [data-theme="vault"] .product-body h3 {
    font-family: Georgia, serif;
    font-size: 1.6rem;
    font-weight: 400;
  }
  [data-theme="vault"] :is(button, .button, .surface, input, select, textarea) {
    border-radius: 3px;
  }
  [data-theme="vault"] .surface {
    border: 1px solid var(--line);
    box-shadow: 0 8px 32px #0003;
  }
  [data-theme="vault"] .document {
    border: 1px solid var(--accent);
    background: radial-gradient(
      ellipse at top right,
      var(--soft),
      var(--surface) 65%
    );
  }
  [data-theme="vault"] .document-top {
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2rem;
  }
  [data-theme="vault"] .document-title {
    font-style: italic;
  }
  [data-theme="vault"] .document-hero {
    grid-template-columns: 1fr 1.2fr;
  }
  [data-theme="vault"] .document-hero > img {
    border-radius: 50%;
    aspect-ratio: 1;
  }
  [data-theme="vault"] .stats strong {
    color: var(--accent);
    font-size: 3.5rem;
  }
  @keyframes velvet-focus {
    from {
      opacity: 0;
      filter: blur(7px);
    }
    to {
      opacity: 1;
      filter: blur(0);
    }
  }

  /* Workbench: compact operations, measurement grid, row inventory. */
  html[data-theme="terminal"] {
    --bg: #e9eff3;
    --surface: #f9fcfe;
    --text: #203b4c;
    --muted: #496577;
    --line: #a9becb;
    --accent: #245b7b;
    --soft: #d8e6ef;
    font-family: "Segoe UI", sans-serif;
    font-size: 14px;
  }
  [data-theme="terminal"] .shell {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  [data-theme="terminal"] .sidebar {
    background: var(--text);
    color: var(--surface);
    padding: 1rem 0.65rem;
    border: 0;
  }
  [data-theme="terminal"] .sidebar .brand {
    font-family: Consolas, monospace;
    font-size: 1.5rem;
    padding: 0.5rem 0.5rem 2rem;
  }
  [data-theme="terminal"] .sidebar nav button {
    color: var(--surface);
    border-radius: 0;
    font-size: 0.85rem;
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid #ffffff25;
  }
  [data-theme="terminal"] .sidebar nav button[aria-current] {
    background: var(--soft);
    color: var(--text);
    border-left: 4px solid var(--accent);
  }
  [data-theme="terminal"] .sidebar-footer {
    color: #d2dce3;
  }
  [data-theme="terminal"] :is(h1, h2, h3, .document-title, .stats strong) {
    font-family: Consolas, "Courier New", monospace;
    font-weight: 600;
  }
  [data-theme="terminal"] h1 {
    font-size: 2rem;
  }
  [data-theme="terminal"] .content {
    padding: 1.3rem 1.5rem 3rem;
  }
  [data-theme="terminal"] .topbar {
    padding: 0.75rem 1.5rem;
    border-bottom: 2px solid var(--accent);
  }
  [data-theme="terminal"] .atmosphere {
    min-height: 210px;
    grid-template-columns: 1.5fr 0.7fr;
    border: 1px solid var(--line);
    background-color: var(--soft);
    background-image:
      linear-gradient(var(--line) 1px, transparent 1px),
      linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 24px 24px;
    animation: bench-scan 0.35s steps(8, end);
  }
  [data-theme="terminal"] .atmosphere-copy {
    padding: 1.5rem;
    background: var(--surface);
    margin: 1.2rem;
    border-left: 4px solid var(--accent);
  }
  [data-theme="terminal"] .atmosphere-copy h2 {
    font-size: clamp(1.6rem, 2.3vw, 2.5rem);
    max-width: 19ch;
  }
  [data-theme="terminal"] .atmosphere-art {
    min-height: 180px;
    margin: 1rem;
    border: 1px solid var(--text);
  }
  [data-theme="terminal"] .atmosphere-art img {
    object-fit: cover;
  }
  [data-theme="terminal"] .product-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--line);
  }
  [data-theme="terminal"] .product {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  [data-theme="terminal"] .product:last-child {
    border-bottom: 0;
  }
  [data-theme="terminal"] .product > img,
  [data-theme="terminal"] .product > .placeholder {
    aspect-ratio: 1;
    height: 100%;
    max-height: 160px;
    object-fit: cover;
    border-right: 1px solid var(--line);
  }
  [data-theme="terminal"] .product-body {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) 1fr auto;
    gap: 0.4rem 1rem;
    align-items: center;
    padding: 0.8rem 1rem;
  }
  [data-theme="terminal"] .product-body .check {
    grid-column: 1/-1;
    margin: 0;
    font-size: 0.75rem;
  }
  [data-theme="terminal"] .product-body > .mono {
    grid-column: 1;
    font-size: 0.75rem;
  }
  [data-theme="terminal"] .product-body h3 {
    grid-column: 1;
    margin: 0;
    font-size: 1rem;
  }
  [data-theme="terminal"] .product-body p {
    grid-column: 2;
    grid-row: 2/4;
    margin: 0;
    font-size: 0.8rem;
  }
  [data-theme="terminal"] .product-body .actions {
    grid-column: 3;
    grid-row: 2/4;
    margin: 0;
  }
  [data-theme="terminal"]
    :is(button, .button, .surface, .table-wrap, input, select, textarea) {
    border-radius: 0;
  }
  [data-theme="terminal"] .surface {
    padding: 1.1rem;
    border-top: 3px solid var(--accent);
  }
  [data-theme="terminal"] .stats {
    gap: 0;
    border: 1px solid var(--line);
    padding: 0;
    background: var(--surface);
  }
  [data-theme="terminal"] .stats > div {
    flex: 1;
    padding: 1rem;
    border-right: 1px solid var(--line);
  }
  [data-theme="terminal"] .stats strong {
    font-size: 2rem;
  }
  [data-theme="terminal"] .steps {
    gap: 0.75rem;
  }
  [data-theme="terminal"] .steps article {
    background: var(--surface);
    padding: 1rem;
    border: 1px solid var(--line);
  }
  [data-theme="terminal"] .document {
    border: 2px solid var(--text);
    padding: 1.5rem;
  }
  [data-theme="terminal"] .document-top {
    background: var(--soft);
    padding: 1rem;
  }
  [data-theme="terminal"] .document-hero > img {
    border-radius: 0;
    border: 1px solid var(--line);
  }
  [data-theme="terminal"] .specs {
    gap: 0;
    border: 1px solid var(--line);
  }
  [data-theme="terminal"] .specs div {
    padding: 0.6rem;
    border: 1px solid var(--line);
  }
  @keyframes bench-scan {
    from {
      clip-path: inset(0 0 100% 0);
    }
    to {
      clip-path: inset(0);
    }
  }

  /* Palettes recolor the whole material system, not just action buttons. */
  html[data-palette="1"] {
    --accent: #873c52;
    --soft: #f0dfe5;
    --bg: #f3eaee;
    --line: #cfb8c1;
    --text: #432d38;
    --muted: #715563;
  }
  html[data-palette="2"] {
    --accent: #285b86;
    --soft: #dce8f4;
    --bg: #ebf0f7;
    --line: #b7c7da;
    --text: #233c56;
    --muted: #50657e;
  }
  html[data-palette="3"] {
    --accent: #42613b;
    --soft: #e0e8d6;
    --bg: #edf0e7;
    --line: #bcc9ac;
    --text: #34402d;
    --muted: #5d6b51;
  }
  html[data-theme="vault"][data-palette="1"] {
    --accent: #efb9d0;
    --soft: #422e42;
    --bg: #1b121e;
    --surface: #2b1e30;
    --line: #735369;
    --text: #f7eaf2;
    --muted: #d2b9c9;
  }
  html[data-theme="vault"][data-palette="2"] {
    --accent: #a7d4f0;
    --soft: #243e52;
    --bg: #0f1926;
    --surface: #1c2c3e;
    --line: #4b6682;
    --text: #eaf4fc;
    --muted: #b8ccdf;
  }
  html[data-theme="vault"][data-palette="3"] {
    --accent: #a2d7b3;
    --soft: #264338;
    --bg: #101e19;
    --surface: #1c3028;
    --line: #4d705c;
    --text: #e8f5eb;
    --muted: #b8d2c0;
  }
  [data-theme="vault"] .theme-card {
    background: var(--surface);
  }

  @media (max-width: 1100px) {
    .theme-cards {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    [data-theme="emerald"] .shell {
      grid-template-columns: minmax(0, 1fr) 190px;
    }
    [data-theme="emerald"] .product-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    [data-theme="classic"] .product-grid {
      grid-template-columns: 1fr;
    }
    [data-theme="vault"] .sidebar {
      flex-direction: column;
      gap: 1rem;
    }
    [data-theme="terminal"] .product-body {
      grid-template-columns: 1fr 1fr;
    }
    [data-theme="terminal"] .product-body .actions {
      grid-column: 1/-1;
      grid-row: auto;
    }
  }
  @media (max-width: 700px) {
    .look-switch {
      width: 100%;
      order: 3;
      gap: 0.5rem;
      padding-top: 0.6rem;
      border-top: 1px solid var(--line);
    }
    .look-switch label {
      flex: 1;
    }
    .look-switch select {
      max-width: none;
      width: 100%;
      font-size: 0.8rem;
    }
    .look-status {
      max-width: 105px;
      font-size: 0.65rem;
    }
    .theme-cards {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .atmosphere {
      margin-bottom: 1.5rem;
    }
    [data-theme] .shell {
      display: flex;
      flex-direction: column;
    }
    [data-theme] .sidebar {
      width: 100%;
      height: auto;
      position: static;
      padding: 0.7rem;
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      border-radius: 0;
    }
    [data-theme] .sidebar .brand,
    [data-theme] .sidebar-footer {
      display: none;
    }
    [data-theme] .sidebar nav {
      flex-direction: row;
      flex-wrap: nowrap;
      justify-content: flex-start;
      overflow: auto;
    }
    [data-theme] .sidebar nav button {
      font-size: 0.82rem;
      padding: 0.7rem 0.9rem;
      flex-shrink: 0;
    }
    [data-theme] .workspace {
      width: 100%;
    }
    [data-theme] .topbar {
      padding: 0.8rem 1rem;
      width: 100%;
    }
    [data-theme] .content {
      padding: 1.1rem 1rem 3rem;
    }
    [data-theme] .atmosphere {
      min-height: 0;
    }
    [data-theme="classic"] .atmosphere {
      grid-template-columns: 1fr;
      padding: 0.6rem;
      border-width: 4px;
    }
    [data-theme="classic"] .atmosphere-copy {
      padding: 1.2rem 0.7rem;
    }
    [data-theme="classic"] .atmosphere-art {
      min-height: 180px;
    }
    [data-theme="classic"] .product {
      grid-template-columns: 36% 1fr;
    }
    [data-theme="classic"] .product-body {
      padding: 0.8rem;
    }
    [data-theme="classic"] .product-body .check {
      font-size: 0.75rem;
    }
    [data-theme="classic"] .product-body h3 {
      font-size: 1.1rem;
    }
    [data-theme="ink"] .atmosphere {
      display: flex;
      flex-direction: column-reverse;
      gap: 1rem;
      overflow: hidden;
    }
    [data-theme="ink"] .atmosphere-art {
      margin: 0;
      min-height: 240px;
    }
    [data-theme="ink"] .atmosphere-copy {
      padding: 0.5rem 0;
    }
    [data-theme="ink"] .atmosphere-copy h2 {
      max-width: 14ch;
      font-size: 2.8rem;
    }
    [data-theme="ink"] .product-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 1.5rem 0.75rem;
    }
    [data-theme="ink"] .product:first-child {
      grid-column: 1/-1;
      grid-row: auto;
    }
    [data-theme="ink"] .product-body h3 {
      font-size: 1.1rem;
    }
    [data-theme="ink"] .product-body .check {
      font-size: 0.7rem;
    }
    [data-theme="emerald"] .sidebar {
      order: 0;
      border-radius: 0 0 24px 24px;
    }
    [data-theme="emerald"] .atmosphere {
      grid-template-columns: 1fr;
      border-radius: 80px 80px 20px 20px;
    }
    [data-theme="emerald"] .atmosphere-copy {
      padding: 2.5rem 1.5rem 1rem;
      text-align: center;
    }
    [data-theme="emerald"] .atmosphere-copy h2,
    [data-theme="emerald"] .atmosphere-copy p {
      margin: 1rem auto;
    }
    [data-theme="emerald"] .atmosphere-art {
      min-height: 230px;
      margin: 0 2rem;
      border-radius: 120px 120px 0 0;
    }
    [data-theme="emerald"] .product-grid {
      gap: 0.7rem;
    }
    [data-theme="emerald"] .product:nth-child(3n + 2) {
      margin-top: 0;
    }
    [data-theme="emerald"] .product:nth-child(even) {
      margin-top: 2rem;
    }
    [data-theme="emerald"] .product-body {
      padding: 0.8rem;
    }
    [data-theme="emerald"] .product-body .check {
      font-size: 0.7rem;
    }
    [data-theme="emerald"] .product-body h3 {
      font-size: 1.1rem;
    }
    [data-theme="emerald"] .document {
      padding: 1.3rem;
      border-radius: 30px 30px 12px 12px;
    }
    [data-theme="vault"] .atmosphere {
      grid-template-columns: 1fr;
      display: flex;
      flex-direction: column-reverse;
    }
    [data-theme="vault"] .atmosphere-art {
      min-height: 270px;
      margin: 1rem 2rem;
    }
    [data-theme="vault"] .atmosphere-copy {
      padding: 1.2rem;
    }
    [data-theme="vault"] .atmosphere-copy h2 {
      font-size: 3rem;
      max-width: 14ch;
    }
    [data-theme="vault"] .product-grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
    [data-theme="vault"] .product-body {
      padding: 1.2rem;
    }
    [data-theme="terminal"] .atmosphere {
      grid-template-columns: 1fr;
    }
    [data-theme="terminal"] .atmosphere-copy {
      margin: 0.8rem;
      padding: 1rem;
    }
    [data-theme="terminal"] .atmosphere-art {
      min-height: 130px;
      margin: 0 0.8rem 0.8rem;
    }
    [data-theme="terminal"] .atmosphere-art img {
      object-position: 50% 55%;
    }
    [data-theme="terminal"] .product {
      grid-template-columns: 76px minmax(0, 1fr);
    }
    [data-theme="terminal"] .product-body {
      grid-template-columns: 1fr;
      gap: 0.3rem;
      padding: 0.7rem;
    }
    [data-theme="terminal"] .product-body p,
    [data-theme="terminal"] .product-body .actions {
      grid-column: 1;
      grid-row: auto;
    }
    [data-theme] .document-hero {
      grid-template-columns: 1fr;
    }
    [data-theme] .stats {
      gap: 1rem;
      justify-content: flex-start;
    }
    [data-theme="terminal"] .stats {
      gap: 0;
      flex-wrap: wrap;
    }
    [data-theme="terminal"] .stats > div {
      min-width: 110px;
    }
    [data-theme] .steps {
      grid-template-columns: 1fr;
    }
    [data-theme] .product-body .actions button {
      font-size: 0.8rem;
      padding: 0.5rem 0.65rem;
    }
  }
}
/* The same identity follows task transitions and document dialogs. */
@media screen {
  [data-theme="classic"] {
    --reveal: heritage-settle;
  }
  [data-theme="ink"] {
    --reveal: gallery-open;
  }
  [data-theme="emerald"] {
    --reveal: botanical-bloom;
  }
  [data-theme="vault"] {
    --reveal: velvet-focus;
  }
  [data-theme="terminal"] {
    --reveal: bench-scan;
  }
  main.content:not(:has(.atmosphere)),
  dialog[open] {
    animation: var(--reveal) 0.4s ease-out;
  }
  .sidebar nav {
    scrollbar-width: thin;
  }
}

/* Aurum is the replacement skin for the persisted "classic" theme id. */
@media screen {
  html[data-theme="classic"][data-palette] {
    color-scheme: dark;
    --bg: #11110f;
    --surface: #1d1d19;
    --text: #f7f4eb;
    --muted: #c3bdae;
    --line: #514831;
    --accent: #efce7c;
    --on-accent: #211b0d;
    --soft: #302b20;
    --ok: #afe1bd;
    --danger: #ffbfc2;
    --reveal: aurum-arrive;
    --gold-image: url("/assets/kuyumcu-renders/aurum-gold-texture.jpg");
    --gold-line: #b69549;
    --salon: #11110f;
  }
  html[data-theme="classic"][data-palette="1"] {
    color-scheme: light;
    --bg: #f5f3ee;
    --surface: #fffefa;
    --text: #27251e;
    --muted: #625e53;
    --line: #d8ceb6;
    --accent: #77591e;
    --soft: #eae3d2;
    --ok: #265e41;
    --danger: #982b3b;
    --salon: #efe9dd;
  }
  html[data-theme="classic"][data-palette="2"] {
    --bg: #10291f;
    --surface: #19382c;
    --text: #f1f5e9;
    --muted: #c2d0c2;
    --line: #4c6951;
    --soft: #274a38;
    --salon: #10291f;
  }
  html[data-theme="classic"][data-palette="3"] {
    --bg: #2c111d;
    --surface: #401f2d;
    --text: #fbf0f4;
    --muted: #d7bfc9;
    --line: #765363;
    --soft: #55303e;
    --salon: #2c111d;
  }
  [data-theme="classic"] .shell {
    display: block;
    background: var(--bg);
  }
  [data-theme="classic"] .sidebar {
    height: auto;
    position: relative;
    padding: 1.5rem 2rem 1rem;
    border: 0;
    border-bottom: 1px solid var(--gold-line);
    background: var(--surface);
    align-items: center;
  }
  [data-theme="classic"] .sidebar::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: var(--gold-image) center/cover;
    pointer-events: none;
  }
  [data-theme="classic"] .sidebar .brand {
    padding: 0 0 1.1rem;
    letter-spacing: 0.1em;
    font-size: 1.8rem;
    color: var(--text);
  }
  [data-theme="classic"] .sidebar .brand small {
    letter-spacing: 0.04em;
    color: var(--muted);
  }
  [data-theme="classic"] .sidebar nav {
    flex-direction: row;
    gap: 0.4rem;
    justify-content: center;
  }
  [data-theme="classic"] .sidebar nav button {
    font-family: inherit;
    font-size: 0.85rem;
    border: 1px solid transparent;
    border-radius: 2px;
    position: relative;
    padding: 0.6rem 0.9rem;
  }
  [data-theme="classic"] .sidebar nav button[aria-current] {
    background: var(--soft);
    border: 1px solid var(--gold-line);
    color: var(--accent);
    font-weight: 600;
  }
  [data-theme="classic"] .topbar {
    padding: 1.2rem 2.5rem;
    background: transparent;
    max-width: 1500px;
    border: 0;
  }
  [data-theme="classic"] .content {
    max-width: 1500px;
    padding: 1rem 2.5rem 4rem;
  }
  [data-theme="classic"] h1 {
    font-family: Georgia, serif;
    font-weight: 400;
    letter-spacing: -0.035em;
    font-size: clamp(2rem, 3vw, 3rem);
  }
  [data-theme="classic"] h2 {
    font-family: "Palatino Linotype", Georgia, serif;
    font-weight: 400;
  }
  [data-theme="classic"] .atmosphere.aurum-atmosphere {
    min-height: 470px;
    display: flex;
    align-items: center;
    isolation: isolate;
    position: relative;
    grid-template-columns: none;
    padding: 0;
    margin: 0 0 2.5rem;
    border: 0;
    border-radius: 3px;
    background: #0d0d0b;
    box-shadow: 0 18px 45px #0003;
    overflow: hidden;
    animation: aurum-arrive 1s cubic-bezier(0.2, 0.65, 0.25, 1);
  }
  [data-theme="classic"] .aurum-atmosphere::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background: linear-gradient(
      110deg,
      transparent 38%,
      #ffeec521 49%,
      transparent 60%
    );
    transform: translateX(-120%);
    animation: aurum-light 1.8s 0.25s ease-out both;
  }
  [data-theme="classic"] .atmosphere-art {
    position: absolute;
    inset: 0;
    min-height: 0;
    border: 0;
    margin: 0;
  }
  [data-theme="classic"] .atmosphere-art img {
    object-position: 70% 50%;
    object-fit: cover;
    width: 100%;
    height: 100%;
    border: 0;
    transition: transform 1s cubic-bezier(0.2, 0.65, 0.25, 1);
  }
  [data-theme="classic"] .atmosphere-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      90deg,
      #0c0c0bfa 0%,
      #0c0c0be8 24%,
      #0c0c0b70 45%,
      transparent 70%
    );
  }
  [data-theme="classic"] .atmosphere:hover .atmosphere-art img {
    transform: scale(1.025);
  }
  [data-theme="classic"] .atmosphere-art figcaption {
    background: #12120fde;
    color: #e9e3d5;
    border: 1px solid #a58b4f80;
    bottom: 1rem;
    right: 1rem;
    padding: 0.25rem 0.65rem;
  }
  [data-theme="classic"] .atmosphere-copy {
    padding: 3.5rem;
    position: relative;
    width: 50%;
    text-align: left;
    align-self: center;
    z-index: 3;
    color: #faf7ef;
  }
  [data-theme="classic"] .aurum-wordmark {
    display: block;
    font-family: Georgia, serif;
    font-size: clamp(3.6rem, 6.5vw, 6.7rem);
    font-weight: 400;
    letter-spacing: 0.035em;
    line-height: 1.1;
    color: #e7c46d;
    background: var(--gold-image) 45% 40%/150% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px #0004);
  }
  [data-theme="classic"] .atmosphere-copy h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.7rem);
    font-family: Georgia, serif;
    font-style: italic;
    font-weight: 400;
    line-height: 1.2;
    max-width: 14ch;
    margin: 1rem 0 1.4rem;
    color: #fffaf0;
  }
  [data-theme="classic"] .atmosphere-copy p {
    font-size: 0.85rem;
    line-height: 1.9;
    color: #ded7c9;
    margin: 0;
    max-width: 32ch;
  }
  [data-theme="classic"] .aurum-material {
    display: block;
    width: 85px;
    height: 3px;
    margin-top: 1.8rem;
    background: var(--gold-image) center/cover;
  }
  [data-theme="classic"]
    :is(button, .button, input, select, textarea, .table-wrap, .surface) {
    border-radius: 3px;
  }
  [data-theme="classic"] :is(button, .button) {
    font-weight: 500;
    transition:
      background-color 0.22s,
      border-color 0.22s,
      box-shadow 0.22s;
    position: relative;
  }
  [data-theme="classic"] :is(button, .button):hover {
    border-color: var(--gold-line);
    box-shadow: 0 0 0 1px #d3ad4b30;
  }
  [data-theme="classic"] :is(button, .button).primary {
    color: #211a09;
    border: 1px solid #c5a254;
    background-color: #e1bc61;
    background-image: linear-gradient(#fff0bf59, #fff0bf59), var(--gold-image);
    background-position: 50% 45%;
    background-size: 200% auto;
    font-weight: 650;
    box-shadow:
      inset 0 1px 0 #fff8,
      0 3px 10px #0002;
    transition:
      background-position 0.65s,
      box-shadow 0.3s;
  }
  [data-theme="classic"] :is(button, .button).primary:hover {
    background-position: 85% 60%;
    color: #211a09;
    box-shadow:
      inset 0 1px 0 #fff9,
      0 4px 18px #d6b25b30;
  }
  [data-theme="classic"] .page-head {
    border-bottom: 1px solid var(--line);
    padding-bottom: 1rem;
    margin-bottom: 1.3rem;
  }
  [data-theme="classic"] .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.8rem;
  }
  [data-theme="classic"] .product {
    display: block;
    position: relative;
    isolation: isolate;
    border: 1px solid var(--gold-line);
    border-radius: 3px;
    overflow: hidden;
    background: #fffefa;
    box-shadow: 0 10px 25px #0002;
    transition:
      transform 0.4s,
      box-shadow 0.4s;
  }
  [data-theme="classic"] .product::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(
      115deg,
      transparent 32%,
      #fff7de40 48%,
      transparent 62%
    );
    transform: translateX(-125%);
    transition: transform 0.9s ease;
  }
  [data-theme="classic"] .product:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px #0004;
  }
  [data-theme="classic"] .product:hover::after {
    transform: translateX(125%);
  }
  [data-theme="classic"] .product > img,
  [data-theme="classic"] .product > .placeholder {
    height: auto;
    width: 100%;
    aspect-ratio: 1.22;
    object-fit: cover;
    border: 0;
    display: block;
    background: #f2f0e9;
  }
  [data-theme="classic"] .product-body {
    --surface: #fffefa;
    --text: #27251e;
    --muted: #625e53;
    --line: #d6cbb5;
    --soft: #eee7d5;
    --accent: #77591e;
    --ok: #265e41;
    --danger: #982b3b;
    padding: 1.3rem;
    color: var(--text);
    border-top: 2px solid #b99b52;
  }
  [data-theme="classic"] .product-body h3 {
    font-family: Georgia, serif;
    font-size: 1.4rem;
    font-weight: 400;
    margin: 0.5rem 0;
  }
  [data-theme="classic"] .product-body .check {
    font-size: 0.8rem;
    font-weight: 400;
  }
  [data-theme="classic"] .product-body > .mono {
    color: #77591e;
    font-size: 0.75rem;
  }
  [data-theme="classic"] .product-body .actions {
    margin-top: 1.2rem;
    justify-content: space-between;
  }
  [data-theme="classic"] .product-body .actions button {
    flex: 1;
  }
  [data-theme="classic"] .surface {
    border: 1px solid var(--line);
    border-top: 2px solid var(--gold-line);
    box-shadow: 0 12px 30px #0001;
    padding: 1.6rem;
  }
  [data-theme="classic"] .stats {
    border: 0;
    border-block: 1px solid var(--gold-line);
    padding: 1.3rem 0;
    justify-content: space-around;
    background: var(--surface);
  }
  [data-theme="classic"] .stats strong {
    font-family: Georgia, serif;
    font-weight: 400;
    color: var(--accent);
    font-size: 2.8rem;
  }
  [data-theme="classic"] .steps {
    gap: 1.2rem;
  }
  [data-theme="classic"] .steps article {
    padding: 1.4rem;
    border: 1px solid var(--line);
    background: var(--surface);
  }
  [data-theme="classic"] .steps h3 {
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: 1.3rem;
  }
  [data-theme="classic"] .document {
    border: 1px solid var(--gold-line);
    border-top: 4px solid var(--gold-line);
    background: var(--surface);
    box-shadow: 0 12px 36px #0002;
    padding: 2.5rem;
  }
  [data-theme="classic"] .document-title {
    font-variant: normal;
    font-size: 2rem;
  }
  [data-theme="classic"] .document-top {
    border-bottom: 1px solid var(--gold-line);
  }
  [data-theme="classic"] .document-hero {
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
  }
  [data-theme="classic"] .document-hero > img {
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 2px;
    aspect-ratio: 1;
    object-fit: cover;
  }
  [data-theme="classic"] .badge {
    border: 1px solid var(--line);
    background: var(--soft);
  }
  [data-theme="classic"] .theme-card {
    border-radius: 3px;
  }
  .mini-classic {
    background: #121210;
    border: 1px solid #bfa35a;
  }
  .mini-classic i {
    inset: 8px 10px auto;
    height: 8px;
    background: #dcbf74 url("/assets/kuyumcu-renders/aurum-gold-texture.jpg")
      center/cover;
  }
  .mini-classic b {
    inset: 26px 8px 8px 45%;
    width: auto;
    background: url("/assets/kuyumcu-renders/aurum-editorial.jpg") 70%
      center/cover;
    border: 0;
  }
  .mini-classic em {
    inset: 37px 62% 29px 10px;
    border: 0;
    background: #dcbf74 url("/assets/kuyumcu-renders/aurum-gold-texture.jpg")
      center/cover;
  }
  @keyframes aurum-arrive {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @keyframes aurum-light {
    from {
      transform: translateX(-120%);
    }
    to {
      transform: translateX(120%);
    }
  }
  @media (max-width: 1100px) {
    [data-theme="classic"] .product-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 1.2rem;
    }
    [data-theme="classic"] .atmosphere-copy {
      padding: 2.4rem;
      width: 54%;
    }
    [data-theme="classic"] .content {
      padding: 1rem 1.5rem 3rem;
    }
  }
  @media (max-width: 700px) {
    [data-theme="classic"] .sidebar {
      padding: 0.65rem;
      overflow: hidden;
    }
    [data-theme="classic"] .sidebar nav {
      justify-content: flex-start;
    }
    [data-theme="classic"] .sidebar::after {
      left: 0;
      right: 0;
    }
    [data-theme="classic"] .content {
      padding: 1rem 1rem 3rem;
    }
    [data-theme="classic"] .topbar {
      padding: 0.8rem 1rem;
    }
    [data-theme="classic"] .atmosphere.aurum-atmosphere {
      min-height: 580px;
      padding: 0;
      margin-bottom: 1.6rem;
      display: flex;
      align-items: flex-start;
    }
    [data-theme="classic"] .atmosphere-copy {
      width: 100%;
      padding: 2rem 1.4rem;
      align-self: flex-start;
    }
    [data-theme="classic"] .aurum-wordmark {
      font-size: 4rem;
    }
    [data-theme="classic"] .atmosphere-copy h2 {
      font-size: 1.8rem;
      max-width: 18ch;
      margin: 0.7rem 0 1rem;
    }
    [data-theme="classic"] .atmosphere-copy p {
      font-size: 0.8rem;
      line-height: 1.65;
    }
    [data-theme="classic"] .aurum-material {
      margin-top: 1rem;
    }
    [data-theme="classic"] .atmosphere-art {
      position: absolute;
      inset: 0;
      border: 0;
      min-height: 0;
    }
    [data-theme="classic"] .atmosphere-art img {
      object-position: 65% 100%;
      object-fit: contain;
      transform: scale(1.3);
      transform-origin: center bottom;
    }
    [data-theme="classic"] .atmosphere:hover .atmosphere-art img {
      transform: scale(1.3);
    }
    [data-theme="classic"] .atmosphere-art::after {
      background: linear-gradient(
        180deg,
        #0c0c0b 0%,
        #0c0c0bf5 32%,
        #0c0c0b65 52%,
        transparent 73%
      );
    }
    [data-theme="classic"] .atmosphere-art figcaption {
      bottom: 0.6rem;
      right: 0.6rem;
      font-size: 0.6rem;
    }
    [data-theme="classic"] .product-grid {
      grid-template-columns: 1fr;
      gap: 1.4rem;
    }
    [data-theme="classic"] .product {
      display: block;
      grid-template-columns: none;
    }
    [data-theme="classic"] .product > img {
      height: auto;
      aspect-ratio: 1.2;
    }
    [data-theme="classic"] .product-body {
      padding: 1.2rem;
    }
    [data-theme="classic"] .product-body h3 {
      font-size: 1.5rem;
    }
    [data-theme="classic"] .product-body .check {
      font-size: 0.8rem;
    }
    [data-theme="classic"] .stats {
      justify-content: flex-start;
      gap: 1.2rem;
      padding: 1rem;
    }
    [data-theme="classic"] .stats strong {
      font-size: 2.2rem;
    }
    [data-theme="classic"] .steps {
      grid-template-columns: 1fr;
    }
    [data-theme="classic"] .document {
      padding: 1.2rem;
    }
    [data-theme="classic"] .document-hero {
      grid-template-columns: 1fr;
      gap: 1.2rem;
    }
  }
}
@media screen and (max-width: 700px) {
  [data-theme="classic"] .sidebar {
    align-items: stretch;
  }
  [data-theme="classic"] .sidebar nav {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
}

/* Prizma replaces the old workbench skin; terminal id preserves existing data. */
@media screen {
  html[data-theme="terminal"][data-palette] {
    color-scheme: light;
    --bg: #eef2f8;
    --surface: #fff;
    --text: #22334c;
    --muted: #596b81;
    --line: #d5deeb;
    --accent: #365780;
    --on-accent: #fff;
    --soft: #dce8f6;
    --ok: #215d4c;
    --danger: #a23350;
    --reveal: prism-resolve;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 15px;
  }
  html[data-theme="terminal"][data-palette="1"] {
    --bg: #f1eef7;
    --accent: #654899;
    --soft: #e9e1f5;
    --line: #d9cfea;
    --text: #382c50;
    --muted: #6b5d7f;
  }
  html[data-theme="terminal"][data-palette="2"] {
    --bg: #edf4f2;
    --accent: #20665f;
    --soft: #d9ece7;
    --line: #c7dcd5;
    --text: #25453f;
    --muted: #506e66;
  }
  html[data-theme="terminal"][data-palette="3"] {
    --bg: #f0f2f4;
    --accent: #394c60;
    --soft: #e0e6ec;
    --line: #cbd5de;
    --text: #273442;
    --muted: #5c6c7c;
  }
  [data-theme="terminal"] .shell {
    grid-template-columns: 215px minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
    min-height: 100vh;
    align-items: start;
  }
  [data-theme="terminal"] .sidebar {
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text);
    padding: 1.8rem 0.8rem 1rem;
    border-radius: 22px;
    top: 18px;
    height: calc(100vh - 36px);
    box-shadow: 0 8px 24px #23375207;
  }
  [data-theme="terminal"] .sidebar .brand {
    font-family: "Segoe UI", Arial, sans-serif;
    font-weight: 750;
    font-size: 1.65rem;
    letter-spacing: -0.04em;
    padding: 0.25rem 0.8rem 2.8rem;
  }
  [data-theme="terminal"] .sidebar .brand small {
    letter-spacing: 0;
    font-weight: 400;
    color: var(--muted);
  }
  [data-theme="terminal"] .sidebar nav {
    gap: 0.35rem;
  }
  [data-theme="terminal"] .sidebar nav button {
    color: var(--muted);
    font-size: 0.88rem;
    padding: 0.85rem 1rem;
    border: 0;
    border-radius: 10px;
    font-weight: 500;
    position: relative;
  }
  [data-theme="terminal"] .sidebar nav button[aria-current] {
    background: var(--accent);
    color: #fff;
    border: 0;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 20%, transparent);
  }
  [data-theme="terminal"] .sidebar nav button:hover:not([aria-current]) {
    background: var(--soft);
    color: var(--text);
  }
  [data-theme="terminal"] .sidebar-footer {
    color: var(--muted);
    padding: 1rem;
    font-size: 0.75rem;
  }
  [data-theme="terminal"] .topbar {
    padding: 0.65rem 1.3rem 1.2rem;
    border: 0;
    background: transparent;
    gap: 0.9rem;
  }
  [data-theme="terminal"] .topbar strong {
    font-weight: 650;
    font-size: 0.95rem;
  }
  [data-theme="terminal"] .content {
    padding: 0.5rem 1.3rem 3rem;
    max-width: 1500px;
  }
  [data-theme="terminal"] :is(h1, h2, h3, .document-title, .stats strong) {
    font-family: "Segoe UI", Arial, sans-serif;
    letter-spacing: -0.035em;
    font-weight: 650;
  }
  [data-theme="terminal"] h1 {
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    line-height: 1.2;
  }
  [data-theme="terminal"] .atmosphere.prism-atmosphere {
    grid-template-columns: 1.1fr 1fr;
    min-height: 335px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    padding: 0;
    overflow: hidden;
    animation: prism-resolve 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    box-shadow: 0 8px 24px #23375205;
    margin-bottom: 2rem;
  }
  [data-theme="terminal"] .atmosphere-copy {
    padding: 2.5rem;
    align-self: center;
    background: none;
    border: 0;
    margin: 0;
    z-index: 2;
    color: var(--text);
  }
  [data-theme="terminal"] .atmosphere-copy h2 {
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: clamp(2rem, 3.2vw, 3.5rem);
    font-weight: 600;
    line-height: 1.1;
    max-width: 12ch;
    letter-spacing: -0.055em;
    margin: 0.8rem 0 1rem;
  }
  [data-theme="terminal"] .atmosphere-copy p {
    font-size: 0.85rem;
    max-width: 35ch;
  }
  [data-theme="terminal"] .atmosphere-art {
    margin: 0;
    border: 0;
    min-height: 300px;
    position: relative;
    background: #edf3fa;
  }
  [data-theme="terminal"] .atmosphere-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 75% center;
    transition: transform 0.6s ease;
  }
  [data-theme="terminal"] .atmosphere:hover .atmosphere-art img {
    transform: scale(1.035);
  }
  [data-theme="terminal"] .atmosphere-art figcaption {
    font-size: 0.6rem;
    background: #ffffffdc;
    color: #45596b;
    border: 1px solid #ffffffa0;
  }
  [data-theme="terminal"] .prism-summary {
    display: flex;
    gap: 1.8rem;
    border-top: 1px solid var(--line);
    padding-top: 1rem;
    margin-top: 1.5rem;
  }
  [data-theme="terminal"] .prism-summary strong {
    font-size: 1.65rem;
    font-weight: 650;
    color: var(--accent);
    line-height: 1.1;
    display: block;
    font-variant-numeric: tabular-nums;
  }
  [data-theme="terminal"] .prism-summary span {
    font-size: 0.72rem;
    color: var(--muted);
    display: block;
    margin-top: 0.35rem;
  }
  [data-theme="terminal"] :is(button, .button) {
    border-radius: 9px;
    font-weight: 550;
    transition:
      background-color 0.2s,
      border-color 0.2s,
      box-shadow 0.2s;
  }
  [data-theme="terminal"] :is(input, select, textarea) {
    border-radius: 8px;
  }
  [data-theme="terminal"] :is(button, .button).primary {
    box-shadow: 0 3px 8px color-mix(in srgb, var(--accent) 16%, transparent);
  }
  [data-theme="terminal"] :is(button, .button):hover {
    box-shadow: 0 3px 10px #273c5010;
  }
  [data-theme="terminal"] .page-head {
    align-items: center;
    margin-bottom: 1.2rem;
  }
  [data-theme="terminal"] .page-head p {
    font-size: 0.9rem;
    max-width: 42ch;
  }
  [data-theme="terminal"] .page-head .actions {
    gap: 0.45rem;
  }
  [data-theme="terminal"] .page-head .actions button {
    font-size: 0.8rem;
    padding: 0.7rem 0.8rem;
  }
  [data-theme="terminal"] .search {
    max-width: 100%;
    padding: 0.9rem 1.1rem;
    background: var(--surface);
    box-shadow: 0 3px 10px #273c5005;
    margin-bottom: 0.9rem;
  }
  [data-theme="terminal"] .catalog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.3rem;
  }
  [data-theme="terminal"] .catalog-filters button {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 30px;
    font-size: 0.78rem;
    padding: 0.5rem 0.8rem;
    min-height: 38px;
    color: var(--muted);
  }
  [data-theme="terminal"] .catalog-filters button span {
    font-size: 0.7rem;
    min-width: 22px;
    padding: 0.1rem 0.35rem;
    border-radius: 20px;
    background: var(--soft);
    color: var(--text);
  }
  [data-theme="terminal"] .catalog-filters button[aria-pressed="true"] {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
  }
  [data-theme="terminal"] .catalog-filters button[aria-pressed="true"] span {
    background: #ffffff29;
    color: #fff;
  }
  [data-theme="terminal"] .product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    border: 0;
    align-items: stretch;
  }
  [data-theme="terminal"] .product {
    display: grid;
    grid-template-columns: 40% minmax(0, 1fr);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    min-height: 260px;
    box-shadow: 0 4px 18px #23375206;
    transition:
      box-shadow 0.3s,
      border-color 0.3s;
    overflow: hidden;
  }
  [data-theme="terminal"] .product:last-child {
    border-bottom: 1px solid var(--line);
  }
  [data-theme="terminal"] .product > img,
  [data-theme="terminal"] .product > .placeholder {
    width: 100%;
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
    object-fit: cover;
    border: 0;
    border-right: 1px solid var(--line);
    background: #f6f8fb;
  }
  [data-theme="terminal"] .product:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 28px color-mix(in srgb, var(--accent) 12%, transparent);
  }
  [data-theme="terminal"] .product-body {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 1.2rem;
    align-items: stretch;
  }
  [data-theme="terminal"] .product-body .check {
    font-size: 0.72rem;
    margin: 0 0 0.9rem;
    color: var(--muted);
    align-items: center;
  }
  [data-theme="terminal"] .product-body > .mono {
    font-family: inherit;
    font-size: 0.73rem;
    color: var(--accent);
    font-weight: 650;
    letter-spacing: 0.04em;
  }
  [data-theme="terminal"] .product-body h3 {
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 1.2rem;
    line-height: 1.2;
    margin: 0.45rem 0 0.75rem;
    font-weight: 650;
  }
  [data-theme="terminal"] .product-body p {
    font-size: 0.82rem;
    line-height: 1.7;
    margin: 0 0 0.75rem;
  }
  [data-theme="terminal"] .product-body .actions {
    margin: auto 0 0;
    gap: 0.4rem;
    flex-wrap: wrap;
  }
  [data-theme="terminal"] .product-body .actions button {
    font-size: 0.8rem;
    padding: 0.5rem 0.7rem;
    min-height: 38px;
    flex: 1;
  }
  [data-theme="terminal"] .surface {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.7rem;
    box-shadow: 0 4px 18px #23375204;
  }
  [data-theme="terminal"] .stats {
    border: 0;
    background: var(--surface);
    border-radius: 16px;
    padding: 0;
    gap: 0;
    overflow: hidden;
    box-shadow: 0 4px 18px #23375204;
  }
  [data-theme="terminal"] .stats > div {
    padding: 1.5rem;
    border: 0;
    border-right: 1px solid var(--line);
    flex: 1;
  }
  [data-theme="terminal"] .stats strong {
    font-size: 2.5rem;
    color: var(--accent);
    font-weight: 550;
  }
  [data-theme="terminal"] .stats span {
    font-size: 0.85rem;
  }
  [data-theme="terminal"] .steps {
    gap: 1rem;
  }
  [data-theme="terminal"] .steps article {
    padding: 1.3rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
  }
  [data-theme="terminal"] .table-wrap {
    border-radius: 14px;
    border: 1px solid var(--line);
  }
  [data-theme="terminal"] th {
    background: var(--soft);
    font-size: 0.8rem;
  }
  [data-theme="terminal"] td {
    padding: 1.1rem 1rem;
  }
  [data-theme="terminal"] .document {
    padding: 2rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 8px 30px #23375209;
  }
  [data-theme="terminal"] .document-top {
    background: none;
    border-bottom: 1px solid var(--line);
    padding: 0 0 1.5rem;
  }
  [data-theme="terminal"] .document-title {
    font-size: 1.8rem;
    color: var(--accent);
  }
  [data-theme="terminal"] .document-hero {
    grid-template-columns: 1fr 1.2fr;
    gap: 1.7rem;
  }
  [data-theme="terminal"] .document-hero > img {
    border-radius: 14px;
    border: 0;
    aspect-ratio: 1;
    object-fit: cover;
  }
  [data-theme="terminal"] .specs {
    border: 0;
    gap: 0.8rem;
    background: none;
  }
  [data-theme="terminal"] .specs div {
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0;
  }
  [data-theme="terminal"] .badge {
    border-radius: 25px;
    background: var(--soft);
  }
  .mini-terminal {
    background: #eaf0f8;
    border: 1px solid #cedbea;
    border-radius: 10px;
  }
  .mini-terminal i {
    inset: 8px auto 8px 8px;
    width: 18%;
    border-radius: 5px;
    background: #fff;
    border: 0;
  }
  .mini-terminal b {
    inset: 8px 8px 40% 32%;
    background: url("/assets/kuyumcu-renders/prizma-editorial.jpg") 75%
      center/cover;
    border-radius: 5px;
  }
  .mini-terminal em {
    inset: 68% 8px 8px 32%;
    background: repeating-linear-gradient(
      90deg,
      #fff 0 40%,
      transparent 40% 47%
    );
    border-radius: 3px;
  }
  @keyframes prism-resolve {
    from {
      opacity: 0;
      filter: blur(3px);
      transform: translateY(5px);
    }
    to {
      opacity: 1;
      filter: blur(0);
      transform: translateY(0);
    }
  }
  @media (max-width: 1150px) {
    [data-theme="terminal"] .shell {
      grid-template-columns: 185px minmax(0, 1fr);
      padding: 12px;
      gap: 8px;
    }
    [data-theme="terminal"] .sidebar {
      top: 12px;
      height: calc(100vh - 24px);
      padding: 1.5rem 0.65rem;
    }
    [data-theme="terminal"] .content {
      padding: 0.4rem 1rem 3rem;
    }
    [data-theme="terminal"] .atmosphere-copy {
      padding: 1.7rem;
    }
    [data-theme="terminal"] .product-grid {
      grid-template-columns: 1fr;
    }
    [data-theme="terminal"] .product {
      grid-template-columns: 34% minmax(0, 1fr);
      min-height: 230px;
    }
  }
  @media (max-width: 700px) {
    [data-theme="terminal"] .shell {
      padding: 0;
      display: block;
    }
    [data-theme="terminal"] .sidebar {
      width: auto;
      height: auto;
      position: static;
      margin: 0.6rem;
      border-radius: 14px;
      padding: 0.6rem;
      border: 1px solid var(--line);
    }
    [data-theme="terminal"] .sidebar nav {
      gap: 0.3rem;
    }
    [data-theme="terminal"] .sidebar nav button {
      font-size: 0.8rem;
      padding: 0.7rem 0.9rem;
      flex-shrink: 0;
    }
    [data-theme="terminal"] .topbar {
      padding: 0.7rem 1rem;
    }
    [data-theme="terminal"] .content {
      padding: 1rem 1rem 3rem;
    }
    [data-theme="terminal"] .atmosphere.prism-atmosphere {
      display: flex;
      flex-direction: column;
      border-radius: 16px;
      min-height: 0;
      gap: 0;
    }
    [data-theme="terminal"] .atmosphere-copy {
      width: 100%;
      padding: 1.7rem 1.4rem;
      margin: 0;
    }
    [data-theme="terminal"] .atmosphere-copy h2 {
      font-size: 2.6rem;
      max-width: 12ch;
    }
    [data-theme="terminal"] .atmosphere-art {
      width: 100%;
      min-height: 230px;
      margin: 0;
      border: 0;
    }
    [data-theme="terminal"] .atmosphere-art img {
      object-fit: cover;
      object-position: 70% center;
    }
    [data-theme="terminal"] .prism-summary {
      gap: 2rem;
      margin-top: 1.2rem;
    }
    [data-theme="terminal"] .product {
      grid-template-columns: 1fr;
      min-height: 0;
    }
    [data-theme="terminal"] .product > img {
      height: auto;
      max-height: none;
      aspect-ratio: 1.4;
      border: 0;
      border-bottom: 1px solid var(--line);
    }
    [data-theme="terminal"] .product-body {
      padding: 1.2rem;
    }
    [data-theme="terminal"] .product-body h3 {
      font-size: 1.4rem;
    }
    [data-theme="terminal"] .product-body .actions {
      margin-top: 0.7rem;
    }
    [data-theme="terminal"] .catalog-filters {
      flex-wrap: nowrap;
      overflow: auto;
      padding: 0.2rem 0.2rem 0.6rem;
      scrollbar-width: thin;
      max-width: 100%;
    }
    [data-theme="terminal"] .catalog-filters button {
      flex-shrink: 0;
      white-space: nowrap;
    }
    [data-theme="terminal"] .stats > div {
      min-width: 125px;
      padding: 1.2rem;
    }
    [data-theme="terminal"] .stats strong {
      font-size: 2rem;
    }
    [data-theme="terminal"] .steps {
      grid-template-columns: 1fr;
    }
    [data-theme="terminal"] .document {
      padding: 1.2rem;
    }
    [data-theme="terminal"] .document-hero {
      grid-template-columns: 1fr;
    }
  }
}

/* Finishing motion for the three established identities. No layout changes. */
@media screen {
  [data-theme="ink"] {
    --reveal: gallery-panel;
  }
  [data-theme="emerald"] {
    --reveal: boutique-unfold;
  }
  [data-theme="vault"] {
    --reveal: salon-resolve;
  }
  :is([data-theme="ink"], [data-theme="emerald"], [data-theme="vault"])
    :is(button, .button) {
    transition:
      background-color 0.22s,
      border-color 0.22s,
      box-shadow 0.25s,
      transform 0.2s;
  }
  :is([data-theme="ink"], [data-theme="emerald"], [data-theme="vault"])
    :is(button, .button):active:not(:disabled) {
    transform: translateY(1px);
  }
  :is([data-theme="ink"], [data-theme="emerald"], [data-theme="vault"])
    :is(input, select, textarea) {
    transition:
      border-color 0.2s,
      box-shadow 0.25s;
  }
  :is([data-theme="ink"], [data-theme="emerald"], [data-theme="vault"])
    :is(input, select, textarea):focus-visible {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
  }

  /* Gallery: a photographic curtain and a fine exhibition line. */
  [data-theme="ink"] .atmosphere {
    animation: gallery-curtain 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  [data-theme="ink"] .atmosphere-copy {
    animation: gallery-caption 0.7s 0.1s both cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  [data-theme="ink"] .atmosphere-art {
    overflow: hidden;
  }
  [data-theme="ink"] .atmosphere-art img {
    transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  [data-theme="ink"] .product {
    position: relative;
    isolation: isolate;
  }
  [data-theme="ink"] .product-body {
    position: relative;
  }
  [data-theme="ink"] .product-body::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -2px;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
    pointer-events: none;
  }
  [data-theme="ink"] .product img {
    clip-path: inset(0);
    transition:
      clip-path 0.55s,
      filter 0.55s;
  }
  [data-theme="ink"] .product:focus-within .product-body::before {
    transform: scaleX(1);
  }
  [data-theme="ink"] .sidebar nav button {
    transition:
      background-color 0.2s,
      color 0.2s,
      padding-left 0.3s;
  }
  @keyframes gallery-curtain {
    from {
      opacity: 0;
      clip-path: inset(0 12% 0 0);
    }
    to {
      opacity: 1;
      clip-path: inset(0);
    }
  }
  @keyframes gallery-caption {
    from {
      opacity: 0;
      transform: translateX(-10px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  @keyframes gallery-panel {
    from {
      opacity: 0;
      transform: translateX(7px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  /* Boutique: silk opening, arched light, gentle physical depth. */
  [data-theme="emerald"] .atmosphere {
    animation: boutique-unfold 0.9s cubic-bezier(0.2, 0.65, 0.25, 1);
  }
  [data-theme="emerald"] .atmosphere-art {
    position: relative;
    isolation: isolate;
  }
  [data-theme="emerald"] .atmosphere-art::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow:
      inset 0 0 0 1px #ffffff60,
      inset 0 10px 35px #ffffff20;
    pointer-events: none;
    z-index: 2;
  }
  [data-theme="emerald"] .product {
    position: relative;
    transition:
      box-shadow 0.4s,
      transform 0.45s cubic-bezier(0.2, 0.65, 0.25, 1);
  }
  [data-theme="emerald"] .product > img {
    transition: filter 0.45s;
  }
  [data-theme="emerald"] .product:focus-within {
    box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 18%, transparent);
  }
  [data-theme="emerald"] .primary:focus-visible {
    box-shadow: 0 4px 18px color-mix(in srgb, var(--accent) 22%, transparent);
  }
  @keyframes boutique-unfold {
    from {
      opacity: 0;
      transform: translateY(9px) scale(0.987);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  /* Velvet: one passing studio light, then quiet focused interaction. */
  [data-theme="vault"] .atmosphere {
    animation: salon-resolve 1s ease-out;
  }
  [data-theme="vault"] .atmosphere-art {
    position: relative;
    isolation: isolate;
  }
  [data-theme="vault"] .atmosphere-art::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(
      115deg,
      transparent 25%,
      #fff5d92e 48%,
      transparent 68%
    );
    transform: translateX(-125%);
    animation: salon-light 1.6s 0.15s both ease-out;
  }
  [data-theme="vault"] .art-orbit {
    transition:
      box-shadow 0.6s,
      border-color 0.6s;
  }
  [data-theme="vault"] .product {
    position: relative;
    isolation: isolate;
    transition:
      box-shadow 0.45s,
      border-color 0.45s;
  }
  [data-theme="vault"] .product::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
      115deg,
      transparent 32%,
      #fff2cb20 49%,
      transparent 66%
    );
    transform: translateX(-125%);
    transition: transform 0.9s ease;
  }
  [data-theme="vault"] .product:focus-within {
    box-shadow:
      0 0 0 1px var(--accent),
      0 14px 40px #0007;
  }
  [data-theme="vault"] .product:focus-within > img {
    filter: brightness(1.05);
  }
  [data-theme="vault"] .primary:focus-visible {
    box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 20%, transparent);
  }
  @keyframes salon-resolve {
    from {
      opacity: 0;
      filter: blur(4px);
      transform: scale(0.995);
    }
    to {
      opacity: 1;
      filter: blur(0);
      transform: scale(1);
    }
  }
  @keyframes salon-light {
    from {
      transform: translateX(-125%);
    }
    to {
      transform: translateX(125%);
    }
  }

  @media (hover: hover) and (pointer: fine) {
    [data-theme="ink"] .atmosphere:hover .atmosphere-art img {
      transform: scale(1.035);
    }
    [data-theme="ink"] .product:hover .product-body::before {
      transform: scaleX(1);
    }
    [data-theme="ink"] .product:hover img {
      clip-path: inset(2%);
      filter: contrast(1.03);
    }
    [data-theme="ink"] .sidebar nav button:hover {
      padding-left: 0.8rem;
    }
    [data-theme="emerald"] .product:hover {
      transform: translateY(-5px);
      box-shadow: 0 18px 36px color-mix(in srgb, var(--accent) 18%, transparent);
    }
    [data-theme="emerald"] .product:hover > img {
      filter: brightness(1.025);
    }
    [data-theme="emerald"] .primary:hover {
      box-shadow: 0 5px 18px color-mix(in srgb, var(--accent) 22%, transparent);
    }
    [data-theme="vault"] .atmosphere:hover .art-orbit {
      border-color: var(--accent);
      box-shadow: 0 0 25px color-mix(in srgb, var(--accent) 18%, transparent);
    }
    [data-theme="vault"] .product:hover::after {
      transform: translateX(125%);
    }
    [data-theme="vault"] .primary:hover {
      box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 20%, transparent);
    }
  }
}
/* Explicit final override also covers decorative pseudo elements. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media screen {
  .crm-pipeline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
  }
  .crm-pipeline h2 {
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
  }
  .crm-opportunity {
    padding: 1rem 0;
    border-top: 1px solid var(--line);
    overflow-wrap: anywhere;
  }
  .crm-opportunity h3 {
    margin: 0.4rem 0;
  }
  .crm-opportunity p {
    line-height: 1.5;
  }
  @media (max-width: 1000px) {
    .crm-pipeline {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (max-width: 600px) {
    .crm-pipeline {
      grid-template-columns: 1fr;
    }
  }
  .package-core {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 1.2rem;
    border-left: 4px solid var(--accent);
  }
  .package-core h2 {
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    margin: 0.7rem 0;
  }
  .package-core p,
  .package-item p {
    max-width: 68ch;
    line-height: 1.6;
  }
  .package-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 2rem;
    min-width: 0;
  }
  .package-item {
    display: block;
    padding: 1.4rem 0;
    border-top: 1px solid var(--line);
    cursor: pointer;
    min-width: 0;
  }
  .package-choice {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
  }
  .package-choice input {
    width: 1.15rem;
    height: 1.15rem;
    accent-color: var(--accent);
    flex: none;
  }
  .package-choice strong,
  .package-choice small {
    display: block;
  }
  .package-choice strong {
    font-size: 1.15rem;
  }
  .package-choice .badge {
    margin-left: auto;
    white-space: normal;
  }
  .package-item ul {
    padding-left: 1.2rem;
    line-height: 1.8;
  }
  .package-planned {
    opacity: 0.72;
    cursor: default;
  }
  .package-summary {
    border-top: 2px solid var(--accent);
    padding: 1.2rem 0;
    margin-top: 1rem;
  }
  .package-disabled {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
  }
  .package-disabled:disabled {
    opacity: 0.65;
  }
  @media (max-width: 760px) {
    .package-core,
    .package-list {
      grid-template-columns: 1fr;
    }
    .package-core {
      gap: 0.5rem;
    }
  }
  .business-app {
    min-width: 0;
  }
  .biz-toolbar {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
    padding-bottom: 1rem;
    margin-bottom: 1.8rem;
  }
  .biz-toolbar label {
    margin: 0;
    min-width: 180px;
    font-size: 0.8rem;
  }
  .biz-toolbar p {
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0;
    max-width: 40ch;
  }
  .biz-form {
    min-width: 0;
  }
  .biz-form .form-grid {
    margin-bottom: 0.5rem;
  }
  .biz-trade-row {
    display: grid;
    grid-template-columns:
      minmax(0, 2fr) minmax(70px, 0.5fr) minmax(90px, 0.7fr)
      auto;
    gap: 0.7rem;
    align-items: center;
    border-top: 1px solid var(--line);
    padding: 1rem 0;
  }
  .biz-trade-row label {
    margin: 0;
  }
  .biz-trade-row button {
    align-self: end;
    font-size: 0.8rem;
  }
  .biz-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 2rem;
  }
  .biz-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
  }
  .biz-board .surface {
    padding: 1rem;
  }
  .biz-board strong {
    font-size: 2rem;
  }
  .biz-report-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
  .biz-report-grid .specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .biz-report-grid .specs dd {
    overflow-wrap: anywhere;
  }
  .business-app .table-wrap {
    margin: 1rem 0 2rem;
  }
  .business-app td .actions {
    margin: 0;
  }
  .business-app td button {
    margin: 0.2rem;
  }
  .business-app table {
    min-width: 550px;
  }
  .business-app .surface h2 {
    font-size: 1.5rem;
  }
  .sidebar nav {
    max-height: calc(100vh - 230px);
    overflow-y: auto;
    scrollbar-width: thin;
  }
  [data-theme="classic"] .sidebar nav,
  [data-theme="vault"] .sidebar nav {
    max-height: none;
    overflow-y: visible;
  }
  [data-theme="ink"] .sidebar .brand,
  [data-theme="terminal"] .sidebar .brand,
  [data-theme="emerald"] .sidebar .brand {
    padding-bottom: 1.3rem;
  }
  .sidebar-footer {
    padding-top: 1rem;
  }
  @media (max-width: 1100px) {
    .biz-trade-row {
      grid-template-columns: minmax(0, 2fr) minmax(75px, 0.7fr) minmax(
          90px,
          1fr
        );
    }
    .biz-trade-row button {
      grid-column: 1/-1;
    }
    .biz-report-grid {
      grid-template-columns: 1fr;
    }
  }
  @media (max-width: 700px) {
    .biz-trade-row {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.8rem;
    }
    .biz-trade-row label:first-child {
      grid-column: 1/-1;
    }
    .biz-trade-row button {
      grid-column: 1/-1;
    }
    .biz-toolbar {
      gap: 0.7rem;
    }
    .biz-toolbar label {
      width: 100%;
    }
    .biz-board {
      gap: 0.5rem;
    }
    .biz-board .surface {
      padding: 0.7rem;
    }
    .biz-board h3 {
      font-size: 0.85rem;
    }
    [data-theme] .sidebar nav {
      max-height: none;
      overflow-y: hidden;
    }
  }
}

/* UI/UX Pro Max: visible keyboard focus and generous web touch targets. */
.acquisition-workspace summary{min-block-size:44px;display:list-item;align-content:center;cursor:pointer;line-height:1.5;padding-block:8px;overflow-wrap:anywhere}
.acquisition-workspace :is(summary,button,input,select):focus-visible{outline:2px solid currentColor;outline-offset:4px;scroll-margin-block:96px}
.acquisition-workspace :is(button,input,select){min-block-size:44px}
.acquisition-workspace article p{white-space:pre-wrap;overflow-wrap:anywhere;max-inline-size:75ch}
.acquisition-workspace details[open]>summary{margin-block-end:16px}

/* Aurum's working salon: a quiet navigation rail, hand-drawn glyphs and gold inlay. */
@media screen {
  html[data-theme="classic"] .shell {
    display: grid;
    grid-template-columns: 258px minmax(0, 1fr);
    min-height: 100vh;
    align-items: start;
  }
  html[data-theme="classic"] .sidebar {
    position: sticky;
    top: 0;
    height: 100dvh;
    min-height: 0;
    padding: 2rem 1.15rem 1rem;
    align-items: stretch;
    border: 0;
    border-right: 1px solid var(--line);
    background: var(--surface);
    overflow: hidden;
  }
  html[data-theme="classic"] .sidebar::after {
    top: 0;
    bottom: 0;
    left: auto;
    right: -1px;
    width: 1px;
    height: auto;
    background: linear-gradient(
      180deg,
      transparent,
      var(--gold-line) 22%,
      var(--gold-line) 65%,
      transparent
    );
    opacity: 0.65;
  }
  html[data-theme="classic"] .sidebar .brand {
    text-align: center;
    flex: none;
    padding: 0 0 1.65rem;
    font-family: "Palatino Linotype", Georgia, serif;
    font-size: 1.65rem;
    font-weight: 400;
    letter-spacing: 0.16em;
  }
  html[data-theme="classic"] .aurum-brand-mark {
    display: block;
    color: var(--accent);
    width: 31px;
    height: 34px;
    margin: 0 auto 0.9rem;
  }
  html[data-theme="classic"] .aurum-brand-mark svg {
    width: 100%;
    height: 100%;
  }
  html[data-theme="classic"] .sidebar .brand small {
    display: block;
    margin-top: 0.55rem;
    font-family: Arial, sans-serif;
    font-size: 0.64rem;
    font-weight: 400;
    letter-spacing: 0.06em;
  }
  html[data-theme="classic"] .aurum-nav-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.55rem 0.65rem;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 400;
  }
  html[data-theme="classic"] .aurum-nav-search {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.7rem;
    margin: 0 0 1.35rem;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--bg);
    color: var(--muted);
    font-weight: 400;
    flex: none;
  }
  html[data-theme="classic"] .aurum-nav-search:focus-within {
    border-color: var(--gold-line);
  }
  html[data-theme="classic"] .aurum-nav-search svg {
    width: 16px;
    height: 16px;
    flex: none;
  }
  html[data-theme="classic"] .aurum-nav-search input {
    min-height: 0;
    height: 22px;
    border: 0;
    background: none;
    padding: 0;
    margin: 0;
    min-width: 0;
    box-shadow: none;
    outline: none;
    font-size: 0.76rem;
    color: var(--text);
    width: 100%;
  }
  html[data-theme="classic"] .sidebar .aurum-navigation {
    flex: 1;
    min-height: 0;
    max-height: none;
    width: 100%;
    display: block;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
    padding: 0 0.15rem 1rem 0;
  }
  html[data-theme="classic"] .aurum-nav-group {
    margin: 0 0 0.3rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
  }
  html[data-theme="classic"] .aurum-nav-group summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    list-style: none;
    padding: 0.8rem 0.55rem;
    cursor: pointer;
    user-select: none;
    color: var(--muted);
    font-size: 0.87rem;
    font-weight: 400;
    transition: color 180ms ease;
  }
  html[data-theme="classic"] .aurum-nav-group summary::-webkit-details-marker {
    display: none;
  }
  html[data-theme="classic"] .aurum-nav-group summary:hover,
  html[data-theme="classic"] .aurum-nav-group[open] summary {
    color: var(--text);
  }
  html[data-theme="classic"] .aurum-nav-group summary svg {
    width: 17px;
    height: 17px;
    flex: none;
    color: var(--accent);
    opacity: 0.8;
  }
  html[data-theme="classic"] .aurum-nav-group summary svg:last-child {
    width: 13px;
    height: 13px;
    margin-left: auto;
    color: var(--muted);
    transition: transform 220ms ease;
  }
  html[data-theme="classic"] .aurum-nav-group[open] summary svg:last-child {
    transform: rotate(180deg);
  }
  html[data-theme="classic"] .aurum-nav-items {
    position: relative;
    padding: 0 0 0.35rem 1.15rem;
  }
  html[data-theme="classic"] .aurum-nav-items::before {
    content: "";
    position: absolute;
    left: 1.04rem;
    top: 0.4rem;
    bottom: 0.75rem;
    width: 1px;
    background: var(--line);
    opacity: 0.6;
  }
  html[data-theme="classic"] .sidebar nav .aurum-nav-items button {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.75rem 0.55rem 1.2rem;
    margin: 1px 0;
    border: 0;
    border-left: 0;
    border-radius: 0 4px 4px 0;
    text-align: left;
    font-family: Arial, sans-serif;
    font-size: 0.86rem;
    line-height: 1.4;
    font-weight: 400;
    letter-spacing: 0.005em;
    color: var(--muted);
    background: none;
    box-shadow: none;
    transform: none;
    transition:
      background 180ms ease,
      color 180ms ease;
  }
  html[data-theme="classic"] .sidebar nav .aurum-nav-items button:hover {
    color: var(--text);
    background: var(--soft);
    transform: none;
  }
  html[data-theme="classic"]
    .sidebar
    nav
    .aurum-nav-items
    button[aria-current="page"] {
    color: var(--accent);
    background: var(--soft);
    font-weight: 500;
    border: 0;
    box-shadow: none;
  }
  html[data-theme="classic"]
    .sidebar
    nav
    .aurum-nav-items
    button[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: -2px;
    top: 20%;
    height: 60%;
    width: 2px;
    background: var(--gold-image) center/cover;
  }
  html[data-theme="classic"] .aurum-nav-items button i {
    width: 4px;
    height: 4px;
    transform: rotate(45deg);
    opacity: 0;
    background: var(--accent);
  }
  html[data-theme="classic"] .aurum-nav-items button[aria-current] i {
    opacity: 1;
  }
  html[data-theme="classic"] .aurum-navigation [hidden] {
    display: none !important;
  }
  html[data-theme="classic"] .aurum-nav-empty {
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--muted);
    padding: 0.5rem;
  }
  html[data-theme="classic"] .sidebar-footer {
    display: block;
    flex: none;
    border-top: 1px solid var(--line);
    padding: 1rem 0.5rem 0;
    margin-top: 1rem;
    font-size: 0.65rem;
    line-height: 1.8;
    font-weight: 400;
  }
  html[data-theme="classic"] .topbar {
    max-width: none;
    min-height: 92px;
    padding: 1.2rem clamp(1.4rem, 3vw, 3.5rem);
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    gap: 1.5rem;
  }
  html[data-theme="classic"] .topbar .store-identity {
    min-width: 0;
    margin-right: auto;
  }
  html[data-theme="classic"] .topbar .store-identity strong {
    font-family: "Palatino Linotype", Georgia, serif;
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.4;
  }
  html[data-theme="classic"] .topbar .store-identity small {
    display: block;
    font-size: 0.68rem;
    line-height: 1.8;
  }
  html[data-theme="classic"] .topbar > .actions {
    flex: none;
    gap: 0.35rem;
  }
  html[data-theme="classic"] .topbar > .actions button {
    font-size: 0.74rem;
    font-weight: 400;
    padding: 0.55rem 0.8rem;
    min-height: 36px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
  }
  html[data-theme="classic"] .topbar > .actions button:hover {
    border-color: var(--line);
    color: var(--text);
  }
  html[data-theme="classic"] .aurum-appearance {
    position: relative;
    flex: none;
  }
  html[data-theme="classic"] .aurum-appearance > summary {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    list-style: none;
    cursor: pointer;
    padding: 0.45rem 0.85rem;
    color: var(--muted);
    font-size: 0.76rem;
  }
  html[data-theme="classic"]
    .aurum-appearance
    > summary::-webkit-details-marker {
    display: none;
  }
  html[data-theme="classic"] .aurum-appearance > summary svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
  }
  html[data-theme="classic"] .aurum-appearance > summary svg:last-child {
    width: 12px;
    color: var(--muted);
  }
  html[data-theme="classic"] .aurum-appearance > summary small {
    display: block;
    font-family: Georgia, serif;
    font-size: 0.72rem;
    line-height: 1.6;
    color: var(--accent);
  }
  html[data-theme="classic"] .aurum-appearance .look-switch {
    position: absolute;
    z-index: 30;
    right: 0;
    top: calc(100% + 0.6rem);
    width: 285px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    padding: 1.1rem;
    border: 1px solid var(--line);
    border-top: 2px solid var(--gold-line);
    border-radius: 4px;
    background: var(--surface);
    box-shadow: 0 12px 30px #0003;
  }
  html[data-theme="classic"] .aurum-appearance .look-switch label {
    font-size: 0.68rem;
    font-weight: 400;
    min-width: 0;
  }
  html[data-theme="classic"] .aurum-appearance select {
    min-width: 0;
    width: 100%;
    font-size: 0.75rem;
  }
  html[data-theme="classic"] .aurum-appearance .look-status {
    grid-column: 1/-1;
    font-size: 0.72rem;
    font-weight: 400;
  }
  html[data-theme="classic"] .content {
    max-width: 1500px;
    padding: 1.8rem clamp(1.4rem, 3vw, 3.5rem) 4rem;
  }
  html[data-theme="classic"] .biz-toolbar {
    border: 0;
    padding: 0 0 1.6rem;
    gap: 1rem;
  }
  html[data-theme="classic"] .biz-toolbar label {
    font-size: 0.67rem;
    font-weight: 400;
    color: var(--muted);
  }
  html[data-theme="classic"] .biz-toolbar select {
    margin-top: 0.35rem;
    min-width: 160px;
    padding: 0.5rem 0.75rem;
    font-size: 0.76rem;
    min-height: 36px;
    background: var(--surface);
    border-color: var(--line);
  }
  html[data-theme="classic"] .biz-toolbar > span,
  html[data-theme="classic"] .biz-toolbar > .help {
    font-size: 0.68rem;
  }
  html[data-theme="classic"] .page-head {
    padding-bottom: 1.7rem;
    margin-bottom: 1.8rem;
    align-items: center;
    gap: 1.5rem;
  }
  html[data-theme="classic"] .page-head h1 {
    font-size: clamp(1.8rem, 2.8vw, 3.1rem);
    line-height: 1.15;
    max-width: 24ch;
  }
  html[data-theme="classic"] .page-head p {
    font-size: 0.85rem;
    line-height: 1.75;
    max-width: 65ch;
  }
  html[data-theme="classic"] .page-head .primary {
    font-size: 0.76rem;
    padding: 0.8rem 1.3rem;
    min-height: 42px;
  }
  html[data-theme="classic"] .stats {
    margin-bottom: 1.8rem;
    padding: 1.5rem 0.3rem;
  }
  html[data-theme="classic"] .stats strong {
    font-size: clamp(1.6rem, 2.5vw, 2.7rem);
    font-weight: 400;
  }
  html[data-theme="classic"] .stats span {
    font-size: 0.72rem;
    line-height: 1.6;
  }
  html[data-theme="classic"] .crm-pipeline .surface {
    border-top: 1px solid var(--line);
    padding: 1.15rem 1.3rem;
    box-shadow: none;
  }
  html[data-theme="classic"] .crm-pipeline h2 {
    font-size: 1.2rem;
  }
  html[data-theme="classic"] .crm-opportunity h3 {
    font-weight: 500;
    font-size: 0.85rem;
    line-height: 1.6;
  }
  html[data-theme="classic"] .crm-opportunity p {
    font-size: 0.75rem;
    line-height: 1.8;
  }
  html[data-theme="classic"] .crm-opportunity > strong {
    font-family: Georgia, serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--accent);
  }
  html[data-theme="classic"] .crm-opportunity button {
    margin-top: 0.5rem;
    font-size: 0.72rem;
  }
  html[data-theme="classic"] .aurum-menu-toggle,
  html[data-theme="classic"] .aurum-menu-close,
  html[data-theme="classic"] .aurum-nav-backdrop {
    display: none;
  }
  html[data-theme="classic"] .aurum-nav-group summary:focus-visible,
  html[data-theme="classic"] .aurum-appearance > summary:focus-visible,
  html[data-theme="classic"] .sidebar nav button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
}
@media screen and (max-width: 1000px) {
  html[data-theme="classic"] .shell {
    grid-template-columns: minmax(0, 1fr);
  }
  html[data-theme="classic"] .sidebar {
    position: fixed;
    z-index: 61;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(290px, 86vw);
    height: 100dvh;
    padding: 1.4rem 1.15rem;
    transform: translateX(-102%);
    visibility: hidden;
    transition:
      transform 280ms cubic-bezier(0.2, 0.7, 0.25, 1),
      visibility 280ms;
    box-shadow: 12px 0 50px #0004;
  }
  html[data-theme="classic"] .shell[data-nav-open="true"] .sidebar {
    transform: none;
    visibility: visible;
  }
  html[data-theme="classic"] .shell[data-nav-open="true"] .aurum-nav-backdrop {
    display: block;
    position: fixed;
    z-index: 60;
    inset: 0;
    width: 100%;
    height: 100dvh;
    background: #0007;
    backdrop-filter: blur(4px);
    border: 0;
    border-radius: 0;
    padding: 0;
  }
  html[data-theme="classic"] .topbar {
    padding: 1rem 1.3rem;
    min-height: 78px;
    gap: 0.6rem;
    flex-wrap: wrap;
  }
  html[data-theme="classic"] .aurum-menu-toggle {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.5rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 400;
    border: 1px solid var(--line);
    background: transparent;
  }
  html[data-theme="classic"] .aurum-menu-toggle svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
  }
  html[data-theme="classic"] .aurum-menu-close {
    display: flex;
    min-height: 44px;
    min-width: 44px;
    align-items: center;
    justify-content: center;
    padding: 0.3rem;
    background: none;
    border: 0;
  }
  html[data-theme="classic"] .aurum-menu-close svg {
    width: 18px;
    height: 18px;
  }
  html[data-theme="classic"] .sidebar .brand {
    display: block;
    font-size: 1.55rem;
    padding-bottom: 1.2rem;
  }
  html[data-theme="classic"] .sidebar-footer {
    display: block;
  }
  html[data-theme="classic"] .sidebar nav .aurum-nav-items button,
  html[data-theme="classic"] .aurum-nav-group summary {
    min-height: 44px;
  }
  html[data-theme="classic"] .topbar .store-identity strong {
    font-size: 1rem;
  }
  html[data-theme="classic"] .topbar .store-identity small {
    display: block;
    font-size: 0.6rem;
  }
}
@media screen and (max-width: 600px) {
  html[data-theme="classic"] .topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.5rem;
    padding: 0.85rem 1rem;
  }
  html[data-theme="classic"] .topbar .store-identity {
    grid-column: 2;
    width: 100%;
    overflow: hidden;
  }
  html[data-theme="classic"] .topbar .store-identity strong,
  html[data-theme="classic"] .topbar .store-identity small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  html[data-theme="classic"] .topbar > .actions {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    margin-left: auto;
  }
  html[data-theme="classic"] .topbar > .actions button {
    padding: 0.4rem 0.55rem;
    font-size: 0.68rem;
  }
  html[data-theme="classic"] .aurum-appearance {
    margin-left: 0;
    grid-column: 1;
    grid-row: 2;
  }
  html[data-theme="classic"] .aurum-appearance > summary {
    padding: 0.3rem 0.5rem;
  }
  html[data-theme="classic"] .aurum-appearance > summary small {
    display: none;
  }
  html[data-theme="classic"] .aurum-appearance .look-switch {
    right: auto;
    left: 0;
    width: min(285px, calc(100vw - 2rem));
  }
  html[data-theme="classic"] .content {
    padding: 1.2rem 1rem 3rem;
  }
  html[data-theme="classic"] .biz-toolbar {
    gap: 0.6rem;
    padding-bottom: 1.25rem;
  }
  html[data-theme="classic"] .biz-toolbar label {
    width: auto;
    flex: 1;
  }
  html[data-theme="classic"] .biz-toolbar select {
    min-width: 130px;
  }
  html[data-theme="classic"] .biz-toolbar > .help {
    flex-basis: 100%;
    margin: 0;
  }
  html[data-theme="classic"] .page-head {
    align-items: flex-start;
    gap: 0.8rem;
    padding-bottom: 1.2rem;
    margin-bottom: 1.2rem;
  }
  html[data-theme="classic"] .page-head h1 {
    font-size: 2rem;
  }
  html[data-theme="classic"] .stats {
    padding: 1.1rem 0.2rem;
    gap: 1rem;
  }
  html[data-theme="classic"] .stats strong {
    font-size: 1.65rem;
  }
}
@media screen and (prefers-reduced-motion: reduce) {
  html[data-theme="classic"] .sidebar,
  html[data-theme="classic"] .aurum-nav-group summary svg,
  html[data-theme="classic"] .sidebar nav button {
    transition: none;
  }
}
