/* Inkore Executive Assistant · product styles on top of ../shared/base.css (light Inkore look). */
:root {
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sheet: #fffefb;
  --shadow-lg: 0 30px 80px -40px rgba(36, 59, 66, 0.35), 0 2px 0 rgba(255, 255, 255, 0.7) inset;
  --top-h: 64px;
  --sage-deep: #2c5a50; --blue-deep: #2f566f; /* AA on the soft tints */
}
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--top-h) + 16px); }
body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 92% -8%, rgba(198, 216, 227, 0.62), transparent 62%),
    radial-gradient(900px 560px at -12% 18%, rgba(202, 219, 211, 0.55), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(231, 220, 198, 0.45), transparent 60%),
    var(--page);
  background-attachment: fixed;
}
body:not(.ready) main { visibility: hidden; }
.serif { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
.ic { width: 18px; height: 18px; flex: none; }
.ic.big { width: 34px; height: 34px; color: var(--accent); }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
.muted { color: var(--muted); }
.help { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.sr-only { white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 10px; }
.noscript { padding: 40px; text-align: center; }

/* buttons */
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; color: var(--ink); font-weight: 500; text-decoration: none; line-height: 1.2;
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 0.5em 1.05em;
  transition: background var(--fast) var(--ease), box-shadow var(--fast) var(--ease), transform var(--fast) var(--ease), border-color var(--fast);
}
button:hover:not(:disabled), .button:hover { background: #fff; border-color: rgba(57, 85, 91, 0.22); color: var(--ink); }
button:active:not(:disabled) { transform: translateY(1px); }
button.primary, .button.primary { background: var(--accent); color: var(--on-accent); border-color: transparent; box-shadow: 0 10px 24px -14px rgba(44, 83, 88, 0.9); }
button.primary:hover:not(:disabled), .button.primary:hover { background: var(--accent-hover); color: #fff; }
button.big { min-height: 52px; padding: 0.7em 1.5em; font-size: 16px; font-weight: 600; }
button.small, .button.small { min-height: 34px; padding: 0.35em 0.85em; font-size: 13.5px; }
button.link { min-height: 0; padding: 0; border: 0; background: none; color: var(--accent); text-decoration: underline; font-weight: 600; }
.icon-btn { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
.icon-btn.small { width: 34px; height: 34px; min-height: 34px; }
.icon-btn .ic { width: 18px; height: 18px; }
.button.is-disabled { opacity: 0.5; pointer-events: none; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.wrap { margin-top: 10px; }

/* fields */
.field { display: grid; gap: 6px; margin: 14px 0 0; }
.field > span, .inline-field > span, legend { font-size: 13px; font-weight: 600; color: var(--ink); }
.inline-field { display: inline-flex; align-items: center; gap: 8px; }
.inline-field input, .inline-field select { width: auto; }
input, textarea, select { background: #fff; border-color: rgba(57, 85, 91, 0.2); min-height: 40px; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
textarea { resize: vertical; line-height: 1.6; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--accent); flex: none; margin: 0; }
.error { display: flex; align-items: flex-start; gap: 8px; color: var(--rose-ink); background: var(--rose-soft); border-radius: var(--r-sm); padding: 10px 12px; margin: 12px 0 0; font-size: 14px; }
.error .ic { margin-top: 1px; }

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 20; height: var(--top-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 28px; background: rgba(240, 242, 241, 0.78); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none;
  background: linear-gradient(145deg, #4f8183, #2c5358); box-shadow: 0 8px 18px -10px rgba(44, 83, 88, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.brand-mark .ic { width: 22px; height: 22px; }
.brand-text { display: grid; line-height: 1.1; }
.brand-kicker { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.brand-name { font-size: 16px; font-weight: 650; color: var(--ink); white-space: nowrap; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.mode-pill { min-height: 36px; padding: 0.3em 0.95em; gap: 7px; font-size: 13.5px; background: rgba(255, 255, 255, 0.7); }
.mode-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sand); box-shadow: 0 0 0 3px rgba(182, 161, 126, 0.22); }
.mode-pill.mode-own .dot { background: var(--sage-ink); box-shadow: 0 0 0 3px rgba(55, 107, 96, 0.2); }
.mode-pill.mode-inkore .dot { background: var(--blue-ink); box-shadow: 0 0 0 3px rgba(58, 102, 130, 0.2); }
.mode-pill.is-missing .dot { background: var(--rose-ink); box-shadow: 0 0 0 3px rgba(121, 83, 82, 0.2); }
.mode-k { color: var(--muted); font-weight: 600; }
.mode-v { color: var(--ink); font-weight: 600; }
.mode-warn { color: var(--rose-ink); font-weight: 600; }
.mode-short { display: none; color: var(--ink); font-weight: 600; }
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.6); }
.lang button { min-height: 30px; padding: 0 10px; border: 0; background: transparent; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* banner */
.banner {
  max-width: 1360px; margin: 16px auto 0; padding: 12px 14px 12px 20px; display: flex; align-items: center; gap: 16px; justify-content: space-between;
  background: linear-gradient(90deg, rgba(231, 220, 198, 0.85), rgba(231, 220, 198, 0.55)); border: 1px solid rgba(182, 161, 126, 0.35);
  border-radius: 18px; color: var(--sand-ink); width: calc(100% - 56px);
}
.banner p { margin: 0; font-weight: 500; }
.banner-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.banner button { min-height: 34px; font-size: 13.5px; }
.banner button:not(.primary) { background: rgba(255, 255, 255, 0.6); }

/* layout */
.shell { max-width: 1360px; margin: 0 auto; padding: 24px 28px 80px; display: grid; grid-template-columns: 228px minmax(0, 1fr); gap: 32px; align-items: start; }
main { min-width: 0; outline: none; }
.nav { position: sticky; top: calc(var(--top-h) + 20px); }
.nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px;
  color: var(--text); text-decoration: none; font-weight: 550; transition: background var(--fast), color var(--fast);
}
.nav-item:hover { background: var(--hover); color: var(--ink); }
.nav-item.is-on { background: var(--paper); color: var(--ink); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 9px 13px; }
.nav-item.is-on .ic { color: var(--accent); }
.nav-label { flex: 1; }
.nav-count { font-size: 12px; font-weight: 700; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; background: rgba(57, 85, 91, 0.09); color: var(--ink); }
.nav-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.nav-day { margin-top: 22px; padding: 14px 16px; border-radius: 16px; border: 1px dashed rgba(57, 85, 91, 0.2); display: grid; gap: 2px; }
.nav-day-k { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.nav-day strong { color: var(--ink); font-weight: 600; }

/* view heads */
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 4px 0 18px; }
.view-head h1 { font-family: var(--serif); font-size: 34px; font-weight: 600; letter-spacing: -0.015em; margin: 0; }
.view-head .sub { margin: 4px 0 0; color: var(--muted); }
.view-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.eyebrow { margin: 0 0 6px; font-size: 12px; letter-spacing: 0.13em; text-transform: uppercase; font-weight: 650; color: var(--accent); }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: rgba(57, 85, 91, 0.09); font: 700 12px/1 var(--font); color: var(--ink); vertical-align: middle; margin-left: 4px; }
.card { border-radius: var(--r-md); }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 16px; margin: 0 0 16px; }
.notice.warn { background: var(--rose-soft); color: var(--rose-ink); font-weight: 500; }
.empty { text-align: center; padding: 40px 24px; }
.empty h2 { margin: 12px 0 6px; font-size: 20px; }
.empty p { margin: 0 auto 18px; max-width: 46ch; color: var(--muted); }
.empty .row { justify-content: center; }

/* briefing: hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 30px 34px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(246, 248, 247, 0.7));
}
.hero h1 { font-size: 40px; margin: 0; }
.hero-sub { margin: 8px 0 0; color: var(--muted); font-size: 15.5px; }
.warn-text { color: var(--rose-ink); font-weight: 600; }
.hero-action { display: grid; justify-items: end; gap: 8px; max-width: 380px; }
.hero-action .hint { margin: 0; font-size: 13px; color: var(--muted); text-align: right; }
.hero-action .error { justify-self: stretch; }
.inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 16px 0 22px; }
.input-card {
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "ic k" "ic n" "v v"; column-gap: 12px; row-gap: 2px; align-items: center;
  padding: 16px 18px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow);
  text-decoration: none; color: var(--text); transition: transform var(--fast) var(--ease), box-shadow var(--fast);
}
.input-card:hover { transform: translateY(-2px); color: var(--text); box-shadow: 0 20px 50px -26px rgba(36, 59, 66, 0.35); }
.ic-wrap { grid-area: ic; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.ic-wrap.blue { background: var(--blue-soft); color: var(--blue-ink); }
.ic-wrap.sage { background: var(--sage-soft); color: var(--sage-ink); }
.ic-wrap.sand { background: var(--sand-soft); color: var(--sand-ink); }
.input-k { grid-area: k; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 650; }
.input-card strong { grid-area: n; color: var(--ink); font-size: 17px; }
.input-v { grid-area: v; margin-top: 10px; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* briefing: progress */
.progress { display: flex; gap: 24px; align-items: center; padding: 28px 32px; border-radius: var(--r-lg); }
.orb { position: relative; width: 64px; height: 64px; flex: none; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #8fc0bf, #3c6769 60%, #24474b); box-shadow: 0 16px 40px -16px rgba(44, 83, 88, 0.9); }
.orb span { position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(60, 103, 105, 0.35); animation: pulse 1.6s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(0.85); opacity: 0.9; } 100% { transform: scale(1.35); opacity: 0; } }
.progress-title { margin: 0 0 8px; font-weight: 650; color: var(--ink); font-size: 17px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.steps li { display: flex; align-items: center; gap: 8px; color: var(--muted); opacity: 0.55; transition: opacity var(--fast), color var(--fast); }
.steps li .step-ic { opacity: 0; color: var(--sage-ink); transition: opacity var(--fast); }
.steps li.done { opacity: 1; color: var(--text); }
.steps li.done .step-ic { opacity: 1; }
.steps li.active { opacity: 1; color: var(--ink); font-weight: 600; }
.steps li.active .step-ic { opacity: 1; color: var(--accent); animation: blink 1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.elapsed { margin: 8px 0 0; font-size: 13px; color: var(--muted); min-height: 1em; font-variant-numeric: tabular-nums; }

/* briefing: preview */
.preview { padding: 28px 32px; border-radius: var(--r-lg); }
.preview h2 { font-size: 24px; margin-bottom: 16px; }
.preview-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); gap: 12px; }
.preview-list li { display: flex; gap: 12px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.6); border: 1px solid var(--line); }
.preview-list .ic { color: var(--accent); margin-top: 2px; }
.preview-list strong { display: block; color: var(--ink); }
.preview-list span { font-size: 13.5px; color: var(--muted); }

/* the briefing / prep "paper" */
.paper { background: var(--sheet); border: 1px solid rgba(57, 85, 91, 0.1); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 34px 40px 38px; }
.brief-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.brief-head h2 { font-size: 30px; margin: 0; }
.brief-head .meta { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tools { display: flex; gap: 8px; flex-wrap: wrap; }
.tools button { min-height: 36px; font-size: 13.5px; padding: 0.4em 0.9em; }
.stale { display: flex; gap: 8px; align-items: center; color: var(--sand-ink); background: var(--sand-soft); padding: 10px 14px; border-radius: 12px; margin: 14px 0 0; font-size: 14px; }
.b-sec { margin-top: 26px; }
.b-sec h3 { font: 700 12px/1.2 var(--font); letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; display: flex; align-items: center; gap: 6px; }
.lede { font-size: 20px; line-height: 1.6; color: var(--ink); margin: 0; max-width: 70ch; font-weight: 450; }
.prio { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.prio li { display: flex; gap: 14px; padding: 18px; border-radius: 18px; background: linear-gradient(160deg, rgba(198, 216, 227, 0.35), rgba(202, 219, 211, 0.3)); border: 1px solid var(--line); }
.prio .num { font-size: 34px; line-height: 1; color: var(--accent); min-width: 22px; }
.prio strong { color: var(--ink); display: block; line-height: 1.35; }
.prio p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.b-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px; }
.b-side .b-sec:first-child { margin-top: 26px; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 77px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--line), rgba(57, 85, 91, 0.18), var(--line)); }
.tl { display: grid; grid-template-columns: 62px 32px minmax(0, 1fr); gap: 0 0; align-items: start; padding: 7px 0; }
.tl time { font-variant-numeric: tabular-nums; font-weight: 650; color: var(--ink); font-size: 14px; line-height: 1.25; padding-top: 6px; }
.tl time span { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }
.tl-dot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; margin-left: 2px; background: var(--blue-soft); color: var(--blue-ink); border: 2px solid var(--sheet); }
.tl-dot .ic { width: 14px; height: 14px; }
.tl.kind-focus .tl-dot { background: var(--sage-soft); color: var(--sage-ink); }
.tl.kind-travel .tl-dot { background: var(--sand-soft); color: var(--sand-ink); }
.tl.kind-break .tl-dot { background: var(--lilac-soft); color: var(--lilac-ink); }
.tl.kind-personal .tl-dot { background: var(--rose-soft); color: var(--rose-ink); }
.tl-body { padding: 4px 0 4px 12px; display: grid; gap: 1px; }
.tl-body strong { color: var(--ink); font-weight: 600; line-height: 1.35; }
.tl-note { font-size: 13.5px; color: var(--muted); }
.tl-kind { font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.tl.is-clash .tl-body { background: rgba(229, 213, 209, 0.55); border-radius: 12px; padding: 6px 10px; margin-left: 8px; }
.tl.is-clash .tl-kind b { color: var(--rose-ink); }

.b-replies ul, .b-risks ul, .b-fu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.b-replies li { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.r-main { min-width: 0; }
.r-main p { margin: 0; }
.r-who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--ink); }
.by { font-size: 12px; font-weight: 650; color: var(--sand-ink); background: var(--sand-soft); border-radius: 999px; padding: 0.15em 0.6em; }
.r-subj { font-size: 13.5px; color: var(--text); font-weight: 500; }
.r-why { font-size: 13.5px; color: var(--muted); }
.b-replies button { flex: none; }
.risk { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: rgba(202, 219, 211, 0.35); }
.risk p { margin: 0; font-size: 14px; color: var(--ink); }
.level { flex: none; font-size: 11px; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 999px; padding: 0.3em 0.65em; margin-top: 1px; background: var(--sage-soft); color: var(--sage-deep); }
.risk-high { background: rgba(229, 213, 209, 0.7); }
.risk-high .level { background: var(--rose-ink); color: #fff; }
.risk-medium { background: rgba(231, 220, 198, 0.55); }
.risk-medium .level { background: var(--sand-soft); color: var(--sand-ink); border: 1px solid rgba(114, 93, 58, 0.25); }
.b-fu li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink); }
.b-fu li .ic { color: var(--accent); margin-top: 2px; }
.b-fu li div { display: grid; }
.b-fu small { color: var(--muted); font-size: 12.5px; }
.b-fu .note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }

.reveal .b-sec { animation: rise 520ms var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms + 120ms); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* calendar */
.agenda { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.event { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 16px 18px; }
.event.is-clash { border-color: rgba(121, 83, 82, 0.35); box-shadow: 0 0 0 3px rgba(229, 213, 209, 0.6), var(--shadow); }
.ev-time { display: grid; font-variant-numeric: tabular-nums; padding-top: 2px; }
.ev-time strong { color: var(--ink); font-size: 17px; }
.ev-time span { color: var(--muted); font-size: 13.5px; }
.ev-body h3 { margin: 0 0 4px; font-size: 16.5px; }
.ev-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: 13.5px; color: var(--muted); }
.ev-meta span { display: inline-flex; align-items: center; gap: 5px; }
.ev-meta .ic { width: 15px; height: 15px; }
.ev-notes { margin: 8px 0 0; font-size: 14px; color: var(--text); white-space: pre-wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; margin: 10px 8px 0 0; font-size: 12.5px; font-weight: 600; padding: 0.3em 0.75em; border-radius: 999px; background: rgba(57, 85, 91, 0.07); color: var(--text); }
.chip.warn { background: var(--rose-soft); color: var(--rose-ink); }
.chip .ic { width: 14px; height: 14px; }
.ev-actions { display: flex; gap: 6px; align-items: center; }
.free { display: flex; align-items: center; gap: 8px; color: var(--sage-ink); font-size: 14px; font-weight: 500; margin: 16px 0 0; }

/* tasks */
.add-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px; margin-bottom: 22px; }
.add-row > input:first-of-type { flex: 1 1 260px; }
.add-row .narrow { flex: 0 1 180px; width: auto; }
.task-group { margin-bottom: 24px; }
.task-group h2, .sub-h { font-size: 15px; font-weight: 700; letter-spacing: 0.02em; margin: 0 0 10px; }
.tasks, .fu-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.task, .fu { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 6px 20px -16px rgba(36, 59, 66, 0.4); }
.task label, .fu label { flex: 1; color: var(--ink); cursor: pointer; font-weight: 500; min-width: 0; }
.task.is-done label, .fu.is-done label { text-decoration: line-through; color: var(--muted); }
.pri { font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.3em 0.65em; border-radius: 999px; background: var(--sage-soft); color: var(--sage-deep); }
.pri-high .pri { background: var(--rose-soft); color: var(--rose-ink); }
.pri-medium .pri { background: var(--blue-soft); color: var(--blue-deep); }
.due { font-size: 13px; color: var(--muted); white-space: nowrap; }
.due.late { color: var(--rose-ink); font-weight: 600; }
.task-actions { display: flex; gap: 4px; }
.task-actions .icon-btn, .fu .icon-btn, .ev-actions .icon-btn { background: transparent; border-color: transparent; color: var(--muted); }
.task-actions .icon-btn:hover, .fu .icon-btn:hover, .ev-actions .icon-btn:hover { background: #fff; border-color: var(--line); color: var(--ink); }
.task.editing { padding: 10px; }
.task-edit { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; width: 100%; }
.task-edit > input:first-of-type { flex: 1 1 240px; }

/* inbox */
.inbox { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 18px; align-items: start; }
.mail-list { list-style: none; margin: 0; padding: 6px; display: grid; gap: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); position: sticky; top: calc(var(--top-h) + 20px); max-height: calc(100vh - var(--top-h) - 40px); overflow: auto; }
.mail-item { display: grid; gap: 3px; padding: 12px 14px; border-radius: 14px; text-decoration: none; color: var(--text); border: 1px solid transparent; }
.mail-item:hover { background: rgba(255, 255, 255, 0.85); color: var(--text); }
.mail-item.is-on { background: #fff; border-color: rgba(60, 103, 105, 0.35); box-shadow: 0 8px 24px -18px rgba(36, 59, 66, 0.5); }
.mail-item.is-replied { opacity: 0.72; }
.mi-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.mi-from { font-weight: 650; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mi-top time { font-size: 12.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mi-subj { font-weight: 550; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mi-snip { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tags { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.tag { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.25em 0.6em; border-radius: 999px; background: var(--sand-soft); color: var(--sand-ink); }
.tag.ok { background: var(--sage-soft); color: var(--sage-deep); }
.tag.soft { background: rgba(57, 85, 91, 0.08); color: var(--muted); }
.tag.accent { background: rgba(60, 103, 105, 0.13); color: var(--accent-hover); }
.mail-pane { display: grid; gap: 16px; min-width: 0; }
.pick { display: grid; place-items: center; gap: 8px; padding: 60px 24px; text-align: center; color: var(--muted); }
.back { display: none; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.reader { padding: 22px 26px; }
.reader h2 { font-size: 22px; margin: 0; }
.reader .meta { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.reader .meta strong { color: var(--ink); }
.addr { color: var(--muted); }
.mail-body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); color: var(--ink); line-height: 1.65; }
.reader-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.reader-tools .icon-btn { margin-left: auto; }
.composer { padding: 22px 26px; background: linear-gradient(170deg, rgba(255, 255, 255, 0.95), rgba(246, 248, 247, 0.85)); }
.composer-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.composer-head h3 { margin: 0; font-size: 17px; }
.composer-head .meta { margin: 0; font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.tone { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(57, 85, 91, 0.07); gap: 2px; margin-bottom: 4px; }
.tone button { border: 0; background: transparent; min-height: 34px; padding: 0 16px; font-size: 14px; color: var(--muted); font-weight: 600; }
.tone button[aria-checked="true"] { background: #fff; color: var(--ink); box-shadow: 0 4px 12px -6px rgba(36, 59, 66, 0.45); }
.composer .row { margin-top: 14px; }
.composer textarea { font-size: 15px; background: #fff; min-height: 220px; }
.composer-tools { justify-content: flex-start; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(60, 103, 105, 0.2); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* meeting prep */
.prep-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; padding: 2px 0 12px; margin-bottom: 8px; }
.ev-chip { position: relative; display: grid; align-content: start; gap: 2px; min-width: 0; padding: 12px 16px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--text); box-shadow: 0 6px 18px -14px rgba(36, 59, 66, 0.45); }
.ev-chip time { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; font-size: 13px; }
.ev-chip span { font-size: 14px; font-weight: 550; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-chip:hover { color: var(--text); background: #fff; }
.ev-chip.is-on { background: var(--ink); border-color: var(--ink); }
.ev-chip.is-on time { color: #a9d7d8; }
.ev-chip.is-on span { color: #fff; }
.ev-chip .ready { position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
.prep-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px 24px; margin-bottom: 18px; }
.prep-head h2 { margin: 0; font-size: 22px; }
.prep-head .muted { margin: 6px 0 0; display: flex; align-items: center; gap: 6px; font-size: 14px; }
.prep-head .error { flex-basis: 100%; }
.pick-hint { margin-top: 10px; }
.p-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; }
.prep ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; color: var(--ink); }
.prep li::marker { color: var(--accent); }
.p-att ul { list-style: none; padding: 0; }
.p-att li { display: grid; gap: 2px; }
.p-att li span { color: var(--muted); font-size: 14px; }
.p-after button { margin-top: 14px; }

/* follow-ups */
.fu-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.fu-meta span { display: inline-flex; align-items: center; gap: 5px; }
.fu-meta .ic { width: 14px; height: 14px; }
.src { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 650; }
.sub-h { margin-top: 24px !important; }

/* dialogs */
dialog.sheet { border: 0; padding: 0; background: transparent; color: var(--text); max-width: min(640px, calc(100vw - 24px)); width: 100%; max-height: calc(100vh - 32px); }
dialog.sheet::backdrop { background: rgba(32, 60, 67, 0.32); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.dlg { background: var(--sheet); border-radius: 26px; box-shadow: 0 40px 90px -30px rgba(20, 40, 45, 0.55); display: flex; flex-direction: column; max-height: calc(100vh - 32px); }
.dlg.wide { max-width: none; }
.dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px 8px; }
.dlg-head h2 { margin: 0; font-size: 22px; font-family: var(--serif); }
.dlg-body { padding: 4px 24px 12px; overflow: auto; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px 20px; border-top: 1px solid var(--line); }
fieldset { border: 0; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); }
fieldset:first-child { border-top: 0; padding-top: 4px; margin-top: 4px; }
legend { padding: 0; margin-bottom: 8px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); float: left; width: 100%; }
legend + * { clear: both; }
.seg { display: inline-flex; gap: 6px; }
.seg label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; background: #fff; }
.modes { display: grid; gap: 8px; }
.mode-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.mode-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(60, 103, 105, 0.14); }
.mode-opt input { margin-top: 3px; }
.mode-opt strong { display: block; color: var(--ink); }
.mode-opt small { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }

/* toasts */
.toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; width: min(520px, calc(100vw - 24px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 18px; border-radius: 16px; background: var(--ink); color: #fff; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.5); animation: rise 280ms var(--ease) both; transition: opacity 300ms, transform 300ms; }
.toast.out { opacity: 0; transform: translateY(8px); }
.toast button { min-height: 30px; background: rgba(255, 255, 255, 0.14); color: #fff; border-color: transparent; font-size: 13.5px; }
.toast button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.24); color: #fff; }

/* responsive */
@media (max-width: 1180px) {
  .shell { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 20px 20px 80px; }
  .prio { grid-template-columns: 1fr; }
  .b-grid { grid-template-columns: 1fr; gap: 0; }
  .mode-k { display: none; }
}
@media (max-width: 900px) {
  :root { --top-h: 58px; }
  .topbar { padding: 0 14px; gap: 8px; }
  .shell { grid-template-columns: minmax(0, 1fr); padding: 0 14px 90px; gap: 14px; }
  .nav-item.is-on .nav-dot { background: #a9d7d8; }
  .nav { position: sticky; top: var(--top-h); z-index: 15; margin: 0 -14px; padding: 8px 14px; background: rgba(233, 235, 234, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .nav ul { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .nav ul::-webkit-scrollbar { display: none; }
  .nav-item { white-space: nowrap; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.5); }
  .nav-item.is-on { padding: 8px 12px; background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: none; }
  .nav-item.is-on .ic { color: #fff; }
  .nav-item.is-on .nav-count { background: rgba(255, 255, 255, 0.2); color: #fff; }
  .nav-day { display: none; }
  .banner { width: calc(100% - 28px); margin-top: 10px; flex-wrap: wrap; padding: 12px 14px; }
  .inbox { grid-template-columns: 1fr; }
  .mail-list { position: static; max-height: none; }
  .inbox.has-sel .mail-list { display: none; }
  .inbox:not(.has-sel) .mail-pane { display: none; }
  .back { display: inline-flex; }
  html { scroll-padding-top: calc(var(--top-h) + 70px); }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .brand-kicker { display: none; }
  .brand { gap: 9px; }
  .brand-name { font-size: 14.5px; white-space: normal; max-width: 6.5em; line-height: 1.12; }
  .brand-mark { width: 34px; height: 34px; }
  /* demo data and demo mode: the DEMO badge says it all, the mode pill would repeat it */
  .top-actions[data-flag] .mode-pill.mode-demo { display: none; }
  .top-actions { gap: 6px; }
  .top-actions .lang { display: none; }
  .mode-pill { padding: 0.3em 0.75em; font-size: 13px; }
  .mode-pill .mode-v { display: none; }
  .mode-pill .mode-short { display: inline; white-space: nowrap; }
  .mode-warn { display: none; }
  .banner-actions { width: 100%; justify-content: flex-start; }
  .banner-actions .icon-btn { margin-left: auto; }
  .view-head h1 { font-size: 28px; }
  .hero { grid-template-columns: 1fr; padding: 22px 20px; gap: 16px; border-radius: 24px; }
  .hero h1 { font-size: 30px; }
  .hero-action { justify-items: stretch; max-width: none; }
  .hero-action .hint { text-align: left; }
  .inputs { grid-template-columns: 1fr; gap: 8px; margin: 12px 0 16px; }
  .input-card { grid-template-columns: auto 1fr auto; grid-template-areas: "ic k n" "ic v v"; padding: 12px 14px; row-gap: 0; }
  .input-card strong { font-size: 14.5px; justify-self: end; }
  .input-v { margin-top: 0; }
  .ic-wrap { width: 36px; height: 36px; }
  .paper { padding: 22px 18px 26px; border-radius: 24px; }
  .brief-head h2 { font-size: 25px; }
  .lede { font-size: 17.5px; }
  .tools { width: 100%; }
  .tools button { flex: 1; padding: 0.4em 0.5em; }
  .progress { padding: 20px; gap: 16px; }
  .orb { width: 48px; height: 48px; }
  .event { grid-template-columns: 58px minmax(0, 1fr); padding: 14px; }
  .ev-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .b-replies li { flex-direction: column; align-items: stretch; }
  .b-replies button { align-self: flex-start; }
  .p-grid { grid-template-columns: 1fr; }
  .prep-pick { display: flex; overflow-x: auto; margin: 0 -14px 8px; padding: 2px 14px 12px; scrollbar-width: none; }
  .ev-chip { flex: none; width: 170px; }
  .grid3 { grid-template-columns: 1fr; }
  .reader, .composer { padding: 18px; }
  .task { flex-wrap: wrap; }
  .task label { flex: 1 1 calc(100% - 40px); }
  .task .pri { margin-left: 30px; }
  .task-actions { margin-left: auto; }
  .fu { flex-wrap: wrap; }
  .fu label { flex: 1 1 calc(100% - 80px); }
  .fu-meta { flex-basis: 100%; padding-left: 30px; }
  .view-tools { width: 100%; }
  .view-tools button { flex: 1 1 auto; }
  .dlg-head, .dlg-body, .dlg-foot { padding-left: 18px; padding-right: 18px; }
}

/* print: only the briefing or the prep sheet */
@media print {
  @page { margin: 16mm; }
  body { background: #fff !important; color: #000; font-size: 11pt; }
  .topbar, .banner, .nav, .toasts, .hero, .inputs, .no-print, dialog, .skip, .view-head, .prep-pick, .prep-head, .reader, .composer, .add-row { display: none !important; }
  .shell { display: block; padding: 0; max-width: none; }
  .paper { box-shadow: none; border: 0; padding: 0; background: #fff; }
  .reveal .b-sec { animation: none; }
  .prio li, .risk, .b-replies li { break-inside: avoid; background: #fff !important; border: 1px solid #ccc; }
  .b-grid, .p-grid { display: block; }
  .timeline::before { display: none; }
  body[data-print="briefing"] main > section > :not(#briefSlot) { display: none !important; }
  body[data-print="prep"] main [data-printable]:not([data-printable="prep"]) { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { .input-card:hover { transform: none; } }

/* long words and links (meeting links in event notes, long titles, pasted URLs) wrap instead of widening the page */
.ev-body, .ev-body h3, .ev-meta, .ev-meta span, .ev-notes, .chip,
.task label, .fu label, .fu-meta, .tl-body, .tl-body strong, .tl-note, .lede, .prio li > div, .prio strong, .prio p,
.r-main, .r-who, .r-subj, .r-why, .risk p, .b-fu li div, .b-sec li, .b-sec p, .brief-head > div, .brief-head h2,
.reader h2, .reader .meta, .composer-head .meta, .prep-head > div, .prep-head h2, .ev-chip span, .hero-text, .hero-sub, .input-card strong,
.notice, .empty p, .toast span, .mode-opt small, .help { overflow-wrap: anywhere; min-width: 0; }
.mi-from, .mi-subj, .input-v { min-width: 0; }
/* programmatic focus targets (the page, a view heading, the open email) need no ring around the text */
#main:focus, #main:focus-visible, h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; }
.b-fu .row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.small-link { font-size: 13.5px; font-weight: 600; color: var(--accent); }
.mode-opt.is-off { cursor: not-allowed; background: rgba(255, 255, 255, 0.55); }
.mode-opt.is-off strong { color: var(--muted); }
.warn-help { color: var(--sand-ink); background: var(--sand-soft); border-radius: 12px; padding: 8px 12px; }
.check.remember { display: flex; margin-top: 12px; }
