:root {
  color-scheme: light;
  --canvas: #f8f8f3;
  --paper: #fff;
  --sidebar: #fbfbf7;
  --ink: #202b23;
  --muted: #59655a;
  --quiet: #68746a;
  --line: #e4e8df;
  --forest: #294b3a;
  --dark: #203e30;
  --sage: #e7eee3;
  --serif: "Noto Naskh", Georgia, serif;
  --sans: "Noto Arabic", system-ui, sans-serif;
  --radius: 14px;
  --side: 222px;
}

@font-face { font-family: "Noto Arabic"; src: url("./arabic-regular.woff") format("woff"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Noto Arabic"; src: url("./arabic-bold.woff") format("woff"); font-weight: 600 800; font-display: swap; }
@font-face { font-family: "Noto Naskh"; src: url("./arabic-display.woff") format("woff"); font-weight: 400 700; font-display: swap; }
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 1rem/1.6 var(--sans); }
input, select, button, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
svg { display: block; flex: none; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [tabindex="0"]:focus-visible { outline: 2px solid #567b5f; outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
.skip { position: fixed; z-index: 20; top: 8px; inset-inline-start: 8px; padding: 10px; background: white; transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }

.shell { display: grid; grid-template-columns: var(--side) minmax(0,1fr); min-height: 100vh; }
.sidebar { display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh; padding: 29px 16px 17px; border-inline-end: 1px solid var(--line); background: var(--sidebar); z-index: 5; }
.brand { display: flex; align-items: center; gap: 11px; width: fit-content; margin: 0 0 41px; margin-inline-start: 8px; color: #263e30; }
.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 11px; background: var(--forest); color: #f7faef; }
.brand-mark svg { rotate: -11deg; }
.brand-word { display: block; font: 600 1.27rem/1.06 var(--serif); letter-spacing: normal; }
.brand-sub { display: block; margin-top: 5px; padding-inline-start: 1px; color: #627061; font-size: .64rem; font-weight: 650; letter-spacing: normal; text-transform: uppercase; }
.nav-label { padding: 0 12px; margin-bottom: 10px; color: #68756a; font-size: .69rem; font-weight: 700; letter-spacing: normal; text-transform: uppercase; }
.nav-list { display: grid; gap: 4px; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 8px; color: #47564a; min-height: 44px; font-size: .91rem; font-weight: 500; }
.nav-link:hover { background: #f0f3eb; color: #264432; }
.nav-link[aria-current="page"] { background: #e6ede1; color: #284b37; font-weight: 700; }
.sidebar-foot { margin-top: auto; }
.demo-button { display: flex; gap: 10px; align-items: center; text-align: start; width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #f6f7ef; color: var(--ink); padding: 11px 9px; }
.demo-button:hover { background: var(--sage); }
.demo-button .demo-info { margin-inline-start: auto; color: #617365; }
.studio-avatar { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 9px; background: #e5eadb; color: #46624f; }
.demo-button strong { font-size: .78rem; display: block; }
.demo-button small { font-size: .72rem; display: block; color: var(--muted); }

.topbar { min-height: 68px; padding: 0 29px; border-bottom: 1px solid var(--line); background: #fbfbf7; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.breadcrumb { display: flex; align-items: center; gap: 11px; min-width: 0; color: var(--muted); font-size: .875rem; }
.breadcrumb strong { color: #263b2e; font-weight: 650; white-space: nowrap; }
.crumb-divider { color: #89938a; }
.top-actions { display: flex; align-items: center; gap: 16px; }
.search-trigger { display: flex; align-items: center; gap: 9px; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; min-height: 37px; min-width: 203px; padding: 0; padding-inline: 11px 8px; text-align: start; font-size: .84rem; }
.search-trigger:hover { border-color: #b8c5b6; }
kbd { margin-inline-start: auto; padding: 2px 5px; border: 1px solid #e7ebe3; border-radius: 4px; background: #f7f8f4; color: #576359; font: .69rem var(--sans); white-space: nowrap; }
.top-avatar { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #dbe6d6; border-radius: 50%; background: #e7eee1; color: #324f3d; font-size: .74rem; font-weight: 750; }
.topbar .mobile-toggle, .nav-shade { display: none; }

main { max-width: 1570px; margin: 0 auto; padding: 27px 29px 32px; outline: none; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 21px; }
h1 { font: 500 clamp(2rem, 3.2vw, 3.05rem)/1.06 var(--serif); letter-spacing: normal; color: #243429; }
.head-sub { display: flex; align-items: center; gap: 7px; margin-top: 8px; color: var(--muted); font-size: .88rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; flex: none; gap: 7px; min-height: 40px; padding: 8px 13px; border: 1px solid #dfe6db; border-radius: 8px; background: #fff; color: #2d4937; font-size: .875rem; font-weight: 650; line-height: 1.25; }
.btn:hover { background: #f0f5ed; border-color: #bacab9; }
.btn.primary { background: var(--forest); border-color: var(--forest); color: #fff; padding-inline: 14px; }
.btn.primary:hover { background: var(--dark); border-color: var(--dark); }
.btn.subtle { background: #f5f7f1; }
.btn.small { min-height: 33px; padding: 6px 10px; }
.icon-button { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #506255; }
.icon-button:hover { background: #ebf0e7; color: var(--dark); }
.text-button { padding: 0; border: 0; color: #355b42; background: transparent; font-size: .875rem; font-weight: 650; }
.text-button:hover { text-decoration: underline; }

.hero { position: relative; border-radius: var(--radius); overflow: hidden; isolation: isolate; min-height: 218px; padding: 22px 26px; background: #e6ebdc; display: flex; align-items: center; margin-bottom: 19px; }
.hero::before { content: ""; position: absolute; inset: 0 31% 0 0; z-index: -2; transform: scaleX(-1); background: url("./atelier.webp") 55% 55% / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg,#e6ebdc 0%,#e6ebdc 31%,#e6ebdcda 41%,#e6ebdc28 55%,transparent 65%); }
.hero-copy { max-width: 51%; }
.hero h2 { font: 500 clamp(2.2rem, 4.05vw, 3.75rem)/1.17 var(--serif); letter-spacing: normal; color: #253d2d; }
.hero p { margin: 12px 0 15px; color: #405644; font-size: .9rem; }
.hero .btn { min-height: 34px; background: #f5f7ee; border-color: #cbd8c6; }
.hero .btn:hover { background: #fff; }

.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin-bottom: 20px; }
.metric { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); padding: 13px 14px 12px; min-width: 0; display: block; text-align: start; color: var(--ink); }
.metric:hover { border-color: #b9cdb8; background: #fdfefa; }
.metric-top { display: flex; align-items: center; gap: 8px; white-space: nowrap; color: #4b5b4d; font-size: .86rem; font-weight: 550; }
.metric-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: #eaf0e5; color: #4b6b54; }
.metric:nth-child(2) .metric-icon { background: #eee9f0; color: #705c7a; }
.metric:nth-child(3) .metric-icon { background: #edf0e3; color: #5e7149; }
.metric:nth-child(4) .metric-icon { background: #f4eee0; color: #7b6239; }
.metric-value { display: block; margin-top: 6px; color: #202f25; font: 500 clamp(1.57rem,2.65vw,2.05rem)/1.12 var(--serif); letter-spacing: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric-sub { display: block; margin-top: 4px; color: var(--quiet); font-size: .77rem; }

.dash-grid { display: grid; grid-template-columns: minmax(0,2.12fr) minmax(265px,1fr); gap: 15px; align-items: start; }
.panel { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel-head { min-height: 63px; display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 13px 15px; }
.panel-head h2 { font: 500 1.37rem/1.16 var(--serif); letter-spacing: normal; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: start; font-size: .87rem; }
th, td { padding: 11px 12px; vertical-align: middle; }
th:first-child, td:first-child { padding-inline-start: 15px; }
th:last-child, td:last-child { padding-inline-end: 15px; }
thead th { background: #f6f8f2; color: #4c5b4e; border-block: 1px solid #eaeee6; font-weight: 600; font-size: .8rem; white-space: nowrap; }
td { border-bottom: 1px solid #edf0e9; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr[data-row]:hover { background: #f9fbf6; cursor: pointer; }
td.date, .nowrap { white-space: nowrap; }
td.overdue { color: #a14537; font-weight: 650; }
.order-name { border: 0; padding: 0; text-align: start; color: var(--ink); background: transparent; font-weight: 650; font-size: .9rem; letter-spacing: normal; }
.order-name:hover { color: var(--forest); text-decoration: underline; }
.cell-sub { display: block; color: var(--quiet); font-size: .75rem; margin-top: 2px; }
.cell-contents { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cell-contents > span:last-child { min-width: 0; }
.customer-name { overflow-wrap: anywhere; }
.avatar { display: inline-grid; flex: none; place-items: center; width: 27px; height: 27px; border-radius: 50%; font-size: .66rem; font-weight: 750; color: #465a46; background: #e6edde; }
.avatar.c1 { color: #6f587c; background: #eee6f1; }
.avatar.c2 { color: #685d36; background: #f1ead6; }
.avatar.c3 { color: #7c584d; background: #f3e6e0; }
.avatar.c4 { color: #415e66; background: #e1edf0; }
.avatar.large { width: 45px; height: 45px; font-size: 1rem; }
.badge { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; border-radius: 20px; padding: 4px 8px; font-size: .77rem; font-weight: 600; line-height: 1.18; background: #edf0e9; color: #4e6052; white-space: nowrap; }
.badge::before, .stage-dot { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge.received, .stage-dot.received { color: #79633c; background-color: #f4eedf; }
.badge.sewing, .stage-dot.sewing { color: #416778; background-color: #e8f1f4; }
.badge.fitting, .stage-dot.fitting { color: #775787; background-color: #f0e9f5; }
.badge.ready, .stage-dot.ready, .badge.paid { color: #406746; background-color: #e7f0e3; }
.badge.completed, .stage-dot.completed { color: #58675b; background-color: #edf0ea; }
.badge.unpaid { color: #805c32; background-color: #f6eddd; }
.stage-dot.received, .stage-dot.sewing, .stage-dot.fitting, .stage-dot.ready, .stage-dot.completed { background-color: currentColor; }

.agenda-panel .panel-head { border-bottom: 1px solid #edf0e9; }
.agenda-list { display: grid; padding: 0 13px; }
.event { width: 100%; text-align: start; background: transparent; border: 0; border-bottom: 1px solid #edf0e9; padding: 9px 0; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 9px; align-items: center; color: var(--ink); }
.event:last-child { border-bottom: 0; }
.event:hover .event-name { text-decoration: underline; }
.event-date { display: grid; justify-items: center; align-content: center; min-height: 42px; text-transform: uppercase; border-radius: 8px; background: #f0f3ea; color: #486150; font-size: .61rem; font-weight: 700; letter-spacing: normal; line-height: 1.05; }
.event-date strong { margin-top: 2px; font: 600 1.1rem/1 var(--serif); letter-spacing: normal; }
.event-name { display: block; font-size: .865rem; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-type { color: #705782; background: #f0eaf5; border-radius: 5px; padding: 3px 5px; font-size: .68rem; font-weight: 650; white-space: nowrap; }
.event-type.pickup { color: #416748; background: #e9f1e5; }
.event-type.due { color: #766039; background: #f4edde; }
.agenda-footer { margin-top: 3px; border-top: 1px solid #edf0e9; padding: 11px 15px 12px; }

.list-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.input-wrap { display: flex; gap: 8px; align-items: center; min-height: 42px; border: 1px solid #dfe6dc; border-radius: 8px; padding: 0 10px; color: #5d7060; background: #fff; }
.input-wrap:focus-within { outline: 2px solid #668d6d; outline-offset: 1px; }
.input-wrap input { width: 100%; outline: none; background: transparent; border: 0; min-width: 0; color: var(--ink); font-size: .9rem; }
.list-toolbar .input-wrap { flex: 0 1 318px; }
.list-toolbar .result-count { margin-inline-start: auto; color: var(--muted); font-size: .85rem; white-space: nowrap; }
input::placeholder, textarea::placeholder { color: #707d71; }
select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23536555' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") left 9px center / 15px no-repeat; padding-inline-end: 31px !important; }
.filter, .control { min-height: 41px; padding: 8px 10px; color: var(--ink); border: 1px solid #dce3d9; border-radius: 8px; font-size: .93rem; background-color: white; }
.control { width: 100%; }
.empty { display: grid; justify-items: center; gap: 7px; text-align: center; padding: 37px 16px; color: var(--muted); }
.empty strong { color: var(--ink); font-size: 1rem; }
.empty p { font-size: .88rem; }
.empty .btn { margin-top: 6px; }
.measure-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.measure-card { display: grid; min-width: 0; }
.measure-card .panel-head { border-bottom: 1px solid #edf0e9; }
.measure-card .measure-content { padding: 13px; min-height: 140px; }
.measure-card footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 13px; border-top: 1px solid #edf0e9; color: var(--quiet); font-size: .75rem; }
.measure-values { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin: 0; }
.measure-values > div { border-radius: 8px; min-width: 0; padding: 7px 8px; background: #f4f6ef; }
.measure-values dt { color: #566556; font-size: .75rem; }
.measure-values dd { color: #2a3e30; margin: 2px 0 0; font-size: .92rem; font-weight: 650; }
.measure-empty { color: var(--muted); padding: 40px 4px; font-size: .9rem; }

.tabs { display: flex; gap: 3px; width: fit-content; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: #eef1e9; }
.tabs a { padding: 6px 10px; border-radius: 6px; color: #526556; font-size: .875rem; font-weight: 600; white-space: nowrap; }
.tabs a:hover { background: #e2ebde; }
.tabs a[aria-current="page"] { background: #fff; color: #294d36; box-shadow: 0 1px 3px #1f392317; }
.board-scroll { overflow-x: auto; padding: 0 0 10px; }
.board { min-width: 890px; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; align-items: start; }
.stage { min-height: 300px; border: 1px solid #e3e9de; padding: 9px; border-radius: 12px; background: #eef2e9; transition: background-color .15s; }
.stage.drop-target { background: #dcebd9; border-color: #8baa89; }
.stage-head { display: flex; align-items: center; gap: 6px; padding: 4px 2px 10px; }
.stage-head h2 { font-size: .9rem; font-weight: 700; }
.stage-count { padding: 0 6px; border-radius: 5px; background: #e2e9de; font-size: .75rem; font-weight: 600; color: #4d6552; }
.stage-new { margin-inline-start: auto; }
.board-card { display: grid; gap: 7px; margin-bottom: 7px; padding: 10px; border: 1px solid #e3e9df; border-radius: 9px; background: #fff; cursor: grab; }
.board-card.dragging { opacity: .45; }
.board-card .order-name { font-size: .89rem; }
.board-card .order-code { color: var(--quiet); font-size: .73rem; }
.board-card .date { display: flex; gap: 5px; align-items: center; color: var(--muted); font-size: .76rem; }
.board-card .avatar { width: 23px; height: 23px; }
.board-card .customer-name { font-size: .77rem; }
.stage-empty { padding: 12px 3px; text-align: center; color: var(--muted); font-size: .8rem; }
.schedule-page { max-width: 830px; }
.schedule-page .event { grid-template-columns: 49px minmax(0,1fr) auto; min-height: 63px; padding-inline: 5px; }
.schedule-page .event-type { font-size: .78rem; }

dialog { width: min(calc(100% - 32px),540px); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 1px solid #e1e9dc; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 22px 80px #20352838; }
dialog::backdrop { background: #14271db0; }
dialog.drawer { width: min(100%,488px); max-width: none; height: 100dvh; max-height: none; margin: 0 auto 0 0; border: 0; border-radius: 0 17px 17px 0; }
dialog.search-dialog { width: min(calc(100% - 32px),560px); }
body:has(dialog[open]) { overflow: hidden; }
.dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 8px; padding: 18px 20px 13px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { font: 500 1.75rem/1.12 var(--serif); letter-spacing: normal; overflow-wrap: anywhere; }
.dialog-head p { margin-top: 4px; color: var(--muted); font-size: .85rem; }
.dialog-head .icon-button { flex: none; }
.dialog-body { padding: 16px 20px 19px; }
.dialog-footer { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; padding: 13px 20px; border-top: 1px solid var(--line); background: #fbfcf9; }
.fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.fields label, .stage-field { display: grid; align-content: start; gap: 5px; font-size: .88rem; font-weight: 600; }
.fields .wide { grid-column: 1 / -1; }
.field-extra { color: var(--quiet); font-weight: 450; }
.fields textarea { resize: vertical; min-height: 70px; }
.form-error { margin-top: 10px; color: #982d21; font-size: .875rem; }
.form-error:empty { display: none; }
.drawer-section { padding-block: 14px; border-bottom: 1px solid var(--line); }
.drawer-section:first-child { padding-top: 0; }
.drawer-section:last-child { padding-bottom: 0; border-bottom: 0; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.section-title h3 { font: 600 1.1rem var(--serif); }
.detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; margin: 0; }
.detail-grid dt { color: var(--muted); font-size: .81rem; }
.detail-grid dd { margin: 3px 0 0; font-weight: 650; overflow-wrap: anywhere; }
.order-details .person-link { display: flex; align-items: center; gap: 8px; appearance: none; background: transparent; border: 0; padding: 0; color: #2d543b; text-align: start; font-weight: 650; }
.order-details .person-link:hover { text-decoration: underline; }
.detail-note { color: var(--muted); font-size: .88rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.stage-field .control { margin-top: 4px; }
.drawer-order-list { display: grid; gap: 6px; }
.drawer-order-list button { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: start; width: 100%; padding: 8px 10px; background: #f5f7f1; border: 0; border-radius: 7px; color: var(--ink); font-size: .88rem; }
.drawer-order-list button:hover { background: #eaf0e5; }
.search-results { padding-top: 9px; display: grid; gap: 3px; max-height: 50dvh; overflow: auto; }
.search-results button { display: flex; align-items: center; gap: 8px; width: 100%; text-align: start; padding: 8px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); }
.search-results button:hover { background: #eff4eb; }
.search-results p { padding: 8px 2px; color: var(--muted); font-size: .88rem; }
.toast { position: fixed; z-index: 15; inset-inline-end: 22px; bottom: 20px; max-width: calc(100vw - 44px); pointer-events: none; }
.toast > div { display: flex; gap: 9px; align-items: center; padding: 11px 16px; border-radius: 9px; background: #254835; color: #fff; box-shadow: 0 7px 25px #253c2c38; font-size: .9rem; }

@media (max-width: 1180px) {
  :root { --side: 192px; }
  .sidebar { padding-inline: 12px; }
  .topbar { padding-inline: 22px; }
  main { padding-inline: 22px; }
  .dash-grid { grid-template-columns: minmax(0,1.95fr) minmax(250px,1fr); }
  .dash-grid th, .dash-grid td { padding-inline: 8px; }
  .dash-grid th:first-child, .dash-grid td:first-child { padding-inline-start: 13px; }
  .dash-grid th:last-child, .dash-grid td:last-child { padding-inline-end: 11px; }
  .dash-grid .cell-contents { gap: 5px; }
  .dash-grid .avatar { width: 23px; height: 23px; }
}
@media (max-width: 990px) {
  .dash-grid { grid-template-columns: 1fr; }
  .measure-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric-top { white-space: normal; }
  .metric { padding-inline: 10px; }
}
@media (max-width: 750px) {
  .shell { display: block; }
  .sidebar { display: none; position: fixed; inset: 0 0 0 auto; width: min(250px,84vw); }
  body.nav-open .sidebar { display: flex; }
  .nav-shade { display: block; position: fixed; inset: 0; background: #1b302572; z-index: 4; }
  .topbar .mobile-toggle { display: inline-grid; margin-inline-start: -5px; }
  .topbar { min-height: 55px; padding-inline: 15px; }
  .breadcrumb { gap: 7px; }
  .top-actions { gap: 8px; }
  .search-trigger { min-width: 36px; min-height: 36px; justify-content: center; padding: 0; }
  .search-trigger span, .search-trigger kbd { display: none; }
  main { padding: 19px 14px 25px; }
  .page-head { margin-bottom: 15px; }
  .hero { min-height: 185px; padding: 18px; }
  .hero h2 { font-size: clamp(2rem, 7vw, 2.9rem); }
  .metrics { gap: 8px; margin-bottom: 13px; }
  .metric-top { font-size: .79rem; }
  .metric-sub { font-size: .72rem; }
  .dash-grid { gap: 13px; }
  .list-toolbar .input-wrap { flex: 1 1 180px; }
}
@media (max-width: 520px) {
  .crumb-home, .crumb-divider { display: none; }
  .page-head .primary { padding-inline: 8px; }
  .page-head .primary svg { width: 15px; }
  .head-sub { font-size: .81rem; }
  .hero::before { right: 21%; background-position: 63% center; }
  .hero::after { background: linear-gradient(270deg,#e6ebdc 0%,#e6ebdcf5 40%,#e6ebdc95 55%,transparent 77%); }
  .hero-copy { max-width: 75%; }
  .hero p { font-size: .835rem; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric-value { font-size: 1.75rem; }
  .orders-panel table, .customers-panel table { display: block; }
  .orders-panel thead, .customers-panel thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .orders-panel tbody, .customers-panel tbody { display: block; }
  .orders-panel tbody tr, .customers-panel tbody tr { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 5px 9px; padding: 12px 15px; border-bottom: 1px solid #edf0e9; }
  .orders-panel tbody tr:last-child, .customers-panel tbody tr:last-child { border-bottom: 0; }
  .orders-panel tbody td, .customers-panel tbody td { padding: 0; border: 0; min-width: 0; }
  .orders-panel tbody td:first-child, .customers-panel tbody td:first-child { grid-column: 1 / -1; padding-inline-end: 44px; }
  .orders-panel tbody td:last-child, .customers-panel tbody td:last-child { position: absolute; inset-inline-end: 12px; top: 8px; }
  .orders-panel tbody td[data-label]::before, .customers-panel tbody td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: .73rem; }
  .orders-panel tbody td:nth-child(2) { grid-column: 1 / -1; }
  .board { grid-template-columns: 1fr; }
  .board .order-name { min-height: 39px; }
  .measure-grid { grid-template-columns: 1fr; }
  .list-toolbar .result-count { width: 100%; }
  .fields { gap: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 750px) {
  .board { min-width: 0; }
  .stage { min-height: 0; }
  .btn, .icon-button { min-height: 42px; }
  .page-head { align-items: start; }
  .hero-copy { max-width: 76%; }
  .fields input, .fields select, .fields textarea { font-size: 1rem; }
}
@media (min-width: 521px) and (max-width: 750px) {
  .board { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
header, .panel, input, select, textarea { min-width: 0; }
.hero-copy { position: relative; }
.brand-word { font-size: 1.35rem; }
.brand-sub { font-size: .68rem; margin-top: 2px; }
.hero p { margin-top: 8px; }
.customer-name, .order-name { overflow-wrap: anywhere; }
.event-date { font-size: .66rem; }
.stage-head { min-height: 41px; }
.toast > div { align-items: start; }
.connect-banner { background: #fff8e5; border: 1px solid #eadebd; color: #5f4c1f; border-radius: 9px; padding: 9px 12px; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 12px; font-size: .875rem; }
.connect-banner .text-button { color: inherit; text-decoration: underline; }
.load-panel { display: grid; justify-items: center; padding: 55px 12px; gap: 10px; color: var(--forest); }
.load-icon { width: 23px; height: 23px; border: 2px solid var(--line); border-top-color: var(--forest); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .load-icon { animation: none; } }

.head-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.sidebar-foot { display: grid; gap: 7px; }
.sidebar-foot .demo-button { font-size: .85rem; }
.preview-flag, .tag-pill { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 6px; background: #e9eee5; color: #354f3e; font-size: .82rem; font-weight: 650; }
.book-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 19px; }
.book-metrics .metric { min-height: 92px; }
.book-table th:first-child { width: 45%; }
.book-table td { overflow-wrap: anywhere; }
.orders-table td:first-child { min-width: 0; }
.orders-table td:first-child button { overflow-wrap: anywhere; display: inline; max-width: 100%; }
.page-more { margin: 12px auto; display: flex; width: fit-content; }
.detail-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.profile-top { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 12px; }
.profile-info { padding: 10px 15px 14px; display: flex; gap: 10px 30px; flex-wrap: wrap; color: var(--muted); }
.profile-info bdi { margin-inline-start: 7px; color: var(--ink); }
.client-balance { display: grid; align-content: center; gap: 3px; background: #e8eee3; padding: 12px 16px; color: #264335; }
.client-balance strong { font-size: clamp(1.55rem, 3vw, 2.4rem); line-height: 1.2; overflow-wrap: anywhere; }
.client-balance small { color: var(--muted); }
.profile-panel { margin-top: 13px; }
.profile-body { padding: 10px 15px 15px; display: grid; gap: 11px; overflow-wrap: anywhere; }
.profile-body .measure-values { max-width: 580px; }
.profile-description, .order-description { white-space: pre-wrap; overflow-wrap: anywhere; }
.archive-actions .profile-body { display: flex; align-items: center; flex-wrap: wrap; }
.archive-actions small { color: var(--muted); }
.btn.danger { background: #fff5f5; border-color: #efd3d3; color: #832b35; }
.btn.danger:hover { background: #fde9e9; }
.field-hint { color: var(--muted); font-size: .83rem; font-weight: 400; }
.model-fields { display: grid; min-width: 0; margin: 0; padding: 10px 12px 12px; gap: 8px; border: 1px solid var(--line); border-radius: 9px; }
.model-fields legend { padding-inline: 5px; color: var(--dark); font-size: .95rem; font-weight: 700; }
.model-fields input[type="file"] { font-size: .83rem; }
.model-fields .inline-check { display: flex; align-items: center; gap: 6px; font-weight: 400; }
.model-preview { display: grid; justify-items: start; min-width: 0; gap: 8px; }
.model-preview img { display: block; max-height: 330px; max-width: 100%; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); }
.model-links { display: flex; flex-wrap: wrap; gap: 7px 13px; }
.pin { width: 100%; }
.pin iframe { width: min(345px,100%); height: 475px; border: 1px solid var(--line); border-radius: 8px; }
.picker { display: grid; gap: 6px; }
.picker > .btn, .picker .btn { justify-self: start; }
.picker-selection { border-radius: 7px; padding: 6px 9px; background: var(--sage); }
.picker-results { max-height: 214px; overflow-y: auto; }
.picker-results:empty { display: none; }
.picker-item { display: block; width: 100%; padding: 7px 9px; border-radius: 7px; border: 0; background: #f1f5ee; color: var(--ink); text-align: start; margin-bottom: 3px; }
.picker-item:hover { background: var(--sage); }
.balance-draft { color: var(--dark); background: #edf3e9; border-radius: 7px; padding: 7px 10px; }
.order-reference, .order-description, .order-finance { margin-block: 10px; }
.order-finance { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; padding: 8px 10px; background: #edf3e9; border-radius: 8px; }
.order-finance dt { font-size: .81rem; color: var(--muted); }
.order-finance dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.login-view .shell { display: block; }
.login-view .sidebar, .login-view .topbar { display: none; }
.login-view main { min-height: 100dvh; display: grid; align-content: center; }
.auth-layout { width: min(812px,100%); margin: auto; display: grid; grid-template-columns: 1fr 1fr; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.auth-illustration { display: flex; flex-direction: column; align-items: start; justify-content: end; gap: 8px; padding: 23px; min-height: 320px; background: linear-gradient(0deg,#1c362bf2,transparent 73%), url("./atelier.webp") 70% center / cover; color: #fff; }
.auth-illustration p { font: 700 2rem/1.14 var(--serif); }
.auth-panel { border: 0; border-radius: 0; padding: 26px; display: grid; justify-items: start; align-content: center; gap: 13px; }
.auth-form { width: 100%; }
.auth-form > button { width: 100%; margin-top: 6px; }
.auth-links { display: flex; flex-wrap: wrap; gap: 7px 17px; }
@media (max-width: 560px) {
  .book-metrics { gap: 6px; }
  .book-metrics .metric-top { font-size: .76rem; display: grid; gap: 3px; }
  .book-metrics .metric { padding: 7px; }
  .book-table th, .book-table td { padding-inline: 5px; }
  .book-table td:first-child, .book-table th:first-child { padding-inline-start: 9px; }
  .book-table td:last-child, .book-table th:last-child { padding-inline-end: 9px; }
  .book-table .order-name { font-size: .85rem; }
  .profile-top { grid-template-columns: 1fr; gap: 9px; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-illustration { min-height: 140px; padding: 13px; }
  .auth-panel { padding: 20px 14px; }
}

/* Keep the directory on one visual level. */
:root { --side: 204px; }
.topbar { display: none; }
.sidebar { padding-top: 24px; }
.sidebar .brand { margin-bottom: 32px; }
.sidebar .brand-word { font-size: 1.36rem; }
.sidebar .brand-mark { width: 33px; height: 33px; }
.sidebar .demo-button { padding: 7px 9px; border: 0; background: transparent; }
.sidebar .demo-button:hover { background: var(--sage); }
main { max-width: 1140px; padding-top: 39px; }
.page-head { margin-bottom: 17px; }
.page-head h1 { font-size: clamp(1.85rem,3vw,2.8rem); }
.book-tools { margin-bottom: 10px; }
.book-tools .input-wrap { flex-basis: 100%; min-height: 46px; }
.book-directory { border-radius: 11px; }
.book-directory thead th { background: #f2f4ef; font-size: .8rem; }
.book-directory tbody td { padding-block: 12px; }
.sign-in { width: min(390px, 100%); margin: auto; padding: 24px 26px; border: 1px solid var(--line); border-radius: 13px; }
.sign-in-brand { display: flex; align-items: center; gap: 8px; font: 700 1.18rem var(--serif); color: #294b38; }
.sign-in-brand .brand-mark { width: 34px; height: 34px; }
.sign-in h1 { font-size: 2rem; }
.measurement-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.measurement-fields input { min-width: 0; }
.measurement-block { border-color: #e1e7df; background: #fafbf8; }
.embed-block { gap: 0; background: #fff; }
.embed-tabs { display: flex; align-items: center; gap: 3px; margin-bottom: 9px; border-bottom: 1px solid var(--line); }
.embed-tab { min-height: 38px; padding: 4px 10px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: .87rem; }
.embed-tab[aria-pressed="true"] { border-bottom-color: var(--forest); color: var(--forest); font-weight: 650; }
.embed-pane { display: grid; justify-items: start; gap: 7px; }
.embed-pane > label { width: 100%; }
.embed-file { min-height: 72px; border: 1px dashed #bac9bd; border-radius: 7px; background: #f7f9f5; display: flex !important; align-items: center; justify-content: center; gap: 8px; color: var(--forest); cursor: pointer; }
.embed-file:focus-within { outline: 2px solid #4a775e; outline-offset: 2px; }
.embed-file:hover { background: #edf2e9; }
.form-model-preview:not(:empty) { margin-top: 11px; }
.model-preview .model-links { font-size: .82rem; }
@media (max-width: 750px) {
  .topbar { display: flex; justify-content: space-between; border: 0; min-height: 54px; }
  .mobile-brand { font: 700 1.2rem var(--serif); color: var(--forest); }
  main { padding-top: 16px; }
}
@media (max-width: 430px) {
  .measurement-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

:root {
  --surface: #f2f5ef;
  --surface-strong: #e7eee5;
  --button-line: #dce5dc;
  --contrast: #fff;
  --nav-ink: #3d5042;
  --danger: #852e35;
  --danger-bg: #fff5f5;
}
:root[data-theme="linen"] {
  --canvas: #f8f5ef;
  --paper: #fffdf8;
  --sidebar: #f3eee4;
  --ink: #242936;
  --muted: #5d606c;
  --quiet: #676977;
  --line: #e5ddcf;
  --forest: #364d75;
  --dark: #253a61;
  --sage: #ede5d7;
  --surface: #f6f0e6;
  --surface-strong: #ece5da;
  --button-line: #d9cfbe;
  --nav-ink: #484858;
}
:root[data-theme="night"] {
  color-scheme: dark;
  --canvas: #121825;
  --paper: #1b2334;
  --sidebar: #161e2e;
  --ink: #f1f3fb;
  --muted: #c0c9dd;
  --quiet: #aab5cd;
  --line: #333e57;
  --forest: #afc6ff;
  --dark: #d4e0ff;
  --sage: #26334d;
  --surface: #222d43;
  --surface-strong: #293854;
  --button-line: #465674;
  --contrast: #15213b;
  --nav-ink: #ccd7f1;
  --danger: #ffabba;
  --danger-bg: #412933;
}
.topbar, .dialog-footer { background: var(--sidebar); }
h1, .brand, .mobile-brand, .sign-in-brand { color: var(--ink); }
.brand-mark, .btn.primary { background: var(--forest); color: var(--contrast); }
.btn, .control, .input-wrap, dialog { border-color: var(--button-line); background-color: var(--paper); color: var(--ink); }
.btn:hover, .icon-button:hover, .picker-item:hover { background: var(--surface); color: var(--ink); border-color: var(--button-line); }
.btn.primary:hover { background: var(--dark); border-color: var(--dark); color: var(--contrast); }
.icon-button, .metric-top { color: var(--nav-ink); }
.nav-link { color: var(--nav-ink); }
.nav-link:hover, .nav-link[aria-current="page"] { background: var(--surface-strong); color: var(--ink); }
.text-button, .order-name:hover, .embed-tab[aria-pressed="true"] { color: var(--forest); }
.book-directory thead th, thead th { background: var(--surface); color: var(--nav-ink); border-color: var(--line); }
td { border-color: var(--line); }
.metric-value, .measure-values dd, .client-balance strong { color: var(--ink); }
.measure-values dt, .field-hint, .tag-pill, .balance-draft { color: var(--nav-ink); }
.measure-values > div, .metric:hover, .metric-icon, .metric:nth-child(n) .metric-icon, .tag-pill,
.balance-draft, .measurement-block, .embed-file, .embed-file:hover, .picker-item, .order-finance {
  background-color: var(--surface);
}
.metric-icon { color: var(--forest); }
.embed-block { background: var(--paper); }
.order-finance, .client-balance, .picker-selection { background: var(--surface-strong); color: var(--ink); }
input::placeholder, textarea::placeholder { color: var(--quiet); }
.order-created { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: 7px; font-size: .87rem; color: var(--muted); background: var(--surface); }
.order-created strong { color: var(--ink); }
.sidebar { box-shadow: 1px 0 0 color-mix(in srgb, var(--line) 32%, transparent); }

.demo-button, .skip { background: var(--surface); }
.btn.danger { background: var(--danger-bg); border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); color: var(--danger); }
.btn.danger:hover { background: color-mix(in srgb, var(--danger) 12%, var(--danger-bg)); }
.form-error { color: var(--danger); }
.auth-layout { background: var(--paper); }
.profile-info span, .contact-cell { overflow-wrap: anywhere; }
.archive-tabs {
  display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 12px; padding: 4px; width: fit-content;
  border: 1px solid var(--line); background: var(--surface); border-radius: 10px;
}
.archive-tabs a { padding: 6px 13px; border-radius: 7px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.archive-tabs a:hover { color: var(--ink); }
.archive-tabs a[aria-current="page"] {
  background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 17%, transparent);
}
.profile-panel .archive-tabs { margin-inline: 15px; }
input[type="date"] { text-align: start; }

.studio-hero {
  display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr);
  gap: clamp(8px, 3vw, 36px); padding: 10px; align-items: stretch; margin-bottom: 17px;
  border: 1px solid var(--line); border-radius: 17px; background: var(--paper);
}
.studio-hero-copy {
  align-content: center; text-align: start; min-width: 0;
  padding: clamp(16px,4vw,46px) clamp(10px,3vw,38px);
}
.studio-hero h1 { font: 650 clamp(2.5rem,6vw,4.65rem)/1.12 var(--serif); margin: 5px 0 18px; }
.studio-photo {
  min-height: 220px; border-radius: 11px; background: var(--surface-strong) url("./atelier.webp") 44% 54% / cover no-repeat;
}
.studio-date { display: flex; align-items: center; gap: 7px; width: fit-content; font-size: .9rem; color: var(--muted); }
.studio-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.studio-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.studio-metric { min-height: 93px; padding: 13px 15px; display: flex; align-items: center; gap: 12px; }
.studio-metric .metric-icon { width: 38px; height: 38px; }
.studio-metric .metric-value { margin: 0; font: 700 1.7rem/1.15 var(--sans); }
.studio-metric .metric-top { margin-top: 5px; font-size: .88rem; white-space: normal; }
.studio-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; gap: 14px; }
.studio-panel-head { border-bottom: 1px solid var(--line); }
.studio-panel-head p { margin-top: 4px; color: var(--muted); font-size: .86rem; }
.studio-panel-head > svg { color: var(--forest); }
.studio-list { list-style: none; margin: 0; padding: 0 15px; }
.studio-list li {
  display: grid; align-items: center; grid-template-columns: minmax(0,1fr) auto;
  gap: 8px 14px; min-height: 67px; padding: 9px 0; border-bottom: 1px solid var(--line);
}
.studio-list li:last-child { border: 0; }
.studio-list time { color: var(--muted); font-size: .88rem; white-space: nowrap; }
.studio-list .delivery-date { color: var(--forest); background: var(--surface); padding: 4px 9px; border-radius: 7px; }
.studio-item { min-width: 0; }
.studio-item .cell-sub { font-size: .85rem; }
.studio-order { width: 100%; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preferences .panel-head { border-bottom: 1px solid var(--line); }
.theme-picker { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; padding: 16px; }
.theme-option {
  display: grid; align-content: start; gap: 12px; padding: 10px; border: 1px solid var(--line);
  border-radius: 11px; background: var(--paper); color: var(--ink); text-align: start; font-weight: 650;
}
.theme-option:hover { border-color: var(--forest); }
.theme-option[aria-pressed="true"] { border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); }
.theme-option::before {
  content: ""; height: 60px; border-radius: 6px;
  background: linear-gradient(to left, var(--chip) 0 32%, var(--chip-surface) 32% 76%, var(--chip-accent) 76%);
}
.theme-sage { --chip: #d8e5d6; --chip-surface: #eff3eb; --chip-accent: #294b3a; }
.theme-linen { --chip: #e5d6be; --chip-surface: #f8f5ee; --chip-accent: #364d75; }
.theme-night { --chip: #121825; --chip-surface: #293854; --chip-accent: #afc6ff; }
@media (max-width: 720px) {
  .studio-grid { grid-template-columns: minmax(0,1fr); }
  .studio-hero { grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); }
  .studio-photo { min-height: 160px; }
}
@media (max-width: 480px) {
  .studio-hero { gap: 8px; grid-template-columns: 1fr; }
  .studio-hero-copy { padding: 15px 11px; }
  .studio-hero h1 { margin: 4px 0 11px; }
  .studio-photo { min-height: 104px; }
  .studio-metrics { gap: 6px; }
  .studio-metric { display: grid; align-content: start; gap: 5px; padding: 8px; }
  .studio-metric .metric-top, .theme-option { font-size: .85rem; }
  .studio-metric .metric-icon { width: 29px; height: 29px; }
  .theme-picker { gap: 6px; padding: 8px; }
  .theme-option::before { height: 42px; }
}

.orders-table th, .orders-table td, .orders-table .order-name { text-align: start; }
.orders-table th:first-child { width: 40%; }
.orders-table .date { white-space: normal; font-variant-numeric: tabular-nums; }
.orders-table tbody td { vertical-align: top; }
.order-toolbar { padding: 11px; margin-bottom: 11px; }
.order-filter-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.order-filter-head .input-wrap { flex: 1 1 17rem; min-height: 42px; }
.order-filter-head .input-wrap input { width: 100%; min-width: 0; }
#order-date-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.form-success { color: var(--forest); }
.recovery-settings { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 14px 16px; }
.recovery-settings p { color: var(--muted); font-size: .92rem; }

.public-site { background: var(--canvas); }
.public-header {
  max-width: 1260px; margin: auto; padding: 18px clamp(15px,4vw,55px); display: flex;
  justify-content: space-between; align-items: center; gap: 10px;
}
.public-header nav { display: flex; gap: 7px; flex-wrap: wrap; justify-content: end; }
.public-brand { font: 700 clamp(1.4rem,3vw,1.8rem) var(--serif); white-space: nowrap; }
.public-main { max-width: 1260px; padding: 6px clamp(15px,4vw,55px) 38px; }
.public-hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); align-items: stretch; background: var(--paper);
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.public-intro { display: grid; justify-items: start; align-content: center; gap: 17px; padding: clamp(22px,6vw,68px); }
.public-intro h1 { font: 650 clamp(2.65rem,6.4vw,5rem)/1.02 var(--serif); }
.public-intro p { color: var(--muted); font-size: 1.05rem; max-width: 31ch; line-height: 1.8; }
.public-hero img { width: 100%; height: 100%; min-height: 330px; object-fit: cover; object-position: 48% 52%; }
.public-tools { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin-top: 12px; }
.public-tools div { padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 11px; }
.public-tools h2 { font: 650 1.35rem var(--serif); }
.public-tools p { color: var(--muted); margin-top: 3px; }

@media (max-width: 660px) {
  .public-hero { grid-template-columns: 1fr; }
  .public-hero img { max-height: 230px; min-height: 170px; }
  .public-tools { grid-template-columns: 1fr; }
  .public-intro { gap: 10px; }
}
@media (max-width: 470px) {
  #order-date-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #order-date-filters label:first-child { grid-column: 1/-1; }
  .orders-table .date { font-size: .79rem; }
}
