:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #302e2a;
  background: #f7f5f1;
  font-synthesis: none;
  --ink: #302e2a;
  --muted: #77736b;
  --line: #e6e1d9;
  --paper: #fffefa;
  --accent: #a6553d;
  --green: #526750;
  --cream: #f0e9dd;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--accent); }
::selection { background: #e8cbbd; color: #302e2a; }
a { color: inherit; text-underline-offset: 3px; }
button {
  cursor: pointer; border: 1px solid transparent; border-radius: 7px;
  padding: 11px 17px; font-size: 12px; font-weight: 600; line-height: 1.4;
  background: var(--ink); color: #fffdfa;
  transition: background .18s, border-color .18s, box-shadow .18s;
}
button:hover { background: #51473e; }
button:disabled { opacity: .5; cursor: wait; }
button.secondary { background: var(--paper); border-color: #ded8cf; color: var(--ink); }
button.secondary:hover { background: #f1ede6; border-color: #bfb3a5; }
button.ghost { background: transparent; color: #71675c; padding: 8px; }
button.ghost:hover { background: #eee8df; color: #743b2c; }
button.danger { background: #9d473c; }
button.danger:hover { background: #833c32; }
button.small { padding: 7px 11px; font-size: 11px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -1px; }
h1 { font-size: clamp(30px, 2.8vw, 40px); line-height: 1.2; }
h2 { font-size: 26px; line-height: 1.2; }
h3 { font-size: 14px; line-height: 1.4; }
p { line-height: 1.65; }
small, .muted { color: var(--muted); }
small { font-size: 12px; }
label { font-size: 12px; font-weight: 600; display: flex; flex-direction: column; gap: 8px; }
label.check { flex-direction: row; align-items: flex-start; font-weight: 400; font-size: 13px; line-height: 1.5; }
input:not([type=checkbox]), select, textarea {
  width: 100%; min-width: 0; border: 1px solid #ded8ce; border-radius: 6px;
  padding: 12px 13px; background: #fffefa; color: var(--ink); font-size: 13px;
}
input::placeholder, textarea::placeholder { color: #8c857b; }
textarea { resize: vertical; min-height: 100px; line-height: 1.65; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
input:disabled, select:disabled, textarea:disabled { background: #eeeae3; color: #756f65; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); flex-shrink: 0; }
.boot { padding: 12vh 10vw; font-family: Georgia, serif; font-size: 30px; }
.skip-link { position: fixed; z-index: 200; top: -80px; left: 20px; background: var(--ink); color: white; padding: 12px 20px; }
.skip-link:focus { top: 16px; }
.brand { display: flex; gap: 10px; align-items: center; font-size: 22px; font-weight: 650; letter-spacing: -.9px; white-space: nowrap; }
.brand-light { font-weight: 400; }
.brand small { display: block; font-size: 7px; letter-spacing: 1.65px; font-weight: 500; color: #8a7e6e; margin-top: 6px; }
.brand-mark { width: 36px; height: 40px; background: var(--accent); border-radius: 11px 11px 6px 6px; display: grid; place-items: center; flex-shrink: 0; }
.brand-mark svg { width: 32px; fill: none; stroke: #fff3df; stroke-width: 2.7; stroke-linecap: round; }
.eyebrow { font-size: 9px; text-transform: uppercase; letter-spacing: 1.7px; font-weight: 600; color: #827465; margin-bottom: 13px; line-height: 1.6; }
.eyebrow-divider { margin: 0 10px; color: #b9aa96; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }

/* A quiet, permanent workbench around every screen. */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.sidebar { background: #faf8f4; border-right: 1px solid var(--line); padding: 29px 18px 20px; display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; width: 236px; overflow-y: auto; }
.sidebar .brand { padding: 0 8px; margin-bottom: 30px; }
.sidebar nav { display: grid; gap: 20px; }
.nav-label { font-size: 9px; font-weight: 500; letter-spacing: 1.7px; text-transform: uppercase; color: #8d8378; margin: 0 13px 7px; }
.nav-link { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: none; color: #6b675f; font-size: 12px; font-weight: 400; padding: 10px 13px; border-radius: 6px; margin: 2px 0; position: relative; }
.nav-link:hover { background: #f0ebe3; }
.nav-link.active { background: #eee1d6; color: #8c4833; font-weight: 600; }
.nav-link.active::after { content: ''; width: 5px; height: 5px; background: #a6553d; border-radius: 50%; margin-left: auto; }
.nav-icon { width: 17px; height: 17px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-bottom { margin-top: auto; padding-top: 24px; }
.sidebar-bottom > button { font-size: 11px; margin: 0 0 14px 5px; }
.account-mini { display: flex; align-items: center; gap: 11px; padding: 16px 6px 0; border-top: 1px solid var(--line); font-size: 11px; }
.account-mini > div:last-child { min-width: 0; }
.account-mini span { display: inline-block; overflow: hidden; text-overflow: ellipsis; max-width: 145px; white-space: nowrap; vertical-align: bottom; }
.account-mini small { font-size: 10px; display: inline-block; margin-top: 4px; }
.avatar { background: #e6dbc9; color: #796048; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: Georgia, serif; font-size: 15px; flex-shrink: 0; }
.main { grid-column: 2; min-width: 0; }
.topbar { min-height: 70px; background: #faf8f5; border-bottom: 1px solid var(--line); padding: 10px 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 11px; }
.workspace-name { display: flex; align-items: center; gap: 10px; color: #696358; min-width: 0; overflow-wrap: anywhere; }
.workspace-symbol { width: 28px; height: 28px; border: 1px solid #ded6cb; border-radius: 6px; display: grid; place-items: center; flex-shrink: 0; }
.workspace-symbol .nav-icon { width: 14px; height: 14px; }
.topbar .actions { flex-shrink: 0; gap: 24px; }
.topbar button { font-size: 11px; }
.topbar .status { display: flex; align-items: center; gap: 7px; color: #79766b; font-size: 10px; }
.dot { width: 5px; height: 5px; background: #7d8a6a; border-radius: 50%; }
.content { max-width: 1440px; margin: auto; padding: 34px 36px 45px; }
.content:focus { outline: none; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-bottom: 28px; }
.page-heading p { margin-top: 11px; font-size: 12px; color: var(--muted); max-width: 650px; }
.page-heading > .actions { flex-shrink: 0; max-width: 40%; }
.page-heading .eyebrow { margin-bottom: 10px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 9px; padding: 25px; }
.card-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 21px; }
.card-heading h2 { font-size: 24px; }
.card-heading .eyebrow { margin-bottom: 7px; font-size: 8px; }
.card-heading > button { flex-shrink: 0; font-size: 11px; }

/* The maker's desk is an illustration, separate from customer listing content. */
.hero { display: grid; grid-template-columns: 1.12fr 1fr; background: #f1ebe0; border: 1px solid #e7ddcf; border-radius: 10px; margin-bottom: 30px; overflow: hidden; }
.hero-copy { padding: 34px 30px 28px; align-self: center; }
.hero .eyebrow { display: flex; align-items: center; gap: 8px; letter-spacing: 1.4px; font-size: 8px; color: #8a6952; margin-bottom: 20px; }
.mini-rule { width: 22px; height: 1px; background: #aa7658; flex-shrink: 0; }
.hero h2 { font-size: clamp(33px, 3.1vw, 46px); line-height: 1.14; letter-spacing: -1.3px; }
.hero h2 em { color: #9b523b; font-weight: 400; }
.hero p { font-size: 12px; max-width: 350px; color: #7d7264; margin: 17px 0 23px; line-height: 1.8; }
.hero button { background: #a6553d; border-color: #a6553d; font-size: 11px; }
.hero button:hover { background: #8c4430; }
.hero button span { margin-left: 18px; font-size: 15px; }
.hero-note { font-size: 9px; color: #8d7e6d; margin-top: 16px; }
.hero-art { align-self: stretch; margin: 18px 18px 18px 0; display: flex; flex-direction: column; min-width: 0; }
.studio-scene { display: block; width: 100%; height: auto; }
.hero-art .studio-scene { flex: 1; min-height: 0; object-fit: cover; border-radius: 5px; background: #e1d5c4; }
.art-caption { display: flex; justify-content: space-between; gap: 15px; font-size: 7px; letter-spacing: 1.4px; color: #8d7b66; padding-top: 13px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 15px; }
.section-heading h2 { font-family: inherit; font-size: 13px; font-weight: 550; letter-spacing: -.15px; }
.section-heading > span { font-size: 10px; color: #8a8277; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 30px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 19px 20px; }
.stat-title { font-size: 10px; color: #756e63; display: flex; justify-content: space-between; align-items: center; gap: 5px; }
.stat-icon { width: 27px; height: 27px; display: grid; place-items: center; background: #f2e9de; color: #9b7554; border-radius: 7px; }
.stat-icon .nav-icon { width: 14px; height: 14px; }
.stat-icon-1 { background: #eaf0e5; color: #758664; }
.stat-icon-2 { background: #f6e8e0; color: #ae785c; }
.stat-icon-3 { background: #ede9f0; color: #92829c; }
.stat-value { font-family: Georgia, serif; font-size: 34px; letter-spacing: -1px; margin: 7px 0 11px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-value small { font-family: inherit; font-size: 16px; letter-spacing: 0; color: #9a8e7d; }
.stat-note { font-size: 9px; line-height: 1.5; color: #776f62; border-top: 1px solid #eee9e1; padding-top: 11px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(250px, 1fr); gap: 22px; align-items: start; }
.improvement-card { min-height: 230px; }
.queue-item { display: flex; align-items: center; gap: 13px; padding: 21px 0; border-top: 1px solid #eee8de; }
.queue-item:last-child { padding-bottom: 3px; }
.item-tile { width: 57px; height: 64px; border-radius: 5px; background: #eee6d8; display: grid; place-items: center; flex-shrink: 0; color: #a48d6b; }
.item-tile svg { width: 34px; height: 34px; stroke: currentColor; stroke-width: 1.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.item-tile.digital { background: #e9e9df; color: #8b9574; }
.item-tile.vintage { background: #f0dfd3; color: #b17d60; }
.item-info { min-width: 0; flex: 1; }
.item-info strong { font-size: 12px; line-height: 1.5; font-weight: 550; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-info small { display: block; margin-top: 6px; font-size: 10px; line-height: 1.5; }
.item-meta { display: block; font-size: 9px; color: #9a8e7e; text-transform: capitalize; margin-top: 8px; }
.queue-item > button { font-size: 11px; padding: 7px 4px; flex-shrink: 0; }
.pill { font-size: 9px; display: inline-block; padding: 5px 8px; border-radius: 4px; letter-spacing: .1px; line-height: 1.4; background: #eaf0e4; color: #647052; white-space: nowrap; }
.pill.warning { background: #f6ecd7; color: #916328; }
.pill.blocker, .pill.failed { background: #f7e6df; color: #994c38; }
.pill.neutral { background: #efede8; color: #7d7366; }
.tip-card { background: #edeede; border-color: #e0e2cf; padding: 24px; }
.tip-card-header { display: flex; justify-content: space-between; align-items: center; }
.tip-card-header .eyebrow { font-size: 8px; color: #7d8064; }
.tip-icon { font-size: 31px; color: #8e9572; line-height: 1; margin: -5px 0 10px; }
.tip-card h2 { font-size: 29px; color: #555c41; }
.tip-card > p { font-size: 11px; color: #7e816b; margin: 13px 0; }
.tip-list { display: grid; gap: 18px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #d9ddc7; }
.tip-step { display: flex; gap: 12px; font-size: 10px; }
.tip-step b { font-family: Georgia, serif; font-weight: 400; color: #929c77; font-size: 15px; width: 23px; flex-shrink: 0; }
.tip-step strong { font-weight: 550; color: #596149; }
.tip-step p { font-size: 10px; margin: 5px 0 0; color: #7b816c; line-height: 1.6; }

/* Listing work and the supporting notebooks share the same paper surfaces. */
.table-wrap { overflow-x: auto; }
.card.table-wrap { padding: 7px 13px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
th { font-size: 9px; text-transform: uppercase; letter-spacing: 1px; color: #8e8170; font-weight: 500; padding: 15px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 20px 12px; border-bottom: 1px solid #eee9e1; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #faf7f1; }
td.title { min-width: 270px; max-width: 360px; }
td.title strong { font-size: 12px; line-height: 1.5; font-weight: 550; }
td.title small { display: block; margin-top: 7px; font-size: 10px; text-transform: capitalize; }
td:last-child { white-space: nowrap; }
td .ghost { font-size: 11px; }
.listing-identity { display: flex; align-items: center; gap: 16px; }
.score { display: inline-flex; gap: 6px; align-items: baseline; font-family: Georgia, serif; font-size: 23px; white-space: nowrap; }
.score small { font-family: inherit; font-size: 11px; }
.toolbar { display: flex; gap: 12px; justify-content: space-between; margin-bottom: 19px; }
.toolbar form { display: flex; gap: 8px; max-width: 430px; flex: 1; }
.toolbar input { background: var(--paper); }
.toolbar button { font-size: 11px; }
.empty { text-align: center; padding: 45px 25px; }
.empty h2 { margin: 12px 0; }
.empty p { font-size: 12px; color: var(--muted); max-width: 450px; margin: 10px auto 22px; }
.empty .icon { font-size: 38px; color: #b29c7a; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(270px, 1fr); gap: 24px; align-items: start; }
.editor-intro { display: flex; align-items: center; gap: 17px; margin: 0 0 26px; padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.editor-intro .eyebrow { font-size: 8px; margin-bottom: 6px; }
.editor-intro h2 { font-size: 23px; }
.editor-intro .item-tile { width: 44px; height: 50px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 21px; }
.span-2 { grid-column: 1/-1; }
.field-help { font-size: 10px; line-height: 1.6; color: var(--muted); font-weight: 400; }
.editor-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 25px; padding-top: 23px; border-top: 1px solid var(--line); }
.editor-actions button { font-size: 11px; }
.section-title { font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: #967c61; grid-column: 1/-1; margin: 16px 0 0; padding-top: 23px; border-top: 1px solid var(--line); }
#audit-panel { border-top: 3px solid #a8b091; }
.audit-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 17px; }
.audit-top .eyebrow { font-size: 8px; margin-bottom: 8px; }
.audit-score { font-family: Georgia, serif; font-size: 49px; letter-spacing: -1.5px; color: #626e52; }
.audit-score small { font-size: 17px; }
.finding { padding: 20px 0; border-top: 1px solid var(--line); margin-top: 18px; }
.finding p { font-size: 12px; margin: 12px 0 9px; }
.finding small { display: block; font-size: 11px; line-height: 1.6; }
.finding a { font-size: 10px; color: #866447; display: inline-block; margin-top: 12px; }
.notice { border: 1px solid #e7d7b8; background: #fbf3e4; padding: 15px 18px; border-radius: 7px; font-size: 12px; line-height: 1.65; color: #856d45; margin-bottom: 20px; }
.notice.info { background: #edf0e5; border-color: #dee3cf; color: #647150; }
.error { background: #f9eae3; border: 1px solid #ebd0c2; color: #9b503c; padding: 13px 16px; border-radius: 7px; font-size: 13px; line-height: 1.5; margin-bottom: 15px; }
.note-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.note-card { display: flex; flex-direction: column; gap: 15px; min-height: 190px; border-top: 3px solid #d4b999; }
.note-card h2 { overflow-wrap: anywhere; }
.note-card p { font-size: 12px; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.note-card .actions { margin-top: auto; justify-content: space-between; }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.price-card h2 { margin: 15px 0; font-size: 33px; }
.price { font-family: Georgia, serif; font-size: clamp(24px, 3vw, 42px); margin: 20px 0; overflow-wrap: anywhere; }
.price small { font-family: inherit; font-size: 15px; }
.price-card ul { padding-left: 18px; font-size: 12px; line-height: 2.4; color: var(--muted); min-height: 130px; }
.price-card.featured { border: 1px solid #ba8568; background: #f5eee3; box-shadow: 0 0 0 3px #ead8c84a; }
.price-card.featured button { background: var(--accent); }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.settings-grid h2 { margin-bottom: 20px; }
.settings-grid p { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.status-line { display: flex; gap: 9px; align-items: center; font-size: 12px; color: var(--muted); }
.history-row { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.history-row:last-child { border-bottom: 0; }
.history-row > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.history-row .actions { justify-content: flex-end; flex-shrink: 0; }
.support-link { font-size: 11px; display: block; padding: 12px; }
.footer { font-size: 9px; line-height: 1.7; color: #928575; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); }
.footer button { font-size: 9px; padding: 4px; }
#toast { position: fixed; bottom: 25px; right: 25px; max-width: min(400px, calc(100vw - 40px)); padding: 15px 20px; border-radius: 8px; background: var(--ink); color: #fffaf2; box-shadow: 0 8px 35px #302a2425; z-index: 99; display: none; font-size: 13px; line-height: 1.5; }

/* Reviews stay legible, with the proposed version clearly distinguished. */
dialog { border: 1px solid #dcd3c6; border-radius: 12px; padding: 30px; max-width: 900px; width: calc(100% - 36px); box-shadow: 0 30px 120px #362b2240; max-height: 90vh; overflow: auto; color: var(--ink); background: var(--paper); }
dialog::backdrop { background: #362c2270; backdrop-filter: blur(3px); }
.dialog-heading { display: flex; justify-content: space-between; gap: 25px; align-items: center; margin-bottom: 24px; }
.diff { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0; }
.diff-cell { padding: 19px; border: 1px solid var(--line); border-radius: 7px; min-width: 0; white-space: pre-wrap; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; background: #f6f2eb; max-height: 270px; overflow: auto; }
.diff-cell.after { background: #eef1e6; border-color: #dbe2ca; }
.diff-label { text-transform: uppercase; letter-spacing: 1px; font-size: 9px; color: var(--muted); margin-bottom: 7px; }
.modal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.prose { font-size: 14px; line-height: 1.75; max-width: 700px; }
.prose p { margin: 15px 0; }
.prose h3 { margin-top: 25px; }

/* The welcome screen borrows its palette from the desk illustration. */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; background: #fbf9f5; }
.auth-story { background: #eee7db; padding: 42px 7vw; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; min-height: 100vh; }
.auth-story .brand { margin-bottom: 18px; }
.auth-story h1 { font-size: clamp(40px, 4.5vw, 65px); line-height: 1.04; letter-spacing: -2px; }
.auth-story p { max-width: 420px; margin-top: 20px; color: #7d7264; font-size: 12px; line-height: 1.9; }
.auth-story > small { font-size: 9px; color: #8c7d6b; }
.auth-art { width: 100%; max-width: 460px; }
.auth-art .studio-scene { max-height: 300px; }
.auth-panel { max-width: 400px; padding: 45px 24px; margin: auto; width: 100%; }
.auth-panel h2 { margin: 12px 0; font-size: 36px; }
.auth-panel > p { font-size: 12px; }
.auth-panel form { margin: 28px 0; }
.auth-panel form > button { background: var(--accent); padding: 13px; margin-top: 5px; }
.auth-panel form > button:hover { background: #8c4430; }
.auth-panel .actions { margin: 9px 0 25px; }
.auth-panel .actions button { font-size: 11px; color: var(--accent); }
.auth-panel > button { font-size: 10px; }

@media (min-width: 1550px) {
  .content { padding-top: 42px; }
  .hero-copy { padding: 44px; }
  .hero-art { margin: 22px 22px 22px 0; }
}
@media (max-width: 1150px) {
  .sidebar { width: 205px; padding: 25px 12px 18px; }
  .shell { grid-template-columns: 205px 1fr; }
  .brand { font-size: 19px; gap: 8px; }
  .brand small { font-size: 6px; letter-spacing: 1.35px; }
  .content { padding: 28px; }
  .topbar { padding: 10px 28px; }
  .topbar .status { display: none; }
  .page-heading { align-items: flex-start; }
  .page-heading > .actions { max-width: 32%; }
  .hero-copy { padding: 28px 24px; }
  .hero-art { margin: 14px 14px 14px 0; }
  .hero h2 { font-size: 34px; }
  .hero p { font-size: 11px; }
  .stats { gap: 10px; }
  .stat { padding: 16px 14px; }
  .stat-icon { width: 22px; height: 22px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.6fr) minmax(230px, 1fr); gap: 16px; }
  .queue-item { flex-wrap: wrap; }
  .queue-item .item-info { flex-basis: calc(100% - 75px); }
  .queue-item > .pill { margin-left: 70px; }
  .queue-item > button { margin-left: auto; }
  .card { padding: 22px; }
  .card-heading { align-items: flex-start; }
  .card-heading h2 { font-size: 22px; }
  .editor-grid { grid-template-columns: minmax(0, 1fr) 270px; gap: 18px; }
  .note-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar { flex-wrap: wrap; }
  .toolbar form { flex-basis: 100%; }
}
@media (max-width: 950px) {
  .hero { grid-template-columns: 1.2fr 1fr; }
  .hero h2 { font-size: 30px; }
  .hero-art .art-caption span:last-child { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .queue-item { flex-wrap: nowrap; }
  .queue-item .item-info { flex-basis: auto; }
  .queue-item > .pill { margin-left: 0; }
  .editor-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .price-card ul { min-height: unset; }
  .price { font-size: 38px; }
  .auth-story { padding: 38px 5vw; }
}
@media (max-width: 760px) {
  .shell { display: block; }
  .sidebar { position: static; width: auto; padding: 18px 18px 0; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .sidebar .brand { margin-bottom: 16px; padding: 0 2px; }
  .sidebar nav { display: flex; overflow-x: auto; gap: 4px; padding-bottom: 12px; scrollbar-width: thin; }
  .nav-group { display: contents; }
  .nav-label, .sidebar-bottom { display: none; }
  .nav-link { width: auto; flex-shrink: 0; white-space: nowrap; padding: 9px 12px; font-size: 11px; margin: 0; }
  .nav-link .nav-icon { width: 14px; height: 14px; }
  .nav-link.active::after { display: none; }
  .topbar { min-height: 52px; padding: 6px 20px; }
  .content { padding: 25px 18px 35px; }
  .page-heading { flex-direction: column; gap: 17px; margin-bottom: 23px; }
  .page-heading > .actions { max-width: none; }
  h1 { font-size: 32px; letter-spacing: -.9px; }
  .page-heading p { font-size: 12px; }
  .hero { grid-template-columns: 1fr 1fr; }
  .hero h2 { font-size: 33px; }
  .hero-copy { padding: 26px; }
  .hero-art { margin: 14px 14px 14px 0; }
  .hero button { padding: 11px 13px; }
  .hero button span { margin-left: 8px; }
  .section-heading > span { display: none; }
  .stat { padding: 17px; }
  .stat-title { font-size: 10px; }
  .stat-value { font-size: 32px; }
  .stat-note { font-size: 9px; }
  .card { padding: 21px; }
  .card.table-wrap { padding: 6px 10px; }
  .queue-item { gap: 12px; }
  .queue-item .pill { display: none; }
  .form-grid, .settings-grid, .note-grid, .diff { grid-template-columns: 1fr; }
  .toolbar { flex-direction: column; }
  .toolbar .actions { gap: 6px; }
  .toolbar button, .support-link { font-size: 10px; }
  .toolbar form { max-width: none; }
  .history-row { flex-wrap: wrap; }
  .history-row .actions { justify-content: flex-start; }
  dialog { padding: 22px; }
  .dialog-heading h2 { font-size: 25px; }
  .footer { margin-top: 27px; }
  .auth { grid-template-columns: 1fr; }
  .auth-story { min-height: unset; padding: 28px; gap: 25px; }
  .auth-story h1 { font-size: 44px; letter-spacing: -1.5px; }
  .auth-story .brand { margin-bottom: 5px; }
  .auth-story > small, .auth-art { display: none; }
  .auth-story p { margin-top: 15px; max-width: 480px; }
  .auth-panel { padding: 35px 25px; }
}
@media (max-width: 540px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 27px 25px; }
  .hero h2 { font-size: 36px; }
  .hero .eyebrow { margin-bottom: 16px; }
  .hero p { font-size: 12px; max-width: 330px; }
  .hero-art { margin: 0 15px 15px; }
  .hero-art .studio-scene { height: 210px; flex: none; }
  .hero-art .art-caption span:last-child { display: inline; }
  .hero-note { margin-top: 14px; }
  .stats { gap: 10px; }
  .stat { padding: 15px 13px; }
  .stat-icon { width: 22px; height: 22px; }
  .card-heading h2 { font-size: 22px; }
  .card-heading > button { font-size: 10px; padding: 5px 0; }
  .queue-item { flex-wrap: wrap; }
  .queue-item .item-info { flex-basis: calc(100% - 75px); }
  .queue-item > button { margin-left: auto; }
  .editor-intro h2 { font-size: 21px; }
  .editor-intro { gap: 13px; }
  .modal-actions button { flex-grow: 1; }
  .topbar .actions { gap: 5px; }
  .workspace-name { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
