/* Minimal look (0.7): white page, soft grey surfaces, black for the main action, thin lines instead of shadows.
   Only the signed-in app (html without .public) uses it; the public pages keep their own look. High contrast (a11y.css) still wins. */
html:not(.public) {
  --bg: #ffffff; --card: #ffffff; --soft: #f5f5f7; --soft-2: #ededf0; --cream: #fbf7ea;
  --ink: #111114; --slate: #74757d; --line: #ececef;
  --ink-btn: #111114; --on-ink: #ffffff;
  --shadow: none; --radius: 18px;
  --font-display: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
html:not(.public) body { font-size: 15px; }
html:not(.public) h1, html:not(.public) h2, html:not(.public) h3 { font-weight: 600; letter-spacing: -.015em; }
html:not(.public) .head h1, html:not(.public) .greet h1 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
html:not(.public) .greet h1 span { color: var(--ink); }

/* top navigation and the phone tab bar */
html:not(.public) .topbar { background: #fff; box-shadow: none; border: 1px solid var(--line); }
html:not(.public) .navpill { font-size: .9rem; padding: 8px 16px; }
html:not(.public) .navpill:hover { background: var(--soft); }
html:not(.public) .navpill[aria-current='page'] { background: var(--ink-btn); color: var(--on-ink); box-shadow: none; }
html:not(.public) .tabbar { background: #fff; backdrop-filter: none; box-shadow: none; border: 1px solid var(--line); border-radius: 22px; }
html:not(.public) .tab { font-size: .68rem; }
html:not(.public) .tab svg { width: 20px; height: 20px; }
html:not(.public) .tab[aria-current='page'] { background: none; color: var(--ink); font-weight: 600; }

/* buttons: black for the one main action, quiet grey for the rest */
html:not(.public) .btn, html:not(.public) .btn-pill, html:not(.public) .icon-btn--accent, html:not(.public) .fab { background: var(--ink-btn); color: var(--on-ink); box-shadow: none; }
html:not(.public) .btn-pill { min-height: 40px; padding: 0 16px; border-radius: 12px; font-size: .9rem; }
html:not(.public) .btn-pill:hover { transform: none; opacity: .9; }
html:not(.public) .btn-pill--ghost, html:not(.public) .mini { background: var(--soft); color: var(--ink); border: 0; }
html:not(.public) .mini { border-radius: 10px; padding: 6px 12px; font-size: .8rem; }
html:not(.public) .mini:hover { background: var(--soft-2); }
html:not(.public) .btn { min-height: 42px; border-radius: 12px; }
html:not(.public) .icon-btn--accent { border-radius: 12px; }
html:not(.public) .fab { width: 52px; height: 52px; }

/* surfaces: no boxes around sections, grey only where it groups something */
html:not(.public) .cm { background: none; border: 0; padding: 4px 0; }
html:not(.public) .cm-today { background: var(--cream); border: 0; padding: 18px 20px; border-radius: 18px; }
html:not(.public) .cm-today .eyebrow { color: var(--slate); }
html:not(.public) .cm-due { background: #fff; border: 0; }
html:not(.public) .card { box-shadow: none; border: 1px solid var(--line); }
html:not(.public) .tile { background: var(--soft) !important; color: var(--ink) !important; min-height: 92px; border-radius: 16px; }
html:not(.public) .tile .tile-ic { background: #fff; color: var(--slate); border-radius: 10px; }
html:not(.public) .tile b { font-weight: 600; font-size: 1.6rem; }
html:not(.public) .alist li, html:not(.public) .alist li.warn { background: var(--soft); border-radius: 14px; }

/* lists: rows on white, separated by a hairline */
html:not(.public) .list { display: grid; gap: 0; }
html:not(.public) .task { box-shadow: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 12px 4px; background: none; }
html:not(.public) .task .check { border-width: 1.5px; border-color: #d4d4da; width: 22px; height: 22px; }
html:not(.public) .task .t { font-weight: 500; font-size: .95rem; }
html:not(.public) .chip { background: var(--soft); color: var(--slate); font-weight: 500; border-radius: 6px; }
html:not(.public) .chip.p-high { background: #fdeeee; color: #b42318; }
html:not(.public) .bcard { box-shadow: none; border: 1px solid var(--line); border-radius: 14px; }
html:not(.public) .col { background: var(--soft); border: 0; border-radius: 16px; }

/* inputs and filters: grey fields without borders */
html:not(.public) .search { background: var(--soft); border: 0; border-radius: 12px; min-height: 40px; }
html:not(.public) .search input { min-height: 38px; }
html:not(.public) .fx-btn { background: var(--soft); border: 0; box-shadow: none; min-height: 40px; border-radius: 12px; }
html:not(.public) .fx-btn:focus-visible, html:not(.public) .fx.open .fx-btn { box-shadow: 0 0 0 2px var(--ink); }
html:not(.public) .filters { background: none; border: 0; padding: 0; }
html:not(.public) .seg { background: var(--soft); border: 0; border-radius: 12px; }
html:not(.public) .seg button[aria-pressed='true'] { background: #fff; color: var(--ink); }
html:not(.public) .pill { background: var(--soft); border: 0; color: var(--slate); padding: 7px 14px; font-size: .86rem; }
html:not(.public) .pill[aria-pressed='true'] { background: var(--ink-btn); color: var(--on-ink); }
html:not(.public) .filter-btn .fcount { background: var(--ink-btn); color: var(--on-ink); }
html:not(.public) .field input, html:not(.public) .field textarea, html:not(.public) .field select { background: var(--soft); border-color: transparent; box-shadow: none; }

/* progress: thin and dark */
html:not(.public) progress { height: 5px; background: var(--soft-2); }
html:not(.public) progress::-webkit-progress-value { background: var(--ink); }
html:not(.public) progress::-moz-progress-bar { background: var(--ink); }

/* the task panel */
html:not(.public) .sheet { box-shadow: -1px 0 0 var(--line); }
html:not(.public) .title-input { font-weight: 600; font-size: 1.15rem; }
html:not(.public) .notice-line { border-radius: 12px; }
html:not(.public) :focus-visible { outline-color: var(--ink); }
html:not(.public) .more-btn { background: var(--soft); color: var(--ink); border: 0; box-shadow: none; border-radius: 10px; }
html:not(.public) .more-btn:hover { background: var(--soft-2); }
html:not(.public) .app-foot #app-version { background: var(--soft); color: var(--slate); }
html:not(.public) .avatar { box-shadow: none; }
html:not(.public) .btn--danger { background: #fdeeee; color: #b42318; }
html:not(.public) .fx-chev, html:not(.public) .fx-ico { background: none; color: var(--slate); }
html:not(.public) .fx.open .fx-chev { background: none; color: var(--ink); }
html:not(.public) .tile .tile-ic, html:not(.public) .acc-ic, html:not(.public) .rc-ic, html:not(.public) .m-ic, html:not(.public) .fmt-ic { background: #fff; color: var(--slate); box-shadow: none; }
html:not(.public) .rc-ic, html:not(.public) .m-ic { background: var(--soft); width: 44px; height: 44px; border-radius: 12px; }

/* phone tab bar (0.7): full width, docked to the bottom, the add button in the middle where the thumb rests */
@media (max-width: 899px) {
  html:not(.public) .tabbar { left: 0; right: 0; bottom: 0; max-width: none; margin: 0; border-radius: 0; border: 0; border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: center; }
  html:not(.public) .tab { position: relative; font-size: .75rem; min-height: 50px; gap: 3px; padding: 6px 2px 8px; border-radius: 12px; }
  html:not(.public) .tab svg { width: 22px; height: 22px; }
  html:not(.public) .tab[aria-current='page'] { color: var(--ink); font-weight: 600; }
  html:not(.public) .tab[aria-current='page']::after { content: ''; position: absolute; bottom: 1px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--ink); }
  html:not(.public) .tab-add { display: grid; place-items: center; }
  html:not(.public) .tab-add-c { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-btn); color: var(--on-ink); }
  html:not(.public) .tab-add-c svg { width: 22px; height: 22px; }
  html:not(.public) .toast { bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); }
}
/* the Stats link on Home is for phones; computers have Analytics in the top menu */
@media (min-width: 900px) { html:not(.public) .stats-link { display: none; } }
.me-link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--soft, #f5f5f7); color: var(--ink); text-decoration: none !important; }
.me-link b { display: block; font-weight: 600; font-size: .95rem; } .me-link small { color: var(--slate); font-size: .8rem; }
.me-link-ic { width: 38px; height: 38px; border-radius: 11px; background: #fff; display: grid; place-items: center; color: var(--slate); } .me-link-ic svg { width: 20px; height: 20px; }
.me-link-go { color: var(--slate); } .me-link-go svg { width: 18px; height: 18px; }
/* on phones the + in the tab bar adds a task, so the page header does not repeat it */
@media (max-width: 899px) { html:not(.public) .head .icon-btn--accent[data-act="fab"] { display: none; } }
html:not(.public) .btn--ghost, html:not(.public) .btn.btn--ghost { background: var(--soft); color: var(--ink); }
html:not(.public) input[type="checkbox"], html:not(.public) input[type="radio"] { accent-color: var(--ink); }

/* Airbnb-style touches (0.7) */
html:not(.public) .home-search { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 0 18px; min-height: 52px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 18px -10px rgba(0, 0, 0, .18); }
html:not(.public) .home-search:focus-within { border-color: var(--ink); }
html:not(.public) .home-search svg { width: 18px; height: 18px; color: var(--ink); flex: none; }
html:not(.public) .home-search input { flex: 1; border: 0; background: none; outline: none; min-height: 50px; font-size: .95rem; }
html:not(.public) .pills { align-items: center; }
html:not(.public) .pill-sep { flex: none; width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
html:not(.public) .pill--quick { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
html:not(.public) .pill--quick svg { width: 15px; height: 15px; }
html:not(.public) .pill--quick[aria-pressed='true'] { border-color: var(--ink); background: var(--ink-btn); color: var(--on-ink); }
html:not(.public) .sheet-bar { position: sticky; bottom: calc(-24px - env(safe-area-inset-bottom)); margin: 8px -18px calc(-24px - env(safe-area-inset-bottom)); padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); z-index: 2; }
html:not(.public) .sheet-done { width: 100%; }
html:not(.public) .skeleton { background: linear-gradient(90deg, var(--soft), #fafafb, var(--soft)); background-size: 200% 100%; border-radius: 16px; height: 96px; }
html:not(.public) .qrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
html:not(.public) .qchips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
html:not(.public) .qchips::-webkit-scrollbar { display: none; }
html:not(.public) .seg--icons { flex: none; }
html:not(.public) .seg--icons button { display: grid; place-items: center; padding: 7px 10px; }
html:not(.public) .seg--icons svg { width: 18px; height: 18px; }
html:not(.public) .main > * { min-width: 0; }
@media (max-width: 480px) { html:not(.public) .pill--quick { padding: 6px 11px; font-size: .82rem; } }
html:not(.public) .title-input:focus { border-bottom-color: var(--ink); }

/* ---- colour (0.7): warm canvas, white cards, one brand accent, calmer status colours, pastel tiles ---- */
html:not(.public) {
  --bg: #f7f6f3; --soft: #f1efea; --soft-2: #e8e5de; --line: #e9e6df; --cream: #fbf3dc; --mint: #e3f3ea; --ink-mint: #1f6b45;
  --brand: var(--org-accent, #4f46e5);
}
html:not(.public) body { background: var(--bg); }
/* lists and sections sit on white cards so the page has depth without shadows */
html:not(.public) .cm:not(.cm-today) { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; }
html:not(.public) .list { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 2px 16px; }
html:not(.public) .list .task:last-child { border-bottom: 0; }
html:not(.public) .search, html:not(.public) .fx-btn, html:not(.public) .seg, html:not(.public) .pill:not(.pill--quick):not([aria-pressed='true']), html:not(.public) .mini, html:not(.public) .btn-pill--ghost, html:not(.public) .more-btn { background: #fff; border: 1px solid var(--line); }
html:not(.public) .field input, html:not(.public) .field textarea, html:not(.public) .field select, html:not(.public) .sheet .fx-btn { background: var(--soft); border-color: transparent; }
html:not(.public) .tile { background: #fff !important; border: 1px solid var(--line); }
html:not(.public) .card { background: #fff; }
html:not(.public) .topbar, html:not(.public) .tabbar { background: #fff; }
/* the brand colour marks what is selected or in progress, nothing else */
html:not(.public) progress::-webkit-progress-value { background: var(--brand); }
html:not(.public) progress::-moz-progress-bar { background: var(--brand); }
html:not(.public) .tab[aria-current='page']::after { background: var(--brand); }
html:not(.public) :focus-visible { outline-color: var(--brand); }
html:not(.public) .fx-btn:focus-visible, html:not(.public) .fx.open .fx-btn { box-shadow: 0 0 0 2px var(--brand); }
html:not(.public) .home-search:focus-within, html:not(.public) .title-input:focus { border-color: var(--brand); }
html:not(.public) a.mini, html:not(.public) .cm > header .mini { color: var(--ink); }
/* pastel tiles in each project's own colour */
html:not(.public) .ptile { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--brand)) 14%, #fff); color: color-mix(in srgb, var(--c, var(--brand)) 80%, #000); }
html:not(.public) .ptile svg { width: 16px; height: 16px; }
/* soft avatars: a pastel circle with dark initials */
html:not(.public) .avatar:not(.avatar--img) { background: color-mix(in srgb, var(--c, var(--brand)) 18%, #fff); color: color-mix(in srgb, var(--c, var(--brand)) 75%, #000); }
/* warm states */
html:not(.public) .cm-today { background: var(--cream); }
html:not(.public) .cm-today--clear { background: var(--mint); }
html:not(.public) .cm-today--clear .eyebrow, html:not(.public) .cm-today--clear .cm-focus b { color: var(--ink-mint); }
html:not(.public) .chip.p-high { background: #fbe9e4; color: #a8361b; }
@media (max-width: 560px) { html:not(.public) .cm-proj a { grid-template-columns: minmax(0, 1fr) 3.4ch; row-gap: 6px; } html:not(.public) .cm-proj .cm-pn { grid-column: 1 / -1; } html:not(.public) .cm-proj progress { width: 100%; margin-left: 40px; width: calc(100% - 40px); } }

/* ---- loading placeholders (0.7.1): shaped like the page that is coming ---- */
/* shown at once and never faded in: a paused or throttled animation must not leave the page blank */
.skel { display: grid; gap: 16px; }
.sk { display: block; height: 12px; border-radius: 8px; background: linear-gradient(90deg, #e9e6df 0%, #f6f4f0 45%, #e9e6df 90%); background-size: 220% 100%; animation: sk-shine 1.3s ease-in-out infinite; }
@keyframes sk-shine { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.sk-sm { height: 9px; } .sk-h1 { height: 26px; border-radius: 10px; } .sk-h2 { height: 18px; } .sk-h3 { height: 14px; }
.sk-w12 { width: 12%; } .sk-w15 { width: 15%; } .sk-w16 { width: 16%; } .sk-w20 { width: 20%; } .sk-w25 { width: 25%; } .sk-w30 { width: 30%; } .sk-w35 { width: 35%; } .sk-w40 { width: 40%; } .sk-w45 { width: 45%; } .sk-w50 { width: 50%; } .sk-w55 { width: 55%; } .sk-w60 { width: 60%; } .sk-w65 { width: 65%; } .sk-w70 { width: 70%; } .sk-w80 { width: 80%; } .sk-w85 { width: 85%; } .sk-w90 { width: 90%; } .sk-w100 { width: 100%; }
.sk-btn { height: 40px; min-width: 96px; border-radius: 12px; } .sk-input { height: 40px; border-radius: 12px; } .sk-chip { height: 32px; min-width: 64px; border-radius: 999px; }
.sk-search { height: 52px; border-radius: 999px; } .sk-dot { width: 22px; height: 22px; border-radius: 50%; flex: none; } .sk-avatar { width: 48px; height: 48px; border-radius: 50%; flex: none; }
.sk-ic { width: 36px; height: 36px; border-radius: 10px; flex: none; } .sk-round { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.sk-chart { height: 180px; border-radius: 14px; } .sk-bar { height: 8px; border-radius: 999px; } .sk-area { height: 96px; border-radius: 12px; } .sk-day { height: 64px; border-radius: 12px; }
.sk-head { padding: 4px 0; } .sk-split { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .sk-split > .sk-input { flex: 1; }
.sk-col { display: grid; gap: 8px; flex: 1; min-width: 0; } .sk-chips { display: flex; gap: 8px; }
.sk-card { display: grid; gap: 12px; padding: 18px 20px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.sk-today { background: var(--cream, #fbf3dc); border: 0; } .sk-today .sk { background: linear-gradient(90deg, #f3e8c7 0%, #fbf5e2 45%, #f3e8c7 90%); background-size: 220% 100%; }
.sk-hero .sk { opacity: .9; }
.sk-row { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.sk-grid2 { display: grid; gap: 16px; } @media (min-width: 900px) { .sk-grid2 { grid-template-columns: 1.15fr 1fr; } }
.sk-tight { grid-template-columns: 1fr 1fr; gap: 12px; }
.sk-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } @media (min-width: 640px) { .sk-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sk-tile { padding: 16px; min-height: 92px; }
.sk-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
/* a part of the page that is reloading (the calendar after changing month) */
.sk-busy { position: relative; pointer-events: none; }
.sk-busy > * { opacity: .45; transition: opacity .2s; }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }
html[data-a11y-motion='reduce'] .sk { animation: none !important; }
