/* A2 presentation layer. Scheduling, filtering and report rules live in app.js. */
@font-face {
  font-family: DueCJK;
  src: local("Noto Sans SC");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #253047;
  --ink-soft: #52637c;
  --paper: #fff;
  --paper-bright: #fff;
  --paper-deep: #f4f7fc;
  --blue: #2859df;
  --coral: #df877a;
  --coral-dark: #bc4a3d;
  --gold: #efc978;
  --sage: #548f7d;
  --line: #e4eaf2;
  --line-dark: #e4eaf2;
  --muted: #6b7a90;
  --sans: DueCJK, "Microsoft YaHei UI", "PingFang SC", sans-serif;
  --serif: var(--sans);
  --mono: var(--sans);
  --shadow: 0 18px 60px rgb(37 48 71 / 12%);
}

body { background: #fff; font-size: 13px; }
button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, .backup-actions label:focus-visible {
  outline: 3px solid #96b3ff;
  outline-offset: 3px;
}
::selection { color: #1539a3; background: #dce7ff; }
input::placeholder, textarea::placeholder { color: #8390a3; }
button { transition: background-color 150ms, border-color 150ms, color 150ms; }
.ui-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.ui-icon .icon-tint { fill: currentColor; stroke: none; opacity: .12; }
[data-ui-icon] { display: inline-flex; align-items: center; justify-content: center; }
.app-shell { grid-template-columns: 228px minmax(0, 1fr) 328px; }
.sidebar { padding: 25px 18px 20px; color: var(--ink); background: #fff; border-right: 1px solid var(--line); }
.sidebar::after { display: none; }
.brand-block { gap: 12px; padding: 0 7px 24px; }
.brand-mark { width: 40px; height: 40px; clip-path: none; background: transparent; }
.brand-name { font-size: 21px; font-weight: 700; letter-spacing: .08em; }
.brand-subtitle { margin-top: 6px; color: var(--muted); font-size: 11px; letter-spacing: 0; }
.primary-nav { margin-top: 24px; }
.nav-eyebrow { font: 500 11px/1.2 var(--sans); color: var(--muted); letter-spacing: .04em; }
.nav-item { min-height: 44px; margin-bottom: 4px; grid-template-columns: 24px 1fr auto; border: 0; border-radius: 8px; color: var(--ink-soft); font-size: 13px; padding: 0 10px; }
.nav-item:hover { background: #f5f7fb; color: var(--ink); }
.nav-item.is-active { color: var(--blue); background: #edf2ff; font-weight: 600; }
.nav-index { color: inherit; }
.nav-count { border: 0; border-radius: 6px; background: #f0f3f8; color: var(--muted); font-size: 11px; }
.nav-item.is-active .nav-count { background: #dfe8ff; color: var(--blue); }
.type-nav { margin-top: 22px; padding-top: 22px; padding-bottom: 22px; }
.tiny-action { color: var(--muted); font-size: 11px; padding: 0 6px 10px; }
.tiny-action--manage, .tiny-action:hover { color: var(--blue); }
.type-item { gap: 10px; padding: 7px 9px; border-radius: 8px; color: var(--ink-soft); font-size: 12px; min-height: 42px; }
.type-item:hover, .type-item.is-active { color: var(--ink); background: #f3f6fc; transform: none; }
.type-item.is-active { box-shadow: inset 3px 0 var(--blue); font-weight: 600; }
.type-label-count { color: var(--muted); font-size: 11px; }
.type-icon { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; color: color-mix(in srgb, var(--type-color) 65%, #253047); background: color-mix(in srgb, var(--type-color) 12%, white); }
.type-icon .ui-icon { width: 19px; height: 19px; }
.type-icon--compact { width: 18px; height: 18px; border-radius: 4px; background: transparent; }
.type-icon--compact .ui-icon { width: 16px; height: 16px; }
.type-tag-list { border-color: var(--line); margin-left: 23px; }
.type-tag-filter { color: var(--ink-soft); font-size: 11px; }
.type-tag-filter:hover, .type-tag-filter.is-active { color: var(--blue); background: #edf2ff; }
.type-tag-filter.is-active { box-shadow: inset 2px 0 var(--blue); }
.type-tag-filter small { color: var(--muted); font-size: 10px; }
.storage-card { background: #f7f9fc; padding: 12px; border-radius: 10px; }
.storage-status { color: var(--ink-soft); font-size: 11px; }
.storage-card p { color: var(--muted); font-size: 10px; line-height: 1.8; }
.backup-actions button, .backup-actions label, .install-button {
  min-height: 32px; display: flex; align-items: center; justify-content: center; gap: 4px;
  border: 1px solid #d6deea; border-radius: 5px; color: var(--ink-soft); background: #fff; font-size: 10px;
}
.backup-actions label { cursor: pointer; }
.backup-actions .ui-icon { width: 13px; height: 13px; }
.backup-actions button:hover, .backup-actions label:hover, .install-button:hover { border-color: var(--blue); color: var(--blue); background: #f0f4ff; }
.reset-button { color: var(--muted); font-size: 10px; }
.prototype-version { color: #8390a3; letter-spacing: .06em; }
.workspace { padding: 0 26px 50px; }
.topbar { height: 68px; gap: 12px; }
.search-box { max-width: 330px; color: var(--muted); gap: 9px; }
.search-box > span { transform: none; }
.search-box .ui-icon { width: 18px; height: 18px; }
.search-box input { font-size: 12px; }
.search-box input::placeholder { color: #8390a3; }
kbd { border: 1px solid var(--line); color: var(--muted); background: #f7f9fc; font-size: 10px; }
.new-task-button, .report-button { min-height: 37px; padding: 0 12px; border-radius: 6px; font-size: 12px; white-space: nowrap; }
.new-task-button { color: #fff; background: var(--blue); box-shadow: 0 3px 8px rgb(40 89 223 / 14%); }
.new-task-button:hover { transform: none; box-shadow: 0 3px 8px rgb(40 89 223 / 20%); background: #1948c6; }
.new-task-button kbd { color: #e1e9ff; border-color: #6689e9; background: #416de4; }
.report-button { border-color: #ccd6e5; color: var(--ink-soft); background: #fff; }
.report-button span { color: var(--ink-soft); }
.report-button:hover { border-color: var(--blue); color: var(--blue); background: #f5f7ff; transform: none; }
.report-button .ui-icon, .new-task-button .ui-icon { width: 17px; height: 17px; }
.week-hero { padding-top: 16px; animation: none; }
.week-hero h1 { font-size: 20px; font-weight: 600; letter-spacing: 0; }
.date-line { color: var(--muted); font-size: 11px; }
.week-navigation { gap: 6px; }
.week-navigation button { display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; border-color: #dbe2ed; background: #fff; }
.week-navigation .ui-icon { width: 14px; height: 14px; }
.week-navigation button:hover:not(:disabled) { color: var(--blue); border-color: #9ab5f7; background: #f2f6ff; }
.week-navigation strong { font-size: 11px; color: var(--ink-soft); }
.week-navigation .current-week-button { font-size: 11px; }
.week-navigation .current-week-button:disabled { opacity: 1; color: #8b98a9; background: #f5f7fa; border-color: #e7ecf3; }
.week-strip { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-top: 12px; }
.day-cell { min-height: 58px; padding: 9px 10px; background: #fff; }
.day-cell:hover { background: #f4f7fe; }
.day-cell.is-today { background: var(--blue); color: #fff; }
.day-cell.is-selected:not(.is-today) { background: #edf2ff; color: #214fce; }
.day-cell.is-selected { box-shadow: inset 0 -3px var(--gold); }
.day-cell__name { font-size: 11px; }
.day-cell__date { font: 600 16px/1.2 var(--sans); font-variant-numeric: tabular-nums; }
.day-marker { border-radius: 2px; }
.day-cell.is-today .day-marker.is-start { background: #b7d2ff; }
.week-summary { min-height: 40px; }
.summary-cell { gap: 8px; padding: 0 12px; }
.summary-cell span { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; }
.summary-cell .ui-icon { width: 15px; height: 15px; color: var(--blue); }
.summary-cell strong { font: 600 17px var(--sans); }
.summary-cell--danger .ui-icon { color: var(--coral-dark); }
.summary-cell:nth-child(3) .ui-icon { color: var(--sage); }
.summary-note { color: var(--muted); font-size: 10px; gap: 5px 10px; }
.task-board { padding-top: 18px; }
.board-heading { gap: 16px; padding-bottom: 14px; }
.board-heading h2 { font-size: 18px; font-weight: 600; letter-spacing: 0; }
.board-heading > p { color: var(--muted); font-size: 10px; max-width: 260px; }
.section-kicker { color: var(--muted); font: 500 11px var(--sans); letter-spacing: .03em; }
.active-filter { border-left-color: var(--blue); border-radius: 5px; background: #eff4ff; color: #26499c; font-size: 11px; }
.active-filter button { color: var(--blue); font-size: 11px; flex-shrink: 0; margin-left: 10px; }
.task-group { margin-bottom: 23px; animation: none; }
.group-label { color: var(--muted); font-size: 11px; letter-spacing: 0; margin-bottom: 8px; }
.task-row { grid-template-columns: 38px minmax(0, 1fr) auto; min-height: 80px; background: #fff; }
.task-row:hover, .task-row.is-selected { transform: none; box-shadow: none; background: #f5f8ff; }
.task-row.is-selected { box-shadow: inset 3px 0 var(--blue); }
.task-row.is-overdue { border-left-color: var(--coral); background: #fff9f7; }
.task-row.is-overdue:hover, .task-row.is-overdue.is-selected { background: #fff3ef; }
.task-row.is-done { opacity: 1; }
.task-check { width: 19px; height: 19px; padding: 0; display: grid; place-items: center; color: #fff; border: 1.5px solid #aeb9ca; }
.task-check:hover { transform: none; border-color: var(--blue); background: #edf2ff; }
.task-check .ui-icon { width: 14px; height: 14px; stroke-width: 2; }
.task-row.is-done .task-check { border-color: #82aa9c; background: #82aa9c; }
.task-row.is-done .task-check::after { content: none; }
.task-main-button { padding: 12px 10px 12px 0; }
.task-meta-line { color: var(--muted); font-size: 11px; margin-bottom: 4px; gap: 5px; }
.task-title { font-size: 14px; font-weight: 550; line-height: 1.6; }
.task-row.is-done .task-title { color: #7b8898; }
.task-row.is-done .task-meta-line, .task-row.is-done .task-plan-line, .task-row.is-done .due-label { color: #7b8898; }
.task-plan-line { color: var(--muted); font-size: 10px; gap: 5px; }
.task-plan-line > span { display: inline-flex; border: 0; padding: 0; color: #7692bd; }
.task-plan-line .ui-icon { width: 13px; height: 13px; }
.task-end { min-width: 94px; max-width: 200px; gap: 7px; padding: 10px 11px; }
.due-label { font: 500 11px var(--sans); white-space: nowrap; }
.due-label.is-due-today { color: var(--blue); font-weight: 600; }
.task-badges { justify-content: flex-end; flex-wrap: wrap; gap: 4px; }
.micro-badge { display: inline-flex; align-items: center; border-radius: 4px; padding: 3px 6px; color: var(--muted); font-size: 10px; line-height: 1.3; }
.micro-badge .ui-icon { width: 12px; height: 12px; }
.micro-badge.is-urgent { border-color: #f0c5bc; background: #fff2ed; color: #af473d; }
.tag-badge { color: var(--ink-soft); border-color: color-mix(in srgb, var(--tag-color) 45%, #e4eaf2); background: color-mix(in srgb, var(--tag-color) 9%, white); }
.empty-glyph { margin: 0 auto; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 18px; color: #7297e4; background: #f0f5ff; }
.empty-glyph .ui-icon { width: 34px; height: 34px; }
.empty-state h3 { font-size: 17px; font-weight: 600; }
.empty-state p { color: var(--muted); font-size: 12px; }
.detail-panel { padding: 26px 23px; background: #fff; }
.detail-empty { min-height: calc(100vh - 52px); }
.detail-empty > .section-kicker { color: var(--muted); }
.focus-illustration { display: block; width: 240px; max-width: 100%; height: auto; object-fit: contain; margin: 65px auto 12px; }
.detail-empty h2 { margin: 5px 0 0; text-align: center; font-size: 23px; line-height: 1.65; font-weight: 600; letter-spacing: 0; }
.focus-rule { width: 27px; height: 3px; border-radius: 3px; margin: 22px auto 18px; background: var(--gold); }
.detail-empty > p:not(.section-kicker) { padding: 0 10px; color: var(--muted); text-align: center; font-size: 12px; line-height: 1.9; }
.focus-quote { margin-top: auto; padding: 18px 0 0; }
.focus-quote p { color: var(--muted); font: 11px/1.8 var(--sans); text-align: center; }
.detail-topline { margin-bottom: 18px; }
.detail-id { color: var(--muted); font-size: 10px; letter-spacing: .03em; }
.detail-title { font-size: 23px; font-weight: 600; line-height: 1.55; letter-spacing: 0; overflow-wrap: anywhere; }
.detail-project { color: var(--muted); font-size: 11px; margin: 12px 0 22px; flex-wrap: wrap; }
.detail-status-actions { padding-bottom: 20px; }
.complete-button, .delete-button, .submit-task, .copy-report,
.progress-form button, .checklist-add button, .builder-entry button, .type-create-row button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 6px; font-size: 12px;
}
.complete-button, .submit-task, .copy-report, .progress-form button, .checklist-add button, .type-create-row button {
  color: #fff; background: var(--blue); border-color: var(--blue);
}
.complete-button:hover, .submit-task:hover, .copy-report:hover, .progress-form button:hover,
.checklist-add button:hover, .type-create-row button:hover { background: #1948c6; }
.complete-button .ui-icon, .delete-button .ui-icon, .progress-form button .ui-icon { width: 16px; height: 16px; }
.delete-button { color: var(--coral-dark); background: #fff; border-color: #e8c7c1; padding: 0 9px; }
.delete-button:hover { background: #fff4f0; }
.fact-row { grid-template-columns: 77px minmax(0, 1fr); gap: 10px; padding: 12px 0; align-items: start; }
.fact-row dt { color: var(--muted); font-size: 11px; padding-top: 5px; }
.fact-row dd { font-size: 12px; min-width: 0; }
.fact-row input, .fact-row select { min-height: 30px; border: 1px solid #dce3ed; border-radius: 5px; padding: 4px 6px; font-size: 11px; background: #fafbfd; }
.fact-hint { font-size: 10px; margin-top: 5px; }
.detail-tag-empty { color: var(--muted); font-size: 11px; }
.detail-section { margin-top: 22px; }
.detail-section h3 { font-size: 14px; font-weight: 600; }
.detail-note { color: var(--ink-soft); border-left-color: var(--gold); border-radius: 5px; background: #fffbf1; padding: 12px; font-size: 12px; }
.progress-section-heading span { color: var(--muted); font-size: 10px; }
.progress-form { background: #f7f9fe; border: 1px solid #dee7f7; border-radius: 8px; }
.progress-form__date { color: var(--muted); font-size: 11px; }
.progress-form__date input { color: var(--ink); border-color: #dce3ed; font-size: 11px; }
.progress-form textarea, .progress-form input[type="text"] { border: 1px solid #dce3ed; border-radius: 5px; padding: 8px; font-size: 11px; background: #fff; }
.progress-form textarea { margin-bottom: 6px; }
.progress-form__extras { gap: 6px; }
.progress-form button { font-size: 11px; }
.progress-empty { color: var(--muted); background: #f4f7fd; font-size: 11px; border-radius: 3px; }
.progress-entry { background: #f7f9fc; border-radius: 3px; }
.progress-entry time { color: var(--muted); font-size: 10px; }
.progress-entry p { font-size: 12px; }
.progress-entry small { color: var(--muted); font-size: 11px; }
.progress-entry__remove { color: var(--coral-dark); }
.checklist-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.checklist-heading h3 { margin: 0; }
.checklist-progress { position: relative; display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; }
.checklist-progress svg { position: absolute; inset: 0; width: 42px; height: 42px; transform: rotate(-90deg); fill: none; stroke-width: 3.5; }
.progress-track { stroke: #eaf0fa; }
.progress-value { stroke: var(--blue); stroke-linecap: butt; }
.checklist-progress > span { color: var(--blue); font: 600 10px var(--sans); }
.checklist li { font-size: 12px; gap: 8px; padding: 10px 0; }
.checklist button[data-detail-action="check"] { display: grid; place-items: center; flex: 0 0 auto; width: 18px; height: 18px; border-color: #aeb9ca; border-radius: 5px; }
.checklist .ui-icon { width: 13px; height: 13px; color: #fff; stroke-width: 2; }
.checklist li.is-done { color: #7b8898; }
.checklist li.is-done button[data-detail-action="check"] { border-color: var(--blue); background: var(--blue); }
.checklist li .checklist-remove, .checklist li.is-done .checklist-remove { background: transparent; border: 0; color: var(--coral-dark); }
.checklist-add input { background: #fff; border-radius: 5px; border-color: #dce3ed; font-size: 11px; }
.checklist-add .ui-icon { width: 16px; height: 16px; }
.modal-backdrop { background: rgb(29 45 73 / 35%); backdrop-filter: blur(4px); }
.task-modal { border: 1px solid #e3e9f3; border-radius: 14px; padding: 28px 30px; box-shadow: 0 30px 100px rgb(21 38 72 / 20%); }
.modal-heading { margin-bottom: 22px; }
.modal-heading h2 { margin-top: 6px; font-size: 23px; font-weight: 600; }
.modal-close, .detail-close { width: 32px; height: 32px; border: 1px solid #dce3ed; border-radius: 6px; color: var(--muted); background: #fff; padding: 5px; }
.modal-close:hover, .detail-close:hover { color: var(--ink); background: #f2f5fa; }
.field span, .task-tag-field__heading span, .builder-heading span { color: var(--ink-soft); font-size: 12px; }
.field input, .field select, .field textarea { border: 1px solid #d7dfeb; border-radius: 6px; padding: 10px 11px; font-size: 12px; background: #fff; }
.field-hint { color: var(--muted); font-size: 10px; line-height: 1.7; }
.task-tag-field, .checklist-builder { border-radius: 8px; background: #f8fafd; }
.task-tag-field__heading p, .builder-heading p, .tag-picker-empty { color: var(--muted); font-size: 11px; line-height: 1.7; }
.task-tag-field__heading button { border-color: #b0c3ec; color: var(--blue); font-size: 11px; }
.tag-choice { color: var(--ink-soft); font-size: 11px; background: #fff; }
.tag-choice:hover, .tag-choice.is-selected { color: var(--ink); }
.repeat-config { border-color: #e9dcbb; border-radius: 8px; background: #fffcf4; }
.repeat-anchor-mark { border-color: #e5cf9f; border-radius: 4px; color: #8e6929; font-size: 10px; }
.repeat-config > p, .review-cycle-fields { color: var(--ink-soft); font-size: 11px; }
.review-cycle-fields input, .review-cycle-fields select { border-radius: 5px; border-color: #d7dfeb; font-size: 11px; }
.builder-count { font-size: 11px; }
.builder-entry input { border: 1px solid #d7dfeb; background: #fff; border-radius: 5px; padding: 8px 10px; font-size: 12px; }
.builder-entry button { border-color: #c8d6ee; color: var(--blue); background: #fff; font-size: 11px; }
.builder-entry button:hover { background: #edf2ff; }
.builder-entry .ui-icon { width: 16px; height: 16px; }
.draft-checklist li { font-size: 12px; }
.draft-index { color: var(--muted); font-size: 10px; }
.draft-checklist button { color: var(--coral-dark); }
.modal-actions { margin-top: 20px; padding-top: 18px; gap: 14px; }
.modal-actions p { color: var(--muted); font-size: 11px; line-height: 1.7; }
.submit-task, .copy-report { font-size: 12px; }
.submit-task span, .copy-report span { margin: 0; }
.type-modal-intro { color: var(--muted); font-size: 12px; }
.type-editor-card { background: #fff; border-radius: 9px; }
.type-editor-row { background: #f8fafd; border-radius: 9px 9px 0 0; }
.type-name-input { border-bottom-color: #bfcadb; font-size: 13px; font-weight: 500; }
.type-task-count { color: var(--muted); font-size: 11px; }
.type-delete { color: var(--coral-dark); font-size: 19px; }
.type-icon-setting { padding: 10px 13px 0; }
.type-icon-picker { min-width: 0; }
.type-icon-picker summary { display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; padding: 5px 7px; border: 1px solid #dce4f0; border-radius: 6px; color: var(--ink-soft); background: #fff; font-size: 11px; }
.type-icon-picker summary::-webkit-details-marker { display: none; }
.type-icon-picker summary:hover { background: #f6f9ff; border-color: #9eb7ed; }
.type-icon-picker summary > .ui-icon { width: 13px; height: 13px; margin-left: auto; }
.type-icon-picker[open] summary > .ui-icon { transform: rotate(90deg); }
.type-icon-picker summary .type-icon { width: 24px; height: 24px; border-radius: 5px; }
.type-icon-options { min-width: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin: 9px 0 0; padding: 0; border: 0; }
.icon-option { position: relative; min-width: 0; cursor: pointer; }
.icon-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.icon-option > span { min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 8px 1px; border: 1px solid #e2e8f1; border-radius: 6px; color: var(--muted); background: #fff; font-size: 10px; }
.icon-option > span .ui-icon { width: 22px; height: 22px; }
.icon-option small { font: inherit; }
.icon-option:hover > span { color: var(--blue); border-color: #a9bfef; }
.icon-option input:checked + span { color: var(--blue); border: 2px solid var(--blue); padding: 7px 0; background: #edf2ff; font-weight: 600; }
.icon-option input:checked + span::after { content: "✓"; position: absolute; top: 2px; right: 5px; font-size: 10px; }
.icon-option input:focus-visible + span { outline: 3px solid #96b3ff; outline-offset: 2px; }
.tag-editor-block { padding: 14px 13px; }
.tag-editor-heading { color: var(--muted); font-size: 11px; }
.tag-editor-heading small { font-size: 10px; }
.tag-editor-row input[type="text"], .tag-create-row input[type="text"] { border-color: #ccd6e5; font-size: 12px; }
.tag-editor-row small { color: var(--muted); font-size: 10px; }
.tag-editor-row button { color: var(--coral-dark); }
.tag-create-row { background: #f8fafd; border-radius: 6px; border-color: #d7dfeb; }
.tag-create-row button { border-radius: 5px; border-color: #c8d6ee; background: #fff; color: var(--blue); font-size: 11px; }
.type-create-section { margin-top: 20px; border: 1px solid #dce6fc; border-radius: 9px; padding: 14px; background: #f5f8ff; }
.type-create-section h3 { margin: 0; color: var(--ink); font-size: 13px; font-weight: 600; }
.type-create-row { margin: 10px 0; padding: 0; border: 0; background: transparent; }
.type-create-row input[type="text"] { border: 1px solid #d0dced; border-radius: 5px; padding: 8px; font-size: 12px; background: #fff; }
.type-create-row button { font-size: 11px; }
.type-create-row .ui-icon { width: 15px; height: 15px; }
.type-create-hint { margin: 9px 0 0; color: var(--muted); font-size: 11px; }
.report-controls { grid-template-columns: auto minmax(150px, .7fr) minmax(180px, 1fr); }
.report-mode-switch { border: 1px solid #cbd9f2; border-radius: 6px; overflow: hidden; }
.report-mode-switch button { font-size: 12px; color: var(--ink-soft); background: #fff; }
.report-mode-switch button + button { border-color: #cbd9f2; }
.report-mode-switch button.is-active { background: var(--blue); color: #fff; }
.report-date-field span { color: var(--muted); font-size: 11px; }
.report-date-field input { border: 1px solid #d7dfeb; border-radius: 6px; padding: 5px 8px; font-size: 12px; }
.report-range { color: var(--ink-soft); border-radius: 4px; background: #fffbf1; font-size: 11px; }
.report-preview-heading span { font: 600 15px var(--sans); }
.report-preview-heading p { color: var(--muted); font-size: 11px; }
.report-preview-heading button { color: var(--blue); border-color: #b0c3ec; font-size: 11px; flex-shrink: 0; }
.report-output { border: 1px solid #d7dfeb; border-radius: 8px; padding: 18px 20px; background: #fff; font: 13px/1.9 var(--sans); }
.report-note { color: var(--muted); border-radius: 6px; background: #f2f6ff; }
.report-note span { font-size: 10px; }
.report-note p { font-size: 11px; }
.report-cancel { border-color: #ccd6e5; border-radius: 6px; background: #fff; font-size: 12px; }
.report-cancel:hover { background: #f4f7fc; }
.toast { border-radius: 8px; background: #263b62; box-shadow: 0 8px 30px rgb(37 48 71 / 15%); font-size: 12px; }

@media (max-width: 1280px) and (min-width: 1081px) {
  .app-shell { grid-template-columns: 206px minmax(0, 1fr) 300px; }
  .workspace { padding-right: 20px; padding-left: 20px; }
  .sidebar { padding-right: 13px; padding-left: 13px; }
  .detail-panel { padding-right: 19px; padding-left: 19px; }
  .hero-copy { gap: 9px; }
  .calendar-hint { display: none; }
  .search-box kbd, .new-task-button kbd { display: none; }
}
@media (max-width: 1080px) {
  .app-shell { grid-template-columns: 214px minmax(0, 1fr); }
  .detail-panel { box-shadow: -16px 0 50px rgb(37 48 71 / 12%); }
  .detail-close { display: inline-flex; align-items: center; justify-content: center; }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .workspace { padding: 0 15px 32px; }
  .topbar { height: 62px; gap: 10px; }
  .mobile-brand { color: var(--blue); font: 700 18px var(--sans); letter-spacing: .06em; }
  .report-button, .new-task-button { min-height: 35px; font-size: 11px; padding: 0 10px; gap: 5px; }
  .week-hero { padding-top: 14px; }
  .week-hero h1 { font-size: 19px; }
  .date-line { font-size: 10px; }
  .day-cell { min-height: 64px; padding: 8px 4px; }
  .day-cell__date { font-size: 16px; }
  .day-cell__name { font-size: 10px; }
  .week-summary { min-height: 40px; }
  .summary-cell { gap: 6px; padding: 0 7px; }
  .summary-cell span { font-size: 10px; gap: 3px; }
  .summary-cell .ui-icon { width: 13px; height: 13px; }
  .summary-cell strong { font-size: 15px; }
  .task-board { padding-top: 16px; }
  .board-heading h2 { font-size: 17px; }
  .task-row { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .task-end { min-width: 72px; max-width: 100px; padding: 10px 5px; }
  .task-main-button { padding-right: 5px; }
  .task-meta-line { font-size: 10px; flex-wrap: wrap; gap: 4px; }
  .task-title { font-size: 13px; white-space: normal; overflow-wrap: anywhere; }
  .task-plan-line { font-size: 9px; }
  .due-label { font-size: 10px; }
  .micro-badge { font-size: 9px; }
  .mobile-nav { border-top: 1px solid var(--line); background: #fff; color: var(--muted); box-shadow: 0 -2px 12px rgb(37 48 71 / 3%); }
  .mobile-nav-item { font-size: 10px; gap: 5px; }
  .mobile-nav-item.is-active { color: var(--blue); font-weight: 600; }
  .mobile-add { display: grid; place-items: center; color: #fff; background: var(--blue); box-shadow: 0 4px 12px rgb(40 89 223 / 20%); }
  .mobile-add .ui-icon { width: 24px; height: 24px; }
  .modal-backdrop { padding: 12px; }
  .task-modal { max-height: calc(100dvh - 24px); padding: 22px 17px; border-radius: 12px; }
  .modal-heading h2 { font-size: 21px; }
  .type-icon-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .type-editor-row { gap: 8px; }
  .type-create-section { padding: 11px; }
  .type-create-row button { min-height: 36px; }
  .task-tag-field__heading, .builder-heading { gap: 9px; }
  .report-controls { grid-template-columns: 1fr 1fr; }
  .report-output { padding: 14px; font-size: 12px; }
  .report-preview-heading p { font-size: 10px; }
  .report-note p { font-size: 10px; }
  .detail-panel { padding: 23px 19px; }
  .detail-title { font-size: 22px; }
}
