/* house style, marketing area. loaded after ui/house-style.css; rules here override the shared look for this area only.
   screens: personal brand (and the retired scripts and editor pipeline pages it shares classes with), student calls,
   developer, and the frame around the two dashboard pages. sign-in, the startup placeholder and the shared document
   are separate pages with their own files (ui/sign-in.css, ui/shared-document.css).
   order: personal brand, marketing pop-ups, scripts and pipeline, student calls, developer, dashboard frames. */

/* ---------- a. personal brand ---------- */

/* bars and targets: the chart colour is the accent, a day under target is a paler step of it. no green, no orange */
body.balanced-blue.minimal-calm .mkt-brand-page{--daily-hit:var(--accent);--daily-some:color-mix(in srgb,var(--accent) 38%,var(--surface));--daily-bar:var(--accent)}
body.balanced-blue.minimal-calm #main .mkt-page{color:var(--ink)}

/* notices on the page: a plain hairline row with its one button at the right */
body.balanced-blue.minimal-calm #main .mkt-notice{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;margin:0 0 12px;padding:8px 8px 8px 14px;border:1px solid var(--line);border-radius:var(--r-card);background:var(--surface);color:var(--ink);font-size:13px;line-height:20px}
body.balanced-blue.minimal-calm #main .mkt-notice .btn{min-height:28px;padding:4px 10px;font-size:12px}
/* one that asks for a retry gets the small amber dot in front; its button keeps the right edge */
body.balanced-blue.minimal-calm #main .mkt-notice:has(.btn){justify-content:flex-start;gap:8px 10px}
body.balanced-blue.minimal-calm #main .mkt-notice:has(.btn)::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:var(--warn)}
body.balanced-blue.minimal-calm #main .mkt-notice:has(.btn) .btn{margin-left:auto}

/* the four totals: the number never breaks in the middle, the change chip drops under it when there is no room */
body.balanced-blue.minimal-calm #main .mkt-brand-stat>div{flex-wrap:wrap;gap:4px 10px}
body.balanced-blue.minimal-calm #main .mkt-brand-stat strong{overflow-wrap:normal;white-space:nowrap}
body.balanced-blue.minimal-calm #main .mkt-brand-stat .mkt-trend{min-width:0;font-variant-numeric:tabular-nums}
body.balanced-blue.minimal-calm #main .mkt-brand-stat .mkt-trend:not(.up,.down){color:var(--secondary)}

/* the kpi row: followers, then this month's stories / posts / youtube against the month's goal. four across, two by two
   on smaller screens. the goal after the count is grey */
body.balanced-blue.minimal-calm #main .mkt-brand-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
body.balanced-blue.minimal-calm #main .mkt-brand-kpi .mkt-brand-goal{font-weight:500;color:var(--secondary)}
body.balanced-blue.minimal-calm #main .mkt-brand-kpi[data-tone]>p{display:flex;align-items:center;gap:6px}
body.balanced-blue.minimal-calm #main .mkt-brand-kpi[data-tone]>p::before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:var(--warn)}
body.balanced-blue.minimal-calm #main .mkt-brand-kpi .btn{min-height:28px;padding:4px 10px;font-size:12px}

/* the grid under the totals: the follower chart (2/3) beside today's story (1/3), the daily bars across under them */
body.balanced-blue.minimal-calm #main .mkt-brand-grid{grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:12px;align-items:stretch;margin:0 0 18px}
body.balanced-blue.minimal-calm #main .mkt-brand-grid>.mkt-daily{grid-column:1/-1}

/* the week's posts (2026-10-29): a row per day, its story type under the date, two boxes for the day's posts, and how
   many went out once the day has come. An open box is dashed so the gaps in the week stand out */
body.balanced-blue.minimal-calm #main .mkt-post-plan{grid-column:1/-1;min-width:0;padding:16px 18px;border:1px solid var(--line);border-radius:var(--r-card);background:var(--surface)}
body.balanced-blue.minimal-calm #main .mkt-post-plan-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 16px;margin-bottom:10px}
body.balanced-blue.minimal-calm #main .mkt-post-plan-head h2{margin:0;font-size:17px;font-weight:600;line-height:24px;letter-spacing:-.01em;color:var(--ink)}
body.balanced-blue.minimal-calm #main .mkt-post-plan-head p{margin:2px 0 0;font-size:13px;color:var(--secondary);font-variant-numeric:tabular-nums}
body.balanced-blue.minimal-calm #main .mkt-post-plan-nav{display:flex;align-items:center;gap:6px}
body.balanced-blue.minimal-calm #main .mkt-post-plan-nav>span{margin-right:4px;font-size:13px;color:var(--secondary);white-space:nowrap}
body.balanced-blue.minimal-calm #main .mkt-post-plan-nav .btn{min-height:28px;padding:4px 10px;font-size:12px}
body.balanced-blue.minimal-calm #main .mkt-post-plan-nav .btn[aria-pressed=true]{color:var(--secondary)}
body.balanced-blue.minimal-calm #main .mkt-post-days{display:grid;margin:0;padding:0;list-style:none}
body.balanced-blue.minimal-calm #main .mkt-post-day{display:grid;grid-template-columns:132px minmax(0,1fr) minmax(0,1fr) 92px;align-items:center;gap:8px;padding:7px 8px;margin:0 -8px;border-top:1px solid var(--record-line,var(--line));border-radius:8px}
body.balanced-blue.minimal-calm #main .mkt-post-day:first-child{border-top-color:transparent}
body.balanced-blue.minimal-calm #main .mkt-post-day[aria-current=date]{background:var(--pink-wash,color-mix(in srgb,var(--accent) 7%,transparent));border-top-color:transparent}
body.balanced-blue.minimal-calm #main .mkt-post-day[aria-current=date]+.mkt-post-day{border-top-color:transparent}
body.balanced-blue.minimal-calm #main .mkt-post-date{display:flex;flex-direction:column;min-width:0}
body.balanced-blue.minimal-calm #main .mkt-post-date strong{font-size:13px;font-weight:600;line-height:20px;color:var(--ink)}
body.balanced-blue.minimal-calm #main .mkt-post-date strong span{font-weight:500;color:var(--secondary);font-variant-numeric:tabular-nums}
body.balanced-blue.minimal-calm #main .mkt-post-date em{margin-left:2px;font-style:normal;font-size:11.5px;font-weight:600;color:var(--brand-ink,var(--accent))}
body.balanced-blue.minimal-calm #main .mkt-post-date small{overflow:hidden;font-size:12px;line-height:18px;color:var(--secondary);text-overflow:ellipsis;white-space:nowrap}
body.balanced-blue.minimal-calm #main .mkt-post-slot{width:100%;min-width:0;min-height:34px;padding:6px 10px;font-size:13px;border-radius:8px;background:var(--surface)}
body.balanced-blue.minimal-calm #main .mkt-post-slot.is-open{border-style:dashed}
body.balanced-blue.minimal-calm #main .mkt-post-day[data-past] .mkt-post-slot.is-open{opacity:.6}
body.balanced-blue.minimal-calm #main .mkt-post-slot[readonly]{cursor:default}
body.balanced-blue.minimal-calm #main .mkt-post-status{display:flex;justify-content:flex-end}
body.balanced-blue.minimal-calm #main .mkt-post-went{padding:2px 8px;border-radius:999px;font-size:11.5px;font-weight:500;line-height:18px;white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--secondary);background:color-mix(in srgb,var(--line) 55%,transparent)}
body.balanced-blue.minimal-calm #main .mkt-post-went.is-hit{color:#1f8a5b;background:color-mix(in srgb,#1f8a5b 12%,transparent)}
body.balanced-blue.minimal-calm #main .mkt-post-went.is-some{color:#b45309;background:color-mix(in srgb,#d97706 13%,transparent)}
body.balanced-blue.minimal-calm #main .mkt-post-went.is-miss{color:#b42318;background:color-mix(in srgb,#d92d20 10%,transparent)}
@media(max-width:760px){
  body.balanced-blue.minimal-calm #main .mkt-post-day{grid-template-columns:minmax(0,1fr) auto;gap:6px}
  body.balanced-blue.minimal-calm #main .mkt-post-date{grid-column:1;flex-direction:row;align-items:baseline;gap:8px}
  body.balanced-blue.minimal-calm #main .mkt-post-status{grid-column:2;grid-row:1}
  body.balanced-blue.minimal-calm #main .mkt-post-slot{grid-column:1/-1;font-size:16px}
}

/* today's story: a card with the type and its beats in order */
body.balanced-blue.minimal-calm #main .mkt-story-card{display:flex;flex-direction:column;gap:8px;min-width:0;padding:16px;border:1px solid var(--line);border-radius:var(--r-card);background:var(--surface)}
body.balanced-blue.minimal-calm #main .mkt-story-card h2{margin:0;font-size:17px;font-weight:600;line-height:24px;letter-spacing:-.01em;color:var(--ink)}
body.balanced-blue.minimal-calm #main .mkt-story-card>strong{font-size:14px;font-weight:500;line-height:20px;color:var(--ink)}
body.balanced-blue.minimal-calm #main .mkt-story-card ol{display:grid;gap:6px;margin:0;padding:0;list-style:none;counter-reset:beat}
body.balanced-blue.minimal-calm #main .mkt-story-card ol li{display:flex;align-items:flex-start;gap:8px;counter-increment:beat;font-size:13px;line-height:20px;color:var(--ink)}
body.balanced-blue.minimal-calm #main .mkt-story-card ol li::before{content:counter(beat);display:grid;place-items:center;flex:none;width:20px;height:20px;border-radius:50%;background:var(--pink-wash);color:var(--brand-ink);font-size:11px;font-weight:600;font-variant-numeric:tabular-nums}
@media(max-width:1100px){
  body.balanced-blue.minimal-calm #main .mkt-brand-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
  body.balanced-blue.minimal-calm #main .mkt-brand-grid{grid-template-columns:minmax(0,1fr)}
}

/* followers: a card like the others, the range switch at the right of its title */
body.balanced-blue.minimal-calm #main .mkt-brand-page .mkt-growth-panel{min-width:0;padding:0;border:1px solid var(--line);border-radius:var(--r-card);background:var(--surface);box-shadow:none}
body.balanced-blue.minimal-calm #main .mkt-growth-panel .panelhead{flex-wrap:wrap;padding:16px 16px 8px}
body.balanced-blue.minimal-calm #main .mkt-growth-chart{padding:0 8px 12px}
body.balanced-blue.minimal-calm #main .mkt-growth-chart text{fill:var(--secondary);font-size:11px;font-weight:500;font-variant-numeric:tabular-nums}
body.balanced-blue.minimal-calm #main .mkt-growth-chart polygon{opacity:.14}
body.balanced-blue.minimal-calm #main .mkt-growth-chart polyline{stroke:var(--accent);stroke-width:2}
body.balanced-blue.minimal-calm #main .mkt-growth-chart .hq-brand-dot{r:2.5px;fill:var(--accent);stroke:var(--accent)}
body.balanced-blue.minimal-calm #main .mkt-growth-chart :is(.hq-brand-active,[data-brand-point]:focus-visible) .hq-brand-dot{r:4.5px;fill:var(--surface);stroke:var(--accent);stroke-width:2}
body.balanced-blue.minimal-calm #main .mkt-growth-chart .hq-brand-guide{stroke:var(--line-strong);stroke-dasharray:none}
body.balanced-blue.minimal-calm #main .mkt-growth-chart :is(.hq-brand-active,[data-brand-point]:focus-visible) .hq-brand-guide{opacity:1}
body.balanced-blue.minimal-calm #main .mkt-growth-chart [data-brand-point]:focus-visible .hq-brand-hit{stroke:var(--ring)}
body.balanced-blue.minimal-calm #main .mkt-growth-panel>.empty-state{margin:0 16px 16px}

/* the value under the pointer: a small hairline card. it lives on the body, outside #main */
body.balanced-blue.minimal-calm .hq-brand-tooltip{padding:6px 10px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink);box-shadow:var(--shadow-float);font-size:12px;line-height:18px}
body.balanced-blue.minimal-calm .hq-brand-tooltip>strong{font-size:10.5px;font-weight:500;color:var(--secondary)}
body.balanced-blue.minimal-calm .hq-brand-tooltip>p{gap:2px 6px;margin:2px 0 0}
body.balanced-blue.minimal-calm .hq-brand-tooltip b{font-size:17px;line-height:24px;font-weight:600;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
body.balanced-blue.minimal-calm .hq-brand-tooltip p>span,
body.balanced-blue.minimal-calm .hq-brand-tooltip>small{font-size:12px;color:var(--secondary)}
body.balanced-blue.minimal-calm .hq-brand-tooltip>small{margin-top:2px}

/* text links on these pages: ink with an underline, not a pink word */
body.balanced-blue.minimal-calm :is(#main,#drawer) :is(.mkt-page,.mkt-editor,#mkt-plan-drawer) :is(.sx-link,.mkt-textlink){padding:0;border:0;background:transparent;color:var(--ink);font-size:12px;font-weight:500;line-height:16px;text-decoration:underline;text-decoration-color:var(--line-strong);text-underline-offset:3px;cursor:pointer}
body.balanced-blue.minimal-calm :is(#main,#drawer) :is(.mkt-page,.mkt-editor,#mkt-plan-drawer) :is(.sx-link,.mkt-textlink):hover{color:var(--ink);text-decoration-color:var(--ink)}

/* every day: one card, a row per kind of post, a bar per day */
body.balanced-blue.minimal-calm #main .mkt-brand-grid>.mkt-daily{padding:16px 16px 4px}
body.balanced-blue.minimal-calm #main .mkt-daily .mkt-sectionhead{margin-bottom:0}
body.balanced-blue.minimal-calm #main .mkt-daily-row{padding:14px 0 12px;border-top:1px solid var(--line)}
body.balanced-blue.minimal-calm #main .mkt-sectionhead+.mkt-daily-row{border-top:0;padding-top:8px}
body.balanced-blue.minimal-calm #main .mkt-daily-head{align-items:center;gap:4px 10px;margin-bottom:10px}
body.balanced-blue.minimal-calm #main .mkt-daily-head strong{font-size:13px;font-weight:600;line-height:20px;color:var(--ink)}
/* the target is a quiet line beside the name, and a grey dashed rule across the bars */
body.balanced-blue.minimal-calm #main .mkt-daily-head em{padding:0;border:0;border-radius:0;color:var(--secondary);font-size:12px;line-height:16px;font-variant-numeric:tabular-nums}
body.balanced-blue.minimal-calm #main .mkt-daily-target{border-top:1px dashed var(--line-strong)}
body.balanced-blue.minimal-calm #main .mkt-daily-bar-wrap b{font-size:11px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--ink)}
body.balanced-blue.minimal-calm #main .mkt-daily-bar{border-radius:3px 3px 1px 1px;background:var(--soft)}
body.balanced-blue.minimal-calm #main .mkt-daily-col.is-hit .mkt-daily-bar{background:var(--daily-hit)}
body.balanced-blue.minimal-calm #main .mkt-daily-col.is-some .mkt-daily-bar{background:var(--daily-some)}
body.balanced-blue.minimal-calm #main .mkt-daily-col.is-zero .mkt-daily-bar{background:var(--line)}
/* today is still filling up: the accent as an outline over a pale fill */
body.balanced-blue.minimal-calm #main .mkt-daily-col.is-today .mkt-daily-bar{background:var(--pink-wash);box-shadow:inset 0 0 0 1px var(--accent);opacity:1}
body.balanced-blue.minimal-calm #main .mkt-daily-col.is-unknown .mkt-daily-bar{border:1px dashed var(--line-strong);background:transparent;opacity:1}
body.balanced-blue.minimal-calm #main .mkt-daily-col:hover .mkt-daily-bar{filter:none;outline:1px solid var(--line-strong);outline-offset:1px}
body.balanced-blue.minimal-calm #main .mkt-daily-col small{font-size:10.5px;font-weight:500;line-height:1.4;font-variant-numeric:tabular-nums;color:var(--secondary)}
body.balanced-blue.minimal-calm #main .mkt-daily-empty{min-height:0;padding:12px;border:1px dashed var(--line);border-radius:var(--r-card);background:color-mix(in srgb,var(--soft) 40%,transparent)}
body.balanced-blue.minimal-calm #main .mkt-daily-empty .btn{min-height:28px;padding:4px 10px;font-size:12px}

/* weekly rhythm (the sample-mode brand page in ui/marketing.js still draws it): seven small day cards */
body.balanced-blue.minimal-calm #main .mkt-week-rhythm{margin-top:6px}
body.balanced-blue.minimal-calm #main .mkt-rhythm-calendar{gap:10px;margin-top:0}
body.balanced-blue.minimal-calm #main .mkt-rhythm-day{padding:12px;border:1px solid var(--line);border-radius:var(--r-card);background:var(--surface)}
/* today wears a 1px accent ring, no wash */
body.balanced-blue.minimal-calm #main .mkt-rhythm-day.featured{border-color:var(--accent);background:var(--surface)}
body.balanced-blue.minimal-calm #main .mkt-rhythm-day span{font-size:12px;line-height:16px;color:var(--secondary);text-transform:none;letter-spacing:normal}
body.balanced-blue.minimal-calm #main .mkt-rhythm-day strong{margin-top:4px;font-size:13px;line-height:20px;font-weight:600;color:var(--ink)}
body.balanced-blue.minimal-calm #main .mkt-rhythm-day small{margin-top:2px;font-size:12px;line-height:16px;color:var(--secondary)}

/* recent content: the title, then every post as a picture card */
body.balanced-blue.minimal-calm #main .mkt-posts .mkt-sectionhead{margin-bottom:12px}
body.balanced-blue.minimal-calm #main .mkt-content-grid{gap:12px}
body.balanced-blue.minimal-calm #main .mkt-content-card{border:1px solid var(--line);border-radius:var(--r-card);background:var(--surface);box-shadow:none;transition:border-color .15s}
/* no lift on hover: the hairline darkens a step */
body.balanced-blue.minimal-calm #main .mkt-content-card:hover{border-color:var(--line-strong);box-shadow:none;transform:none}
body.balanced-blue.minimal-calm #main .mkt-content-card:focus-visible{outline:2px solid var(--ring);outline-offset:2px}
body.balanced-blue.minimal-calm :is(#main,#drawer) .mkt-content-media{background:var(--soft)}
body.balanced-blue.minimal-calm :is(#main,#drawer) .mkt-media-fallback{gap:8px;font-size:12px;color:var(--secondary)}
/* the two chips over a picture: round, small, the kind on white and the date on black */
body.balanced-blue.minimal-calm :is(#main,#drawer) .mkt-media-type{padding:3px 8px;border-radius:999px;background:rgb(255 255 255 / .94);color:#18181b;font-size:11px;font-weight:500;line-height:14px}
body.balanced-blue.minimal-calm #main .mkt-media-date{padding:3px 8px;border-radius:999px;background:rgb(0 0 0 / .62);color:#fff;font-size:11px;font-weight:500;line-height:14px;font-variant-numeric:tabular-nums}
body.balanced-blue.minimal-calm #main .mkt-media-stats{padding:28px 12px 10px}
body.balanced-blue.minimal-calm #main .mkt-content-views b{font-size:20px;font-weight:600;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
body.balanced-blue.minimal-calm #main .mkt-content-engagement{font-size:12px;line-height:16px}
body.balanced-blue.minimal-calm #main .mkt-content-copy{gap:4px;padding:8px 12px}
body.balanced-blue.minimal-calm #main .mkt-content-grid .mkt-content-copy strong{font-size:13px;line-height:20px;font-weight:500}

@media(max-width:900px){
  body.balanced-blue.minimal-calm #main .mkt-rhythm-calendar{gap:8px}
}
@media(max-width:600px){
  /* the title keeps the left edge and the filter drops under it, instead of both stacking in the middle */
  body.balanced-blue.minimal-calm #main .mkt-posts .mkt-sectionhead{flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px 12px}
  body.balanced-blue.minimal-calm #main .mkt-content-grid{gap:8px}
  body.balanced-blue.minimal-calm #main .mkt-brand-grid>.mkt-daily{padding:14px 12px 4px}
  body.balanced-blue.minimal-calm #main .mkt-media-stats{padding:24px 10px 8px}
  body.balanced-blue.minimal-calm #main .mkt-content-views b{font-size:17px}
  /* thirty bars on a phone leave no room: the day labels go back to their small size so they do not touch */
  body.balanced-blue.minimal-calm #main .mkt-daily-col small{font-size:9.5px;font-weight:400}
}

/* ---------- b. marketing pop-ups ---------- */

/* a field: a 12px label over its control, 14px between fields */
body.balanced-blue.minimal-calm :is(#main,#drawer) .mkt-field{gap:6px;margin-bottom:14px;font-size:12px;font-weight:500;line-height:18px;color:var(--secondary)}
body.balanced-blue.minimal-calm :is(#main,#drawer) .mkt-field .hq-select,
body.balanced-blue.minimal-calm :is(#main,#drawer) .mkt-field .hq-select-trigger{width:100%}
body.balanced-blue.minimal-calm :is(#main,#drawer) .mkt-fields{gap:0 12px}
body.balanced-blue.minimal-calm :is(#main,#drawer) .mkt-editor{padding-bottom:0}
body.balanced-blue.minimal-calm :is(#main,#drawer) .mkt-editor>h3{font-size:14px;font-weight:600;line-height:20px;color:var(--ink)}
body.balanced-blue.minimal-calm :is(#main,#drawer) .mkt-editor :is(.muted,[role=status]){font-size:12px;line-height:18px;color:var(--secondary)}
/* a real error under a field: red words, no box */
body.balanced-blue.minimal-calm :is(#main,#drawer) .mkt-form-error{margin:0 0 12px;font-size:12px;line-height:18px;color:var(--bad-text)}
body.balanced-blue.minimal-calm :is(#main,#drawer) .mkt-form-error:empty{display:none}
body.balanced-blue.minimal-calm :is(#main,#drawer) .mkt-formfooter{gap:12px;margin-top:16px;padding-top:12px;border-top:1px solid var(--line)}
body.balanced-blue.minimal-calm :is(#main,#drawer) .mkt-checks{gap:16px;margin:0 0 14px}
body.balanced-blue.minimal-calm :is(#main,#drawer) .mkt-checks label{gap:8px;font-size:13px;line-height:20px;color:var(--ink)}
body.balanced-blue.minimal-calm :is(#main,#drawer) .mkt-editor-meta{gap:6px;margin-bottom:16px}
body.balanced-blue.minimal-calm :is(#main,#drawer) .mkt-linked-script{margin-top:14px;padding:12px 14px;border:1px solid var(--line);border-radius:var(--r-card);background:var(--soft)}
body.balanced-blue.minimal-calm :is(#main,#drawer) .mkt-linked-script>p{margin-top:8px;font-size:13px;line-height:20px;color:var(--secondary)}

/* a post opened from the grid: the picture, its caption, three numbers as tiles, then the facts as rows */
body.balanced-blue.minimal-calm #drawer #drawer-body>.mkt-content-media{margin:0 auto 16px;border:1px solid var(--line);border-radius:var(--r-card)}
body.balanced-blue.minimal-calm #drawer .mkt-drawer-copy>p{margin:12px 0 16px;font-size:14px;line-height:21px;color:var(--ink)}
body.balanced-blue.minimal-calm #drawer .mkt-drawer-copy .metric-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 16px;padding:0;border:0;background:transparent}
body.balanced-blue.minimal-calm #drawer .mkt-drawer-copy .metric-row>.metric{min-height:0;padding:10px 12px;border:1px solid var(--line);border-radius:var(--r-card);background:var(--surface);box-shadow:none}
body.balanced-blue.minimal-calm #drawer .mkt-drawer-copy .metric-row .metric>p{margin:0;font-size:12px;line-height:18px;color:var(--secondary)}
body.balanced-blue.minimal-calm #drawer .mkt-drawer-copy .metric-row .metric strong{font-size:17px;line-height:24px;font-weight:600;letter-spacing:-.01em;font-variant-numeric:tabular-nums;color:var(--ink)}
body.balanced-blue.minimal-calm #drawer .mkt-facts{grid-template-columns:120px minmax(0,1fr);gap:0;margin:0 0 16px;font-size:13px;line-height:20px}
body.balanced-blue.minimal-calm #drawer .mkt-facts :is(dt,dd){padding:10px 0;border-top:1px solid var(--line)}
body.balanced-blue.minimal-calm #drawer .mkt-facts dt{padding-right:12px;color:var(--secondary)}
body.balanced-blue.minimal-calm #drawer .mkt-facts dd{color:var(--ink);font-variant-numeric:tabular-nums}

/* a day of the story plan: the beats, then the stories as rows with a hairline between */
body.balanced-blue.minimal-calm #drawer .mkt-story-day-description{margin:0;font-size:13px;line-height:20px;color:var(--secondary)}
body.balanced-blue.minimal-calm #drawer .mkt-story-beats{margin:6px 0 12px;padding-left:18px;font-size:13px;line-height:20px;color:var(--secondary)}
body.balanced-blue.minimal-calm #drawer .mkt-plan-list{margin:12px 0 16px}
body.balanced-blue.minimal-calm #drawer .mkt-plan-list>button{min-height:44px;padding:8px 0;border:0;border-top:1px solid var(--line);border-radius:0}
body.balanced-blue.minimal-calm #drawer .mkt-plan-list>button:last-child{border-bottom:1px solid var(--line)}
body.balanced-blue.minimal-calm #drawer .mkt-plan-list>button>span:first-child{gap:0}
body.balanced-blue.minimal-calm #drawer .mkt-plan-list strong{font-size:13px;line-height:20px;font-weight:500;color:var(--ink)}
body.balanced-blue.minimal-calm #drawer .mkt-plan-list>button:hover strong{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
body.balanced-blue.minimal-calm :is(#main,#drawer) .mkt-story-type{font-size:12px;line-height:16px;color:var(--secondary)}

/* the script writing space: the same fields, a hairline card for the reference block */
body.balanced-blue.minimal-calm #drawer #mkt-script-form .mkt-field{gap:6px;margin-bottom:14px;font-size:12px;font-weight:500;color:var(--secondary)}
body.balanced-blue.minimal-calm #drawer #mkt-script-form .mkt-fields{gap:0 12px}
body.balanced-blue.minimal-calm #drawer #mkt-script-form .mkt-title-input{font-size:14px!important;line-height:20px!important}
body.balanced-blue.minimal-calm #drawer #mkt-script-form .mkt-reference-panel{margin-bottom:14px;padding:14px 14px 2px;border:1px solid var(--line);border-radius:var(--r-card);background:var(--surface)}
body.balanced-blue.minimal-calm #drawer #mkt-script-form .mkt-script-body{padding:14px 16px;border-radius:var(--r-card);background:var(--surface)!important;font-size:14px!important;line-height:24px!important}
body.balanced-blue.minimal-calm #drawer #mkt-script-form .mkt-editor-actions{gap:8px;padding:0 0 12px;margin-bottom:14px;border-bottom:1px solid var(--line);background:var(--surface)}
body.balanced-blue.minimal-calm #drawer #mkt-reference-preview{margin:0 0 12px}
body.balanced-blue.minimal-calm :is(#main,#drawer) .mkt-reference-preview{gap:8px;padding:10px 12px;border:1px solid var(--line);border-radius:var(--r-control);background:var(--surface);color:var(--secondary);font-size:12px;line-height:18px}
body.balanced-blue.minimal-calm :is(#main,#drawer) .mkt-reference-preview.is-empty{min-height:40px;border-style:dashed;background:color-mix(in srgb,var(--soft) 40%,transparent)}
body.balanced-blue.minimal-calm :is(#main,#drawer) .mkt-reference-preview strong{font-size:13px;font-weight:500;color:var(--ink)}
body.balanced-blue.minimal-calm :is(#main,#drawer) .mkt-reference-preview a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--line-strong);text-underline-offset:3px}
body.balanced-blue.minimal-calm :is(#main,#drawer) .mkt-reference-preview iframe{border:1px solid var(--line);border-radius:var(--r-control)}

/* ---------- c. scripts and the editor pipeline ---------- */

/* these two pages are retired from the menu but share every class above, so they follow along */
body.balanced-blue.minimal-calm #main .mkt-tabs-toolbar{align-items:center;gap:12px;margin-bottom:16px}
body.balanced-blue.minimal-calm #main .mkt-tabs-toolbar>.page-tabs{align-self:center;margin-bottom:0}
body.balanced-blue.minimal-calm #main .mkt-tabs-toolbar>.btn{margin-top:0;font-size:13px}
body.balanced-blue.minimal-calm #main .mkt-page-tools{margin:12px 0}
body.balanced-blue.minimal-calm #main .mkt-search{gap:8px}
body.balanced-blue.minimal-calm #main .mkt-search .btn{font-size:13px}
body.balanced-blue.minimal-calm #main :is(.mkt-tool-right>.muted,.mkt-sectionhead>.muted){font-size:12px;color:var(--secondary);font-variant-numeric:tabular-nums}

/* the story week: seven cells in one hairline card */
body.balanced-blue.minimal-calm #main .mkt-story-plan{margin:0 0 18px}
body.balanced-blue.minimal-calm #main .mkt-story-plan-head h2{font-size:17px;line-height:24px;font-weight:600;letter-spacing:-.01em;color:var(--ink)}
body.balanced-blue.minimal-calm #main .mkt-story-plan-head p{display:none}
body.balanced-blue.minimal-calm #main .mkt-story-week-nav{gap:8px}
body.balanced-blue.minimal-calm #main .mkt-story-week-nav>span{margin-right:4px;font-size:13px;color:var(--secondary)}
body.balanced-blue.minimal-calm #main .mkt-story-days{border:1px solid var(--line);border-radius:var(--r-card);background:var(--surface)}
body.balanced-blue.minimal-calm #main .mkt-story-day{gap:10px;padding:12px;background:var(--surface);color:var(--ink);transition:background-color .15s}
body.balanced-blue.minimal-calm #main .mkt-story-day:hover{background:var(--soft)}
/* today: an accent ring inside the cell, no wash */
body.balanced-blue.minimal-calm #main .mkt-story-day[aria-current=date]{background:var(--surface);box-shadow:inset 0 0 0 1px var(--accent)}
body.balanced-blue.minimal-calm #main .mkt-story-day[aria-current=date]:hover{background:var(--soft)}
body.balanced-blue.minimal-calm #main .mkt-story-plan button:focus-visible{outline:2px solid var(--ring);outline-offset:-3px}
body.balanced-blue.minimal-calm #main .mkt-story-day-date{font-size:12px;line-height:16px;color:var(--secondary)}
body.balanced-blue.minimal-calm #main .mkt-story-focus{gap:2px}
body.balanced-blue.minimal-calm #main .mkt-story-focus>span{font-size:12px;line-height:16px;color:var(--secondary)}
body.balanced-blue.minimal-calm #main .mkt-story-focus strong{font-size:13px;line-height:20px;font-weight:600;min-height:40px}
body.balanced-blue.minimal-calm #main .mkt-story-scheduled-type{gap:0;font-size:13px;line-height:20px}
body.balanced-blue.minimal-calm #main :is(.mkt-story-scheduled-type small,.mkt-story-empty){font-size:12px;line-height:16px;color:var(--secondary)}
body.balanced-blue.minimal-calm #main .mkt-story-undated{margin:8px 0 0;font-size:12px;line-height:18px;color:var(--secondary)}

/* board columns: a dot and a name over a stack of small cards */
body.balanced-blue.minimal-calm #main .mkt-board{gap:12px}
body.balanced-blue.minimal-calm #main .mkt-column-head{margin-bottom:8px;padding:0 2px}
body.balanced-blue.minimal-calm #main .mkt-column-head h2{gap:8px;font-size:13px;font-weight:600;line-height:20px;color:var(--ink)}
body.balanced-blue.minimal-calm #main .mkt-column-head>span{font-size:12px!important;font-variant-numeric:tabular-nums;color:var(--secondary)}
body.balanced-blue.minimal-calm #main .mkt-stage-dot{background:var(--line-strong)}
body.balanced-blue.minimal-calm #main .mkt-stage-dot.stage-1{background:var(--tone-violet)}
body.balanced-blue.minimal-calm #main .mkt-stage-dot.stage-2{background:var(--tone-amber)}
body.balanced-blue.minimal-calm #main .mkt-stage-dot.stage-3{background:var(--tone-green)}
body.balanced-blue.minimal-calm #main .mkt-column-cards{gap:8px}
body.balanced-blue.minimal-calm #main .mkt-card{border:1px solid var(--line);border-radius:var(--r-card);background:var(--surface);box-shadow:none;transition:border-color .15s}
body.balanced-blue.minimal-calm #main .mkt-card:hover{border-color:var(--line-strong);box-shadow:none}
body.balanced-blue.minimal-calm #main .mkt-card strong{font-size:13px!important;font-weight:500;line-height:20px}
body.balanced-blue.minimal-calm #main :is(.mkt-card-meta,.mkt-card-kicker,.mkt-card-bottom,.mkt-ready,.mkt-age){font-size:12px!important;line-height:16px;color:var(--secondary)}
body.balanced-blue.minimal-calm #main .mkt-card-bottom{font-variant-numeric:tabular-nums}
body.balanced-blue.minimal-calm #main .mkt-age.attention{background:transparent;color:var(--ink);font-weight:500}
/* the move-on arrow is a quiet square button, not a pink glyph */
body.balanced-blue.minimal-calm #main .mkt-forward{display:grid;place-items:center;min-width:24px;min-height:24px;padding:0 4px;border-radius:6px;background:transparent;color:var(--secondary);font-size:15px;line-height:1}
body.balanced-blue.minimal-calm #main .mkt-forward:hover{background:var(--soft);color:var(--ink)}
/* chips on a card: an outline pill, words in ink. footage and asset states keep a tone on the small icon only */
body.balanced-blue.minimal-calm #main .mkt-card .mkt-meta-chip{min-height:20px;padding:0 7px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--secondary);font-size:11.5px!important;font-weight:500;line-height:1}
body.balanced-blue.minimal-calm #main .mkt-filming-meta .mkt-meta-chip{padding:0;border:0;background:transparent}
body.balanced-blue.minimal-calm #main .mkt-asset-badge{gap:5px;min-height:20px;padding:0 7px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink);font-size:11.5px;font-weight:500;line-height:1}
body.balanced-blue.minimal-calm #main .mkt-asset-badge .icon{width:12px;height:12px}
body.balanced-blue.minimal-calm #main .mkt-asset-badge.is-ready .icon{color:var(--ok)}
body.balanced-blue.minimal-calm #main .mkt-asset-badge.is-needed{font-weight:500}
body.balanced-blue.minimal-calm #main .mkt-asset-badge.is-needed .icon{color:var(--warn)}
body.balanced-blue.minimal-calm #main .mkt-add{padding:8px 4px;font-size:12px;line-height:16px;color:var(--secondary)}
body.balanced-blue.minimal-calm #main .mkt-add:hover{color:var(--ink)}
body.balanced-blue.minimal-calm #main .mkt-column-empty{padding:16px 12px;border:1px dashed var(--line);border-radius:var(--r-card);background:color-mix(in srgb,var(--soft) 40%,transparent);color:var(--secondary);font-size:12px;line-height:18px}
body.balanced-blue.minimal-calm #main .data-table .mkt-rowlink:hover{color:var(--ink)}

/* ---------- d. student calls ---------- */
/* the planner opens as a centre pop-up from client success > today now ("plan calls"), so these read inside the
   pop-up as well as on the old page */

body.balanced-blue.minimal-calm :is(#main,#drawer) .student-calls{gap:12px;font-size:13px;line-height:20px;color:var(--ink)}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-layout{gap:18px}
/* a message above the page: the hairline notice row */
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-status:not(:empty){justify-content:space-between;gap:8px 16px;padding:8px 8px 8px 14px;border:1px solid var(--line);border-radius:var(--r-card);background:var(--surface);font-size:13px;line-height:20px}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-status .btn{min-height:28px;padding:4px 10px;font-size:12px}

/* the queue: a card with its count at the right of the title, a switch, a search, then person rows */
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-queue{gap:12px;padding:16px}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-section-head{min-height:0;margin:0}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-section-head>span{font-size:13px;font-variant-numeric:tabular-nums;color:var(--secondary)}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-queue-list{scrollbar-color:var(--scroll) transparent}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-candidate{gap:6px;padding:12px 0;border-bottom:1px solid var(--line)}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-candidate:first-child{padding-top:0}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-candidate:last-child{padding-bottom:0;border-bottom:0}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-person{gap:8px}
/* avatars: a round soft tile with second ink initials, like every list row */
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-avatar{width:28px;height:28px;border:1px solid var(--line);background:var(--soft);color:var(--secondary);font-size:11px;font-weight:600}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-name{max-width:calc(100% - 36px);font-size:13px;font-weight:500;line-height:20px;color:var(--ink)}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-renewal .calls-name{padding:0;border-radius:0;background:transparent;color:var(--ink)}
/* priority and missed: a dot and plain words, not a red slab */
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-priority{display:inline-flex;align-items:center;gap:6px;justify-self:start;padding:0;border-radius:0;background:transparent;color:var(--ink);font-size:12px;font-weight:500;line-height:16px}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-priority::before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:var(--accent)}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-candidate>.calls-priority::before{background:var(--bad)}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-meta{font-size:12px;line-height:16px;color:var(--secondary)}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-note{font-size:13px;line-height:20px;color:var(--ink)}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-row-actions{gap:6px}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-row-actions .btn{min-height:28px;padding:4px 10px;font-size:12px;white-space:nowrap}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-empty{padding:12px 0;font-size:12px;line-height:18px;color:var(--secondary)}

/* the week: its name and time zone left, the week buttons right, then a column per call day */
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-week{gap:12px}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-week-heading{align-items:center}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-week-heading h2{font-size:17px;line-height:24px;font-weight:600;letter-spacing:-.01em;color:var(--ink)}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-week-heading>div:first-child{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 10px}
/* the time zone is a quiet text button beside the name */
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-week-heading [data-calls-settings]{min-height:20px;margin:0;padding:0;border:0;border-radius:4px;background:transparent;color:var(--secondary);font-size:12px;font-weight:400;line-height:16px;text-decoration:underline;text-decoration-color:var(--line-strong);text-underline-offset:3px}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-week-heading [data-calls-settings]:hover{background:transparent;color:var(--ink)}
/* the week row is the today tab's (csm-day.css "which day"): a quiet "this week" only while another week shows, then
   back, the week, forward. 32px controls; the week label holds its width so the arrows stay put */
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-week-nav{flex-wrap:nowrap;gap:8px;margin-left:auto}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-week-arrows{display:flex;align-items:center;gap:2px}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-arrow{display:inline-flex;flex:none;align-items:center;justify-content:center;width:32px;height:32px;min-height:32px;margin:0;padding:0;border:1px solid var(--control-border);border-radius:var(--r-control);background:var(--control-face);box-shadow:none;color:var(--secondary);line-height:1;cursor:pointer;transition:background-color .15s,color .15s}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-arrow svg{width:16px;height:16px}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-arrow:hover{background:var(--soft);color:var(--ink)}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-week-label{min-width:108px;padding:0 6px;font-size:13px;font-weight:500;line-height:20px;color:var(--ink);text-align:center;white-space:nowrap;font-variant-numeric:tabular-nums}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-week-today{display:inline-flex;align-items:center;height:32px;min-height:32px;margin:0;padding:0 8px;border:0;border-radius:var(--r-control);background:transparent;box-shadow:none;color:var(--secondary);font:inherit;font-size:13px;font-weight:500;line-height:1;cursor:pointer;transition:background-color .15s,color .15s}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-week-today:hover{background:var(--soft);color:var(--ink)}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-days{gap:12px}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-day{gap:8px;border-radius:var(--r-card)}
/* a day's head is the soft rounded bar a table head uses */
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-day>header{flex-direction:row;align-items:center;justify-content:space-between;gap:8px;min-height:32px;padding:0 12px;border-radius:var(--r-control);background:var(--soft)}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-day h3{font-size:13px;font-weight:600;line-height:20px;color:var(--ink)}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-day>header span{font-size:12px;font-variant-numeric:tabular-nums;color:var(--secondary)}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-day-slots{gap:8px}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-is-dragging .calls-day{outline:1px dashed var(--line-strong);outline-offset:4px}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-day.calls-drop-active{background:var(--pink-wash);outline:1px solid var(--accent);outline-offset:4px}
/* side by side, a short day opens up to a comfortable drop area while a student is dragged (stacked on narrower
   screens it stays put, so the days under it don't move mid drag) */
@media(min-width:1101px){body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-is-dragging .calls-day{min-height:168px}}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-drag-source{opacity:.45}
/* a slot: an open one is a dashed box, a booked one a hairline card */
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-slot{gap:6px;padding:12px;border:1px dashed var(--line-strong);border-radius:var(--r-card);background:transparent}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-slot-filled{border:1px solid var(--line);background:var(--surface)}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-slot.calls-drop-active{border-color:var(--accent);background:var(--pink-wash)}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-slot-time{font-size:13px;line-height:20px}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-slot-time strong{font-weight:600;font-variant-numeric:tabular-nums}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-slot-time span{font-size:12px;color:var(--secondary)}
/* "add slot": a placeholder the shape of a slot card, so it's dashed and quiet (no fill, second ink), right under the
   day's last card or its header. one line, plus and words at the left, the whole tile clicks */
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-add-slot{gap:6px;min-height:36px;padding:0 12px;border:1px dashed var(--line);border-radius:var(--r-card);background:transparent;color:var(--secondary);font-size:13px;font-weight:500;line-height:20px;transition:background-color .15s,color .15s,border-color .15s}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-add-slot:hover:not(:disabled){border-color:var(--line-strong);background:var(--soft);color:var(--ink)}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-add-slot:disabled{opacity:.5;cursor:not-allowed}
/* a student row's "add": the row's one small button, a plus and the word */
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-row-actions .calls-add{gap:4px;padding:4px 10px 4px 8px}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-add svg{width:14px;height:14px}
/* the card that follows the pointer: a hairline card on the card colour with the one soft shadow a floating thing gets */
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-drag-card{gap:8px;padding:6px 14px 6px 6px;border-color:var(--line);border-radius:var(--r-card);background:var(--surface);box-shadow:0 4px 12px -2px rgba(15,23,42,.14)}
body.balanced-blue.minimal-calm.theme-dark :is(#main,#drawer) .calls-drag-card{box-shadow:0 4px 12px -2px rgba(0,0,0,.5)}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-drag-card .calls-avatar{width:28px;height:28px}

/* the invitation review on a booked card */
body.balanced-blue.minimal-calm :is(#main,#drawer) .renewal-review-card{gap:6px;padding-top:8px;border-top:1px solid var(--line);font-size:12px;line-height:16px}
body.balanced-blue.minimal-calm :is(#main,#drawer) .renewal-review-status{color:var(--secondary)}
body.balanced-blue.minimal-calm :is(#main,#drawer) .renewal-review-card .btn{min-height:28px;padding:4px 10px;font-size:12px}

/* focus inside these screens: grey on buttons, pink on fields */
body.balanced-blue.minimal-calm :is(#main,#drawer) :is(.student-calls,.calls-form,.renewal-review) :is(button,summary,a):focus-visible{outline:2px solid var(--ring);outline-offset:2px}
body.balanced-blue.minimal-calm :is(#main,#drawer) :is(.student-calls,.calls-form) :is(input,select,textarea):focus-visible{outline:2px solid var(--accent);outline-offset:1px}

/* the call and slot forms */
body.balanced-blue.minimal-calm #drawer .calls-form{gap:14px;max-width:none}
body.balanced-blue.minimal-calm #drawer .calls-field{gap:6px;font-size:12px}
body.balanced-blue.minimal-calm #drawer .calls-field>span{font-size:12px;font-weight:500;line-height:18px;color:var(--secondary)}
body.balanced-blue.minimal-calm #drawer .calls-field :is(.hq-select,.hq-select-trigger){width:100%}
body.balanced-blue.minimal-calm #drawer .calls-check{gap:8px;min-height:28px;font-size:13px;line-height:20px;color:var(--ink)}
body.balanced-blue.minimal-calm #drawer .calls-check input{width:16px;height:16px}
body.balanced-blue.minimal-calm #drawer .calls-form [role=status]{font-size:12px;line-height:18px;color:var(--secondary)}
body.balanced-blue.minimal-calm #drawer .calls-form [role=status]:empty{display:none}
body.balanced-blue.minimal-calm #drawer .calls-form-actions{gap:8px;padding-top:4px}
body.balanced-blue.minimal-calm #drawer .calls-form>p:not([class]){margin:0;font-size:13px;line-height:20px;color:var(--secondary)}

/* the renewal invitation pop-up */
body.balanced-blue.minimal-calm #drawer .renewal-review{gap:12px;max-width:none;font-size:13px;line-height:20px}
body.balanced-blue.minimal-calm #drawer .renewal-review-person strong{font-size:14px;font-weight:600;line-height:20px}
body.balanced-blue.minimal-calm #drawer .renewal-review-date{font-size:12px;color:var(--secondary)}
body.balanced-blue.minimal-calm #drawer .renewal-review-heading{font-size:13px;font-weight:600}
body.balanced-blue.minimal-calm #drawer .renewal-review-draft{padding:12px 14px;border:1px solid var(--line);border-radius:var(--r-card);background:var(--surface);font-size:14px;line-height:24px}
body.balanced-blue.minimal-calm #drawer .renewal-review a{color:var(--ink);text-decoration-color:var(--line-strong)}
body.balanced-blue.minimal-calm #drawer .renewal-review a:hover{color:var(--ink);text-decoration-color:var(--ink)}
body.balanced-blue.minimal-calm #drawer .renewal-review-actions{gap:8px}
body.balanced-blue.minimal-calm #drawer .renewal-review :is(.renewal-review-reason,.renewal-review-connection,.renewal-review-feedback,.renewal-review-receipt){color:var(--secondary)}

@media(max-width:680px){
  body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-row-actions .btn,
  body.balanced-blue.minimal-calm :is(#main,#drawer) .renewal-review-card .btn{min-height:36px}
  body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-add-slot{min-height:40px}
  /* the week row takes its own line under the title: the arrows first, "this week" after them */
  body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-week-nav{width:100%;justify-content:flex-start;margin-left:0}
  body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-week-today{order:1}
}
@media(pointer:coarse){
  body.balanced-blue.minimal-calm :is(#main,#drawer) :is(.calls-arrow,.calls-week-today){height:40px;min-height:40px}
  body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-arrow{width:40px}
}

/* ---------- e. developer ---------- */

body.balanced-blue.minimal-calm #main .ful-developer-page>.ful-section+.ful-section{margin-top:18px}
/* the lines under the table and inside the account cards are small second ink */
body.balanced-blue.minimal-calm #main.page-developer .ful-help{margin:10px 0 0;max-width:72ch;font-size:12px;line-height:18px;color:var(--secondary)}
body.balanced-blue.minimal-calm #main .usage-panel .ful-sectionhead{align-items:center}
body.balanced-blue.minimal-calm #main .usage-actions{gap:8px}

/* an ai account: a card with its name, one status line, then a meter per limit */
body.balanced-blue.minimal-calm #main .usage-accounts{gap:12px;margin-top:0}
body.balanced-blue.minimal-calm #main .usage-account{padding:16px}
body.balanced-blue.minimal-calm #main .usage-account-heading{align-items:flex-start;gap:12px}
body.balanced-blue.minimal-calm #main .usage-provider{margin-bottom:2px;font-size:12px;line-height:16px;color:var(--secondary)}
body.balanced-blue.minimal-calm #main .usage-account h3{margin:0;font-size:15px;line-height:22px;font-weight:600;letter-spacing:-.01em;color:var(--ink)}
body.balanced-blue.minimal-calm #main .usage-account-heading p{font-size:12px;line-height:16px;color:var(--secondary)}
body.balanced-blue.minimal-calm #main .usage-account .usage-actions{gap:2px;flex-wrap:nowrap}
/* rename, reconnect, remove: quiet text buttons */
body.balanced-blue.minimal-calm #main .usage-account .ful-link{min-height:28px;padding:0 8px;border:0;border-radius:var(--r-control);background:transparent;color:var(--secondary);font-size:12px;font-weight:500;text-decoration:none;cursor:pointer}
body.balanced-blue.minimal-calm #main .usage-account .ful-link:hover:not(:disabled){background:var(--soft);color:var(--ink)}
body.balanced-blue.minimal-calm #main .usage-connection{display:flex;align-items:center;gap:6px;margin:12px 0;font-size:12px;line-height:16px;color:var(--secondary)}
/* a problem gets a dot: red when the account needs reconnecting, amber when a typed reading is old */
body.balanced-blue.minimal-calm #main .usage-account:has(.usage-warning) .usage-connection,
body.balanced-blue.minimal-calm #main .usage-manual .usage-connection{color:var(--ink);font-weight:500}
body.balanced-blue.minimal-calm #main .usage-account:has(.usage-warning) .usage-connection::before,
body.balanced-blue.minimal-calm #main .usage-manual .usage-connection::before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:var(--bad)}
body.balanced-blue.minimal-calm #main .usage-manual .usage-connection::before{background:var(--warn)}
body.balanced-blue.minimal-calm #main .usage-warning{margin:0 0 12px;font-size:12px;line-height:18px;color:var(--secondary)}
body.balanced-blue.minimal-calm #main .usage-meters{gap:16px;margin-top:12px}
body.balanced-blue.minimal-calm #main .usage-meter>div{align-items:baseline;font-size:12px;line-height:16px}
body.balanced-blue.minimal-calm #main .usage-meter>div>span{color:var(--secondary)}
body.balanced-blue.minimal-calm #main .usage-meter strong{font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--ink)}
body.balanced-blue.minimal-calm #main .usage-meter progress{height:6px;margin-top:8px}
body.balanced-blue.minimal-calm #main .usage-meter small{margin-top:6px;font-size:12px;line-height:16px;font-variant-numeric:tabular-nums;color:var(--secondary)}
/* a typed reading: the label left, the number right at tile size */
body.balanced-blue.minimal-calm #main .usage-manual-reading{align-items:baseline;gap:12px;margin:12px 0 0;font-size:12px;line-height:16px;color:var(--secondary)}
body.balanced-blue.minimal-calm #main .usage-manual-reading strong{font-size:20px;line-height:28px;font-weight:600;letter-spacing:-.01em;font-variant-numeric:tabular-nums;color:var(--ink)}
body.balanced-blue.minimal-calm #main .usage-manual-reading small{margin-top:0;font-size:12px;line-height:16px;color:var(--secondary)}
body.balanced-blue.minimal-calm #main .usage-account>.ful-help{margin-top:12px}
/* "checked 15m ago" / "not checked yet" and "no reading" under a dash are decoration. a reset time stays,
   and so does "needs update", which asks for something */
body.balanced-blue.minimal-calm #main .usage-account>.ful-help:last-child:not(:has(br)),
body.balanced-blue.minimal-calm #main .usage-manual-reading strong>small{display:none}
/* a service's connected plans in its pop-up */
body.balanced-blue.minimal-calm #drawer .spend-plan-list{gap:6px;margin:12px 0}
body.balanced-blue.minimal-calm #drawer .spend-plan-list p{font-size:13px;line-height:20px;color:var(--ink)}
body.balanced-blue.minimal-calm #drawer .spend-detail-note{margin-top:2px;font-size:12px;line-height:16px;color:var(--secondary)}
body.balanced-blue.minimal-calm #drawer .usage-reset-fields{gap:12px}

@media(max-width:650px){
  body.balanced-blue.minimal-calm #main .usage-account{padding:14px}
  /* on a phone the account's buttons sit under its name, so the email keeps one line */
  body.balanced-blue.minimal-calm #main .usage-account-heading{flex-direction:column;align-items:flex-start;gap:8px}
  body.balanced-blue.minimal-calm #main .usage-account .usage-actions{flex-wrap:wrap;justify-content:flex-start;max-width:none;margin-left:-8px}
}

/* ---------- f. the frame around the dashboard pages ---------- */

/* off the main address the page is one small card with a line and a button. it lines up with every other page */
body.balanced-blue.minimal-calm #main:has(.dashboard-frame-page:not(.is-framed)){padding-inline:max(24px,calc((100% - 1400px) / 2));padding-bottom:40px}
body.balanced-blue.minimal-calm #main .dashboard-frame-away{gap:12px;max-width:520px;padding:16px;border:1px solid var(--line);border-radius:var(--r-card);background:var(--surface)}
body.balanced-blue.minimal-calm #main .dashboard-frame-away p{font-size:13px;line-height:20px;color:var(--secondary)}
body.balanced-blue.minimal-calm #main .dashboard-frame-away a:not(.btn){color:var(--ink);text-decoration-color:var(--line-strong)}
body.balanced-blue.minimal-calm #main .dashboard-frame-away a:not(.btn):hover{text-decoration-color:var(--ink)}
body.balanced-blue.minimal-calm #main .dashboard-frame{border:1px solid var(--line);border-radius:var(--r-card);background:var(--page)}
/* framed edge to edge: the dashboard page is the page, so the frame adds nothing of its own */
body.balanced-blue.minimal-calm #main .dashboard-frame-page.is-framed .dashboard-frame{border:0;border-radius:0;background:transparent}
@media(max-width:850px){
  body.balanced-blue.minimal-calm #main:has(.dashboard-frame-page:not(.is-framed)){padding-inline:16px;padding-bottom:32px}
}

/* ---------- g. simplify pass (2026-10-03) ---------- */

/* personal brand: "new" beside a number only says there is nothing to compare it with yet */
body.balanced-blue.minimal-calm #main .mkt-trend.unknown{display:none}

/* students to call: one row each like the dashboard's person rows. the picture and name with the reason under
   them on the left, the row's one button on the right */
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-candidate{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:12px;row-gap:2px;padding:10px 0}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-candidate>:not(.calls-row-actions){grid-column:1}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-candidate>.calls-row-actions{grid-column:2;grid-row:1 / span 2;align-self:center;justify-content:flex-end}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-candidate>:is(.calls-meta,.calls-note,.calls-priority){padding-left:36px}
body.balanced-blue.minimal-calm :is(#main,#drawer) .calls-candidate>.calls-person{min-width:0}

/* developer: the sentence under the spend table repeated what every "add price" in the table already says */
body.balanced-blue.minimal-calm #main.page-developer .ful-section>p.ful-help:not([role=status]){display:none}
/* (the ai accounts note has role=status: it carries the refresh error, "loading…" and "sign in", so it stays) */

/* personal brand: no small grey words beside a card title (the dashboard's card titles have none). "recent feed",
   "latest available posts" and the weekly rhythm line only repeat the cards under them */
body.balanced-blue.minimal-calm #main .mkt-sectionhead>span.muted{display:none}

@media(prefers-reduced-motion:reduce){
  body.balanced-blue.minimal-calm #main :is(.mkt-content-card,.mkt-card,.mkt-story-day){transition:none}
}
