:root {
  color-scheme: light;
  --paper: #f4eedf;
  --paper-light: #fbf8ef;
  --paper-deep: #e9dcc4;
  --ink: #34261e;
  --muted: #837365;
  --line: #d9c9b2;
  --brown: #72513c;
  --brown-dark: #493328;
  --copper: #ad7049;
  --rust: #985439;
  --sage: #69785d;
  --gold: #c29a59;
  --shadow: 0 16px 40px rgba(76, 53, 35, .09);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Trebuchet MS", Arial, sans-serif;
  --mono: "Courier New", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--ink); font-family: var(--sans); background: radial-gradient(ellipse at 10% 5%, rgba(255,255,255,.7), transparent 38%), var(--paper); }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid rgba(173,112,73,.48); outline-offset: 2px; }
button:disabled { opacity: .58; cursor: wait; }
[hidden] { display: none !important; }
.paper-grain { position: fixed; inset: 0; z-index: 10; pointer-events: none; opacity: .17; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E"); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.topbar { height: 74px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 5vw, 76px); border-bottom: 1px solid rgba(130, 102, 75, .18); position: relative; z-index: 1; }
.brand { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 11px; }
.brand-name { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: -.6px; }
.brand-name span { color: var(--rust); }
.brand-mark { width: 27px; height: 27px; border: 1.5px solid var(--brown); border-radius: 50%; display: flex; align-items: center; justify-content: center; gap: 2px; transform: rotate(-22deg); }
.brand-mark span { display: block; width: 2px; border-radius: 4px; background: var(--rust); }
.brand-mark span:nth-child(1) { height: 7px; }.brand-mark span:nth-child(2) { height: 13px; }.brand-mark span:nth-child(3) { height: 9px; }
.topbar-right { display: flex; align-items: center; gap: 25px; }
.edition-label, .eyebrow, .card-number, .metric-top, .user-chip small, .welcome-foot, .workspace-edition, .workspace-footer, .issued-code > span { font-family: var(--mono); letter-spacing: .11em; }
.edition-label { font-size: 9px; color: var(--muted); }
.language-picker select { appearance: none; border: 1px solid var(--line); border-radius: 3px; background: var(--paper-light); color: var(--brown-dark); font-family: var(--mono); font-size: 11px; padding: 8px 22px 8px 10px; background-image: linear-gradient(45deg, transparent 50%, var(--brown) 50%), linear-gradient(135deg, var(--brown) 50%, transparent 50%); background-position: calc(100% - 12px) 12px, calc(100% - 8px) 12px; background-size: 4px 4px, 4px 4px; background-repeat: no-repeat; }

.auth-layout { position: relative; z-index: 1; min-height: calc(100vh - 74px); max-width: 1240px; margin: 0 auto; padding: clamp(34px, 7vh, 85px) clamp(20px, 6vw, 84px); display: grid; grid-template-columns: 1.03fr .8fr; gap: clamp(36px, 9vw, 130px); align-items: center; }
.welcome-panel { min-height: 510px; display: flex; flex-direction: column; align-items: flex-start; position: relative; padding: 25px 0; }
.eyebrow { font-size: 9px; line-height: 1.5; font-weight: 500; color: var(--copper); margin: 0 0 14px; }
h1, h2, h3, p { margin-top: 0; }
.welcome-panel h1 { font: 600 clamp(46px, 6vw, 76px)/1.03 var(--serif); letter-spacing: -2.1px; margin: 0 0 25px; }
.welcome-panel h1 em, .page-intro h1 em { color: var(--rust); font-weight: 500; }
.welcome-copy { max-width: 405px; font-size: 15px; line-height: 1.8; color: var(--muted); }
.roadmap-copy { max-width: 405px; margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.sound-stamp { position: absolute; right: 10%; bottom: 104px; width: 91px; height: 91px; border: 1px solid var(--copper); border-radius: 50%; color: var(--rust); transform: rotate(-12deg); display: flex; align-items: center; justify-content: center; gap: 8px; }
.sound-stamp::before, .sound-stamp::after { content: ""; position: absolute; inset: 5px; border: 1px dashed rgba(152,84,57,.55); border-radius: 50%; }
.sound-stamp::after { inset: -5px; border-style: solid; border-color: rgba(152,84,57,.35); }
.sound-stamp span { font: 700 24px var(--serif); }.sound-stamp small { font: 7px/1.2 var(--mono); letter-spacing: .08em; }
.welcome-foot { margin-top: auto; color: var(--muted); font-size: 9px; display: flex; align-items: center; gap: 9px; }
.tiny-sun { color: var(--copper); font-size: 17px; }
.auth-card { width: 100%; max-width: 430px; justify-self: center; padding: 38px 42px 29px; background: rgba(251,248,239,.82); border: 1px solid #dfd1bd; box-shadow: var(--shadow); position: relative; }
.auth-card::before, .surface-card::before { content: ""; height: 3px; position: absolute; inset: 0 0 auto; background: linear-gradient(90deg, var(--rust) 0 25%, transparent 25% 100%); opacity: .72; }
.auth-card-head { display: flex; justify-content: space-between; align-items: flex-start; }
.auth-card h2 { font: 600 31px var(--serif); margin: 0 0 23px; letter-spacing: -.5px; }
.card-number { color: #b59f87; font-size: 9px; margin-top: 7px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.auth-tab { border: 0; background: transparent; padding: 11px 5px 12px; color: var(--muted); font-size: 12px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.auth-tab.is-active { color: var(--rust); border-color: var(--rust); font-weight: 700; }
.form-stack { display: flex; flex-direction: column; gap: 15px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; color: var(--brown-dark); font-size: 11px; font-weight: 600; }
.field small { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea, .playlist-create input, .search-field input { width: 100%; min-width: 0; border: 1px solid #d8c9b5; border-radius: 2px; color: var(--ink); background: #fffdf7; padding: 12px 13px; font-size: 13px; font-weight: 400; transition: border-color .15s, box-shadow .15s; }
.field input::placeholder, .field textarea::placeholder, .playlist-create input::placeholder { color: #b4a696; }
.field input:focus, .field select:focus, .field textarea:focus, .playlist-create input:focus, .search-field input:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px rgba(173,112,73,.1); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--brown) 50%), linear-gradient(135deg, var(--brown) 50%, transparent 50%); background-position: calc(100% - 15px) 18px, calc(100% - 11px) 18px; background-size: 4px 4px, 4px 4px; background-repeat: no-repeat; padding-right: 30px; }
.field textarea { resize: vertical; line-height: 1.5; }
.field-hint { font-size: 11px; line-height: 1.55; color: var(--muted); margin: -8px 0 1px; }
.input-action { display: flex; gap: 7px; }.input-action input { flex: 1; }
.form-row { display: flex; align-items: center; }.form-row-end { justify-content: flex-end; margin-top: -8px; }
.text-button { border: 0; background: none; color: var(--rust); font-size: 11px; font-weight: 700; padding: 2px 0; }
.text-button:hover { color: var(--brown-dark); text-decoration: underline; }
.button { min-height: 42px; border-radius: 2px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 15px; text-decoration: none; border: 1px solid transparent; font-weight: 700; font-size: 11px; letter-spacing: .01em; transition: background .15s, transform .15s, border-color .15s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button-primary { background: var(--brown-dark); color: #fff8ec; box-shadow: 0 4px 10px rgba(61,40,28,.12); }.button-primary:hover:not(:disabled) { background: #65422f; }
.button-outline { border-color: #cbb79f; color: var(--brown-dark); background: rgba(255,253,247,.52); }.button-outline:hover:not(:disabled) { border-color: var(--rust); background: #fffaf0; }
.button-wide { width: 100%; justify-content: space-between; }.button-small { min-height: 34px; padding: 0 12px; gap: 5px; }
.form-message { min-height: 0; margin: -4px 0 0; color: var(--rust); font-size: 11px; line-height: 1.5; }.form-message:empty { display: none; }.form-message.is-success { color: var(--sage); }
.auth-note { border-top: 1px solid #e6dac9; margin: 24px 0 0; padding-top: 17px; color: var(--muted); font-size: 10px; line-height: 1.5; display: flex; gap: 8px; align-items: flex-start; }
.auth-note span:first-child { color: var(--copper); }
.muted-copy { color: var(--muted); font-size: 12px; line-height: 1.65; margin: -6px 0 2px; }
.back-login { align-self: center; margin-top: -4px; }

.app-shell { position: relative; z-index: 1; min-height: calc(100vh - 74px); display: grid; grid-template-columns: 255px minmax(0,1fr); }
.sidebar { position: sticky; top: 0; height: calc(100vh - 74px); min-height: 580px; display: flex; flex-direction: column; padding: 27px 19px 18px; border-right: 1px solid rgba(130, 102, 75, .2); background: rgba(238,228,210,.66); }
.sidebar-heading { display: flex; justify-content: space-between; align-items: center; padding: 0 10px 17px; }.sidebar-heading .eyebrow { margin: 0; font-size: 8px; }
.sidebar-close, .menu-button { display: none; border: 1px solid var(--line); background: var(--paper-light); color: var(--brown); width: 34px; height: 34px; border-radius: 3px; font-size: 21px; }
.main-nav { display: flex; flex-direction: column; gap: 4px; }
.nav-link { position: relative; border: 0; color: #806f5f; display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 12px; border-radius: 3px; background: transparent; font-size: 12px; transition: background .15s, color .15s; }
.nav-link:hover { background: rgba(255,252,244,.65); color: var(--brown-dark); }.nav-link.is-active { background: #fbf7eb; color: var(--rust); box-shadow: inset 3px 0 var(--rust), 0 3px 12px rgba(66,44,31,.04); font-weight: 700; }
.nav-icon { width: 19px; color: var(--copper); font-size: 16px; text-align: center; }
.sidebar-bottom { margin-top: auto; }.sidebar-note { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 10px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }.sidebar-note p { font: italic 12px/1.5 var(--serif); margin: 2px 0 0; }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 15px 5px 0; }.avatar { flex: 0 0 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff4e2; background: var(--rust); font: 600 13px var(--serif); }
.user-chip-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }.user-chip-copy strong { overflow: hidden; text-overflow: ellipsis; font-size: 10px; }.user-chip small { font-size: 7px; color: var(--muted); }
.icon-button { width: 29px; height: 29px; border: 1px solid transparent; background: transparent; color: var(--muted); border-radius: 2px; font-size: 16px; }.icon-button:hover { border-color: var(--line); color: var(--rust); }
.workspace { min-width: 0; }.workspace-topbar { height: 58px; border-bottom: 1px solid rgba(130,102,75,.17); display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 4vw, 59px); position: sticky; top: 0; background: rgba(244,238,223,.9); backdrop-filter: blur(12px); z-index: 4; }
.breadcrumbs { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: 10px; }.breadcrumbs strong { font-weight: 700; color: var(--brown-dark); }.breadcrumb-divider { color: #c4b29b; }
.workspace-tools { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }.status-dot { width: 7px; height: 7px; background: var(--sage); border-radius: 50%; box-shadow: 0 0 0 3px rgba(105,120,93,.12); }.workspace-edition { margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--line); font-size: 8px; color: #a08d77; }
.workspace-content { max-width: 1420px; margin: 0 auto; padding: 35px clamp(20px, 4vw, 59px) 22px; }.view { display: none; animation: page-in .22s ease both; }.view.is-visible { display: block; }@keyframes page-in { from { opacity: .4; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.page-intro { margin: 7px 0 29px; }.page-intro h1 { font: 600 clamp(34px, 4vw, 52px)/1.06 var(--serif); letter-spacing: -1.1px; margin: 0 0 11px; }.page-intro .eyebrow { margin-bottom: 10px; }.lead { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 0; max-width: 610px; }.intro-split { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.sunburst { width: 72px; height: 72px; display: grid; place-items: center; flex: 0 0 72px; color: var(--copper); border: 1px solid #cba988; border-radius: 50%; font-size: 36px; transform: rotate(12deg); position: relative; }.sunburst::before { content: ""; position: absolute; inset: 6px; border: 1px dashed #d0b594; border-radius: 50%; }
.title-period { color: var(--rust); }
.metric-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; margin: 26px 0 17px; }.metric-card { position: relative; overflow: hidden; background: rgba(251,248,239,.82); border: 1px solid #dfd1bd; padding: 18px 21px 17px; min-height: 125px; }.metric-card-dark { background: #5c4030; color: #fcf2df; border-color: #5c4030; }.metric-top { display: flex; justify-content: space-between; color: #9b8470; font-size: 8px; }.metric-card-dark .metric-top { color: #ceb89b; }.metric-top span:last-child { font-size: 8px; }.metric-card strong { display: block; font: 600 32px var(--serif); margin: 10px 0 0; }.metric-card small { display: block; color: var(--muted); font-size: 9px; margin-top: 1px; }.metric-card-dark small { color: #d1c1ab; }.metric-rule { position: absolute; width: 38px; height: 1px; background: var(--copper); bottom: 0; left: 21px; }.metric-card-dark .metric-rule { background: var(--gold); }
.surface-card { position: relative; background: rgba(251,248,239,.78); border: 1px solid #dfd1bd; padding: 22px 23px; box-shadow: 0 5px 22px rgba(76,53,35,.035); }.surface-card::before { height: 2px; background: linear-gradient(90deg,var(--copper) 0 18%,transparent 18%); opacity: .45; }.home-columns { display: grid; grid-template-columns: 1.35fr .85fr; gap: 15px; }.section-heading { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin-bottom: 18px; }.section-heading .eyebrow { margin: 0 0 5px; font-size: 8px; }.section-heading h2 { font: 600 21px var(--serif); margin: 0; }.section-heading .text-button { font-size: 10px; white-space: nowrap; }.compact-list { min-height: 67px; }.loading-line { height: 10px; margin: 16px 0; width: 58%; border-radius: 4px; background: linear-gradient(90deg,#ede3d3,#f5eddf,#ede3d3); animation: shimmer 1.4s infinite; }.loading-line:nth-child(2) { width: 76%; }.loading-line:nth-child(3) { width: 42%; }.loading-line + .loading-line { margin-top: 9px; }@keyframes shimmer { to { opacity: .42; } }
.device-row, .order-row, .asset-row, .playlist-row, .admin-row, .grant-row { display: flex; align-items: center; gap: 13px; padding: 12px 0; border-top: 1px solid #e8dccb; min-width: 0; }.device-row:first-child, .order-row:first-child, .asset-row:first-child, .playlist-row:first-child, .admin-row:first-child, .grant-row:first-child { border-top: 0; }.device-emblem, .asset-emblem { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 36px; color: var(--rust); background: #efe3cf; border: 1px solid #decab0; border-radius: 50%; font-size: 15px; }.row-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }.row-copy strong { font: 600 13px var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.row-copy small { color: var(--muted); font-size: 9px; }.row-side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; color: var(--muted); font-size: 9px; }.row-side strong { color: var(--brown-dark); font-size: 10px; }
.bind-another { margin-top: 7px; }.add-shortcut { width: 100%; margin-top: 6px; justify-content: flex-start; min-height: 37px; color: var(--brown); }.add-shortcut > span:first-child { font-size: 15px; color: var(--rust); }.note-card { overflow: hidden; min-height: 234px; background: #e9ddc8; border-color: #d9c7ac; }.note-card .eyebrow { color: var(--rust); }.note-mark { color: var(--copper); font: 500 43px/.7 var(--serif); }.note-card blockquote { margin: 4px 0 17px; max-width: 260px; font: 500 20px/1.36 var(--serif); }.note-rule { height: 1px; width: 43px; background: var(--copper); margin-bottom: 9px; }.note-signature { font: italic 11px var(--serif); color: var(--muted); }.section-heading-spaced { margin: 29px 0 12px; }.table-card { padding: 2px 23px; }.empty-inline, .empty-card { color: var(--muted); font-size: 11px; line-height: 1.6; padding: 18px 0; }.empty-card { border: 1px dashed #d7c5ad; padding: 33px 25px; text-align: center; background: rgba(251,248,239,.48); }

.two-column-layout { display: grid; grid-template-columns: minmax(260px,.76fr) minmax(340px,1.24fr); gap: 16px; align-items: start; }.form-card, .device-list-card { padding: 24px; }.form-card .section-heading, .device-list-card .section-heading { margin-bottom: 22px; }.round-icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #d5bea1; color: var(--rust); background: #f3e8d6; font-size: 17px; }.count-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 27px; height: 24px; padding: 0 8px; border: 1px solid #d7c4aa; border-radius: 99px; color: var(--rust); font: 10px var(--mono); }.device-list { min-height: 150px; }.device-status { display: inline-flex; gap: 5px; align-items: center; color: var(--sage); font: 9px var(--mono); }.device-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }.device-row .device-detail { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--muted); font-size: 9px; }.device-detail span { white-space: nowrap; }
.plan-target { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 0 0 15px; padding: 16px 20px; }.plan-target-copy { display: flex; align-items: center; gap: 12px; }.plan-target-copy .eyebrow { margin: 0 0 3px; font-size: 8px; }.plan-target-copy strong { font: 600 15px var(--serif); }.inline-field { min-width: min(280px, 48%); }.inline-field select { padding: 10px 30px 10px 12px; }.product-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }.product-card { min-height: 240px; display: flex; flex-direction: column; position: relative; border: 1px solid #d8c7af; padding: 22px 21px 18px; background: rgba(251,248,239,.72); }.product-card.featured { background: #594031; color: #fcf2e2; border-color: #594031; transform: translateY(-4px); }.product-badge { position: absolute; top: -1px; right: 14px; background: var(--copper); color: white; font: 7px var(--mono); letter-spacing: .1em; padding: 6px 8px; }.product-card .eyebrow { margin-bottom: 17px; }.product-card.featured .eyebrow { color: #d5b99a; }.product-card h3 { font: 600 21px var(--serif); margin: 0 0 5px; }.product-duration { font: 500 27px var(--serif); color: var(--rust); margin: 0 0 7px; }.product-card.featured .product-duration { color: #e4b77e; }.product-price { font: 600 15px var(--mono); margin: 0 0 3px; }.product-note { color: var(--muted); font-size: 9px; margin: 0 0 17px; }.product-card.featured .product-note { color: #d3c1ad; }.product-card .button { margin-top: auto; }.fine-print { color: var(--muted); font-size: 9px; text-align: center; margin: 16px 0; }
.library-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(245px,.7fr); gap: 15px; align-items: start; }.library-card, .playlist-card { min-height: 260px; }.search-field { display: flex; align-items: center; gap: 5px; border-bottom: 1px solid #d1bea5; color: var(--copper); }.search-field input { width: 155px; border: 0; padding: 8px 2px; background: transparent; font-size: 10px; }.search-field input:focus { box-shadow: none; }.asset-row .asset-actions { display: flex; gap: 5px; align-items: center; }.mini-button { border: 1px solid #d8c8b3; background: #fffaf1; color: var(--brown); border-radius: 2px; padding: 6px 8px; font-size: 9px; white-space: nowrap; }.mini-button:hover { color: var(--rust); border-color: var(--rust); }.asset-meta { color: var(--muted); font-size: 9px; display: flex; gap: 7px; }.playlist-create { display: flex; gap: 6px; margin: 0 0 10px; }.playlist-create input { flex: 1; min-width: 0; padding: 9px 10px; font-size: 10px; }.playlist-list { max-height: 250px; overflow: auto; }.playlist-row { gap: 8px; }.playlist-row .row-copy strong { font-family: var(--sans); font-size: 10px; }.playlist-row .mini-button { margin-left: auto; }.music-seal { border-radius: 50%; width: 65px; height: 65px; flex: 0 0 65px; display: grid; place-items: center; font-size: 31px; color: var(--rust); border: 1px solid #cfb596; transform: rotate(-9deg); }
.order-list, .grant-list { min-height: 80px; }.order-row, .grant-row { align-items: flex-start; }.order-status { border: 1px solid #d9c9b2; border-radius: 99px; padding: 4px 7px; color: var(--sage); font: 8px var(--mono); }.order-status.pending { color: var(--copper); }.code-chip { border: 1px dashed #c69b6a; background: #f9efd9; color: var(--brown-dark); padding: 4px 7px; font: 10px var(--mono); letter-spacing: .04em; }.grants-card { margin-top: 15px; }.grant-row .row-copy strong { font-family: var(--sans); font-size: 11px; }.grant-row .row-copy small { line-height: 1.45; }
.admin-metrics { margin-top: 5px; }.admin-columns { display: grid; grid-template-columns: minmax(250px,.75fr) minmax(360px,1.25fr); gap: 15px; align-items: start; }.admin-records { padding: 0 23px; }.admin-record-block { padding: 21px 0; border-bottom: 1px solid #e2d4c1; }.admin-record-block:last-child { border-bottom: 0; }.admin-record-block .section-heading { margin-bottom: 11px; }.admin-list { max-height: 240px; overflow: auto; }.admin-row { font-size: 9px; gap: 9px; }.admin-row strong { color: var(--brown-dark); }.admin-row .row-copy strong { font: 600 11px var(--sans); }.admin-row .row-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.admin-row .row-side { font-size: 8px; }.admin-row .row-side strong { font: 10px var(--mono); }
.admin-audio-preview { display: grid; gap: 8px; margin: 0 0 12px; padding: 12px; border: 1px solid #e2d4c1; background: #f8f1e5; }.admin-audio-preview .eyebrow, .admin-audio-preview .form-message { margin: 0; }.admin-audio-preview > strong { color: var(--brown-dark); font: 600 12px var(--serif); overflow-wrap: anywhere; }.admin-audio-preview audio { width: 100%; height: 38px; }

.resource-pack-v2-picked-items { display: grid; gap: 7px; margin-top: 12px; }
.resource-pack-v2-picked-items > div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 8px 10px; border-radius: 8px; background: #f5f7fa; }
.resource-pack-v2-picked-items strong { min-width: 0; overflow-wrap: anywhere; color: var(--ink); font-size: 13px; }
.resource-pack-v2-picked-items small { flex: 0 0 auto; color: var(--muted); font-size: 11px; text-align: right; }
@media (max-width: 600px) { .resource-pack-v2-picked-items > div { align-items: flex-start; flex-direction: column; gap: 3px; } .resource-pack-v2-picked-items small { text-align: left; } }
.workspace-footer { display: flex; justify-content: space-between; gap: 10px; padding: 21px 0 8px; margin-top: 29px; border-top: 1px solid rgba(130,102,75,.21); color: #a18d77; font-size: 7px; }.menu-button { display: none; }

.modal { width: min(465px, calc(100vw - 30px)); max-width: 465px; border: 1px solid #d1bda3; background: var(--paper-light); color: var(--ink); padding: 31px; box-shadow: 0 20px 70px rgba(44,29,19,.28); position: fixed; }.modal::backdrop { background: rgba(48,34,26,.56); backdrop-filter: blur(3px); }.modal-close { position: absolute; top: 12px; right: 13px; border: 0; background: transparent; color: var(--muted); font-size: 23px; width: 30px; height: 30px; }.modal h2 { font: 600 27px/1.2 var(--serif); margin: 0 0 8px; }.simulation-callout { margin: 17px 0; padding: 12px; border: 1px solid #decbad; background: #f4ead7; display: flex; align-items: flex-start; gap: 9px; }.simulation-icon { color: var(--rust); font-size: 18px; }.simulation-callout p { margin: 1px 0 0; color: var(--brown); font-size: 10px; line-height: 1.6; }.mock-confirm { min-height: 47px; background: var(--rust); font-size: 12px; }.mock-confirm:hover:not(:disabled) { background: #7f452e; }.issued-code { margin: 14px 0; padding: 14px; background: #f1e7d4; border: 1px dashed #bc9365; display: flex; flex-direction: column; gap: 8px; text-align: center; }.issued-code > span { color: var(--muted); font-size: 8px; }.issued-code strong { font: 600 20px var(--mono); letter-spacing: .1em; color: var(--brown-dark); overflow-wrap: anywhere; }.modal-done { display: block; margin: 13px auto 0; }.toast { position: fixed; z-index: 20; left: 50%; bottom: 23px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: min(480px,calc(100vw - 30px)); padding: 12px 18px; background: var(--brown-dark); color: #fff5e3; border: 1px solid #7e6049; box-shadow: 0 9px 28px rgba(55,38,27,.2); font-size: 11px; text-align: center; transition: opacity .2s, transform .2s; }.toast.is-visible { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 220px minmax(0,1fr); }.sidebar { padding-inline: 13px; }.workspace-content { padding-inline: 27px; }.workspace-topbar { padding-inline: 27px; }.metric-card { padding-inline: 16px; }.metric-card strong { font-size: 27px; }.home-columns { grid-template-columns: 1.1fr .9fr; }.product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.product-card:last-child:nth-child(odd) { grid-column: span 2; min-height: 205px; }.admin-columns { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .topbar { height: 62px; padding-inline: 18px; }.edition-label { display: none; }.auth-layout { min-height: calc(100vh - 62px); grid-template-columns: 1fr; padding: 26px 17px 40px; gap: 18px; align-content: start; }.welcome-panel { min-height: auto; padding: 16px 7px 7px; }.welcome-panel h1 { font-size: clamp(42px, 12vw, 61px); margin-bottom: 12px; }.welcome-panel .eyebrow { margin-bottom: 10px; }.welcome-copy { max-width: 480px; font-size: 13px; margin-bottom: 0; }.sound-stamp { right: 9px; top: 27px; bottom: auto; width: 65px; height: 65px; }.sound-stamp span { font-size: 18px; }.sound-stamp small { font-size: 6px; }.welcome-foot { display: none; }.auth-card { max-width: 520px; padding: 28px 24px 21px; }.auth-card h2 { font-size: 27px; margin-bottom: 17px; }.auth-note { margin-top: 18px; }
  .app-shell { display: block; min-height: calc(100vh - 62px); }.sidebar { position: fixed; top: 0; left: 0; z-index: 8; width: min(290px,84vw); height: 100dvh; min-height: 0; transform: translateX(-105%); transition: transform .2s ease; box-shadow: 10px 0 40px rgba(48,32,21,.15); background: #eee4d2; }.sidebar.is-open { transform: translateX(0); }.sidebar-close { display: block; }.menu-button { display: block; width: 32px; height: 32px; font-size: 15px; }.workspace-topbar { height: 52px; padding-inline: 15px; gap: 12px; justify-content: flex-start; }.breadcrumbs { flex: 1; }.workspace-tools { font-size: 0; gap: 0; }.workspace-tools .status-dot { margin-right: 0; }.workspace-edition { display: none; }.workspace-content { padding: 24px 15px 17px; }.page-intro { margin: 5px 0 23px; }.page-intro h1 { font-size: 39px; }.lead { font-size: 11px; }.sunburst { width: 54px; height: 54px; flex-basis: 54px; font-size: 27px; }.metric-grid { gap: 7px; margin: 19px 0 12px; }.metric-card { min-height: 108px; padding: 12px 10px 13px; }.metric-top { font-size: 6px; letter-spacing: .07em; }.metric-card strong { font-size: 23px; margin-top: 12px; }.metric-card small { font-size: 8px; line-height: 1.3; }.metric-rule { left: 10px; width: 27px; }.home-columns { grid-template-columns: 1fr; gap: 11px; }.surface-card { padding: 18px 16px; }.section-heading h2 { font-size: 19px; }.note-card { min-height: 205px; }.note-card blockquote { max-width: 310px; }.section-heading-spaced { margin-top: 22px; }.workspace-footer { font-size: 6px; }.workspace-footer span:last-child { text-align: right; }.two-column-layout, .library-layout { grid-template-columns: 1fr; gap: 12px; }.form-card, .device-list-card { padding: 19px 16px; }.plan-target { align-items: flex-start; flex-direction: column; }.inline-field { width: 100%; min-width: 0; }.product-grid { grid-template-columns: 1fr; }.product-card, .product-card:last-child:nth-child(odd) { grid-column: auto; min-height: 215px; }.product-card.featured { transform: none; }.search-field input { width: min(145px,34vw); }.library-card, .playlist-card { min-height: auto; }.admin-columns { grid-template-columns: 1fr; }.admin-records { padding-inline: 16px; }.modal { padding: 27px 22px 22px; }
}
@media (max-width: 390px) {
  .brand-name { font-size: 21px; }.auth-card { padding-inline: 18px; }.auth-tab { font-size: 10px; }.input-action { gap: 5px; }.input-action .button { padding-inline: 9px; font-size: 9px; }.metric-card strong { font-size: 20px; }.metric-top { letter-spacing: .035em; }.metric-card small { font-size: 7px; }.workspace-content { padding-inline: 12px; }.workspace-topbar { padding-inline: 12px; }.breadcrumbs { font-size: 9px; }.edition-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.admin-upload-block { border-top: 1px solid #e2d4c1; margin-top: 22px; padding-top: 20px; }
.admin-upload-block .section-heading { margin-bottom: 13px; }
.admin-upload-block .field input[type="file"] { padding: 9px; font-size: 10px; }
.playlist-editor { border-top: 1px solid #e2d4c1; margin-top: 12px; padding-top: 13px; }
.playlist-edit-tools { display: flex; gap: 6px; margin-bottom: 8px; }
.playlist-edit-tools input { flex: 1; min-width: 0; border: 1px solid #d8c9b5; background: #fffdf7; padding: 8px; font-size: 10px; }
.playlist-item { display: flex; align-items: center; gap: 6px; border-top: 1px solid #eee5d7; padding: 7px 0; }
.playlist-item:first-child { border-top: 0; }
.playlist-item .row-copy strong { font-family: var(--sans); font-size: 10px; }
.playlist-item .item-tools { display: flex; gap: 3px; }
.playlist-item .mini-button { padding: 5px 6px; }

/* Device usage reports */
.usage-summary { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin: 18px 0; }
.usage-summary-card { min-width: 0; margin: 0; padding: 14px 15px; border: 1px solid #d8e4ec; border-left: 3px solid #5b8fb0; border-radius: 10px; background: #f4f9fc; }
.usage-summary-card.is-song { border-color: #d5e5d8; border-left-color: #6f9b7b; background: #f4faf5; }
.usage-summary-card.is-action { border-color: #f1ddc4; border-left-color: #d39a54; background: #fff8ee; }
.usage-summary-card.is-upload { border-color: #e4ded5; border-left-color: #b5a597; background: #faf8f4; }
.usage-summary-card dt { font-size: 11px; color: #61717b; line-height: 1.4; }
.usage-summary-card dd { margin: 7px 0 0; color: #273a48; font-size: clamp(15px,2vw,21px); font-weight: 700; overflow-wrap: anywhere; }
.usage-insights { margin: 20px 0 24px; padding: 17px 19px; border: 1px solid #dce9e5; border-radius: 12px; background: #f7fbf9; }
.usage-insights > h4, .usage-history h4 { margin: 0 0 8px; color: #2d554b; font-size: 15px; }
.usage-insights > p { margin: 0 0 12px; color: #53675d; font-size: 12px; line-height: 1.6; }
.usage-top { margin-top: 13px; }
.usage-top h4 { color: #3c5f72; font-size: 12px; margin: 0 0 7px; }
.usage-top ol { margin: 0; padding-left: 0; list-style: none; counter-reset: usage-rank; }
.usage-top ol[start="6"] { counter-reset: usage-rank 5; }
.usage-top details { margin: 6px 0 0; }
.usage-top summary { color: #3e718b; font-size: 11px; cursor: pointer; padding: 5px 0; }
.usage-top summary:focus-visible { outline: 3px solid #5b8fb0; outline-offset: 2px; }
.usage-top li { padding: 7px 2px; border-top: 1px solid #e1ecea; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; color: #597181; font-size: 11px; }
.usage-top li::before { counter-increment: usage-rank; content: counter(usage-rank) "."; color: #75909c; flex: 0 0 17px; }
.usage-top li > div { display: grid; min-width: 0; }
.usage-top li strong { color: #273a48; font-size: 12px; overflow-wrap: anywhere; }
.usage-top li small { color: #72838c; }
.usage-top li > span { flex: 0 0 auto; text-align: right; }
.usage-insights .usage-top-note { margin: 12px 0 0; font-size: 10px; }
.usage-action-counts { margin: 14px 0 18px; }
.usage-action-counts h4 { margin: 0 0 8px; color: #98642e; font-size: 12px; }
.usage-action-counts ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.usage-action-counts li { display: grid; grid-template-columns: minmax(95px,1fr) minmax(70px,2fr) auto; align-items: center; gap: 10px; font-size: 11px; color: #596a67; }
.usage-action-counts li strong { color: #8a602f; font-size: 11px; white-space: nowrap; }
.usage-action-bar { height: 7px; border-radius: 99px; background: #ece7dd; overflow: hidden; }
.usage-action-bar > span { display: block; height: 100%; border-radius: inherit; background: #d39a54; }
.usage-history { margin-top: 20px; }
.usage-history-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.usage-history-heading small { color: #6b7a7f; font-size: 11px; }
.usage-history-note, .usage-batch-note { color: #6b7a7f; font-size: 11px; line-height: 1.5; }
.usage-upload-card { margin: 9px 0; border: 1px solid #d8e3e6; border-radius: 10px; overflow: hidden; background: #fff; }
.usage-upload-toggle { width: 100%; padding: 14px 16px; border: 0; background: #f8fbfc; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #273a48; }
.usage-upload-toggle:hover { background: #edf6f8; }
.usage-upload-toggle > span:first-child { display: grid; gap: 5px; min-width: 0; }
.usage-upload-toggle strong { font-size: 12px; }
.usage-upload-toggle small { color: #647985; font-size: 11px; line-height: 1.5; }
.usage-chevron { font-size: 19px; transition: transform .15s; }
.usage-upload-toggle[aria-expanded="true"] .usage-chevron { transform: rotate(180deg); }
.usage-upload-detail { padding: 15px 17px 17px; border-top: 1px solid #e2ebee; }
.usage-batch-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.usage-batch-columns h5 { margin: 7px 0 9px; font-size: 12px; color: #355d71; }
.usage-batch-columns section:last-child h5 { color: #a46b35; }
.usage-batch-columns ul, .usage-system ul { margin: 0; padding: 0; list-style: none; }
.usage-scroll { max-height: 440px; overflow: auto; overscroll-behavior: contain; }
.usage-scroll:focus-visible { outline: 3px solid #5b8fb0; outline-offset: -3px; }
.usage-detail-row { padding: 9px 0; display: flex; align-items: flex-start; gap: 9px; border-top: 1px solid #e9eeef; }
.usage-detail-row > div { display: grid; gap: 3px; min-width: 0; }
.usage-detail-row strong { font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.usage-detail-row small { color: #718189; font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
.usage-kind { padding: 3px 5px; border-radius: 4px; background: #e4f1f8; color: #3b708e; font-size: 10px; white-space: nowrap; }
.usage-kind.is-song { background: #e7f4e8; color: #477b52; }
.usage-action-dot { margin: 5px 3px 0; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #d39a54; }
.usage-detail-empty { padding: 10px 0; color: #7c898f; font-size: 11px; }
.usage-system { margin-top: 13px; color: #66777f; font-size: 11px; }
.usage-system summary { cursor: pointer; }
.usage-system summary:focus-visible, .usage-upload-toggle:focus-visible { outline: 3px solid #5b8fb0; outline-offset: -3px; }
.usage-system li { padding: 5px 0; overflow-wrap: anywhere; }
.usage-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 17px 0 4px; color: #61717b; font-size: 11px; }
@media (max-width: 680px) {
  .usage-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .usage-batch-columns { grid-template-columns: 1fr; gap: 10px; }
  .usage-top li { display: grid; grid-template-columns: 17px minmax(0,1fr); gap: 3px 8px; }
  .usage-top li::before { grid-row: 1 / span 2; }
  .usage-top li > span { grid-column: 2; text-align: left; }
  .usage-action-counts li { grid-template-columns: minmax(70px,1fr) minmax(50px,1.5fr) auto; gap: 6px; }
}
