/* Financial Advice Development Opportunities: light design (from the "Planner" redesign).
   Plain CSS, shared by every page. */

:root {
  --bg: #F4F7F9;
  --surface: #FFFFFF;
  --surface-2: #F4F7F9;
  --chip: #F1F4F6;
  --line: #EEF2F4;
  --ink: #14212B;
  --ink-2: #24343F;
  --text: #34434D;
  --muted: #5B6770;
  --soft: #46525B;
  --accent: #7CC4DD;        /* buttons, selected tab, 80%+ ring */
  --accent-ink: #0B2A36;
  --brand: #1F6A82;         /* links, selected text */
  --brand-dark: #134B5D;
  --tint: #E8F5FA;          /* soft blue backgrounds */
  --good: #157A52;
  --good-bg: #DDF3E8;
  --good-dot: #22A06B;
  --warn: #B5482F;
  --warn-bg: #FBE6E1;
  --est: #8A4B08;
  --est-bg: #FDF1DC;
  --est-box: #FDF6EA;
  --mid: #F2B35B;           /* 60 to 79% ring */
  --low: #B7C0C6;           /* under 60% ring */
  --shadow: 0 1px 2px rgba(15,40,55,.04), 0 6px 20px rgba(15,40,55,.05);
  --shadow-sm: 0 1px 2px rgba(15,40,55,.06), 0 4px 14px rgba(15,40,55,.04);
  --radius: 22px;
  color-scheme: light;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 14px/1.5 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
button { font-family: inherit; cursor: pointer; transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease, filter .14s ease; }
button:hover { filter: brightness(.97); }
button:active { transform: scale(.98); }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid #3B9BBC; outline-offset: 2px; }
summary { cursor: pointer; }
input::placeholder { color: #8A949B; }
[hidden] { display: none !important; }
h2 { font-size: 16px; margin: 0 0 4px; font-weight: 700; }
.muted { color: var(--muted); margin: 0; font-size: 13px; }

/* ---------- Page shell: sidebar + content ---------- */
.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side { flex: 1 1 236px; max-width: 100%; padding: 24px 16px; display: flex; flex-direction: column; gap: 28px; }
.content { flex: 999 1 560px; min-width: 0; padding: 28px 32px 56px; display: flex; flex-direction: column; gap: 22px; }
@media (min-width: 900px) { .side { position: sticky; top: 0; height: 100vh; overflow-y: auto; flex: 0 0 252px; } }
@media (max-width: 600px) { .content { padding: 20px 16px 48px; } .side { padding: 16px 16px 0; gap: 14px; } }

.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.logo { width: 36px; height: 36px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: none; }
.brand b { display: block; font-size: 14px; line-height: 1.3; }
.brand span { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
.side-links { display: flex; flex-direction: column; gap: 4px; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 0 14px; height: 42px; border-radius: 999px; color: var(--soft); text-decoration: none; font-weight: 500; }
.side-link:hover { background: #EAF0F3; color: var(--ink); }
.side-link .ico { width: 26px; height: 26px; border-radius: 999px; display: flex; align-items: center; justify-content: center; flex: none; }
.side-link[aria-current="page"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }
.side-link[aria-current="page"] .ico { background: var(--accent); color: var(--accent-ink); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }
.checked { display: flex; align-items: center; gap: 8px; padding: 0 14px; font-size: 12px; color: var(--muted); }
.checked .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--good-dot); box-shadow: 0 0 0 3px var(--good-bg); flex: none; }
.sync { background: var(--surface); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.sync b { font-size: 13px; }
.sync .small { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.sync input { height: 40px; }
@media (max-width: 899px) {
  .side-links { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .side-link { flex: none; }
  .side-foot { margin-top: 0; }
}

/* ---------- Page header ---------- */
.page-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; }
.page-head > div:first-child { display: flex; flex-direction: column; gap: 6px; flex: 1 1 420px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin: 0; }
h1 { margin: 0; font-size: 32px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
.sub { margin: 0; color: var(--muted); font-size: 15px; max-width: 640px; }
@media (max-width: 600px) { h1 { font-size: 26px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: 999px; border: 0; background: var(--chip); color: var(--ink);
  font: inherit; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.btn:hover { color: var(--ink); filter: brightness(.97); }
.btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 2px rgba(15,40,55,.10), inset 0 1px 0 rgba(255,255,255,.35); }
.btn.soft { background: var(--tint); color: var(--brand-dark); }
.btn.white { background: var(--surface); box-shadow: 0 1px 2px rgba(15,40,55,.08); }
.btn.block { width: 100%; }
.btn.big { height: 46px; padding: 0 8px 0 20px; font-size: 14px; box-shadow: 0 1px 2px rgba(15,40,55,.10), 0 6px 16px rgba(60,150,185,.22), inset 0 1px 0 rgba(255,255,255,.35); }
.btn .chev { width: 30px; height: 30px; border-radius: 999px; background: rgba(255,255,255,.55); display: flex; align-items: center; justify-content: center; }
.btn[aria-disabled="true"] { opacity: .5; cursor: default; pointer-events: none; }
.link { background: none; border: 0; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; }

/* ---------- Calendar menu (top right) ---------- */
.cal-menu { position: relative; }
.menu { position: absolute; right: 0; top: 56px; z-index: 30; width: 320px; max-width: calc(100vw - 32px); background: var(--surface); border-radius: 18px; box-shadow: 0 0 0 1px rgba(15,40,55,.05), 0 16px 40px rgba(15,40,55,.14); padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.menu-h { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 10px 4px; }
.menu-sep { height: 1px; background: var(--line); margin: 6px 10px; }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; color: var(--ink); text-decoration: none; background: none; border: 0; font: inherit; text-align: left; width: 100%; }
.menu-item:hover { background: #F3F7F9; color: var(--ink); }
.menu-item .mi { width: 32px; height: 32px; border-radius: 10px; background: var(--chip); color: var(--soft); display: flex; align-items: center; justify-content: center; flex: none; }
.menu-item.rec .mi { background: var(--tint); color: var(--brand); }
.menu-item .mt { display: flex; flex-direction: column; line-height: 1.3; }
.menu-item .mt b { font-weight: 600; }
.menu-item .mt span { font-size: 12px; color: var(--muted); }
.menu select { margin: 2px 10px 6px; width: calc(100% - 20px); height: 38px; }
.menu .msg { padding: 0 10px; }
@media (max-width: 600px) { .menu { left: 0; right: auto; } }

/* ---------- Panels and form fields ---------- */
.panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.settings { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 160px; min-width: 0; margin: 0; border: 0; padding: 0; }
.field > span, .field legend { font-size: 12px; font-weight: 600; color: var(--muted); padding: 0; }
.field.wide { flex: 2 1 460px; }
input, select {
  height: 44px; border: 0; border-radius: 14px; padding: 0 14px; background: var(--surface-2);
  font: inherit; font-size: 14px; font-weight: 500; color: var(--ink); width: 100%; min-width: 0;
}
input:focus, select:focus { outline: 2px solid #3B9BBC; outline-offset: 1px; }
.where { display: flex; flex-wrap: wrap; gap: 6px; }
.where button { height: 44px; padding: 0 16px; border-radius: 999px; border: 0; font-size: 13px; display: flex; align-items: center; gap: 6px; background: var(--surface-2); color: var(--soft); font-weight: 500; }
.where button[aria-pressed="true"] { background: var(--tint); color: var(--brand); font-weight: 700; }

/* ---------- Just published ---------- */
.banner-pill { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 12px 12px 12px 14px; border-radius: 999px; background: var(--tint); }
.banner-pill .bell { width: 34px; height: 34px; border-radius: 999px; background: var(--surface); color: var(--brand); display: flex; align-items: center; justify-content: center; flex: none; }
.banner-pill .txt { flex: 1 1 320px; min-width: 0; font-size: 14px; color: var(--ink-2); }
@media (max-width: 600px) { .banner-pill { border-radius: 22px; } }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 12px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; }
.tile:hover { color: var(--ink); box-shadow: 0 0 0 2px var(--accent), var(--shadow-sm); }
.tile-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.tile-title { font-weight: 700; line-height: 1.3; }
.tile-vals { font-size: 13px; color: var(--muted); }
.tile-vals b { color: var(--good); }
.place { font-size: 11px; font-weight: 600; border-radius: 999px; padding: 1px 8px; background: var(--chip); color: var(--soft); }
.place.melbourne, .place.vic { background: var(--good-bg); color: var(--good); }

/* ---------- KPI cards ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.stat { background: var(--surface); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); }
.stat .label { font-size: 13px; color: var(--muted); font-weight: 600; }
.stat .value { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat .hint { font-size: 12px; color: var(--muted); }
.stat .expand { font-size: 12px; font-weight: 600; }
.bar { height: 6px; background: var(--chip); border-radius: 99px; margin-top: 6px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.bar.over > i { background: var(--warn); }

/* ---------- Browse: search, sort, tabs, legend ---------- */
.browse { display: flex; flex-direction: column; gap: 14px; }
.control-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search { flex: 1 1 320px; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm); color: var(--muted); }
.search input { border: 0; outline: 0; flex: 1; height: 46px; padding: 0; background: transparent; }
.search input:focus { outline: 0; }
.sort { display: flex; align-items: center; gap: 6px; height: 48px; padding: 0 8px 0 18px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm); }
.sort span { font-size: 13px; color: var(--muted); }
.sort select { height: 40px; background: transparent; font-weight: 700; padding: 0 6px; width: auto; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.tab { flex: none; height: 40px; padding: 0 16px; border-radius: 999px; border: 0; font-size: 13px; display: flex; align-items: center; gap: 8px; white-space: nowrap; background: var(--surface); color: var(--text); font-weight: 500; box-shadow: 0 1px 2px rgba(15,40,55,.06); }
.tab .n { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--chip); color: var(--muted); }
.tab[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 700; box-shadow: 0 4px 12px rgba(60,150,185,.22); }
.tab[aria-selected="true"] .n { background: rgba(255,255,255,.6); color: var(--accent-ink); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: 12px; color: var(--muted); padding: 0 4px; margin: 0; }
.legend b { color: var(--ink-2); }
.legend .k { display: inline-flex; align-items: center; gap: 6px; }
.legend .k i { width: 8px; height: 8px; border-radius: 999px; display: inline-block; }

/* ---------- Groups ---------- */
.list { display: flex; flex-direction: column; gap: 14px; }
.group-h { font-size: 18px; margin: 10px 0 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.group-h .gdot { width: 10px; height: 10px; border-radius: 999px; }
.group-range { font-size: 13px; font-weight: 500; color: var(--muted); }
.group-hint { margin: -8px 0 0; font-size: 13px; }
details.group > summary { list-style: none; }
details.group > summary::-webkit-details-marker { display: none; }
details.group > summary::after { content: "Show"; margin-left: auto; font-size: 13px; font-weight: 700; color: var(--brand); }
details.group[open] > summary::after { content: "Hide"; }
details.group .list { margin-top: 14px; }

/* ---------- Opportunity cards ---------- */
.card { border-radius: 24px; padding: 20px 22px; background: var(--surface); box-shadow: var(--shadow); }
.card.going { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.card.dim { opacity: .55; }
.card-main { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.date { width: 64px; height: 70px; flex: none; border-radius: 18px; background: var(--tint); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.date .m { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--brand); text-transform: uppercase; }
.date .d { font-size: 22px; font-weight: 700; color: var(--accent-ink); }
.date .y { font-size: 11px; color: var(--soft); }
.date.ongoing { background: var(--surface-2); color: var(--soft); gap: 3px; }
.date.ongoing span { font-size: 11px; font-weight: 600; }
.card-body { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.card h3 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--brand); text-decoration: underline; }
.meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.meta .price { color: var(--good); font-weight: 700; }
.meta .price.tbc { color: var(--est); }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--chip); color: var(--soft); white-space: nowrap; }
.pill.est { background: var(--est-bg); color: var(--est); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.good { background: var(--good-bg); color: var(--good); }
.note { margin: 0; font-size: 14px; color: var(--text); }
.note-box { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 14px; background: var(--est-box); font-size: 13px; color: #6F3E06; margin: 0; }
.note-box svg { flex: none; margin-top: 2px; }
details.why { font-size: 13px; color: var(--soft); }
details.why summary { font-weight: 600; color: var(--brand); }
details.why ul { margin: 6px 0 0; padding-left: 18px; }
details.why li { margin: 2px 0; }
.quote { color: var(--muted); font-style: italic; margin-top: 2px; }
.score { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 76px; }
.score small { font-size: 11px; font-weight: 700; color: var(--soft); white-space: nowrap; }
.card-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-top: 16px; }
.seg { display: flex; flex-wrap: wrap; background: var(--chip); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { height: 34px; padding: 0 16px; border-radius: 999px; border: 0; font-size: 13px; background: transparent; color: var(--soft); font-weight: 500; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--brand); font-weight: 700; box-shadow: 0 1px 3px rgba(15,40,55,.12); }
.seg button.skip[aria-pressed="true"] { color: var(--warn); }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.empty { padding: 40px 16px; text-align: center; color: var(--muted); background: var(--surface); border-radius: var(--radius); }
.msg { font-size: 13px; color: var(--muted); margin: 0; min-height: 1em; }
.foot { color: var(--muted); font-size: 13px; }
.foot p { margin: 0 0 8px; }

/* ---------- Edit form, add form ---------- */
.edit-form { margin-top: 12px; padding: 14px; border-radius: 16px; background: var(--surface-2); display: grid; gap: 10px; }
.row-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row-inline input { flex: 1 1 200px; background: var(--surface); }
.row-inline select { width: auto; background: var(--surface); }
.add-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 12px; }
details.panel > summary { font-size: 14px; }

/* ---------- Budget and Applications ---------- */
.lines { margin-top: 8px; }
.line { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); }
.line:first-child { border-top: 0; }
.line .what { flex: 1 1 260px; min-width: 0; }
.line .what a { font-weight: 700; color: var(--ink); text-decoration: none; }
.line .what a:hover { color: var(--brand); text-decoration: underline; }
.line .info { font-size: 13px; color: var(--muted); margin-top: 3px; }
.line .amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.line .actions { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; margin-top: 6px; }
.total { display: flex; justify-content: space-between; font-weight: 700; padding-top: 12px; margin-top: 4px; border-top: 2px solid var(--ink); }

/* ---------- Schedule board ---------- */
.cal-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 980px) { .board { grid-template-columns: 1fr; } }
.col { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; min-height: 180px; }
.col h2 { display: flex; align-items: center; gap: 8px; }
.col h2 .n { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--chip); color: var(--muted); }
.col.over { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.drop { display: grid; gap: 10px; margin-top: 12px; }
.empty-col { padding: 18px 0; text-align: center; }
.sched-card { background: var(--surface-2); border-radius: 18px; padding: 14px; cursor: grab; }
.sched-card.dragging { opacity: .5; }
.sched-card h3 { font-size: 15px; margin: 6px 0 4px; line-height: 1.3; }
.sched-card h3 a { color: var(--ink); text-decoration: none; }
.sched-card h3 a:hover { color: var(--brand); text-decoration: underline; }
.sched-card .info { font-size: 13px; color: var(--muted); }
.sched-top { display: flex; gap: 6px; flex-wrap: wrap; }
.sched-top .pill { background: var(--surface); }
.sched-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sched-actions .btn { height: 34px; padding: 0 12px; font-size: 12px; background: var(--surface); }
.sched-actions select { width: auto; height: 34px; font-size: 12px; background: var(--surface); border-radius: 999px; }
.sched-panel { margin-top: 10px; padding: 12px; border-radius: 14px; background: var(--surface); font-size: 13px; }
.sched-panel p { margin: 0 0 8px; }
.sched-panel input { background: var(--surface-2); }
.alts { margin: 0; padding-left: 18px; }
.alts li { margin: 8px 0; }

/* Phones and narrow windows: the sync card becomes one slim bar */
@media (max-width: 899px) {
  .checked { display: none; }
  .sync { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 12px 10px 16px; border-radius: 22px; gap: 8px; }
  .sync b { flex: 1 1 auto; }
  .sync .small { display: none; }
  .sync .btn.block { width: auto; height: 36px; }
  .sync form { flex-basis: 100%; }
}

/* ---------- Calendar page ---------- */
.cal-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.month-nav { display: flex; align-items: center; gap: 8px; }
.month-nav h2 { margin: 0 6px; font-size: 20px; min-width: 170px; text-align: center; }
.month-nav .btn { height: 40px; padding: 0 12px; }
.cal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 1100px) { .cal-layout { grid-template-columns: 1fr; } }
.todo { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.month { padding: 12px; }
.dow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; padding: 0 2px 6px; font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; }
.grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day { min-height: 112px; border-radius: 14px; background: var(--surface-2); padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.day.out { opacity: .45; }
.day.today { box-shadow: inset 0 0 0 2px var(--accent); }
.day.over { background: var(--tint); box-shadow: inset 0 0 0 2px var(--brand); }
.day-n { font-size: 12px; font-weight: 700; color: var(--soft); padding: 2px 4px; }
.day-n .dw { display: none; }
.chip { display: block; width: 100%; text-align: left; border: 0; border-radius: 8px; padding: 4px 7px; font-size: 12px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.chip[draggable="true"] { cursor: grab; }
.chip.going { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.chip.interested { background: var(--tint); color: var(--brand-dark); box-shadow: inset 0 0 0 1px #BFE2EE; }
.chip.done { background: var(--good-bg); color: var(--good); }
.chip.other { background: var(--surface); color: var(--soft); }
.chip.dragging { opacity: .5; }
.todo .chip { white-space: normal; padding: 8px 10px; font-size: 13px; }
.more-btn { border: 0; background: none; color: var(--brand); font-size: 12px; font-weight: 700; text-align: left; padding: 2px 4px; cursor: pointer; }
.detail-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.detail-head h2 { font-size: 18px; }
.detail-head h2 a { color: var(--ink); text-decoration: none; }
/* Phones: the month becomes a list of days that have something on */
@media (max-width: 760px) {
  .dow { display: none; }
  .grid { display: flex; flex-direction: column; }
  .day { min-height: 0; }
  .day.empty:not(.today) { display: none; }
  .day-n .dn { display: none; }
  .day-n .dw { display: inline; }
  .chip { white-space: normal; font-size: 13px; padding: 8px 10px; }
}

/* ---------- Tailor my planner ---------- */
.tailor { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.tailor-grid { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.tailor-link { flex-basis: 100%; display: flex; justify-content: flex-end; margin-bottom: -6px; }

/* Calendar readability: month gets the full width, titles over 2 lines */
.cal-layout { grid-template-columns: 1fr; }
.unscheduled .todo { flex-direction: row; flex-wrap: wrap; }
.unscheduled .todo .chip { width: auto; max-width: 320px; }
.chip { white-space: normal; padding: 5px 7px; }
.chip .ct { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; }
.chip .cm { display: block; font-size: 11px; opacity: .8; }
.day { min-height: 120px; }

textarea { width: 100%; border: 0; border-radius: 14px; padding: 12px 14px; background: var(--surface); font: inherit; font-size: 14px; color: var(--ink); resize: vertical; line-height: 1.5; }
textarea:focus { outline: 2px solid #3B9BBC; outline-offset: 1px; }
.disclaimer { font-size: 11px; color: var(--muted); padding: 0 8px; margin: 0; line-height: 1.4; }
@media (max-width: 899px) { .disclaimer { display: none; } }

/* ---------- Softer header: light blue band, sentence-case eyebrow, lighter title ---------- */
.page-head { background: linear-gradient(135deg, #E8F5FA 0%, #DCEFF7 100%); border-radius: 24px; padding: 24px 26px; }
.eyebrow { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; color: var(--brand); }
h1 { font-weight: 600; letter-spacing: -0.015em; }
.page-head .sub { color: #46525B; }
@media (max-width: 600px) { .page-head { padding: 18px; border-radius: 20px; } }
