/* Arky App mockup v2 — a serious product dashboard, shared by every variant.
   Utilities (.am-*) are also used by mini cards on the pages; the dashboard itself uses .ad-*.
   Sizes itself from its own width (container queries). v1 is kept in arky-app-mockup-v1.css. */

arky-app, .am-scope {
  --am-bg: #fafaf9;
  --am-panel: #ffffff;
  --am-side: #f5f5f4;
  --am-ink: #1c1917;
  --am-ink-2: #57534e;
  --am-ink-3: #a8a29e;
  --am-line: #e7e5e4;
  --am-line-2: #f0efee;
  --am-accent: #b85a3e;          /* Arky terracotta, from the real logo */
  --am-accent-soft: #f7e9e3;
  --am-good: #15803d;
  --am-good-soft: #e8f5ec;
  --am-warn: #b45309;
  --am-warn-soft: #fdf2e3;
  --am-blue: #3b5bdb;
  --am-blue-soft: #edf0fc;
  --am-stone-1: #a89e8b;
  --am-stone-2: #837a6c;
  display: block;
  container-type: inline-size;
  font-family: "Geist", "Inter", system-ui, sans-serif;
  color: var(--am-ink);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1;
}

/* ---------- utilities shared with page mini cards ---------- */
.am-kbd { font-family: "Geist Mono", monospace; font-size: 10.5px; padding: 1px 5px; border-radius: 4px; background: var(--am-side); border: 1px solid var(--am-line); color: var(--am-ink-2); }
.am-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--am-line); background: var(--am-panel); font-size: 12px; color: var(--am-ink-2); white-space: nowrap; box-shadow: 0 1px 1px rgba(28,25,23,.04); }
.am-btn svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.am-btn.is-dark { background: var(--am-ink); color: #fff; border-color: var(--am-ink); }
.am-delta { display: inline-flex; align-items: center; gap: 2px; font-family: "Geist Mono", monospace; font-size: 10.5px; padding: 1px 6px; border-radius: 999px; background: var(--am-good-soft); color: var(--am-good); }
.am-contact { display: flex; align-items: center; gap: 10px; }
.am-avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--am-accent-soft); color: var(--am-accent); font-weight: 600; font-size: 11px; flex: none; }
.am-contact b { display: block; font-size: 13px; font-weight: 600; }
.am-contact small { font-size: 11.5px; color: var(--am-ink-3); }
.am-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.am-tag { display: inline-flex; align-items: center; gap: 5px; font-family: "Geist Mono", monospace; font-size: 10.5px; padding: 2px 7px; border-radius: 6px; background: var(--am-side); color: var(--am-ink-2); border: 1px solid var(--am-line); white-space: nowrap; }
.am-tag.is-hot { background: var(--am-accent-soft); color: var(--am-accent); border-color: transparent; }
.am-rail-title { display: flex; justify-content: space-between; font-family: "Geist Mono", monospace; font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--am-ink-3); }
.am-live { color: var(--am-good); }
.am-live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--am-good); margin-right: 6px; animation: am-pulse 1.6s ease-in-out infinite; }
.am-steps { list-style: none; position: relative; display: flex; flex-direction: column; }
.am-steps::before { content: ""; position: absolute; left: 11px; top: 10px; bottom: 10px; width: 1px; background: var(--am-line); }
.am-step { position: relative; display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: start; padding: 7px 0; }
.am-ico { width: 23px; height: 23px; border-radius: 7px; display: grid; place-items: center; background: var(--am-side); border: 1px solid var(--am-line); position: relative; z-index: 1; }
.am-ico svg { width: 12px; height: 12px; stroke: var(--am-ink-2); fill: none; stroke-width: 1.8; }
.am-step b { display: block; font-size: 12.5px; font-weight: 500; }
.am-step small { display: block; font-family: "Geist Mono", monospace; font-size: 10.5px; color: var(--am-ink-3); margin-top: 1px; }
.am-step time { font-family: "Geist Mono", monospace; font-size: 10.5px; color: var(--am-ink-3); padding-top: 2px; }
.am-step.is-key .am-ico { background: var(--am-accent); border-color: var(--am-accent); }
.am-step.is-key .am-ico svg { stroke: #fff; }
.am-step.is-new { animation: am-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes am-pulse { 50% { opacity: 0.35; } }
@keyframes am-in { from { opacity: 0; transform: translateY(-8px); } }

/* ================= dashboard v4 — rich business overview (many modules at once) =================
   Warm, polished (Salea reference), packed with content. Class prefix dx-. v1–v3 kept as -v1/-v2/-v3. */

arky-app {
  --x-bg: #f7f5f2; --x-card: #ffffff; --x-side: #fbfaf8; --x-ink: #1c1917; --x-ink-2: #57534e; --x-ink-3: #a8a29e;
  --x-line: #ece8e3; --x-line-2: #f4f1ed; --x-acc: #b85a3e; --x-acc-2: #e0401f; --x-acc-soft: #f8ebe5;
  --x-plum: #7a4a6b; --x-plum-soft: #f3e9ef; --x-sand: #d9c7b3; --x-good: #15803d; --x-good-soft: #e7f4ec; --x-warn: #b45309; --x-warn-soft: #fdf1e1;
  --x-blue: #3f5bd9; --x-blue-soft: #ebeefb;
}
.dx { background: var(--x-bg); color: var(--x-ink); border-radius: 14px; overflow: hidden; box-shadow: 0 60px 120px -50px rgba(10,0,0,.8), 0 0 0 1px rgba(0,0,0,.07); font-size: 12px; line-height: 1.35; text-align: left; font-feature-settings: "tnum" 1; }
.dx svg.i { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.dx .m { font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; }
.dx-body { display: grid; grid-template-columns: 200px minmax(0, 1fr); }

/* sidebar */
.dx-side { background: var(--x-side); border-right: 1px solid var(--x-line); padding: 14px 10px; display: flex; flex-direction: column; gap: 1px; }
.dx-brand { display: flex; align-items: center; gap: 8px; padding: 2px 6px 12px; font-weight: 600; font-size: 14px; }
.dx-logo { display: grid; justify-items: center; gap: 2px; width: 18px; }
.dx-logo i { display: block; height: 3.5px; border-radius: 1px; }
.dx-logo i:nth-child(1) { width: 7px; background: #a89e8b; } .dx-logo i:nth-child(2) { width: 12px; background: #837a6c; } .dx-logo i:nth-child(3) { width: 18px; background: var(--x-acc); }
.dx-user { display: flex; align-items: center; gap: 8px; padding: 8px; margin-bottom: 8px; border: 1px solid var(--x-line); border-radius: 10px; background: var(--x-card); }
.dx-user .ph { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #e7c2b2, #b85a3e); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 10px; }
.dx-user b { display: block; font-weight: 600; } .dx-user small { color: var(--x-ink-3); font-size: 10.5px; }
.dx-user .pill { margin-left: auto; font-size: 9.5px; padding: 1px 6px; border-radius: 999px; background: var(--x-acc-soft); color: var(--x-acc); font-weight: 500; }
.dx-search { display: flex; align-items: center; gap: 7px; height: 28px; padding: 0 8px; margin-bottom: 6px; border-radius: 8px; border: 1px solid var(--x-line); background: var(--x-card); color: var(--x-ink-3); }
.dx-search span:last-child { margin-left: auto; font-family: "Geist Mono", monospace; font-size: 10px; }
.dx-grp { margin: 12px 8px 4px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--x-ink-3); font-weight: 500; }
.dx-nav { display: flex; align-items: center; gap: 9px; height: 28px; padding: 0 8px; border-radius: 7px; color: var(--x-ink-2); }
.dx-nav.on { background: var(--x-acc-soft); color: var(--x-acc); font-weight: 600; }
.dx-nav .n { margin-left: auto; font-size: 10.5px; color: var(--x-ink-3); font-family: "Geist Mono", monospace; }
.dx-nav .new { margin-left: auto; font-size: 9.5px; padding: 0 6px; border-radius: 999px; border: 1px solid var(--x-acc); color: var(--x-acc); }
.dx-plan { margin-top: 14px; padding: 10px; border-radius: 10px; background: var(--x-card); border: 1px solid var(--x-line); }
.dx-plan div { display: flex; justify-content: space-between; font-size: 11px; color: var(--x-ink-2); }
.dx-plan b { color: var(--x-ink); font-weight: 600; }
.dx-meter { height: 5px; border-radius: 3px; background: var(--x-line); margin: 8px 0; overflow: hidden; } .dx-meter i { display: block; height: 100%; width: 42%; background: linear-gradient(90deg, var(--x-acc), var(--x-acc-2)); }

/* main */
.dx-main { padding: 16px 18px 18px; min-width: 0; display: flex; flex-direction: column; gap: 12px; background: linear-gradient(180deg, #f9ece6 0, var(--x-bg) 160px); }
.dx-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.dx-top h4 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.dx-top p { color: var(--x-ink-2); margin-top: 2px; }
.dx-tools { display: flex; gap: 6px; }
.dx-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--x-line); background: var(--x-card); color: var(--x-ink-2); white-space: nowrap; }
.dx-btn.pri { background: var(--x-ink); border-color: var(--x-ink); color: #fff; }

.dx-card { background: var(--x-card); border: 1px solid var(--x-line); border-radius: 12px; padding: 12px 14px; min-width: 0; box-shadow: 0 1px 2px rgba(28,25,23,.03); }
.dx-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.dx-h b { font-size: 12.5px; font-weight: 600; }
.dx-h a, .dx-h span { color: var(--x-ink-3); font-size: 11px; }
.dx-delta { display: inline-flex; align-items: center; gap: 2px; font-family: "Geist Mono", monospace; font-size: 10.5px; padding: 1px 6px; border-radius: 999px; background: var(--x-good-soft); color: var(--x-good); }
.dx-delta.dn { background: #fbeae8; color: #b42318; }

.dx-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.dx-kpi small { display: flex; align-items: center; gap: 6px; color: var(--x-ink-2); font-size: 11px; }
.dx-kpi small i.sq { width: 8px; height: 8px; border-radius: 2px; }
.dx-kpi strong { display: block; font-size: 20px; font-weight: 600; letter-spacing: -0.03em; margin: 6px 0 4px; }
.dx-kpi .row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.dx-kpi svg.sp { width: 56px; height: 20px; }

.dx-r2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 10px; }
.dx-legend { display: flex; gap: 12px; color: var(--x-ink-2); font-size: 11px; }
.dx-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.dx-chart { position: relative; }
.dx-chart svg { display: block; width: 100%; height: 150px; }
.dx-axis { display: flex; justify-content: space-between; color: var(--x-ink-3); font-family: "Geist Mono", monospace; font-size: 10px; margin-top: 4px; }
.dx-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 2px 0 10px; }
.dx-sum div { border-left: 2px solid var(--x-line); padding-left: 8px; }
.dx-sum span { color: var(--x-ink-3); font-size: 10.5px; display: flex; align-items: center; gap: 5px; }
.dx-sum b { display: block; font-size: 15px; font-weight: 600; margin-top: 2px; }

.dx-funnel { display: flex; flex-direction: column; gap: 8px; }
.dx-f { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; font-size: 11.5px; color: var(--x-ink-2); }
.dx-f b { font-weight: 600; color: var(--x-ink); font-family: "Geist Mono", monospace; font-size: 11px; }
.dx-f em { font-style: normal; color: var(--x-ink-3); font-family: "Geist Mono", monospace; font-size: 10px; margin-left: 4px; }
.dx-f .bar { grid-column: span 2; height: 7px; border-radius: 4px; background: var(--x-line-2); overflow: hidden; }
.dx-f .bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--x-acc), #e27a5c); width: 0; transition: width 1.2s cubic-bezier(.2,.8,.2,1); }

.dx-r3 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.dx-r4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dx-tbl .tr { display: grid; grid-template-columns: 48px minmax(0, 1fr) 62px 54px; gap: 8px; align-items: center; height: 30px; border-top: 1px solid var(--x-line-2); }
.dx-tbl .tr.th { height: 22px; border-top: 0; color: var(--x-ink-3); font-size: 10.5px; }
.dx-tbl .who { display: flex; align-items: center; gap: 6px; min-width: 0; }
.dx-tbl .who span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dx-av { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 8.5px; font-weight: 600; flex: none; color: #fff; }
.dx-st { font-size: 10px; padding: 1px 6px; border-radius: 999px; text-align: center; }
.st-paid { background: var(--x-good-soft); color: var(--x-good); } .st-ship { background: var(--x-blue-soft); color: var(--x-blue); } .st-pend { background: var(--x-warn-soft); color: var(--x-warn); }
.dx-tbl .tr.new { animation: dx-in 1.4s ease both; }
@keyframes dx-in { 0% { opacity: 0; transform: translateY(-4px); background: var(--x-acc-soft); } 30% { opacity: 1; transform: none; } }

.dx-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 8px; }
.dx-week span { text-align: center; padding: 5px 0; border-radius: 7px; font-size: 10.5px; color: var(--x-ink-2); background: var(--x-line-2); }
.dx-week span b { display: block; font-size: 13px; color: var(--x-ink); font-weight: 600; }
.dx-week span.on { background: var(--x-acc); color: #fff; } .dx-week span.on b { color: #fff; }
.dx-bk { display: grid; grid-template-columns: 40px 1fr auto; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--x-line-2); }
.dx-bk time { font-family: "Geist Mono", monospace; font-size: 11px; color: var(--x-ink); font-weight: 500; }
.dx-bk small { display: block; color: var(--x-ink-3); font-size: 10.5px; }

.dx-feed { list-style: none; position: relative; }
.dx-feed li { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: start; padding: 5px 0; }
.dx-feed .ic { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--x-line-2); color: var(--x-ink-2); }
.dx-feed .ic svg { width: 12px; height: 12px; }
.dx-feed li.key .ic { background: var(--x-acc-soft); color: var(--x-acc); }
.dx-feed b { font-weight: 500; } .dx-feed small { display: block; color: var(--x-ink-3); font-size: 10.5px; }
.dx-feed time { font-family: "Geist Mono", monospace; font-size: 10px; color: var(--x-ink-3); }
.dx-feed li.new { animation: dx-in 1.4s ease both; }
.dx-live { color: var(--x-good); font-size: 11px; } .dx-live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--x-good); margin-right: 5px; animation: am-pulse 1.6s infinite; }

.dx-list .li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; padding: 6px 0; border-top: 1px solid var(--x-line-2); }
.dx-list .li:first-child { border-top: 0; }
.dx-list .li span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dx-list .li b { font-family: "Geist Mono", monospace; font-size: 11px; font-weight: 500; }
.dx-list .bar { grid-column: span 2; height: 4px; border-radius: 2px; background: var(--x-line-2); } .dx-list .bar i { display: block; height: 100%; border-radius: 2px; background: var(--x-plum); }
.dx-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }

/* responsive (container width) */
@container (max-width: 1100px) {
  .dx-body { grid-template-columns: 172px minmax(0, 1fr); }
  .dx-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dx-r4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 860px) {
  .dx-body { grid-template-columns: minmax(0, 1fr); }
  .dx-side { display: none; }
  .dx-r2, .dx-r3 { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 560px) {
  .dx-main { padding: 12px; }
  .dx-tools .dx-btn:not(.pri) { display: none; }
  .dx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dx-r4 { grid-template-columns: minmax(0, 1fr); }
  .dx-legend { display: none; }
  .dx-r4 .dx-card:nth-child(n + 3), .dx-kpis .dx-card:nth-child(n + 5) { display: none; }
}

/* ===== v4.1: compact height + views ===== */
.dx { display: flex; flex-direction: column; }
.dx-body { flex: 1; min-height: 0; }
.dx-side { overflow: hidden; padding: 12px 10px; }
.dx-nav { cursor: pointer; height: 26px; transition: background .2s, color .2s; }
.dx-nav:hover:not(.on) { background: var(--x-line-2); color: var(--x-ink); }
.dx-grp { margin: 9px 8px 3px; }
.dx-user { margin-bottom: 6px; padding: 6px 8px; }
.dx-brand { padding-bottom: 8px; }
.dx-plan { margin-top: auto; }
.dx-main { gap: 10px; padding: 14px 16px 16px; min-height: 600px; }
.dx-top h4 { font-size: 16px; }
.dx-view { display: none; flex-direction: column; gap: 10px; min-height: 0; flex: 1; animation: dx-view .45s cubic-bezier(.2,.8,.2,1); }
.dx-view.on { display: flex; }
@keyframes dx-view { from { opacity: 0; transform: translateY(8px); } }
.dx-kpi { cursor: pointer; padding: 9px 12px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.dx-kpi:hover { transform: translateY(-2px); }
.dx-kpi.on { border-color: var(--x-acc); box-shadow: 0 0 0 3px var(--x-acc-soft); }
.dx-kpi strong { font-size: 18px; margin: 4px 0 3px; }
.dx-r2 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: stretch; }
.dx-r3 { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); }
.dx-chart svg { height: 128px; }
.dx-chart { cursor: crosshair; }
.dx-tip { position: absolute; top: 0; pointer-events: none; transform: translateX(-50%); padding: 6px 8px; border-radius: 8px; background: var(--x-ink); color: #fff; font-size: 11px; white-space: nowrap; opacity: 0; transition: opacity .15s; z-index: 2; }
.dx-tip.on { opacity: 1; }
.dx-tip span { display: flex; gap: 10px; justify-content: space-between; }
.dx-tip em { font-style: normal; color: rgba(255,255,255,.6); }
.dx-vline { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--x-ink); opacity: 0; pointer-events: none; }
.dx-vline.on { opacity: .35; }
.dx-feed li { padding: 4px 0; }
.dx-card.fill { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.dx-week span { cursor: pointer; transition: background .2s; }
.dx-week span:hover:not(.on) { background: var(--x-line); }
.dx-tbl .tr { height: 27px; }
.dx-tbl.big .tr { grid-template-columns: 58px minmax(0, 1.3fr) minmax(0, 1fr) 90px 70px 64px; height: 34px; cursor: pointer; }
.dx-tbl.big .tr:not(.th):hover { background: var(--x-line-2); }
.dx-seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--x-line-2); }
.dx-seg span { padding: 4px 9px; border-radius: 6px; cursor: pointer; color: var(--x-ink-2); }
.dx-seg span.on { background: var(--x-card); color: var(--x-ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); font-weight: 500; }
/* bookings view */
.dx-cal { display: grid; grid-template-columns: 44px repeat(5, minmax(0, 1fr)); flex: 1; min-height: 0; border: 1px solid var(--x-line); border-radius: 12px; background: var(--x-card); overflow: hidden; }
.dx-cal > div { border-left: 1px solid var(--x-line-2); position: relative; }
.dx-cal .hd { height: 34px; border-bottom: 1px solid var(--x-line); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11.5px; color: var(--x-ink-2); }
.dx-cal .hd b { color: var(--x-ink); }
.dx-cal .hrs { border-left: 0; }
.dx-cal .hrs span { display: block; height: 52px; padding: 4px 6px; font-family: "Geist Mono", monospace; font-size: 10px; color: var(--x-ink-3); }
.dx-ev { position: absolute; left: 4px; right: 4px; border-radius: 7px; padding: 5px 7px; font-size: 11px; background: var(--x-acc-soft); color: var(--x-acc); border-left: 3px solid var(--x-acc); cursor: pointer; transition: transform .2s; overflow: hidden; }
.dx-ev:hover { transform: scale(1.02); }
.dx-ev small { display: block; color: var(--x-ink-2); font-size: 10px; }
.dx-ev.p { background: var(--x-plum-soft); color: var(--x-plum); border-color: var(--x-plum); }
.dx-ev.b { background: var(--x-blue-soft); color: var(--x-blue); border-color: var(--x-blue); }
/* contacts view */
.dx-split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; flex: 1; min-height: 0; }
.dx-ct { display: grid; grid-template-columns: minmax(0, 1.4fr) 90px 90px 64px; gap: 8px; align-items: center; height: 36px; padding: 0 4px; border-top: 1px solid var(--x-line-2); cursor: pointer; border-radius: 6px; }
.dx-ct:hover { background: var(--x-line-2); }
.dx-ct.on { background: var(--x-acc-soft); }
.dx-ct.th { height: 24px; border-top: 0; color: var(--x-ink-3); font-size: 10.5px; cursor: default; }
.dx-ct .who { display: flex; gap: 8px; align-items: center; min-width: 0; }
.dx-ct .who span:last-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dx-rec h5 { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.dx-rec h5 .dx-av { width: 32px; height: 32px; font-size: 11px; }
.dx-rec h5 small { display: block; font-weight: 400; font-size: 11px; color: var(--x-ink-3); }
.dx-props { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.dx-props div { background: var(--x-line-2); border-radius: 8px; padding: 7px 9px; }
.dx-props span { display: block; font-size: 10px; color: var(--x-ink-3); }
.dx-props b { font-weight: 600; }
/* campaigns / support / workflows */
.dx-cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dx-big { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
.dx-msgs { display: flex; flex-direction: column; gap: 8px; }
.dx-msg { max-width: 80%; padding: 8px 10px; border-radius: 12px; background: var(--x-line-2); }
.dx-msg.me { align-self: flex-end; background: var(--x-acc); color: #fff; }
.dx-msg small { display: block; font-size: 10px; opacity: .7; margin-top: 2px; }
.dx-flow { display: flex; align-items: center; gap: 0; margin-top: 8px; }
.dx-node { flex: none; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--x-line); background: var(--x-card); font-size: 11.5px; }
.dx-node small { display: block; color: var(--x-ink-3); font-size: 10px; }
.dx-node.on { border-color: var(--x-acc); box-shadow: 0 0 0 3px var(--x-acc-soft); }
.dx-link { flex: 1; height: 2px; min-width: 12px; background-image: linear-gradient(90deg, var(--x-acc) 50%, transparent 0); background-size: 8px 2px; animation: dx-march .6s linear infinite; }
@keyframes dx-march { to { background-position: 8px 0; } }
@container (max-width: 860px) {
  .dx { height: auto; }
  .dx-view.on { display: flex; }
  .dx-split, .dx-cards3 { grid-template-columns: minmax(0, 1fr); }
  .dx-tbl.big .tr { grid-template-columns: 52px minmax(0, 1fr) 70px 60px; }
  .dx-tbl.big .tr > :nth-child(3), .dx-tbl.big .tr > :nth-child(6) { display: none; }
  .dx-mtabs { display: flex !important; }
}
@container (max-width: 560px) {
  .dx-r3 .dx-card:nth-child(n + 2) { display: none; }
  .dx-cal { grid-template-columns: 38px repeat(3, minmax(0, 1fr)); }
  .dx-cal > div:nth-child(n + 5) { display: none; }
}

@container (max-width: 860px) {
  .dx-r2, .dx-r3 { grid-template-columns: minmax(0, 1fr); }
  .dx-r2 .dx-card.fill { max-height: 250px; }
  .dx-chart svg { height: 150px; }
  .dx-axis span:nth-child(even) { display: none; }
  .dx-r3 .dx-card:nth-child(n + 2) { display: none; }
  .dx-cal { min-height: 440px; flex: none; }
}
.dx-mtabs { display: none; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.dx-mtabs span { flex: none; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--x-line); background: var(--x-card); color: var(--x-ink-2); cursor: pointer; }
.dx-mtabs span.on { background: var(--x-ink); color: #fff; border-color: var(--x-ink); }

@media (prefers-reduced-motion: reduce) { .dx-view, .dx-link { animation: none; } .dx-tbl .tr.new, .dx-feed li.new { animation: none; } .dx-f .bar i { transition: none; } }

/* v4.2: no fixed heights — nothing can overlap */
.dx-view.on { flex: none; }
.dx-feed li > span:nth-child(2) { min-width: 0; }
.dx-feed b, .dx-feed small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dx-card.fill { position: relative; }
.dx-r2 > .dx-card.fill { max-height: 100%; }
.dx-tbl .who span { min-width: 0; }
.dx-cal { min-height: 440px; flex: none; }
.dx-split { flex: none; min-height: 420px; }
@container (max-width: 1100px) {
  .dx-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dx-r3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dx-r3 > .dx-card:nth-child(3) { display: none; }
  .dx-tools .dx-btn:not(.pri) { display: none; }
}
@container (max-width: 560px) {
  .dx-tbl .tr { grid-template-columns: 44px minmax(0, 1fr) 60px 52px; gap: 6px; }
  .dx-tbl .who .dx-av { display: none; }
  .dx-flow { flex-wrap: wrap; gap: 6px; }
  .dx-link { display: none; }
  .dx-node { flex: 1 1 40%; }
}
.dx-st { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@container (max-width: 560px) {
  .dx-tbl .tr { grid-template-columns: 40px minmax(0, 1fr) 58px 56px; }
  .dx-ct { grid-template-columns: minmax(0, 1fr) 76px 44px; }
  .dx-ct > :nth-child(3) { display: none; }
}
/* keep the phone rules last so nothing above overrides them */
@container (max-width: 860px) {
  .dx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dx-r2, .dx-r3 { grid-template-columns: minmax(0, 1fr); }
  .dx-r3 > .dx-card:nth-child(n + 2) { display: none; }
}

/* ===== v4.2: dark mode + self-running demo cursor ===== */
arky-app[theme="dark"] {
  --x-bg: #0f0f11; --x-card: #17171b; --x-side: #0c0c0e; --x-ink: #ededee; --x-ink-2: #a1a1aa; --x-ink-3: #6b6b74;
  --x-line: #26262c; --x-line-2: #1e1e22; --x-acc-soft: rgba(224,64,31,.16); --x-plum-soft: rgba(122,74,107,.25);
  --x-good: #4ade80; --x-good-soft: rgba(74,222,128,.12); --x-warn: #fbbf24; --x-warn-soft: rgba(251,191,36,.12); --x-blue: #8ea2ff; --x-blue-soft: rgba(142,162,255,.14);
}
.dx { position: relative; transition: background .4s ease, color .4s ease; }
.dx-main { transition: background .4s ease; }
arky-app[theme="dark"] .dx-main { background: linear-gradient(180deg, #1a0f0d 0, var(--x-bg) 160px); }
arky-app[theme="dark"] .dx-btn.pri { background: #ededee; color: #0f0f11; border-color: #ededee; }
arky-app[theme="dark"] .dx-card { box-shadow: none; }
arky-app[theme="dark"] .dx-week span.on, arky-app[theme="dark"] .dx-week span.on b { color: #fff; }
.dx-chart svg line { stroke: var(--x-line-2); }
.dx-chart svg path[stroke-dasharray] { stroke: var(--x-ink); }
.dx-card, .dx-side, .dx-btn, .dx-search, .dx-user, .dx-plan, .dx-week span, .dx-props div { transition: background .4s ease, border-color .4s ease, color .4s ease; }
.dx-theme { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--x-line); background: var(--x-card); color: var(--x-ink-2); cursor: pointer; }
.dx-theme svg { width: 15px; height: 15px; }
.dx-cursor { position: absolute; left: 0; top: 0; width: 22px; height: 22px; z-index: 20; pointer-events: none; opacity: 0; transform: translate(-3px, -2px); transition: left .75s cubic-bezier(.45,.05,.25,1), top .75s cubic-bezier(.45,.05,.25,1), opacity .3s; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.dx-cursor.on { opacity: 1; }
.dx-cursor::after { content: ""; position: absolute; left: -9px; top: -9px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--x-acc-2); opacity: 0; transform: scale(.3); }
.dx-cursor.click::after { animation: dx-click .5s ease-out; }
@keyframes dx-click { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.6); } }
.dx-demo { position: absolute; right: 12px; bottom: 10px; z-index: 19; font-size: 10.5px; color: var(--x-ink-3); background: var(--x-card); border: 1px solid var(--x-line); border-radius: 999px; padding: 3px 9px; opacity: 0; transition: opacity .3s; pointer-events: none; }
.dx-demo.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .dx-cursor, .dx-demo { display: none; } }
arky-app[theme="dark"] .dx-tip { background: #ededee; color: #0f0f11; }
arky-app[theme="dark"] .dx-tip em { color: #52525b; }

/* ===== v4.3: glow / modern ===== */
.dx { --glow: 224, 64, 31; border: 1px solid transparent; background: linear-gradient(var(--x-bg), var(--x-bg)) padding-box, linear-gradient(135deg, rgba(var(--glow), .55), rgba(255,255,255,.35) 30%, rgba(var(--glow), .15) 60%, rgba(var(--glow), .6)) border-box;
  box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 40px 120px -40px rgba(var(--glow), .55), 0 60px 120px -50px rgba(10,0,0,.8); }
.dx-main { position: relative; isolation: isolate; }
.dx-main::before { content: ""; position: absolute; z-index: -1; right: -120px; top: -140px; width: 520px; height: 360px; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--glow), .22), transparent); pointer-events: none; animation: dx-drift 14s ease-in-out infinite alternate; }
.dx-main::after { content: ""; position: absolute; z-index: -1; left: 10%; bottom: -160px; width: 460px; height: 320px; border-radius: 50%; background: radial-gradient(closest-side, rgba(122,74,107,.14), transparent); pointer-events: none; animation: dx-drift 18s ease-in-out infinite alternate-reverse; }
@keyframes dx-drift { to { transform: translate(-60px, 40px) scale(1.08); } }
.dx-card { position: relative; background: color-mix(in srgb, var(--x-card) 86%, transparent); backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 1px 2px rgba(28,25,23,.04); transition: transform .25s ease, box-shadow .3s ease, border-color .3s ease, background .4s ease; }
.dx-card:hover { border-color: rgba(var(--glow), .35); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 10px 30px -12px rgba(var(--glow), .35); }
.dx-kpi.on { border-color: rgba(var(--glow), .7); box-shadow: 0 0 0 3px rgba(var(--glow), .14), 0 12px 30px -10px rgba(var(--glow), .5), inset 0 1px 0 rgba(255,255,255,.7); }
.dx-kpi.on::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--a, 0deg), transparent 0 70%, rgba(var(--glow), .95) 85%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: dx-spin 3.2s linear infinite; pointer-events: none; }
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes dx-spin { to { --a: 360deg; } }
.dx-kpi svg.sp path { filter: drop-shadow(0 0 3px currentColor); }
.dx-kpi svg.sp { color: rgba(var(--glow), .6); }
.dx-glowline { filter: drop-shadow(0 0 4px rgba(var(--glow), .9)) drop-shadow(0 0 12px rgba(var(--glow), .55)); stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: dx-draw 1.6s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes dx-draw { to { stroke-dashoffset: 0; } }
.dx-prev { stroke: var(--x-ink); }
.dx-bars rect { transition: opacity .2s; }
.dx-chart:hover .dx-bars rect { opacity: .85; }
.dx-live::before { box-shadow: 0 0 0 0 rgba(22,163,74,.6); animation: dx-ping 1.8s ease-out infinite; }
@keyframes dx-ping { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 100% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } }
.dx-nav.on { box-shadow: inset 2px 0 0 var(--x-acc-2), 0 6px 18px -10px rgba(var(--glow), .6); }
.dx-btn.pri { box-shadow: 0 6px 18px -8px rgba(var(--glow), .7); }
.dx-f .bar i { box-shadow: 0 0 10px rgba(var(--glow), .45); }
.dx-meter i { box-shadow: 0 0 10px rgba(var(--glow), .6); }
.dx-week span.on { box-shadow: 0 6px 16px -6px rgba(var(--glow), .8); }
.dx-feed li.key .ic { box-shadow: 0 0 12px -2px rgba(var(--glow), .6); }
.dx-vline.on { opacity: .6; background: linear-gradient(transparent, rgba(var(--glow), 1), transparent); box-shadow: 0 0 8px rgba(var(--glow), .8); }
.dx-tip { backdrop-filter: blur(8px); background: rgba(28,25,23,.86); box-shadow: 0 10px 30px -8px rgba(var(--glow), .5); }

/* dark: stronger neon */
arky-app[theme="dark"] .dx { background: linear-gradient(var(--x-bg), var(--x-bg)) padding-box, linear-gradient(135deg, rgba(var(--glow), .8), rgba(255,255,255,.08) 30%, rgba(var(--glow), .1) 60%, rgba(var(--glow), .7)) border-box; box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 30px 140px -30px rgba(var(--glow), .7), 0 60px 120px -50px rgba(0,0,0,.9); }
arky-app[theme="dark"] .dx-main::before { background: radial-gradient(closest-side, rgba(var(--glow), .32), transparent); }
arky-app[theme="dark"] .dx-card { background: color-mix(in srgb, var(--x-card) 78%, transparent); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 1px 0 rgba(0,0,0,.4); }
arky-app[theme="dark"] .dx-card:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 1px rgba(var(--glow), .25), 0 14px 40px -12px rgba(var(--glow), .55); }
arky-app[theme="dark"] .dx-kpi.on { box-shadow: 0 0 0 3px rgba(var(--glow), .18), 0 0 30px -4px rgba(var(--glow), .6), inset 0 1px 0 rgba(255,255,255,.08); }
arky-app[theme="dark"] .dx-glowline { filter: drop-shadow(0 0 5px rgba(var(--glow), 1)) drop-shadow(0 0 18px rgba(var(--glow), .8)); }
arky-app[theme="dark"] .dx-kpi strong, arky-app[theme="dark"] .dx-big { text-shadow: 0 0 24px rgba(255,255,255,.12); }
arky-app[theme="dark"] .dx-tip { background: rgba(237,237,238,.92); }
@media (prefers-reduced-motion: reduce) { .dx-main::before, .dx-main::after, .dx-kpi.on::before, .dx-glowline, .dx-live::before { animation: none; } .dx-glowline { stroke-dashoffset: 0; } }

/* ===== v4.4: cinematic camera ===== */
arky-app { perspective: 1600px; }
.dx { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2,.8,.2,1), background .4s, color .4s; }
.dx::after { content: ""; position: absolute; inset: 0; z-index: 15; pointer-events: none; border-radius: inherit;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.07), transparent 60%); }
.dx-body { transform-origin: var(--ox, 50%) var(--oy, 50%); will-change: transform; }
.dx-dive .dx-body { transform: scale(1.55); filter: blur(7px) brightness(1.15) saturate(1.2); opacity: .55;
  transition: transform .42s cubic-bezier(.7,0,.9,.5), filter .42s ease-in, opacity .42s ease-in; }
.dx-emerge .dx-body { animation: dx-emerge .76s cubic-bezier(.15,.85,.25,1) both; }
@keyframes dx-emerge { 0% { transform: scale(.86); filter: blur(8px) brightness(1.2); opacity: .3; } 60% { filter: blur(0) brightness(1.04); opacity: 1; } 100% { transform: none; filter: none; opacity: 1; } }
.dx-dive::before, .dx-emerge::before { content: ""; position: absolute; inset: 0; z-index: 16; pointer-events: none; border-radius: inherit;
  background: radial-gradient(circle at var(--ox, 50%) var(--oy, 50%), rgba(224,64,31,.28), transparent 45%), radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.55)); animation: dx-flash .8s ease both; }
@keyframes dx-flash { 0% { opacity: 0; } 35% { opacity: 1; } 100% { opacity: 0; } }
.dx-push .dx-body { animation: dx-push .9s cubic-bezier(.3,.7,.2,1); }
@keyframes dx-push { 0% { transform: none; } 35% { transform: scale(1.07); } 100% { transform: none; } }
.dx-view.on { animation: none; }
.dx-emerge .dx-view.on > * { animation: dx-rise .7s cubic-bezier(.2,.8,.2,1) both; }
.dx-emerge .dx-view.on > *:nth-child(2) { animation-delay: .06s; } .dx-emerge .dx-view.on > *:nth-child(3) { animation-delay: .12s; } .dx-emerge .dx-view.on > *:nth-child(4) { animation-delay: .18s; }
@keyframes dx-rise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .dx { transform: none; } .dx-dive .dx-body, .dx-emerge .dx-body, .dx-push .dx-body, .dx-emerge .dx-view.on > * { animation: none; transform: none; filter: none; opacity: 1; } }

/* ===== v4.5: click-to-zoom camera ===== */
.dx { overflow: hidden; }
.dx-body { transform-origin: 0 0; transition: transform .95s cubic-bezier(.22,.9,.2,1), filter .6s; }
.dx-push .dx-body { animation: none; }
.dx-zoomed .dx-card:not(.dx-focused), .dx-zoomed .dx-cal:not(.dx-focused), .dx-zoomed .dx-side, .dx-zoomed .dx-top { opacity: .28; filter: blur(1.5px) saturate(.6); transition: opacity .6s, filter .6s; }
.dx-card, .dx-cal, .dx-side, .dx-top { transition: opacity .6s, filter .6s, transform .25s ease, box-shadow .3s ease, border-color .3s ease, background .4s ease; }
.dx-focused { border-color: rgba(var(--glow), .8) !important; box-shadow: 0 0 0 1px rgba(var(--glow), .5), 0 0 40px -6px rgba(var(--glow), .7) !important; z-index: 2; }
.dx-card, .dx-cal { cursor: zoom-in; }
.dx-focused, .dx-focused * { cursor: auto; }
.dx-zoomout { position: absolute; left: 50%; top: 12px; z-index: 18; transform: translate(-50%, -8px); opacity: 0; pointer-events: none; font: 500 12px Geist, system-ui, sans-serif; color: var(--x-ink); background: color-mix(in srgb, var(--x-card) 80%, transparent); backdrop-filter: blur(10px); border: 1px solid rgba(var(--glow), .5); border-radius: 999px; padding: 6px 14px; cursor: pointer; box-shadow: 0 8px 24px -8px rgba(var(--glow), .6); transition: opacity .4s, transform .4s; }
.dx-zoomed .dx-zoomout { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .dx-body { transition: none; } }

/* ===== v4.6: calmer colour — neutrals + one accent ===== */
arky-app { --x-good: var(--x-ink-2); --x-good-soft: var(--x-line-2); --x-warn: var(--x-ink-2); --x-warn-soft: transparent; --x-blue: var(--x-ink-2); --x-blue-soft: var(--x-line-2); --x-plum: var(--x-acc); --x-plum-soft: var(--x-acc-soft); }
arky-app[theme="dark"] { --x-good: var(--x-ink-2); --x-good-soft: var(--x-line-2); --x-warn: var(--x-ink-2); --x-warn-soft: transparent; --x-blue: var(--x-ink-2); --x-blue-soft: var(--x-line-2); }
.dx-delta { background: var(--x-line-2); color: var(--x-ink-2); }
.dx-delta svg { color: var(--x-acc-2); }
.dx-delta.dn { background: var(--x-line-2); color: var(--x-ink-3); }
.dx-kpi small i.sq { background: var(--x-ink-3) !important; }
.dx-kpi.on small i.sq { background: var(--x-acc-2) !important; }
.dx-kpi svg.sp path { stroke: var(--x-ink-3); filter: none; }
.dx-kpi.on svg.sp path { stroke: var(--x-acc-2); filter: drop-shadow(0 0 3px rgba(var(--glow), .8)); }
.st-paid { background: var(--x-acc-soft); color: var(--x-acc-2); }
.st-ship { background: var(--x-line-2); color: var(--x-ink-2); }
.st-pend { background: transparent; color: var(--x-ink-3); box-shadow: inset 0 0 0 1px var(--x-line); }
.dx-av { background: var(--x-line) !important; color: var(--x-ink-2) !important; }
.dx-dot { background: var(--x-ink-3) !important; }
.dx-live { color: var(--x-ink-2); }
.dx-live::before { background: var(--x-acc-2); animation-name: dx-ping-acc; }
@keyframes dx-ping-acc { 0% { box-shadow: 0 0 0 0 rgba(var(--glow), .6); } 100% { box-shadow: 0 0 0 8px rgba(var(--glow), 0); } }
.dx-list .bar i { background: var(--x-ink-3) !important; }
.dx-ev, .dx-ev.p, .dx-ev.b { background: var(--x-line-2); color: var(--x-ink); border-color: var(--x-ink-3); }
.dx-ev:first-of-type { background: var(--x-acc-soft); border-color: var(--x-acc-2); }
.dx-user .ph { background: var(--x-line); color: var(--x-ink-2); }
.dx-main::after { background: radial-gradient(closest-side, rgba(var(--glow), .08), transparent); }

/* ===== v4.7: performance — same look, cheap to paint ===== */
/* backdrop blur on every card was the main cost: cards are opaque now (colour-mixed), no live blur */
.dx-card, arky-app[theme="dark"] .dx-card { backdrop-filter: none; -webkit-backdrop-filter: none; }
.dx-card { background: var(--x-card); }
arky-app[theme="dark"] .dx-card { background: #151518; }
.dx-tip, .dx-zoomout { backdrop-filter: none; }
/* ambient light blobs: static (no infinite animation repainting the whole main area) */
.dx-main::before, .dx-main::after { animation: none; will-change: auto; }
/* glow line: one cheap drop-shadow instead of two stacked ones */
.dx-glowline, arky-app[theme="dark"] .dx-glowline { filter: drop-shadow(0 0 6px rgba(var(--glow), .75)); }
.dx-kpi svg.sp path, .dx-kpi.on svg.sp path { filter: none; }
/* active KPI: static ring, no @property conic animation */
.dx-kpi.on::before { animation: none; display: none; }
/* sheen follows the mouse only while hovering */
.dx::after { display: none; }
arky-app:hover .dx::after { display: block; }
/* the 3D tilt layer isolates painting */
.dx { contain: layout paint; }
.dx-main { contain: paint; }
/* zoom focus: dim with opacity only (blur on every card was expensive) */
.dx-zoomed .dx-card:not(.dx-focused), .dx-zoomed .dx-cal:not(.dx-focused), .dx-zoomed .dx-side, .dx-zoomed .dx-top { filter: none; opacity: .22; }
.dx-dive .dx-body { filter: brightness(1.12); }
@keyframes dx-emerge { 0% { transform: scale(.86); opacity: .3; } 100% { transform: none; opacity: 1; } }

/* ================= v5 — one-series chart (both themes) + theme="paper" =================
   paper: a crisp cream/white product on a dark page (Salea reference): ink text, one accent,
   semantic statuses, mono only for IDs and times, nothing under ~11.5px at real size. */
.dx-grid { stroke: var(--x-line-2); }
.dx-bar { fill: #d9cfc4; transition: opacity .2s; }
.dx-bar.now { fill: var(--x-acc-2); }
arky-app[theme="dark"] .dx-bar { fill: #3a3230; }
arky-app[theme="dark"] .dx-bar.now { fill: var(--x-acc-2); }
.dx-legend .lg-now, .dx-legend .lg-bar, .dx-legend .lg-prev { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.dx-legend .lg-now { background: var(--x-acc-2); }
.dx-legend .lg-bar { background: #d9cfc4; }
arky-app[theme="dark"] .dx-legend .lg-bar { background: #3a3230; }
.dx-legend .lg-prev { width: 12px; height: 0; border-radius: 0; border-top: 1.5px dashed var(--x-ink-2); vertical-align: 3px; }
.dx .num { font-variant-numeric: tabular-nums; font-weight: 500; }

arky-app[theme="paper"] {
  --x-bg: #f6f2ec; --x-card: #ffffff; --x-side: #faf7f2; --x-ink: #1a1614; --x-ink-2: #4f4843; --x-ink-3: #8b827a;
  --x-line: #e6dfd5; --x-line-2: #f1ece4; --x-acc: #c8452a; --x-acc-2: #e0401f; --x-acc-soft: #fbe9e2;
  --x-good: #1f7a45; --x-good-soft: #e5f3ea; --x-warn: #a3620a; --x-warn-soft: #fbf0dc; --x-blue: #4f4843; --x-blue-soft: #f1ece4;
}
arky-app[theme="paper"] .dx { border: 0; background: var(--x-bg); box-shadow: 0 0 0 1px rgba(255,255,255,.55), 0 2px 0 rgba(255,255,255,.4) inset, 0 50px 110px -40px rgba(20,4,2,.85), 0 18px 40px -20px rgba(20,4,2,.55); }
arky-app[theme="paper"] .dx-main { background: var(--x-bg); }
arky-app[theme="paper"] .dx-main::before { display: none; }
arky-app[theme="paper"] .dx-side { background: var(--x-side); border-right: 1px solid var(--x-line); }
arky-app[theme="paper"] .dx-card { background: var(--x-card); border: 1px solid var(--x-line); box-shadow: 0 1px 2px rgba(40,20,10,.04); }
arky-app[theme="paper"] .dx-card:hover { box-shadow: 0 1px 2px rgba(40,20,10,.04), 0 10px 24px -14px rgba(40,20,10,.25); }
arky-app[theme="paper"] .dx-kpi.on { border-color: var(--x-ink); box-shadow: 0 0 0 1px var(--x-ink); }
arky-app[theme="paper"] .dx-kpi small .sq { background: var(--x-line) !important; }
arky-app[theme="paper"] .dx-kpi.on small .sq { background: var(--x-acc-2) !important; }
/* the selected KPI is the hero number */
arky-app[theme="paper"] .dx-kpi strong { font-size: 21px; font-weight: 600; letter-spacing: -0.03em; }
arky-app[theme="paper"] .dx-kpi.on strong { font-size: 25px; }
arky-app[theme="paper"] .dx-kpi .sp path { stroke: var(--x-ink-3); }
arky-app[theme="paper"] .dx-kpi.on .sp path { stroke: var(--x-acc-2); }
arky-app[theme="paper"] .dx-delta { background: var(--x-good-soft); color: var(--x-good); }
arky-app[theme="paper"] .dx-delta.dn { background: var(--x-warn-soft); color: var(--x-warn); }
/* semantic statuses: paid = green, pending = amber, shipped = neutral */
arky-app[theme="paper"] .st-paid { background: var(--x-good-soft); color: var(--x-good); box-shadow: none; }
arky-app[theme="paper"] .st-pend { background: var(--x-warn-soft); color: var(--x-warn); box-shadow: none; }
arky-app[theme="paper"] .st-ship { background: var(--x-line-2); color: var(--x-ink-2); box-shadow: none; }
/* accent only on: active nav, primary action, the chart's last 7 days, selected KPI */
arky-app[theme="paper"] .dx-btn.pri { background: var(--x-ink); color: #fff; border-color: var(--x-ink); }
arky-app[theme="paper"] .dx-f .bar i { background: var(--x-ink-2); box-shadow: none; }
arky-app[theme="paper"] .dx-f:first-child .bar i { background: var(--x-ink); }
arky-app[theme="paper"] .dx-meter i { background: var(--x-ink-2); }
arky-app[theme="paper"] .dx-week span.on { background: var(--x-ink); color: #fff; }
arky-app[theme="paper"] .dx-week span.on b { color: #fff; }
arky-app[theme="paper"] .dx-feed .ic { background: var(--x-line-2); color: var(--x-ink-2); box-shadow: none; }
arky-app[theme="paper"] .dx-feed li.key .ic { background: var(--x-acc-soft); color: var(--x-acc-2); }
arky-app[theme="paper"] .dx-glowline { filter: none; }
arky-app[theme="paper"] .dx-tbl .tr.new, arky-app[theme="paper"] .dx-feed li.new { background: var(--x-acc-soft); }
/* readable small type, mono only for IDs and times */
arky-app[theme="paper"] .dx-feed small, arky-app[theme="paper"] .dx-bk small, arky-app[theme="paper"] .dx-user small { font-size: 11.5px; color: var(--x-ink-3); }
arky-app[theme="paper"] .dx-f, arky-app[theme="paper"] .dx-legend, arky-app[theme="paper"] .dx-h > span, arky-app[theme="paper"] .dx-h > a { font-size: 12px; }
arky-app[theme="paper"] .dx-f b { font-family: inherit; font-size: 12.5px; font-variant-numeric: tabular-nums; }
arky-app[theme="paper"] .dx-f em { font-family: inherit; font-size: 11.5px; color: var(--x-ink-3); }
arky-app[theme="paper"] .dx-axis { font-size: 11px; }
arky-app[theme="paper"] .dx-delta { font-size: 11px; }
arky-app[theme="paper"] .dx-feed time { font-size: 11px; }
