:root {
  color-scheme: dark;
  --canvas: #0d121a;
  --sidebar: #0b1017;
  --surface: #131b25;
  --surface-high: #18232f;
  --border: #243140;
  --line: #23303d;
  --text: #f0f4f8;
  --secondary: #a6b4c6;
  --muted: #8597ad;
  --cyan: #65e4e3;
  --green: #6dddab;
  --amber: #f1bf74;
  --red: #ffa4a8;
  --blue: #89b9ff;
  --slate: #a5b3cf;
  --radius: 12px;
  --spacing: 20px;
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--canvas); font: 14px/1.45 var(--sans); }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
button:disabled { cursor: wait; opacity: .55; }
h1, h2, h3, p, dl, dd { margin: 0; }
svg { display: block; flex-shrink: 0; }
.skip-link { position: fixed; z-index: 5; top: 12px; left: 12px; transform: translateY(-180%); padding: 8px 12px; background: var(--surface); }
.skip-link:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.shell { display: grid; grid-template-columns: 218px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--sidebar); border-right: 1px solid #1e2935; padding: 26px 16px 16px; }
.brand { display: flex; gap: 11px; align-items: center; padding: 0 8px; width: fit-content; }
.brand img { box-shadow: 0 0 20px #54e5e221; border-radius: 9px; }
.brand strong { display: block; font-size: 20px; letter-spacing: -.6px; line-height: 1.18; }
.brand small, .nav-label, .module-label, .small-label, .demo-label { font: 600 10px/1.4 var(--mono); letter-spacing: .095em; }
.brand small { color: var(--muted); display: block; margin-top: 3px; }
.sidebar nav { margin-top: 44px; }
.nav-label { color: var(--muted); margin: 0 0 10px 11px; }
.nav-link { min-height: 42px; display: flex; gap: 11px; align-items: center; padding: 0 10px; margin-bottom: 4px; border: 1px solid transparent; border-radius: 8px; font-weight: 550; color: var(--secondary); }
.nav-link svg { width: 17px; height: 17px; }
.nav-link:hover { background: #151e28; color: var(--text); }
.nav-link.active { border-color: #25414b; color: var(--cyan); background: #142630; box-shadow: inset 2px 0 #63e8e3; }
.integrations-label { margin-top: 34px; }
.integration { display: flex; align-items: center; gap: 9px; color: var(--secondary); padding: 8px 10px; font-size: 13px; }
.ebay-letter { width: 22px; height: 22px; display: grid; place-items: center; background: #1c2936; color: #a8c6f2; border: 1px solid #2b3e52; border-radius: 6px; font: 700 16px/1 var(--sans); }
.signal { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); margin-left: auto; box-shadow: 0 0 8px #65e4e366; }
.sidebar-foot { margin-top: auto; display: flex; gap: 9px; align-items: center; border-top: 1px solid #202b38; padding: 16px 4px 0; }
.workspace-mark { display: grid; place-items: center; border: 1px solid #2c3a4c; border-radius: 8px; height: 34px; width: 34px; color: var(--secondary); background: #17222e; font: 700 12px var(--mono); }
.sidebar-foot strong, .sidebar-foot small { display: block; }
.sidebar-foot strong { font-size: 12px; }
.sidebar-foot small { font-size: 11px; color: var(--muted); }
main { min-width: 0; }
.topbar { min-height: 67px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid #1e2935; padding: 0 30px; }
.breadcrumb { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.breadcrumb svg { width: 13px; height: 13px; }
.breadcrumb strong { color: var(--secondary); font-weight: 550; }
.button { color: var(--text); background: #15202c; border: 1px solid #2b3a4b; border-radius: 8px; padding: 8px 11px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; font-weight: 650; }
.button:hover { background: #1d2e3d; border-color: #476273; }
.button svg { height: 16px; width: 16px; color: var(--secondary); }
.content { padding: 27px 30px 0; max-width: 1780px; margin: 0 auto; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 23px; }
.module-label { color: var(--cyan); display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.module-dot, .demo-label i { background: var(--cyan); width: 6px; height: 6px; display: inline-block; border-radius: 50%; box-shadow: 0 0 9px #64e4e36b; }
.module-divider { width: 10px; height: 1px; background: #4c6877; }
h1 { font-size: clamp(30px, 3.35vw, 44px); font-weight: 710; line-height: 1.12; letter-spacing: -.055em; }
h2 { font-size: 16px; font-weight: 680; line-height: 1.3; letter-spacing: -.015em; }
.sync-tools, .sync-details { display: flex; align-items: center; gap: 10px; }
.sync-details { flex-direction: column; align-items: end; gap: 4px; }
.demo-label { text-transform: uppercase; color: #b9c8d8; display: flex; align-items: center; gap: 6px; }
.demo-label i { width: 5px; height: 5px; background: var(--amber); box-shadow: none; }
.sync-status { color: var(--muted); font: 11px var(--mono); }
.sync-warning { color: var(--amber); }
.icon-button { width: 35px; height: 35px; padding: 0; }
.surface { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); min-width: 0; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: var(--spacing); }
.metric { position: relative; padding: 15px 17px 14px; overflow: hidden; }
.metric-primary { background: linear-gradient(117deg, #142731 0%, #14212b 66%, #15202a 100%); border-color: #316069; }
.metric-primary::before { position: absolute; content: ""; top: 0; height: 1px; width: 65%; left: 0; background: linear-gradient(90deg, #64e4e3, transparent); }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.metric-top h2 { color: var(--secondary); font-size: 13px; font-weight: 610; }
.metric-primary h2 { color: var(--cyan); }
.metric-icon, .panel-icon { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #2c3b4c; border-radius: 8px; color: #9dafc2; background: #1a2633; flex: 0 0 auto; }
.metric-icon svg { width: 15px; height: 15px; }
.metric-primary .metric-icon, .panel-icon { color: var(--cyan); background: #182b33; border-color: #29474e; }
.metric-value { margin-top: 4px; font-weight: 700; font-size: clamp(21px, 2.25vw, 36px); line-height: 1.25; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.metric-meta { color: var(--muted); display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding-top: 8px; font-size: 11px; }
.metric-meta span:last-child { white-space: nowrap; }
.dashboard { display: grid; gap: var(--spacing); }
.overview-grid, .operations-grid { display: grid; grid-template-columns: minmax(0, 1.78fr) minmax(0, 1fr); gap: var(--spacing); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 17px 18px 14px; }
.panel-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.panel-title p { color: var(--muted); font-size: 11px; margin-top: 3px; }
.panel-icon { width: 34px; height: 34px; }
.panel-icon svg { width: 17px; height: 17px; }
.segments { display: flex; background: #0f161f; border: 1px solid #243243; border-radius: 7px; padding: 2px; gap: 1px; white-space: nowrap; }
.segments button { background: transparent; border: 1px solid transparent; border-radius: 5px; color: var(--muted); font-size: 11px; font-weight: 600; padding: 4px 8px; }
.segments button[aria-pressed="true"] { background: #243646; border-color: #304456; color: var(--text); }
.chart { padding: 8px 18px 0; }
.chart-plot { height: 175px; position: relative; }
.chart-grid { position: absolute; inset: 0 0 24px; display: flex; flex-direction: column; justify-content: space-between; }
.chart-grid div { display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: 4px; }
.chart-grid span { color: var(--muted); font: 10px var(--mono); }
.chart-grid i { border-top: 1px dashed #293746; }
.bars { position: absolute; inset: 6px 0 30px 54px; display: flex; justify-content: space-evenly; }
.bar-slot { position: relative; display: flex; flex-direction: column; align-items: center; align-self: stretch; justify-content: end; flex: 1 1 0; min-width: 0; }
.bar { width: min(56%, 45px); height: var(--height); min-height: 0; background: linear-gradient(180deg, #419d9f 0%, #24535f 100%); border-radius: 4px 4px 0 0; border-top: 1px solid #6abbbd; }
.bar.latest { background: linear-gradient(180deg, #79f1ed, #2b9ba5); border-color: #c2ffff; box-shadow: 0 -3px 17px #4be2e331; }
.bar-label { position: absolute; top: calc(100% + 10px); white-space: nowrap; color: var(--muted); font: 10px var(--mono); }
.chart-footer, .panel-foot { min-height: 42px; display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.chart-footer span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.chart-footer i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: #61c9c9; }
.text-button { border: 0; background: transparent; display: inline-flex; gap: 6px; align-items: center; color: var(--cyan); padding: 4px 0; font-size: 11px; font-weight: 650; white-space: nowrap; }
.text-button:hover { text-decoration: underline; }
.text-button svg { width: 13px; height: 13px; }
.small-label { color: var(--secondary); border: 1px solid #304050; border-radius: 5px; background: #18232e; padding: 3px 6px; white-space: nowrap; letter-spacing: .025em; }
.pipeline { display: grid; padding: 0 16px 6px; }
.pipeline-row { width: 100%; display: grid; grid-template-columns: 8px minmax(0, 1fr) 22px; align-items: center; text-align: left; gap: 8px; min-height: 23px; border: 0; border-radius: 4px; padding: 2px 3px; background: transparent; color: var(--secondary); font-size: 11px; }
.pipeline-row:hover { background: var(--surface-high); }
.pipeline-row i, .badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--tone, var(--muted)); }
.pipeline-row strong { text-align: right; color: var(--text); font: 650 11px var(--mono); }
.tone-cyan { --tone: var(--cyan); }
.tone-green { --tone: var(--green); }
.tone-amber { --tone: var(--amber); }
.tone-red { --tone: var(--red); }
.tone-blue { --tone: var(--blue); }
.tone-slate { --tone: var(--slate); }
.tone-muted { --tone: var(--muted); }
.shipment-panel, .trend-panel { display: flex; flex-direction: column; }
.shipment-footer { margin-top: auto; }
.overdue-count { color: var(--muted); font: 600 11px var(--mono); white-space: nowrap; }
.has-overdue { color: var(--red); border: 1px solid #63353d; background: #332029; border-radius: 99px; padding: 4px 8px; }
.orders-table { width: 100%; border-collapse: collapse; }
.orders-table th { background: #16212c; padding: 8px 8px; text-align: left; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; font-weight: 650; }
.orders-table td { padding: 8px; border-bottom: 1px solid #22303b; }
.orders-table th:first-child, .orders-table td:first-child { padding-left: 18px; }
.orders-table th:last-child, .orders-table td:last-child { padding-right: 13px; }
.orders-table tr:last-child td { border-bottom: 0; }
.orders-table strong, .orders-table small { display: block; }
.orders-table strong { font-size: 12px; font-weight: 650; }
.orders-table small { color: var(--muted); font-size: 10px; margin-top: 2px; }
.orders-table .order-date { font: 11px var(--mono); white-space: nowrap; color: var(--secondary); }
.badge { display: inline-flex; gap: 5px; align-items: center; padding: 3px 6px; white-space: nowrap; background: color-mix(in srgb, var(--tone) 9%, #161e28); border: 1px solid color-mix(in srgb, var(--tone) 24%, #202b38); border-radius: 5px; color: var(--tone); font-size: 10px; font-weight: 650; }
.badge i { width: 5px; height: 5px; }
.sample-link { display: inline-flex; align-items: center; color: var(--muted); padding: 3px; border-radius: 4px; }
.sample-link:hover { color: var(--cyan); }
.sample-link svg { width: 14px; height: 14px; }
.payouts { padding: 0 18px 12px; }
.payout-feature { border: 1px solid #3d3835; border-radius: 8px; padding: 10px 13px; display: flex; justify-content: space-between; align-items: center; background: linear-gradient(110deg, #241f22, #1a202a); }
.payout-feature h3 { margin-top: 4px; font-size: 26px; letter-spacing: -.04em; line-height: 1.2; }
.payout-icon { color: var(--amber); display: grid; place-items: center; width: 33px; height: 33px; background: #302732; border: 1px solid #4c3d47; border-radius: 8px; }
.payouts dl { padding-top: 4px; }
.payouts dl div, .detail-totals div { display: flex; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.payouts dt, .detail-totals dt { color: var(--secondary); font-size: 12px; }
.payouts dd, .detail-totals dd { font-size: 12px; font-weight: 700; white-space: nowrap; }
.payout-foot { display: flex; justify-content: space-between; gap: 8px; align-items: center; color: var(--muted); margin-top: 8px; font-size: 10px; }
.activity-list { list-style: none; margin: 0; padding: 0 18px 8px; }
.activity-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto 20px; gap: 10px; border-top: 1px solid var(--line); align-items: center; min-height: 47px; }
.activity-list li div strong, .activity-list small { display: block; }
.activity-list strong { font-size: 12px; }
.activity-list small, .activity-list time { color: var(--muted); font-size: 11px; }
.activity-list time { grid-column: 4; }
.activity-amount { white-space: nowrap; }
.activity-icon { color: var(--cyan); }
.activity-icon svg { width: 16px; height: 16px; }
.workspace-footer { display: flex; justify-content: space-between; gap: 12px; padding: 16px 0; color: var(--muted); font: 10px var(--mono); }
.empty-message { padding: 14px 18px; color: var(--secondary); }
#overview-finance, #overview-orders, #overview-shipments { scroll-margin-top: 16px; }
dialog { color: var(--text); background: var(--surface); border: 1px solid #3c5265; width: min(850px, calc(100vw - 28px)); max-height: calc(100dvh - 32px); padding: 0; border-radius: var(--radius); }
dialog::backdrop { background: #060910c9; backdrop-filter: blur(3px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
#dialog-content { padding-bottom: 12px; }
.detail-intro { color: var(--secondary); margin: 12px 18px; font-size: 12px; }
.table-scroll { overflow-x: auto; }
.detail-table { border-collapse: collapse; width: 100%; }
.detail-table :is(th, td) { text-align: right; font-size: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.detail-table th:first-child { text-align: left; padding-left: 18px; }
.detail-table thead th { background: #192532; color: var(--secondary); }
.detail-table small { display: block; color: var(--muted); margin-top: 4px; }
.detail-totals { margin: 5px 18px 0; }
.parcel-details { margin: 8px 18px; border: 1px solid var(--line); border-radius: 6px; }
.parcel-details summary { padding: 8px 10px; cursor: pointer; color: var(--secondary); }
.parcel-details summary strong { float: right; }
.wallboard .shell { display: block; }
.wallboard :is(.sidebar, .wall-hide, .segments, .breadcrumb, .workspace-footer, .sample-link, #refresh) { display: none; }
.wallboard .topbar { min-height: 44px; justify-content: end; }
.wallboard .content { max-width: none; padding-top: 16px; }
.wallboard .pipeline-row { cursor: default; pointer-events: none; }
.wallboard .pipeline-row:focus-visible { outline: none; }
.wallboard .metric-value { font-size: clamp(24px, 3.4vw, 55px); }
.wallboard .activity-panel { display: none; }
@media (min-width: 1600px) {
  .wallboard .content { padding-left: 46px; padding-right: 46px; }
  .wallboard .panel-head { padding-top: 22px; padding-bottom: 18px; }
  .wallboard .chart-plot { height: 242px; }
  .wallboard .pipeline-row { min-height: 27px; font-size: 13px; }
}
@media (max-width: 1100px) {
  .shell { grid-template-columns: 172px minmax(0, 1fr); }
  .content { padding-inline: 20px; }
  .topbar { padding-inline: 20px; }
  .overview-grid, .operations-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
  .metric { padding-inline: 12px; }
}
@media (max-width: 890px) {
  .overview-grid, .operations-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; }
  .order-date { white-space: normal !important; }
}
@media (max-width: 700px) {
  .overview-grid, .operations-grid { grid-template-columns: minmax(0, 1fr); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-value { font-size: 25px; }
  .page-head { align-items: start; flex-direction: column; }
  .sync-details { align-items: start; }
  .topbar { min-height: 53px; }
  .content { padding: 18px 12px 0; }
}
@media (max-width: 390px) {
  .topbar { padding-inline: 9px; }
  .breadcrumb span:first-child, .breadcrumb [data-icon] { display: none; }
  .metric-meta { display: block; }
  .metric-meta span { display: block; }
  .bar-label { font-size: 8px; }
  .orders-table th, .orders-table td { padding-inline: 4px; }
  .orders-table th:first-child, .orders-table td:first-child { padding-left: 8px; }
}
.bar-label-minor { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }


.finance-summary { display: flex; gap: 22px; margin: 0 18px; padding: 6px 0 9px; }
.finance-summary div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.finance-summary dt { color: var(--muted); font-size: 11px; }
.finance-summary dd { color: var(--text); font: 650 11px var(--mono); }
.wallboard .pipeline-row:disabled { opacity: 1; }
.wallboard .chart-footer { margin-top: auto; }
@media (min-width: 900px) and (max-height: 830px) {
  .topbar { min-height: 53px; }
  .content { padding-top: 19px; }
  .page-head { margin-bottom: 17px; }
  .metric { padding-block: 10px; }
  .metrics, .dashboard { --spacing: 14px; }
  .panel-head { padding-block: 12px 10px; }
  .pipeline-row { min-height: 20px; }
  .chart-plot { height: 148px; }
  .chart-footer, .panel-foot { min-height: 35px; }
}
@media (max-width: 390px) {
  .orders-table th:last-child, .orders-table td:last-child { padding-right: 4px; }
}
#short-order-count { display: none; }
.wallboard .chart-plot { height: 181px; }
.wallboard .page-head { margin-bottom: 16px; }
.wallboard .orders-table td { padding-block: 6px; }
.wallboard .metric { padding-block: 11px; }
.wallboard .panel-head { padding-block: 15px 12px; }
.wallboard .pipeline-row { min-height: 23px; }
@media (min-width: 1100px) and (max-height: 800px) {
  .wallboard .content { padding-top: 9px; }
  .wallboard .page-head { margin-bottom: 8px; }
  .wallboard h1 { font-size: 31px; }
  .wallboard .metric-value { font-size: 32px; }
  .wallboard .metric { padding-block: 6px; }
  .wallboard .metrics, .wallboard .dashboard { --spacing: 10px; }
  .wallboard .panel-head { padding-block: 8px; }
  .wallboard .chart-plot { height: 124px; }
  .wallboard .pipeline-row { min-height: 17px; }
  .wallboard .finance-summary { padding-block: 0 4px; }
  .wallboard .chart-footer, .wallboard .panel-foot { min-height: 28px; }
  .wallboard .orders-table tbody tr:nth-child(n + 3), .wallboard #order-count { display: none; }
  .wallboard #short-order-count { display: inline; }
  .wallboard .payouts dl div { padding-block: 6px; }
}
@media (min-width: 1100px) {
  .wallboard .topbar { position: absolute; top: 0; right: 0; z-index: 1; min-height: 35px; border: 0; }
  .wallboard .topbar .button { padding-block: 5px; }
  .wallboard .sync-details { margin-top: 21px; }
}

.integration-health { margin-bottom: var(--spacing); }
.integration-health .panel-head { flex-wrap: wrap; }
.integration-health .panel-head p { color: var(--secondary); margin-top: 3px; }
#connection-message { color: var(--secondary); padding: 0 18px 12px; }
.feed-health { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; padding: 0 18px 14px; }
.feed-health div { border-top: 1px solid var(--line); padding-top: 8px; }
.feed-health dt { font-weight: 650; font-size: 12px; }
.feed-health dd, .feed-health small { color: var(--secondary); font-size: 11px; margin-top: 3px; display: block; }
.comparison-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 12px 18px; }
.comparison-form label { display: grid; gap: 4px; min-width: 0; color: var(--secondary); font-size: 12px; }
.comparison-form input { max-width: 100%; background: var(--surface-high); border: 1px solid var(--border); border-radius: 5px; padding: 6px; color: var(--text); }

.inventory-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.inventory-metrics dt { color: var(--secondary); font-size: 13px; font-weight: 610; }
.inventory-metrics .metric-primary dt { color: var(--cyan); }
.inventory-search { display: grid; gap: 4px; color: var(--secondary); font-size: 12px; }
.inventory-search input { max-width: 100%; background: var(--surface-high); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; color: var(--text); font: inherit; }
.inventory-search input:focus-visible, .inventory-table-region:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.inventory-results { padding-block: 4px 11px; color: var(--muted); font-size: 12px; }
.inventory-table td { font-variant-numeric: tabular-nums; }
.inventory-table tbody th { min-width: 140px; white-space: normal; }
.inventory-table tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 700px) {
  .inventory-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inventory-metrics .metric-primary { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .inventory-panel-head { align-items: stretch; flex-direction: column; }
}
.inventory-page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.inventory-lots { margin-top: var(--spacing); scroll-margin-top: 16px; }
.inventory-lot-costs div { padding-block: 6px; }

.quick-links-head p { margin-top: 8px; color: var(--secondary); font-size: 13px; }
.quick-links-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(115px, .42fr) minmax(120px, .36fr); gap: 12px; padding: 14px 16px; }
#quick-links label { display: grid; gap: 5px; min-width: 0; color: var(--secondary); font-size: 12px; }
#quick-links :is(input, select) { width: 100%; min-width: 0; padding: 8px 10px; color: var(--text); background: var(--canvas); border: 1px solid var(--border); border-radius: 7px; font: inherit; }
#quick-links :is(input, select):focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }
.quick-links-decks { display: grid; gap: 23px; margin-top: 19px; }
.quick-links-group-decks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(285px, 100%), 1fr)); gap: 18px; }
.quick-links-deck > h2 { color: var(--secondary); margin-bottom: 10px; }
.quick-links-tiles { display: grid; grid-template-columns: repeat(auto-fill, min(126px, 100%)); gap: 10px; list-style: none; padding: 0; margin: 0; }
.quick-links-tile { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.quick-links-tile:focus-within, .quick-links-tile:hover { border-color: #40616d; background: var(--surface-high); }
.quick-links-app { display: grid; grid-template-rows: auto minmax(1.2em, auto) auto; justify-items: center; border-radius: var(--radius); padding: 12px 7px 7px; text-align: center; gap: 2px; }
.quick-links-app strong { overflow-wrap: anywhere; font-size: 12px; }
.quick-links-app small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; font-size: 10px; }
.quick-links-glyph { --glyph: var(--cyan); display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 6px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--glyph) 40%, #1b2b3b); color: var(--glyph); background: linear-gradient(145deg, color-mix(in srgb, var(--glyph) 27%, #142131), #182330); box-shadow: inset 0 1px #fff2, 0 3px 12px #050a135c; font-weight: 760; font-size: 15px; overflow-wrap: anywhere; }
.quick-links-glyph[data-tone="blue"] { --glyph: var(--blue); }
.quick-links-glyph[data-tone="violet"] { --glyph: #cdb7fd; }
.quick-links-glyph[data-tone="amber"] { --glyph: var(--amber); }
.quick-links-glyph[data-tone="green"] { --glyph: var(--green); }
.quick-links-actions { display: flex; align-items: center; justify-content: space-between; padding: 2px 10px 6px; }
.quick-links-icon-button { min-width: 27px; min-height: 27px; color: var(--muted); border: 0; background: transparent; border-radius: 5px; font-size: 17px; }
.quick-links-icon-button:is(:hover, [aria-pressed="true"]) { color: var(--amber); }
.quick-links-notice { margin: 7px 0; color: var(--amber); font-size: 12px; }
.quick-links-notice:empty, .quick-links-error:empty { display: none; }
.quick-links-reset { margin: 18px 0; }
.quick-links-editor { width: min(450px, calc(100vw - 26px)); }
.quick-links-editor form { display: grid; gap: 11px; padding: 15px 18px; }
.quick-links-move, .quick-links-editor-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.quick-links-editor-actions { justify-content: end; padding-top: 5px; }
.quick-links-remove { margin-right: auto; color: var(--red); }
.quick-links-save { color: var(--cyan); border-color: #396069; }
.quick-links-error { color: var(--red); font-size: 12px; }
@media (max-width: 600px) {
  .quick-links-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; }
  .quick-links-toolbar label:first-child { grid-column: 1 / -1; }
  .quick-links-head { align-items: start; flex-direction: column; gap: 9px; }
}
