/* Toli & Me one-app theme (2026-11-11): the Money app's look on every page. Loaded after ds.css. */
html:not([data-theme="dark"]), html:not([data-cpt]):not([data-theme="dark"]), html[data-cpt="forest"]:not([data-theme="dark"]) {
  --ds-bg: #ffffff; --ds-surface: #ffffff; --ds-soft: #f3f4f2; --ds-ink: #1a1a1a; --ds-ink2: #474747; --ds-muted: #595959;
  --ds-line: #e8e5dc; --ds-line2: #dcd8cd; --ds-violet: #F2643D; --ds-violet-ink: #C2410C; --ds-lav: #FFF1EB; --ds-up: #1f7a4d;
  --ds-sans: BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; --ds-display: BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ds-mono: BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
body { background: var(--ds-bg); }
.card, .gl-card, .mcp-card, .wb, .ds-card { border-radius: 22px !important; border-color: transparent !important;
  box-shadow: 0 1px 2px rgba(19,32,26,.05), 0 8px 24px -12px rgba(19,32,26,.18) !important; }
.ds-btn { border-radius: 12px; font-weight: 700; }
.ds-btn.pri { background: #F2643D; border-color: #F2643D; }
.cp-strip { display: none; }
/* the five-tab bar with the + in the middle */
.tabbar.tb5 { grid-template-columns: repeat(5, 1fr) !important; }
.tabbar.tb5 .tb-fab { margin-top: -22px; } .tabbar.tb5 .tb-fab span { width: 54px; height: 54px; border-radius: 18px; background: #F2643D; color: #fff; display: grid; place-items: center; font-size: 30px; line-height: 1; box-shadow: 0 12px 24px -10px rgba(242,100,61,.75); }
.tabbar.tb5 a.on { color: #F2643D; }

/* thin lines, light type on every page */
.card, .gl-card, .mcp-card, .wb, .ds-card { box-shadow: 0 0 0 1px var(--ds-line) !important; }
h1, .gl h1, .ds-h1 { font-weight: 300 !important; }
h2, h3, b, strong, th { font-weight: 500; }
.ds-btn { font-weight: 500; }
svg [stroke-width="2"], svg[stroke-width="2"] { stroke-width: 1.4; }
.tabbar svg { stroke-width: 1.4; }

/* one type family: labels and numbers in Hanken with even-width figures, like the app */
:root, html { --ds-mono: BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
body { font-variant-numeric: tabular-nums; }
/* desktop: the app's side menu on every page; the top bar keeps search and the account menu */
.sidenav { display: none; }
@media (min-width: 1024px) {
  .sidenav { display: flex; flex-direction: column; gap: 2px; position: fixed; z-index: 30; top: 20px; bottom: 20px; left: max(20px, calc((100vw - 1440px) / 2 + 20px)); width: 212px;
    background: var(--ds-surface); border-radius: 24px; box-shadow: 0 0 0 1px var(--ds-line); padding: 22px 12px 16px; overflow-y: auto; }
  .sidenav .sn-logo { padding: 0 8px 18px; font-size: 22px; }
  .sidenav .sn-add { display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 14px; background: #F2643D; color: #fff; font: 500 16px var(--ds-sans); text-decoration: none; margin: 0 4px 12px; }
  .sidenav > a:not(.sn-logo):not(.sn-add) { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; color: var(--ds-muted); font: 500 16px var(--ds-sans); text-decoration: none; }
  .sidenav > a:hover:not(.sn-logo):not(.sn-add) { background: var(--ds-soft); color: var(--ds-ink); }
  .sidenav > a.on { background: #FFF1EB; color: #C2410C; }
  .sidenav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
  .sidenav .sn-sep { height: 1px; background: var(--ds-line); margin: 10px 8px; }
  .sidenav .sn-h { display: block; font: 600 12px var(--ds-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ds-muted); padding: 14px 14px 4px; }
  body { padding-left: max(252px, calc((100vw - 1440px) / 2 + 252px)); }
  .cp-nav .cp-links, .cp-nav .cp-logo, .cp-burger { display: none !important; }
  .cp-nav { background: transparent !important; border-bottom: 0 !important; }
}
/* the older stylesheets' own mono font, the same Hanken everywhere */
:root, html:not([data-theme="dark"]), html[data-theme="dark"] { --mono: "Hanken Grotesk", -apple-system, "Segoe UI", sans-serif; --cp-mono: "Hanken Grotesk", -apple-system, sans-serif; }
.sg-score span, .sg-card h3 span, .sg svg text, .cp-who span { font-family: "Hanken Grotesk", -apple-system, sans-serif !important; }
.sidenav .sn-logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ds-ink); font-family: "Newsreader", Georgia, serif; letter-spacing: -.01em; text-decoration: none; }
.sidenav .plan { color: #F2643D; font-family: "Newsreader", Georgia, serif; font-style: italic; }
.sidenav > * { flex: none; }

/* white everywhere (2026-11-11): page, bands and headers */
html:not([data-theme="dark"]) body, html:not([data-theme="dark"]) main { background: #ffffff !important; }
html:not([data-theme="dark"]) .cp-askbar, html:not([data-theme="dark"]) .cp-nav { background: #ffffff !important; }

/* pastel purple accent on the older pages (2026-11-11); the logo keeps its own green */
a { color: #5a4bd6; }
.cp-logo .plan, .sidenav .plan { color: #F2643D; }

@media (min-width: 1024px) and (max-height: 860px) {  /* shorter laptop screens: every menu item still fits */
  .sidenav { top: 12px; bottom: 12px; padding: 16px 10px 12px; gap: 0; }
  .sidenav .sn-logo { padding-bottom: 12px; } .sidenav .sn-add { height: 40px; margin-bottom: 8px; }
  .sidenav > a:not(.sn-logo):not(.sn-add) { padding: 7px 12px; font-size: 15px; } .sidenav svg { width: 20px; height: 20px; } .sidenav .sn-sep { margin: 6px 8px; } .sidenav .sn-h { padding: 8px 12px 2px; }
  .sidenav > a:not(.sn-logo):not(.sn-add) { padding: 6px 12px; }
}

/* readable weights on every page (2026-11-11) */
h1, .gl h1, .ds-h1 { font-weight: 400 !important; }
h2, h3, b, strong, th, .ds-btn { font-weight: 600; }
.sidenav > a:not(.sn-logo):not(.sn-add) { color: var(--ds-ink2); font-weight: 600; }

/* Booking.com-style type on every page (2026-11-11): system font, bold headings, regular body, dark text */
:root, html { --mono: BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; --sans: BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; --display: BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
body { font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important; color: #1a1a1a; -webkit-font-smoothing: antialiased; }
h1, .gl h1, .ds-h1 { font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important; font-weight: 700 !important; letter-spacing: -.01em; }
h2, h3 { font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-weight: 700; }
.sg-score span, .sg-card h3 span, .sg svg text, .cp-who span { font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important; }
.cp-logo .wm, .sn-logo .wm { font-family: "Newsreader", Georgia, serif !important; }
.sidenav > a:not(.sn-logo):not(.sn-add), .sidenav .sn-add, .sidenav .sn-h { font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }

/* no brand green left anywhere (2026-11-11): buttons, links, tabs and highlights are purple; gains stay green */
:root, html:not([data-theme="dark"]) { --blue: #F2643D; --blue-2: #8b7cf0; --blue-deep: #C2410C; --violet: #F2643D; --violet-2: #8b7cf0; --lavender: #FFF1EB; --sky: #FFF1EB; }
.btn-primary, .ds-btn.pri, button.pri, .cp-cta { background: #F2643D !important; border-color: #F2643D !important; color: #fff !important; }
.btn-primary:hover, .ds-btn.pri:hover { background: #C2410C !important; }

/* a single stock, opened from search or a link (?focus=1): no 50-stock list beside it */
html.cp-focus .layout { grid-template-columns: minmax(0, 1fr) !important; }
html.cp-focus aside, html.cp-focus #pick { display: none !important; }
html.cp-focus main { max-width: 1180px; }
.cp-back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; font: 600 15px BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, sans-serif; color: #F2643D; text-decoration: none; }

/* one header, one rhythm on every page (2026-11-11 audit) */
.cp-burger { display: none !important; }                        /* the tab bar (phones) and side menu (desktop) are the menu */
.cp-acct summary { padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
.cp-acct .cp-name, .cp-acct .cp-caret { display: none !important; }
.cp-acct .cp-av { width: 38px; height: 38px; font-size: 16px; background: #F2643D !important; color: #fff !important; }
.ds-eyebrow, .eyebrow { font: 700 13.5px BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, sans-serif !important; letter-spacing: .05em !important; color: #595959 !important; text-transform: uppercase; }
.warn, .mcp-warn { border-radius: 14px !important; font-size: 15px !important; line-height: 1.45; }
@media (max-width: 640px) {
  main .wrap { padding-left: max(20px, env(safe-area-inset-left)) !important; padding-right: max(20px, env(safe-area-inset-right)) !important; }
  main { padding-top: 6px; }
  .card, .gl-card { padding: 20px !important; margin-bottom: 16px !important; }
  h1 { font-size: 24px !important; line-height: 1.2; }
  .cp-nav .cp-in { padding-left: 20px !important; padding-right: 20px !important; }
}

/* the pastel look on the older pages too (2026-11-11): a soft lavender wash, floating cards, sage on the side */
body { background: linear-gradient(180deg, #f3efff 0, #faf8ff 240px, #fdfcff 560px, #ffffff 960px) !important; }
.card, .gl-card { box-shadow: 0 1px 2px rgba(60,40,140,.05), 0 6px 20px -12px rgba(60,40,140,.18) !important; border-color: transparent !important; }
.cp-nav, .cp-nav .cp-in { background: transparent !important; }
@media (min-width: 1024px) {
  body { background: radial-gradient(1200px 520px at 70% -120px, #efe9ff 0, rgba(239,233,255,0) 70%), radial-gradient(900px 480px at 5% 30%, #f1f7f2 0, rgba(241,247,242,0) 70%), #fdfcff !important; }
  .sidenav { background: rgba(255,255,255,.86) !important; backdrop-filter: blur(14px); box-shadow: 0 1px 2px rgba(60,40,140,.05), 0 10px 30px -18px rgba(60,40,140,.25) !important; }
}
.sidenav .sn-h:nth-of-type(1) { color: #c46a3e !important; } .sidenav .sn-h:nth-of-type(2) { color: #4f8a63 !important; } .sidenav .sn-h:nth-of-type(3) { color: #F2643D !important; }

/* the tab bar on every other page looks exactly like the Money app's (2026-11-13): same size, weight, colours, the soft pill behind the active tab, Talk's badge */
.tabbar.tb5 { left: 50%; right: auto; transform: translateX(-50%); width: min(520px, 100%); box-sizing: border-box; background: color-mix(in srgb, #fff 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid #e3e0d7; padding: 6px 6px calc(8px + env(safe-area-inset-bottom)); }
@media (min-width: 560px) { .tabbar.tb5 { bottom: 14px; border-radius: 22px; border: 1px solid #e3e0d7; box-shadow: 0 1px 2px rgba(20,16,60,.06), 0 8px 24px -12px rgba(20,16,60,.18); width: 488px; } }
.tabbar.tb5 a { position: relative; gap: 3px; font: 600 13.5px BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #44444c; padding: 9px 0 7px; border-radius: 0; }
.tabbar.tb5 a svg { width: 26px; height: 26px; stroke-width: 1.6 !important; }
.tabbar.tb5 a.on { color: #F2643D; } .tabbar.tb5 a.on svg { stroke: #F2643D; stroke-width: 2 !important; }
.tabbar.tb5 a.on::before { content: ""; position: absolute; top: 2px; left: 50%; width: 56px; height: 32px; margin-left: -28px; border-radius: 16px; background: #FFF1EB; z-index: -1; }
.tabbar.tb5 .tk-badge { position: absolute; top: 0; left: 50%; margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ef6c1a; color: #fff; font: 700 11px/18px BlinkMacSystemFont, -apple-system, sans-serif; font-style: normal; text-align: center; box-sizing: border-box; }
