:root {
  color-scheme: light;
  --bg: #f3f5fa;
  --paper: #ffffff;
  --ink: #19263d;
  --muted: #66748a;
  --line: #e5eaf2;
  --blue: #345cf5;
  --blue-soft: #eef2ff;
  --green: #247b62;
  --green-light: #eaf6ef;
  --amber: #a47322;
  --amber-soft: #fff6e3;
  --radius: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 4px 18px #1d355508;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.7 "Hiragino Sans", -apple-system, BlinkMacSystemFont, "Noto Sans JP", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:disabled { opacity: .5; cursor: not-allowed; }
button:focus-visible, a:focus-visible { outline: 3px solid #829afb; outline-offset: 4px; }
input:focus, textarea:focus, select:focus { outline: 2px solid #819afb; outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 226px; padding: 30px 16px 0; position: fixed; inset: 0 auto 0 0; z-index: 12; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 9px; font-size: 15px; font-weight: 750; letter-spacing: .4px; }
.brand small { display: block; font-size: 10px; font-weight: 450; letter-spacing: .3px; margin-top: 2px; color: var(--muted); }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--blue); display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 9px; box-shadow: 0 4px 10px #345cf52a; }
.brand-mark i { background: #fff; border-radius: 2px; }
.brand-mark i:nth-child(2) { opacity: .5; border-radius: 50%; }
.workspace-label { margin: 31px 11px 15px; font-size: 10px; color: #8290a4; }
#nav { position: relative; isolation: isolate; }
.nav-section { font-size: 10px; color: #8a96a8; margin: 19px 13px 9px; }
.nav-link { position: relative; display: flex; align-items: center; gap: 10px; padding: 11px 13px; margin-bottom: 5px; min-height: 43px; border-radius: 10px; font-size: 12px; color: #647187; transition: color 180ms ease, background 180ms ease; }
.nav-link > span:not(.nav-count) { white-space: nowrap; }
.nav-link svg { width: 18px; height: 18px; }
.nav-link:hover { color: #263959; background: #f7f9fd; }
.nav-link.active { color: var(--blue); font-weight: 650; background: transparent; }
.nav-count { margin-left: auto; background: #e9edf7; min-width: 20px; font-size: 10px; line-height: 20px; text-align: center; border-radius: 6px; color: #7583a0; }
.nav-link.active .nav-count { color: var(--blue); background: #dfe7ff; }
.nav-count:empty { display: none; }
.nav-marker { position: absolute; top: 0; left: 0; right: 0; height: 43px; border-radius: 10px; background: var(--blue-soft); z-index: -1; transform: translateY(var(--marker-y, 0)); transition: transform 360ms var(--ease), height 240ms var(--ease), opacity 140ms ease; pointer-events: none; }
.sidebar-bottom { margin-top: auto; }
.sidebar-note { width: 100%; border: 0; text-align: left; display: flex; align-items: center; gap: 10px; margin: 22px 0; padding: 14px 12px; border-radius: 11px; background: #f5f7fd; }
.dot-mark { color: #8496ce; font-size: 25px; line-height: 1; }
.sidebar-note strong { display: block; font-size: 10px; font-weight: 600; }
.sidebar-note small { display: block; font-size: 9px; color: #7b8baa; margin-top: 4px; }
.profile { display: flex; align-items: center; gap: 10px; background: none; border: 0; border-top: 1px solid var(--line); width: 100%; padding: 18px 7px; font-size: 11px; text-align: left; }
.profile small { display: block; font-size: 9px; color: var(--muted); }
.profile-arrow { margin-left: auto; color: #8290a4; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: #e8edfb; color: #5a76bd; display: grid; place-items: center; font-size: 12px; font-weight: 650; }
.main-shell { margin-left: 226px; width: calc(100% - 226px); display: flex; flex-direction: column; min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 10; height: 68px; padding: 0 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fffffff2; backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: 11px; color: #8591a3; }
.breadcrumb span { padding: 0 11px; color: #bcc6d4; }
.breadcrumb strong { color: #485a77; font-weight: 500; }
.topbar-right { display: flex; align-items: center; gap: 20px; }
.search { display: flex; align-items: center; gap: 8px; color: #7d8ba0; }
.search svg { width: 16px; height: 16px; }
.search input { border: 0; padding: 5px; background: transparent; color: var(--ink); font-size: 11px; width: 166px; }
.search input::placeholder { color: #8b96a8; }
.search kbd { font: 10px/17px inherit; border: 1px solid #e1e6f0; border-radius: 4px; min-width: 18px; text-align: center; }
.demo-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: #7a8497; border: 1px solid #e1e7f1; border-radius: 6px; padding: 3px 8px; background: #f8faff; }
.demo-pill span { width: 5px; height: 5px; border-radius: 50%; background: #9eabc4; }
.icon-button { display: flex; align-items: center; justify-content: center; background: none; border: 0; font-size: 24px; padding: 5px; line-height: 1; color: #7e8da5; }
.mobile-menu { display: none; }
main { width: 100%; max-width: 1450px; padding: 30px 38px 38px; margin: 0 auto; flex: 1; }
main:focus { outline: none; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 25px; }
.page-heading h1 { font-size: 28px; font-weight: 650; line-height: 1.4; letter-spacing: -.8px; }
.subtitle { font-size: 12px; color: var(--muted); margin-top: 7px; }
.heading-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.eyebrow { display: none; }
.date-chip { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #637490; }
.date-chip svg { width: 16px; height: 16px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #dce3ee; border-radius: 9px; padding: 9px 14px; background: #fff; font-size: 12px; font-weight: 550; white-space: nowrap; transition: background 150ms ease, box-shadow 150ms ease, transform 150ms var(--ease); }
.button:hover { background: #f5f7fc; border-color: #c5d0e5; }
.button:active { transform: scale(.975); }
.button svg { width: 16px; height: 16px; }
.button.primary { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 3px 8px #345cf51a; }
.button.primary:hover { background: #284fe9; box-shadow: 0 4px 14px #345cf52d; }
.button.subtle { color: var(--blue); background: #f0f4ff; border-color: #e2e9ff; }
.button.subtle:hover { background: #e6edff; }
.button.small { padding: 6px 10px; font-size: 11px; }
.button.danger { color: #a15251; border-color: #ecd2d2; }
.text-button { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: #607698; font-size: 11px; }
.text-button:hover { color: var(--blue); }
.text-button svg { width: 14px; height: 14px; }
.week-strip { display: flex; gap: 16px; background: #fff; padding: 14px 20px; border: 1px solid var(--line); border-radius: 15px; margin-bottom: 17px; align-items: center; }
.week-month { min-width: 93px; padding: 0 14px 0 2px; border-right: 1px solid var(--line); }
.week-month strong { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.5px; }
.week-month span { font-size: 11px; color: #8995a9; }
.week-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 9px; flex: 1; }
.week-day { display: flex; align-items: center; flex-direction: column; padding: 9px 6px 8px; min-width: 0; border: 0; border-radius: 12px; color: #7b8aa0; background: none; transition: color 150ms, background 150ms, transform 150ms var(--ease); }
.week-day:hover { background: #f3f6ff; }
.week-day:active { transform: scale(.96); }
.week-day small { font-size: 10px; }
.week-day strong { font-size: 22px; font-weight: 550; line-height: 1.3; margin-top: 4px; font-variant-numeric: tabular-nums; }
.week-day.selected { background: var(--blue); color: #fff; box-shadow: 0 5px 12px #345cf525; }
.week-day.selected:hover { background: #284fe9; }
.week-day.weekend:not(.selected) { color: #a1adbf; }
.week-pips { display: flex; align-items: center; justify-content: center; height: 5px; margin-top: 7px; gap: 3px; }
.week-pips i { width: 3px; height: 3px; background: #a7b5dc; border-radius: 50%; }
.selected .week-pips i { background: #ffffffb3; }
.status-row { display: flex; align-items: center; gap: 22px; margin-bottom: 25px; font-size: 11px; color: #78879d; }
.status-row button { background: none; border: 0; color: inherit; padding: 0; display: inline-flex; align-items: center; gap: 6px; font-size: inherit; }
.status-row button:hover { color: var(--blue); }
.status-row svg { width: 15px; height: 15px; }
.status-row strong { color: #435d88; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.status-row .report-link { margin-left: auto; color: #5e7295; }
.today-grid { display: grid; grid-template-columns: minmax(0, 1fr) 315px; gap: 24px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 25px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 13px; }
.section-heading h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.tiny-count { color: #7388b0; background: #e8eefb; font-size: 10px; font-weight: 500; min-width: 21px; padding: 0 6px; border-radius: 5px; text-align: center; }
.section-note { font-size: 11px; color: #78879d; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel-body { padding: 24px; }
.focus-task { padding: 22px; background: #fafbff; border-bottom: 1px solid var(--line); position: relative; }
.focus-label { display: flex; align-items: center; gap: 6px; font-size: 10px; color: #8090ad; margin-bottom: 13px; }
.focus-label svg { width: 13px; height: 13px; }
.focus-main { display: flex; align-items: flex-start; gap: 13px; }
.focus-task .complete-button { width: 23px; height: 23px; margin-top: 4px; border-color: #afbfef; }
.focus-task .task-title { font-size: 17px; line-height: 1.65; font-weight: 600; letter-spacing: -.4px; }
.focus-task .task-meta { margin-top: 8px; }
.focus-footer { display: flex; align-items: center; justify-content: space-between; padding-left: 36px; margin-top: 15px; gap: 12px; }
.focus-note { color: #71819e; font-size: 11px; max-width: 80%; }
.task-row { display: flex; align-items: flex-start; gap: 13px; padding: 18px 22px; }
.task-row + .task-row { border-top: 1px solid #edf0f6; }
.complete-button { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0; border: 1.5px solid #c7d1e4; border-radius: 50%; background: #fff; color: #fff; margin-top: 3px; flex-shrink: 0; transition: border-color 150ms, background 150ms; }
.complete-button:hover { border-color: var(--blue); background: #f1f4ff; }
.complete-button.done { background: #428f78; border-color: #428f78; }
.complete-button svg { width: 12px; height: 12px; }
.task-content { flex: 1; min-width: 0; }
.task-title { display: block; font-size: 13px; font-weight: 550; line-height: 1.7; background: none; border: 0; padding: 0; text-align: left; }
.task-title:hover { color: var(--blue); }
.is-done .task-title { color: #91a193; text-decoration: line-through; }
.task-meta { margin-top: 5px; display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: #74829a; font-size: 10px; }
.project-tag { border-radius: 4px; padding: 1px 6px; font-size: 9px; color: #6582b5; background: #edf2fa; line-height: 1.8; }
.project-tag.hfs { color: #9b7c48; background: #f8f0e3; }
.project-tag.newdot { color: #8a78b4; background: #f2edfa; }
.status { display: inline-flex; align-items: center; gap: 4px; border-radius: 5px; padding: 2px 7px; font-size: 10px; white-space: nowrap; color: #79889c; background: #f0f3f8; }
.status.progress { color: #2d8169; background: #eaf5f0; }
.status.wait { color: #a07a31; background: #fff5de; }
.status.done { color: #80998c; background: #f0f5f1; }
.row-tail { display: flex; align-items: flex-end; flex-direction: column; gap: 8px; flex-shrink: 0; }
.priority { display: flex; align-items: center; gap: 5px; color: #a17b34; font-size: 10px; white-space: nowrap; }
.priority i { width: 5px; height: 5px; background: #c6a262; border-radius: 50%; }
.panel-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fcfdff; border-top: 1px solid var(--line); padding: 13px 22px; color: #7c8aa2; font-size: 10px; }
.approval-intro { font-size: 11px; color: #7b8ba5; margin: -5px 0 12px; }
.proposal-card { padding: 20px 22px; }
.proposal-card + .proposal-card { border-top: 1px solid var(--line); }
.proposal-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.source { display: inline-flex; align-items: center; gap: 5px; color: #7b8ba3; font-size: 10px; }
.source-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; font-size: 10px; border-radius: 5px; background: #f1f4fa; color: #7084a7; font-weight: 650; }
.source-icon.docs { background: #edf3ff; color: #507fca; }
.source-icon.plaud { background: #f4eefc; color: #9b79c0; }
.source-icon.gmail { background: #fcefec; color: #bf7d6c; }
.source-icon.repo { background: #f0f3f6; color: #74879d; }
.proposal-card h3 { font-size: 14px; font-weight: 600; line-height: 1.65; letter-spacing: -.2px; }
.proposal-description { font-size: 11px; color: #72839d; margin: 5px 0 14px; line-height: 1.8; }
.proposal-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.proposal-bottom .task-meta { margin: 0; }
.proposal-card .button { font-size: 11px; padding: 7px 12px; }
.timeline-panel { padding: 21px 20px; border-radius: 16px; }
.timeline-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.timeline-top h2 { font-size: 14px; font-weight: 600; }
.timeline-top .text-button { font-size: 10px; }
.day-label { display: flex; justify-content: space-between; font-size: 10px; color: #8192ab; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.time-row { display: grid; grid-template-columns: 41px 1fr; min-height: 51px; }
.time-label { padding-top: 7px; color: #8b9bb3; font-size: 10px; font-variant-numeric: tabular-nums; }
.time-content { border-top: 1px dashed #e9edf5; padding: 3px 0 5px 8px; min-width: 0; }
.event { border: 0; border-left: 3px solid #93acd9; border-radius: 7px; background: #edf3ff; padding: 8px 10px; min-height: 43px; }
.event h3 { font-size: 11px; font-weight: 550; line-height: 1.5; }
.event p { font-size: 9px; color: #7d96bd; margin-top: 3px; font-variant-numeric: tabular-nums; }
.event.meeting { border-color: #c0acd9; background: #f3eff9; }
.event.meeting p { color: #9b85b5; }
.event.proposed { background: #fff9ed; border: 1px dashed #d8b97a; border-left: 3px solid #d8b97a; }
.event.proposed p { color: #a78c58; }
.event.proposed:hover { background: #fff3d8; }
.free-slot { padding: 11px 9px; font-size: 10px; color: #a7b3c7; }
.schedule-foot { font-size: 9px; color: #91a2bd; display: flex; justify-content: center; gap: 5px; align-items: center; padding-top: 12px; }
.schedule-foot svg { width: 12px; height: 12px; }
.right-column { display: flex; flex-direction: column; gap: 16px; }
.dots-card { padding: 17px 19px; background: #eaf0fd; border-color: #dee7fb; }
.dots-card-head { display: flex; gap: 9px; align-items: center; }
.dots-orb { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: #dae5fe; color: #7792ce; border-radius: 9px; font-size: 18px; letter-spacing: -3px; padding-right: 3px; }
.dots-card-head strong { font-size: 12px; font-weight: 600; }
.dots-card-head small { margin-left: auto; font-size: 9px; color: #91a0ba; }
.dots-card p { color: #7b90b5; font-size: 11px; margin-top: 9px; line-height: 1.8; }
.dots-card .text-button { margin-top: 10px; font-size: 10px; color: #6281bf; }
.filters { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; margin-bottom: 21px; }
.filter { border: 1px solid #e2e8f2; border-radius: 8px; padding: 7px 12px; background: transparent; color: #7787a3; font-size: 11px; transition: background 150ms, color 150ms; }
.filter:hover { background: #edf2fc; }
.filter.active { background: #e7edff; color: var(--blue); border-color: #d8e2ff; font-weight: 550; }
.filters select { margin-left: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 11px; font-size: 11px; color: #7186a7; }
.proposal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 19px; }
.proposal-grid .proposal-card { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 25px; display: flex; flex-direction: column; }
.proposal-grid h3 { font-size: 16px; }
.proposal-grid .proposal-bottom { margin-top: auto; padding-top: 14px; }
.source-quote { border-left: 2px solid #d3e0fa; padding-left: 13px; color: #7a8cad; font-size: 12px; margin: 13px 0; line-height: 1.9; }
.warning { margin: 14px 0; padding: 11px 13px; border-radius: 8px; font-size: 11px; line-height: 1.8; color: #9d792f; background: var(--amber-soft); }
.empty { padding: 44px 20px; text-align: center; color: #8292ac; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.empty svg { width: 28px; height: 28px; color: #8ba3d3; }
.empty h3 { font-size: 15px; font-weight: 550; color: #637ba2; }
.empty p { font-size: 12px; }
.task-table { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.table-header, .table-row { display: grid; grid-template-columns: minmax(0, 1fr) 130px 115px 90px; gap: 0; padding: 16px 23px; align-items: center; }
.table-header { padding-top: 13px; padding-bottom: 13px; color: #8596b1; font-size: 10px; background: #fafdff; border-bottom: 1px solid var(--line); }
.table-row + .table-row { border-top: 1px solid var(--line); }
.table-title { display: flex; align-items: flex-start; gap: 12px; }
.table-cell { font-size: 11px; }
.table-cell select { max-width: 105px; border: 1px solid #e1e8f3; border-radius: 6px; background: #f6f9ff; color: #6d86ab; padding: 5px; font-size: 10px; }
.date-muted { font-size: 11px; color: #7d90ac; font-variant-numeric: tabular-nums; }
.report-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 23px; }
.report-paper { padding: 29px 32px; }
.report-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 19px; margin-bottom: 26px; }
.report-heading h2 { font-size: 19px; font-weight: 600; }
.report-heading p { font-size: 11px; color: #8396b3; margin-top: 4px; }
.report-body { font-size: 13px; line-height: 2.05; color: #647c9f; white-space: pre-wrap; min-height: 290px; }
.report-body h3 { font-size: 13px; font-weight: 600; color: #365681; margin: 22px 0 9px; }
.report-body h3:first-child { margin-top: 0; }
.report-footer { display: flex; gap: 9px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 19px; }
.report-hint { font-size: 10px; color: #91a2bb; margin-top: 16px; }
.side-info { padding: 22px; }
.side-info h3 { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.side-info p { font-size: 12px; color: #7e91b1; line-height: 1.9; }
.rule-chip { display: inline-flex; gap: 5px; margin-top: 12px; font-size: 10px; color: #7293c5; background: #eff4ff; border-radius: 6px; padding: 4px 8px; }
.side-list { list-style: none; margin: 12px 0 0; padding: 0; }
.side-list li { border-top: 1px solid var(--line); padding: 12px 0; font-size: 11px; color: #8294b1; line-height: 1.9; }
.side-list strong { display: block; font-size: 12px; font-weight: 550; color: #5b779f; }
.info-banner { display: flex; align-items: flex-start; gap: 11px; padding: 15px 19px; margin-bottom: 23px; border-radius: 10px; background: #edf3ff; color: #6384b8; border: 1px solid #dfe9fb; font-size: 12px; }
.info-banner svg { width: 18px; height: 18px; margin-top: 3px; }
.info-banner strong { font-weight: 550; }
.rule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rule-card { padding: 24px; }
.rule-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 13px; }
.rule-card h3 { font-size: 14px; font-weight: 600; }
.rule-card p { font-size: 12px; color: #7890b2; line-height: 1.9; }
.rule-meta { display: flex; flex-wrap: wrap; gap: 13px; color: #879cb9; font-size: 10px; margin-top: 13px; }
.rule-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 19px; }
.switch-label { display: flex; align-items: center; gap: 8px; color: #7d95b8; font-size: 11px; }
.switch { width: 35px; height: 21px; border-radius: 20px; background: #d7e1f2; border: 0; position: relative; padding: 0; }
.switch.on { background: #5a7beb; }
.switch-thumb { width: 15px; height: 15px; border-radius: 50%; background: #fff; position: absolute; left: 3px; top: 3px; box-shadow: 0 1px 4px #24396c21; transform: translateX(0); }
.switch.on .switch-thumb { transform: translateX(14px); }
.improvement { padding: 26px; }
.improvement + .improvement { margin-top: 20px; }
.improvement-header { display: flex; align-items: center; justify-content: space-between; gap: 13px; margin-bottom: 12px; }
.improvement h3 { font-size: 15px; font-weight: 600; }
.improvement p { font-size: 12px; color: #7a92b5; line-height: 1.9; }
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.comparison > div { border-radius: 10px; background: #f5f7fb; padding: 19px; }
.comparison > div:last-child { background: #eef4ff; }
.comparison-label { display: block; font-size: 10px; color: #899cbb; margin-bottom: 11px; }
.comparison p { font-size: 12px; white-space: pre-wrap; line-height: 1.9; }
.activity-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 23px; }
.activity-list { padding: 6px 24px; }
.activity-row { display: flex; gap: 14px; padding: 22px 0; }
.activity-row + .activity-row { border-top: 1px solid var(--line); }
.summary-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; background: #edf3ff; color: #7595cc; }
.summary-icon svg { width: 16px; height: 16px; }
.activity-content { flex: 1; min-width: 0; }
.activity-head { display: flex; justify-content: space-between; gap: 15px; align-items: flex-start; }
.activity-content h3 { font-size: 13px; font-weight: 550; }
.activity-content p { font-size: 11px; color: #8097b9; margin-top: 6px; }
.activity-head time { font-size: 10px; color: #92a3bd; white-space: nowrap; font-variant-numeric: tabular-nums; }
.activity-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 10px; color: #97a8bf; font-size: 10px; }
.connection-card { padding: 22px; }
.connection-card h3 { font-size: 14px; font-weight: 600; }
.connection-item { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--line); gap: 12px; }
.connection-item:last-child { border: 0; }
.connection-item span { font-size: 12px; }
.connection-item small { font-size: 10px; color: #8ea1bb; }
.source-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.source-card { padding: 27px; }
.source-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 19px; }
.source-card-head .source-icon { width: 35px; height: 35px; font-size: 17px; border-radius: 9px; }
.source-card h3 { font-size: 16px; font-weight: 600; }
.source-card p { font-size: 12px; color: #7f96b7; line-height: 1.9; margin: 7px 0 19px; }
.source-detail { border-top: 1px solid var(--line); padding-top: 15px; color: #8da1bc; font-size: 11px; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.calendar-toolbar .filters { margin: 0; }
.calendar-large { padding: 24px; }
.calendar-large .time-row { grid-template-columns: 57px 1fr; min-height: 72px; }
.calendar-large .time-label { font-size: 12px; }
.calendar-large .time-content { padding-left: 17px; }
.calendar-large .event { max-width: 750px; padding: 13px 16px; min-height: 58px; }
.calendar-large .event h3 { font-size: 13px; }
.calendar-large .event p { font-size: 11px; }
.calendar-notice { font-size: 11px; color: #8499b6; margin-top: 15px; }
.footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 15px 38px; font-size: 9px; color: #90a1b9; }
.detail-dialog, .modal-dialog { color: var(--ink); border: 0; padding: 0; background: #fff; }
.detail-dialog { width: 540px; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; box-shadow: -10px 0 50px #1d35551a; }
.detail-dialog::backdrop, .modal-dialog::backdrop { background: #16264642; backdrop-filter: blur(3px); animation: backdrop-in 240ms ease both; }
.detail-dialog.is-closing::backdrop, .modal-dialog.is-closing::backdrop { animation: backdrop-out 180ms ease both; }
@keyframes backdrop-in { from { background-color: #16264600; backdrop-filter: blur(0); } to { background-color: #16264642; backdrop-filter: blur(3px); } }
@keyframes backdrop-out { from { background-color: #16264642; backdrop-filter: blur(3px); } to { background-color: #16264600; backdrop-filter: blur(0); } }
.dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 25px 28px; border-bottom: 1px solid var(--line); gap: 16px; }
.dialog-head h2 { font-size: 18px; font-weight: 600; }
.dialog-close { border: 0; width: 29px; height: 29px; border-radius: 50%; background: #f2f5fb; color: #8a9cbb; font-size: 21px; display: grid; place-items: center; flex-shrink: 0; }
.dialog-close:hover { background: #e7edfa; color: #557fc8; }
.dialog-body { padding: 24px 28px 30px; overflow-y: auto; }
.field { display: block; margin-bottom: 18px; color: #6f87ad; font-size: 11px; }
.field > span { display: block; margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; display: block; border: 1px solid #dae3f1; border-radius: 8px; padding: 11px 12px; background: #fbfcff; color: #355782; font-size: 13px; }
.field textarea { min-height: 103px; resize: vertical; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.detail-section-title { font-size: 12px; font-weight: 600; margin: 25px 0 13px; }
.detail-source { padding: 17px; border-radius: 10px; background: #f5f8ff; }
.detail-source blockquote { font-size: 12px; line-height: 1.9; color: #718db4; margin: 13px 0 0; }
.detail-source .source { font-size: 11px; }
.source-evidence { display: block; color: #8da2c0; font-size: 10px; margin-top: 11px; }
.check-option { display: flex; align-items: flex-start; gap: 11px; padding: 16px; border-radius: 9px; border: 1px solid var(--line); font-size: 13px; margin-top: 9px; color: #3f638f; }
.check-option:has(input:checked) { background: #f8faff; border-color: #c9d8fa; }
.check-option input { accent-color: var(--blue); margin-top: 5px; }
.check-option strong { font-weight: 550; }
.check-option small { display: block; font-size: 11px; color: #839ab8; margin-top: 4px; }
.detail-summary { font-size: 11px; color: #849bbd; margin: 18px 0; }
.detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 23px; }
.form-error { margin-top: 12px; padding: 11px 13px; border-radius: 8px; color: #a76552; background: #fff3ec; font-size: 12px; }
.modal-dialog { width: 560px; max-width: calc(100% - 32px); max-height: 90dvh; border-radius: 18px; box-shadow: 0 24px 90px #1626462a; }
.modal-dialog .dialog-body { max-height: calc(90dvh - 91px); }
.help-text { font-size: 12px; color: #7a95b9; line-height: 1.9; margin-bottom: 19px; }
.form-foot { font-size: 10px; line-height: 1.9; color: #96aac7; margin-top: 15px; }
.report-editor { min-height: 330px !important; line-height: 1.9; }
#toast { position: fixed; bottom: 25px; left: calc(50% + 113px); transform: translateX(-50%); z-index: 50; display: none; align-items: center; gap: 10px; background: #213a64; color: #f5f8ff; border-radius: 11px; padding: 14px 22px; font-size: 12px; box-shadow: 0 8px 30px #172e5326; overflow: hidden; max-width: calc(100% - 32px); }
#toast.visible { display: flex; }
.toast-icon { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: #ffffff21; flex-shrink: 0; }
.toast-icon svg { width: 13px; height: 13px; }
.toast-progress { position: absolute; bottom: 0; height: 2px; background: #8daafe; left: 0; right: 0; transform-origin: left; animation: toast-progress 3300ms linear forwards; }
@keyframes toast-progress { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.hidden { display: none !important; }
@media (min-width: 1550px) {
  main { padding: 37px 48px; }
  .topbar { padding: 0 48px; }
  .today-grid { grid-template-columns: minmax(0, 1fr) 350px; }
}
@media (max-width: 1180px) {
  .sidebar { width: 202px; padding-left: 11px; padding-right: 11px; }
  .main-shell { margin-left: 202px; width: calc(100% - 202px); }
  .brand { font-size: 13px; gap: 10px; }
  .nav-link { gap: 9px; font-size: 11px; padding-left: 12px; padding-right: 12px; }
  main { padding: 26px; }
  .topbar { padding: 0 26px; }
  .today-grid { grid-template-columns: minmax(0, 1fr) 278px; gap: 19px; }
  .search input { width: 130px; }
  .search kbd { display: none; }
  .topbar-right { gap: 13px; }
  .week-month { min-width: 74px; padding-right: 11px; }
  .week-days { gap: 5px; }
  .week-strip { padding: 12px 15px; gap: 12px; }
  .report-layout, .activity-layout { grid-template-columns: minmax(0, 1fr) 240px; }
  .footer { padding: 14px 26px; }
}
@media (max-width: 970px) {
  .today-grid { grid-template-columns: 1fr; }
  .right-column { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .timeline-panel { grid-row: span 2; }
  .right-column .dots-card { grid-column: 2; }
  .page-heading { flex-wrap: wrap; gap: 14px; }
  .page-heading h1 { font-size: 26px; }
  .search { display: none; }
  .status-row { gap: 15px; font-size: 10px; }
  .report-layout, .activity-layout { grid-template-columns: 1fr; }
  .report-layout > aside, .activity-layout > aside { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .table-header, .table-row { grid-template-columns: minmax(0, 1fr) 100px 110px; }
  .table-header > :last-child, .table-row > :last-child { display: none; }
  .week-month { display: none; }
  .footer { flex-direction: column; gap: 3px; }
}
@media (max-width: 700px) {
  .sidebar { display: none; width: 228px; box-shadow: 5px 0 40px #16264622; padding-top: 26px; }
  .sidebar.open { display: flex; }
  .nav-link { font-size: 12px; }
  .main-shell { margin-left: 0; width: 100%; }
  .mobile-menu { display: flex; font-size: 18px; }
  .topbar { height: 58px; padding: 0 18px; justify-content: flex-start; gap: 12px; }
  .topbar-right { margin-left: auto; gap: 9px; }
  .breadcrumb { font-size: 10px; }
  .breadcrumb span { padding: 0 6px; }
  .demo-pill { font-size: 9px; padding: 2px 6px; }
  .icon-button { font-size: 22px; }
  main { padding: 23px 18px 27px; }
  .page-heading { margin-bottom: 21px; }
  .page-heading h1 { font-size: 24px; }
  .subtitle { font-size: 11px; }
  .heading-actions { width: 100%; justify-content: flex-end; }
  .heading-actions:empty { display: none; }
  .week-strip { padding: 10px; margin-bottom: 15px; border-radius: 13px; }
  .week-days { gap: 4px; }
  .week-day { padding: 7px 3px 6px; border-radius: 9px; }
  .week-day small { font-size: 9px; }
  .week-day strong { font-size: 18px; }
  .week-pips { margin-top: 5px; }
  .status-row { gap: 13px; flex-wrap: wrap; margin-bottom: 23px; }
  .status-row .report-link { display: none; }
  .status-row button { font-size: 10px; }
  .status-row svg { width: 13px; height: 13px; }
  .status-row strong { font-size: 11px; }
  .today-grid { gap: 24px; }
  .section-heading h2 { font-size: 14px; }
  .section-heading .text-button { font-size: 10px; }
  .focus-task { padding: 19px 17px; }
  .focus-task .task-title { font-size: 16px; }
  .focus-footer { padding-left: 0; align-items: flex-start; }
  .focus-note { font-size: 10px; max-width: 70%; }
  .focus-main { gap: 10px; }
  .focus-task .task-meta { gap: 6px; }
  .focus-main .row-tail { margin-top: 5px; }
  .focus-main .status { font-size: 9px; }
  .task-row { padding: 17px; gap: 10px; }
  .task-title { font-size: 12px; }
  .task-meta { gap: 7px; font-size: 9px; }
  .task-row .priority { display: none; }
  .panel-bottom { padding: 12px 17px; font-size: 9px; }
  .proposal-card { padding: 20px 17px; }
  .proposal-card h3 { font-size: 13px; }
  .proposal-description { font-size: 10px; }
  .proposal-card .button { padding: 6px 10px; font-size: 10px; }
  .right-column { display: flex; flex-direction: column; }
  .right-column > * { width: 100%; }
  .timeline-panel { padding: 22px; }
  .time-row { min-height: 51px; }
  .proposal-grid, .rule-grid, .source-grid { grid-template-columns: 1fr; }
  .proposal-grid .proposal-card { padding: 23px; }
  .proposal-grid h3 { font-size: 15px; }
  .table-header, .table-row { grid-template-columns: minmax(0, 1fr) 95px; padding: 15px; }
  .table-header > :nth-child(2), .table-row > :nth-child(2) { display: none; }
  .table-cell select { font-size: 9px; width: 89px; }
  .table-title { gap: 10px; }
  .report-paper { padding: 25px 20px; }
  .report-body { font-size: 12px; }
  .report-footer .button { font-size: 10px; padding: 8px 10px; }
  .report-layout > aside, .activity-layout > aside { display: flex; flex-direction: column; }
  .comparison { grid-template-columns: 1fr; gap: 11px; }
  .improvement { padding: 23px 20px; }
  .improvement h3 { font-size: 14px; }
  .info-banner { font-size: 11px; padding: 15px; }
  .activity-list { padding: 6px 18px; }
  .activity-row { gap: 11px; }
  .activity-head h3 { font-size: 12px; }
  .filters select { margin-left: 0; }
  .filter { padding: 7px 10px; font-size: 10px; }
  .calendar-toolbar { flex-wrap: wrap; }
  .calendar-large { padding: 18px; }
  .calendar-large .time-row { grid-template-columns: 41px 1fr; }
  .calendar-large .time-label { font-size: 10px; }
  .calendar-large .time-content { padding-left: 7px; }
  .calendar-large .event h3 { font-size: 12px; }
  .calendar-large .event p { font-size: 10px; }
  .detail-dialog { width: 100%; }
  .dialog-head, .dialog-body { padding: 22px; }
  .dialog-head h2 { font-size: 17px; }
  .field-pair { gap: 11px; }
  .field input, .field select, .field textarea { font-size: 12px; padding: 11px; }
  .check-option { padding: 14px; font-size: 12px; }
  .check-option small { font-size: 10px; }
  .detail-actions .button { font-size: 11px; padding: 8px 11px; }
  #toast { left: 50%; font-size: 11px; min-width: 270px; padding: 13px 17px; }
  .footer { padding: 13px 18px; font-size: 8px; }
}
@media (max-height: 740px) {
  .sidebar-note { display: none; }
  .sidebar { padding-top: 23px; }
  .workspace-label { margin-top: 22px; }
  .nav-section { margin-top: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after, *::backdrop { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Meaningful secondary text stays readable on the quiet surfaces. */
.subtitle, .task-meta, .proposal-description, .source-quote, .report-body,
.report-hint, .side-info p, .side-list li, .rule-card p, .improvement p,
.activity-content p, .source-card p, .help-text, .form-foot, .detail-summary,
.source-evidence, .detail-source blockquote, .rule-meta, .source-detail,
.calendar-notice, .time-label, .source, .focus-note { color: var(--muted); }
.project-tag { color: #576b8c; }
.project-tag.hfs { color: #826028; }
.project-tag.newdot { color: #765893; }
.status { color: #5e6d84; }
.status.progress { color: #226850; }
.event p { color: #5977a3; }
.event.meeting p { color: #735486; }
.week-day { color: #66748a; }
.week-day.weekend:not(.selected) { color: #77869c; }
.status-row > span { display: inline-flex; align-items: center; gap: 5px; }
@media(max-width:700px) {
  .sidebar.open { animation: menu-in 260ms var(--ease) both; }
}
@keyframes menu-in { from { transform: translateX(-30px); opacity: .4; } to { transform: translateX(0); opacity: 1; } }

/* Production states keep the same workdesk surfaces and type hierarchy. */
[hidden] { display: none !important; }
.skip-link { position: fixed; left: 16px; top: -60px; padding: 10px 18px; background: var(--paper); color: var(--blue); border: 1px solid var(--line); border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }
.auth-screen { min-height: 100dvh; display: grid; place-items: center; padding: 28px; }
.auth-card { width: min(100%,440px); background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 36px; box-shadow: 0 18px 60px #27477c0b; }
.auth-card .brand { padding: 0; margin-bottom: 34px; }
.auth-card h1 { font-size: 23px; font-weight: 650; letter-spacing: -.5px; line-height: 1.5; }
.auth-card h1 + p { margin: 10px 0 26px; color: var(--muted); font-size: 14px; }
.auth-card .button[type=submit] { width: 100%; }
.auth-card .form-foot { margin-top: 16px; font-size: 12px; }
.auth-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.auth-demo-note { margin-top: 17px; color: var(--muted); font-size: 12px; }
.loading-block { min-height: 140px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: 14px; }
.loader { display: inline-block; width: 21px; height: 21px; border: 2px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: loader-spin 1s linear infinite; }
@keyframes loader-spin { to { transform: rotate(360deg); } }
.connection-pill { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 11px; color: var(--green); }
.connection-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.is-saving .connection-pill { color: var(--blue); }
.app-notice { margin: 16px 38px 0; padding: 13px 17px; border: 1px solid #d8e1f8; background: var(--blue-soft); border-radius: 10px; color: #3b5077; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.app-notice.is-error { background: #fff5ee; border-color: #f2dbcd; color: #925a3b; }
.app-notice span { overflow-wrap: anywhere; }
.empty-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 19px; }
.empty > .button { margin-top: 17px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset:disabled { opacity: .78; }
.field small { font-size: 12px; color: var(--muted); font-weight: 400; }
.field textarea { resize: vertical; }
.form-error-slot:not(:empty) { margin: 12px 0; }
.calendar-fields { margin-top: 18px; }
.date-navigation { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.date-picker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.date-picker input { padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; min-height: 40px; max-width: 175px; }
.event.proposed { width: 100%; text-align: left; color: inherit; font: inherit; }
.event .button { margin-top: 8px; white-space: normal; }
.event .delivery-label { margin-top: 7px; font-size: 11px; color: #527467; }
.event .delivery-warning { color: #956c29; }
.event .delivery-error { color: #a25542; font-size: 11px; overflow-wrap: anywhere; }
.side-action { margin-top: 18px; }
.history { margin: 20px 0 0; border-top: 1px solid var(--line); padding: 15px 0 0; color: var(--muted); font-size: 12px; }
.history summary { cursor: pointer; min-height: 30px; }
.history > div { padding: 9px 0; border-bottom: 1px solid var(--line); }
.history p { font-size: 12px; }
.archive-action { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 20px; }
.settings-layout { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 24px; margin-top: 28px; align-items: start; }
.settings-panel { padding: 26px; }
.settings-panel .help-text { margin-bottom: 24px; }
.settings-panel .section-heading { flex-wrap: wrap; }
.provider-row { display: grid; grid-template-columns: 1fr auto; gap: 9px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.provider-row:last-child { border-bottom: 0; padding-bottom: 0; }
.provider-row p { grid-column: 1 / -1; font-size: 12px; }
.sources-history { margin-top: 30px; }
.source-detail:empty { display: none; }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.sidebar { overflow-y: auto; overscroll-behavior: contain; }
.menu-backdrop { position: fixed; inset: 0; z-index: 11; border: 0; background: #19263d55; backdrop-filter: blur(2px); }
.menu-open { overflow: hidden; }
.compact-search { display: none; }
.noscript { text-align: center; padding: 24px; }
.page-heading h1,.task-title,.proposal-card h3,.event h3,.rule-card h3,.activity-head h3,.detail-source { overflow-wrap: anywhere; }
.dialog-close,.icon-button { min-width: 44px; min-height: 44px; }
.button { min-height: 40px; }
.nav-link { min-height: 44px; }
.detail-dialog,.modal-dialog { overscroll-behavior: contain; }
@media(max-width:1100px) { .settings-layout { grid-template-columns: minmax(0,1fr) 260px; gap: 18px; } }
@media(max-width:970px) { .compact-search { display: flex; } .settings-layout { grid-template-columns: 1fr; } .settings-layout > aside { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } .app-notice { margin-right: 26px; margin-left: 26px; } }
@media(max-width:700px) {
  .auth-screen { padding: 20px; }
  .auth-card { padding: 27px 23px; border-radius: 17px; }
  .auth-card h1 { font-size: 22px; }
  .topbar { padding-left: 12px; padding-right: 12px; gap: 4px; }
  .topbar-right { gap: 1px; }
  .breadcrumb { font-size: 11px; }
  .breadcrumb > span { padding: 0 5px; }
  .connection-pill { font-size: 10px; }
  .connection-pill::before { width: 5px; height: 5px; }
  .compact-search { font-size: 29px; }
  .sidebar { width: min(286px,85vw); padding-top: 21px; padding-bottom: env(safe-area-inset-bottom); }
  .sidebar .brand { font-size: 15px; }
  .sidebar .nav-link { font-size: 14px; padding: 12px; min-height: 48px; }
  .sidebar .workspace-label,.sidebar .nav-section { font-size: 12px; }
  .sidebar .profile { font-size: 13px; }
  .sidebar .profile small { font-size: 11px; }
  .app-notice { margin: 13px 18px 0; flex-wrap: wrap; font-size: 13px; }
  .subtitle { font-size: 13px; }
  .button,.filter,.text-button,.status-row button { min-height: 44px; }
  .button,.detail-actions .button,.proposal-card .button,.report-footer .button { font-size: 13px; padding: 10px 12px; }
  .text-button,.section-heading .text-button { font-size: 12px; }
  .task-title { font-size: 14px; min-height: 44px; }
  .task-meta { font-size: 12px; }
  .project-tag { font-size: 11px; }
  .source,.status { font-size: 11px; }
  .focus-task .complete-button,.complete-button { width: 44px; height: 44px; margin-top: 0; border: 0; background: transparent; position: relative; }
  .complete-button::before { content: ''; position: absolute; width: 23px; height: 23px; border: 1.5px solid #c7d1e4; border-radius: 50%; background: #fff; }
  .complete-button.done::before { background: #428f78; border-color: #428f78; }
  .complete-button svg { width: 15px; height: 15px; position: relative; z-index: 1; }
  .complete-button:hover::before { border-color: var(--blue); }
  .focus-main,.task-row,.table-title { gap: 7px; }
  .focus-main .row-tail { display: none; }
  .focus-task .task-title { font-size: 17px; }
  .focus-note { font-size: 13px; max-width: 100%; }
  .focus-footer { flex-wrap: wrap; }
  .focus-main .task-meta { gap: 6px; }
  .status-row { gap: 9px; font-size: 12px; margin-bottom: 16px; }
  .status-row button { font-size: 12px; }
  .status-row strong { font-size: 13px; }
  .task-row .row-tail { display: none; }
  .proposal-description,.source-quote,.calendar-notice { font-size: 13px; }
  .proposal-card h3 { font-size: 16px; }
  .proposal-bottom { flex-wrap: wrap; gap: 12px; }
  .proposal-bottom .task-meta { flex: 1; min-width: 130px; }
  .filter { font-size: 13px; padding: 9px 11px; }
  .filters { gap: 7px; }
  .filters select,.table-cell select { min-height: 44px; font-size: 13px; }
  .table-header,.table-row { grid-template-columns: minmax(0,1fr) 90px; padding: 15px 12px; }
  .table-cell select { width: 90px; padding: 8px 5px; }
  .table-title .task-meta { gap: 4px; }
  .table-title .source { font-size: 11px; }
  .report-body { font-size: 14px; }
  .report-paper { padding: 23px 19px; }
  .report-hint,.side-info p,.help-text,.form-foot,.detail-summary,.source-evidence { font-size: 13px; }
  .rule-meta,.improvement p,.activity-content p,.source-card p { font-size: 13px; }
  .activity-head h3 { font-size: 14px; }
  .activity-head { flex-wrap: wrap; gap: 5px; }
  .activity-head time { font-size: 11px; }
  .activity-meta { flex-wrap: wrap; }
  .field input,.field select,.field textarea { font-size: 16px; min-height: 44px; }
  .field-pair { gap: 12px; }
  .check-option small { font-size: 12px; }
  .switch { min-width: 44px; min-height: 26px; margin: 9px 0; }
  .switch-label { min-height: 44px; }
  .dialog-head,.dialog-body { padding: 20px; }
  .dialog-head { padding-top: max(15px,env(safe-area-inset-top)); }
  .dialog-body { padding-bottom: max(22px,env(safe-area-inset-bottom)); }
  .detail-dialog { height: 100dvh; max-height: 100dvh; }
  .modal-dialog { max-height: calc(100dvh - 28px); width: calc(100% - 28px); }
  .date-navigation { gap: 7px; }
  .date-picker { font-size: 13px; }
  .date-picker input { min-height: 44px; font-size: 16px; padding: 7px; max-width: 164px; }
  .calendar-large .event h3 { font-size: 14px; }
  .calendar-large .event p { font-size: 12px; }
  .calendar-large .event .button { font-size: 12px; padding: 8px; }
  .settings-panel { padding: 22px 19px; }
  .settings-layout > aside { display: flex; flex-direction: column; }
  .footer { font-size: 11px; padding-bottom: max(16px,env(safe-area-inset-bottom)); }
  .history summary { min-height: 44px; padding: 9px 0; }
  #toast { width: calc(100vw - 36px); min-width: 0; font-size: 13px; bottom: max(19px,env(safe-area-inset-bottom)); }
}
@media(max-width:360px) { .breadcrumb { font-size: 10px; } .breadcrumb > span { padding: 0 2px; } .topbar-right { gap: 0; } .connection-pill { display: none; } .field-pair { grid-template-columns: 1fr; } }
.improvement-evidence { padding: 16px 18px; margin-top: 19px; background: #f7f9fd; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.improvement-evidence ul { margin: 12px 0 0; padding-left: 20px; }
.improvement-evidence li { margin: 10px 0; }
.improvement-evidence li > span { color: var(--muted); font-size: 12px; margin-left: 10px; }
.improvement-evidence .section-note { display: block; margin-top: 10px; }
.restore-task-button { flex-shrink: 0; color: var(--blue); font-size: 23px; }
.all-day-events { display: grid; grid-template-columns: 45px minmax(0,1fr); gap: 9px; padding: 8px 0 17px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.all-day-events .event + .event { margin-top: 8px; }
.cancelled-event { opacity: .68; }
.cancelled-event h3 { text-decoration: line-through; }
@media(max-width:700px) {
  .switch,.switch.on { width: 44px; height: 44px; min-height: 44px; margin: 0; background: transparent; }
  .switch::before { content: ''; position: absolute; width: 35px; height: 21px; top: 11px; left: 3px; border-radius: 20px; background: #d7e1f2; }
  .switch.on::before { background: #5a7beb; }
  .switch .switch-thumb { top: 14px; left: 6px; }
}
.record-corrections { margin-top: 26px; }
.record-corrections h3 { font-size: 14px; margin-bottom: 9px; }
.record-corrections .detail-source + .detail-source { margin-top: 11px; }
.record-corrections .button { margin-top: 13px; }
.improvement .one-off-explanation { margin-top: 14px; padding: 13px 16px; background: var(--blue-soft); border-radius: 9px; color: #445c86; }

/* Google identities stay legible on small screens without changing the dashboard rhythm. */
.google-account-list { display: grid; gap: 22px; }
.google-account-card { min-width: 0; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px 20px; background: #fcfdff; }
.google-account-card legend { max-width: 100%; padding: 0 8px; margin-left: -8px; font-size: 14px; line-height: 1.7; font-weight: 600; color: var(--ink); white-space: normal; overflow-wrap: anywhere; }
.account-card-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 16px; }
.account-authorization { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.account-enable { min-height: 44px; display: inline-flex; align-items: center; gap: 9px; color: #536b90; font-size: 12px; cursor: pointer; }
.account-enable input { width: 18px; height: 18px; accent-color: var(--blue); }
.google-account-card .field { margin-bottom: 17px; }
.google-account-card .field small,.calendar-target-field small { display: block; font-size: 12px; line-height: 1.75; margin-top: 7px; color: var(--muted); overflow-wrap: anywhere; }
.google-account-card input[readonly] { background: #f3f6fb; color: #587095; }
.google-account-card .field input,.calendar-target-field select { min-width: 0; max-width: 100%; text-overflow: ellipsis; }
.account-provider-status { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 5px; }
.account-provider-row { padding: 13px 0; border-bottom: 1px solid var(--line); }
.account-provider-row:last-child { border-bottom: 0; }
.account-provider-row > div { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px; }
.account-provider-row strong { font-size: 12px; color: #536b90; }
.account-provider-row p { margin: 7px 0 0; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.account-provider-row p.account-error { color: #a25542; }
.account-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 16px 0 0; }
.account-actions .button { min-height: 44px; max-width: 100%; white-space: normal; }
.google-account-card .form-foot { margin-top: 14px; font-size: 11px; overflow-wrap: anywhere; }
.account-add-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 21px 0 28px; }
.account-add-row .button { min-height: 44px; }
.account-add-row small { color: var(--muted); font-size: 12px; }
.account-empty { border: 1px dashed #cbd7e9; border-radius: 12px; background: #f8faff; padding: 22px; }
.account-empty h3 { font-size: 14px; margin-bottom: 10px; }
.account-empty p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.calendar-target-field { padding-top: 21px; border-top: 1px solid var(--line); }
.account-provenance { display: block; max-width: 100%; font-size: 11px; line-height: 1.65; color: #7086a9; margin: 6px 0; overflow-wrap: anywhere; }
.activity-meta .account-provenance { margin: 0; flex-basis: 100%; }
.detail-source .account-provenance { margin-top: 9px; }
.source-account-summary { display: grid; gap: 9px; border-top: 1px solid var(--line); padding-top: 15px; margin-top: 18px; }
.source-account-summary > div { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px 10px; flex-wrap: wrap; font-size: 11px; }
.source-account-summary > div > span:first-child { min-width: 0; flex: 1 1 140px; overflow-wrap: anywhere; color: #7086a9; line-height: 1.7; }
.source-detail { overflow-wrap: anywhere; }
@media(max-width:700px) {
  .google-account-card { padding: 15px 14px 18px; border-radius: 11px; }
  .google-account-card legend { font-size: 14px; }
  .account-card-top { align-items: flex-start; }
  .account-authorization,.account-enable,.account-provider-row strong,.account-provider-row p,.google-account-card .field small,.calendar-target-field small,.google-account-card .form-foot { font-size: 12px; }
  .account-actions .button { flex: 1 1 130px; }
  .account-actions .button:first-child { flex-basis: 100%; }
  .account-provenance,.source-account-summary > div { font-size: 12px; }
  .account-empty { padding: 19px; }
  .account-add-row { margin-bottom: 24px; }
}

.history-event-label { display: block; margin: 8px 0; font-size: 11px; line-height: 1.7; color: #8b779a; overflow-wrap: anywhere; }

/* Queue status is a quiet record of VPS work; requested models and verified results stay separate. */
.ai-queue { padding: 23px 25px; }
.ai-queue .button,.ai-queue .filter { min-height: 44px; }
.ai-queue > .help-text { font-size: 12px; line-height: 1.85; }
.ai-job-filters { margin: 20px 0 4px; }
.ai-job-row { min-width: 0; padding: 21px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.ai-job-row:last-child { border-bottom: 0; }
.ai-job-row.focused { background: #f8faff; border-radius: 8px; }
.ai-job-row:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
.ai-job-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 9px; }
.ai-job-head h3 { flex: 1 1 190px; min-width: 0; margin: 0; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.ai-job-meta { display: flex; flex-wrap: wrap; gap: 5px 13px; margin: 8px 0 11px; color: var(--muted); font-size: 11px; line-height: 1.75; }
.ai-job-reason { margin: 10px 0; font-size: 13px; line-height: 1.85; overflow-wrap: anywhere; }
.ai-job-runtime,.ai-job-proof,.ai-job-unverified,.ai-job-retry-at,.ai-job-heartbeat { margin: 7px 0; color: var(--muted); font-size: 11px; line-height: 1.85; overflow-wrap: anywhere; }
.ai-job-proof { color: #397562; }
.ai-job-actions { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 17px; }
.ai-job-actions .button { min-height: 44px; max-width: 100%; white-space: normal; }
.ai-job-model { display: flex; flex-direction: column; gap: 6px; font-size: 11px; color: var(--muted); }
.ai-job-model select { min-height: 44px; width: 145px; max-width: 100%; padding: 9px; border: 1px solid #d2dced; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 12px; }
.ai-job-model select:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.ai-queue-empty { padding: 25px 0 7px; }
.ai-queue-empty h3 { margin-bottom: 10px; font-size: 14px; }
.ai-queue-empty p { color: var(--muted); font-size: 12px; line-height: 1.9; }
.ai-queue-more { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.ai-queue-more > span { color: var(--muted); font-size: 11px; }
.ai-pending-marker { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px 13px; padding: 12px 15px; margin: 14px 0; border: 1px solid #dbe4f6; border-radius: 9px; background: #f8faff; color: #536b90; font-size: 12px; }
.ai-pending-marker > span { display: inline-flex; align-items: center; gap: 9px; }
.ai-pending-marker svg { width: 16px; height: 16px; flex-shrink: 0; }
.ai-pending-marker strong { font-weight: 500; }
.ai-pending-marker .text-button { min-height: 44px; }
.ai-result-evidence { margin: 12px 0; color: #397562; font-size: 11px; line-height: 1.9; overflow-wrap: anywhere; }
@media(max-width:700px) {
  .ai-queue { padding: 20px 18px; }
  .ai-queue > .help-text,.ai-queue-empty p,.ai-job-meta,.ai-job-runtime,.ai-job-proof,.ai-job-unverified,.ai-job-retry-at,.ai-job-heartbeat,.ai-result-evidence { font-size: 12px; }
  .ai-job-head h3 { flex-basis: 100%; }
  .ai-job-model { width: 100%; font-size: 12px; }
  .ai-job-model select { width: 100%; font-size: 16px; }
  .ai-job-actions .button { flex: 1 1 145px; }
  .ai-pending-marker { padding: 12px; font-size: 13px; }
}
