/* studio name card at the top of the sidebar: removed (it was only a label) */
html body:not(#ap):not(#ap) .sidebar .workspace, html body .sidebar .workspace{display:none!important}

/* ⋯ quick-actions menu on the Overview (any computer width) */
.qa-menu{position:fixed;z-index:9999;min-width:210px;padding:6px;border-radius:14px;background:#fff;border:1px solid rgba(0,0,0,.08);box-shadow:0 16px 40px rgba(0,0,0,.16);display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Inter","Helvetica Neue",Arial,sans-serif}
.qa-menu button{border:0;background:transparent;text-align:start;padding:9px 12px;border-radius:8px;font:500 14px inherit;font-family:inherit;color:#1d1d1f;cursor:pointer}
.qa-menu button:hover{background:#0071e3;color:#fff}
.qa-menu hr{border:0;border-top:1px solid rgba(0,0,0,.08);margin:5px 6px}
body.dark .qa-menu{background:#2c2c2e;border-color:rgba(255,255,255,.1);box-shadow:0 16px 40px rgba(0,0,0,.6)}
body.dark .qa-menu button{color:#f5f5f7}body.dark .qa-menu button:hover{background:#0a84ff;color:#fff}
body.dark .qa-menu hr{border-top-color:rgba(255,255,255,.1)}
/* WeEdit — desktop look inspired by apple.com and macOS (computers ≥ 1024px wide only; the phone keeps its own design).
   Calm grey canvas, white rounded surfaces, frosted glass bars, SF/Inter type, pill buttons, one blue accent.
   Loaded last; everything is scoped to the media query so turning this file off brings the old look back. */
/* dark mode: native dropdown lists, date pickers and scrollbars follow the dark theme (no white list) */
html:has(body.dark), html body.dark, html body.dark select{color-scheme:dark}
html body:not(.dark){color-scheme:light}
html body.dark select option, html body.dark select optgroup{background-color:#1c1c1e;color:#f5f5f7}
html body.dark select option:checked{background-color:#0a84ff;color:#fff}
@media (min-width: 1024px) {
  html body:not(#ap):not(#ap) {
    --ap-bg: #f5f5f7; --ap-surface: #ffffff; --ap-surface2: #fbfbfd; --ap-ink: #1d1d1f; --ap-ink2: #6e6e73; --ap-ink3: #86868b;
    --ap-line: rgba(0, 0, 0, .08); --ap-line2: rgba(0, 0, 0, .05); --ap-accent: #0071e3; --ap-accent-h: #0077ed; --ap-accent-soft: rgba(0, 113, 227, .1);
    --ap-glass: rgba(245, 245, 247, .72); --ap-side: rgba(240, 240, 243, .82); --ap-hover: rgba(0, 0, 0, .045); --ap-sel: rgba(0, 0, 0, .07);
    --ap-shadow: 0 1px 1px rgba(0, 0, 0, .02), 0 4px 18px rgba(0, 0, 0, .045); --ap-shadow-h: 0 2px 4px rgba(0, 0, 0, .03), 0 14px 36px rgba(0, 0, 0, .08);
    --ap-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
    --ink: var(--ap-ink); --muted: var(--ap-ink2); --line: var(--ap-line); --paper: var(--ap-bg);
    background: var(--ap-bg) !important; color: var(--ap-ink) !important;
    font-family: var(--ap-font) !important; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; letter-spacing: -.003em;
  }
  html body.dark:not(#ap):not(#ap) {
    --ap-bg: #000000; --ap-surface: #1c1c1e; --ap-surface2: #161618; --ap-ink: #f5f5f7; --ap-ink2: #a1a1a6; --ap-ink3: #86868b;
    --ap-line: rgba(255, 255, 255, .1); --ap-line2: rgba(255, 255, 255, .06); --ap-accent: #2997ff; --ap-accent-h: #47a6ff; --ap-accent-soft: rgba(41, 151, 255, .16);
    --ap-glass: rgba(0, 0, 0, .7); --ap-side: rgba(28, 28, 30, .78); --ap-hover: rgba(255, 255, 255, .06); --ap-sel: rgba(255, 255, 255, .1);
    --ap-shadow: 0 0 0 1px rgba(255, 255, 255, .06); --ap-shadow-h: 0 0 0 1px rgba(255, 255, 255, .12), 0 18px 40px rgba(0, 0, 0, .5);
  }
  html body:not(#ap):not(#ap), html body:not(#ap):not(#ap) button, html body:not(#ap):not(#ap) input, html body:not(#ap):not(#ap) select, html body:not(#ap):not(#ap) textarea { font-family: var(--ap-font) !important; }
  html body:not(#ap):not(#ap) :is(h1, h2, h3, .paneltitle, .metric, .brandname, b, strong) { font-family: var(--ap-font) !important; }
  html body:not(#ap):not(#ap) ::selection { background: var(--ap-accent-soft); }

  /* ---------- sidebar: macOS source list ---------- */
  html body:not(#ap):not(#ap) .sidebar {
    width: 248px !important; padding: 22px 12px 16px !important; color: var(--ap-ink) !important;
    background: var(--ap-side) !important; -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px);
    border-right: 1px solid var(--ap-line) !important; box-shadow: none !important;
  }
  html body:not(#ap):not(#ap) .brand { padding: 4px 12px 22px !important; }
  html body:not(#ap):not(#ap) .brandlogo img { height: 20px !important; width: auto !important; filter: brightness(0); opacity: .9; }
  html body.dark:not(#ap):not(#ap) .brandlogo img { filter: none; opacity: 1; }
  html body:not(#ap):not(#ap) .brandlogo small { color: var(--ap-ink3) !important; letter-spacing: .18em !important; font-size: 9.5px !important; font-weight: 600 !important; margin-top: 7px !important; }
  html body:not(#ap):not(#ap) .workspace { margin: 0 4px 22px !important; padding: 10px 11px !important; border: 0 !important; border-radius: 12px !important; background: var(--ap-surface) !important; box-shadow: var(--ap-shadow) !important; }
  html body:not(#ap):not(#ap) .workspace b { color: var(--ap-ink) !important; font-weight: 600 !important; }
  html body:not(#ap):not(#ap) .workspace span { color: var(--ap-ink2) !important; }
  html body:not(#ap):not(#ap) .workspace-icon { background: linear-gradient(160deg, #3a3a3c, #1d1d1f) !important; color: #fff !important; border-radius: 8px !important; }
  html body:not(#ap):not(#ap) .navlabel { color: var(--ap-ink3) !important; font-size: 11px !important; font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important; padding: 0 12px !important; margin: 14px 0 6px !important; }
  html body:not(#ap):not(#ap) .nav { gap: 2px !important; }
  html body:not(#ap):not(#ap) .nav button {
    height: 36px !important; padding: 0 10px !important; border-radius: 8px !important; gap: 10px !important;
    color: var(--ap-ink) !important; background: transparent !important; box-shadow: none !important; font-size: 14px !important; font-weight: 500 !important;
    transition: background .15s ease;
  }
  html body:not(#ap):not(#ap) .nav button .ico { color: var(--ap-accent) !important; opacity: 1 !important; }
  html body:not(#ap):not(#ap) .nav button:hover { background: var(--ap-hover) !important; }
  html body:not(#ap):not(#ap) .nav button.active { background: var(--ap-sel) !important; color: var(--ap-ink) !important; font-weight: 600 !important; }
  html body:not(#ap):not(#ap) .nav .count { background: var(--ap-ink3) !important; color: #fff !important; font-weight: 600 !important; min-width: 20px; text-align: center; }
  html body:not(#ap):not(#ap) .nav button.active .count { background: var(--ap-accent) !important; }
  html body:not(#ap):not(#ap) .profile { border-top: 1px solid var(--ap-line) !important; padding: 14px 6px 0 !important; }
  html body:not(#ap):not(#ap) .profile b { color: var(--ap-ink) !important; }
  html body:not(#ap):not(#ap) .profile small { color: var(--ap-ink2) !important; }
  html body:not(#ap):not(#ap) .avatar { background-color: #c8a96b !important; background-size: cover !important; background-position: center !important; color: #fff !important; }

  /* ---------- main column + frosted top bar ---------- */
  html body:not(#ap):not(#ap) .main { margin-left: 248px !important; width: calc(100% - 248px) !important; padding: 0 40px 56px !important; max-width: none !important; }
  html body:not(#ap):not(#ap) .main > * { max-width: none; }
  html body:not(#ap):not(#ap) .topbar {
    position: sticky; top: 0; z-index: 20; height: 60px !important; margin: 0 -40px 34px !important; padding: 0 40px !important; max-width: none !important;
    background: var(--ap-glass) !important; -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--ap-line) !important;
  }
  html body:not(#ap):not(#ap) .crumb { color: var(--ap-ink2) !important; font-size: 13px !important; }
  html body:not(#ap):not(#ap) .crumb b { color: var(--ap-ink) !important; font-weight: 600 !important; }
  html body:not(#ap):not(#ap) .today { color: var(--ap-ink2) !important; font-size: 13px !important; }
  html body:not(#ap):not(#ap) .topbar :is(.iconbtn, .langbtn, button):not(.avatar) { border-radius: 999px !important; border: 0 !important; background: transparent !important; color: var(--ap-ink) !important; box-shadow: none !important; }
  html body:not(#ap):not(#ap) .topbar :is(.iconbtn, .langbtn, button):not(.avatar):hover { background: var(--ap-hover) !important; }

  /* ---------- page headings: big, tight, confident ---------- */
  html body:not(#ap):not(#ap) .pagehead { margin-bottom: 30px !important; align-items: flex-end !important; }
  html body:not(#ap):not(#ap) .eyebrow { color: var(--ap-accent) !important; letter-spacing: 0 !important; text-transform: none !important; font-size: 14px !important; font-weight: 600 !important; margin-bottom: 6px !important; }
  html body:not(#ap):not(#ap) .pagehead h1, html body:not(#ap):not(#ap) h1 { font-size: 44px !important; font-weight: 700 !important; letter-spacing: -.028em !important; line-height: 1.06 !important; color: var(--ap-ink) !important; }
  html body:not(#ap):not(#ap) .subtitle { color: var(--ap-ink2) !important; font-size: 17px !important; margin-top: 8px !important; letter-spacing: -.01em; }

  /* ---------- buttons: Apple pills ---------- */
  html body:not(#ap):not(#ap) :is(.primary, .secondary, .select, .tinybtn, .filter) { border-radius: 999px !important; font-weight: 500 !important; transition: background .15s, color .15s, box-shadow .15s, transform .1s; }
  html body:not(#ap):not(#ap) .primary {
    background: var(--ap-accent) !important; border: 0 !important; color: #fff !important; box-shadow: none !important;
    padding: 10px 18px !important; font-size: 14px !important; font-weight: 500 !important;
  }
  html body:not(#ap):not(#ap) .primary:hover { background: var(--ap-accent-h) !important; }
  html body:not(#ap):not(#ap) :is(.primary, .secondary):active { transform: scale(.98); }
  html body:not(#ap):not(#ap) :is(.secondary, .select, .filter, .tinybtn) {
    background: var(--ap-surface) !important; color: var(--ap-ink) !important; border: 1px solid var(--ap-line) !important; box-shadow: none !important;
  }
  html body:not(#ap):not(#ap) :is(.secondary, .select, .filter, .tinybtn):hover { background: var(--ap-surface2) !important; border-color: rgba(0, 0, 0, .14) !important; }
  html body.dark:not(#ap):not(#ap) :is(.secondary, .select, .filter, .tinybtn):hover { border-color: rgba(255, 255, 255, .2) !important; }
  html body:not(#ap):not(#ap) .textbtn { color: var(--ap-accent) !important; font-weight: 500 !important; font-family: var(--ap-font) !important; }
  html body:not(#ap):not(#ap) .textbtn:hover { text-decoration: underline; }

  /* ---------- surfaces ---------- */
  html body:not(#ap):not(#ap) :is(.panel, .section > .panel, .modal, .drawer) { background: var(--ap-surface) !important; border: 0 !important; border-radius: 22px !important; box-shadow: var(--ap-shadow) !important; }
  html body:not(#ap):not(#ap) .panelhead { padding: 22px 26px 16px !important; }
  html body:not(#ap):not(#ap) .paneltitle { font-size: 19px !important; font-weight: 600 !important; letter-spacing: -.015em !important; color: var(--ap-ink) !important; }
  html body:not(#ap):not(#ap) .panelsub { font-size: 13px !important; color: var(--ap-ink2) !important; }

  /* key-number tiles: white cards, no colour wash, colour lives in the icon only */
  html body:not(#ap):not(#ap) .cards { gap: 18px !important; }
  html body:not(#ap):not(#ap) .cards > .card {
    background: var(--ap-surface) !important; border: 0 !important; border-radius: 22px !important; box-shadow: var(--ap-shadow) !important;
    padding: 22px 22px 20px !important; transition: box-shadow .25s ease, transform .25s ease;
  }
  html body:not(#ap):not(#ap) .cards > .card::before, html body:not(#ap):not(#ap) .cards > .card::after { display: none !important; }
  html body:not(#ap):not(#ap) .cards > .card:hover { box-shadow: var(--ap-shadow-h) !important; transform: translateY(-2px); }
  html body:not(#ap):not(#ap) .cards > .card > .kicon { width: 32px !important; height: 32px !important; border-radius: 9px !important; box-shadow: none !important; }
  html body:not(#ap):not(#ap) .cards > .card > .cardtop { color: var(--ap-ink2) !important; font-size: 14px !important; font-weight: 500 !important; letter-spacing: -.005em !important; }
  html body:not(#ap):not(#ap) .cards > .card > .metric { color: var(--ap-ink) !important; font-size: 36px !important; font-weight: 600 !important; letter-spacing: -.03em !important; font-variant-numeric: tabular-nums; margin-top: 14px !important; }
  html body:not(#ap):not(#ap) .cards > .card > .metric small { font-size: 15px !important; font-weight: 500 !important; color: var(--ap-ink3) !important; letter-spacing: 0 !important; }
  html body:not(#ap):not(#ap) .cards > .card :is(.trend, .note, .knote) { color: var(--ap-ink2) !important; font-size: 13px !important; }

  html body:not(#ap):not(#ap) .metric small, html body:not(#ap):not(#ap) .metric { font-family: var(--ap-font) !important; }
  html body:not(#ap):not(#ap) .nav button { border-inline-start: 0 !important; font-family: var(--ap-font) !important; }
  html body:not(#ap):not(#ap) .nav button.active * { color: inherit; }

  /* ---------- tables: airy, no grid ---------- */
  html body:not(#ap):not(#ap) table { border-collapse: separate !important; border-spacing: 0 !important; }
  html body:not(#ap):not(#ap) th {
    text-transform: none !important; letter-spacing: 0 !important; font-size: 12px !important; font-weight: 600 !important; color: var(--ap-ink3) !important;
    background: transparent !important; border-top: 0 !important; border-bottom: 1px solid var(--ap-line) !important; padding: 12px 20px !important;
  }
  html body:not(#ap):not(#ap) td { color: var(--ap-ink) !important; font-size: 14px !important; border-bottom: 1px solid var(--ap-line2) !important; padding: 16px 20px !important; }
  html body:not(#ap):not(#ap) tbody tr { transition: background .12s; }
  html body:not(#ap):not(#ap) tbody tr:hover { background: var(--ap-hover) !important; }
  html body:not(#ap):not(#ap) .clientcell b { font-size: 14px !important; font-weight: 600 !important; color: var(--ap-ink) !important; }
  html body:not(#ap):not(#ap) .clientcell small { color: var(--ap-ink2) !important; font-size: 12.5px !important; }
  html body:not(#ap):not(#ap) .clientmini { border-radius: 10px !important; background: var(--ap-bg) !important; color: var(--ap-ink2) !important; font-weight: 600 !important; }
  html body:not(#ap):not(#ap) .status { border-radius: 999px !important; font-weight: 500 !important; }

  /* ---------- fields ---------- */
  html body:not(#ap):not(#ap) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea, .search) {
    border-radius: 10px !important; border: 1px solid var(--ap-line) !important; background: var(--ap-surface) !important; color: var(--ap-ink) !important;
    transition: border-color .15s, box-shadow .15s;
  }
  html body:not(#ap):not(#ap) :is(input, select, textarea, .search):focus { outline: none !important; border-color: var(--ap-accent) !important; box-shadow: 0 0 0 4px var(--ap-accent-soft) !important; }
  html body:not(#ap):not(#ap) .search { border-radius: 999px !important; }
  html body:not(#ap):not(#ap) input[type=checkbox], html body:not(#ap):not(#ap) input[type=radio] { accent-color: var(--ap-accent); }

  /* ---------- dialogs ---------- */
  html body:not(#ap):not(#ap) .modalveil { background: rgba(0, 0, 0, .28) !important; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  html body:not(#ap):not(#ap) .modal { border-radius: 24px !important; box-shadow: 0 30px 80px rgba(0, 0, 0, .22) !important; }
  html body:not(#ap):not(#ap) .modalhead h2 { font-size: 22px !important; font-weight: 700 !important; letter-spacing: -.02em !important; }
  html body:not(#ap):not(#ap) .close { border-radius: 999px !important; background: var(--ap-hover) !important; border: 0 !important; color: var(--ap-ink2) !important; }

  /* ---------- planner + assistant surfaces ---------- */
  html body:not(#ap):not(#ap) :is(.pl-card, .pl-box, .pl-panel, .pl-tile, .pl-sum > *, .ai-wrap) { border-radius: 22px !important; }
  html body:not(#ap):not(#ap) .ai-bubble { border-radius: 20px !important; }
  html body:not(#ap):not(#ap) .ai-msg.user .ai-bubble { background: var(--ap-accent) !important; color: #fff !important; border: 0 !important; }
  html body:not(#ap):not(#ap) .ai-send { background: var(--ap-accent) !important; color: #fff !important; border-radius: 999px !important; }


  /* ---------- Overview header (overview.js) ---------- */
  html body:not(#ap):not(#ap) .ov-greet .gr1 { font-size: 21px !important; font-weight: 500 !important; color: var(--ap-ink2) !important; letter-spacing: -.01em !important; font-family: var(--ap-font) !important; }
  html body:not(#ap):not(#ap) .ov-greet .gr2 { font-size: 48px !important; font-weight: 700 !important; letter-spacing: -.03em !important; line-height: 1.05 !important; color: var(--ap-ink) !important; font-family: var(--ap-font) !important; }
  html body:not(#ap):not(#ap) .qa { border-radius: 999px !important; background: var(--ap-surface) !important; border: 1px solid var(--ap-line) !important; color: var(--ap-ink) !important; box-shadow: none !important; font-family: var(--ap-font) !important; font-weight: 500 !important; }
  html body:not(#ap):not(#ap) .qa:hover { background: var(--ap-surface2) !important; }
  html body:not(#ap):not(#ap) .qa.gold { background: var(--ap-accent) !important; border-color: transparent !important; color: #fff !important; }
  html body:not(#ap):not(#ap) .qa.gold:hover { background: var(--ap-accent-h) !important; }
  html body:not(#ap):not(#ap) .qa.gold * { color: inherit !important; }
  html body:not(#ap):not(#ap) .per-wrap { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; }
  html body:not(#ap):not(#ap) .per-wrap svg { display: none !important; }
  html body:not(#ap):not(#ap) #period { border-radius: 999px !important; padding: 9px 36px 9px 16px !important; height: auto !important; -webkit-appearance: none; appearance: none;
    background: var(--ap-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 13px !important; }
  html body:not(#ap):not(#ap) .eyebrow { text-transform: lowercase !important; }
  html body:not(#ap):not(#ap) .eyebrow::first-letter { text-transform: uppercase !important; }

  /* search fields that live inside a styled box: the box is the field */
  html body:not(#ap):not(#ap) :is(.cl-search, label.search, .searchbox) { border-radius: 999px !important; border: 1px solid var(--ap-line) !important; background: var(--ap-surface) !important; box-shadow: none !important; }
  html body:not(#ap):not(#ap) :is(.cl-search, label.search, .searchbox):focus-within { border-color: var(--ap-accent) !important; box-shadow: 0 0 0 4px var(--ap-accent-soft) !important; }
  html body:not(#ap):not(#ap) :is(.cl-search, label.search, .searchbox) input:not([type=checkbox]):not([type=radio]):not([type=range]):not(#ap) { border: 0 !important; box-shadow: none !important; background: transparent !important; }
  html body:not(#ap):not(#ap) .cl-filter { border-radius: 999px !important; border: 1px solid var(--ap-line) !important; background: var(--ap-surface) !important; }
  html body:not(#ap):not(#ap) .brandlogo small { font-family: var(--ap-font) !important; }

  /* ---------- Assistant input bar ---------- */
  html body:not(#ap):not(#ap) .ai-bar { border-radius: 999px !important; border: 1px solid var(--ap-line) !important; background: var(--ap-surface) !important; box-shadow: var(--ap-shadow) !important; padding-left: 12px !important; }
  html body:not(#ap):not(#ap) .ai-bar :is(input:not([type=checkbox]):not([type=radio]):not([type=range]), textarea):not(#ap) { border: 0 !important; box-shadow: none !important; background: transparent !important; }
  html body:not(#ap):not(#ap) .ai-chip, html body:not(#ap):not(#ap) .ai-sugg button { border-radius: 999px !important; }

  /* ---------- Overview fits one screen: header + quick actions on one line, compact number tiles, chart visible ---------- */
  html body:not(#ap):not(#ap) #Overview.show { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: end; }
  html body:not(#ap):not(#ap) #Overview.show > * { grid-column: 1 / -1; min-width: 0; }
  html body:not(#ap):not(#ap) #Overview.show > .pagehead { grid-column: 1; grid-row: 1; margin-bottom: 18px !important; }
  html body:not(#ap):not(#ap) #Overview.show > .qa-row { grid-column: 2; grid-row: 1; align-self: end; margin: 0 0 18px !important; display: flex !important; gap: 8px !important; flex-wrap: nowrap !important; }
  html body:not(#ap):not(#ap) #Overview .qa { height: 38px !important; padding: 0 15px !important; font-size: 13.5px !important; }
  html body:not(#ap):not(#ap) #Overview .qa.icon { width: 38px !important; padding: 0 !important; }
  html body:not(#ap):not(#ap) #Overview .head-actions { margin-left: auto; }
  html body:not(#ap):not(#ap) #Overview #period { padding: 8px 34px 8px 15px !important; font-size: 13.5px !important; }
  html body:not(#ap):not(#ap) .ov-greet .gr1 { font-size: 16px !important; }
  html body:not(#ap):not(#ap) .ov-greet .gr2 { font-size: 34px !important; letter-spacing: -.025em !important; }
  html body:not(#ap):not(#ap) .ov-sub { font-size: 14px !important; margin-top: 2px !important; color: var(--ap-ink2) !important; }
  html body:not(#ap):not(#ap) .topbar { margin-bottom: 22px !important; }

  html body:not(#ap):not(#ap) .cards { gap: 12px !important; margin-bottom: 12px !important; }
  html body:not(#ap):not(#ap) .cards > .card { padding: 15px 17px 14px !important; border-radius: 18px !important; }
  html body:not(#ap):not(#ap) .cards > .card > .kicon { width: 28px !important; height: 28px !important; border-radius: 8px !important; }
  html body:not(#ap):not(#ap) .cards > .card > .kicon svg { width: 15px !important; height: 15px !important; }
  html body:not(#ap):not(#ap) .cards > .card > .cardtop { font-size: 13.5px !important; font-weight: 500 !important; color: var(--ap-ink2) !important; }
  html body:not(#ap):not(#ap) .cards > .card > .metric { font-size: 30px !important; font-weight: 650 !important; margin-top: 8px !important; line-height: 1.1 !important; }
  html body:not(#ap):not(#ap) .cards > .card > .metric small { font-size: 13px !important; }
  html body:not(#ap):not(#ap) .cards > .card :is(.trend, .note, .knote) { font-size: 12.5px !important; margin-top: 3px !important; }
  html body:not(#ap):not(#ap) #Overview .panel, html body:not(#ap):not(#ap) #Overview .section > .panel { border-radius: 18px !important; }
  html body:not(#ap):not(#ap) #Overview .panelhead { padding: 16px 22px 8px !important; }
  html body:not(#ap):not(#ap) #Overview .paneltitle { font-size: 17px !important; }

  /* period selector: same space left of the text as right of the arrow, everything centred */
  html body:not(#ap):not(#ap) #Overview #period, html body:not(#ap):not(#ap) #period { box-sizing: border-box !important; height: 36px !important; min-width: 0 !important; width: auto !important; line-height: 20px !important;
    field-sizing: content; padding: 0 38px 0 16px !important; text-align: left; text-align-last: left; background-position: right 16px center !important; background-size: 12px 12px !important; }

  /* header row: greeting | period | quick actions — one line, same height, same baseline */
  html body:not(#ap):not(#ap) #Overview.show { grid-template-columns: minmax(0, 1fr) auto auto !important; column-gap: 8px !important; }
  html body:not(#ap):not(#ap) #Overview.show > .pagehead { display: contents !important; }
  html body:not(#ap):not(#ap) #Overview.show > .pagehead > div:first-child { grid-column: 1; grid-row: 1; align-self: end; margin-bottom: 18px; min-width: 0; }
  html body:not(#ap):not(#ap) #Overview.show > .pagehead > .head-actions { grid-column: 2; grid-row: 1; align-self: end; margin: 0 0 18px !important; display: flex !important; align-items: center !important; }
  html body:not(#ap):not(#ap) #Overview.show > .qa-row { grid-column: 3 !important; grid-row: 1 !important; align-self: end !important; align-items: center !important; }
  html body:not(#ap):not(#ap) #Overview .per-wrap { display: flex !important; align-items: center !important; height: 38px !important; margin: 0 !important; }
  html body:not(#ap):not(#ap) #Overview #period { height: 38px !important; margin: 0 !important; }
  html body:not(#ap):not(#ap) #Overview .qa { height: 38px !important; box-sizing: border-box !important; }

  /* Projects by status: donut + legend fill their panel */
  html body:not(#ap):not(#ap) #Overview .panel:has(.donutbox) { display: flex !important; flex-direction: column !important; }
  html body:not(#ap):not(#ap) #Overview .donutbox { flex: 1 1 auto; gap: clamp(22px, 2.4vw, 40px) !important; padding: 10px 20px 22px !important; }
  html body:not(#ap):not(#ap) #Overview .donut { width: clamp(150px, 11vw, 200px) !important; height: clamp(150px, 11vw, 200px) !important; flex: 0 0 auto; }
  html body:not(#ap):not(#ap) #Overview .donut svg { width: 100% !important; height: 100% !important; }
  html body:not(#ap):not(#ap) #Overview .donutcenter b { font-size: clamp(30px, 2.6vw, 40px) !important; font-weight: 700 !important; letter-spacing: -.03em !important; color: var(--ap-ink) !important; line-height: 1 !important; }
  html body:not(#ap):not(#ap) #Overview .donutcenter small { font-size: 14px !important; color: var(--ap-ink2) !important; margin-top: 4px; }
  html body:not(#ap):not(#ap) #Overview .legendlist { display: flex !important; flex-direction: column !important; gap: 16px !important; min-width: 0; flex: 0 1 170px; }
  html body:not(#ap):not(#ap) #Overview .legendrow { font-size: 15px !important; color: var(--ap-ink2) !important; gap: 24px !important; align-items: center !important; }
  html body:not(#ap):not(#ap) #Overview .legendrow b, html body:not(#ap):not(#ap) #Overview .legendrow strong, html body:not(#ap):not(#ap) #Overview .legendrow > :last-child { font-size: 16px !important; font-weight: 650 !important; color: var(--ap-ink) !important; }
  html body:not(#ap):not(#ap) #Overview .legendrow i, html body:not(#ap):not(#ap) #Overview .legendrow .dot { width: 10px !important; height: 10px !important; border-radius: 3px !important; }

  /* Done buttons stay green (Apple system green) */
  html body:not(#ap):not(#ap) :is(.tinybtn, .primary).done-btn { background: #28a745 !important; border-color: transparent !important; color: #fff !important; }
  html body:not(#ap):not(#ap) :is(.tinybtn, .primary).done-btn:hover { background: #218838 !important; }
  html body.dark:not(#ap):not(#ap) :is(.tinybtn, .primary).done-btn { background: #30d158 !important; color: #04210f !important; }
  html body.dark:not(#ap):not(#ap) :is(.tinybtn, .primary).done-btn:hover { background: #4ade74 !important; }
  html body:not(#ap):not(#ap) .done-btn svg { stroke: currentColor !important; }

  /* Arabic (right-to-left): sidebar on the right, content beside it */
  html[dir=rtl] body:not(#ap):not(#ap) .main { margin-left: 0 !important; margin-right: 248px !important; }
  html[dir=rtl] body:not(#ap):not(#ap) .sidebar { border-right: 0 !important; border-left: 1px solid var(--ap-line) !important; }
  html[dir=rtl] body:not(#ap):not(#ap) .qa-menu button { text-align: right; }

  /* gentle motion, never for people who turned it off */
  @media (prefers-reduced-motion: reduce) { html body:not(#ap):not(#ap) .cards > .card { transition: none; } html body:not(#ap):not(#ap) .cards > .card:hover { transform: none; } }
}
