:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #647187;
  --line: #e4eaf2;
  --surface: #ffffff;
  --canvas: #f5f7fb;
  --blue: #3068d8;
  --blue-soft: #edf3ff;
  --green: #1c8b66;
  --amber: #bc7623;
  --rose: #bf4c5d;
  --purple: #7159b8;
  font-family: Inter, "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--canvas); }
button, a { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }
body.auth-pending .app-shell { visibility: hidden; }
.site-header { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px max(32px, calc((100vw - 1340px) / 2)); background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; color: white; font-weight: 800; border-radius: 10px; background: linear-gradient(145deg, #3e78df, #2858c2); box-shadow: 0 4px 12px #2e64ca30; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; letter-spacing: .03em; }
.brand small { margin-top: 1px; font-size: 10px; color: var(--muted); letter-spacing: .08em; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.today { display: flex; align-items: center; gap: 7px; color: #47546a; font-size: 13px; font-weight: 600; }
.calendar-icon { color: var(--blue); font-size: 17px; }
.staff-button { display: flex; align-items: center; gap: 8px; padding: 4px 9px 4px 4px; border: 1px solid transparent; border-radius: 9px; color: var(--ink); background: transparent; text-align: left; }
.staff-button:hover { border-color: var(--line); background: #fafbfe; }
.staff-button small, .staff-button strong { display: block; line-height: 1.25; }
.staff-button small { color: var(--muted); font-size: 10px; }.staff-button strong { font-size: 12px; }
.avatar { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; color: #3262b5; background: #e8f0ff; font-weight: 700; font-size: 12px; }
.admin-link { padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; color: #44536a; background: white; font-size: 12px; font-weight: 700; text-decoration: none; }.admin-link:hover { border-color: #bdcbe1; color: var(--blue); }
.page-content { max-width: 1340px; margin: 0 auto; padding: 28px 32px 36px; }
.intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 22px; }.eyebrow { margin: 0 0 5px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .08em; }.intro h1 { margin: 0; font-size: clamp(21px, 2vw, 27px); letter-spacing: -.02em; }.intro h1 span { font-weight: 500; }.intro > div > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.sample-note { display: flex; align-items: center; gap: 6px; margin: 0 0 2px; padding: 8px 11px; color: #60718a; background: #edf3fa; border-radius: 6px; font-size: 11px; white-space: nowrap; }.sample-note span { display: grid; place-items: center; width: 15px; height: 15px; border: 1px solid #8798b1; border-radius: 50%; font-size: 10px; font-weight: 700; }
.status-section, .feature-section { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; }.status-section { padding: 18px 19px 19px; }.feature-section { margin-top: 20px; padding: 20px 19px 19px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 15px; }.section-heading h2 { margin: 0; font-size: 15px; letter-spacing: .02em; }.section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }.mock-badge { padding: 4px 8px; color: #61718a; border-radius: 5px; background: #f1f4f8; font-size: 10px; font-weight: 700; }
.status-grid { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }.status-card { position: relative; min-width: 0; padding: 12px 13px 14px 44px; background: #fff; }.status-card + .status-card { border-left: 1px solid var(--line); }.status-card p { margin: 0 0 7px; color: var(--muted); font-size: 11px; white-space: nowrap; }.status-card strong { display: block; font-size: 24px; line-height: 1; letter-spacing: -.04em; }.status-card strong small { margin-left: 3px; color: #607087; font-size: 11px; font-weight: 600; letter-spacing: 0; }.status-icon { position: absolute; top: 13px; left: 13px; display: grid; place-items: center; width: 23px; height: 23px; border-radius: 6px; font-weight: 800; font-size: 13px; }.blue { color: #356bd1; background: #edf3ff; }.green { color: var(--green); background: #eaf8f2; }.amber { color: var(--amber); background: #fff5e8; }.rose { color: var(--rose); background: #fff0f2; }.purple { color: var(--purple); background: #f3efff; }
.feature-heading { margin-bottom: 17px; }.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }.feature-card { display: flex; min-width: 0; min-height: 205px; flex-direction: column; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: border-color .18s, box-shadow .18s, transform .18s; }.feature-card.is-available:hover { border-color: #b6c9eb; box-shadow: 0 7px 18px #16274712; transform: translateY(-2px); }.feature-card-top, .feature-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }.feature-icon { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 9px; font-size: 17px; font-weight: 700; }.feature-inquiry { color: #3068d8; background: #eaf1ff; }.feature-today-work { color: #237b62; background: #eaf8f2; }.feature-manual { color: #7962b3; background: #f2effc; }.feature-room-info { color: #a36b28; background: #fff4e4; }.feature-accounts { color: #506a9d; background: #eef2f8; }.feature-inventory { color: #39806d; background: #eaf7f1; }.open-badge, .pending-badge { padding: 4px 6px; border-radius: 4px; font-size: 9px; font-weight: 700; }.open-badge { color: #3970c7; background: #f0f5ff; }.pending-badge { color: #7b8798; background: #f2f4f7; }.feature-copy { margin-top: 17px; }.feature-copy h3 { margin: 0; font-size: 15px; }.feature-copy p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }.feature-details { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 12px; }.feature-details span { padding: 5px 6px; border-radius: 5px; background: #f6f8fb; }.feature-details small, .feature-details strong { display: block; }.feature-details small { color: #788599; font-size: 9px; }.feature-details strong { margin-top: 2px; color: #40536c; font-size: 11px; }.feature-footer { margin-top: auto; padding-top: 16px; }.feature-state { color: #5c6b82; font-size: 10px; font-weight: 700; white-space: nowrap; }.feature-state.attention { color: var(--amber); }.feature-state.muted { color: #8a95a5; }.card-action { display: inline-flex; align-items: center; gap: 5px; padding: 7px 8px; border: 1px solid #ced8e7; border-radius: 6px; color: #365f9f; background: #fff; font-size: 10px; font-weight: 800; text-decoration: none; white-space: nowrap; }.is-available .card-action:hover { color: white; border-color: var(--blue); background: var(--blue); }.is-pending .card-action { color: #8994a3; border-color: #e0e5eb; background: #f7f8fa; cursor: default; }
@media (max-width: 1100px) { .feature-grid { grid-template-columns: repeat(3, 1fr); }.status-grid { grid-template-columns: repeat(3, 1fr); }.status-card:nth-child(4) { border-left: 0; border-top: 1px solid var(--line); }.status-card:nth-child(5), .status-card:nth-child(6) { border-top: 1px solid var(--line); } }
@media (max-width: 760px) { .site-header { padding: 11px 18px; }.today { display: none; }.header-actions { gap: 7px; }.admin-link { padding: 8px; font-size: 11px; }.page-content { padding: 22px 18px 30px; }.intro { align-items: flex-start; flex-direction: column; gap: 13px; }.sample-note { white-space: normal; }.feature-grid { grid-template-columns: repeat(2, 1fr); }.feature-card { min-height: 185px; } }
@media (max-width: 480px) { .brand small { display: none; }.staff-button > span:last-child { display: none; }.site-header { min-height: 58px; }.admin-link span { display: none; }.status-section, .feature-section { padding: 15px 12px; }.status-grid { grid-template-columns: repeat(2, 1fr); }.status-card { padding: 11px 8px 12px 37px; }.status-card:nth-child(n) { border-top: 1px solid var(--line); border-left: 1px solid var(--line); }.status-card:nth-child(1), .status-card:nth-child(2) { border-top: 0; }.status-card:nth-child(odd) { border-left: 0; }.status-icon { top: 12px; left: 9px; width: 20px; height: 20px; font-size: 11px; }.status-card p { font-size: 10px; }.status-card strong { font-size: 21px; }.feature-grid { grid-template-columns: 1fr; }.feature-card { min-height: 165px; } }

/* 今日の業務: 現段階では閲覧専用の業務テンプレートです。 */
.work-page { max-width: 1120px; }.breadcrumbs { display: flex; gap: 8px; margin-bottom: 17px; color: #7a8799; font-size: 12px; }.breadcrumbs a { color: #526b94; text-decoration: none; }.breadcrumbs a:hover { text-decoration: underline; }.work-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }.work-intro h1 { margin: 0; font-size: 27px; letter-spacing: -.02em; }.work-intro > div > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 13px; }.template-note { display: flex; align-items: center; gap: 6px; margin: 0; padding: 8px 11px; color: #60718a; background: #edf3fa; border-radius: 6px; font-size: 11px; white-space: nowrap; }.template-note span { display: grid; place-items: center; width: 15px; height: 15px; border: 1px solid #8798b1; border-radius: 50%; font-size: 10px; font-weight: 700; }.shift-section { margin-top: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: white; }.shift-heading { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }.shift-heading.early { background: #f2f7ff; }.shift-heading.late { background: #f7f4ff; }.shift-heading > div { display: flex; align-items: center; gap: 10px; }.shift-label { padding: 4px 8px; color: #3167c5; border-radius: 5px; background: white; font-size: 11px; font-weight: 800; }.late .shift-label { color: #7456b5; }.shift-heading h2 { margin: 0; font-size: 16px; }.read-only-badge { color: #718096; font-size: 10px; font-weight: 700; }.task-timeline { padding: 16px 18px 5px; }.time-block { display: grid; grid-template-columns: 82px 1fr; gap: 13px; }.time-marker { position: relative; padding-top: 14px; color: #526277; font-size: 12px; font-weight: 800; text-align: right; }.time-marker span { position: absolute; top: 16px; right: -19px; z-index: 1; width: 11px; height: 11px; border: 3px solid #fff; border-radius: 50%; background: #6791db; box-shadow: 0 0 0 1px #cbd9ee; }.time-block:not(:last-child) .time-marker::after { position: absolute; top: 27px; right: -14px; width: 1px; height: calc(100% + 5px); background: #dce5f1; content: ""; }.task-panel { margin: 0 0 15px; padding: 13px 15px; border: 1px solid #e6ebf2; border-radius: 9px; background: #fff; }.task-panel h3 { margin: 0; font-size: 14px; }.task-panel ol { margin: 9px 0 0; padding-left: 21px; color: #455269; font-size: 13px; line-height: 1.75; }.task-help { margin: 6px 0 10px; color: #718096; font-size: 11px; }.quick-task-list { display: flex; flex-wrap: wrap; gap: 6px; }.quick-task-list span { padding: 5px 7px; color: #52637a; border-radius: 5px; background: #f4f6f9; font-size: 11px; }.inquiry-reminder { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; padding: 14px 16px; border: 1px solid #dbe6fa; border-radius: 9px; background: #f5f8ff; }.inquiry-reminder > span { display: grid; flex: 0 0 auto; place-items: center; width: 25px; height: 25px; color: #396ac4; border-radius: 6px; background: #e6efff; font-size: 13px; }.inquiry-reminder strong { font-size: 13px; }.inquiry-reminder p { margin: 4px 0 0; color: #617189; font-size: 12px; }
@media (max-width: 760px) { .work-intro { align-items: flex-start; flex-direction: column; }.template-note { white-space: normal; }.task-timeline { padding: 12px 11px 2px; }.shift-heading { padding: 13px; }.time-block { grid-template-columns: 60px 1fr; gap: 10px; }.time-marker { font-size: 10px; }.time-marker span { right: -15px; }.time-block:not(:last-child) .time-marker::after { right: -10px; }.task-panel { padding: 12px; }.task-panel ol { font-size: 12px; } }

.checklist { display: grid; gap: 3px; margin-top: 9px; }.checklist label { display: flex; align-items: flex-start; gap: 9px; padding: 7px 8px; border-radius: 6px; color: #455269; font-size: 13px; line-height: 1.45; cursor: pointer; transition: background .15s; }.checklist label:hover { background: #f4f7fb; }.checklist input { width: 16px; height: 16px; flex: 0 0 auto; margin: 1px 0 0; accent-color: #4078da; cursor: pointer; }.checklist label:has(input:checked) { color: #8a96a7; background: #f8fafc; }.checklist input:checked + span { text-decoration: line-through; }.inquiry-reminder small { display: block; margin-top: 6px; color: #8593a8; font-size: 10px; }
.quick-task-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }.quick-task-list label { padding: 6px; font-size: 11px; }.quick-task-list input { width: 14px; height: 14px; }
@media (max-width: 560px) { .quick-task-list { grid-template-columns: 1fr; } }

/* 今日の業務: 追加・編集に対応するタスク管理型のUIモックです。 */
.work-page { max-width: 1120px; }.work-intro { align-items: center; }.work-intro > div > p:last-child { margin: 7px 0 0; }.task-primary, .task-secondary, .add-to-shift, .task-edit, .add-shift, .hide-shift { border: 0; font: inherit; cursor: pointer; }.task-primary { padding: 10px 14px; color: #fff; border-radius: 7px; background: #244e7a; font-size: 13px; font-weight: 800; }.task-primary:hover { background: #183d64; }.task-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(220px, 1.4fr); overflow: hidden; margin-bottom: 17px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }.task-overview article { padding: 13px 15px; border-right: 1px solid var(--line); }.task-overview article span, .task-progress span { display: block; color: #748197; font-size: 11px; }.task-overview article strong { margin-top: 5px; color: #263e5a; font-size: 25px; line-height: 1; letter-spacing: -.04em; }.task-overview article small { margin-left: 3px; color: #718096; font-size: 11px; }.task-overview .complete strong { color: #27795f; }.task-overview .remaining strong { color: #b77425; }.task-overview .handoff strong { color: #7057ae; }.task-progress { padding: 13px 16px; background: #fbfcfe; }.task-progress > div:first-child { display: flex; align-items: baseline; justify-content: space-between; }.task-progress strong { color: #315e95; font-size: 17px; }.progress-track { height: 6px; margin-top: 11px; overflow: hidden; border-radius: 99px; background: #e7edf5; }.progress-track span { height: 100%; border-radius: inherit; background: #4779bd; transition: width .2s; }.task-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 17px; align-items: start; }.task-shift { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }.task-shift-heading { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; border-bottom: 1px solid var(--line); background: #f2f7ff; }.task-shift.middle .task-shift-heading { background: #f5f8fb; }.task-shift.late .task-shift-heading { background: #f7f4ff; }.task-shift-heading > div { display: flex; align-items: center; gap: 8px; }.task-shift-heading h2 { margin: 0; color: #31445d; font-size: 15px; }.task-shift-heading > span, .shift-heading-actions > span { color: #697a91; font-size: 11px; font-weight: 700; }.shift-heading-actions { display: flex; align-items: center; gap: 7px; }.hide-shift { padding: 4px 5px; color: #758398; border-radius: 4px; background: transparent; font-size: 10px; }.hide-shift:hover { color: #495d77; background: #fff; }.task-list { padding: 5px 10px; }.task-item { display: grid; grid-template-columns: 23px 1fr auto; gap: 9px; align-items: center; min-height: 57px; border-bottom: 1px solid #edf0f4; }.task-item:last-child { border-bottom: 0; }.task-check { position: relative; display: grid; place-items: center; width: 18px; height: 18px; cursor: pointer; }.task-check input { position: absolute; width: 1px; height: 1px; opacity: 0; }.task-check span { width: 17px; height: 17px; border: 1px solid #b9c6d6; border-radius: 4px; background: #fff; }.task-check input:checked + span { border-color: #377763; background: #377763; }.task-check input:checked + span::after { display: block; color: #fff; font-size: 12px; font-weight: 800; line-height: 15px; text-align: center; content: "✓"; }.task-main { min-width: 0; }.task-title-row { display: flex; align-items: center; gap: 6px; }.task-title-row h3 { margin: 0; color: #394a61; font-size: 13px; font-weight: 600; line-height: 1.4; }.task-title-row em { flex: 0 0 auto; padding: 2px 5px; color: #7159a9; border-radius: 4px; background: #f0ecfb; font-size: 9px; font-style: normal; font-weight: 700; }.task-time { display: inline-block; margin-top: 3px; color: #7d8b9e; font-size: 10px; }.task-item.is-complete .task-title-row h3 { color: #929dad; text-decoration: line-through; }.task-edit { padding: 5px 6px; color: #6880a0; background: transparent; font-size: 11px; }.task-edit:hover { color: #285481; background: #f1f5fa; }.add-to-shift { width: calc(100% - 20px); margin: 8px 10px 11px; padding: 8px; color: #557394; border: 1px dashed #c5d2e2; border-radius: 6px; background: #fbfcfe; font-size: 11px; font-weight: 700; }.add-to-shift:hover { color: #285481; border-color: #8ca8c8; }.shift-tools { display: flex; justify-content: center; margin-top: 15px; }.add-shift { padding: 9px 13px; color: #5d708a; border: 1px dashed #b9c8d9; border-radius: 7px; background: #fbfcfe; font-size: 12px; font-weight: 700; }.add-shift:hover { color: #315e95; border-color: #8ca8c8; }.hidden { display: none !important; }.task-dialog { width: min(460px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 10px; box-shadow: 0 18px 55px #1a2d481f; }.task-dialog::backdrop { background: #10233d55; }.task-dialog form { display: grid; gap: 15px; padding: 19px; }.dialog-heading { display: flex; align-items: center; justify-content: space-between; }.dialog-heading h2 { margin: 0; color: #2d4058; font-size: 18px; }.dialog-close { width: 28px; height: 28px; color: #6c7b90; border: 0; border-radius: 5px; background: transparent; font-size: 20px; cursor: pointer; }.task-dialog label { display: grid; gap: 6px; color: #53647a; font-size: 12px; font-weight: 700; }.task-dialog input:not([type="checkbox"]), .task-dialog select { width: 100%; box-sizing: border-box; padding: 9px 10px; color: #35465e; border: 1px solid #cbd6e3; border-radius: 6px; background: #fff; font: inherit; font-size: 13px; }.dialog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }.task-dialog .handoff-field { display: flex; align-items: center; gap: 7px; }.handoff-field input { accent-color: #7159a9; }.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 3px; }.task-secondary { padding: 9px 12px; color: #607188; border: 1px solid #cbd6e3; border-radius: 6px; background: #fff; font-size: 12px; font-weight: 700; }
@media (max-width: 880px) { .task-overview { grid-template-columns: repeat(4, 1fr); }.task-progress { grid-column: 1 / -1; border-top: 1px solid var(--line); }.task-board { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .work-intro { align-items: flex-start; }.task-overview { grid-template-columns: repeat(2, 1fr); }.task-overview article:nth-child(2) { border-right: 0; }.task-overview article:nth-child(n + 3) { border-top: 1px solid var(--line); }.task-progress { grid-column: 1 / -1; }.task-title-row h3 { font-size: 12px; }.task-item { grid-template-columns: 22px 1fr auto; }.dialog-grid { grid-template-columns: 1fr; } }

/* 中番は独立したタスク列を作らず、早番・遅番の業務を兼務できる区分として示します。 */
.task-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }.coverage-badge { padding: 3px 5px; color: #64748b; border: 1px solid #d7e0ea; border-radius: 4px; background: #fff; font-size: 9px; font-weight: 700; white-space: nowrap; }
@media (max-width: 880px) { .task-board { grid-template-columns: 1fr; } }

/* 引き継ぎ作成: 構造化して入力し、LINEへ貼り付ける文章を生成するUIモックです。 */
.work-actions { display: flex; align-items: center; gap: 8px; }.handoff-link { display: inline-flex; align-items: center; text-decoration: none; }.handoff-page { max-width: 1180px; }.handoff-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr); gap: 17px; align-items: start; }.handoff-form, .handoff-preview { border: 1px solid var(--line); border-radius: 10px; background: #fff; }.handoff-form-section { padding: 18px; }.handoff-form-section + .handoff-form-section { border-top: 1px solid var(--line); }.handoff-form-section h2, .preview-heading h2 { margin: 0 0 14px; color: #30445e; font-size: 16px; }.handoff-form label { display: grid; gap: 6px; margin-top: 12px; color: #53647a; font-size: 12px; font-weight: 700; }.handoff-form label:first-of-type { margin-top: 0; }.handoff-form label > span { color: #8b98aa; font-size: 10px; font-weight: 500; }.handoff-form input, .handoff-form select, .handoff-form textarea { width: 100%; box-sizing: border-box; padding: 9px 10px; color: #35465e; border: 1px solid #cbd6e3; border-radius: 6px; background: #fff; font: inherit; font-size: 13px; font-weight: 400; }.handoff-form textarea::placeholder { color: #9aa6b5; font-weight: 400; }.handoff-form textarea { min-height: 74px; resize: vertical; line-height: 1.55; }.handoff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }.handoff-grid label { margin-top: 0; }.handoff-preview { position: sticky; top: 18px; overflow: hidden; }.preview-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 18px; border-bottom: 1px solid var(--line); background: #fbfcfe; }.preview-heading h2 { margin: 0; }.preview-heading span { display: block; margin-top: 5px; color: #73839a; font-size: 11px; }.preview-heading .task-primary { flex: 0 0 auto; padding: 8px 11px; font-size: 12px; }.handoff-preview pre { min-height: 430px; margin: 0; padding: 18px; color: #3a4b62; background: #fff; font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif; font-size: 13px; line-height: 1.8; white-space: pre-wrap; word-break: break-word; }
.recipient-picker { margin-top: 13px; }.recipient-picker > span { display: block; margin-bottom: 7px; color: #53647a; font-size: 12px; font-weight: 700; }.recipient-options { display: flex; flex-wrap: wrap; gap: 7px; }.recipient-item { display: inline-flex; overflow: hidden; border: 1px solid #cbd6e3; border-radius: 6px; background: #fff; }.recipient-choice, .recipient-remove, .recipient-add button { border: 0; font: inherit; cursor: pointer; }.recipient-choice { padding: 7px 8px; color: #5c6e85; background: #fff; font-size: 12px; font-weight: 700; }.recipient-choice[aria-pressed="true"] { color: #275685; background: #edf5ff; }.recipient-remove { width: 25px; color: #8190a3; border-left: 1px solid #dbe3ed; background: #fff; font-size: 15px; line-height: 1; }.recipient-remove:hover { color: #a94d51; background: #fff4f4; }.recipient-add { display: flex; gap: 7px; margin-top: 10px; }.recipient-add input { padding: 8px 9px !important; }.recipient-add button { flex: 0 0 auto; padding: 8px 11px; color: #496b92; border: 1px solid #c4d1e0; border-radius: 6px; background: #fff; font-size: 12px; font-weight: 700; }.recipient-add button:hover { color: #285481; border-color: #91aaca; }
.reset-button { margin-top: 14px; padding: 7px 9px; color: #758397; border: 1px solid #d5dfe9; border-radius: 6px; background: #fff; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }.reset-button:hover { color: #4b617d; background: #f6f8fb; }
.basic-reset-row { display: flex; align-items: center; gap: 9px; }.basic-reset-row .reset-button { margin-top: 14px; }.basic-reset-row span { margin-top: 14px; color: #718096; font-size: 11px; }
.reset-preview { margin: 0 18px 18px; padding: 7px 9px; color: #758397; border: 1px solid #d5dfe9; border-radius: 6px; background: #fff; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }.reset-preview:hover { color: #4b617d; background: #f6f8fb; }
@media (max-width: 860px) { .handoff-layout { grid-template-columns: 1fr; }.handoff-preview { position: static; }.handoff-preview pre { min-height: 280px; } }
@media (max-width: 560px) { .work-actions { width: 100%; }.work-actions > * { flex: 1; justify-content: center; }.handoff-grid { grid-template-columns: 1fr; } }

/* ルーム情報: 実データを含めない、一覧・詳細画面の入力ひな型です。 */
.room-page { max-width: 1180px; }.room-layout { display: grid; grid-template-columns: 275px minmax(0, 1fr); gap: 17px; align-items: start; }.room-list, .room-template { border: 1px solid var(--line); border-radius: 10px; background: #fff; }.room-list-heading, .template-heading { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; border-bottom: 1px solid var(--line); }.room-list-heading h2, .template-heading h2 { margin: 0; color: #30445e; font-size: 16px; }.room-list-heading span { padding: 4px 6px; color: #697b92; border-radius: 4px; background: #f1f5f9; font-size: 10px; font-weight: 700; }.template-heading span { color: #7b899a; font-size: 11px; }.room-empty { padding: 22px 16px; }.room-empty strong { display: block; color: #56677e; font-size: 13px; }.room-empty p { margin: 7px 0 0; color: #8a97a8; font-size: 11px; line-height: 1.6; }.room-template { overflow: hidden; }.room-template > .room-form-grid, .room-detail-section { padding: 16px; }.room-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }.room-form-grid label { display: grid; gap: 6px; color: #56677e; font-size: 12px; font-weight: 700; }.room-form-grid label.full { grid-column: 1 / -1; }.room-form-grid input, .room-form-grid textarea { width: 100%; box-sizing: border-box; padding: 9px 10px; color: #8390a1; border: 1px solid #d9e1ea; border-radius: 6px; background: #f8fafc; font: inherit; font-size: 13px; font-weight: 400; }.room-form-grid textarea { min-height: 64px; resize: vertical; line-height: 1.5; }.room-form-grid input:disabled, .room-form-grid textarea:disabled { cursor: not-allowed; opacity: 1; }.room-form-grid input::placeholder, .room-form-grid textarea::placeholder { color: #9aa6b5; }.room-detail-section { border-top: 1px solid var(--line); }.room-detail-section h3 { margin: 0 0 13px; color: #40536b; font-size: 14px; }.room-photo-section { padding-bottom: 17px; }.photo-placeholder { display: grid; min-height: 90px; place-items: center; color: #909cab; border: 1px dashed #ccd7e3; border-radius: 7px; background: #fbfcfe; font-size: 12px; }
@media (max-width: 800px) { .room-layout { grid-template-columns: 1fr; }.room-list { order: 2; } }
@media (max-width: 560px) { .room-form-grid { grid-template-columns: 1fr; }.room-form-grid label.full { grid-column: auto; } }

.room-list-item { display: grid; width: 100%; gap: 4px; padding: 14px 16px; text-align: left; border: 0; border-bottom: 1px solid #e8edf3; background: #fff; cursor: default; }.room-list-item.is-selected { background: #f7faff; box-shadow: inset 3px 0 #547db4; }.room-list-item strong { color: #38516e; font-size: 13px; }.room-list-item span { color: #7c8ca1; font-size: 11px; }.room-map-row { display: grid; gap: 6px; color: #56677e; font-size: 12px; font-weight: 700; }.room-map-row a { display: inline-flex; width: fit-content; padding: 8px 10px; color: #39669b; border: 1px solid #cbd9e8; border-radius: 6px; background: #f8fbff; font-size: 12px; font-weight: 700; text-decoration: none; }.room-map-row a:hover { color: #244e7a; border-color: #9eb7d3; }
.room-actions { display: flex; align-items: center; gap: 8px; }.room-actions .task-secondary { cursor: pointer; }.room-actions .task-secondary:disabled { opacity: .7; cursor: not-allowed; }.room-copy-status { position: fixed; right: 22px; bottom: 22px; z-index: 10; max-width: min(360px, calc(100% - 44px)); padding: 10px 12px; color: #fff; border-radius: 7px; background: #314e70; font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .2s; }.room-copy-status:not(:empty) { opacity: 1; }
@media (max-width: 560px) { .room-actions { width: 100%; }.room-actions > * { flex: 1; justify-content: center; } }

/* ルーム情報のローカル編集画面 */
.room-display-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px; }.room-display-field { min-width: 0; padding: 11px 12px; border: 1px solid #e1e7ee; border-radius: 7px; background: #fbfcfe; }.room-display-field.full { grid-column: 1 / -1; }.room-display-field > span { display: block; color: #65758a; font-size: 11px; font-weight: 700; }.room-display-field p { min-height: 20px; margin: 7px 0 0; color: #3b4d64; font-size: 13px; line-height: 1.55; white-space: normal; word-break: break-word; }.room-display-field p:empty::before { color: #9aa6b5; content: "未登録"; }.room-detail-actions { display: flex; gap: 5px; }.room-detail-actions button { padding: 6px 8px; color: #5d7491; border: 1px solid #cedae7; border-radius: 5px; background: #fff; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }.room-detail-actions button:last-child { color: #a15c58; }.room-detail-actions button:hover { background: #f6f9fc; }.room-detail-empty { min-height: 220px; }.room-dialog { width: min(760px, calc(100% - 32px)); max-height: min(90vh, 920px); padding: 0; overflow: auto; border: 0; border-radius: 10px; box-shadow: 0 18px 55px #1a2d481f; }.room-dialog::backdrop { background: #10233d55; }.room-dialog form { padding: 19px; }.room-dialog .dialog-heading { margin-bottom: 16px; }.edit-room-grid label { margin: 0; }.room-dialog-section { margin-top: 17px; padding-top: 17px; border-top: 1px solid #e4e9ef; }.room-dialog-section h3 { margin: 0 0 12px; color: #40536b; font-size: 14px; }.room-dialog .dialog-actions { margin-top: 18px; }
.photo-count { margin-left: 4px; color: #8390a1; font-size: 11px; font-weight: 500; }
@media (max-width: 560px) { .room-display-grid { grid-template-columns: 1fr; }.room-display-field.full { grid-column: auto; }.room-detail-actions { margin-top: 8px; }.room-dialog { width: calc(100% - 20px); }.room-dialog form { padding: 15px; } }

/* アカウント情報: 実際の認証情報を含めない管理画面のひな型です。 */
.account-page { max-width: 1180px; }.account-layout { display: grid; grid-template-columns: 275px minmax(0, 1fr); gap: 17px; align-items: start; }.account-list, .account-template { border: 1px solid var(--line); border-radius: 10px; background: #fff; }.account-list-heading { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; border-bottom: 1px solid var(--line); }.account-list-heading h2 { margin: 0; color: #30445e; font-size: 16px; }.account-list-heading span { padding: 4px 6px; color: #697b92; border-radius: 4px; background: #f1f5f9; font-size: 10px; font-weight: 700; }.account-empty { padding: 22px 16px; }.account-empty strong { display: block; color: #56677e; font-size: 13px; }.account-empty p { margin: 7px 0 0; color: #8a97a8; font-size: 11px; line-height: 1.6; }.account-template { overflow: hidden; }.account-template > .account-form-grid, .account-detail-section { padding: 16px; }.account-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }.account-form-grid label { display: grid; gap: 6px; color: #56677e; font-size: 12px; font-weight: 700; }.account-form-grid label.full { grid-column: 1 / -1; }.account-form-grid input, .account-form-grid textarea { width: 100%; box-sizing: border-box; padding: 9px 10px; color: #8390a1; border: 1px solid #d9e1ea; border-radius: 6px; background: #f8fafc; font: inherit; font-size: 13px; font-weight: 400; }.account-form-grid textarea { min-height: 64px; resize: vertical; line-height: 1.5; }.account-form-grid input:disabled, .account-form-grid textarea:disabled { cursor: not-allowed; opacity: 1; }.account-form-grid input::placeholder, .account-form-grid textarea::placeholder { color: #9aa6b5; }.account-detail-section { border-top: 1px solid var(--line); }.account-detail-section h3 { margin: 0 0 13px; color: #40536b; font-size: 14px; }.account-log-placeholder { display: grid; min-height: 64px; place-items: center; color: #909cab; border: 1px dashed #ccd7e3; border-radius: 7px; background: #fbfcfe; font-size: 12px; }.security-placeholder { display: grid; gap: 5px; padding: 13px; border: 1px solid #e0e7ef; border-radius: 7px; background: #fbfcfe; }.security-placeholder strong { color: #53667d; font-size: 13px; }.security-placeholder span { color: #8492a4; font-size: 11px; line-height: 1.6; }
.account-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 17px; }.account-level { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; padding: 13px 15px; text-align: left; border: 1px solid #dce4ed; border-radius: 8px; background: #fff; cursor: pointer; font: inherit; }.account-level:hover { border-color: #bdcee1; background: #fbfdff; }.account-level.is-active { border-color: #a9c4df; background: #f3f8fd; }.account-level span { color: #4f6279; font-size: 12px; font-weight: 700; }.account-level strong { color: #315e8d; font-size: 15px; }.account-level small { grid-column: 1 / -1; color: #8492a4; font-size: 10px; }.template-heading { gap: 12px; }.security-level-badge { flex: 0 0 auto; padding: 4px 7px; color: #46698f !important; border: 1px solid #d2dfec; border-radius: 5px; background: #f5f9fd; font-size: 11px !important; font-weight: 700; }.account-purpose { display: grid; gap: 4px; padding: 14px 16px; border-bottom: 1px solid #e5ebf1; background: #fbfcfe; }.account-purpose strong { color: #4a617b; font-size: 12px; font-weight: 600; }.account-purpose span { color: #8290a2; font-size: 11px; line-height: 1.55; }
@media (max-width: 800px) { .account-layout { grid-template-columns: 1fr; }.account-list { order: 2; } }
@media (max-width: 560px) { .account-levels { grid-template-columns: 1fr; }.account-form-grid { grid-template-columns: 1fr; }.account-form-grid label.full { grid-column: auto; } }

/* 業務マニュアル: 記事をあとから追加するための、検索とカテゴリの入口です。 */
.manual-page { max-width: 1180px; }.manual-search-panel { padding: 15px; margin-bottom: 17px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }.manual-search-panel label { display: block; margin-bottom: 8px; color: #53647a; font-size: 12px; font-weight: 700; }.manual-search-panel > div { display: flex; gap: 8px; }.manual-search-panel input { min-width: 0; flex: 1; padding: 10px 11px; color: #35465e; border: 1px solid #cbd6e3; border-radius: 6px; background: #fff; font: inherit; font-size: 13px; }.manual-search-panel button { padding: 9px 15px; color: #fff; border: 0; border-radius: 6px; background: #315e8d; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }.manual-search-panel button:hover { background: #244e7a; }.manual-main { display: grid; grid-template-columns: 275px minmax(0, 1fr); gap: 17px; align-items: start; }.manual-categories, .manual-results { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }.manual-category-heading, .manual-results-heading { display: flex; justify-content: space-between; align-items: center; padding: 15px 16px; border-bottom: 1px solid var(--line); }.manual-category-heading h2, .manual-results-heading h2 { margin: 0; color: #30445e; font-size: 16px; }.manual-category-heading span { padding: 4px 6px; color: #697b92; border-radius: 4px; background: #f1f5f9; font-size: 10px; font-weight: 700; }.manual-category { display: grid; width: 100%; gap: 4px; padding: 13px 16px; text-align: left; border: 0; border-bottom: 1px solid #e8edf3; background: #fff; cursor: pointer; font: inherit; }.manual-category:hover { background: #fbfdff; }.manual-category.is-active { background: #f4f8fd; box-shadow: inset 3px 0 #547db4; }.manual-category strong { color: #40546d; font-size: 13px; font-weight: 600; }.manual-category span { color: #8491a2; font-size: 10px; }.manual-results-heading { align-items: flex-start; }.manual-results-heading p { margin: 5px 0 0; color: #7f8da0; font-size: 11px; }.manual-results-list { padding: 16px; }.manual-empty { display: grid; min-height: 230px; place-content: center; padding: 18px; text-align: center; border: 1px dashed #d2dce7; border-radius: 7px; background: #fbfcfe; }.manual-empty strong { color: #607188; font-size: 13px; }.manual-empty p { max-width: 330px; margin: 8px 0 0; color: #8a97a8; font-size: 11px; line-height: 1.65; }
.manual-tree-branch { --tree-indent: 0; }.manual-tree-children { margin-left: 13px; border-left: 1px solid #e2e8ef; }.manual-tree-node { display: flex; width: 100%; align-items: center; gap: 6px; padding: 9px 12px; color: #53657b; text-align: left; border: 0; background: #fff; cursor: pointer; font: inherit; font-size: 12px; line-height: 1.35; }.manual-tree-node:hover { background: #fbfdff; }.manual-tree-node.folder { color: #40556f; font-weight: 700; }.manual-tree-node.folder-filter { padding-top: 6px; padding-bottom: 6px; color: #60738b; font-size: 11px; }.manual-tree-node.article { color: #697a90; }.manual-tree-node.is-selected { color: #2f6098; background: #f2f7fc; }.manual-tree-icon { width: 10px; color: #7890aa; font-size: 14px; text-align: center; }.manual-tree-node.article .manual-tree-icon { color: #b2c0ce; font-size: 13px; }.manual-tree-node em { margin-left: auto; padding: 2px 4px; color: #6c5b9e; border-radius: 3px; background: #f2effa; font-size: 9px; font-style: normal; font-weight: 700; }.manual-tree-node.all { border-bottom: 1px solid #e8edf3; font-weight: 700; }
.manual-article-card { display: grid; position: relative; gap: 7px; padding: 15px; color: inherit; border: 1px solid #dde5ee; border-radius: 8px; background: #fff; text-decoration: none; }.manual-article-card + .manual-article-card { margin-top: 9px; }.manual-article-card:hover { border-color: #aec3dc; background: #fbfdff; }.manual-article-card.is-draft { background: #fbfcfe; }.manual-article-card h3 { margin: 0; color: #344b66; font-size: 15px; font-weight: 600; }.manual-article-card p { margin: 0; color: #75849a; font-size: 12px; line-height: 1.65; }.manual-article-card small { color: #92a0af; font-size: 10px; }.manual-article-card b { margin-top: 2px; color: #35649a; font-size: 11px; }.manual-article-category { width: fit-content; padding: 3px 6px; color: #6d5a9e; border-radius: 4px; background: #f2effa; font-size: 10px; font-weight: 700; }.manual-article-page { max-width: 840px; }.manual-back-link { display: inline-block; margin: 4px 0 18px; color: #507098; font-size: 12px; font-weight: 600; text-decoration: none; }.manual-back-link:hover { color: #254f7e; }.manual-article-header { padding: 22px 24px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }.manual-article-header > span { display: inline-block; padding: 4px 7px; color: #6d5a9e; border-radius: 4px; background: #f2effa; font-size: 10px; font-weight: 700; }.manual-article-header h1 { margin: 13px 0 0; color: #30445e; font-size: clamp(22px, 3vw, 29px); letter-spacing: -.02em; }.manual-article-header p { margin: 10px 0 0; color: #748399; font-size: 13px; line-height: 1.7; }.manual-article-body { margin-top: 17px; padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }.manual-article-body h2 { margin: 0 0 12px; color: #38516e; font-size: 17px; }.manual-article-body h2:not(:first-child) { margin-top: 28px; }.manual-article-body p, .manual-article-body li { color: #52647a; font-size: 13px; line-height: 1.8; }.manual-article-body ol { margin: 0; padding-left: 23px; }.manual-article-body li + li { margin-top: 7px; }.manual-note { margin-top: 17px; padding: 13px 15px; border: 1px solid #eadabf; border-radius: 7px; background: #fffaf2; }.manual-note strong { color: #9a6d27; font-size: 12px; }.manual-note p { margin: 5px 0 0; }.manual-screen-sample { margin: 18px 0 0; padding: 15px; border: 1px solid #e1e7ee; border-radius: 8px; background: #fafcfe; }.manual-screen-sample figcaption { margin-bottom: 10px; color: #61738a; font-size: 12px; font-weight: 700; }.sample-window { overflow: hidden; border: 1px solid #cdd9e6; border-radius: 6px; background: #fff; }.sample-window-bar { display: flex; gap: 4px; padding: 7px; border-bottom: 1px solid #e2e8ef; background: #f2f5f8; }.sample-window-bar span { width: 6px; height: 6px; border-radius: 50%; background: #b5c0cd; }.sample-window-content { display: grid; gap: 9px; padding: 13px; }.sample-row { display: grid; grid-template-columns: 78px 1fr; gap: 8px; align-items: center; padding-bottom: 8px; border-bottom: 1px solid #edf1f5; }.sample-row small { color: #7b899b; font-size: 10px; }.sample-row strong { color: #52677f; font-size: 11px; }.sample-window-content button { width: fit-content; padding: 8px 10px; color: #fff; border: 0; border-radius: 5px; background: #507daf; font: inherit; font-size: 11px; font-weight: 700; opacity: 1; }.manual-screen-sample > p { margin: 10px 0 0; color: #8795a6; font-size: 11px; }
@media (max-width: 800px) { .manual-main { grid-template-columns: 1fr; }.manual-categories { order: initial; } }
@media (max-width: 560px) { .manual-search-panel > div { flex-direction: column; }.manual-search-panel button { width: 100%; }.manual-empty { min-height: 180px; } }
.manual-dialog { width: min(600px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 10px; box-shadow: 0 18px 55px #1a2d481f; }.manual-dialog::backdrop { background: #10233d55; }.manual-dialog form { display: grid; gap: 14px; padding: 19px; }.manual-dialog label { display: grid; gap: 6px; color: #53647a; font-size: 12px; font-weight: 700; }.manual-dialog input, .manual-dialog select, .manual-dialog textarea { width: 100%; box-sizing: border-box; padding: 9px 10px; color: #35465e; border: 1px solid #cbd6e3; border-radius: 6px; background: #fff; font: inherit; font-size: 13px; }.manual-dialog textarea { min-height: 115px; resize: vertical; line-height: 1.55; }.manual-dialog #manual-article-note { min-height: 65px; }.manual-dialog .dialog-actions { margin-top: 2px; }

/* 共通デザインシステム: 静かなiOS標準アプリに近い業務UIへ統一します。 */
:root { --ink: #222222; --muted: #757575; --line: #e5e5e5; --surface: #ffffff; --canvas: #f6f6f6; --blue: #2463a5; --blue-soft: #f1f6fb; --green: #2463a5; --amber: #2463a5; --rose: #2463a5; --purple: #2463a5; font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; }
body { color: var(--ink); background: var(--canvas); font-weight: 400; -webkit-font-smoothing: antialiased; }
button, input, select, textarea, pre { font-family: inherit; }
button, .admin-link, .card-action, .task-primary, .task-secondary, .reset-button, .reset-preview, .room-detail-actions button, .room-map-row a, .manual-search-panel button { font-weight: 500; }
.site-header { min-height: 64px; padding: 10px max(24px, calc((100vw - 1240px) / 2)); background: #fff; border-color: var(--line); }
.brand { gap: 9px; color: var(--ink); }.brand-mark { width: 30px; height: 30px; border-radius: 7px; background: var(--blue); box-shadow: none; font-size: 14px; font-weight: 600; }.brand strong { font-size: 15px; font-weight: 600; letter-spacing: 0; }.brand small { color: var(--muted); font-size: 10px; letter-spacing: 0; }.header-actions { gap: 14px; }.today { color: #555; font-size: 12px; font-weight: 500; }.calendar-icon { color: var(--blue); }.admin-link { padding: 8px 11px; color: #444; border-color: var(--line); border-radius: 6px; background: #fff; font-size: 12px; }.admin-link:hover { color: var(--blue); border-color: #cfcfcf; background: #fafafa; }
.page-content { max-width: 1240px; padding: 24px 24px 32px; }.breadcrumbs { margin-bottom: 14px; color: var(--muted); font-size: 12px; }.breadcrumbs a { color: #555; }.breadcrumbs a:hover { color: var(--blue); }.intro h1, .work-intro h1 { color: var(--ink); font-size: clamp(22px, 2vw, 25px); font-weight: 600; letter-spacing: 0; }.intro > div > p:last-child, .work-intro > div > p:last-child { color: var(--muted); font-size: 13px; }.eyebrow { color: var(--blue); font-weight: 500; letter-spacing: 0; }
.status-section, .feature-section, .shift-section, .task-shift, .handoff-form, .handoff-preview, .room-list, .room-template, .account-list, .account-template, .manual-categories, .manual-results, .manual-search-panel, .manual-article-header, .manual-article-body { border-color: var(--line); border-radius: 8px; box-shadow: none; }.status-section { padding: 16px; }.feature-section { margin-top: 16px; padding: 16px; }.section-heading h2, .room-list-heading h2, .template-heading h2, .account-list-heading h2, .manual-category-heading h2, .manual-results-heading h2 { color: var(--ink); font-weight: 600; }.section-heading p, .template-heading span, .account-empty p, .room-empty p, .manual-results-heading p { color: var(--muted); }
.status-grid, .task-overview { border-color: var(--line); border-radius: 7px; }.status-card { padding: 12px 13px 13px 42px; }.status-card p, .task-overview article span, .task-progress span { color: var(--muted); font-weight: 400; }.status-card strong, .task-overview article strong { color: var(--ink); font-weight: 600; }.status-card strong small, .task-overview article small { color: var(--muted); font-weight: 400; }.status-icon, .blue, .green, .amber, .rose, .purple { color: var(--blue); background: var(--blue-soft); border-radius: 5px; font-weight: 500; }
.feature-grid { gap: 12px; }.feature-card { min-height: 195px; padding: 15px; border-color: var(--line); border-radius: 8px; box-shadow: none; }.feature-card.is-available:hover { border-color: #c9d6e5; box-shadow: none; transform: none; background: #fcfdff; }.feature-icon, .feature-inquiry, .feature-today-work, .feature-manual, .feature-room-info, .feature-accounts, .feature-inventory { color: var(--blue); background: var(--blue-soft); border-radius: 7px; font-weight: 500; }.feature-copy h3 { color: var(--ink); font-weight: 600; }.feature-copy p { color: var(--muted); }.feature-details span, .quick-task-list span { border-radius: 5px; background: #f7f7f7; }.open-badge, .pending-badge, .mock-badge, .account-list-heading span, .room-list-heading span, .manual-category-heading span { color: #666; border-radius: 4px; background: #f4f4f4; font-weight: 500; }.feature-state { color: var(--muted); font-weight: 500; }.feature-state.attention, .feature-state.muted { color: var(--muted); }.card-action, .task-secondary { color: #444; border-color: #d7d7d7; border-radius: 6px; background: #fff; font-weight: 500; }.is-available .card-action:hover, .task-secondary:hover { color: var(--blue); border-color: #b9cce0; background: #f8fbfe; }
.task-primary { color: #fff; border-radius: 6px; background: var(--blue); font-weight: 600; box-shadow: none; }.task-primary:hover { background: #1e548d; }.work-intro { margin-bottom: 18px; }.task-overview { margin-bottom: 14px; }.task-overview article, .task-progress { padding: 13px 14px; }.task-overview .complete strong, .task-overview .remaining strong, .task-overview .handoff strong, .task-progress strong { color: var(--blue); }.task-progress { background: #fafafa; }.progress-track { background: #e9e9e9; }.progress-track span { background: var(--blue); }.task-shift-heading, .task-shift.middle .task-shift-heading, .task-shift.late .task-shift-heading, .shift-heading.early, .shift-heading.late { background: #fafafa; }.task-shift-heading h2, .shift-heading h2 { color: var(--ink); font-weight: 600; }.task-item, .task-shift-heading, .shift-heading { border-color: var(--line); }.task-title-row h3, .task-panel h3 { color: var(--ink); font-weight: 500; }.task-time, .task-shift-heading > span, .shift-heading-actions > span { color: var(--muted); }.task-check span { border-color: #c9c9c9; border-radius: 4px; }.task-check input:checked + span { border-color: var(--blue); background: var(--blue); }.task-edit { color: #666; font-weight: 500; }.task-edit:hover { color: var(--blue); background: #f6f6f6; }
.handoff-form-section, .room-detail-section, .account-detail-section { border-color: var(--line); }.handoff-form-section h2, .preview-heading h2 { color: var(--ink); font-weight: 600; }.handoff-form label, .recipient-picker > span, .room-form-grid label, .account-form-grid label, .manual-dialog label, .task-dialog label { color: #555; font-weight: 500; }.handoff-form input, .handoff-form select, .handoff-form textarea, .room-form-grid input, .room-form-grid textarea, .account-form-grid input, .account-form-grid textarea, .manual-search-panel input, .manual-dialog input, .manual-dialog select, .manual-dialog textarea, .task-dialog input:not([type="checkbox"]), .task-dialog select { color: var(--ink); border-color: #d7d7d7; border-radius: 6px; background: #fff; font-weight: 400; }.handoff-form textarea::placeholder, .room-form-grid input::placeholder, .room-form-grid textarea::placeholder, .account-form-grid input::placeholder, .account-form-grid textarea::placeholder, .manual-dialog textarea::placeholder { color: #9a9a9a; }.handoff-preview pre { color: #333; background: #fff; font-family: inherit; font-weight: 400; }.preview-heading, .account-purpose { background: #fafafa; border-color: var(--line); }.preview-heading span, .account-purpose span { color: var(--muted); }.recipient-item, .recipient-choice, .recipient-remove { border-color: #d7d7d7; }.recipient-choice { color: #555; font-weight: 500; }.recipient-choice[aria-pressed="true"] { color: var(--blue); background: var(--blue-soft); }.reset-button, .reset-preview { color: #555; border-color: #d7d7d7; border-radius: 6px; font-weight: 500; }.reset-button:hover, .reset-preview:hover { color: var(--blue); background: #fafafa; }
.room-list-item, .manual-tree-node, .manual-category { background: #fff; }.room-list-item strong, .room-display-field p { color: var(--ink); font-weight: 400; }.room-list-item span, .room-display-field > span { color: var(--muted); }.room-list-item.is-selected, .manual-tree-node.is-selected { background: var(--blue-soft); box-shadow: inset 2px 0 var(--blue); }.room-display-field, .manual-article-card, .manual-empty, .security-placeholder, .account-log-placeholder { border-color: var(--line); border-radius: 7px; background: #fafafa; }.room-display-field > span, .account-detail-section h3, .room-detail-section h3 { color: #555; font-weight: 600; }.room-detail-actions button, .room-map-row a { color: #444; border-color: #d7d7d7; border-radius: 6px; font-weight: 500; }.room-detail-actions button:hover, .room-map-row a:hover { color: var(--blue); background: #fafafa; }.room-copy-status { background: #333; border-radius: 6px; }
.account-level { border-color: var(--line); border-radius: 7px; }.account-level:hover { border-color: #cfcfcf; background: #fafafa; }.account-level.is-active { border-color: #bfd1e4; background: var(--blue-soft); }.account-level span, .account-level strong { color: var(--ink); font-weight: 500; }.account-level small { color: var(--muted); }.security-level-badge, .manual-article-category, .manual-article-header > span { color: var(--blue) !important; border-color: transparent; background: var(--blue-soft); font-weight: 500; }.manual-tree-children { border-color: var(--line); }.manual-tree-node { color: #555; font-weight: 400; }.manual-tree-node.folder, .manual-tree-node.all { color: var(--ink); font-weight: 500; }.manual-tree-node.article { color: #666; }.manual-tree-node em { color: var(--blue); background: var(--blue-soft); font-weight: 500; }.manual-article-card:hover { border-color: #c8d6e5; background: #fff; }.manual-article-card h3, .manual-article-header h1, .manual-article-body h2 { color: var(--ink); font-weight: 600; letter-spacing: 0; }.manual-article-card p, .manual-article-body p, .manual-article-body li, .manual-article-header p { color: #555; }.manual-note { border-color: #e5e5e5; border-left: 3px solid var(--blue); border-radius: 6px; background: #fafafa; }.manual-note strong { color: var(--blue); font-weight: 600; }.manual-screen-sample { border-color: var(--line); border-radius: 7px; background: #fafafa; }.sample-window { border-color: #d7d7d7; border-radius: 6px; }.sample-window-bar { border-color: var(--line); background: #f5f5f5; }.sample-window-content button { background: var(--blue); font-weight: 500; }
.task-dialog, .room-dialog, .manual-dialog { border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 30px rgba(0, 0, 0, .08); }.task-dialog::backdrop, .room-dialog::backdrop, .manual-dialog::backdrop { background: rgba(0, 0, 0, .22); }.dialog-heading h2 { color: var(--ink); font-weight: 600; }.dialog-close { color: #666; border-radius: 5px; }.dialog-close:hover { background: #f5f5f5; }
@media (max-width: 760px) { .site-header { padding: 10px 16px; }.page-content { padding: 20px 16px 28px; }.feature-section, .status-section { padding: 14px; } }

/* 補助要素もアクセントカラーを一色に限定します。 */
.shift-label, .late .shift-label, .task-title-row em, .coverage-badge, .inquiry-reminder > span, .handoff-link, .room-copy-status, .photo-count { color: var(--blue); }.shift-label, .task-title-row em, .coverage-badge, .inquiry-reminder > span { border-color: transparent; background: var(--blue-soft); }.inquiry-reminder { border-color: var(--line); border-radius: 7px; background: #fafafa; }.inquiry-reminder strong { color: var(--ink); font-weight: 600; }.inquiry-reminder p, .inquiry-reminder small { color: var(--muted); }.read-only-badge, .template-note, .sample-note { color: var(--muted); background: #f5f5f5; border-radius: 5px; font-weight: 400; }.recipient-remove:hover, .room-detail-actions button:last-child { color: #555; background: #fafafa; }

/* ＣＬＩＰＰＥＲ ヘッダー */
.site-header { color: #fff; background: #183f68; border-color: #183f68; }.brand { color: #fff; }.brand-mark { color: #fff; background: rgba(255,255,255,.16); }.brand strong { color: #fff; font-size: 16px; font-weight: 600; }.brand small { color: rgba(255,255,255,.72); }.today { color: rgba(255,255,255,.8); }.calendar-icon { color: #fff; }.admin-link { color: #fff; border-color: rgba(255,255,255,.3); background: transparent; }.admin-link:hover { color: #fff; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.1); }

/* ヘッダー内の情報は、濃い帯の上でも読みやすい白系に統一します。 */
.site-header .header-actions { gap: 18px; }.site-header .today { gap: 8px; color: rgba(255,255,255,.92); font-size: 13px; font-weight: 500; }.site-header .calendar-icon { position: relative; display: grid; width: 16px; height: 16px; place-items: center; color: transparent; font-size: 0; }.site-header .calendar-icon::before { width: 12px; height: 12px; border: 1.5px solid rgba(255,255,255,.92); border-radius: 2px; content: ""; }.site-header .calendar-icon::after { position: absolute; top: 5px; left: 2px; width: 12px; height: 1px; background: rgba(255,255,255,.92); content: ""; }.site-header .staff-button { gap: 7px; padding: 3px 5px 3px 3px; color: #fff; border-radius: 6px; }.site-header .staff-button:hover { border-color: transparent; background: rgba(255,255,255,.1); }.site-header .staff-button small { color: rgba(255,255,255,.68); font-size: 10px; font-weight: 400; }.site-header .staff-button strong { color: #fff; font-size: 13px; font-weight: 500; }.site-header .avatar { color: #183f68; background: #fff; font-weight: 600; }.site-header .admin-link { min-height: 36px; display: inline-flex; align-items: center; color: #fff; border-color: rgba(255,255,255,.38); font-weight: 500; }

/* SaaS管理コンソール共通レイアウト */
:root { --sidebar-width: 236px; --console-blue: #1f5d99; --console-ink: #1f2933; --console-muted: #6b7280; --console-line: #e5e7eb; }
.side-navigation { position: fixed; z-index: 30; top: 0; bottom: 0; left: 0; display: flex; width: var(--sidebar-width); flex-direction: column; padding: 20px 12px 16px; border-right: 1px solid var(--console-line); background: #fff; }
.side-navigation { overflow-y: auto; scrollbar-width: thin; scrollbar-color: #cfd6de transparent; }
.sidebar-brand { display: flex; align-items: center; min-height: 42px; padding: 0 10px; color: var(--console-ink); text-decoration: none; }
.sidebar-brand-mark { display: grid; width: 28px; height: 28px; place-items: center; color: #fff; border-radius: 7px; background: var(--console-blue); font-size: 13px; font-weight: 600; }
.sidebar-brand strong { font-size: 14px; font-weight: 600; letter-spacing: 0; }
.sidebar-nav { display: grid; gap: 3px; margin-top: 29px; }
.sidebar-link { display: flex; align-items: center; gap: 11px; min-height: 40px; padding: 0 11px; color: #59636f; border-radius: 7px; font-size: 13px; font-weight: 500; text-decoration: none; }
.sidebar-link > span:first-child { display: grid; width: 17px; place-items: center; color: #8a949f; font-size: 16px; line-height: 1; }
.sidebar-link > span:first-child svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-link:hover { color: var(--console-ink); background: #f7f8fa; }
.sidebar-link.is-active { color: var(--console-blue); background: #edf4fb; font-weight: 600; }
.sidebar-link.is-active > span:first-child { color: var(--console-blue); }
.sidebar-bottom { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--console-line); }
.sidebar-settings { width: 100%; border: 0; background: transparent; cursor: pointer; font-family: inherit; text-align: left; }
.sidebar-external { color: #59636f; }
.app-shell { padding-left: var(--sidebar-width); }
.site-header { position: sticky; z-index: 20; top: 0; min-height: 64px; justify-content: flex-end; padding: 10px 28px; color: var(--console-ink); border-color: var(--console-line); background: #fff; }
.site-header .brand { display: none; }
.console-tools { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.console-search { position: relative; display: flex; width: min(330px, 28vw); height: 34px; align-items: center; gap: 7px; padding: 0 10px; color: #9aa1a9; border: 1px solid var(--console-line); border-radius: 7px; background: #fff; }
.console-search > span { font-size: 17px; line-height: 1; }
.console-search > span svg, .notice-button > span svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.console-search input { width: 100%; padding: 0; color: var(--console-ink); border: 0; outline: 0; background: transparent; font-size: 12px; }
.console-search input::placeholder { color: #9aa1a9; }
.portal-search-results { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; width: min(420px, calc(100vw - 32px)); overflow: hidden; border: 1px solid var(--console-line); border-radius: 8px; background: #fff; box-shadow: 0 10px 24px rgba(20, 30, 40, .1); }
.portal-search-results a { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 11px; color: var(--console-ink); border-bottom: 1px solid #f0f1f2; font-size: 12px; text-decoration: none; }
.portal-search-results a:last-child { border-bottom: 0; }.portal-search-results a:hover { background: #f7f9fb; }.portal-search-results small { flex: 0 0 auto; color: var(--console-muted); font-size: 10px; }.portal-search-results p { margin: 0; padding: 12px; color: var(--console-muted); font-size: 12px; }
.notice-button { position: relative; display: grid; width: 34px; height: 34px; place-items: center; color: #65707c; border: 0; border-radius: 7px; background: transparent; font-size: 18px; }
.notice-button:hover { background: #f5f6f7; }
.notice-button i { position: absolute; top: 7px; right: 7px; width: 5px; height: 5px; border: 1px solid #fff; border-radius: 50%; background: var(--console-blue); }
.site-header .header-actions { gap: 0; }
.site-header .staff-button { gap: 8px; padding: 3px 7px 3px 3px; color: var(--console-ink); border-radius: 7px; }
.site-header .staff-button:hover { background: #f5f6f7; }
.site-header .staff-button small { color: var(--console-muted); }
.site-header .staff-button strong { color: var(--console-ink); font-size: 13px; font-weight: 500; }
.site-header .avatar { color: #fff; background: var(--console-blue); }

/* 共通ログイン */
.portal-auth-dialog { width: min(420px, calc(100vw - 32px)); border: 1px solid var(--console-line); border-radius: 10px; padding: 0; color: var(--console-ink); background: #fff; box-shadow: 0 18px 48px rgba(15, 32, 48, .18); }
.portal-auth-dialog::backdrop { background: rgba(15, 24, 35, .28); }
.portal-auth-form { display: grid; gap: 14px; padding: 22px; }
.portal-auth-form .dialog-heading { display: flex; align-items: center; justify-content: space-between; }
.portal-auth-form h2 { margin: 0; font-size: 18px; font-weight: 600; }
.portal-auth-form p { margin: 0; color: var(--console-muted); font-size: 12px; line-height: 1.65; }
.portal-auth-form label { display: grid; gap: 6px; color: #4e5863; font-size: 12px; font-weight: 500; }
.portal-auth-form input { min-height: 40px; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--console-line); border-radius: 6px; color: var(--console-ink); font: inherit; }
.portal-auth-form input:focus-visible { outline: 2px solid #a8c6e2; outline-offset: 1px; border-color: var(--console-blue); }
.portal-auth-error { color: #b42318 !important; }
.portal-auth-form .dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.portal-auth-form .dialog-actions button { min-height: 38px; padding: 0 13px; border-radius: 6px; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.portal-auth-form .primary { color: #fff; border: 1px solid var(--console-blue); background: var(--console-blue); }
.portal-auth-form .secondary { color: #53606b; border: 1px solid var(--console-line); background: #fff; }
.portal-auth-form .primary:hover { background: #174d80; }.portal-auth-form .secondary:hover { background: #f7f8fa; }
.first-account-page { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: #f5f6f8; }.first-account-card { width: min(480px, 100%); box-sizing: border-box; padding: 28px; border: 1px solid var(--console-line); border-radius: 10px; background: #fff; }.first-account-card h1 { margin: 0; color: var(--console-ink); font-size: 22px; font-weight: 600; }.first-account-card > p:not(.eyebrow) { margin: 10px 0 18px; color: var(--console-muted); font-size: 13px; line-height: 1.65; }.first-account-card .portal-auth-form { padding: 0; }
.first-account-card .bootstrap-reset { display: flex; align-items: center; gap: 8px; color: var(--console-muted); font-weight: 400; }.first-account-card .bootstrap-reset input { min-height: auto; width: 16px; height: 16px; margin: 0; padding: 0; }
.staff-account-panel { overflow: hidden; border: 1px solid var(--console-line); border-radius: 10px; background: #fff; }
.staff-account-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; border-bottom: 1px solid var(--console-line); }
.staff-account-head h2 { margin: 0; font-size: 16px; font-weight: 600; }.staff-account-head p { margin: 5px 0 0; color: var(--console-muted); font-size: 12px; }
.primary-action { min-height: 38px; padding: 0 13px; color: #fff; border: 1px solid var(--console-blue); border-radius: 6px; background: var(--console-blue); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }.primary-action:hover { background: #174d80; }.primary-action:disabled { cursor: default; opacity: .5; }
.portal-user-row { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 20px; border-bottom: 1px solid #eef0f2; }.portal-user-row:last-child { border-bottom: 0; }.portal-user-row strong, .portal-user-row span { display: block; }.portal-user-row strong { color: var(--console-ink); font-size: 13px; font-weight: 600; }.portal-user-row > div:first-child span { margin-top: 3px; color: var(--console-muted); font-size: 11px; }.portal-user-row > div:last-child { display: flex; align-items: center; gap: 8px; }.portal-role, .portal-state { padding: 3px 7px; border-radius: 4px; font-size: 11px; font-style: normal; font-weight: 500; }.portal-role { color: #56616c; background: #f2f4f6; }.portal-role.admin { color: var(--console-blue); background: #eef5fc; }.portal-state.active { color: #28735f; background: #edf8f3; }.portal-state.inactive { color: #7b5d31; background: #fff7e9; }
@media (max-width: 560px) { .staff-account-head { align-items: flex-start; flex-direction: column; }.staff-account-head .primary-action { width: 100%; }.portal-user-row { padding: 10px 14px; }.portal-user-row > div:last-child { align-items: flex-end; flex-direction: column; gap: 4px; } }
.page-content { max-width: 1440px; padding: 28px 30px 40px; }
.intro { margin-bottom: 20px; }
.eyebrow { margin-bottom: 4px; color: var(--console-muted); font-size: 12px; }
.intro h1, .work-intro h1 { color: var(--console-ink); font-size: 25px; font-weight: 600; }
.dashboard-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin: -4px 0 16px; }
.overview-card { min-width: 0; min-height: 84px; padding: 12px 14px; border: 1px solid var(--console-line); border-radius: 8px; background: #fff; }
.overview-heading { margin: 0 0 8px; color: var(--console-muted); font-size: 11px; font-weight: 500; }
.overview-content { min-height: 42px; }
.overview-main { display: flex; min-width: 0; align-items: baseline; gap: 9px; }
.overview-main time { flex: 0 0 auto; color: var(--console-blue); font-size: 15px; font-weight: 600; }
.overview-main strong { overflow: hidden; color: var(--console-ink); font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.overview-subline { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 7px; color: var(--console-muted); font-size: 11px; }
.overview-subline a { flex: 0 0 auto; color: var(--console-blue); font-weight: 500; text-decoration: none; }
.overview-subline a:hover { text-decoration: underline; }
.overview-stats { display: flex; align-items: baseline; gap: 24px; }
.overview-stats div { display: flex; align-items: baseline; gap: 6px; }
.overview-stats span { color: var(--console-muted); font-size: 11px; }
.overview-stats strong { color: #25775e; font-size: 16px; font-weight: 600; }
.overview-stats strong.is-lost { color: #b87521; }
.overview-empty { margin: 0; padding-top: 8px; color: var(--console-muted); font-size: 12px; }
.overview-number { display: flex; align-items: baseline; gap: 4px; padding-top: 1px; }
.overview-number strong { color: var(--console-ink); font-size: 25px; font-weight: 600; line-height: 1; }
.overview-number span { color: var(--console-muted); font-size: 12px; font-weight: 500; }
.overview-number.is-target strong { color: var(--console-blue); }
.next-action-section { display: flex; min-height: 54px; align-items: center; gap: 18px; margin-top: 14px; padding: 10px 14px; border: 1px solid var(--console-line); border-radius: 8px; background: #fff; }
.next-action-heading { flex: 0 0 auto; margin: 0; color: var(--console-muted); font-size: 11px; font-weight: 500; }
.next-action-section .overview-content { width: 100%; min-height: 0; }
.next-action-section .overview-main { display: inline-flex; margin-right: 16px; }
.next-action-section .overview-subline { display: inline-flex; margin-top: 0; }
.next-task-panel { display: flex; min-height: 48px; align-items: center; gap: 10px; margin: -6px 0 16px; padding: 9px 13px; border: 1px solid var(--console-line); border-radius: 8px; background: #fff; color: var(--console-ink); font-size: 12px; }
.next-task-panel[hidden] { display: none; }
.next-task-label { color: var(--console-muted); font-size: 11px; }
.next-task-time { color: var(--console-blue); font-size: 13px; font-weight: 600; }
.next-task-title { overflow: hidden; min-width: 0; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.next-task-timing { color: var(--console-muted); font-size: 11px; }
.next-task-link { margin-left: auto; color: var(--console-blue); font-size: 11px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.next-task-link:hover { text-decoration: underline; }
.status-section, .feature-section { border-color: var(--console-line); border-radius: 10px; }
.status-section { padding: 0; background: transparent; border: 0; }
.status-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); border-color: var(--console-line); border-radius: 10px; background: #fff; }
.status-card { padding: 17px 14px 16px 46px; }
.status-card p { margin-bottom: 9px; color: var(--console-muted); font-size: 12px; }
.status-card strong { color: var(--console-ink); font-size: 26px; font-weight: 600; }
.status-card strong small { color: var(--console-muted); font-size: 11px; font-weight: 400; }
.status-card em { display: block; margin-top: 5px; color: #9b5a1c; font-size: 10px; font-style: normal; font-weight: 500; }
.status-icon { top: 17px; left: 15px; width: 23px; height: 23px; color: var(--console-blue); border-radius: 6px; background: #eef5fc; font-size: 13px; }
.feature-section { margin-top: 18px; padding: 0; overflow: hidden; }
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.feature-card { min-height: 195px; border: 0; border-right: 1px solid var(--console-line); border-bottom: 1px solid var(--console-line); border-radius: 0; }
.feature-card:nth-child(3n) { border-right: 0; }
.feature-card:nth-child(n + 4) { border-bottom: 0; }
.feature-card.is-available:hover { border-color: var(--console-line); background: #fafcff; }
.feature-icon, .feature-inquiry, .feature-today-work, .feature-manual, .feature-room-info, .feature-accounts, .feature-inventory { color: var(--console-blue); background: #eef5fc; }
.feature-copy h3 { color: var(--console-ink); }
.feature-copy p, .feature-state { color: var(--console-muted); }
.open-badge, .pending-badge { color: #6b7280; background: #f4f5f6; }
.card-action { color: #4b5563; border-color: #d9dde2; }
.card-action:hover, .is-available .card-action:hover { color: #fff; border-color: var(--console-blue); background: var(--console-blue); }

@media (max-width: 860px) {
  :root { --sidebar-width: 0px; }
  .app-shell { padding: 0 0 70px; }
  .side-navigation { z-index: 40; top: auto; width: 100%; height: 64px; flex-direction: row; align-items: stretch; padding: 5px 5px env(safe-area-inset-bottom); border-top: 1px solid var(--console-line); border-right: 0; }
  .sidebar-brand, .sidebar-bottom { display: none; }
  .sidebar-nav { display: grid; width: 100%; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; margin: 0; }
  .sidebar-link { min-width: 0; min-height: 52px; flex-direction: column; justify-content: center; gap: 3px; padding: 3px 1px; border-radius: 6px; font-size: 9px; text-align: center; }
  .sidebar-link > span:first-child { width: auto; font-size: 15px; }
  .site-header { padding: 10px 16px; }
  .console-search { width: min(300px, 48vw); }
  .page-content { padding: 22px 16px 28px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-card:nth-child(n) { border-right: 1px solid var(--console-line); border-bottom: 1px solid var(--console-line); }
  .feature-card:nth-child(2n) { border-right: 0; }
  .feature-card:nth-child(n + 5) { border-bottom: 0; }
}

@media (max-width: 560px) {
  .console-search { width: 39vw; }
  .site-header .staff-button > span:last-child { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card:nth-child(n) { min-height: 162px; border-right: 0; border-bottom: 1px solid var(--console-line); }
  .feature-card:last-child { border-bottom: 0; }
  .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-overview { grid-template-columns: 1fr; gap: 9px; }
  .next-action-section { display: block; margin-top: 12px; }
  .next-action-heading { margin-bottom: 6px; }
  .next-action-section .overview-main { margin-right: 0; }
  .next-action-section .overview-subline { display: flex; margin-top: 6px; }
  .next-task-panel { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 9px; align-items: baseline; margin-bottom: 14px; }
  .next-task-label { grid-column: 1 / -1; }
  .next-task-title { grid-column: 2 / -1; }
  .next-task-timing { grid-column: 1 / 3; }
  .next-task-link { grid-column: 3; grid-row: 3; margin-left: 0; }
}

/* Shared typography and navigation hierarchy. */
:root {
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --text-strong: #172033;
  --text-heading: #344054;
  --text-body: #475467;
  --text-secondary: #667085;
  --text-muted: #8a94a3;
  --border-card: #e4e8ee;
  --border-divider: #edf0f3;
}

.dashboard-page {
  color: var(--text-body);
  font-weight: var(--font-regular);
}

.dashboard-page .intro h1 {
  color: var(--text-strong);
  font-weight: var(--font-semibold);
}

.dashboard-page .intro p,
.dashboard-page .intro time,
.dashboard-page .overview-card p,
.dashboard-page .dashboard-panel p {
  color: var(--text-secondary);
  font-weight: var(--font-regular);
}

.dashboard-page .overview-card,
.dashboard-page .next-action-section,
.dashboard-page .dashboard-panel,
.dashboard-page .dashboard-list-card,
.dashboard-page .status-grid {
  border-color: var(--border-card);
  box-shadow: none;
}

.dashboard-page .overview-heading,
.dashboard-page .overview-card h2,
.dashboard-page .dashboard-panel-header h2,
.dashboard-page .dashboard-list-header h2 {
  color: var(--text-heading);
  font-size: 15px;
  font-weight: var(--font-medium);
  line-height: 1.5;
}

.dashboard-page .overview-metrics dt,
.dashboard-page .status-card p,
.dashboard-page .overview-target-row > b,
.dashboard-page .dashboard-list-row-main span,
.dashboard-page .dashboard-list-empty,
.dashboard-page .dashboard-list-more {
  color: var(--text-body);
  font-size: 13px;
  font-weight: var(--font-regular);
}

.dashboard-page .overview-metrics dd,
.dashboard-page .overview-target-row strong,
.dashboard-page .status-card > strong,
.dashboard-page .status-card strong:not(small),
.dashboard-page .dashboard-list-row time {
  color: var(--text-strong);
  font-weight: var(--font-semibold);
  font-variant-numeric: tabular-nums;
}

.dashboard-page .overview-metrics dd small,
.dashboard-page .overview-target-row strong small,
.dashboard-page .status-card small,
.dashboard-page .overview-target-row > span:not(.overview-progress),
.dashboard-page .target-source,
.dashboard-page .dashboard-list-row-main small,
.dashboard-page .dashboard-list-row time + span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: var(--font-regular);
}

.dashboard-page .overview-metrics dd.is-threshold-met,
.dashboard-page .overview-metrics dd.is-threshold-met small {
  color: #16805f;
}

.dashboard-page .overview-metrics > div + div,
.dashboard-page .status-card + .status-card,
.dashboard-page .dashboard-list-row + .dashboard-list-row {
  border-color: var(--border-divider);
}

.dashboard-page .section-icon,
.dashboard-page .status-card .section-icon {
  background: #f4f8fc;
  color: #1764a3;
}

.dashboard-page .status-card.is-warning .section-icon,
.dashboard-page .status-card.is-danger .section-icon {
  background: #fff6ed;
}

.dashboard-page .next-action-kicker {
  color: #1764a3;
  font-size: 11px;
  font-weight: var(--font-medium);
  letter-spacing: 0.04em;
}

.dashboard-page .next-action-time {
  color: var(--text-strong);
  font-size: clamp(36px, 2.4vw, 38px);
  font-weight: var(--font-semibold);
  font-variant-numeric: tabular-nums;
}

.dashboard-page .next-action-copy > strong {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: var(--font-regular);
}

.dashboard-page .next-action-copy > b {
  color: var(--text-strong);
  font-size: 18px;
  font-weight: var(--font-medium);
}

.dashboard-page .next-action-copy > span,
.dashboard-page .next-action-copy > em {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: var(--font-regular);
}

.dashboard-page .next-action-actions .button,
.dashboard-page .next-action-actions button {
  min-height: 40px;
  font-size: 14px;
  font-weight: var(--font-medium);
}

.dashboard-page .dashboard-list-row strong,
.dashboard-page .dashboard-list-row b {
  color: var(--text-heading);
  font-weight: var(--font-medium);
}

.dashboard-page .status-badge,
.dashboard-page .dashboard-list-badge {
  font-weight: var(--font-medium);
}

.side-navigation .sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
}

.side-navigation .sidebar-group {
  display: grid;
  gap: 4px;
}

.side-navigation .sidebar-group-label {
  margin: 0;
  padding: 0 12px;
  color: #98a2b3;
  font-size: 10px;
  font-weight: var(--font-medium);
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.side-navigation .sidebar-group-items {
  display: grid;
  gap: 1px;
}

.side-navigation .sidebar-link {
  min-height: 40px;
  color: #536174;
  font-size: 14px;
  font-weight: var(--font-regular);
}

.side-navigation .sidebar-link.is-active {
  background: #eaf2fa;
  color: #1764a3;
  font-weight: var(--font-medium);
}

@media (max-width: 860px) {
  .side-navigation .sidebar-nav,
  .side-navigation .sidebar-group-items {
    display: flex;
    flex-direction: row;
  }

  .side-navigation .sidebar-nav {
    gap: 2px;
    margin-top: 0;
  }

  .side-navigation .sidebar-group {
    display: contents;
  }

  .side-navigation .sidebar-group-label {
    display: none;
  }
}

/* Therapist management */
.therapist-management-page { max-width: 1480px; margin: 0 auto; }
.therapist-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.therapist-workflow-section { margin: 16px 0 14px; }
.therapist-workflow-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.therapist-workflow-tab {
  display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 12px;
  border: 1px solid var(--border-card, #e4e8ee); border-radius: 8px; background: #fff;
  color: var(--text-body, #475467); font: 400 13px/1.2 inherit; cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.therapist-workflow-tab:hover { background: #f7fbff; border-color: #c9ddef; color: #1764a3; }
.therapist-workflow-tab:focus-visible { outline: 2px solid #7aaee0; outline-offset: 2px; }
.therapist-workflow-tab:active { background: #edf5fc; }
.therapist-workflow-tab.is-active { border-color: #b8d5ee; background: #eaf2fa; color: #1764a3; font-weight: 500; }
.therapist-workflow-tab span { color: var(--text-muted, #8a94a3); font-size: 12px; font-weight: 400; }
.therapist-workflow-description { margin: 8px 0 0; color: var(--text-secondary, #667085); font-size: 13px; }
.therapist-stage-note { margin: 0 0 10px; color: var(--text-secondary, #667085); font-size: 13px; line-height: 1.5; }
.therapist-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.therapist-summary-card,
.therapist-list-panel { border: 1px solid var(--border-card, #e4e8ee); border-radius: 10px; background: #fff; }
.therapist-summary-card { min-height: 98px; padding: 16px; }
.therapist-summary-card span { display: block; color: var(--text-secondary, #667085); font-size: 13px; font-weight: 400; }
.therapist-summary-card strong { display: block; margin-top: 6px; color: var(--text-strong, #172033); font-size: 25px; font-weight: 600; font-variant-numeric: tabular-nums; }
.therapist-summary-card small { margin-left: 3px; color: var(--text-secondary, #667085); font-size: 12px; font-weight: 400; }
.therapist-list-toolbar { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(2, minmax(180px, .7fr)); gap: 10px; padding: 15px; border-bottom: 1px solid var(--border-divider, #edf0f3); }
.therapist-list-toolbar label { display: grid; gap: 5px; color: var(--text-secondary, #667085); font-size: 11px; font-weight: 400; }
.therapist-list-toolbar input,
.therapist-list-toolbar select,
.therapist-form input,
.therapist-form textarea,
.therapist-form select { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid #d9e0e8; border-radius: 7px; color: var(--text-body, #475467); background: #fff; font: inherit; box-sizing: border-box; }
.therapist-list-toolbar input:focus,
.therapist-list-toolbar select:focus,
.therapist-form input:focus,
.therapist-form textarea:focus,
.therapist-form select:focus { outline: 2px solid rgba(23,100,163,.16); border-color: #4b8fc7; }
.therapist-list-content { min-width: 0; overflow-x: visible; }
.therapist-table { width: 100%; min-width: 860px; border-collapse: collapse; }
.therapist-table th { padding: 11px 14px; color: var(--text-muted, #8a94a3); background: #fafbfc; font-size: 12px; font-weight: 400; text-align: left; white-space: nowrap; }
.therapist-table td { padding: 13px 14px; border-top: 1px solid var(--border-divider, #edf0f3); color: var(--text-body, #475467); font-size: 13px; vertical-align: middle; }
.therapist-table tr { cursor: pointer; }
.therapist-table tbody tr:hover { background: #f8fbfe; }
.therapist-name { color: var(--text-heading, #344054); font-weight: 500; }
.therapist-stage,
.therapist-flag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 5px; font-size: 12px; font-weight: 400; white-space: nowrap; }
.therapist-stage { background: #eef4fb; color: #1764a3; }
.therapist-stage.stage-active { background: #edf7f1; color: #28744a; }
.therapist-stage.stage-leave { background: #f3f4f6; color: #667085; }
.therapist-stage.stage-alert { background: #fff5e9; color: #b66b13; }
.therapist-flag { margin-right: 4px; background: #fff5e9; color: #a65e0c; }
.therapist-empty { padding: 38px 18px; color: var(--text-secondary, #667085); text-align: center; }
.therapist-dialog { width: min(1080px, calc(100vw - 32px)); height: min(840px, calc(100vh - 32px)); max-height: min(840px, calc(100vh - 32px)); padding: 0; overflow: hidden; border: 0; border-radius: 12px; background: #fff; color: var(--text-body, #475467); }
.therapist-dialog::backdrop { background: rgba(17, 24, 39, .36); }
.therapist-modal { min-height: 420px; }
.therapist-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px 15px; border-bottom: 1px solid var(--border-divider, #edf0f3); }
.therapist-modal-header h2 { margin: 0; color: var(--text-strong, #172033); font-size: 20px; font-weight: 500; }
.therapist-modal-header p { margin: 5px 0 0; color: var(--text-secondary, #667085); font-size: 13px; }
.therapist-close { width: 34px; height: 34px; border: 0; border-radius: 7px; background: transparent; color: #667085; font-size: 24px; cursor: pointer; }
.therapist-close:hover { background: #f2f5f8; }
.therapist-tabs { display: flex; gap: 4px; padding: 10px 18px 0; border-bottom: 1px solid var(--border-divider, #edf0f3); overflow-x: auto; }
.therapist-tab { padding: 10px 11px; border: 0; border-bottom: 2px solid transparent; color: var(--text-secondary, #667085); background: transparent; cursor: pointer; font: 400 13px inherit; white-space: nowrap; }
.therapist-tab.is-active { color: #1764a3; border-color: #1764a3; font-weight: 500; }
.therapist-tab:hover { color: #1764a3; background: #f8fbfe; }
.therapist-modal-body { padding: 20px 22px 26px; }
.therapist-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.therapist-detail-item { padding: 13px; border: 1px solid var(--border-divider, #edf0f3); border-radius: 8px; }
.therapist-detail-item small { display: block; color: var(--text-muted, #8a94a3); font-size: 11px; }
.therapist-detail-item strong { display: block; margin-top: 4px; color: var(--text-heading, #344054); font-size: 14px; font-weight: 500; }
.therapist-section { margin-top: 20px; }
.therapist-section h3 { margin: 0 0 10px; color: var(--text-heading, #344054); font-size: 15px; font-weight: 500; }
.therapist-form { display: grid; gap: 12px; }
.therapist-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.therapist-form label { display: grid; gap: 6px; color: var(--text-body, #475467); font-size: 13px; font-weight: 400; }
.therapist-form textarea { min-height: 96px; resize: vertical; }
.therapist-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.therapist-note,
.therapist-history-row,
.therapist-document-row { padding: 13px 0; border-top: 1px solid var(--border-divider, #edf0f3); }
.therapist-note:first-child,
.therapist-history-row:first-child,
.therapist-document-row:first-child { border-top: 0; }
.therapist-note-meta,
.therapist-history-meta { color: var(--text-muted, #8a94a3); font-size: 12px; }
.therapist-document-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.therapist-document-row strong { display: block; color: var(--text-heading, #344054); font-size: 14px; font-weight: 500; }
.therapist-document-row select { width: auto; min-height: 34px; padding: 5px 8px; border: 1px solid #d9e0e8; border-radius: 6px; background: #fff; color: #475467; }
.therapist-toast { position: fixed; right: 22px; bottom: 22px; z-index: 1000; padding: 12px 15px; border-radius: 8px; background: #172033; color: #fff; font-size: 13px; }
.therapist-error { padding: 14px; border-radius: 8px; background: #fff8f2; color: #9a5b0a; font-size: 13px; }

/* セラピスト応募登録 */
.therapist-modal { display: flex; height: 100%; min-height: 0; flex-direction: column; }
.therapist-modal .modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 28px 18px; border-bottom: 1px solid #e7edf3; }
.therapist-modal .modal-head h2 { margin: 3px 0 6px; color: #1d2939; font-size: 22px; line-height: 1.3; }
.therapist-modal .modal-head p:not(.eyebrow) { margin: 0; color: #667085; font-size: 14px; }
.therapist-modal .modal-head button { width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: #667085; font-size: 25px; cursor: pointer; }
.therapist-modal .modal-head button:hover { background: #f2f5f8; }
.therapist-modal .detail-body { min-height: 0; flex: 1 1 auto; overflow-y: auto; padding: 24px 28px; }
.therapist-form-section { min-width: 0; margin: 0; padding: 20px; border: 1px solid #dfe7f0; border-radius: 12px; background: #fff; }
.therapist-form-section legend { padding: 0 7px; color: #1764a3; font-size: 14px; font-weight: 700; }
.therapist-field { display: grid; gap: 7px; min-width: 0; color: #475467; font-size: 13px; font-weight: 600; }
.therapist-field.full { grid-column: 1 / -1; }
.therapist-field input, .therapist-field select, .therapist-field textarea { width: 100%; min-height: 42px; box-sizing: border-box; padding: 9px 11px; border: 1px solid #cfd9e5; border-radius: 8px; background: #fff; color: #1d2939; font: inherit; }
.therapist-field input:focus, .therapist-field select:focus, .therapist-field textarea:focus, .application-import textarea:focus { outline: 3px solid rgba(23,100,163,.13); border-color: #1764a3; }
.therapist-entry .detail-body { display: grid; gap: 20px; background: #f7f9fc; }
.therapist-table { width: 100%; min-width: 0; overflow: hidden; border: 1px solid #e1e8f0; border-radius: 10px; background: #fff; }
.therapist-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.35fr) minmax(76px, .66fr) minmax(0, 1.16fr) minmax(82px, .72fr) minmax(54px, .42fr); align-items: center; width: 100%; min-height: 84px; padding: 0 14px; border: 0; border-top: 1px solid #e8edf3; background: #fff; color: #344054; font: inherit; text-align: left; cursor: pointer; transition: background .15s ease, box-shadow .15s ease; }
.therapist-row > * { min-width: 0; padding: 0 8px; }
.therapist-row:first-child { border-top: 0; }
.therapist-row:hover { background: #f7fbff; }
.therapist-row-status-applied { box-shadow: inset 4px 0 #8b7bd7; }
.therapist-row-status-interview { box-shadow: inset 4px 0 #ee9b42; }
.therapist-row-status-reviewed { box-shadow: inset 4px 0 #5b9bd5; }
.therapist-row-status-hired { box-shadow: inset 4px 0 #27a6a1; }
.therapist-row-status-active { box-shadow: inset 4px 0 #42a66b; }
.therapist-row-status-paused { box-shadow: inset 4px 0 #d6a63c; }
.therapist-row-status-closed { box-shadow: inset 4px 0 #a5adb8; }
.therapist-row-head { min-height: 40px; border-top: 0; background: #f8fafc; color: #7a8796; font-size: 11px; font-weight: 600; cursor: default; }
.therapist-row-head { box-shadow: none; }
.therapist-row-head:hover { background: #f8fafc; }
.therapist-row .therapist-name { display: flex; align-items: center; gap: 8px; min-width: 0; padding-left: 6px; color: #1d2939; font-weight: 700; }
.therapist-rank-icon { flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #edf1f5; color: #7b8795; font-size: 13px; font-weight: 800; }
.therapist-rank-icon.gold { background: #fff2cc; color: #b77900; }
.therapist-rank-icon.silver { background: #eef1f4; color: #667085; }
.therapist-rank-icon.platinum { background: #e7f4f7; color: #397789; }
.therapist-identity { display: grid; min-width: 0; gap: 3px; }
.therapist-identity strong { overflow: hidden; color: #1d2939; text-overflow: ellipsis; white-space: nowrap; }
.therapist-identity small { overflow: hidden; color: #738094; font-size: 11px; font-weight: 500; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.therapist-flags { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.therapist-row .therapist-flag { margin: 0; }
.therapist-row-value { overflow: hidden; color: #526275; text-overflow: ellipsis; white-space: nowrap; }
.therapist-condition-cell, .therapist-interview-cell { display: grid; gap: 5px; }
.therapist-condition-cell strong, .therapist-interview-cell strong { overflow: hidden; color: #344054; font-size: 12px; font-weight: 600; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.therapist-condition-cell small, .therapist-interview-cell small { overflow: hidden; color: #7a8796; font-size: 10px; font-weight: 400; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.therapist-selection-cell { display: flex; align-items: center; }
.therapist-stage { min-height: 22px; padding: 0 7px; font-size: 10px; font-weight: 600; }
.therapist-stage.stage-applied { color: #6655b5; background: #f1effb; }
.therapist-stage.stage-interview { color: #a45b0a; background: #fff4e6; }
.therapist-stage.stage-reviewed { color: #316f9f; background: #edf5fb; }
.therapist-stage.stage-hired { color: #18766f; background: #eaf7f5; }
.therapist-stage.stage-active { color: #28744a; background: #edf7f1; }
.therapist-stage.stage-paused { color: #946c16; background: #fff8e5; }
.therapist-stage.stage-closed { color: #667085; background: #f1f3f5; }
.therapist-first-work { overflow: hidden; color: #526275; font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.therapist-detail-link { color: #1764a3; font-size: 11px; font-weight: 600; text-align: right; white-space: nowrap; }
.therapist-detail-link b { margin-left: 2px; font-size: 16px; font-weight: 400; vertical-align: -1px; }
.therapist-modal .detail-tabs { display: flex; flex: 0 0 auto; gap: 4px; overflow-x: auto; overflow-y: hidden; min-height: 51px; padding: 12px 28px 0; border-bottom: 1px solid #e7edf3; background: #fff; }
.therapist-modal .detail-tabs button { flex: 0 0 auto; padding: 10px 12px; border: 0; border-bottom: 3px solid transparent; border-radius: 7px 7px 0 0; background: transparent; color: #667085; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.therapist-modal .detail-tabs button:hover { background: #f4f8fc; color: #1764a3; }
.therapist-modal .detail-tabs button.active { border-color: #1764a3; background: #edf6fd; color: #14517f; }
.therapist-detail .detail-body { display: grid; gap: 16px; background: #f7f9fc; }
.therapist-detail-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .85fr); gap: 18px; }
.therapist-detail-grid > section, .therapist-detail .detail-body > section, .therapist-detail .detail-body > form { min-width: 0; padding: 20px; border: 1px solid #e1e8f0; border-radius: 12px; background: #fff; }
.therapist-detail-grid h3, .therapist-detail .detail-body h3 { margin: 0 0 16px; color: #24364a; font-size: 15px; }
.therapist-detail-grid dl { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 0; margin: 0; }
.therapist-detail-grid dt, .therapist-detail-grid dd { min-height: 42px; margin: 0; padding: 11px 0; border-bottom: 1px solid #edf1f5; }
.therapist-detail-grid dt { color: #667085; font-size: 13px; font-weight: 600; }
.therapist-detail-grid dd { color: #344054; font-size: 14px; font-weight: 700; }
.therapist-detail-grid dt:nth-last-of-type(1), .therapist-detail-grid dd:last-child { border-bottom: 0; }
.task-danger { width: 100%; margin-top: 18px; padding: 10px 12px; border: 1px solid #f2c6c3; border-radius: 8px; background: #fff7f6; color: #b42318; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.sidebar-group { margin: 0 0 12px; }
.sidebar-group-label { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; }
.sidebar-group-label::-webkit-details-marker { display: none; }
.sidebar-group-label > span { color: #9aa6b5; font-size: 15px; transition: transform .15s ease; }
.sidebar-group:not([open]) .sidebar-group-label > span { transform: rotate(-90deg); }
.sidebar-group:not([open]) { margin-bottom: 2px; }
.application-import { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(300px, 1.3fr); gap: 16px 22px; align-items: center; padding: 22px; border: 1px solid #b9d6ec; border-radius: 12px; background: linear-gradient(135deg, #edf7fe, #f8fbff); }
.application-import h3 { margin: 3px 0 7px; color: #1d4f75; font-size: 16px; }
.application-import p:not(.eyebrow) { margin: 0; color: #526478; font-size: 13px; line-height: 1.55; }
.application-import textarea { min-height: 132px; width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #b8cadd; border-radius: 9px; background: #fff; color: #1d2939; font: inherit; line-height: 1.55; resize: vertical; }
.application-import-button { grid-column: 2; justify-self: start; }
.interview-sheet-workflow textarea { min-height: 330px; height: 330px; }
.interview-sheet-workflow .interview-copy-button, .interview-sheet-workflow .interview-import-button { min-height: 42px; }
.application-workflow { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.application-workflow > div { display: grid; grid-template-rows: auto 310px auto; gap: 12px; min-width: 0; align-content: start; }
.application-workflow h3 { margin: 0; color: #1d4f75; font-size: 16px; }
.application-workflow textarea { min-height: 310px; height: 310px; }
.application-workflow .task-primary, .application-workflow .task-secondary { justify-self: start; align-self: start; }
.application-template-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.application-workflow .application-import-button { grid-column: auto; height: auto; min-height: 42px; }
.procedure-check-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.procedure-check { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 13px; border: 1px solid #ccd9e5; border-radius: 9px; background: #fff; color: #22354a; font-weight: 700; cursor: pointer; }
.procedure-check input { width: 18px; height: 18px; margin: 0; accent-color: #1764a3; }
.therapist-modal .modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 28px; border-top: 1px solid #e7edf3; background: #fff; }

@media (max-width: 700px) {
  .therapist-modal .modal-head, .therapist-modal .detail-body, .therapist-modal .modal-actions { padding-left: 18px; padding-right: 18px; }
  .therapist-form-section { padding: 16px; }
  .application-import { grid-template-columns: 1fr; padding: 17px; }
  .application-import-button { grid-column: auto; }
  .procedure-check-list { grid-template-columns: 1fr; }
  .therapist-modal .detail-tabs { padding-left: 14px; padding-right: 14px; }
  .therapist-detail-grid { grid-template-columns: 1fr; }
  .therapist-detail-grid dl { grid-template-columns: 112px minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   ＣＬＩＰＰＥＲ 2026 visual refresh
   mixi2 の明るさ・大胆な余白・親しみやすい丸みを、業務UI向けに再構成。
   既存の情報設計と操作は維持し、共通トークンと主要コンポーネントのみを更新します。
   -------------------------------------------------------------------------- */
:root {
  --ink: #191514;
  --muted: #766d69;
  --line: #eee5e1;
  --surface: #ffffff;
  --canvas: #fff9f6;
  --blue: #f2606e;
  --blue-soft: #fff0ee;
  --green: #16866f;
  --amber: #c46d18;
  --rose: #d84d66;
  --purple: #7c63bd;
  --console-blue: #f2606e;
  --console-ink: #191514;
  --console-muted: #766d69;
  --console-line: #eee5e1;
  --sidebar-width: 248px;
  --cliper-pink: #ff6f91;
  --cliper-coral: #ff765f;
  --cliper-orange: #ff9e1f;
  --cliper-gradient: linear-gradient(135deg, var(--cliper-pink) 0%, var(--cliper-coral) 48%, var(--cliper-orange) 100%);
  --cliper-shadow: 0 10px 30px rgba(82, 48, 36, .055);
  --cliper-shadow-hover: 0 14px 34px rgba(119, 64, 43, .09);
}

html { background: var(--canvas); }
body {
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 4%, rgba(255, 158, 31, .075), transparent 25rem),
    radial-gradient(circle at 12% 88%, rgba(255, 111, 145, .06), transparent 28rem),
    var(--canvas);
}
::selection { color: #fff; background: var(--cliper-coral); }
:focus-visible { outline: 3px solid rgba(255, 118, 95, .25); outline-offset: 2px; }

/* Navigation and global chrome */
.side-navigation {
  width: var(--sidebar-width);
  padding: 22px 14px 18px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
}
.sidebar-brand {
  min-height: 48px;
  gap: 11px;
  padding: 0 10px;
  color: var(--ink);
}
.sidebar-brand::before {
  display: grid;
  width: 34px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  border-radius: 48% 52% 58% 42% / 52% 42% 58% 48%;
  background: #245f83;
  box-shadow: 0 7px 16px rgba(36, 95, 131, .18);
  content: "C";
  font-size: 13px;
  font-weight: 900;
}
.sidebar-brand strong {
  color: #171313;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .025em;
}
.sidebar-nav { gap: 5px; margin-top: 27px; }
.sidebar-group-label {
  padding-left: 11px;
  color: #aa9b95;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}
.sidebar-link {
  min-height: 43px;
  gap: 12px;
  padding: 0 12px;
  color: #625956;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  transition: color .16s ease, background .16s ease, transform .16s ease;
}
.sidebar-link > span:first-child { color: #a39691; }
.sidebar-link:hover { color: var(--ink); background: #fff5f1; transform: translateX(2px); }
.sidebar-link.is-active {
  color: #df5363;
  background: linear-gradient(110deg, #fff0ee, #fff7ed);
  box-shadow: inset 0 0 0 1px rgba(255, 118, 95, .08);
  font-weight: 800;
}
.sidebar-link.is-active > span:first-child { color: #f2606e; }
.sidebar-bottom { border-color: var(--line); }

.app-shell { padding-left: var(--sidebar-width); }
.site-header {
  min-height: 70px;
  padding: 12px 30px;
  color: var(--ink);
  border-color: rgba(238, 229, 225, .9);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 4px 22px rgba(82, 48, 36, .035);
  backdrop-filter: blur(14px);
}
.console-search {
  width: min(380px, 32vw);
  height: 40px;
  padding: 0 14px;
  color: #a5948e;
  border-color: #eaded9;
  border-radius: 999px;
  background: #fffaf8;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.console-search:focus-within {
  border-color: rgba(242, 96, 110, .5);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(242, 96, 110, .08);
}
.console-search input { color: var(--ink); font-size: 13px; }
.notice-button { width: 38px; height: 38px; color: #776d69; border-radius: 50%; }
.notice-button:hover { color: #df5363; background: #fff0ee; }
.notice-button i { border-color: #fff; background: var(--cliper-coral); }
.site-header .staff-button { min-height: 42px; padding: 4px 9px 4px 4px; border-radius: 999px; }
.site-header .staff-button:hover { background: #fff2ee; }
.site-header .avatar {
  width: 32px;
  height: 32px;
  color: #fff;
  background: var(--cliper-gradient);
  box-shadow: 0 5px 12px rgba(255, 118, 95, .18);
}
.site-header .staff-button strong { color: var(--ink); font-weight: 700; }
.site-header .staff-button small { color: var(--muted); }

/* Page rhythm and typography */
.page-content { max-width: 1420px; padding: 32px 32px 44px; }
.intro, .work-intro { margin-bottom: 24px; }
.intro h1, .work-intro h1,
.inventory-refills-heading h1, .therapist-heading h1,
.sales-targets-heading h1, .page-heading h1 {
  color: #171313;
  font-weight: 850;
  letter-spacing: -.035em;
}
.intro h1, .work-intro h1 { font-size: clamp(25px, 2.3vw, 32px); }
.eyebrow, .page-kicker {
  color: #e75a69;
  font-weight: 800;
  letter-spacing: .06em;
}
.breadcrumbs a { color: #db5967; }

/* Shared cards and sections */
.status-section, .feature-section, .shift-section, .task-shift,
.handoff-form, .handoff-preview, .room-list, .room-template,
.account-list, .account-template, .manual-categories, .manual-results,
.manual-search-panel, .manual-article-header, .manual-article-body,
.dashboard-panel, .dashboard-alert-panel, .dashboard-attention-section,
.overview-card, .sales-target-card, .payment-panel, .inventory-refills-panel,
.therapist-summary, .therapist-table-wrap, .sales-targets-panel {
  border-color: var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--cliper-shadow);
}
.status-section, .feature-section { padding: 20px; }
.status-grid, .task-overview { overflow: hidden; border-color: var(--line); border-radius: 14px; }
.status-card { background: #fff; }
.status-card + .status-card { border-color: var(--line); }
.status-card strong, .task-overview article strong { color: #171313; font-weight: 800; }
.status-icon, .feature-icon {
  color: #e85a69;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff0ee, #fff6e9);
}
.feature-card {
  border-color: var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}
.feature-card.is-available:hover {
  border-color: rgba(242, 96, 110, .28);
  background: #fffdfc;
  box-shadow: var(--cliper-shadow-hover);
  transform: translateY(-3px);
}

/* Buttons, links and controls */
.task-primary, .primary-button, .save-button, .register-button,
.dashboard-action-primary, .modal-primary, button[type="submit"] {
  color: #fff;
  border: 0;
  border-radius: 999px;
  background: var(--cliper-gradient);
  box-shadow: 0 8px 18px rgba(255, 118, 95, .18);
  font-weight: 800;
  transition: filter .16s ease, transform .16s ease, box-shadow .16s ease;
}
.task-primary:hover, .primary-button:hover, .save-button:hover,
.register-button:hover, .dashboard-action-primary:hover,
.modal-primary:hover, button[type="submit"]:hover {
  background: var(--cliper-gradient);
  box-shadow: 0 10px 22px rgba(255, 118, 95, .25);
  filter: saturate(1.06);
  transform: translateY(-1px);
}
.card-action, .task-secondary, .admin-link, .reset-button, .reset-preview,
.inventory-refills-manage-link, .overview-detail-link {
  color: #cf5260;
  border-color: #f0d7d3;
  border-radius: 999px;
  background: #fff8f5;
  font-weight: 700;
}
.card-action:hover, .task-secondary:hover, .admin-link:hover,
.reset-button:hover, .reset-preview:hover, .inventory-refills-manage-link:hover,
.overview-detail-link:hover {
  color: #fff;
  border-color: transparent;
  background: var(--cliper-gradient);
}
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  border-color: #e7dcd7 !important;
  border-radius: 12px !important;
  background: #fff !important;
  transition: border-color .16s ease, box-shadow .16s ease;
}
input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus, textarea:focus {
  border-color: rgba(242, 96, 110, .55) !important;
  box-shadow: 0 0 0 4px rgba(242, 96, 110, .08) !important;
  outline: 0 !important;
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--cliper-coral); }

/* Tables, status labels and progress */
table { border-color: var(--line); }
thead, .table-head { background: #fff8f5; }
th { color: #766965; font-weight: 700; }
td, th { border-color: var(--line); }
tbody tr { transition: background .14s ease; }
tbody tr:hover { background: #fffaf7; }
.open-badge, .pending-badge, .mock-badge, .coverage-badge,
.status-badge, .selection-status, .inventory-refill-state {
  border-radius: 999px;
  font-weight: 700;
}
.progress-track { background: #f0e8e4; }
.progress-track span { background: var(--cliper-gradient); }
.task-check input:checked + span { border-color: var(--cliper-coral); background: var(--cliper-gradient); }

/* Dialogs and overlays */
.task-dialog, .room-dialog, .manual-dialog, .portal-auth-dialog,
.therapist-dialog, dialog {
  border-color: var(--line);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(64, 37, 27, .18);
}
.task-dialog::backdrop, .room-dialog::backdrop, .manual-dialog::backdrop,
.portal-auth-dialog::backdrop, .therapist-dialog::backdrop, dialog::backdrop {
  background: rgba(39, 25, 21, .3);
  backdrop-filter: blur(3px);
}
.portal-search-results {
  border-color: var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 46px rgba(74, 42, 30, .13);
}
.portal-search-results a:hover { background: #fff6f2; }

/* Mobile navigation keeps the same friendly, high-contrast language. */
@media (max-width: 900px) {
  .app-shell { padding-left: 0; }
  .page-content { padding: 24px 18px 104px; }
  .site-header {
    min-height: 62px;
    padding: 9px 16px;
    border-bottom-color: var(--line);
  }
  .console-search { height: 38px; border-radius: 999px; }
  .mobile-bottom-navigation {
    left: 10px;
    right: 10px;
    bottom: max(9px, env(safe-area-inset-bottom));
    width: auto;
    min-height: 64px;
    padding: 6px;
    border: 1px solid rgba(231, 220, 215, .9);
    border-radius: 22px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 14px 38px rgba(76, 45, 34, .16);
    backdrop-filter: blur(18px);
  }
  .mobile-navigation-link { color: #897a75; border-radius: 16px; }
  .mobile-navigation-link.is-active {
    color: #e45766;
    background: linear-gradient(135deg, #fff0ee, #fff7e9);
  }
  .mobile-menu-sheet {
    border-radius: 26px 26px 0 0;
    background: #fffaf8;
  }
  .mobile-menu-sheet header { border-color: var(--line); }
  .mobile-menu-sheet header p { color: #e45766; font-weight: 800; }
  .mobile-menu-sheet .is-sheet-link { border-radius: 14px; background: #fff; }
}

@media (max-width: 560px) {
  body { background: #fffaf8; }
  .page-content { padding: 20px 12px 98px; }
  .intro h1, .work-intro h1 { font-size: 25px; }
  .status-section, .feature-section { padding: 14px; border-radius: 16px; }
  .dashboard-panel, .dashboard-alert-panel, .dashboard-attention-section,
  .overview-card, .sales-target-card, .inventory-refills-panel,
  .therapist-table-wrap, .sales-targets-panel { border-radius: 16px; }
  .feature-card { border-radius: 15px; }
  .site-header .staff-button span:last-child { display: none; }
}

@media (max-width: 1180px) {
  .therapist-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .therapist-list-toolbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .therapist-search { grid-column: span 3; }
}
@media (max-width: 700px) {
  .therapist-intro { align-items: flex-start; flex-direction: column; }
  .therapist-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .therapist-summary-card { min-height: 82px; padding: 13px; }
  .therapist-summary-card strong { font-size: 22px; }
  .therapist-list-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
  .therapist-search { grid-column: span 2; }
  .therapist-row-head { display: none; }
  .therapist-row:not(.therapist-row-head) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); min-height: 0; gap: 13px 6px; padding: 16px 12px; }
  .therapist-row > * { padding: 0 5px; }
  .therapist-name { grid-column: 1 / -1; }
  .therapist-condition-cell { grid-column: 1 / -1; }
  .therapist-detail-link { align-self: center; }
  .therapist-dialog { width: 100vw; max-width: none; height: 100vh; max-height: none; border-radius: 0; }
  .therapist-modal-header { padding: 17px 16px 12px; }
  .therapist-modal-body { padding: 17px 16px 24px; }
  .therapist-tabs { padding-left: 10px; }
  .therapist-detail-grid,
  .therapist-form-grid { grid-template-columns: 1fr; }
  .therapist-document-row { align-items: flex-start; flex-direction: column; }
}

/* 要補充の備品一覧 */
.operation-alert-row.is-link {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.operation-alert-row.is-link:hover {
  background: #f8fbff;
}

.operation-alert-row.is-link:focus-visible {
  outline: 2px solid #1764a3;
  outline-offset: -2px;
}

.operation-alert-link {
  color: #1764a3;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.inventory-refills-page {
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 1280px;
  padding: 30px;
}

.inventory-refills-heading {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.inventory-refills-heading h1 {
  color: var(--text-strong, #172033);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.4;
  margin: 2px 0 6px;
}

.inventory-refills-heading p {
  color: var(--text-secondary, #667085);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.inventory-refills-panel {
  background: #fff;
  border: 1px solid var(--border-card, #e4e8ee);
  border-radius: 10px;
}

.inventory-refills-toolbar {
  align-items: center;
  border-bottom: 1px solid var(--border-divider, #edf0f3);
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  padding: 16px 18px;
}

.inventory-refills-counts,
.inventory-refills-filters {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inventory-refills-count {
  background: #f7f9fc;
  border-radius: 999px;
  color: var(--text-body, #475467);
  font-size: 13px;
  padding: 5px 10px;
}

.inventory-refills-count strong {
  color: var(--text-strong, #172033);
  font-size: 14px;
  font-weight: 600;
}

.inventory-refills-count.is-urgent strong {
  color: #c53d32;
}

.inventory-refills-search {
  background: #fff;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  box-sizing: border-box;
  color: var(--text-body, #475467);
  font: inherit;
  height: 40px;
  min-width: 0;
  padding: 0 12px;
  width: 100%;
}

.inventory-refills-search:focus {
  border-color: #2b6fae;
  outline: 2px solid rgba(43, 111, 174, 0.14);
  outline-offset: 0;
}

.inventory-refills-filter {
  background: #fff;
  border: 1px solid #d7dee8;
  border-radius: 7px;
  color: var(--text-body, #475467);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  height: 36px;
  padding: 0 11px;
}

.inventory-refills-filter:hover,
.inventory-refills-filter.is-active {
  background: #eaf2fa;
  border-color: #b9d5ee;
  color: #1764a3;
}

.inventory-refills-filter:focus-visible {
  outline: 2px solid #1764a3;
  outline-offset: 2px;
}

.inventory-refills-status {
  color: var(--text-secondary, #667085);
  font-size: 13px;
  padding: 13px 18px 0;
}

.inventory-refills-list {
  display: grid;
  gap: 14px;
  padding: 14px 18px 18px;
}

.inventory-refills-room {
  border: 1px solid var(--border-divider, #edf0f3);
  border-radius: 8px;
  overflow: hidden;
}

.inventory-refills-room-heading {
  align-items: center;
  background: #fbfcfd;
  border-bottom: 1px solid var(--border-divider, #edf0f3);
  display: flex;
  justify-content: space-between;
  padding: 11px 14px;
}

.inventory-refills-room-heading h2 {
  color: var(--text-heading, #344054);
  font-size: 15px;
  font-weight: 500;
  margin: 0;
}

.inventory-refills-room-heading span {
  color: var(--text-secondary, #667085);
  font-size: 12px;
}

.inventory-refills-item {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(150px, 1fr) minmax(170px, 2fr) auto;
  min-height: 52px;
  padding: 10px 14px;
}

.inventory-refills-item + .inventory-refills-item {
  border-top: 1px solid var(--border-divider, #edf0f3);
}

.inventory-refills-item-name {
  color: var(--text-body, #475467);
  font-size: 14px;
  font-weight: 500;
}

.inventory-refills-item-detail {
  color: var(--text-secondary, #667085);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.inventory-refills-badge {
  border-radius: 999px;
  font-size: 12px;
  padding: 4px 8px;
  white-space: nowrap;
}

.inventory-refills-badge.is-urgent {
  background: #fff1ef;
  color: #b8392d;
}

.inventory-refills-badge.is-low {
  background: #fff8e8;
  color: #a56100;
}

.inventory-refills-empty {
  align-items: center;
  color: var(--text-secondary, #667085);
  display: flex;
  font-size: 14px;
  justify-content: center;
  min-height: 150px;
  padding: 18px;
  text-align: center;
}

@media (max-width: 720px) {
  .inventory-refills-page {
    padding: 20px 16px 32px;
  }

  .inventory-refills-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .inventory-refills-toolbar {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .inventory-refills-item {
    align-items: start;
    grid-template-columns: 1fr auto;
  }

  .inventory-refills-item-detail {
    grid-column: 1 / -1;
  }
}

/* ダッシュボード: 実績・目標・次の業務を中心にした表示 */
.intro { display: flex; align-items: baseline; gap: 18px; margin-bottom: 18px; }
.intro .eyebrow { margin: 0; }
.intro h1 { margin: 0; font-size: 26px; }
.dashboard-overview { gap: 20px; margin-bottom: 20px; }
.overview-card { min-height: 230px; padding: 22px 20px; }
.overview-heading { margin-bottom: 20px; font-size: 16px; color: #172b4d; font-weight: 600; }
.overview-metrics { margin-top: 30px; gap: 0; }
.overview-metrics > div { padding: 0 18px; border-left: 1px solid #e1e7ee; }
.overview-metrics > div:first-child { padding-left: 0; border-left: 0; }
.overview-metrics > div:last-child { padding-right: 0; }
.overview-metrics dt { font-size: 12px; }
.overview-metrics dd { font-size: 32px; margin-top: 8px; }
.overview-target { gap: 28px; margin-top: 28px; }
.overview-target-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; }
.overview-target-row b { font-size: 15px; font-weight: 600; }
.overview-target-row b strong { font-size: 24px; margin-left: 12px; }
.overview-target-row span { font-size: 13px; }
.overview-target-row .overview-progress { height: 6px; margin-top: 3px; }
.next-action-section { position: relative; margin: 0 0 20px; padding: 24px 26px; overflow: hidden; }
.next-action-section.is-overdue::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: #f59e0b; }
.next-action-kicker { margin-bottom: 10px; }
.next-action-layout { grid-template-columns: 120px minmax(0, 1fr) auto; gap: 22px; }
.next-action-time { padding-right: 22px; border-right: 1px solid #e1e7ee; font-size: 43px; }
.next-action-copy b { font-size: 21px; }
.next-action-copy > strong { display: none; }
.next-action-copy em { font-size: 13px; }
.next-action-actions { display: flex; gap: 12px; }
.next-action-confirm, .next-action-complete { display: inline-flex; align-items: center; justify-content: center; min-width: 130px; min-height: 48px; border-radius: 7px; font-weight: 600; text-decoration: none; cursor: pointer; }
.next-action-confirm { border: 1px solid #236bb0; color: #165a9d; background: #fff; }
.next-action-complete { border: 1px solid #2165a8; color: #fff; background: #2165a8; }
.next-action-confirm:hover, .next-action-confirm:focus-visible { background: #edf5ff; }
.next-action-complete:hover, .next-action-complete:focus-visible { background: #184f84; }
.next-action-complete:disabled { opacity: .55; cursor: not-allowed; }
.dashboard-lower-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.dashboard-panel { border: 1px solid #e1e7ee; border-radius: 9px; background: #fff; overflow: hidden; }
.dashboard-panel-header { display: flex; align-items: center; min-height: 64px; padding: 0 20px; border-bottom: 1px solid #e1e7ee; }
.dashboard-panel-header h2 { margin: 0; font-size: 18px; font-weight: 600; }
.dashboard-progress-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 0; border-radius: 0; margin: 0; }
.dashboard-progress-grid .status-card { min-height: 220px; padding: 32px 24px 24px 58px; }
.dashboard-progress-grid .status-card + .status-card { border-left: 1px solid #e1e7ee; }
.dashboard-progress-grid .status-card .status-icon { left: 24px; top: 32px; }
.dashboard-progress-grid .status-card p { min-height: auto; }
.dashboard-progress-grid .status-card strong { font-size: 34px; }
.dashboard-progress-grid .status-card em { margin-top: 12px; }
.dashboard-progress-grid .status-progress { width: 100%; margin-top: 20px; }
.operations-alert-list { display: flex; flex-direction: column; }
.operation-alert-row { display: grid; grid-template-columns: 30px minmax(120px, .55fr) minmax(0, 1fr); gap: 12px; align-items: center; padding: 19px 20px; border-top: 1px solid #e1e7ee; }
.operation-alert-row:first-child { border-top: 0; }
.operation-alert-row .status-icon { position: static; width: 28px; height: 28px; }
.operation-alert-row b { font-weight: 600; color: #172b4d; }
.operation-alert-state { min-width: 0; display: flex; gap: 8px; align-items: center; justify-content: flex-start; }
.operation-alert-state strong { font-size: 16px; color: #172b4d; }
.operation-alert-state span { font-size: 13px; line-height: 1.45; color: #65758b; }
.operation-alert-state button { margin-left: auto; }
.operation-alert-row.is-error .operation-alert-state strong { color: #9d542d; }
.operation-alert-loading { color: #65758b; font-size: 13px; }
@media (max-width: 860px) {
  .dashboard-overview, .dashboard-lower-grid { grid-template-columns: 1fr; }
  .overview-card { min-height: 0; }
  .next-action-layout { grid-template-columns: 95px minmax(0, 1fr); }
  .next-action-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .dashboard-progress-grid .status-card { min-height: 170px; }
  .operation-alert-row { grid-template-columns: 30px minmax(0, 1fr); }
  .operation-alert-state { grid-column: 2; }
}
@media (max-width: 560px) {
  .intro { display: block; }
  .intro .eyebrow { margin-bottom: 5px; }
  .overview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 0; margin-top: 18px; }
  .overview-metrics > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .overview-metrics > div { padding: 0 12px; }
  .overview-metrics dd { font-size: 28px; }
  .overview-target { gap: 20px; margin-top: 20px; }
  .next-action-section { padding: 18px; }
  .next-action-layout { grid-template-columns: 1fr; gap: 10px; }
  .next-action-time { padding: 0; border: 0; font-size: 36px; }
  .next-action-actions { grid-column: auto; justify-content: stretch; }
  .next-action-confirm, .next-action-complete { flex: 1; min-width: 0; }
  .dashboard-progress-grid { grid-template-columns: 1fr; }
  .dashboard-progress-grid .status-card + .status-card { border-left: 0; border-top: 1px solid #e1e7ee; }
  .dashboard-progress-grid .status-card { min-height: 150px; }
  .operation-alert-row { padding: 16px; }
  .operation-alert-state { flex-wrap: wrap; }
  .operation-alert-state button { margin-left: 0; }
  .dashboard-panel-header { min-height: 56px; }
}

/* ダッシュボードはPCで一画面に収まる情報量に保つ。 */
@media (min-width: 861px) and (min-height: 700px) {
  .dashboard-page .page-content { padding-top: 20px; padding-bottom: 18px; }
  .dashboard-page .intro { margin-bottom: 14px; }
  .dashboard-page .feature-section { margin-top: 14px; }
  .dashboard-page .feature-card.is-primary-feature { min-height: 180px; }
  .dashboard-page .feature-card.is-secondary-feature { min-height: 138px; }
  .dashboard-page .feature-card { padding: 11px 14px 10px; }
  .dashboard-page .feature-copy { margin-top: 8px; }
  .dashboard-page .feature-footer { padding-top: 8px; }
  .dashboard-page .dashboard-card-details { margin-top: 9px; gap: 5px 16px; }
}

/* ダッシュボードの情報密度と優先順位の調整 */
.intro h1 { font-size: 22px; }
.status-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.status-card { padding-top: 14px; padding-bottom: 14px; }
.status-card + .status-card { border-left: 1px solid var(--console-line); }
.status-icon { top: 14px; }
.status-icon svg, .feature-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.status-icon.warning { color: #b96218; background: #fff4e8; }
.status-icon.amber { color: #b96218; background: #fff4e8; }
.status-icon.rose { color: #b95643; background: #fff0ed; }
.status-card:has(.warning) strong { color: #a65313; }
.feature-card { min-height: 202px; padding: 13px 15px 12px; }
.feature-card-top { min-height: 29px; }
.feature-icon { width: 29px; height: 29px; border-radius: 6px; }
.feature-copy { margin-top: 10px; }
.feature-copy h3 { font-size: 14px; }
.feature-copy p { margin-top: 4px; font-size: 11px; line-height: 1.45; }
.feature-footer { padding-top: 10px; }
.feature-state { font-size: 10px; }
.card-action { padding: 6px 7px; font-size: 10px; }
.feature-card.is-primary-feature { background: #fff; }
.feature-card.is-primary-feature .feature-copy h3 { font-size: 15px; color: var(--console-ink); }
.feature-card.is-primary-feature .feature-icon { color: #fff; background: var(--console-blue); }
.feature-card.is-secondary-feature { background: #fcfcfc; }
.feature-card.is-secondary-feature .feature-copy h3 { color: #48515b; font-weight: 500; }
.feature-card.is-secondary-feature .feature-copy p, .feature-card.is-secondary-feature .feature-state { color: #858d96; }
.feature-card.is-secondary-feature .feature-icon { color: #6f7b87; background: #f1f3f5; }
.feature-card.is-secondary-feature .card-action { color: #69737d; background: #fff; }
.feature-details { gap: 4px; margin-top: 8px; }
.feature-details span { padding: 4px 5px; }
.feature-details span.needs-attention strong { color: var(--console-blue); font-weight: 600; }
.dashboard-card-details { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 18px; margin: 14px 0 0; }
.dashboard-card-details div { display: flex; min-width: 0; align-items: baseline; justify-content: space-between; gap: 8px; }
.dashboard-card-details dt { min-width: 0; color: var(--console-muted); font-size: 11px; }
.dashboard-card-details dd { overflow: hidden; margin: 0; color: var(--console-ink); font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-card-details .is-warning dd { color: #a65313; }
.dashboard-card-details .is-full { grid-column: 1 / -1; justify-content: flex-start; }
.dashboard-card-details .is-full dd { color: var(--console-muted); font-size: 11px; font-weight: 400; }
.feature-card.is-secondary-feature .dashboard-card-details { display: block; margin-top: 12px; }
.feature-card.is-secondary-feature .dashboard-card-details div + div { margin-top: 6px; }
.feature-card.is-secondary-feature .dashboard-card-details dd { color: #65707c; font-size: 11px; font-weight: 500; }
.feature-card.is-secondary-feature .dashboard-card-details .is-full dd { color: #858d96; font-weight: 400; }
.feature-card.is-secondary-feature { min-height: 165px; }
@media (min-width: 861px) {
  .feature-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .feature-card.is-primary-feature { grid-column: span 6; }
  .feature-card.is-secondary-feature { grid-column: span 3; }
  .feature-card:nth-child(n) { border-right: 1px solid var(--console-line); border-bottom: 1px solid var(--console-line); }
  .feature-card:nth-child(2), .feature-card:nth-child(6) { border-right: 0; }
  .feature-card:nth-child(n + 3) { border-bottom: 0; }
}
@media (max-width: 860px) { .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .status-card:nth-child(n) { border-top: 1px solid var(--console-line); border-left: 1px solid var(--console-line); } .status-card:nth-child(1), .status-card:nth-child(2) { border-top: 0; } .status-card:nth-child(odd) { border-left: 0; } }

/* 機能追加に備えたカテゴリ型ナビゲーションと操作状態 */
.sidebar-group { margin-top: 10px; }.sidebar-group-trigger { display: flex; width: 100%; min-height: 30px; align-items: center; justify-content: space-between; padding: 0 11px; color: #8a949f; border: 0; background: transparent; cursor: pointer; font-family: inherit; font-size: 10px; font-weight: 600; text-align: left; }.sidebar-group-trigger i { font-size: 14px; font-style: normal; transition: transform .15s ease; }.sidebar-group.is-collapsed .sidebar-group-trigger i { transform: rotate(-90deg); }.sidebar-group-items { display: grid; gap: 2px; overflow: hidden; }.sidebar-group.is-collapsed .sidebar-group-items { display: none; }
.sidebar-link.is-placeholder { justify-content: flex-start; color: #9aa1a9; cursor: default; }.sidebar-link.is-placeholder small { margin-left: auto; color: #a7adb5; font-size: 9px; font-weight: 400; }
.feature-card.is-alert-feature { grid-column: 1 / -1; min-height: 168px; }.feature-card.is-alert-feature .feature-details { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 620px; }.feature-card.is-alert-feature .feature-copy { margin-top: 7px; }.feature-card.is-alert-feature .feature-footer { padding-top: 10px; }
/* すべての機能 */
.all-features-page { max-width: 1180px; }.all-features-note { margin: -8px 0 20px; color: var(--console-muted); font-size: 13px; }.all-features-list { display: grid; gap: 16px; }.feature-category { overflow: hidden; border: 1px solid var(--console-line); border-radius: 10px; background: #fff; }.feature-category h2 { margin: 0; padding: 13px 16px; color: var(--console-ink); border-bottom: 1px solid var(--console-line); background: #fafafa; font-size: 14px; font-weight: 600; }.feature-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }.feature-list-card { display: flex; min-height: 112px; flex-direction: column; justify-content: space-between; gap: 12px; padding: 15px 16px; border-right: 1px solid var(--console-line); }.feature-list-card:last-child { border-right: 0; }.feature-list-card h3 { margin: 0; color: var(--console-ink); font-size: 14px; font-weight: 600; }.feature-list-card p { margin: 5px 0 0; color: var(--console-muted); font-size: 11px; line-height: 1.5; }.feature-list-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }.feature-open-button, .favorite-button, .feature-ready-label { padding: 6px 8px; border-radius: 6px; font-size: 10px; font-weight: 500; text-decoration: none; }.feature-open-button { color: #fff; background: var(--console-blue); }.favorite-button { color: var(--console-blue); border: 1px solid #d4e2f0; background: #eff6fc; cursor: pointer; font-family: inherit; }.favorite-button.is-favorite { color: #fff; border-color: var(--console-blue); background: var(--console-blue); }.feature-ready-label { color: #9098a1; background: #f4f5f6; }
/* すべての操作可能な要素を統一 */
button:not(:disabled), a.sidebar-link:not(.is-placeholder), .card-action, .feature-open-button, .room-map-row a { transition: color .15s ease, background-color .15s ease, border-color .15s ease, transform .1s ease; }
button:not(:disabled):focus-visible, a.sidebar-link:not(.is-placeholder):focus-visible, .card-action:focus-visible, .feature-open-button:focus-visible, .room-map-row a:focus-visible { outline: 2px solid #6d9dcc; outline-offset: 2px; }
button:not(:disabled):active, a.sidebar-link:not(.is-placeholder):active, .card-action:active, .feature-open-button:active, .room-map-row a:active { transform: translateY(1px); }
.sidebar-group-trigger:hover, .sidebar-settings:hover { color: var(--console-blue); background: #f4f8fc; }.feature-open-button:hover { background: #174f86; }.favorite-button:hover { border-color: #a9c7e3; background: #e5f1fb; }.favorite-button.is-favorite:hover { background: #174f86; }.task-primary:hover, .manual-search-panel button:hover { background: #174f86; }.task-secondary:hover, .reset-button:hover, .reset-preview:hover, .room-detail-actions button:hover { color: var(--console-blue); border-color: #b9d0e5; background: #eff6fc; }
@media (max-width: 860px) { .side-navigation { overflow-x: auto; overflow-y: hidden; }.sidebar-nav { display: flex; width: 100%; gap: 2px; margin: 0; overflow-x: auto; }.sidebar-group { display: contents; }.sidebar-group-trigger { display: none; }.sidebar-group-items { display: contents; }.sidebar-group.is-collapsed .sidebar-group-items { display: contents; }.sidebar-link { min-width: 76px; }.sidebar-link.is-placeholder { display: none; } }
@media (max-width: 760px) { .feature-category-grid { grid-template-columns: 1fr 1fr; }.feature-list-card:nth-child(2n) { border-right: 0; }.feature-list-card:nth-child(n + 3) { border-top: 1px solid var(--console-line); }.feature-card.is-alert-feature .feature-details { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .feature-category-grid { grid-template-columns: 1fr; }.feature-list-card:nth-child(n) { border-right: 0; border-top: 1px solid var(--console-line); }.feature-list-card:first-child { border-top: 0; } }

/* 外部業務ツールを左メニューと併用して表示する作業ビュー */
.tool-view-page { display: grid; min-height: calc(100vh - 64px); grid-template-rows: auto minmax(0, 1fr); padding: 20px 24px 24px; }.tool-view-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }.tool-view-heading h1 { margin: 0; color: var(--console-ink); font-size: 21px; font-weight: 600; }.tool-external-link { padding: 7px 9px; color: var(--console-blue); border: 1px solid #d4e2f0; border-radius: 6px; background: #eff6fc; font-size: 11px; font-weight: 500; text-decoration: none; }.tool-external-link:hover { border-color: #a9c7e3; background: #e5f1fb; }.tool-frame-wrap { position: relative; min-height: 0; overflow: hidden; border: 1px solid var(--console-line); border-radius: 8px; background: #fff; }.tool-frame-wrap iframe { display: block; width: 100%; height: 100%; min-height: 720px; border: 0; background: #fff; }.tool-frame-loading { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; color: var(--console-muted); background: #fff; font-size: 12px; }.tool-frame-wrap.is-loading iframe { visibility: hidden; }.tool-frame-wrap:not(.is-loading) .tool-frame-loading { display: none; }
@media (max-width: 860px) { .tool-view-page { min-height: calc(100vh - 134px); padding: 16px; }.tool-frame-wrap iframe { min-height: 760px; } }

/* アカウント情報: 一覧を主役にし、登録・詳細は必要な時だけ表示します。 */
.account-page { max-width: 1180px; }
.account-intro { align-items: center; margin-bottom: 18px; }
.account-intro h1 { font-size: 22px; }
.account-intro > div > p:last-child { margin-top: 5px; }
.account-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.account-tab { min-height: 34px; padding: 0 10px; color: var(--console-muted); border: 1px solid var(--console-line); border-radius: 7px; background: #fff; font-size: 12px; font-weight: 500; }
.account-tab small { margin-left: 4px; color: inherit; font-size: 11px; font-weight: 500; }
.account-tab:hover { color: var(--console-blue); border-color: #b9d0e5; background: #f8fbfe; }
.account-tab.is-active { color: var(--console-blue); border-color: #bfd5ea; background: #edf5fc; }
.account-table-panel { overflow: hidden; border: 1px solid var(--console-line); border-radius: 9px; background: #fff; }
.account-table-heading { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 17px; border-bottom: 1px solid var(--console-line); }
.account-table-heading h2 { margin: 0; color: var(--console-ink); font-size: 14px; font-weight: 600; }
.account-table-heading span { color: var(--console-muted); font-size: 11px; }
.account-table-head, .account-row { display: grid; grid-template-columns: minmax(190px, 1.55fr) minmax(112px, .9fr) minmax(145px, 1.15fr) 105px minmax(85px, .7fr); align-items: center; column-gap: 16px; }
.account-table-head { min-height: 38px; padding: 0 17px; color: var(--console-muted); background: #fafbfc; font-size: 10px; font-weight: 500; }
.account-table-body { display: grid; }
.account-row { width: 100%; min-height: 64px; padding: 0 17px; color: var(--console-ink); border: 0; border-top: 1px solid #edf0f2; background: #fff; cursor: pointer; font-family: inherit; font-size: 12px; text-align: left; }
.account-row:hover { background: #fafcff; }
.account-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-service { display: grid; grid-template-columns: 27px minmax(0, 1fr); align-items: center; column-gap: 9px; }
.account-service i { display: grid; grid-row: span 2; width: 27px; height: 27px; place-items: center; color: var(--console-blue); border-radius: 6px; background: #edf5fc; font-style: normal; font-size: 12px; font-weight: 600; }
.account-service b { overflow: hidden; font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.account-service small { overflow: hidden; color: var(--console-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.account-category-badge { display: inline-flex; padding: 4px 6px; color: #53616f; border-radius: 5px; background: #f2f4f6; font-size: 10px; font-style: normal; font-weight: 500; white-space: nowrap; }
.account-category-badge.restricted { color: #8d5a25; background: #fff5e9; }.account-category-badge.reference { color: #5c6875; background: #f1f3f5; }.account-category-badge.shared { color: var(--console-blue); background: #edf5fc; }
.account-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 11px; }.account-row-actions a { color: var(--console-blue); font-size: 11px; font-weight: 500; text-decoration: none; }.account-row-actions a:hover { text-decoration: underline; }.account-row-actions > i { color: #a1a8b0; font-size: 18px; font-style: normal; }
.account-empty-state { display: grid; justify-items: center; gap: 7px; padding: 54px 20px 58px; text-align: center; }.account-empty-state strong { color: var(--console-ink); font-size: 14px; font-weight: 600; }.account-empty-state p { margin: 0 0 9px; color: var(--console-muted); font-size: 12px; }.account-empty-state .task-primary { min-height: 36px; font-size: 12px; }
.account-overlay { position: fixed; z-index: 80; inset: 0; background: rgba(25, 34, 45, .22); }.account-drawer { position: fixed; z-index: 81; top: 0; right: 0; width: min(440px, 100vw); height: 100vh; overflow-y: auto; color: var(--console-ink); border-left: 1px solid var(--console-line); background: #fff; box-shadow: -12px 0 32px rgba(30, 42, 58, .12); transform: translateX(100%); transition: transform .2s ease; }.account-drawer.is-open { transform: translateX(0); }.account-drawer[hidden], .account-overlay[hidden] { display: none; }
.drawer-header { display: flex; align-items: flex-start; justify-content: space-between; min-height: 78px; padding: 18px 20px; border-bottom: 1px solid var(--console-line); }.drawer-header p { margin: 0 0 3px; color: var(--console-muted); font-size: 11px; }.drawer-header h2 { margin: 0; font-size: 17px; font-weight: 600; }.drawer-close { display: grid; width: 30px; height: 30px; place-items: center; color: #66717e; border: 0; border-radius: 6px; background: transparent; font-size: 25px; font-weight: 300; line-height: 1; }.drawer-close:hover { background: #f3f5f7; }
.account-editor-form, .account-detail-content { display: grid; gap: 15px; padding: 20px; }.account-editor-form label { display: grid; gap: 6px; color: #4e5966; font-size: 12px; font-weight: 500; }.account-editor-form input, .account-editor-form textarea, .account-editor-form select { width: 100%; min-height: 38px; padding: 8px 10px; color: var(--console-ink); border: 1px solid #d9dee4; border-radius: 6px; outline: 0; background: #fff; font: inherit; font-size: 13px; }.account-editor-form textarea { min-height: 84px; resize: vertical; }.account-editor-form input:focus, .account-editor-form textarea:focus, .account-editor-form select:focus { border-color: #7eadd5; box-shadow: 0 0 0 3px #eaf3fb; }.account-form-note { margin: -2px 0 0; color: var(--console-muted); font-size: 11px; line-height: 1.55; }.drawer-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 5px; padding-top: 16px; border-top: 1px solid var(--console-line); }.drawer-actions .task-primary, .drawer-actions .task-secondary { min-height: 36px; font-size: 12px; }
.account-detail-content { gap: 0; }.account-detail-content dl { display: grid; margin: 0; }.account-detail-content dl > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid #edf0f2; }.account-detail-content dt { color: var(--console-muted); font-size: 11px; }.account-detail-content dd { min-width: 0; margin: 0; color: var(--console-ink); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }.account-detail-content dd a { color: var(--console-blue); text-decoration: none; }.account-detail-content dd a:hover { text-decoration: underline; }.password-detail { display: flex; align-items: center; gap: 9px; }.password-detail button { padding: 3px 6px; color: var(--console-blue); border: 1px solid #c8dced; border-radius: 5px; background: #fff; font-size: 10px; font-weight: 500; }.password-detail button:hover { background: #edf5fc; }.account-detail-permission { margin: 15px 0 0; padding: 9px 10px; color: #865727; border-radius: 6px; background: #fff7ed; font-size: 11px; line-height: 1.55; }
@media (max-width: 700px) { .account-intro { align-items: flex-start; }.account-intro .task-primary { width: 100%; }.account-table-head { display: none; }.account-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 3px; min-height: 76px; }.account-row > span:nth-child(2), .account-row > span:nth-child(3), .account-row > span:nth-child(4) { display: none; }.account-row-actions { grid-column: 2; grid-row: 1; }.account-service { grid-column: 1; grid-row: 1; }.account-drawer { width: 100%; }.account-editor-form, .account-detail-content { padding: 18px 16px; }.drawer-header { padding: 17px 16px; } }

/* Operational guide */
.manual-page { max-width: 1120px; }.manual-intro { margin-bottom: 16px; }.manual-search-panel { display: grid; gap: 10px; padding: 18px; border: 1px solid var(--console-line); border-radius: 9px; background: #fff; }.manual-search-panel > label, .manual-filter-bar label { color: var(--console-ink); font-size: 13px; font-weight: 600; }.manual-search-controls { display: flex; gap: 8px; }.manual-search-controls input, .manual-filter-bar select, .manual-dialog label input, .manual-dialog label textarea, .manual-dialog label select { width: 100%; min-height: 38px; padding: 8px 10px; color: var(--console-ink); border: 1px solid #d9dee4; border-radius: 6px; background: #fff; font: inherit; font-size: 13px; outline: 0; }.manual-search-controls input:focus, .manual-filter-bar select:focus, .manual-dialog label input:focus, .manual-dialog label textarea:focus, .manual-dialog label select:focus { border-color: #7eadd5; box-shadow: 0 0 0 3px #eaf3fb; }.manual-search-controls .task-primary { min-width: 72px; min-height: 38px; }.manual-filter-bar { display: flex; flex-wrap: wrap; gap: 10px; }.manual-filter-bar label { display: grid; gap: 5px; min-width: 180px; color: var(--console-muted); font-size: 11px; }.manual-results { margin-top: 16px; padding: 18px; border: 1px solid var(--console-line); border-radius: 9px; background: #fff; }.manual-results-heading h2 { margin: 0; color: var(--console-ink); font-size: 17px; font-weight: 600; }.manual-results-heading p { margin: 5px 0 0; color: var(--console-muted); font-size: 12px; }.manual-results-list { display: grid; gap: 10px; margin-top: 15px; }.manual-result-card { padding: 15px 16px; border: 1px solid #e6e9ed; border-radius: 8px; background: #fff; }.manual-result-card h3 { margin: 8px 0 5px; font-size: 15px; font-weight: 600; }.manual-result-card h3 a { color: var(--console-ink); text-decoration: none; }.manual-result-card h3 a:hover { color: var(--console-blue); }.manual-result-card p { margin: 0; color: var(--console-muted); font-size: 13px; line-height: 1.65; }.manual-result-meta { display: flex; flex-wrap: wrap; gap: 5px; }.manual-result-meta span { padding: 3px 6px; color: #56616d; border-radius: 4px; background: #f2f4f6; font-size: 10px; font-weight: 500; }.manual-result-meta span:last-child { color: var(--console-blue); background: #edf5fc; }.manual-result-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 11px; color: var(--console-muted); font-size: 11px; }.manual-result-footer a, .manual-related-list a { color: var(--console-blue); font-weight: 500; text-decoration: none; }.manual-result-footer a:hover, .manual-related-list a:hover { text-decoration: underline; }.manual-empty-state { display: grid; justify-items: center; gap: 7px; padding: 48px 20px; color: var(--console-ink); text-align: center; }.manual-empty-state strong { font-size: 14px; font-weight: 600; }.manual-empty-state p { margin: 0; color: var(--console-muted); font-size: 12px; }.manual-dialog { width: min(650px, calc(100vw - 28px)); padding: 0; color: var(--console-ink); border: 1px solid var(--console-line); border-radius: 10px; background: #fff; }.manual-dialog::backdrop { background: rgba(25, 34, 45, .24); }.manual-dialog form { display: grid; gap: 13px; padding: 20px; }.manual-dialog label { display: grid; gap: 6px; color: #4e5966; font-size: 12px; font-weight: 500; }.manual-dialog label textarea { min-height: 78px; resize: vertical; }.manual-dialog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.manual-article-page { max-width: 1000px; }.manual-article-header { margin: 17px 0 14px; }.manual-article-header h1 { margin: 10px 0 6px; color: var(--console-ink); font-size: clamp(22px, 3vw, 30px); font-weight: 700; }.manual-article-header p { margin: 0; color: var(--console-muted); font-size: 14px; line-height: 1.65; }.operation-conclusion { margin: 15px 0; padding: 16px 18px; border: 1px solid #d9e6f2; border-radius: 8px; background: #f7fbff; }.operation-conclusion span { color: var(--console-blue); font-size: 11px; font-weight: 600; }.operation-conclusion p { margin: 5px 0 0; color: var(--console-ink); font-size: 15px; font-weight: 600; line-height: 1.7; }.manual-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 16px; }.manual-detail-layout > div, .manual-article-aside, .manual-feedback { border: 1px solid var(--console-line); border-radius: 9px; background: #fff; }.manual-detail-layout > div { padding: 0 18px; }.manual-detail-section { padding: 17px 0; border-bottom: 1px solid #edf0f2; }.manual-detail-section:last-child { border-bottom: 0; }.manual-detail-section h2, .manual-feedback h2 { margin: 0 0 9px; color: var(--console-ink); font-size: 15px; font-weight: 600; }.manual-detail-section p, .manual-detail-section li { color: #485563; font-size: 13px; line-height: 1.75; }.manual-detail-section p { margin: 0; }.manual-detail-section ul, .manual-detail-section ol { display: grid; gap: 6px; margin: 0; padding-left: 22px; }.manual-note { padding-left: 12px; border-left: 2px solid #d8a465; }.manual-alert { padding-left: 12px; border-left: 2px solid #d6834e; }.manual-article-aside { align-self: start; padding: 0 14px; }.manual-article-aside .manual-detail-section { padding: 14px 0; }.manual-reviewed { margin: 12px 0; color: var(--console-muted); font-size: 11px; line-height: 1.55; }.manual-feedback { display: grid; gap: 10px; margin-top: 16px; padding: 16px 18px; }.manual-feedback h2 { margin: 0; }.manual-feedback-options { display: flex; flex-wrap: wrap; gap: 7px; }.manual-feedback-options button { min-height: 32px; padding: 0 9px; color: var(--console-blue); border: 1px solid #c8dced; border-radius: 6px; background: #fff; font: inherit; font-size: 11px; font-weight: 500; }.manual-feedback-options button:hover { background: #edf5fc; }.manual-feedback label { display: grid; gap: 5px; color: var(--console-muted); font-size: 11px; }.manual-feedback textarea { min-height: 62px; padding: 8px 10px; border: 1px solid #d9dee4; border-radius: 6px; font: inherit; font-size: 12px; resize: vertical; }
@media (max-width: 700px) { .manual-search-controls { flex-direction: column; }.manual-search-controls .task-primary { width: 100%; }.manual-filter-bar label { flex: 1 1 140px; min-width: 0; }.manual-results { padding: 14px; }.manual-dialog form { padding: 17px; }.manual-dialog-grid, .manual-detail-layout { grid-template-columns: 1fr; }.manual-article-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }.manual-article-aside .manual-reviewed { grid-column: 1 / -1; }.manual-result-footer { align-items: flex-start; flex-direction: column; gap: 5px; } }

/* AI業務アシスタント */
.assistant-page { max-width: 960px; }.assistant-intro h1 { margin: 0; color: var(--console-ink); font-size: 24px; font-weight: 700; }.assistant-intro p { margin: 7px 0 0; color: var(--console-muted); font-size: 14px; line-height: 1.6; }.assistant-emergency-note { display: grid; gap: 3px; margin: 16px 0; padding: 12px 14px; color: #73512f; border: 1px solid #ead8bd; border-radius: 8px; background: #fffaf3; font-size: 12px; line-height: 1.55; }.assistant-emergency-note strong { font-weight: 600; }.assistant-thread { display: grid; gap: 12px; min-height: 240px; padding: 18px; border: 1px solid var(--console-line); border-radius: 9px; background: #fff; }.assistant-empty { align-self: center; justify-self: center; max-width: 540px; color: var(--console-muted); text-align: center; }.assistant-empty strong { color: var(--console-ink); font-size: 15px; font-weight: 600; }.assistant-empty p { font-size: 13px; line-height: 1.7; }.assistant-question { justify-self: end; max-width: min(82%, 620px); padding: 10px 12px; color: var(--console-ink); border-radius: 8px; background: #edf5fc; font-size: 13px; line-height: 1.6; white-space: pre-wrap; }.assistant-loading { margin: 0; color: var(--console-muted); font-size: 12px; }.assistant-response { display: grid; gap: 14px; padding: 16px; border: 1px solid #dfe5ea; border-radius: 8px; background: #fff; }.assistant-answer-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.assistant-answer-heading strong { color: #9b5c27; font-size: 12px; }.assistant-level { display: inline-flex; padding: 4px 7px; color: var(--console-blue); border-radius: 5px; background: #edf5fc; font-size: 11px; font-weight: 600; }.assistant-level.is-emergency { color: #a2542e; background: #fff2e9; }.assistant-level.is-pending { color: #755a36; background: #f8f1e5; }.assistant-conclusion { padding: 13px 14px; border-radius: 7px; background: #f7f9fb; }.assistant-conclusion h2 { margin: 0 0 5px; color: var(--console-blue); font-size: 12px; font-weight: 600; }.assistant-conclusion p { margin: 0; color: var(--console-ink); font-size: 14px; font-weight: 600; line-height: 1.7; }.assistant-response section:not(.assistant-conclusion) h3 { margin: 0 0 6px; color: var(--console-ink); font-size: 13px; font-weight: 600; }.assistant-response section:not(.assistant-conclusion) p, .assistant-response section li { margin: 0; color: #4d5966; font-size: 13px; line-height: 1.65; }.assistant-response section ul { display: grid; gap: 4px; margin: 0; padding-left: 19px; }.assistant-sources { display: flex; flex-wrap: wrap; gap: 8px; }.assistant-sources a { color: var(--console-blue); text-decoration: none; }.assistant-sources a:hover { text-decoration: underline; }.assistant-consult { justify-self: start; min-height: 34px; font-size: 12px; }.assistant-consultation { display: grid; gap: 8px; padding: 12px; border: 1px solid #d9e6f2; border-radius: 7px; background: #f8fbfe; }.assistant-consultation h3 { margin: 0; color: var(--console-ink); font-size: 13px; }.assistant-consultation textarea, .assistant-feedback textarea, .assistant-composer textarea { width: 100%; color: var(--console-ink); border: 1px solid #d9dee4; border-radius: 6px; background: #fff; font: inherit; outline: 0; resize: vertical; }.assistant-consultation textarea { min-height: 190px; padding: 9px; font-size: 12px; line-height: 1.6; }.assistant-consultation .task-primary { justify-self: start; min-height: 34px; font-size: 12px; }.assistant-feedback { display: grid; gap: 7px; padding-top: 12px; border-top: 1px solid #edf0f2; }.assistant-feedback strong { color: var(--console-ink); font-size: 12px; font-weight: 600; }.assistant-feedback > div { display: flex; flex-wrap: wrap; gap: 6px; }.assistant-feedback button { min-height: 31px; padding: 0 8px; color: var(--console-blue); border: 1px solid #c8dced; border-radius: 6px; background: #fff; font: inherit; font-size: 11px; font-weight: 500; }.assistant-feedback button:hover { background: #edf5fc; }.assistant-feedback label { display: grid; gap: 5px; color: var(--console-muted); font-size: 11px; }.assistant-feedback textarea { min-height: 58px; padding: 8px; font-size: 12px; }.assistant-composer { display: grid; gap: 8px; margin-top: 14px; padding: 15px; border: 1px solid var(--console-line); border-radius: 9px; background: #fff; }.assistant-composer label { color: var(--console-ink); font-size: 13px; font-weight: 600; }.assistant-composer textarea { min-height: 90px; padding: 10px; font-size: 13px; line-height: 1.6; }.assistant-composer textarea:focus, .assistant-feedback textarea:focus { border-color: #7eadd5; box-shadow: 0 0 0 3px #eaf3fb; }.assistant-composer > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.assistant-composer p { margin: 0; color: var(--console-muted); font-size: 11px; }.assistant-composer .task-primary { min-height: 36px; font-size: 12px; }.ai-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 16px 0; overflow: hidden; border: 1px solid var(--console-line); border-radius: 9px; background: #fff; }.ai-metrics > div { display: grid; gap: 5px; padding: 15px; border-right: 1px solid var(--console-line); }.ai-metrics > div:last-child { border-right: 0; }.ai-metrics span { color: var(--console-muted); font-size: 11px; }.ai-metrics strong { color: var(--console-ink); font-size: 22px; font-weight: 700; }.ai-candidates { padding: 17px; border: 1px solid var(--console-line); border-radius: 9px; background: #fff; }.ai-candidate-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 0; border-bottom: 1px solid #edf0f2; }.ai-candidate-row:last-child { border-bottom: 0; }.ai-candidate-row h3 { margin: 7px 0 4px; color: var(--console-ink); font-size: 14px; font-weight: 600; }.ai-candidate-row p, .ai-candidate-row small { margin: 0; color: var(--console-muted); font-size: 12px; }.ai-candidate-row select { min-width: 112px; min-height: 34px; padding: 0 7px; color: var(--console-ink); border: 1px solid #d9dee4; border-radius: 6px; background: #fff; font: inherit; font-size: 12px; }
@media (max-width: 700px) { .assistant-thread { padding: 13px; }.assistant-question { max-width: 94%; }.assistant-composer > div { align-items: stretch; flex-direction: column; }.assistant-composer .task-primary { width: 100%; }.ai-metrics { grid-template-columns: 1fr 1fr; }.ai-metrics > div:nth-child(2) { border-right: 0; }.ai-metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--console-line); }.ai-candidate-row { align-items: flex-start; flex-direction: column; }.ai-candidate-row select { width: 100%; } }
.assistant-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }.assistant-admin-link { min-height: 34px; white-space: nowrap; text-decoration: none; font-size: 12px; }@media (max-width: 700px) { .assistant-intro { flex-direction: column; }.assistant-admin-link { width: 100%; } }
.manual-guide-tabs { display: flex; gap: 4px; padding-bottom: 2px; border-bottom: 1px solid var(--console-line); }.manual-guide-tabs button { min-height: 34px; padding: 0 10px; color: var(--console-muted); border: 0; border-bottom: 2px solid transparent; background: transparent; font: inherit; font-size: 13px; font-weight: 500; }.manual-guide-tabs button:hover { color: var(--console-blue); background: #f8fbfe; }.manual-guide-tabs button.is-active { color: var(--console-blue); border-bottom-color: var(--console-blue); }.manual-operation-target { display: block; margin-top: 8px; color: var(--console-muted); font-size: 11px; }.context-operation-guide { display: inline-flex; align-items: center; min-height: 32px; padding: 0 9px; color: var(--console-blue); border: 1px solid #c8dced; border-radius: 6px; background: #fff; font-size: 11px; font-weight: 500; text-decoration: none; }.context-operation-guide:hover { background: #edf5fc; }.context-operation-guide:focus-visible, .manual-guide-tabs button:focus-visible { outline: 3px solid #eaf3fb; outline-offset: 2px; }
.navigation-order-panel { margin-top: 18px; }.navigation-order-list { padding: 0 20px; }.navigation-order-row { display: flex; min-height: 56px; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #eef0f2; color: var(--console-ink); font-size: 13px; font-weight: 500; }.navigation-order-row:last-child { border-bottom: 0; }.navigation-order-row > div { display: flex; gap: 6px; }.navigation-order-row button, .secondary-action { min-width: 34px; min-height: 32px; padding: 0 9px; color: #526a84; border: 1px solid #d5dee8; border-radius: 6px; background: #fff; font: inherit; font-size: 13px; cursor: pointer; }.navigation-order-row button:hover, .secondary-action:hover { color: var(--console-blue); border-color: #b9d0e5; background: #eff6fc; }.navigation-order-row button:focus-visible, .secondary-action:focus-visible { outline: 3px solid #cce2f4; outline-offset: 2px; }.navigation-order-row button:active, .secondary-action:active { transform: translateY(1px); }

/* フィードバック */
.feedback-page { max-width: 980px; }.feedback-intro { margin-bottom: 16px; }.feedback-panel { overflow: hidden; margin-bottom: 16px; border: 1px solid var(--console-line); border-radius: 9px; background: #fff; }.feedback-panel-heading { padding: 16px 18px; border-bottom: 1px solid var(--console-line); }.feedback-panel-heading h2 { margin: 0; color: var(--console-ink); font-size: 16px; font-weight: 600; }.feedback-panel-heading p { margin: 5px 0 0; color: var(--console-muted); font-size: 12px; }.feedback-form { display: grid; grid-template-columns: minmax(180px, .4fr) minmax(0, 1fr); gap: 14px; padding: 18px; }.feedback-form label { display: grid; gap: 6px; color: #4e5966; font-size: 12px; font-weight: 500; }.feedback-form label > span { color: var(--console-muted); font-size: 10px; font-weight: 400; }.feedback-form select, .feedback-form input, .feedback-form textarea { width: 100%; min-height: 38px; box-sizing: border-box; padding: 8px 10px; color: var(--console-ink); border: 1px solid #d9dee4; border-radius: 6px; background: #fff; font: inherit; font-size: 13px; outline: 0; }.feedback-form textarea { min-height: 112px; resize: vertical; line-height: 1.6; }.feedback-form select:focus, .feedback-form input:focus, .feedback-form textarea:focus, .feedback-status-select select:focus { border-color: #7eadd5; box-shadow: 0 0 0 3px #eaf3fb; }.feedback-message-label, .feedback-privacy-note, .feedback-form-status, .feedback-form-actions { grid-column: 1 / -1; }.feedback-privacy-note { margin: -4px 0 0; color: #7b6350; font-size: 11px; line-height: 1.55; }.feedback-form-status { margin: -2px 0 0; color: #23704f; font-size: 12px; }.feedback-form-actions { display: flex; justify-content: flex-end; padding-top: 2px; }.feedback-form-actions .task-primary { min-height: 36px; }.feedback-list { display: grid; padding: 0 18px; }.feedback-row { display: grid; grid-template-columns: minmax(0, 1fr) 116px; gap: 14px; padding: 15px 0; border-bottom: 1px solid #edf0f2; }.feedback-row:last-child { border-bottom: 0; }.feedback-row-main { min-width: 0; }.feedback-row-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--console-muted); font-size: 11px; }.feedback-row-meta span { padding: 3px 6px; color: var(--console-blue); border-radius: 4px; background: #edf5fc; font-weight: 500; }.feedback-row-meta small { color: #596776; font-size: 11px; }.feedback-row-main > p { margin: 8px 0 0; color: var(--console-ink); font-size: 13px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }.feedback-page-name { display: block; margin-top: 7px; color: var(--console-muted); font-size: 11px; }.feedback-status, .feedback-status-select { align-self: start; justify-self: end; }.feedback-status { padding: 5px 7px; color: #596776; border-radius: 5px; background: #f2f4f6; font-size: 10px; font-weight: 500; }.feedback-status.is-done { color: #267153; background: #edf7f2; }.feedback-status-select { display: grid; gap: 4px; color: var(--console-muted); font-size: 10px; }.feedback-status-select select { min-height: 32px; padding: 0 6px; color: var(--console-ink); border: 1px solid #d9dee4; border-radius: 6px; background: #fff; font: inherit; font-size: 11px; outline: 0; }.feedback-empty { margin: 0; padding: 34px 0; color: var(--console-muted); font-size: 12px; text-align: center; }
@media (max-width: 700px) { .feedback-form { grid-template-columns: 1fr; padding: 16px; }.feedback-message-label, .feedback-privacy-note, .feedback-form-status, .feedback-form-actions { grid-column: auto; }.feedback-form-actions .task-primary { width: 100%; }.feedback-panel-heading { padding: 15px 16px; }.feedback-list { padding: 0 16px; }.feedback-row { grid-template-columns: 1fr; gap: 9px; }.feedback-status, .feedback-status-select { justify-self: start; } }

/* ダッシュボード: 実績 → 目標 → 現状 → 次の行動の順に確認する */
.dashboard-page .page-content { max-width: 1520px; padding-top: 22px; }
.dashboard-page .intro { margin-bottom: 14px; }
.dashboard-overview { align-items: stretch; margin: 0 0 14px; }
.overview-card { min-height: 178px; }
.overview-card h2 { margin: 0; color: var(--console-ink); font-size: 15px; font-weight: 600; }
.overview-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 15px 0 0; }
.overview-metrics > div { min-width: 0; }
.overview-metrics dt { overflow: hidden; color: var(--console-muted); font-size: 10px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.overview-metrics dd { margin: 3px 0 0; color: var(--console-ink); font-size: 19px; font-weight: 600; line-height: 1.2; }
.overview-target { display: grid; gap: 13px; margin-top: 14px; }
.overview-target-row { display: grid; grid-template-columns: minmax(85px, .7fr) minmax(0, 1.3fr); column-gap: 10px; align-items: center; }
.overview-target-row b { color: var(--console-ink); font-size: 12px; font-weight: 500; }
.overview-target-row b strong { margin-left: 4px; color: var(--console-ink); font-size: 17px; font-weight: 600; }
.overview-target-row b strong small { margin-left: 1px; color: var(--console-muted); font-size: 10px; font-weight: 400; }
.overview-target-row span { color: var(--console-muted); font-size: 11px; line-height: 1.45; }
.overview-target-row .overview-progress { grid-column: 1 / -1; width: 100%; height: 5px; margin-top: 6px; overflow: hidden; border-radius: 4px; background: #e8edf2; }
.overview-target-row .overview-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--console-blue); }
.overview-target-row.is-muted b, .overview-target-row.is-muted span { color: var(--console-muted); font-weight: 400; }
.overview-target-row.is-muted .overview-progress i { background: #c9d3de; }
.overview-error { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 11px 12px; color: #6f5541; border: 1px solid #ebded2; border-radius: 7px; background: #fffaf6; font-size: 11px; line-height: 1.45; }
.overview-error::before { content: "!"; display: grid; width: 18px; height: 18px; flex: 0 0 auto; place-items: center; color: #946641; border-radius: 50%; background: #f7e9dc; font-weight: 600; }
.overview-retry { min-height: 28px; margin-left: auto; padding: 0 8px; color: var(--console-blue); border: 1px solid #c8dced; border-radius: 5px; background: #fff; font: inherit; font-size: 10px; font-weight: 500; cursor: pointer; white-space: nowrap; }

.status-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 14px; }
.status-card { min-height: 94px; padding: 13px 14px 12px 43px; }
.status-card p { overflow: hidden; margin-bottom: 8px; text-overflow: ellipsis; }
.status-card strong { font-size: 21px; letter-spacing: -.02em; }
.status-card strong small { font-size: 10px; }
.status-card .status-sub { display: block; margin-top: 6px; overflow: hidden; color: var(--console-muted); font-size: 10px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.status-card.status-inventory-refill strong,
.status-card.status-shift-pending strong,
.status-card.status-interview-accompaniment strong { color: var(--console-text); font-size: 18px; }
.status-card.status-inventory-refill em,
.status-card.status-shift-pending em,
.status-card.status-interview-accompaniment em { color: var(--console-muted); }
.status-progress { display: block; width: calc(100% - 4px); height: 5px; margin-top: 9px; overflow: hidden; border-radius: 4px; background: #e6ebef; }
.status-progress i { display: block; width: 0; min-width: 0; height: 100%; border-radius: inherit; background: var(--console-blue); }

.next-action-section { display: block; min-height: 0; margin: 0 0 14px; padding: 16px 18px; }
.next-action-kicker { margin-bottom: 5px; color: var(--console-blue); font-size: 10px; font-weight: 600; letter-spacing: .08em; }
.next-action-layout { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.next-action-time { color: var(--console-ink); font-size: 25px; font-weight: 600; letter-spacing: -.03em; white-space: nowrap; }
.next-action-copy { display: grid; gap: 2px; min-width: 0; }
.next-action-copy > strong { color: var(--console-muted); font-size: 11px; font-weight: 500; }
.next-action-copy b { overflow: hidden; color: var(--console-ink); font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.next-action-copy span, .next-action-copy em { overflow: hidden; color: var(--console-muted); font-size: 11px; font-style: normal; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.next-action-copy em.is-overdue { color: #b95643; }.next-action-copy em.is-near { color: #a66c20; }
.next-action-button { min-height: 36px; padding: 0 13px; white-space: nowrap; }
.next-action-empty { display: flex; align-items: center; gap: 9px; color: var(--console-muted); font-size: 12px; }.next-action-empty::before { content: "✓"; display: grid; width: 21px; height: 21px; place-items: center; color: #4d7964; border-radius: 50%; background: #eef6f1; font-size: 11px; }

.dashboard-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.dashboard-list-card { overflow: hidden; border: 1px solid var(--console-line); border-radius: 9px; background: #fff; }
.dashboard-list-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 0 15px; border-bottom: 1px solid var(--console-line); }
.dashboard-list-header > div { display: flex; align-items: center; gap: 8px; }.dashboard-list-header h2 { margin: 0; color: var(--console-ink); font-size: 14px; font-weight: 600; }.dashboard-list-header a { color: var(--console-blue); font-size: 11px; font-weight: 500; text-decoration: none; white-space: nowrap; }.dashboard-list-header a:hover { text-decoration: underline; }
.section-icon { display: grid; width: 20px; height: 20px; place-items: center; color: var(--console-blue); border-radius: 5px; background: #edf5fc; font-size: 11px; font-weight: 600; }
.dashboard-list-content { display: grid; }.dashboard-list-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 53px; padding: 10px 15px; border-bottom: 1px solid #edf0f2; }.dashboard-list-row:last-child { border-bottom: 0; }.dashboard-list-row-main { display: grid; gap: 3px; min-width: 0; }.dashboard-list-row-main b { overflow: hidden; color: var(--console-ink); font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }.dashboard-list-row-main span { overflow: hidden; color: var(--console-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.dashboard-list-row-meta { display: grid; justify-items: end; gap: 4px; color: var(--console-muted); font-size: 10px; white-space: nowrap; }.dashboard-list-badge { padding: 3px 6px; color: #a66c20; border-radius: 4px; background: #fff5e9; font-size: 10px; font-weight: 500; }.dashboard-list-badge.is-overdue { color: #b95643; background: #fff0ed; }.dashboard-list-badge.is-near { color: #a66c20; background: #fff5e9; }.dashboard-list-badge.is-scheduled { color: var(--console-blue); background: #edf5fc; }.dashboard-list-empty { display: flex; align-items: center; gap: 8px; padding: 18px 15px; color: var(--console-muted); font-size: 12px; }.dashboard-list-empty::before { content: "✓"; display: grid; width: 20px; height: 20px; place-items: center; color: #4d7964; border-radius: 50%; background: #eef6f1; font-size: 10px; }.dashboard-list-more { padding: 9px 15px 12px; color: var(--console-muted); border-top: 1px solid #edf0f2; font-size: 10px; }

@media (max-width: 860px) { .overview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }.status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.status-card:nth-child(n) { border-top: 1px solid var(--console-line); border-left: 1px solid var(--console-line); }.status-card:nth-child(1), .status-card:nth-child(2) { border-top: 0; }.status-card:nth-child(odd) { border-left: 0; }.dashboard-detail-grid { grid-template-columns: 1fr; }.next-action-layout { grid-template-columns: auto minmax(0, 1fr); }.next-action-button { grid-column: 2; justify-self: start; margin-top: 3px; } }
@media (max-width: 560px) { .dashboard-page .page-content { padding: 16px 14px 28px; }.overview-card { min-height: 0; }.overview-target-row { grid-template-columns: 1fr; gap: 3px; }.status-grid { grid-template-columns: 1fr; }.status-card:nth-child(n) { border-top: 1px solid var(--console-line); border-left: 0; }.status-card:first-child { border-top: 0; }.next-action-section { padding: 14px; }.next-action-layout { grid-template-columns: 1fr; gap: 8px; }.next-action-button { grid-column: 1; width: 100%; margin-top: 3px; }.next-action-copy b, .next-action-copy span, .next-action-copy em { white-space: normal; }.dashboard-list-row { padding: 10px 13px; }.dashboard-list-header { padding: 0 13px; } }

/* Dashboard data states: keep loading, empty, and error states inside each card. */
.dashboard-page .page-content { padding-top: max(22px, env(safe-area-inset-top)); }
.dashboard-overview-grid .overview-card { min-height: 146px; }
.dashboard-skeleton { display: grid; align-content: center; gap: 9px; min-height: 54px; }
.skeleton-line { display: block; width: 100%; height: 10px; border-radius: 4px; background: #e9eef3; animation: dashboard-skeleton-pulse 1.35s ease-in-out infinite; }
.skeleton-line.is-1 { width: 48%; }
.skeleton-line.is-2 { width: 76%; }
.skeleton-line.is-3 { width: 60%; }
.status-skeleton { display: grid; gap: 8px; margin-top: 7px; }
.status-skeleton i { display: block; width: 72%; height: 10px; border-radius: 4px; background: #e9eef3; animation: dashboard-skeleton-pulse 1.35s ease-in-out infinite; }
.status-skeleton i:last-child { width: 48%; }
.dashboard-inline-error { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-height: 52px; color: var(--console-muted); font-size: 13px; line-height: 1.5; }
.dashboard-inline-error::before { content: "!"; display: inline-grid; place-items: center; width: 18px; height: 18px; border: 1px solid #d8b17a; border-radius: 50%; color: #946727; font-size: 12px; font-weight: 700; }
.dashboard-inline-error button,
.status-inline-error button { min-height: 30px; padding: 4px 9px; border: 1px solid #cbd8e6; border-radius: 6px; background: #f8fbff; color: var(--console-primary); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.dashboard-inline-error button:hover,
.status-inline-error button:hover { border-color: #9fb9d4; background: #eff6fd; }
.status-inline-error { display: grid; gap: 6px; margin-top: 7px; color: var(--console-muted); font-size: 12px; line-height: 1.45; }
.status-inline-error button { justify-self: start; }
.dashboard-list-card .dashboard-inline-error { padding: 12px 14px; min-height: 48px; }
.overview-card .dashboard-inline-error { min-height: 70px; }
.status-card .status-skeleton { min-height: 42px; }
@keyframes dashboard-skeleton-pulse { 50% { opacity: .52; } }
@media (prefers-reduced-motion: reduce) { .skeleton-line, .status-skeleton i { animation: none; } }
@media (max-width: 560px) {
  .dashboard-page .page-content { padding-top: max(16px, env(safe-area-inset-top)); }
  .dashboard-overview-grid .overview-card { min-height: 0; }
}

/* Dashboard reference layout: concise performance, target, action, and progress panels. */
.dashboard-page .page-content { max-width: 1520px; padding-top: max(22px, env(safe-area-inset-top)); }
.dashboard-page .intro { display: flex; align-items: baseline; gap: 18px; margin-bottom: 18px; }
.dashboard-page .intro .eyebrow { margin: 0; }
.dashboard-page .intro h1 { margin: 0; font-size: 26px; }
.dashboard-overview { align-items: stretch; gap: 14px; margin: 0 0 14px; }
.dashboard-overview .overview-card { min-height: 168px; padding: 18px; }
.overview-heading { margin-bottom: 20px; color: var(--console-ink); font-size: 16px; font-weight: 600; }
.overview-metrics { gap: 0; margin-top: 30px; }
.overview-metrics > div { padding: 0 18px; border-left: 1px solid #e1e7ee; }
.overview-metrics > div:first-child { padding-left: 0; border-left: 0; }
.overview-metrics > div:last-child { padding-right: 0; }
.overview-metrics dt { font-size: 12px; }
.overview-metrics dd { margin-top: 8px; font-size: 32px; }
.overview-target { gap: 28px; margin-top: 28px; }
.overview-target-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; }
.overview-target-row b { font-size: 15px; font-weight: 600; }
.overview-target-row b strong { margin-left: 12px; font-size: 24px; }
.overview-target-row span { font-size: 13px; }
.overview-target-row .overview-progress { height: 6px; margin-top: 3px; }

.next-action-section { position: relative; margin: 0 0 14px; padding: 16px 18px; overflow: hidden; }
.next-action-section.is-overdue::before { position: absolute; top: 0; bottom: 0; left: 0; width: 6px; background: #f59e0b; content: ""; }
.next-action-kicker { margin-bottom: 6px; }
.next-action-layout { grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; }
.next-action-time { padding-right: 16px; border-right: 1px solid #e1e7ee; font-size: 32px; }
.next-action-copy b { font-size: 16px; }
.next-action-copy > strong { display: none; }
.next-action-copy em { font-size: 12px; }
.next-action-actions { display: flex; gap: 9px; align-items: center; }
.next-action-confirm,
.next-action-complete { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 0 20px; border-radius: 7px; font-size: 13px; font-weight: 600; text-decoration: none; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.next-action-confirm { border: 1px solid var(--console-primary); background: #fff; color: var(--console-primary); }
.next-action-complete { border: 1px solid var(--console-primary); background: var(--console-primary); color: #fff; cursor: pointer; }
.next-action-confirm:hover { background: #f0f6fc; }
.next-action-complete:hover { background: #174b7a; border-color: #174b7a; }
.next-action-confirm:active,
.next-action-complete:active { transform: translateY(1px); }
.next-action-confirm:focus-visible,
.next-action-complete:focus-visible { outline: 3px solid rgba(35, 103, 169, .24); outline-offset: 2px; }

.dashboard-lower-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.dashboard-panel { overflow: hidden; border: 1px solid var(--console-line); border-radius: 9px; background: #fff; }
.dashboard-panel-header { display: flex; min-height: 58px; align-items: center; padding: 0 24px; border-bottom: 1px solid var(--console-line); }
.dashboard-panel-header h2 { margin: 0; color: var(--console-ink); font-size: 16px; font-weight: 600; }
.dashboard-progress-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border: 0; border-radius: 0; }
.dashboard-progress-grid .status-card { min-height: 220px; padding: 32px 24px 24px 58px; border: 0; border-radius: 0; }
.dashboard-progress-grid .status-card + .status-card { border-left: 1px solid var(--console-line); }
.dashboard-progress-grid .status-card .status-icon { top: 32px; left: 24px; }
.dashboard-progress-grid .status-card p { min-height: auto; }
.dashboard-progress-grid .status-card strong { font-size: 34px; }
.dashboard-progress-grid .status-card em { display: block; margin-top: 12px; }
.dashboard-progress-grid .status-progress { width: 100%; margin-top: 20px; }

.operations-alert-list { display: grid; }
.operation-alert-row { display: grid; grid-template-columns: minmax(148px, .82fr) minmax(0, 1fr) auto; gap: 16px; align-items: center; min-height: 76px; padding: 13px 18px 13px 58px; border-bottom: 1px solid var(--console-line); }
.operation-alert-row:last-child { border-bottom: 0; }
.operation-alert-row .status-icon { position: absolute; left: 22px; }
.operation-alert-row { position: relative; }
.operation-alert-row > b { color: var(--console-ink); font-size: 15px; font-weight: 600; }
.operation-alert-row > span { color: var(--console-muted); font-size: 13px; }
.operation-alert-row > strong { color: var(--console-primary); font-size: 15px; font-weight: 600; }
.operation-alert-row.is-error > strong { color: #b95643; }
.operation-alert-row button { min-height: 34px; padding: 4px 12px; border: 1px solid #cbd8e6; border-radius: 6px; background: #fff; color: var(--console-primary); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.operation-alert-row button:hover { border-color: #9fb9d4; background: #f0f6fc; }

/* Dashboard action cards: operational alerts and staff improvement proposals. */
.dashboard-attention-section { margin-top: 14px; }
.dashboard-attention-section .dashboard-panel { overflow: visible; }
.dashboard-attention-section .dashboard-panel-header { min-height: 60px; }
.dashboard-attention-section .dashboard-panel-header > div { display: grid; gap: 3px; }
.dashboard-attention-section .dashboard-panel-header p { margin: 0; color: var(--console-muted); font-size: 11px; }
.operations-alert-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 12px; background: #f8fafc; }
.operation-alert-card { display: flex; min-width: 0; min-height: 164px; flex-direction: column; padding: 14px; border: 1px solid var(--console-line); border-radius: 8px; background: #fff; }
.operation-alert-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.operation-alert-card .status-icon { position: static; display: grid; width: 28px; height: 28px; place-items: center; }
.operation-alert-card .status-icon svg { width: 15px; height: 15px; }
.operation-alert-card h3 { margin: 11px 0 0; color: var(--console-ink); font-size: 14px; font-weight: 600; }
.operation-card-badge { padding: 3px 7px; border-radius: 99px; font-size: 9px; font-weight: 700; }
.operation-card-badge.is-urgent { color: #a84b3c; background: #fcedea; }
.operation-card-badge.is-staff { color: #5c6292; background: #f0f1fb; }
.operation-card-badge.is-schedule { color: #376d79; background: #eaf5f6; }
.operation-card-badge.is-payment { color: #8a6226; background: #fff4df; }
.operation-card-badge.is-suggestion { color: #195c98; background: #eaf3fc; }
.operation-card-badge.is-coming-soon { color: #667085; background: #e9edf2; }
.operation-card-state { display: grid; gap: 5px; margin-top: 12px; }
.operation-card-state > strong { color: var(--console-primary); font-size: 18px; font-weight: 600; }
.operation-card-state > p, .operation-card-loading { margin: 0; color: var(--console-muted); font-size: 11px; line-height: 1.5; }
.operation-card-state.is-error { color: #b95643; }
.operation-card-state.is-error button { justify-self: start; }
.operation-card-link { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: auto; padding-top: 12px; color: var(--console-primary); font-size: 11px; font-weight: 600; text-decoration: none; }
.operation-card-link:hover { color: #174b7a; }
.operation-proposal-card { grid-column: 1 / -1; min-height: 0; background: linear-gradient(135deg, #fff 0%, #f4f8fd 100%); }
.operation-proposal-card.is-coming-soon { border-color: #dde2e8; background: #f3f5f7; box-shadow: none; }
.operation-proposal-card.is-coming-soon .status-icon { color: #7b8794; background: #e5e9ed; }
.operation-proposal-card.is-coming-soon h3 { color: #596574; }
.operation-proposal-card.is-coming-soon .operation-proposal-heading p { color: #7a8592; }
.operation-proposal-card.is-coming-soon .operation-card-link.is-disabled { color: #89939f; cursor: default; }
.operation-proposal-card.is-coming-soon .operation-proposal-list { opacity: .55; }
.operation-proposal-card.is-coming-soon .operation-proposal-list li { border-color: #dfe3e8; background: #eef1f4; color: #7a8490; }
.operation-proposal-card.is-coming-soon .operation-proposal-list li span { color: #8b949e; }
.operation-proposal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.operation-proposal-heading h3 { margin-top: 11px; }
.operation-proposal-heading p { margin: 5px 0 0; color: var(--console-muted); font-size: 11px; line-height: 1.5; }
.operation-proposal-heading .operation-card-link { flex: 0 0 auto; margin-top: 7px; }
.operation-proposal-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin: 12px 0 0; padding: 0; list-style: none; }
.operation-proposal-list li { display: flex; min-width: 0; align-items: center; gap: 7px; padding: 8px 9px; border: 1px solid #dce7f2; border-radius: 6px; background: #fff; color: #35465a; font-size: 10px; line-height: 1.4; }
.operation-proposal-list li span { flex: 0 0 auto; color: #3274af; font-size: 9px; font-weight: 800; letter-spacing: .05em; }

@media (max-width: 860px) {
  .dashboard-page .intro { gap: 10px; }
  .dashboard-overview,
  .dashboard-lower-grid { grid-template-columns: 1fr; }
  .dashboard-overview .overview-card { min-height: 0; }
  .next-action-layout { grid-template-columns: 96px minmax(0, 1fr); }
  .next-action-actions { grid-column: 2; justify-self: start; }
  .dashboard-progress-grid .status-card { min-height: 170px; }
  .operations-alert-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operation-proposal-card { grid-column: 1 / -1; }
  .operation-proposal-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .dashboard-page .intro { display: block; margin-bottom: 14px; }
  .dashboard-page .intro h1 { margin-top: 4px; font-size: 23px; }
  .dashboard-overview { gap: 14px; margin-bottom: 14px; }
  .dashboard-overview .overview-card { padding: 18px 16px; }
  .overview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 0; margin-top: 20px; }
  .overview-metrics > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .overview-metrics > div:nth-child(even) { padding-right: 0; }
  .overview-metrics dd { font-size: 27px; }
  .overview-target { gap: 20px; margin-top: 20px; }
  .next-action-section { padding: 18px 16px; margin-bottom: 14px; }
  .next-action-layout { grid-template-columns: 1fr; gap: 9px; }
  .next-action-time { padding: 0; border: 0; font-size: 36px; }
  .next-action-copy b { font-size: 18px; white-space: normal; }
  .next-action-actions { grid-column: 1; width: 100%; justify-self: stretch; }
  .next-action-confirm,
  .next-action-complete { flex: 1; padding: 0 10px; }
  .dashboard-lower-grid { gap: 14px; }
  .dashboard-panel-header { min-height: 52px; padding: 0 16px; }
  .dashboard-progress-grid { grid-template-columns: 1fr; }
  .dashboard-progress-grid .status-card { min-height: 0; padding: 24px 18px 20px 52px; border-bottom: 1px solid var(--console-line); }
  .dashboard-progress-grid .status-card + .status-card { border-left: 0; }
  .dashboard-progress-grid .status-card:last-child { border-bottom: 0; }
  .dashboard-progress-grid .status-card .status-icon { top: 24px; left: 18px; }
  .operation-alert-row { grid-template-columns: 1fr auto; gap: 5px 10px; min-height: 0; padding: 14px 16px 14px 50px; }
  .operation-alert-row .status-icon { left: 16px; }
  .operation-alert-row > span { grid-column: 1 / -1; }
  .operation-alert-row > strong { grid-column: 2; grid-row: 1; }
  .operation-alert-row button { grid-column: 2; grid-row: 2; }
  .operations-alert-list { grid-template-columns: 1fr; padding: 12px; }
  .operation-alert-card, .operation-proposal-card { grid-column: 1; min-height: 0; }
  .operation-proposal-heading { display: block; }
  .operation-proposal-heading .operation-card-link { margin-top: 0; }
  .operation-proposal-list { grid-template-columns: 1fr; }
}

/* Dashboard typography and density refinement. */
:root {
  --text-primary: #172033;
  --text-heading: #253247;
  --text-secondary: #526176;
  --text-muted: #7b8798;
  --border-default: #e1e6ed;
  --background-page: #f6f7f9;
  --background-card: #ffffff;
  --color-primary: #1764a3;
  --color-primary-soft: #eaf2fa;
  --color-warning: #e77716;
  --color-warning-soft: #fff4e8;
  --color-danger: #d94a3a;
  --color-danger-soft: #fdedea;
  --color-success: #2e8b67;
  --color-disabled: #98a2b3;
}

html,
body {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", system-ui, sans-serif;
  font-size: 14px;
}

.dashboard-page {
  color: var(--text-secondary);
  background: var(--background-page);
}

.dashboard-page .page-content {
  max-width: 1520px;
  padding-top: max(20px, env(safe-area-inset-top));
}

.dashboard-page .intro {
  gap: 6px;
  margin-bottom: 18px;
}

.dashboard-page .intro .eyebrow {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.dashboard-page .intro h1 {
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
}

.dashboard-overview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.dashboard-overview .overview-card {
  min-height: 168px;
  padding: 20px 18px;
  border: 1px solid var(--border-default);
  border-radius: 10px;
  background: var(--background-card);
  box-shadow: none;
}

.overview-heading {
  margin-bottom: 14px;
  color: var(--text-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.overview-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.overview-heading-row .overview-heading { margin-bottom: 0; }

.overview-detail-link {
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.overview-detail-link:hover { text-decoration: underline; }

.overview-metrics {
  margin-top: 18px;
}

.overview-metrics > div {
  padding: 0 16px;
  border-left-color: var(--border-default);
}

.overview-metrics dt {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.overview-metrics dd {
  margin-top: 6px;
  color: var(--text-primary);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.overview-metrics dd small {
  margin-left: 3px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}

.overview-target {
  gap: 18px;
  margin-top: 16px;
}

.overview-target-row {
  gap: 6px 14px;
}

.overview-target-row b {
  color: var(--text-heading);
  font-size: 14px;
  font-weight: 500;
}

.overview-target-row b strong {
  margin-left: 8px;
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.overview-target-row b strong small {
  margin-left: 2px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 400;
}

.overview-target-row span {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 400;
}

.overview-target-row .overview-progress,
.status-progress {
  height: 6px;
  border-radius: 999px;
  background: #e7ebf0;
}

.overview-target-row .overview-progress {
  margin-top: 2px;
}

.overview-target-row .overview-progress i,
.status-progress i {
  background: var(--color-primary);
}

.target-source {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 400;
}

.sales-target-card { overflow: hidden; }
.sales-target-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.sales-target-heading span { color: var(--text-heading); font-size: 13px; font-weight: 500; }
.sales-target-heading small { color: var(--text-muted); font-size: 10px; white-space: nowrap; }
.sales-target-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.sales-target-row { min-width: 0; padding: 7px 8px; border: 1px solid var(--border-divider); border-radius: 7px; background: #fbfcfe; }
.sales-target-row b, .sales-target-row span, .sales-target-row small { display: block; }
.sales-target-row b { overflow: hidden; color: var(--text-body); font-size: 10px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.sales-target-row span { display: flex; align-items: baseline; justify-content: space-between; gap: 5px; margin-top: 3px; }
.sales-target-row strong { color: var(--text-strong); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sales-target-row small { color: var(--text-secondary); font-size: 9px; white-space: nowrap; }

/* 売上目標 詳細 */
.sales-targets-content { max-width: 1220px; }
.sales-targets-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.sales-targets-intro h1 { margin-bottom: 5px; }
.sales-targets-intro > div > p:last-child { margin: 0; color: var(--text-secondary); font-size: 14px; }
.sales-targets-back-link { color: var(--color-primary); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.sales-targets-back-link:hover { text-decoration: underline; }
.sales-targets-control-panel { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 14px; padding: 16px 18px; border: 1px solid var(--border-default); border-radius: 10px; background: var(--background-card); }
.sales-targets-section-label { margin: 0 0 7px; color: var(--text-muted); font-size: 11px; font-weight: 600; letter-spacing: .05em; }
.sales-weekday-selector { display: flex; gap: 6px; }
.sales-weekday-button { width: 42px; height: 36px; border: 1px solid var(--border-default); border-radius: 7px; background: #fff; color: var(--text-secondary); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.sales-weekday-button:hover { border-color: #a9c9e8; color: var(--color-primary); }
.sales-weekday-button.is-active { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
.sales-calculation-badge { padding: 6px 10px; border-radius: 999px; background: #edf5fc; color: #1265a8; font-size: 11px; font-weight: 600; }
.sales-cti-import-panel { margin-bottom: 14px; padding: 18px; border: 1px solid #cfe0ef; border-radius: 10px; background: #f8fbfe; }
.sales-cti-import-panel[hidden] { display: none; }
.sales-cti-import-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.sales-cti-import-panel h2 { margin: 0; color: var(--text-primary); font-size: 17px; font-weight: 600; }
.sales-cti-import-panel header p:last-child { margin: 5px 0 0; color: var(--text-secondary); font-size: 11px; }
.sales-cti-import-panel header > span { padding: 5px 8px; border-radius: 999px; background: #e7f1fa; color: #1769aa; font-size: 10px; font-weight: 600; }
.sales-cti-import-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.sales-cti-file { display: grid; gap: 6px; color: var(--text-heading); font-size: 11px; font-weight: 600; }
.sales-cti-file input { min-height: 40px; padding: 8px 10px; border: 1px dashed #a9c6df; border-radius: 7px; background: #fff; color: var(--text-secondary); font: inherit; }
.sales-cti-import-controls .task-primary { min-height: 40px; white-space: nowrap; }
.sales-cti-preview { margin-top: 14px; border: 1px solid var(--border-default); border-radius: 8px; background: #fff; overflow: hidden; }
.sales-cti-preview > p { margin: 0; padding: 13px 15px; color: var(--text-secondary); font-size: 11px; line-height: 1.6; }
.sales-cti-preview-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--border-divider); }
.sales-cti-preview-summary > span { display: grid; gap: 4px; padding: 13px 15px; border-left: 1px solid var(--border-divider); }
.sales-cti-preview-summary > span:first-child { border-left: 0; }
.sales-cti-preview-summary small { color: var(--text-muted); font-size: 9px; }
.sales-cti-preview-summary strong { color: var(--text-primary); font-size: 14px; font-weight: 600; }
.sales-cti-preview-rooms { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; padding: 11px; }
.sales-cti-preview-rooms > span { min-width: 0; padding: 9px; border: 1px solid var(--border-divider); border-radius: 6px; background: #fbfcfe; }
.sales-cti-preview-rooms b, .sales-cti-preview-rooms small, .sales-cti-preview-rooms strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sales-cti-preview-rooms b { color: var(--text-heading); font-size: 10px; }
.sales-cti-preview-rooms small { margin-top: 5px; color: var(--text-muted); font-size: 8px; }
.sales-cti-preview-rooms strong { margin-top: 3px; color: var(--text-primary); font-size: 12px; }
.sales-cti-message { min-height: 17px; margin: 9px 0 0; color: var(--text-secondary); font-size: 11px; }
.sales-cti-message.is-success { color: #23704f; }
.sales-cti-message.is-error { color: #b95643; }
.sales-targets-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.sales-targets-summary article { min-width: 0; padding: 17px 18px; border: 1px solid var(--border-default); border-radius: 10px; background: var(--background-card); }
.sales-targets-summary span, .sales-targets-summary small { display: block; color: var(--text-secondary); font-size: 11px; }
.sales-targets-summary strong { display: block; overflow: hidden; margin: 8px 0 5px; color: var(--text-primary); font-size: 23px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.sales-targets-panel { margin-bottom: 14px; padding: 19px; border: 1px solid var(--border-default); border-radius: 10px; background: var(--background-card); }
.sales-targets-panel-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.sales-targets-panel-header h2 { margin: 0; color: var(--text-primary); font-size: 18px; font-weight: 600; }
.sales-targets-panel-header > p { margin: 0; color: var(--text-muted); font-size: 11px; }
.sales-room-target-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.sales-room-target-card { min-width: 0; padding: 14px; border: 1px solid var(--border-divider); border-radius: 8px; background: #fbfcfe; }
.sales-room-target-card.is-highest { border-color: #b8d5ee; background: #f6faff; }
.sales-room-target-card header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 7px; }
.sales-room-target-card header > span { color: #8aa0b5; font-size: 9px; font-weight: 700; }
.sales-room-target-card h3 { overflow: hidden; margin: 0; color: var(--text-heading); font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.sales-room-target-card em { padding: 3px 5px; border-radius: 4px; background: #e6f1fb; color: #1265a8; font-size: 8px; font-style: normal; font-weight: 600; }
.sales-room-target-card dl { margin: 15px 0 0; }
.sales-room-target-card dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid var(--border-divider); }
.sales-room-target-card dl > div + div { margin-top: 8px; }
.sales-room-target-card dt { color: var(--text-secondary); font-size: 10px; }
.sales-room-target-card dd { margin: 0; color: var(--text-primary); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sales-room-target-card dd small { margin-left: 2px; color: var(--text-muted); font-size: 8px; font-weight: 400; }
.sales-weekly-table-wrap { overflow-x: auto; }
.sales-weekly-table { width: 100%; min-width: 820px; border-collapse: collapse; }
.sales-weekly-table th, .sales-weekly-table td { padding: 10px 12px; border: 1px solid var(--border-divider); text-align: right; }
.sales-weekly-table thead th { background: #f7f9fb; color: var(--text-secondary); font-size: 11px; font-weight: 600; text-align: center; }
.sales-weekly-table thead th:first-child { text-align: left; }
.sales-weekly-table tbody th { color: var(--text-heading); font-size: 11px; font-weight: 600; text-align: left; white-space: nowrap; }
.sales-weekly-table td strong, .sales-weekly-table td small { display: block; }
.sales-weekly-table td strong { color: var(--text-primary); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sales-weekly-table td small { margin-top: 3px; color: var(--text-muted); font-size: 8px; }
.sales-weekly-table .is-selected { background: #f0f7fd; }
.sales-targets-basis-note { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 18px; border: 1px solid #d8e3ed; border-radius: 10px; background: #f7fafc; }
.sales-targets-basis-note > div { display: flex; align-items: flex-start; gap: 11px; }
.sales-targets-note-icon { display: grid; flex: 0 0 24px; height: 24px; place-items: center; border-radius: 50%; background: #e5eef6; color: #52718e; font-size: 11px; font-weight: 700; }
.sales-targets-basis-note h2 { margin: 1px 0 4px; color: var(--text-heading); font-size: 13px; font-weight: 600; }
.sales-targets-basis-note p { margin: 0; color: var(--text-secondary); font-size: 11px; line-height: 1.65; }
.sales-targets-basis-note > span { flex: 0 0 auto; padding: 6px 9px; border-radius: 999px; background: #e9edf1; color: #788693; font-size: 10px; font-weight: 600; }

@media (max-width: 1100px) {
  .sales-room-target-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .sales-targets-intro, .sales-targets-control-panel, .sales-targets-panel-header, .sales-targets-basis-note { align-items: flex-start; flex-direction: column; }
  .sales-weekday-selector { flex-wrap: wrap; }
  .sales-targets-summary { grid-template-columns: 1fr; }
  .sales-room-target-grid { grid-template-columns: 1fr; }
  .sales-cti-import-panel > header { flex-direction: column; }
  .sales-cti-import-controls { grid-template-columns: 1fr; }
  .sales-cti-preview-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sales-cti-preview-summary > span:nth-child(odd) { border-left: 0; }
  .sales-cti-preview-summary > span:nth-child(n+3) { border-top: 1px solid var(--border-divider); }
  .sales-cti-preview-rooms { grid-template-columns: 1fr 1fr; }
}

.next-action-section {
  margin-bottom: 16px;
  padding: 22px 24px;
  border: 1px solid var(--border-default);
  border-radius: 10px;
  background: var(--background-card);
}

.next-action-section.is-overdue::before {
  width: 4px;
  background: var(--color-warning);
}

.next-action-kicker {
  margin-bottom: 7px;
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.next-action-layout {
  grid-template-columns: 104px minmax(0, 1fr) auto;
  gap: 18px;
}

.next-action-time {
  padding-right: 18px;
  border-right-color: var(--border-default);
  color: var(--text-primary);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.next-action-copy {
  gap: 3px;
}

.next-action-copy > strong {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.next-action-copy b {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}

.next-action-copy span,
.next-action-copy em {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.next-action-copy em.is-overdue,
.next-action-copy em.is-near {
  color: var(--color-warning);
}

.next-action-confirm,
.next-action-complete {
  min-height: 40px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

.next-action-confirm {
  border-color: #afc7de;
  color: var(--color-primary);
}

.next-action-complete {
  border-color: var(--color-primary);
  background: var(--color-primary);
}

.dashboard-panel,
.dashboard-list-card {
  border-color: var(--border-default);
  border-radius: 10px;
  box-shadow: none;
}

.dashboard-panel-header,
.dashboard-list-header {
  min-height: 52px;
  padding: 0 18px;
  border-bottom-color: var(--border-default);
}

.dashboard-panel-header h2,
.dashboard-list-header h2 {
  color: var(--text-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.dashboard-progress-grid .status-card {
  min-height: 184px;
  padding: 20px 18px 18px 50px;
}

.status-card p {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.status-card strong {
  color: var(--text-primary);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.status-card strong small {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 400;
}

.status-card .status-sub,
.dashboard-list-row-main span,
.dashboard-list-row-meta {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 400;
}

.dashboard-list-header a {
  font-size: 13px;
  font-weight: 500;
}

.dashboard-list-row {
  min-height: 50px;
  padding: 10px 16px;
}

.dashboard-list-row-main b {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
}

.side-navigation .sidebar-link {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.side-navigation .sidebar-link > span:first-child {
  color: var(--color-disabled);
}

.side-navigation .sidebar-link.is-active {
  color: var(--color-primary);
  background: var(--color-primary-soft);
  font-weight: 600;
}

.side-navigation .sidebar-link.is-active > span:first-child {
  color: var(--color-primary);
}

@media (max-width: 860px) {
  .dashboard-overview .overview-card {
    min-height: 0;
  }

  .next-action-layout {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}

@media (min-width: 861px) and (max-width: 1180px) {
  .dashboard-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sales-target-card { grid-column: 1 / -1; }
  .sales-target-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .dashboard-page .intro {
    margin-bottom: 14px;
  }

  .dashboard-page .intro h1 {
    margin-top: 4px;
    font-size: 23px;
  }

  .dashboard-overview {
    gap: 14px;
    margin-bottom: 14px;
  }

  .dashboard-overview .overview-card {
    padding: 18px 16px;
  }

  .overview-metrics {
    margin-top: 20px;
  }

  .overview-target {
    gap: 20px;
    margin-top: 20px;
  }

  .sales-target-list { grid-template-columns: 1fr; }

  .next-action-section {
    margin-bottom: 14px;
    padding: 18px 16px;
  }

  .next-action-time {
    font-size: 36px;
  }

  .dashboard-progress-grid .status-card {
    min-height: 0;
    padding: 20px 16px 18px 50px;
  }
}

/* Payment cycles */
.payment-cycle-page {
  max-width: 980px;
}

.payment-cycle-intro {
  margin-bottom: 16px;
}

.payment-cycle-panel {
  display: grid;
  gap: 16px;
}

.payment-cycle-form,
.payment-cycle-records { padding: 22px 24px; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-surface); }
.payment-cycle-form-heading, .payment-cycle-list-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.payment-cycle-form-heading h2, .payment-cycle-list-heading h2 { margin: 0; color: var(--color-text); font-size: 17px; font-weight: 600; }
.payment-cycle-form-heading p { margin: 5px 0 0; color: var(--color-text-muted); font-size: 12px; }
.payment-cycle-required { padding: 4px 8px; border-radius: 99px; color: #8a6226; background: #fff4df; font-size: 10px; font-weight: 600; }
.payment-cycle-fields { display: grid; grid-template-columns: 160px minmax(180px, 1fr) 170px minmax(180px, 1fr); gap: 14px; margin-top: 18px; }
.payment-cycle-fields label { display: grid; gap: 7px; color: var(--color-text); font-size: 12px; font-weight: 600; }
.payment-cycle-fields input { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid var(--color-border); border-radius: 7px; background: #fff; color: var(--color-text); font: inherit; font-size: 14px; }
.payment-cycle-fields input:focus { border-color: var(--console-primary); outline: 3px solid rgba(35, 103, 169, .12); }
.payment-cycle-form-actions { display: flex; min-height: 40px; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 16px; }
.payment-cycle-message { margin: 0 auto 0 0; color: var(--color-text-muted); font-size: 12px; }
.payment-cycle-message.is-success { color: #26734d; }.payment-cycle-message.is-error { color: #b34e3d; }
.payment-cycle-form-actions .task-primary { min-width: 112px; }
.payment-cycle-list-heading { align-items: center; margin-bottom: 14px; }
.payment-cycle-summary { display: flex; gap: 18px; color: var(--color-text-muted); font-size: 12px; }
.payment-cycle-summary strong { margin-left: 5px; color: var(--color-text); font-size: 14px; }
.payment-cycle-list { display: grid; gap: 8px; }
.payment-cycle-row { display: grid; grid-template-columns: 130px minmax(180px, 1fr) 150px auto; gap: 18px; align-items: center; padding: 13px 14px; border: 1px solid var(--color-border); border-radius: 8px; background: #fff; }
.payment-cycle-row.is-paid { background: #f8faf9; opacity: .72; }
.payment-cycle-date, .payment-cycle-payee, .payment-cycle-amount { display: grid; gap: 4px; min-width: 0; }
.payment-cycle-row span { color: var(--color-text-muted); font-size: 10px; }
.payment-cycle-row strong { overflow: hidden; color: var(--color-text); font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.payment-cycle-payee small { overflow: hidden; color: var(--color-text-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.payment-cycle-row-actions { display: flex; align-items: center; gap: 7px; }
.payment-cycle-status-button, .payment-cycle-delete { min-height: 32px; padding: 0 10px; border: 1px solid var(--color-border); border-radius: 6px; background: #fff; color: var(--color-text-muted); font: inherit; font-size: 11px; cursor: pointer; }
.payment-cycle-status-button { color: #a66c20; background: #fff8eb; border-color: #f3dfb8; }
.payment-cycle-status-button.is-paid { color: #26734d; background: #eef7f2; border-color: #cfe5d9; }
.payment-cycle-delete:hover { color: #b34e3d; border-color: #e4bdb6; background: #fff7f5; }
.payment-cycle-empty.is-compact { min-height: 104px; padding: 14px; border: 1px dashed var(--color-border); border-radius: 8px; text-align: center; }

.payment-cycle-empty,
.payment-cycle-restricted {
  display: grid;
  min-height: 124px;
  align-content: center;
}

.payment-cycle-empty h2,
.payment-cycle-restricted h2 {
  margin: 0 0 8px;
  color: var(--color-text);
  font-size: 18px;
  font-weight: 600;
}

.payment-cycle-empty p,
.payment-cycle-restricted p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
}

@media (max-width: 560px) {
  .payment-cycle-panel {
    gap: 12px;
  }

  .payment-cycle-form, .payment-cycle-records { padding: 18px 16px; }
  .payment-cycle-form-heading, .payment-cycle-list-heading { display: grid; gap: 8px; }
  .payment-cycle-fields { grid-template-columns: 1fr; gap: 11px; margin-top: 15px; }
  .payment-cycle-summary { display: grid; gap: 4px; }
  .payment-cycle-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .payment-cycle-payee, .payment-cycle-row-actions { grid-column: 1 / -1; }
  .payment-cycle-row-actions { justify-content: flex-end; }

  .payment-cycle-empty,
  .payment-cycle-restricted {
    min-height: 106px;
  }
}

@media (min-width: 561px) and (max-width: 1000px) {
  .payment-cycle-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payment-cycle-row { grid-template-columns: 120px minmax(180px, 1fr) 140px; }
  .payment-cycle-row-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

/* Dashboard typography and navigation hierarchy.
   Keep this at the end so legacy page rules cannot make the dashboard heavy. */
:root {
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --text-strong: #172033;
  --text-heading: #344054;
  --text-body: #475467;
  --text-secondary: #667085;
  --text-muted: #8a94a3;
  --border-card: #e4e8ee;
  --border-divider: #edf0f3;
}

.dashboard-page {
  color: var(--text-body);
  font-weight: var(--font-regular);
}

.dashboard-page .intro h1 {
  color: var(--text-strong);
  font-weight: var(--font-semibold);
}

.dashboard-page .intro p,
.dashboard-page .intro time,
.dashboard-page .overview-card p,
.dashboard-page .dashboard-panel p,
.dashboard-page .dashboard-list-card p {
  color: var(--text-secondary);
  font-weight: var(--font-regular);
}

.dashboard-page .overview-card,
.dashboard-page .next-action-section,
.dashboard-page .dashboard-panel,
.dashboard-page .dashboard-list-card,
.dashboard-page .dashboard-progress-grid,
.dashboard-page .status-grid {
  border-color: var(--border-card);
  box-shadow: none;
}

.dashboard-page .overview-heading,
.dashboard-page .overview-card h2,
.dashboard-page .dashboard-panel-header h2,
.dashboard-page .dashboard-list-header h2 {
  color: var(--text-heading);
  font-size: 15px;
  font-weight: var(--font-medium);
  line-height: 1.5;
}

.dashboard-page .overview-metrics > div {
  border-left-color: var(--border-divider);
}

.dashboard-page .overview-metrics dt,
.dashboard-page .status-card p,
.dashboard-page .overview-target-row > b,
.dashboard-page .dashboard-list-row-main span,
.dashboard-page .dashboard-list-empty,
.dashboard-page .dashboard-list-more {
  color: var(--text-body);
  font-size: 13px;
  font-weight: var(--font-regular);
}

.dashboard-page .overview-metrics dd,
.dashboard-page .overview-target-row strong,
.dashboard-page .status-card > strong,
.dashboard-page .status-card strong:not(small),
.dashboard-page .dashboard-list-row time {
  color: var(--text-strong);
  font-weight: var(--font-semibold);
  font-variant-numeric: tabular-nums;
}

.dashboard-page .overview-metrics dd small,
.dashboard-page .overview-target-row strong small,
.dashboard-page .status-card small,
.dashboard-page .overview-target-row > span:not(.overview-progress),
.dashboard-page .target-source,
.dashboard-page .dashboard-list-row-main small,
.dashboard-page .dashboard-list-row time + span,
.dashboard-page .dashboard-list-row-meta {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: var(--font-regular);
}

.dashboard-page .status-card + .status-card,
.dashboard-page .dashboard-list-row + .dashboard-list-row,
.dashboard-page .dashboard-panel-header,
.dashboard-page .dashboard-list-header {
  border-color: var(--border-divider);
}

.dashboard-page .section-icon,
.dashboard-page .status-card .section-icon,
.dashboard-page .status-icon {
  background: #f4f8fc;
  color: #1764a3;
}

.dashboard-page .status-card.is-warning .section-icon,
.dashboard-page .status-card.is-danger .section-icon {
  background: #fff6ed;
  color: #b54708;
}

.dashboard-page .next-action-kicker {
  color: #1764a3;
  font-size: 11px;
  font-weight: var(--font-medium);
  letter-spacing: 0.04em;
}

.dashboard-page .next-action-time {
  color: var(--text-strong);
  font-size: clamp(36px, 2.4vw, 38px);
  font-weight: var(--font-semibold);
  font-variant-numeric: tabular-nums;
}

.dashboard-page .next-action-copy > strong {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: var(--font-regular);
}

.dashboard-page .next-action-copy > b {
  color: var(--text-strong);
  font-size: 18px;
  font-weight: var(--font-medium);
}

.dashboard-page .next-action-copy > span,
.dashboard-page .next-action-copy > em {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: var(--font-regular);
}

.dashboard-page .next-action-confirm,
.dashboard-page .next-action-complete,
.dashboard-page .next-action-actions .button,
.dashboard-page .next-action-actions button {
  min-height: 40px;
  height: 40px;
  font-size: 14px;
  font-weight: var(--font-medium);
}

.dashboard-page .dashboard-list-row strong,
.dashboard-page .dashboard-list-row b {
  color: var(--text-heading);
  font-weight: var(--font-medium);
}

.dashboard-page .status-badge,
.dashboard-page .dashboard-list-badge {
  font-weight: var(--font-medium);
}

.side-navigation .sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
}

.side-navigation .sidebar-group {
  display: grid;
  gap: 4px;
  margin: 0;
}

.side-navigation .sidebar-group-label {
  margin: 0;
  padding: 0 12px;
  color: #98a2b3;
  font-size: 10px;
  font-weight: var(--font-medium);
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.side-navigation .sidebar-group-items {
  display: grid;
  gap: 1px;
}

.side-navigation .sidebar-link {
  min-height: 40px;
  padding: 0 12px;
  color: #536174;
  font-size: 14px;
  font-weight: var(--font-regular);
}

.side-navigation .sidebar-link.is-active {
  background: #eaf2fa;
  color: #1764a3;
  font-weight: var(--font-medium);
}

.side-navigation .sidebar-link .sidebar-icon {
  color: currentColor;
}

@media (max-width: 860px) {
  .side-navigation .sidebar-nav,
  .side-navigation .sidebar-group-items {
    display: flex;
    flex-direction: row;
  }

  .side-navigation .sidebar-nav {
    gap: 2px;
    margin-top: 0;
  }

  .side-navigation .sidebar-group {
    display: contents;
  }

  .side-navigation .sidebar-group-label {
    display: none;
  }

  .side-navigation .sidebar-link {
    min-height: 40px;
    padding: 0 8px;
  }
}
.inquiry-import-page{max-width:1120px;margin:0 auto}.inquiry-import-panel{background:#fff;border:1px solid var(--line);border-radius:14px;padding:24px}.inquiry-import-card{display:grid;gap:20px}.inquiry-import-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.inquiry-import-heading h2{margin:0 0 6px;font-size:20px}.inquiry-import-heading p{margin:0;color:var(--muted)}.inquiry-import-heading>span{padding:5px 10px;border-radius:999px;background:#eef6ff;color:#1769aa;font-size:12px;font-weight:700}.inquiry-import-file{display:grid;gap:8px;font-weight:700}.inquiry-import-file input{padding:14px;border:1px dashed #adc7df;border-radius:10px;background:#f8fbfe}.inquiry-import-preview{display:grid;grid-template-columns:1.6fr repeat(3,1fr);border:1px solid var(--line);border-radius:12px;overflow:hidden}.inquiry-import-preview>div{display:grid;gap:5px;padding:18px;border-left:1px solid var(--line)}.inquiry-import-preview>div:first-child{border-left:0}.inquiry-import-preview span,.inquiry-import-preview small{color:var(--muted);font-size:13px}.inquiry-import-preview strong{font-size:19px}.inquiry-import-preview>p{grid-column:1/-1;margin:0;padding:22px;color:var(--muted);text-align:center}.inquiry-import-actions{display:flex;align-items:center;justify-content:space-between;gap:16px}.inquiry-import-message{margin:0;color:var(--muted)}.inquiry-import-message.is-success{color:#18763b}.inquiry-import-message.is-error{color:#b42318}.inquiry-import-note{margin:0;padding-top:16px;border-top:1px solid var(--line);color:var(--muted);font-size:13px}@media(max-width:760px){.inquiry-import-panel{padding:16px}.inquiry-import-preview{grid-template-columns:1fr 1fr}.inquiry-import-preview>div{border-top:1px solid var(--line)}.inquiry-import-preview>div:nth-child(odd){border-left:0}.inquiry-import-actions{align-items:stretch;flex-direction:column}.inquiry-import-actions button{width:100%}}

/* Dashboard mobile layout.
   The dashboard stays information-dense without turning every item into a tall card. */
@media (max-width: 600px) {
  .dashboard-page {
    overflow-x: hidden;
    background: #f5f7f9;
  }

  .dashboard-page .app-shell {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .dashboard-page .site-header {
    min-height: 56px;
    padding: 8px 12px;
  }

  .dashboard-page .console-search,
  .dashboard-page .today,
  .dashboard-page .admin-link {
    display: none;
  }

  .dashboard-page .header-actions {
    margin-left: auto;
  }

  .dashboard-page .staff-button {
    min-height: 38px;
    padding: 4px;
  }

  .dashboard-page .page-content {
    width: 100%;
    max-width: none;
    padding: 16px 12px 24px;
  }

  .dashboard-page .intro {
    margin-bottom: 12px;
  }

  .dashboard-page .eyebrow {
    margin-bottom: 2px;
    font-size: 11px;
  }

  .dashboard-page .intro h1 {
    margin: 0;
    font-size: clamp(20px, 6vw, 24px);
    line-height: 1.35;
  }

  .dashboard-page .dashboard-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin: 0 0 10px;
  }

  .dashboard-page .dashboard-overview .overview-card {
    min-width: 0;
    padding: 14px;
    border-radius: 10px;
  }

  .dashboard-page .overview-heading,
  .dashboard-page .overview-heading-row {
    margin-bottom: 10px;
  }

  .dashboard-page .overview-heading {
    font-size: 14px;
  }

  .dashboard-page .overview-content {
    min-height: 0;
  }

  .dashboard-page .overview-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 8px;
  }

  .dashboard-page .overview-metrics > div,
  .dashboard-page .overview-metrics > div:nth-child(n) {
    min-width: 0;
    padding: 0 8px;
    border-left: 1px solid var(--border-divider);
  }

  .dashboard-page .overview-metrics > div:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .dashboard-page .overview-metrics > div:last-child {
    padding-right: 0;
  }

  .dashboard-page .overview-metrics dt {
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dashboard-page .overview-metrics dd {
    margin-top: 4px;
    font-size: clamp(20px, 7vw, 27px);
  }

  .dashboard-page .overview-metrics dd small {
    display: inline;
    margin-left: 1px;
    font-size: 9px;
  }

  .dashboard-page .overview-target {
    gap: 14px;
    margin-top: 8px;
  }

  .dashboard-page .overview-target-row {
    gap: 5px 8px;
  }

  .dashboard-page .overview-target-row > b {
    font-size: 12px;
  }

  .dashboard-page .overview-target-row b strong {
    margin-left: 5px;
    font-size: 21px;
  }

  .dashboard-page .overview-target-row > span:not(.overview-progress) {
    font-size: 10px;
    text-align: right;
  }

  .dashboard-page .sales-target-heading {
    margin-bottom: 7px;
  }

  .dashboard-page .sales-target-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .dashboard-page .sales-target-row {
    padding: 8px;
  }

  .dashboard-page .sales-target-row b {
    font-size: 10px;
  }

  .dashboard-page .sales-target-row strong {
    font-size: 14px;
  }

  .dashboard-page .next-action-section {
    margin: 0 0 10px;
    padding: 14px;
    border-radius: 10px;
  }

  .dashboard-page .next-action-kicker {
    margin-bottom: 8px;
    font-size: 10px;
  }

  .dashboard-page .next-action-layout {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 12px;
    align-items: start;
  }

  .dashboard-page .next-action-time {
    padding: 0 12px 0 0;
    border-right: 1px solid var(--border-divider);
    font-size: 29px;
    line-height: 1.15;
  }

  .dashboard-page .next-action-copy {
    min-width: 0;
  }

  .dashboard-page .next-action-copy > strong {
    font-size: 10px;
  }

  .dashboard-page .next-action-copy > b {
    overflow-wrap: anywhere;
    font-size: 15px;
    line-height: 1.4;
  }

  .dashboard-page .next-action-copy > span,
  .dashboard-page .next-action-copy > em {
    font-size: 11px;
  }

  .dashboard-page .next-action-actions {
    grid-column: 1 / -1;
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
  }

  .dashboard-page .next-action-confirm,
  .dashboard-page .next-action-complete {
    width: 100%;
    min-height: 42px;
    height: 42px;
    justify-content: center;
    padding: 0 10px;
    font-size: 13px;
  }

  .dashboard-page .dashboard-attention-section {
    margin-top: 0;
  }

  .dashboard-page .dashboard-panel {
    overflow: hidden;
    border-radius: 10px;
  }

  .dashboard-page .dashboard-attention-section .dashboard-panel-header {
    min-height: 0;
    padding: 12px 14px;
  }

  .dashboard-page .dashboard-panel-header h2 {
    font-size: 15px;
  }

  .dashboard-page .dashboard-attention-section .dashboard-panel-header p {
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.45;
  }

  .dashboard-page .operations-alert-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
  }

  .dashboard-page .operation-alert-card {
    grid-column: auto;
    min-height: 150px;
    padding: 11px;
  }

  .dashboard-page .operation-alert-card h3 {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.4;
  }

  .dashboard-page .operation-alert-card .status-icon {
    width: 26px;
    height: 26px;
  }

  .dashboard-page .operation-card-state {
    gap: 3px;
    margin-top: 8px;
  }

  .dashboard-page .operation-card-state > strong {
    font-size: 16px;
  }

  .dashboard-page .operation-card-state > p,
  .dashboard-page .operation-card-loading {
    font-size: 9px;
    line-height: 1.45;
  }

  .dashboard-page .operation-card-link {
    padding-top: 9px;
    font-size: 10px;
  }

  .dashboard-page .operation-proposal-card {
    grid-column: 1 / -1;
    min-height: 0;
    padding: 12px;
  }

  .dashboard-page .operation-proposal-heading p {
    font-size: 10px;
  }

  .dashboard-page .operation-proposal-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 10px;
  }

  .dashboard-page .operation-proposal-list li {
    align-items: flex-start;
    padding: 7px;
    font-size: 9px;
  }

  .dashboard-page .side-navigation {
    height: calc(66px + env(safe-area-inset-bottom));
    padding: 5px 4px env(safe-area-inset-bottom);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .dashboard-page .side-navigation::-webkit-scrollbar {
    display: none;
  }

  .dashboard-page .side-navigation .sidebar-nav {
    display: flex;
    width: max-content;
    min-width: 100%;
    gap: 2px;
  }

  .dashboard-page .side-navigation .sidebar-link {
    width: 64px;
    min-width: 64px;
    min-height: 54px;
    padding: 4px 2px;
    font-size: 9px;
    line-height: 1.15;
  }
}

@media (max-width: 360px) {
  .dashboard-page .page-content {
    padding-right: 10px;
    padding-left: 10px;
  }

  .dashboard-page .overview-metrics > div,
  .dashboard-page .overview-metrics > div:nth-child(n) {
    padding-right: 5px;
    padding-left: 5px;
  }

  .dashboard-page .overview-metrics dd {
    font-size: 20px;
  }

  .dashboard-page .operations-alert-list {
    grid-template-columns: 1fr;
  }

  .dashboard-page .operation-proposal-card {
    grid-column: 1;
  }
}

/* Shared mobile working surfaces and navigation. */
.mobile-bottom-navigation,
.mobile-menu-sheet,
.mobile-menu-overlay {
  display: none;
}

@media (max-width: 700px) {
  body {
    overflow-x: hidden;
    background: #f5f7f9;
  }

  body.mobile-menu-open {
    overflow: hidden;
  }

  body:not(.dashboard-page) .app-shell {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  body:not(.dashboard-page) .site-header {
    min-height: 56px;
    padding: 8px 12px;
  }

  body:not(.dashboard-page) .console-search,
  body:not(.dashboard-page) .context-operation-guide,
  body:not(.dashboard-page) .site-header .today,
  body:not(.dashboard-page) .site-header .admin-link {
    display: none;
  }

  body:not(.dashboard-page) .header-actions {
    margin-left: auto;
  }

  body:not(.dashboard-page) .staff-button {
    min-height: 38px;
    padding: 4px;
  }

  body:not(.dashboard-page) .staff-button > span:last-child {
    display: none;
  }

  body:not(.dashboard-page) .page-content,
  .inventory-refills-page,
  .tool-view-page {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding: 16px 12px 24px;
  }

  .work-intro,
  .therapist-intro,
  .sales-targets-intro,
  .inventory-refills-heading,
  .staff-account-head,
  .payment-cycle-form-heading,
  .payment-cycle-list-heading,
  .tool-view-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
  }

  .work-intro h1,
  .tool-view-heading h1,
  .inventory-refills-heading h1,
  .assistant-intro h1,
  .sales-targets-intro h1 {
    font-size: 22px;
    line-height: 1.35;
  }

  .work-intro > div > p:last-child,
  .tool-view-heading p,
  .inventory-refills-heading p,
  .sales-targets-intro > div > p:last-child {
    font-size: 12px;
    line-height: 1.55;
  }

  .work-intro > button,
  .work-intro > a,
  .therapist-intro > button,
  .inventory-refills-heading > a,
  .tool-external-link {
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
    justify-content: center;
  }

  input:not([type='checkbox']):not([type='radio']),
  select,
  textarea {
    max-width: 100%;
    box-sizing: border-box;
    font-size: 16px !important;
  }

  button,
  .task-primary,
  .task-secondary,
  .primary-action {
    min-height: 42px;
  }

  .breadcrumbs {
    gap: 5px;
    margin-bottom: 11px;
    overflow: hidden;
    font-size: 10px;
    white-space: nowrap;
  }

  .breadcrumbs > * {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .task-overview,
  .therapist-summary-grid,
  .ai-metrics {
    gap: 0;
    border-radius: 9px;
  }

  .task-board,
  .handoff-layout,
  .room-layout,
  .account-layout,
  .manual-main,
  .manual-detail-layout,
  .therapist-detail-grid,
  .application-import,
  .application-workflow,
  .feedback-form,
  .sales-targets-summary,
  .sales-room-target-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .handoff-form-section,
  .room-template > .room-form-grid,
  .room-detail-section,
  .account-template > .account-form-grid,
  .account-detail-section,
  .manual-search-panel,
  .manual-results,
  .assistant-thread,
  .assistant-composer,
  .feedback-form,
  .sales-targets-panel,
  .sales-targets-control-panel,
  .sales-cti-import-panel,
  .payment-cycle-form,
  .payment-cycle-records {
    padding: 14px;
  }

  .handoff-grid,
  .room-form-grid,
  .room-display-grid,
  .account-form-grid,
  .manual-dialog-grid,
  .dialog-grid,
  .therapist-form-grid,
  .procedure-check-list,
  .payment-cycle-fields,
  .sales-cti-import-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .manual-filter-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .manual-filter-bar label {
    min-width: 0;
  }

  .manual-result-card,
  .assistant-response,
  .feedback-panel-heading,
  .feedback-list,
  .ai-candidates {
    padding-right: 14px;
    padding-left: 14px;
  }

  .manual-article-aside {
    grid-template-columns: minmax(0, 1fr);
  }

  .therapist-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 10px 0;
    overflow: hidden;
    border: 1px solid var(--border-card, #e4e8ee);
    background: #fff;
  }

  .therapist-summary-card {
    min-height: 66px;
    padding: 10px 5px;
    border: 0;
    border-left: 1px solid var(--border-divider, #edf0f3);
    border-radius: 0;
    text-align: center;
  }

  .therapist-summary-card:first-child {
    border-left: 0;
  }

  .therapist-summary-card span {
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .therapist-summary-card strong {
    margin-top: 4px;
    font-size: 20px;
  }

  .therapist-summary-card small {
    font-size: 9px;
  }

  .therapist-list-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
  }

  .therapist-search {
    grid-column: 1 / -1;
  }

  .therapist-row:not(.therapist-row-head) {
    gap: 10px 4px;
    padding: 13px 9px;
  }

  .therapist-dialog,
  .task-dialog,
  .room-dialog,
  .manual-dialog,
  .portal-auth-dialog {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border-radius: 0;
  }

  .task-dialog form,
  .room-dialog form,
  .manual-dialog form,
  .portal-auth-form {
    padding: 16px;
  }

  .therapist-modal .modal-head,
  .therapist-modal .detail-body,
  .therapist-modal .modal-actions {
    padding-right: 14px;
    padding-left: 14px;
  }

  .therapist-modal .modal-actions,
  .dialog-actions,
  .drawer-actions,
  .payment-cycle-form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .therapist-modal .modal-actions > *,
  .dialog-actions > *,
  .drawer-actions > *,
  .payment-cycle-form-actions > button {
    width: 100%;
  }

  .application-workflow > div {
    grid-template-rows: auto auto auto;
  }

  .application-workflow textarea,
  .interview-sheet-workflow textarea {
    height: 220px;
    min-height: 220px;
  }

  .inventory-refills-toolbar,
  .sales-targets-control-panel,
  .sales-targets-panel-header,
  .sales-targets-basis-note,
  .sales-cti-import-panel > header {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .inventory-refills-toolbar,
  .inventory-refills-list {
    padding: 10px;
  }

  .inventory-refills-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .inventory-refills-filter {
    width: 100%;
  }

  .inventory-refills-item {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
    padding: 10px;
  }

  .payment-cycle-form-heading,
  .payment-cycle-list-heading {
    display: flex;
  }

  .payment-cycle-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .payment-cycle-payee,
  .payment-cycle-row-actions {
    grid-column: 1 / -1;
  }

  .payment-cycle-row-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .payment-cycle-row-actions button {
    width: 100%;
  }

  .sales-weekday-selector {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    width: 100%;
    gap: 4px;
  }

  .sales-weekday-button {
    width: 100%;
  }

  .sales-targets-summary {
    gap: 8px;
  }

  .sales-targets-summary article,
  .sales-room-target-card {
    padding: 13px;
  }

  .sales-weekly-table-wrap {
    margin-right: -14px;
    margin-left: -14px;
    padding: 0 14px 6px;
    overscroll-behavior-x: contain;
  }

  .tool-view-heading {
    display: flex;
  }

  .tool-view-heading .tool-external-link {
    display: none;
  }

  .tool-frame-wrap,
  .tool-frame-wrap iframe {
    min-height: calc(100dvh - 190px);
    border-radius: 8px;
  }

  .mobile-bottom-navigation {
    position: fixed;
    z-index: 70;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    height: calc(64px + env(safe-area-inset-bottom));
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 4px 4px env(safe-area-inset-bottom);
    border-top: 1px solid #dfe5ec;
    background: rgba(255,255,255,.98);
    box-shadow: 0 -6px 18px rgba(27,43,65,.07);
  }

  .mobile-navigation-link {
    display: flex;
    min-width: 0;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    padding: 3px 1px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #667085;
    font: inherit;
    text-decoration: none;
  }

  .mobile-navigation-link > span {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    font-size: 16px;
    font-weight: 700;
  }

  .mobile-navigation-link svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
  }

  .mobile-navigation-link small {
    overflow: hidden;
    max-width: 100%;
    font-size: 9px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-navigation-link.is-active {
    background: #eaf2fa;
    color: #1764a3;
  }

  .mobile-menu-overlay {
    position: fixed;
    z-index: 78;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(20,31,45,.32);
  }

  .mobile-menu-overlay[hidden],
  .mobile-menu-sheet[hidden] {
    display: none;
  }

  .mobile-menu-sheet {
    position: fixed;
    z-index: 79;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    max-height: min(82dvh, 720px);
    overflow-y: auto;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
    background: #fff;
    box-shadow: 0 -16px 40px rgba(25,39,57,.18);
  }

  .mobile-menu-sheet > header {
    position: sticky;
    z-index: 1;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 16px 12px;
    border-bottom: 1px solid #edf0f3;
    background: #fff;
  }

  .mobile-menu-sheet header p,
  .mobile-menu-sheet header h2 {
    margin: 0;
  }

  .mobile-menu-sheet header p {
    color: #8a94a3;
    font-size: 10px;
  }

  .mobile-menu-sheet header h2 {
    margin-top: 2px;
    color: #172033;
    font-size: 19px;
  }

  .mobile-menu-sheet header button {
    display: grid;
    width: 40px;
    height: 40px;
    min-height: 40px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #f2f4f6;
    color: #526176;
    font-size: 24px;
  }

  .mobile-menu-groups {
    display: grid;
    gap: 17px;
    padding: 14px 16px;
  }

  .mobile-menu-groups h3 {
    margin: 0 0 7px;
    color: #8a94a3;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
  }

  .mobile-menu-groups section > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .mobile-navigation-link.is-sheet-link {
    min-height: 70px;
    padding: 8px 5px;
    border: 1px solid #e4e8ee;
    background: #fff;
  }

  .side-navigation > .sidebar-nav,
  .side-navigation > .sidebar-brand,
  .side-navigation > .sidebar-bottom {
    display: none !important;
  }

  .side-navigation {
    pointer-events: none;
    width: 0;
    height: 0;
    padding: 0;
    border: 0;
    overflow: visible;
  }

  .side-navigation .mobile-bottom-navigation {
    pointer-events: auto;
  }
}

@media (max-width: 380px) {
  .mobile-menu-groups section > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manual-filter-bar,
  .inventory-refills-filters {
    grid-template-columns: minmax(0, 1fr);
  }

  .therapist-summary-card span {
    font-size: 8px;
  }
}

/* Inventory refills: room-first cards and compact mobile controls. */
.inventory-refills-manage-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
}

.inventory-refills-counts > strong,
.inventory-refills-counts > span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.inventory-refills-counts > strong {
  background: #edf5fc;
  color: #1764a3;
}

.inventory-refills-counts > span {
  background: #fff0ee;
  color: #b42318;
}

label.inventory-refills-search {
  display: grid;
  height: auto;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #667085;
  font-size: 10px;
}

label.inventory-refills-search input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font: inherit;
  font-size: 13px;
}

label.inventory-refills-search input:focus {
  border-color: #2b6fae;
  outline: 3px solid rgba(43,111,174,.12);
}

.inventory-refills-filters button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #fff;
  color: #526176;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.inventory-refills-filters button:hover,
.inventory-refills-filters button.is-active {
  border-color: #b9d5ee;
  background: #eaf2fa;
  color: #1764a3;
}

.inventory-refill-room {
  overflow: hidden;
  border: 1px solid #e1e6ed;
  border-radius: 10px;
  background: #fff;
}

.inventory-refill-room > header {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid #edf0f3;
  background: #f8fafc;
}

.inventory-refill-room > header h2 {
  overflow: hidden;
  margin: 0;
  color: #344054;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-refill-room > header span {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: #edf1f5;
  color: #667085;
  font-size: 10px;
  font-weight: 600;
}

.inventory-refill-room ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.inventory-refill-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 66px;
  padding: 11px 13px;
}

.inventory-refill-item + .inventory-refill-item {
  border-top: 1px solid #edf0f3;
}

.inventory-refill-state {
  display: inline-flex;
  min-width: 47px;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.inventory-refill-item.is-urgent .inventory-refill-state {
  background: #fff0ee;
  color: #b42318;
}

.inventory-refill-item.is-low .inventory-refill-state {
  background: #fff6df;
  color: #9a6700;
}

.inventory-refill-item > div {
  min-width: 0;
}

.inventory-refill-item strong {
  display: block;
  overflow: hidden;
  color: #253247;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-refill-item p {
  margin: 3px 0 0;
  color: #667085;
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.inventory-refill-item > a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 4px;
  padding: 0 9px;
  border: 1px solid #c8d9e8;
  border-radius: 7px;
  background: #fff;
  color: #1764a3;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.inventory-refills-empty {
  display: grid;
  min-height: 170px;
  place-content: center;
  justify-items: center;
  gap: 8px;
}

.inventory-refills-empty strong {
  color: #344054;
  font-size: 14px;
}

.inventory-refills-empty span {
  color: #667085;
  font-size: 11px;
}

@media (max-width: 700px) {
  .inventory-refills-page {
    padding: 14px 10px 22px;
  }

  .inventory-refills-heading {
    gap: 9px;
    margin-bottom: 12px;
    padding: 0 2px;
  }

  .inventory-refills-heading .page-kicker {
    font-size: 10px;
  }

  .inventory-refills-heading h1 {
    margin: 0 0 3px;
    font-size: 21px;
  }

  .inventory-refills-heading p:not(.page-kicker) {
    font-size: 11px;
  }

  .inventory-refills-manage-link {
    min-height: 40px;
    border-color: #c8d9e8;
    background: #fff;
    color: #1764a3;
    font-size: 12px;
  }

  .inventory-refills-panel {
    border: 0;
    background: transparent;
  }

  .inventory-refills-toolbar {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e1e6ed;
    border-radius: 10px;
    background: #fff;
  }

  .inventory-refills-counts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .inventory-refills-counts > strong,
  .inventory-refills-counts > span {
    min-height: 38px;
    justify-content: center;
    border-radius: 8px;
    font-size: 11px;
  }

  .inventory-refills-counts > strong:only-child {
    grid-column: 1 / -1;
  }

  label.inventory-refills-search input {
    min-height: 44px;
    font-size: 16px;
  }

  .inventory-refills-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .inventory-refills-filters button {
    width: 100%;
    min-height: 40px;
    padding: 0 5px;
  }

  .inventory-refills-status {
    margin: 8px 2px 0;
    padding: 0;
    font-size: 10px;
    line-height: 1.5;
  }

  .inventory-refills-list {
    gap: 10px;
    padding: 10px 0 0;
  }

  .inventory-refill-room > header {
    min-height: 43px;
    padding: 0 12px;
  }

  .inventory-refill-item {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 7px 9px;
    align-items: start;
    min-height: 0;
    padding: 11px 12px;
  }

  .inventory-refill-state {
    grid-column: 1;
    grid-row: 1;
    margin-top: 1px;
  }

  .inventory-refill-item > div {
    grid-column: 2;
    grid-row: 1;
  }

  .inventory-refill-item strong {
    font-size: 14px;
  }

  .inventory-refill-item p {
    font-size: 11px;
  }

  .inventory-refill-item > a {
    grid-column: 1 / -1;
    min-height: 38px;
    justify-content: center;
    margin-top: 2px;
    background: #f8fbfe;
  }

  .inventory-refill-item.is-urgent {
    box-shadow: inset 3px 0 #d92d20;
  }

  .inventory-refill-item.is-low {
    box-shadow: inset 3px 0 #d39b16;
  }
}

/* スマホダッシュボード: 移動中でも迷わず押せる業務端末型の入口。 */
.mobile-dashboard-launcher { display: none; }

@media (max-width: 700px) {
  .dashboard-page .site-header {
    display: flex;
    min-height: 58px;
    justify-content: space-between;
    padding: 8px 14px;
  }

  .dashboard-page .site-header::before {
    color: #171313;
    content: "ＣＬＩＰＰＥＲ";
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .035em;
  }

  .dashboard-page .console-tools,
  .dashboard-page .notice-button { display: none; }

  .dashboard-page .site-header .header-actions { margin-left: auto; }

  .dashboard-page .page-content {
    display: flex;
    padding: 16px 12px 102px;
    flex-direction: column;
  }

  .dashboard-page .intro {
    order: 0;
    margin: 0 2px 14px;
  }

  .dashboard-page .intro .eyebrow {
    margin-bottom: 3px;
    color: #8c7c76;
    font-size: 10px;
  }

  .dashboard-page .intro h1 {
    margin: 0;
    font-size: 20px;
    line-height: 1.35;
  }

  .mobile-dashboard-launcher {
    display: grid;
    order: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 14px;
  }

  .mobile-dashboard-launcher > a {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 126px;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px;
    color: #171313;
    border: 1px solid #eaded9;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(82, 48, 36, .055);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-dashboard-launcher > a:active {
    background: #fff5f1;
    transform: scale(.985);
  }

  .mobile-dashboard-launcher > a:nth-child(1),
  .mobile-dashboard-launcher > a:nth-child(4) {
    background: linear-gradient(145deg, #fff 42%, #fff2ed 100%);
  }

  .mobile-dashboard-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #fff;
    border-radius: 13px;
    background: var(--cliper-gradient);
    box-shadow: 0 7px 15px rgba(255, 118, 95, .18);
    font-size: 14px;
    font-weight: 900;
  }

  .mobile-dashboard-launcher strong,
  .mobile-dashboard-launcher small { display: block; }

  .mobile-dashboard-launcher strong {
    overflow: hidden;
    font-size: 15px;
    font-weight: 850;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-dashboard-launcher small {
    margin-top: 3px;
    color: #82736e;
    font-size: 10px;
    line-height: 1.35;
  }

  .mobile-dashboard-launcher b {
    position: absolute;
    top: 13px;
    right: 13px;
    color: #d35a67;
    font-size: 23px;
    font-weight: 400;
    line-height: 1;
  }

  .dashboard-page .dashboard-attention-section {
    order: 2;
    margin: 0 0 14px;
  }

  .dashboard-page .dashboard-attention-section .dashboard-panel {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .dashboard-page .dashboard-attention-section .dashboard-panel-header {
    min-height: 0;
    padding: 4px 2px 10px;
    border: 0;
  }

  .dashboard-page .dashboard-panel-header h2 {
    color: #171313;
    font-size: 17px;
    font-weight: 850;
  }

  .dashboard-page .dashboard-attention-section .dashboard-panel-header p {
    margin-top: 3px;
    color: #83746f;
    font-size: 10px;
  }

  .dashboard-page .operations-alert-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 0;
    background: transparent;
  }

  .dashboard-page .operation-alert-card {
    min-height: 164px;
    padding: 14px;
    border-color: #eaded9;
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(82, 48, 36, .05);
  }

  .dashboard-page .operation-alert-card h3 {
    margin-top: 11px;
    font-size: 14px;
    font-weight: 850;
  }

  .dashboard-page .operation-alert-card .status-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .dashboard-page .operation-card-state > strong { font-size: 21px; font-weight: 850; }
  .dashboard-page .operation-card-state > p,
  .dashboard-page .operation-card-loading { font-size: 10px; }

  .dashboard-page .operation-card-link {
    width: 100%;
    min-height: 34px;
    justify-content: space-between;
    margin-top: auto;
    padding: 7px 10px;
    color: #ce5260;
    border-radius: 10px;
    background: #fff2ee;
    font-size: 10px;
    font-weight: 800;
  }

  .dashboard-page .operation-proposal-card { display: none; }

  .dashboard-page .dashboard-overview {
    display: grid;
    order: 3;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-bottom: 14px;
  }

  .dashboard-page .dashboard-overview .overview-card {
    min-height: 0;
    padding: 14px;
    border-radius: 16px;
    box-shadow: none;
  }

  .dashboard-page .dashboard-overview .sales-target-card { display: none; }
  .dashboard-page .overview-heading { font-size: 13px; font-weight: 800; }
  .dashboard-page .overview-metrics { margin-top: 12px; gap: 12px 0; }
  .dashboard-page .overview-metrics dd { font-size: 23px; }
  .dashboard-page .overview-target { margin-top: 13px; gap: 12px; }

  .dashboard-page .next-action-section {
    position: relative;
    order: 4;
    margin: 0;
    padding: 38px 13px 13px;
    border: 1px dashed #e0d3ce;
    border-radius: 14px;
    background: #faf6f4;
    box-shadow: none;
  }

  .dashboard-page .next-action-section::before {
    position: absolute;
    top: 11px;
    left: 13px;
    padding: 3px 8px;
    color: #7f716c;
    border-radius: 999px;
    background: #eee7e4;
    content: "PCで対応";
    font-size: 9px;
    font-weight: 800;
  }

  .dashboard-page .next-action-kicker { display: none; }
  .dashboard-page .next-action-layout { display: block; }
  .dashboard-page .next-action-time { display: none; }
  .dashboard-page .next-action-copy strong { display: none; }
  .dashboard-page .next-action-copy b { color: #5f5551; font-size: 12px; font-weight: 700; }
  .dashboard-page .next-action-copy span,
  .dashboard-page .next-action-copy em { font-size: 9px; }
  .dashboard-page .next-action-actions { display: none; }
}

@media (max-width: 360px) {
  .mobile-dashboard-launcher,
  .dashboard-page .operations-alert-list { gap: 7px; }

  .mobile-dashboard-launcher > a { min-height: 118px; padding: 12px; }
  .mobile-dashboard-launcher strong { font-size: 14px; }
  .dashboard-page .operation-alert-card { min-height: 158px; padding: 12px; }
}

/* スマホダッシュボード: 情報の主張を抑え、緊急度の差が見える密度へ調整。 */
@media (max-width: 700px) {
  .dashboard-page .page-content { padding-top: 13px; }

  .dashboard-page .intro { margin-bottom: 11px; }
  .dashboard-page .intro h1 { font-size: 18px; font-weight: 700; }

  .mobile-dashboard-launcher {
    gap: 7px;
    margin-bottom: 12px;
  }

  .mobile-dashboard-launcher > a {
    min-height: 102px;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px;
    border-color: #eee7e3;
    border-radius: 14px;
    background: #fff !important;
    box-shadow: none;
  }

  .mobile-dashboard-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: #fff0ed;
    box-shadow: none;
    color: #d65a66;
    font-size: 11px;
    font-weight: 750;
  }

  .mobile-dashboard-launcher strong {
    font-size: 13px;
    font-weight: 700;
  }

  .mobile-dashboard-launcher small { color: #958781; font-size: 9px; }
  .mobile-dashboard-launcher b { top: 11px; right: 11px; color: #c8bbb6; font-size: 19px; }

  .dashboard-page .dashboard-attention-section .dashboard-panel-header {
    padding-bottom: 8px;
  }

  .dashboard-page .dashboard-panel-header h2 { font-size: 15px; font-weight: 700; }

  .dashboard-page .operations-alert-list { gap: 7px; }

  .dashboard-page .operation-alert-card {
    min-height: 138px;
    padding: 11px;
    border-color: #eee7e3;
    border-radius: 14px;
    box-shadow: none;
  }

  .dashboard-page .operation-alert-card h3 {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
  }

  .dashboard-page .operation-alert-card .status-icon {
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }

  .dashboard-page .operation-card-badge {
    padding: 2px 6px;
    font-size: 8px;
    font-weight: 650;
  }

  .dashboard-page .operation-card-state { margin-top: 7px; }
  .dashboard-page .operation-card-state > strong { font-size: 17px; font-weight: 700; }
  .dashboard-page .operation-card-state > p,
  .dashboard-page .operation-card-loading { color: #8b7e79; font-size: 9px; }

  .dashboard-page .operation-card-link {
    min-height: 28px;
    padding: 5px 8px;
    color: #8a6c68;
    background: #faf5f3;
    font-size: 9px;
    font-weight: 650;
  }

  .dashboard-page .operation-alert-card:has(.operation-card-badge.is-urgent) {
    border-color: #f0c9c5;
    background: #fffdfc;
  }

  .dashboard-page .operation-alert-card:has(.operation-card-badge.is-urgent) .operation-card-link {
    color: #c9515d;
    background: #fff0ed;
  }

  .dashboard-page .dashboard-overview .overview-card {
    padding: 12px;
    border-radius: 13px;
  }

  .dashboard-page .overview-heading { font-size: 12px; font-weight: 650; }
  .dashboard-page .overview-metrics dd { font-size: 20px; font-weight: 700; }

  .dashboard-page .next-action-section {
    padding-top: 35px;
    border-radius: 12px;
    background: #faf8f7;
  }

  .dashboard-page .next-action-copy b { font-weight: 600; }
}

@media (max-width: 360px) {
  .mobile-dashboard-launcher > a { min-height: 98px; padding: 10px; }
  .dashboard-page .operation-alert-card { min-height: 134px; padding: 10px; }
}

/* スマホダッシュボード: 同寸カードと無彩色＋青緑の業務端末テーマ。 */
@media (max-width: 700px) {
  .dashboard-page {
    --mobile-accent: #315f5b;
    --mobile-accent-soft: #eaf0ee;
    --mobile-border: #dfe4e2;
    --mobile-canvas: #f3f5f4;
    background: var(--mobile-canvas);
  }

  .dashboard-page .site-header {
    border-bottom-color: var(--mobile-border);
    background: rgba(255, 255, 255, .96);
    box-shadow: none;
  }

  .dashboard-page .site-header::before { color: #202725; }
  .dashboard-page .site-header .avatar { background: var(--mobile-accent); box-shadow: none; }
  .dashboard-page .page-content { background: var(--mobile-canvas); }

  .mobile-dashboard-launcher,
  .dashboard-page .operations-alert-list {
    grid-auto-rows: 132px;
  }

  .mobile-dashboard-launcher > a,
  .dashboard-page .operation-alert-card {
    width: 100%;
    height: 132px;
    min-height: 132px;
    max-height: 132px;
    box-sizing: border-box;
    border: 1px solid var(--mobile-border);
    border-radius: 12px;
    background: #fff !important;
    box-shadow: none;
  }

  .mobile-dashboard-launcher > a {
    gap: 0;
    justify-content: space-between;
    padding: 11px 12px;
  }

  .mobile-dashboard-icon {
    width: 29px;
    height: 29px;
    color: var(--mobile-accent);
    border-radius: 8px;
    background: var(--mobile-accent-soft);
  }

  .mobile-dashboard-launcher strong { color: #202725; font-weight: 700; }
  .mobile-dashboard-launcher small { color: #7c8783; }
  .mobile-dashboard-launcher b { color: #a9b1ae; }

  .dashboard-page .dashboard-panel-header h2 { color: #202725; }
  .dashboard-page .dashboard-attention-section .dashboard-panel-header p { color: #7c8783; }

  .dashboard-page .operation-alert-card {
    overflow: hidden;
    padding: 10px 11px;
  }

  .dashboard-page .operation-alert-card .status-icon {
    color: var(--mobile-accent) !important;
    background: var(--mobile-accent-soft) !important;
  }

  .dashboard-page .operation-alert-card h3 {
    overflow: hidden;
    margin-top: 7px;
    color: #202725;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dashboard-page .operation-card-state {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 5px;
    margin-top: 5px;
  }

  .dashboard-page .operation-card-state > strong {
    flex: 0 0 auto;
    color: #35413e;
    font-size: 16px;
  }

  .dashboard-page .operation-card-state > p,
  .dashboard-page .operation-card-loading {
    overflow: hidden;
    min-width: 0;
    color: #7c8783;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dashboard-page .operation-card-link {
    width: auto;
    min-height: 0;
    align-self: flex-start;
    justify-content: flex-start;
    gap: 5px;
    margin-top: auto;
    padding: 4px 0 0;
    color: var(--mobile-accent);
    border: 0;
    border-radius: 0;
    background: transparent !important;
    font-weight: 700;
  }

  .dashboard-page .operation-card-badge {
    color: #64706c;
    background: #eef1f0;
  }

  .dashboard-page .operation-card-badge.is-urgent {
    color: #8f4742;
    background: #f7ecea;
  }

  .dashboard-page .operation-alert-card:has(.operation-card-badge.is-urgent) {
    border-color: var(--mobile-border);
    border-left: 3px solid #a7524c;
    background: #fff !important;
  }

  .dashboard-page .operation-alert-card:has(.operation-card-badge.is-urgent) .status-icon {
    color: #8f4742 !important;
    background: #f7ecea !important;
  }

  .dashboard-page .operation-alert-card:has(.operation-card-badge.is-urgent) .operation-card-link {
    color: #8f4742;
    background: transparent !important;
  }

  .dashboard-page .dashboard-overview .overview-card {
    border-color: var(--mobile-border);
    background: #fff;
  }

  .dashboard-page .next-action-section {
    border-color: #cfd6d3;
    background: #eef1f0;
  }

  .dashboard-page .next-action-section::before {
    color: #61706b;
    background: #dfe5e2;
  }

  .dashboard-page .mobile-bottom-navigation {
    border-color: var(--mobile-border);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 8px 24px rgba(29, 48, 43, .12);
  }

  .dashboard-page .mobile-navigation-link { color: #75807c; }
  .dashboard-page .mobile-navigation-link.is-active {
    color: var(--mobile-accent);
    background: var(--mobile-accent-soft);
  }
}

@media (max-width: 360px) {
  .mobile-dashboard-launcher,
  .dashboard-page .operations-alert-list { grid-auto-rows: 126px; }

  .mobile-dashboard-launcher > a,
  .dashboard-page .operation-alert-card {
    height: 126px;
    min-height: 126px;
    max-height: 126px;
  }
}

/* スマホダッシュボード: 実績・目標を先頭に置いた4カード構成。 */
@media (max-width: 700px) {
  .dashboard-page {
    --mobile-accent: #d65a66;
    --mobile-accent-soft: #fff0ed;
    --mobile-border: #eaded9;
    --mobile-canvas: #fff9f7;
    background: var(--mobile-canvas);
  }

  .dashboard-page .site-header { border-bottom-color: var(--mobile-border); }
  .dashboard-page .site-header .avatar { background: #d65a66; }
  .dashboard-page .page-content { background: var(--mobile-canvas); }

  .dashboard-page .dashboard-overview {
    order: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin: 0 0 12px;
  }

  .dashboard-page .dashboard-overview .overview-card {
    display: block;
    width: 100%;
    height: 166px;
    min-height: 166px;
    max-height: 166px;
    overflow: hidden;
    padding: 11px;
    border-color: var(--mobile-border);
    border-radius: 12px;
    background: #fff;
  }

  .dashboard-page .dashboard-overview .sales-target-card { display: none; }
  .dashboard-page .overview-heading { color: #272120; font-size: 12px; font-weight: 700; }

  .dashboard-page .overview-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 0;
    margin-top: 11px;
  }

  .dashboard-page .overview-metrics > div,
  .dashboard-page .overview-metrics > div:nth-child(n) { padding: 0 6px; }
  .dashboard-page .overview-metrics dt { font-size: 9px; }
  .dashboard-page .overview-metrics dd { font-size: 19px; }
  .dashboard-page .overview-metrics dd small { font-size: 8px; }

  .dashboard-page .overview-target {
    gap: 9px;
    margin-top: 11px;
  }

  .dashboard-page .overview-target-row > b { font-size: 9px; }
  .dashboard-page .overview-target-row strong { font-size: 17px; }
  .dashboard-page .overview-target-row > span:not(.overview-progress) { font-size: 8px; }
  .dashboard-page .overview-progress { height: 3px; margin-top: 4px; }
  .dashboard-page .target-source { display: none; }

  .mobile-dashboard-launcher {
    order: 2;
    margin-bottom: 0;
  }

  .mobile-dashboard-launcher > a,
  .dashboard-page .operation-alert-card {
    border-color: var(--mobile-border);
  }

  .mobile-dashboard-icon {
    color: var(--mobile-accent);
    background: var(--mobile-accent-soft);
  }

  .dashboard-page .dashboard-attention-section,
  .dashboard-page .next-action-section { display: none; }

  .dashboard-page .mobile-bottom-navigation {
    border-color: var(--mobile-border);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 8px 24px rgba(87, 48, 43, .12);
  }

  .dashboard-page .mobile-navigation-link { color: #887874; }
  .dashboard-page .mobile-navigation-link.is-active {
    color: var(--mobile-accent);
    background: var(--mobile-accent-soft);
  }
}

/* Executive dashboard refresh: numbers first, actions second. */
.dashboard-page {
  --dash-navy: #102a4c;
  --dash-blue: #1769aa;
  --dash-blue-soft: #eef6fc;
  --dash-coral: #ef6c62;
  --dash-coral-soft: #fff3f0;
  --dash-green: #16845b;
  --dash-green-soft: #edf8f3;
  --dash-amber: #b86d12;
  --dash-line: #dce4ec;
  --dash-shadow: 0 8px 24px rgba(16, 42, 76, .055);
  color: var(--dash-navy);
}

.dashboard-page .app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 56px;
  height: 56px;
  border-bottom-color: #e7ebef;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
}

.dashboard-page .header-search:focus-within {
  border-color: rgba(23, 105, 170, .42);
  box-shadow: 0 0 0 4px rgba(23, 105, 170, .08);
}

.dashboard-page .sidebar {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.dashboard-page .page-content {
  width: min(100%, 1540px);
  margin-inline: auto;
  padding: 20px 28px 48px;
}

.dashboard-page .intro {
  min-height: 0;
  margin: 0 0 14px;
  padding: 0;
}

.dashboard-page .intro .eyebrow {
  margin-bottom: 3px;
  color: var(--dash-coral);
  font-size: 12px;
  font-weight: 700;
}

.dashboard-page .intro h1 {
  margin: 0;
  color: var(--dash-navy);
  font-size: clamp(22px, 2vw, 29px);
  line-height: 1.25;
  letter-spacing: -.025em;
}

.dashboard-page .dashboard-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .92fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}

.dashboard-page .overview-card,
.dashboard-page .dashboard-panel,
.dashboard-page .next-action-section,
.dashboard-page .dashboard-ai-preview {
  border: 1px solid var(--dash-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--dash-shadow);
}

.dashboard-page .overview-card {
  min-width: 0;
  min-height: 286px;
  padding: 20px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.dashboard-page .overview-card.is-clickable,
.dashboard-page .operation-alert-card { cursor: pointer; }

@media (hover: hover) {
  .dashboard-page .overview-card.is-clickable:hover,
  .dashboard-page .operation-alert-card:hover {
    transform: translateY(-2px);
    border-color: #bdcbd9;
    box-shadow: 0 12px 28px rgba(16, 42, 76, .09);
  }
}

.dashboard-page .overview-card:focus-visible,
.dashboard-page .operation-alert-card:focus-visible,
.dashboard-page .dashboard-ai-preview summary:focus-visible {
  outline: 3px solid rgba(23, 105, 170, .24);
  outline-offset: 2px;
}

.dashboard-page .overview-today-card {
  position: relative;
  overflow: hidden;
  border-color: #b9d5e9;
  box-shadow: 0 12px 32px rgba(23, 105, 170, .09);
}

.dashboard-page .overview-today-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--dash-blue);
  content: "";
}

.dashboard-page .overview-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-page .overview-heading {
  margin: 0 0 14px;
  color: var(--dash-navy);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
}

.dashboard-page .overview-heading-row .overview-heading { margin-bottom: 14px; }

.dashboard-page .overview-live-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  color: #4f647a;
  font-size: 11px;
  font-weight: 600;
}

.dashboard-page .overview-live-label i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--dash-green);
  box-shadow: 0 0 0 4px var(--dash-green-soft);
}

.dashboard-page .overview-target-list {
  display: grid;
  gap: 10px;
}

.dashboard-page .overview-target-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  padding: 0 0 9px;
  border-bottom: 1px solid #edf1f5;
}

.dashboard-page .overview-target-row:last-child { border-bottom: 0; padding-bottom: 0; }
.dashboard-page .target-row-head,
.dashboard-page .target-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-page .target-row-head > b { font-size: 13px; }
.dashboard-page .target-state {
  padding: 3px 8px;
  border-radius: 999px;
  background: #f2f5f8;
  color: #52667a;
  font-size: 10px;
  font-weight: 700;
}

.dashboard-page .target-state.is-success,
.dashboard-page .target-state.is-good { background: var(--dash-green-soft); color: var(--dash-green); }
.dashboard-page .target-state.is-attention { background: #fff5e6; color: var(--dash-amber); }
.dashboard-page .target-state.is-late { background: var(--dash-coral-soft); color: #bd5048; }

.dashboard-page .target-number-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-variant-numeric: tabular-nums;
}

.dashboard-page .target-number-line > span { display: inline-flex; align-items: baseline; gap: 4px; }
.dashboard-page .target-number-line em { color: #687b8e; font-size: 10px; font-style: normal; }
.dashboard-page .target-number-line strong { color: var(--dash-navy); font-size: 34px; line-height: 1; letter-spacing: -.04em; }
.dashboard-page .target-number-line b { color: #496076; font-size: 18px; }
.dashboard-page .target-number-line small { color: #60758a; font-size: 11px; }
.dashboard-page .target-number-line > i { color: #b4c0ca; font-size: 16px; font-style: normal; }
.dashboard-page .target-progress-meta { color: #50677d; font-size: 11px; }
.dashboard-page .target-progress-meta b { color: var(--dash-blue); font-size: 13px; }
.dashboard-page .target-progress-meta small { font-size: 11px; }
.dashboard-page .overview-progress {
  display: block;
  overflow: hidden;
  height: 6px;
  border-radius: 999px;
  background: #e8eef4;
}
.dashboard-page .overview-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--dash-blue);
  transition: width 420ms cubic-bezier(.2, .8, .2, 1), background-color 200ms ease;
}
.dashboard-page .overview-target-row.is-success .overview-progress i,
.dashboard-page .overview-target-row.is-good .overview-progress i { background: var(--dash-green); }
.dashboard-page .overview-target-row.is-attention .overview-progress i { background: #d9902f; }
.dashboard-page .overview-target-row.is-late .overview-progress i { background: var(--dash-coral); }
.dashboard-page .target-forecast { margin: 1px 0 0; color: #5a6f84; font-size: 10px; }
.dashboard-page .target-source {
  margin-top: 9px;
  border-top: 1px solid #edf1f5;
  color: #64788c;
  font-size: 10px;
}
.dashboard-page .target-source summary { padding-top: 8px; cursor: pointer; font-weight: 600; }
.dashboard-page .target-source p,
.dashboard-page .target-source > span { display: block; margin: 6px 0 0; line-height: 1.55; }

.dashboard-page .previous-result { display: grid; gap: 13px; }
.dashboard-page .previous-funnel {
  display: grid;
  grid-template-columns: minmax(88px, .78fr) minmax(170px, 1.55fr);
  align-items: center;
  gap: 8px;
}
.dashboard-page .previous-total { display: grid; gap: 2px; }
.dashboard-page .previous-total span,
.dashboard-page .previous-outcomes > span > small { color: #65798d; font-size: 10px; }
.dashboard-page .previous-total strong { color: var(--dash-navy); font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; }
.dashboard-page .previous-total small,
.dashboard-page .previous-outcomes > span > em { color: #788b9c; font-size: 10px; font-style: normal; }
.dashboard-page .previous-arrow { color: #a2afbb; font-size: 17px; text-align: center; }
.dashboard-page .previous-outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dashboard-page .previous-outcomes > span { min-width: 0; padding: 10px; border-radius: 10px; background: #f6f8fa; }
.dashboard-page .previous-outcomes > span > b { display: inline-block; margin-top: 2px; color: var(--dash-navy); font-size: 22px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.dashboard-page .previous-outcomes > span:first-child > b { color: var(--dash-green); }
.dashboard-page .previous-outcomes > span:last-child > b { color: var(--dash-amber); }
.dashboard-page .previous-conversion {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 2px;
}
.dashboard-page .previous-conversion span { color: #53697e; font-size: 12px; }
.dashboard-page .previous-conversion strong { margin-left: auto; color: var(--dash-blue); font-size: 27px; font-variant-numeric: tabular-nums; }
.dashboard-page .previous-conversion small { margin-left: 2px; color: #6f8294; font-size: 10px; }
.dashboard-page .previous-ratio { display: flex; overflow: hidden; height: 7px; border-radius: 999px; background: #edf1f4; }
.dashboard-page .previous-ratio .is-won { background: var(--dash-green); }
.dashboard-page .previous-ratio .is-lost { background: #e4b15f; }
.dashboard-page .previous-ratio-legend { display: flex; justify-content: space-between; color: #718396; font-size: 10px; }
.dashboard-page .previous-comparison { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; margin: 0; padding-top: 6px; border-top: 1px solid #edf1f5; color: #60758a; font-size: 10px; line-height: 1.45; }
.dashboard-page .previous-comparison b { color: var(--dash-navy); text-align: right; }
.dashboard-page .previous-comparison span:nth-of-type(2) { grid-column: 1 / -1; }
.dashboard-page .previous-comparison span:nth-of-type(3) { grid-column: 1 / -1; }
.dashboard-page .is-threshold-met { color: var(--dash-green) !important; }

.dashboard-page .overview-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  margin: -8px -8px 6px 0;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--dash-blue);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}
.dashboard-page .overview-detail-link:hover { background: var(--dash-blue-soft); }
.dashboard-page .sales-target-heading { display: flex; justify-content: space-between; margin-bottom: 8px; color: #667b8f; font-size: 10px; }
.dashboard-page .sales-target-list { display: grid; gap: 5px; }
.dashboard-page .sales-target-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 4px 0;
  border-bottom: 1px solid #edf1f5;
}
.dashboard-page .sales-target-row:last-child { border-bottom: 0; }
.dashboard-page .sales-room { display: grid; min-width: 0; gap: 4px; }
.dashboard-page .sales-room b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-page .sales-room i { display: block; overflow: hidden; width: 100%; height: 3px; border-radius: 99px; background: #edf1f5; }
.dashboard-page .sales-room em { display: block; height: 100%; border-radius: inherit; background: #83afd1; }
.dashboard-page .sales-amount { display: grid; min-width: 87px; justify-items: end; gap: 1px; font-variant-numeric: tabular-nums; }
.dashboard-page .sales-amount strong { font-size: 13px; }
.dashboard-page .sales-amount strong small,
.dashboard-page .sales-amount > small { color: #7b8c9d; font-size: 8px; font-weight: 500; }
.dashboard-page .sales-highest {
  position: absolute;
  top: 1px;
  right: 93px;
  padding: 2px 5px;
  border-radius: 999px;
  background: var(--dash-blue-soft);
  color: var(--dash-blue);
  font-size: 8px;
  font-weight: 700;
}

.dashboard-page .dashboard-attention-section { margin-bottom: 14px; }
.dashboard-page .dashboard-panel { overflow: hidden; }
.dashboard-page .dashboard-panel-header { padding: 14px 18px 10px; border-bottom: 1px solid #edf1f5; }
.dashboard-page .dashboard-panel-header h2 { margin: 0; font-size: 16px; }
.dashboard-page .dashboard-panel-header p { margin: 3px 0 0; color: #667a8e; font-size: 11px; }
.dashboard-page .operations-alert-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 14px 14px;
}
.dashboard-page .operation-alert-card {
  display: grid;
  min-width: 0;
  min-height: 144px;
  padding: 13px;
  border: 1px solid #e0e6ec;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.dashboard-page .operation-alert-card.is-urgent { border-color: #f2b4ae; background: #fffdfc; }
.dashboard-page .operation-alert-card.is-preparing { opacity: .68; background: #f8fafb; }
.dashboard-page .operation-alert-card-head { display: flex; align-items: center; justify-content: space-between; }
.dashboard-page .operation-alert-card .status-icon { width: 30px; height: 30px; }
.dashboard-page .operation-alert-card h3 { margin: 10px 0 5px; color: var(--dash-navy); font-size: 13px; }
.dashboard-page .operation-card-badge { padding: 3px 7px; border-radius: 999px; background: #f1f4f7; color: #586c80; font-size: 9px; font-weight: 700; }
.dashboard-page .operation-card-badge.is-urgent,
.dashboard-page .operation-card-badge.is-error { background: #fff0ee; color: #b9433a; }
.dashboard-page .operation-card-badge.is-today { background: #fff5e7; color: var(--dash-amber); }
.dashboard-page .operation-card-badge.is-unlinked { background: #f0f2fb; color: #5c5fa0; }
.dashboard-page .operation-card-badge.is-preparing { background: #eef2f5; color: #738393; }
.dashboard-page .operation-card-state strong { display: block; color: #304c67; font-size: 19px; line-height: 1.1; }
.dashboard-page .operation-card-state p { overflow: hidden; margin: 5px 0 0; color: #6e8193; font-size: 10px; line-height: 1.4; }
.dashboard-page .operation-card-link { align-self: end; display: flex; justify-content: space-between; margin-top: 9px; color: var(--dash-blue); font-size: 10px; font-weight: 700; }
.dashboard-page .operation-card-state button { margin-top: 7px; border: 0; background: transparent; color: var(--dash-blue); font: inherit; cursor: pointer; }
.dashboard-page .operations-all-clear { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 15px; border-radius: 12px; background: var(--dash-green-soft); }
.dashboard-page .operations-all-clear > span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #fff; color: var(--dash-green); font-weight: 800; }
.dashboard-page .operations-all-clear strong { font-size: 13px; }
.dashboard-page .operations-all-clear p { margin: 2px 0 0; color: #547465; font-size: 10px; }

.dashboard-page .next-action-section { position: relative; overflow: hidden; margin-bottom: 14px; padding: 0; }
.dashboard-page .next-action-section.is-overdue { border-left: 4px solid var(--dash-coral); }
.dashboard-page .next-action-section.is-processing::after { position: absolute; inset: 0; background: rgba(255,255,255,.65); content: ""; pointer-events: all; }
.dashboard-page .next-action-section.is-processing::before { position: absolute; z-index: 2; top: 50%; right: 18px; width: 16px; height: 16px; margin-top: -8px; border: 2px solid #c9d5df; border-top-color: var(--dash-blue); border-radius: 50%; animation: dashboard-spin .7s linear infinite; content: ""; }
.dashboard-page .next-action-layout { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 78px; padding: 12px 16px; }
.dashboard-page .next-action-kicker { position: absolute; top: 9px; left: 16px; color: var(--dash-blue); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.dashboard-page .next-action-kicker span { margin-left: 5px; color: #8796a5; font-weight: 600; letter-spacing: 0; }
.dashboard-page .next-action-time { padding-top: 9px; color: var(--dash-navy); font-size: 23px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dashboard-page .next-action-copy { display: flex; align-items: center; gap: 10px; min-width: 0; padding-top: 9px; }
.dashboard-page .next-action-copy b { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-page .next-action-copy span { color: #6f8192; font-size: 10px; }
.dashboard-page .next-action-copy em { padding: 3px 7px; border-radius: 999px; background: #f1f4f7; color: #627589; font-size: 9px; font-style: normal; font-weight: 700; white-space: nowrap; }
.dashboard-page .next-action-copy em.is-overdue { background: var(--dash-coral-soft); color: #b44a42; }
.dashboard-page .next-action-actions { display: flex; align-items: center; gap: 8px; padding-top: 9px; }
.dashboard-page .next-action-actions a,
.dashboard-page .next-action-actions button { min-height: 36px; padding: 7px 14px; border-radius: 9px; font-size: 11px; font-weight: 700; transition: transform 100ms ease, background-color 160ms ease; }
.dashboard-page .next-action-confirm { color: var(--dash-blue); text-decoration: none; }
.dashboard-page .next-action-complete { border: 0; background: var(--dash-blue); color: #fff; cursor: pointer; }
.dashboard-page button:active,
.dashboard-page .next-action-actions a:active { transform: translateY(1px); }

.dashboard-page .dashboard-ai-section { margin-bottom: 8px; }
.dashboard-page .dashboard-ai-preview { overflow: hidden; background: #f8fafb; box-shadow: none; }
.dashboard-page .dashboard-ai-preview summary { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 16px; align-items: center; gap: 10px; min-height: 58px; padding: 10px 14px; cursor: pointer; list-style: none; }
.dashboard-page .dashboard-ai-preview summary::-webkit-details-marker { display: none; }
.dashboard-page .dashboard-ai-preview summary > .status-icon { grid-column: 1 !important; }
.dashboard-page .dashboard-ai-preview summary > span:nth-child(2) { grid-column: 2 !important; display: grid; min-width: 0; gap: 2px; }
.dashboard-page .dashboard-ai-preview summary strong { font-size: 12px; }
.dashboard-page .dashboard-ai-preview summary small { color: #718396; font-size: 9px; }
.dashboard-page .dashboard-ai-preview summary em { grid-column: 3 !important; width: auto !important; padding: 3px 7px; border-radius: 999px; background: #edf1f4; color: #718091; font-size: 9px; font-style: normal; font-weight: 700; }
.dashboard-page .dashboard-ai-preview summary > b { grid-column: 4 !important; }
.dashboard-page .dashboard-ai-preview > div { padding: 0 54px 12px; color: #64788c; font-size: 10px; }
.dashboard-page .dashboard-ai-preview p { margin: 0; }

.dashboard-toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 250px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #102a4c;
  color: #fff;
  box-shadow: 0 14px 36px rgba(16,42,76,.25);
  font-size: 12px;
  animation: dashboard-toast-in 200ms ease-out;
}
.dashboard-toast button { margin-left: auto; border: 0; background: transparent; color: #9bd1ff; font: inherit; font-weight: 700; cursor: pointer; }
@keyframes dashboard-spin { to { transform: rotate(360deg); } }
@keyframes dashboard-toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1240px) {
  .dashboard-page .page-content { padding-inline: 22px; }
  .dashboard-page .dashboard-overview { grid-template-columns: minmax(420px, 1.18fr) minmax(330px, .82fr); }
  .dashboard-page .sales-target-card { grid-column: 1 / -1; min-height: 0; }
  .dashboard-page .sales-target-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; }
  .dashboard-page .operations-alert-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-page .operation-alert-card { min-height: 128px; }
}

@media (max-width: 760px) {
  .dashboard-page .page-content { display: flex; width: 100%; flex-direction: column; padding: 14px 12px calc(104px + env(safe-area-inset-bottom)); }
  .dashboard-page .intro { order: 0; margin-bottom: 10px; }
  .dashboard-page .dashboard-overview { order: 1; display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 10px; }
  .dashboard-page .dashboard-attention-section { display: block !important; order: 2; margin-bottom: 10px; }
  .dashboard-page .mobile-dashboard-launcher { order: 3; margin-bottom: 10px; }
  .dashboard-page .next-action-section { display: block !important; order: 4; }
  .dashboard-page .dashboard-ai-section { order: 5; margin: 0 0 8px !important; padding: 0 !important; background: transparent !important; }
  .dashboard-page .overview-card,
  .dashboard-page .sales-target-card { display: block !important; grid-column: auto; min-height: 0; padding: 15px; border-radius: 14px; }
  .dashboard-page .overview-today-card { order: 0; }
  .dashboard-page .overview-previous-card { order: 1; }
  .dashboard-page .sales-target-card { order: 2; }
  .dashboard-page .overview-heading { margin-bottom: 11px; font-size: 14px; }
  .dashboard-page .overview-heading-row .overview-heading,
  .dashboard-page .overview-live-label { margin-bottom: 11px; }
  .dashboard-page .overview-target-list { gap: 9px; }
  .dashboard-page .target-number-line strong { font-size: 31px; }
  .dashboard-page .previous-funnel { grid-template-columns: 75px 1fr; }
  .dashboard-page .sales-target-list { grid-template-columns: 1fr; }
  .dashboard-page .operations-alert-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; }
  .dashboard-page .operation-alert-card { min-height: 135px; padding: 11px; }
  .dashboard-page .dashboard-panel-header { padding: 12px 14px 9px; }
  .dashboard-page .next-action-layout { grid-template-columns: 64px 1fr; gap: 9px; min-height: 98px; padding: 13px; }
  .dashboard-page .next-action-kicker { top: 7px; left: 13px; }
  .dashboard-page .next-action-time { font-size: 19px; }
  .dashboard-page .next-action-copy { display: grid; grid-template-columns: 1fr auto; gap: 3px 6px; }
  .dashboard-page .next-action-copy b { font-size: 12px; }
  .dashboard-page .next-action-copy span { grid-column: 1 / -1; }
  .dashboard-page .next-action-actions { grid-column: 1 / -1; justify-content: flex-end; padding-top: 0; }
  .dashboard-page .dashboard-ai-preview summary { grid-template-columns: 28px minmax(0, 1fr) auto; }
  .dashboard-page .dashboard-ai-preview summary > b { display: none; }
  .dashboard-toast { right: 12px; bottom: calc(88px + env(safe-area-inset-bottom)); left: 12px; min-width: 0; }
}

@media (max-width: 420px) {
  .dashboard-page .intro h1 { font-size: 21px; }
  .dashboard-page .previous-outcome { padding: 8px; }
  .dashboard-page .operations-alert-list { grid-template-columns: 1fr; }
  .dashboard-page .operation-alert-card { min-height: 118px; }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-page *,
  .dashboard-page *::before,
  .dashboard-page *::after,
  .dashboard-toast { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Quiet executive overview: hierarchy through type, alignment and space. */
.dashboard-page .intro {
  margin-bottom: 12px;
}

.dashboard-page .intro .eyebrow {
  margin-bottom: 2px;
  color: #687789;
  font-size: 13px;
  font-weight: 500;
}

.dashboard-page .intro h1 {
  font-size: clamp(21px, 1.7vw, 26px);
  font-weight: 650;
  letter-spacing: -.02em;
}

.dashboard-page .dashboard-overview {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .77fr) minmax(0, 1fr);
  gap: 16px;
}

.dashboard-page .overview-card,
.dashboard-page .overview-today-card {
  min-height: 300px;
  padding: 20px 22px;
  border: 1px solid #dfe4ea;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 42, 76, .025);
}

.dashboard-page .overview-today-card::before {
  display: none;
}

@media (hover: hover) {
  .dashboard-page .overview-card.is-clickable:hover {
    transform: none;
    border-color: #c9d1da;
    box-shadow: 0 1px 2px rgba(16, 42, 76, .035);
  }
}

.dashboard-page .overview-heading,
.dashboard-page .overview-heading-row .overview-heading {
  margin-bottom: 16px;
  color: #243b53;
  font-size: 15px;
  font-weight: 600;
}

.dashboard-page .overview-live-label {
  margin-bottom: 16px;
  color: #6d7c8c;
  font-size: 11px;
  font-weight: 500;
}

.dashboard-page .overview-live-label i {
  width: 6px;
  height: 6px;
  box-shadow: none;
}

.dashboard-page .overview-target {
  display: grid;
  gap: 0;
}

.dashboard-page .target-empty-note {
  margin: -5px 0 7px;
  color: #7a8795;
  font-size: 12px;
}

.dashboard-page .overview-target-row {
  display: block;
  padding: 11px 0 13px;
  border: 0;
}

.dashboard-page .overview-target-row + .overview-target-row {
  border-top: 1px solid #edf0f3;
}

.dashboard-page .target-row-main {
  display: grid;
  grid-template-columns: minmax(74px, .7fr) minmax(275px, 2fr);
  align-items: end;
  gap: 14px;
  margin-bottom: 9px;
}

.dashboard-page .target-label-block {
  display: grid;
  gap: 5px;
}

.dashboard-page .target-label-block > b {
  color: #243b53;
  font-size: 13px;
  font-weight: 600;
}

.dashboard-page .target-label-block > span {
  color: #748394;
  font-size: 11px;
}

.dashboard-page .target-label-block > span strong {
  color: #4d6276;
  font-weight: 600;
}

.dashboard-page .target-number-line {
  display: grid;
  grid-template-columns: minmax(78px, 1fr) 14px minmax(76px, .8fr) minmax(70px, .72fr);
  align-items: end;
  gap: 8px;
  min-width: 0;
}

.dashboard-page .target-number-line > span {
  display: flex;
  align-items: baseline;
  min-width: 0;
  gap: 3px;
  white-space: nowrap;
}

.dashboard-page .target-number-line em {
  margin-right: 2px;
  color: #7b8997;
  font-size: 11px;
  font-weight: 400;
}

.dashboard-page .target-number-line strong {
  color: #142f4d;
  font-size: 34px;
  font-weight: 650;
  letter-spacing: -.035em;
}

.dashboard-page .target-number-line b {
  color: #304960;
  font-size: 22px;
  font-weight: 600;
}

.dashboard-page .target-number-line .is-remaining b {
  font-size: 20px;
}

.dashboard-page .target-number-line small {
  color: #637486;
  font-size: 11px;
}

.dashboard-page .target-number-line > i {
  align-self: center;
  color: #a8b1ba;
  font-size: 15px;
}

.dashboard-page .overview-progress {
  height: 4px;
  background: #e9edf1;
}

.dashboard-page .overview-progress i,
.dashboard-page .overview-target-row.is-good .overview-progress i,
.dashboard-page .overview-target-row.is-neutral .overview-progress i {
  background: #3678ad;
}

.dashboard-page .overview-target-row.is-success .overview-progress i {
  background: #25805e;
}

.dashboard-page .overview-target-row.is-attention .overview-progress i,
.dashboard-page .overview-target-row.is-late .overview-progress i {
  background: #c78432;
}

.dashboard-page .target-forecast {
  margin: 6px 0 -4px;
  color: #6e7e8e;
  font-size: 11px;
  text-align: right;
}

.dashboard-page .target-source {
  margin-top: 0;
  border-top: 1px solid #edf0f3;
  color: #6d7c8c;
  font-size: 11px;
}

.dashboard-page .target-source summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-top: 10px;
  color: #496b89;
  font-weight: 500;
}

.dashboard-page .previous-result {
  display: grid;
  gap: 14px;
}

.dashboard-page .previous-top-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-page .previous-metric {
  position: relative;
  min-width: 0;
  padding: 2px 10px 4px 0;
  font-variant-numeric: tabular-nums;
}

.dashboard-page .previous-metric + .previous-metric {
  padding-left: 12px;
  border-left: 1px solid #e8ecf0;
}

.dashboard-page .previous-metric > span {
  display: block;
  margin-bottom: 5px;
  color: #6d7d8d;
  font-size: 12px;
  white-space: nowrap;
}

.dashboard-page .previous-metric > strong {
  color: #17324f;
  font-size: 26px;
  font-weight: 620;
  line-height: 1;
}

.dashboard-page .previous-metric > small {
  margin-left: 2px;
  color: #667788;
  font-size: 11px;
}

.dashboard-page .previous-metric.is-threshold-met {
  color: inherit !important;
}

.dashboard-page .previous-conversion {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  padding: 5px 0 0;
  border-top: 1px solid #edf0f3;
}

.dashboard-page .previous-conversion span {
  margin-right: auto;
  color: #5f7183;
  font-size: 12px;
}

.dashboard-page .previous-conversion strong,
.dashboard-page .previous-conversion strong.is-threshold-met {
  margin-left: 0;
  color: #17324f !important;
  font-size: 30px;
  font-weight: 630;
}

.dashboard-page .metric-threshold {
  margin-left: 8px;
  color: #27805e;
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
}

.dashboard-page .previous-ratio {
  height: 4px;
  background: #eceff2;
}

.dashboard-page .previous-ratio .is-won {
  background: #27805e;
}

.dashboard-page .previous-ratio .is-lost {
  background: #d19a55;
}

.dashboard-page .previous-comparison {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid #edf0f3;
  color: #6f7f8f;
  font-size: 11px;
  line-height: 1.4;
}

.dashboard-page .previous-comparison span,
.dashboard-page .previous-comparison b,
.dashboard-page .previous-comparison em {
  color: inherit;
  font-size: inherit;
  font-style: normal;
  font-weight: 500;
  white-space: nowrap;
}

.dashboard-page .previous-comparison span {
  color: #52687c;
  font-weight: 600;
}

.dashboard-page .previous-comparison em {
  margin-left: auto;
  color: #304f6b;
}

.dashboard-page .overview-detail-link {
  min-height: auto;
  margin: 0 0 16px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #296a9f;
  font-size: 11px;
  font-weight: 500;
}

.dashboard-page .overview-detail-link:hover {
  background: transparent;
  color: #174f7e;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dashboard-page .sales-target-heading {
  margin-bottom: 7px;
  color: #607285;
  font-size: 12px;
}

.dashboard-page .sales-target-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.dashboard-page .sales-target-row {
  display: grid;
  grid-template-columns: minmax(108px, 1fr) minmax(70px, auto) minmax(74px, auto) 28px;
  align-items: center;
  gap: 7px;
  min-height: 39px;
  padding: 5px 0;
  border: 0;
  border-bottom: 1px solid #edf0f3;
  border-radius: 0;
  background: transparent;
}

.dashboard-page .sales-target-row:last-child {
  border-bottom: 0;
}

.dashboard-page .sales-room {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.dashboard-page .sales-room b {
  overflow: visible;
  color: #263e55;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.3;
  text-overflow: clip;
  white-space: normal;
}

.dashboard-page .sales-room i {
  width: min(100%, 82px);
  height: 2px;
  background: #eef1f4;
}

.dashboard-page .sales-room em {
  background: #7fa7c6;
}

.dashboard-page .sales-goal {
  color: #17324f;
  font-size: 13px;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.dashboard-page .sales-goal small {
  display: inline;
  margin-left: 0;
  color: #52677b;
  font-size: 10px;
  font-weight: 500;
}

.dashboard-page .sales-share {
  color: #748394;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.dashboard-page .sales-highest,
.dashboard-page .sales-highest-placeholder {
  position: static;
  display: block;
  width: 28px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #56748e;
  font-size: 10px;
  font-weight: 500;
  text-align: right;
}

@media (max-width: 1240px) {
  .dashboard-page .dashboard-overview {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  }

  .dashboard-page .sales-target-card {
    grid-column: 1 / -1;
  }

  .dashboard-page .sales-target-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }
}

@media (max-width: 760px) {
  .dashboard-page .overview-card,
  .dashboard-page .overview-today-card {
    min-height: 0;
    padding: 16px;
  }

  .dashboard-page .target-row-main {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .dashboard-page .target-number-line {
    grid-template-columns: minmax(76px, 1fr) 12px minmax(72px, .85fr) minmax(67px, .8fr);
  }

  .dashboard-page .target-number-line strong {
    font-size: 31px;
  }

  .dashboard-page .sales-target-list {
    grid-template-columns: 1fr;
  }

  .dashboard-page .sales-target-row {
    grid-template-columns: minmax(105px, 1fr) minmax(70px, auto) 72px 28px;
    gap: 6px;
  }
}

@media (max-width: 360px) {
  .dashboard-page .dashboard-overview .overview-card {
    height: 158px;
    min-height: 158px;
    max-height: 158px;
    padding: 9px;
  }

  .dashboard-page .overview-metrics dd { font-size: 17px; }
}

/* iPhone: overview cards stack horizontally and the bottom menu clears device chrome. */
@media (max-width: 700px) {
  .dashboard-page .dashboard-overview {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .dashboard-page .dashboard-overview .overview-card {
    height: auto;
    min-height: 132px;
    max-height: none;
    padding: 12px 14px;
  }

  .dashboard-page .dashboard-overview .overview-card:nth-child(2) .overview-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dashboard-page .page-content,
  body:not(.dashboard-page) .app-shell {
    padding-bottom: calc(92px + max(12px, env(safe-area-inset-bottom)));
  }

  .mobile-bottom-navigation,
  .dashboard-page .mobile-bottom-navigation {
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 8px;
    height: 64px;
    padding: 4px;
    border: 1px solid var(--mobile-border, #dfe5ec);
    border-radius: 14px;
  }
}

@media (max-width: 360px) {
  .dashboard-page .dashboard-overview .overview-card {
    height: auto;
    min-height: 132px;
    max-height: none;
    padding: 11px 12px;
  }

  .dashboard-page .dashboard-overview .overview-card:nth-child(2) .overview-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dashboard-page .overview-metrics > div,
  .dashboard-page .overview-metrics > div:nth-child(n) {
    padding-right: 3px;
    padding-left: 3px;
  }

  .dashboard-page .overview-metrics dt { font-size: 8px; }
  .dashboard-page .overview-metrics dd { font-size: 16px; }
}

/* Target overview: distinguish the goal from today's current result. */
.dashboard-page .overview-target-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 16px;
}

.dashboard-page .target-goal {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.dashboard-page .target-goal > b {
  color: var(--text-heading);
  font-size: 13px;
  font-weight: 500;
}

.dashboard-page .target-goal > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid #cadbec;
  border-radius: 8px;
  background: #f5f9fd;
}

.dashboard-page .target-goal em {
  color: #52708e;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.dashboard-page .target-goal strong {
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.dashboard-page .target-goal strong small {
  margin-left: 2px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 400;
}

.dashboard-page .target-current {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.dashboard-page .target-current > b {
  color: var(--text-heading);
  font-size: 13px;
  font-weight: 500;
}

.dashboard-page .target-current > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dashboard-page .target-current em {
  color: var(--text-muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
}

.dashboard-page .target-current strong {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.dashboard-page .target-current strong small {
  margin-left: 2px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 400;
}

.dashboard-page .target-goal > small {
  color: var(--text-muted);
  font-size: 10px;
}

@media (max-width: 700px) {
  .dashboard-page .overview-target-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 8px;
  }

  .dashboard-page .target-goal,
  .dashboard-page .target-current { gap: 6px; }
  .dashboard-page .target-current > b { font-size: 10px; }
  .dashboard-page .target-current em { font-size: 8px; }
  .dashboard-page .target-current strong { font-size: 16px; }
  .dashboard-page .target-current strong small { font-size: 8px; }
  .dashboard-page .target-goal > span { gap: 4px; padding: 3px 6px; border-radius: 7px; }
  .dashboard-page .target-goal em { font-size: 8px; }
  .dashboard-page .target-goal strong { font-size: 17px; }
  .dashboard-page .target-goal strong small { font-size: 8px; }
  .dashboard-page .target-goal > small { display: none; }
}

/* CLIPPER brand system preview
   Scope is intentionally limited to therapist management and the manual index. */
.brand-system-preview {
  --brand-font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --brand-weight-regular: 400;
  --brand-weight-medium: 500;
  --brand-weight-semibold: 600;
  --brand-weight-bold: 700;
  --brand-text-primary: #1c2025;
  --brand-text-secondary: #68717d;
  --brand-background-page: #f6f7f8;
  --brand-background-card: #ffffff;
  --brand-border-default: #e1e4e8;
  --brand-coral: #ff765f;
  --brand-coral-strong: #e85f4a;
  --brand-coral-soft: #fff1ee;
  --brand-success: #287a57;
  --brand-warning: #b56b18;
  --brand-danger: #bd3e3e;
  --brand-radius-card: 13px;
  --brand-radius-control: 10px;
  --brand-shadow-card: 0 1px 2px rgba(24, 30, 38, .025);
  --brand-transition-fast: 160ms ease;
  --brand-transition-normal: 200ms ease;
  color: var(--brand-text-primary);
  background: var(--brand-background-page);
  font-family: var(--brand-font-family);
  font-weight: var(--brand-weight-regular);
}

.brand-system-preview .app-shell,
.brand-system-preview .page-content {
  background: var(--brand-background-page);
}

.brand-system-preview .site-header {
  border-color: var(--brand-border-default);
  background: rgba(255, 255, 255, .96);
  box-shadow: none;
}

/* The logo and its gradient are deliberately untouched. */
.brand-system-preview .side-navigation {
  border-color: var(--brand-border-default);
  background: #fff;
}

.brand-system-preview .sidebar-group-label,
.brand-system-preview .sidebar-link {
  font-weight: var(--brand-weight-medium);
}

.brand-system-preview .sidebar-group-label { color: #9299a2; }
.brand-system-preview .sidebar-link {
  color: #5f6873;
  border-radius: 10px;
  transition: color var(--brand-transition-fast), background-color var(--brand-transition-fast), transform 100ms ease;
}
.brand-system-preview .sidebar-link:hover {
  color: var(--brand-text-primary);
  background: #fafafa;
  transform: none;
}
.brand-system-preview .sidebar-link.is-active {
  color: var(--brand-text-primary);
  background: var(--brand-coral-soft);
  box-shadow: inset 3px 0 var(--brand-coral);
  font-weight: var(--brand-weight-semibold);
}
.brand-system-preview .sidebar-link.is-active > span:first-child { color: var(--brand-coral-strong); }

.brand-system-preview .page-content {
  width: min(100%, 1480px);
  box-sizing: border-box;
  padding: 30px 32px 44px;
}

.brand-system-preview .breadcrumbs {
  margin-bottom: 13px;
  color: var(--brand-text-secondary);
  font-size: 12px;
  font-weight: var(--brand-weight-regular);
}
.brand-system-preview .breadcrumbs a { color: var(--brand-text-secondary); }

.brand-system-preview .brand-page-header {
  align-items: flex-end;
  margin-bottom: 20px;
}
.brand-system-preview .brand-page-header .eyebrow {
  margin: 0 0 6px;
  color: var(--brand-coral-strong);
  font-size: 12px;
  font-weight: var(--brand-weight-medium);
  letter-spacing: 0;
}
.brand-system-preview .brand-page-header h1 {
  margin: 0;
  color: var(--brand-text-primary);
  font-size: clamp(30px, 2vw, 32px);
  font-weight: var(--brand-weight-bold);
  line-height: 1.3;
  letter-spacing: 0;
}
.brand-system-preview .brand-page-description {
  margin: 7px 0 0;
  color: var(--brand-text-secondary);
  font-size: 14px;
  font-weight: var(--brand-weight-regular);
  line-height: 1.65;
}

.brand-system-preview .brand-primary-button,
.brand-system-preview .task-primary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  color: #fff;
  border: 1px solid var(--brand-coral);
  border-radius: 11px;
  background: var(--brand-coral);
  box-shadow: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: var(--brand-weight-semibold);
  line-height: 1;
  transition: border-color var(--brand-transition-fast), background-color var(--brand-transition-fast), transform 100ms ease;
}
.brand-system-preview .brand-primary-button:hover,
.brand-system-preview .task-primary:hover {
  border-color: var(--brand-coral-strong);
  background: var(--brand-coral-strong);
  box-shadow: none;
}
.brand-system-preview .brand-primary-button:active,
.brand-system-preview .task-primary:active { transform: translateY(1px); }
.brand-system-preview .brand-primary-button:focus-visible,
.brand-system-preview .task-primary:focus-visible,
.brand-system-preview input:focus-visible,
.brand-system-preview select:focus-visible,
.brand-system-preview textarea:focus-visible {
  outline: 0;
  border-color: var(--brand-coral);
  box-shadow: 0 0 0 3px rgba(255, 118, 95, .14);
}

.brand-system-preview .brand-card,
.brand-system-preview .therapist-summary-card,
.brand-system-preview .therapist-list-panel,
.brand-system-preview .manual-search-panel,
.brand-system-preview .manual-categories,
.brand-system-preview .manual-results {
  border: 1px solid var(--brand-border-default);
  border-radius: var(--brand-radius-card);
  background: var(--brand-background-card);
  box-shadow: var(--brand-shadow-card);
}

/* Therapist management */
.brand-system-preview .therapist-management-page { max-width: 1480px; }
.brand-system-preview .therapist-summary-grid {
  gap: 12px;
  margin: 0 0 16px;
}
.brand-system-preview .therapist-summary-card {
  min-height: 84px;
  padding: 14px 16px;
}
.brand-system-preview .therapist-summary-card span {
  color: var(--brand-text-secondary);
  font-size: 12px;
  font-weight: var(--brand-weight-medium);
}
.brand-system-preview .therapist-summary-card strong {
  display: inline-block;
  margin-top: 7px;
  color: var(--brand-text-primary);
  font-size: 30px;
  font-weight: var(--brand-weight-bold);
  line-height: 1;
}
.brand-system-preview .therapist-summary-card small {
  display: inline;
  margin-left: 4px;
  color: var(--brand-text-secondary);
  font-size: 12px;
  font-weight: var(--brand-weight-regular);
}
.brand-system-preview .therapist-list-panel { overflow: hidden; }
.brand-system-preview .therapist-list-toolbar {
  gap: 12px;
  padding: 14px 16px 16px;
  border-color: var(--brand-border-default);
}
.brand-system-preview .therapist-list-toolbar label,
.brand-system-preview .therapist-form label,
.brand-system-preview .therapist-field {
  gap: 6px;
  color: var(--brand-text-secondary);
  font-size: 13px;
  font-weight: var(--brand-weight-medium);
}
.brand-system-preview .therapist-list-toolbar input,
.brand-system-preview .therapist-list-toolbar select,
.brand-system-preview .therapist-form input,
.brand-system-preview .therapist-form textarea,
.brand-system-preview .therapist-form select,
.brand-system-preview .therapist-field input,
.brand-system-preview .therapist-field select,
.brand-system-preview .therapist-field textarea {
  min-height: 45px;
  padding: 9px 12px;
  color: var(--brand-text-primary);
  border: 1px solid var(--brand-border-default);
  border-radius: var(--brand-radius-control);
  background: #fff;
  font-size: 14px;
  font-weight: var(--brand-weight-regular);
  outline: 0;
}
.brand-system-preview .therapist-list-toolbar input::placeholder,
.brand-system-preview .therapist-form input::placeholder,
.brand-system-preview .therapist-form textarea::placeholder { color: #9ba2ab; }

.brand-system-preview .therapist-table {
  border: 0;
  border-radius: 0;
}
.brand-system-preview .therapist-row {
  min-height: 84px;
  border-color: var(--brand-border-default);
  background: #fff;
  color: var(--brand-text-primary);
  font-size: 14px;
  font-weight: var(--brand-weight-regular);
  box-shadow: none;
  transition: background-color var(--brand-transition-fast);
}
.brand-system-preview .therapist-row:hover { background: #fafafa; }
.brand-system-preview .therapist-row[class*="therapist-row-status-"] { box-shadow: none; }
.brand-system-preview .therapist-row-head {
  min-height: 42px;
  background: #f7f8f9;
  color: #646d78;
  font-size: 13px;
  font-weight: var(--brand-weight-semibold);
}
.brand-system-preview .therapist-row-head:hover { background: #f7f8f9; }
.brand-system-preview .therapist-row .therapist-name,
.brand-system-preview .therapist-identity strong {
  color: var(--brand-text-primary);
  font-weight: var(--brand-weight-semibold);
}
.brand-system-preview .therapist-rank-icon {
  font-weight: var(--brand-weight-semibold);
  box-shadow: none;
}
.brand-system-preview .therapist-identity small,
.brand-system-preview .therapist-condition-cell small,
.brand-system-preview .therapist-interview-cell small {
  color: var(--brand-text-secondary);
  font-weight: var(--brand-weight-regular);
}
.brand-system-preview .therapist-condition-cell strong,
.brand-system-preview .therapist-interview-cell strong,
.brand-system-preview .therapist-first-work {
  color: #3e4650;
  font-weight: var(--brand-weight-medium);
}
.brand-system-preview .therapist-stage,
.brand-system-preview .therapist-flag {
  min-height: 22px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: var(--brand-weight-medium);
}
.brand-system-preview .therapist-stage.stage-applied,
.brand-system-preview .therapist-stage.stage-interview,
.brand-system-preview .therapist-stage.stage-reviewed,
.brand-system-preview .therapist-stage.stage-hired {
  color: #8b493f;
  background: var(--brand-coral-soft);
}
.brand-system-preview .therapist-stage.stage-active { color: var(--brand-success); background: #edf7f2; }
.brand-system-preview .therapist-stage.stage-paused { color: var(--brand-warning); background: #fff7e9; }
.brand-system-preview .therapist-stage.stage-closed { color: #68717d; background: #f1f3f5; }
.brand-system-preview .therapist-detail-link {
  color: #426d94;
  font-weight: var(--brand-weight-medium);
  text-decoration: none;
}
.brand-system-preview .therapist-detail-link b { display: none; }

/* Manual index */
.brand-system-preview .manual-page { max-width: 1480px; }
.brand-system-preview .manual-intro { margin-bottom: 20px; }
.brand-system-preview .manual-search-panel {
  gap: 9px;
  margin-bottom: 16px;
  padding: 16px;
}
.brand-system-preview .manual-search-panel > label,
.brand-system-preview .manual-filter-bar label {
  color: var(--brand-text-secondary);
  font-size: 13px;
  font-weight: var(--brand-weight-medium);
}
.brand-system-preview .manual-search-controls { gap: 9px; }
.brand-system-preview .manual-search-controls input,
.brand-system-preview .manual-filter-bar select,
.brand-system-preview .manual-dialog input,
.brand-system-preview .manual-dialog select,
.brand-system-preview .manual-dialog textarea {
  min-height: 45px;
  padding: 9px 12px;
  color: var(--brand-text-primary);
  border: 1px solid var(--brand-border-default);
  border-radius: var(--brand-radius-control);
  background: #fff;
  font: var(--brand-weight-regular) 14px/1.5 var(--brand-font-family);
  outline: 0;
}
.brand-system-preview .manual-search-controls input::placeholder,
.brand-system-preview .manual-dialog input::placeholder,
.brand-system-preview .manual-dialog textarea::placeholder { color: #9ba2ab; }
.brand-system-preview .manual-search-controls .task-primary { min-width: 80px; min-height: 45px; }
.brand-system-preview .manual-main {
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
}
.brand-system-preview .manual-categories,
.brand-system-preview .manual-results {
  overflow: hidden;
  margin-top: 0;
  padding: 0;
}
.brand-system-preview .manual-category-heading,
.brand-system-preview .manual-results-heading {
  padding: 15px 16px;
  border-color: var(--brand-border-default);
}
.brand-system-preview .manual-category-heading h2,
.brand-system-preview .manual-results-heading h2 {
  color: var(--brand-text-primary);
  font-size: 18px;
  font-weight: var(--brand-weight-semibold);
}
.brand-system-preview .manual-category-heading span,
.brand-system-preview .manual-results-heading p {
  color: var(--brand-text-secondary);
  background: transparent;
  font-weight: var(--brand-weight-regular);
}
.brand-system-preview .manual-tree-node,
.brand-system-preview .manual-category {
  color: #555f6a;
  background: #fff;
  font-weight: var(--brand-weight-regular);
  transition: color var(--brand-transition-fast), background-color var(--brand-transition-fast);
}
.brand-system-preview .manual-tree-node:hover,
.brand-system-preview .manual-category:hover { background: #fafafa; }
.brand-system-preview .manual-tree-node.is-selected,
.brand-system-preview .manual-category.is-active {
  color: var(--brand-text-primary);
  background: var(--brand-coral-soft);
  box-shadow: inset 3px 0 var(--brand-coral);
  font-weight: var(--brand-weight-medium);
}
.brand-system-preview .manual-tree-node.folder,
.brand-system-preview .manual-tree-node.all { color: var(--brand-text-primary); font-weight: var(--brand-weight-medium); }
.brand-system-preview .manual-tree-node em,
.brand-system-preview .manual-result-meta span {
  color: #626b75;
  background: #f2f4f5;
  font-weight: var(--brand-weight-medium);
}
.brand-system-preview .manual-tree-node em,
.brand-system-preview .manual-result-meta span:last-child {
  color: #985248;
  background: var(--brand-coral-soft);
}
.brand-system-preview .manual-results-list {
  gap: 0;
  margin: 0;
  padding: 0 16px;
}
.brand-system-preview .manual-result-card {
  padding: 17px 2px;
  border: 0;
  border-bottom: 1px solid var(--brand-border-default);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: background-color var(--brand-transition-fast);
}
.brand-system-preview .manual-result-card:last-child { border-bottom: 0; }
.brand-system-preview .manual-result-card:hover { border-color: var(--brand-border-default); background: #fafafa; }
.brand-system-preview .manual-result-card h3 {
  margin: 8px 0 6px;
  font-size: 16px;
  font-weight: var(--brand-weight-semibold);
}
.brand-system-preview .manual-result-card h3 a { color: var(--brand-text-primary); }
.brand-system-preview .manual-result-card h3 a:hover { color: var(--brand-coral-strong); text-decoration: underline; text-underline-offset: 3px; }
.brand-system-preview .manual-result-card p {
  color: var(--brand-text-secondary);
  font-size: 14px;
  font-weight: var(--brand-weight-regular);
  line-height: 1.7;
}
.brand-system-preview .manual-result-footer { color: var(--brand-text-secondary); }
.brand-system-preview .manual-result-footer a {
  color: #426d94;
  font-weight: var(--brand-weight-medium);
}

@media (max-width: 900px) {
  .brand-system-preview .page-content { padding: 24px 20px 36px; }
  .brand-system-preview .manual-main { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .brand-system-preview .page-content { padding: 20px 16px 98px; }
  .brand-system-preview .brand-page-header { align-items: stretch; flex-direction: column; gap: 14px; }
  .brand-system-preview .brand-page-header h1 { font-size: 27px; }
  .brand-system-preview .brand-page-header .brand-primary-button { width: 100%; }
  .brand-system-preview .therapist-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-system-preview .therapist-summary-card { min-height: 78px; }
  .brand-system-preview .therapist-list-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-system-preview .therapist-search { grid-column: 1 / -1; }
  .brand-system-preview .manual-search-controls { flex-direction: column; }
  .brand-system-preview .manual-search-controls .task-primary { width: 100%; }
}

/* Shared CLIPPER application surfaces.
   layout.js applies the scope to every page using the common application shell. */
.brand-system-preview .page-content,
.brand-system-preview .tool-view-page {
  color: var(--brand-text-primary);
}

.brand-system-preview :is(
  .work-intro,
  .intro,
  .assistant-intro,
  .inventory-refills-heading,
  .tool-view-heading
) {
  align-items: flex-end;
  margin-bottom: 20px;
}

.brand-system-preview :is(
  .work-intro,
  .intro,
  .assistant-intro,
  .inventory-refills-heading,
  .tool-view-heading,
  .manual-article-header
) .eyebrow {
  margin: 0 0 6px;
  color: var(--brand-coral-strong);
  font-size: 12px;
  font-weight: var(--brand-weight-medium);
  letter-spacing: 0;
}

.brand-system-preview :is(
  .work-intro,
  .intro,
  .assistant-intro,
  .inventory-refills-heading,
  .tool-view-heading,
  .manual-article-header
) h1 {
  margin-top: 0;
  margin-bottom: 0;
  color: var(--brand-text-primary);
  font-size: clamp(30px, 2vw, 32px);
  font-weight: var(--brand-weight-bold);
  line-height: 1.3;
  letter-spacing: 0;
}

.brand-system-preview :is(
  .work-intro,
  .intro,
  .assistant-intro,
  .inventory-refills-heading,
  .tool-view-heading,
  .manual-article-header
) p:not(.eyebrow) {
  margin-top: 7px;
  color: var(--brand-text-secondary);
  font-size: 14px;
  font-weight: var(--brand-weight-regular);
  line-height: 1.65;
}

.brand-system-preview :is(
  .overview-card,
  .dashboard-panel,
  .next-action-section,
  .operation-alert-card,
  .status-section,
  .feature-section,
  .task-shift,
  .work-board,
  .handoff-form,
  .handoff-preview,
  .room-list,
  .room-template,
  .account-list,
  .account-template,
  .account-list-panel,
  .account-table,
  .payment-cycle-panel,
  .feedback-panel,
  .inquiry-import-panel,
  .inventory-refills-panel,
  .inventory-refills-room,
  .sales-targets-panel,
  .sales-summary-card,
  .assistant-composer,
  .assistant-response,
  .ai-candidates,
  .ai-metrics > article,
  .manual-article-body,
  .manual-article-aside,
  .manual-feedback,
  .settings-panel,
  .settings-card,
  .tool-frame-wrap
) {
  border-color: var(--brand-border-default);
  border-radius: var(--brand-radius-card);
  background-color: var(--brand-background-card);
  box-shadow: var(--brand-shadow-card);
}

.brand-system-preview :is(
  .overview-card,
  .dashboard-panel,
  .next-action-section,
  .operation-alert-card,
  .feature-card,
  .task-shift,
  .room-list,
  .room-template,
  .account-list,
  .account-template,
  .account-row,
  .feedback-panel,
  .inventory-refills-room,
  .sales-summary-card,
  .manual-result-card
) {
  transition: border-color var(--brand-transition-fast), background-color var(--brand-transition-fast), transform 100ms ease;
}

.brand-system-preview :is(
  .overview-card,
  .dashboard-panel,
  .next-action-section,
  .operation-alert-card,
  .feature-card,
  .task-shift,
  .room-list,
  .room-template,
  .account-list,
  .account-template,
  .feedback-panel,
  .inventory-refills-room,
  .sales-summary-card
):hover {
  border-color: #cfd4da;
  box-shadow: var(--brand-shadow-card);
  transform: none;
}

.brand-system-preview .page-content :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]),
.brand-system-preview .tool-view-page :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]) {
  box-sizing: border-box;
  min-height: 44px;
  color: var(--brand-text-primary);
  border-color: var(--brand-border-default);
  border-radius: var(--brand-radius-control);
  background: #fff;
  font-family: var(--brand-font-family);
  font-weight: var(--brand-weight-regular);
}

.brand-system-preview .page-content :is(input, textarea)::placeholder,
.brand-system-preview .tool-view-page :is(input, textarea)::placeholder { color: #9ba2ab; }

.brand-system-preview :is(
  .task-secondary,
  .reset-button,
  .reset-preview,
  .tool-external-link,
  .assistant-admin-link
) {
  min-height: 42px;
  color: #4f5964;
  border: 1px solid var(--brand-border-default);
  border-radius: var(--brand-radius-control);
  background: #fff;
  box-shadow: none;
  font-family: var(--brand-font-family);
  font-weight: var(--brand-weight-semibold);
  transition: color var(--brand-transition-fast), border-color var(--brand-transition-fast), background-color var(--brand-transition-fast), transform 100ms ease;
}

.brand-system-preview :is(
  .task-secondary,
  .reset-button,
  .reset-preview,
  .tool-external-link,
  .assistant-admin-link
):hover {
  color: var(--brand-text-primary);
  border-color: #c9ced4;
  background: #fafafa;
}

.brand-system-preview :is(.task-secondary, .reset-button, .reset-preview, .tool-external-link, .assistant-admin-link):active {
  transform: translateY(1px);
}

.brand-system-preview :is(
  .section-heading h2,
  .dashboard-panel-header h2,
  .preview-heading h2,
  .room-list-heading h2,
  .template-heading h2,
  .account-list-heading h2,
  .feedback-panel-heading h2,
  .payment-cycle-panel h2,
  .ai-candidates h2
) {
  color: var(--brand-text-primary);
  font-weight: var(--brand-weight-semibold);
  letter-spacing: 0;
}

.brand-system-preview :is(
  .section-heading p,
  .preview-heading span,
  .template-heading span,
  .feedback-panel-heading p,
  .history-note,
  .settings-note
) {
  color: var(--brand-text-secondary);
  font-weight: var(--brand-weight-regular);
}

.brand-system-preview :is(
  .task-tab.is-active,
  .sales-weekday-button.is-active,
  .account-level.is-active,
  .account-tab.is-active,
  .inventory-refills-filter.is-active,
  .inventory-refills-filters button.is-active,
  .therapist-workflow-tab.is-active,
  .therapist-tab.is-active,
  .manual-guide-tabs button.is-active,
  .manual-feedback-options button.is-active
) {
  color: var(--brand-text-primary);
  border-color: rgba(255, 118, 95, .35);
  background: var(--brand-coral-soft);
  box-shadow: none;
}

.brand-system-preview .sales-weekday-button.is-active {
  color: #fff;
  border-color: var(--brand-coral);
  background: var(--brand-coral);
}
.brand-system-preview :is(.task-tab.is-active, .account-tab.is-active, .manual-guide-tabs button.is-active)::after { background: var(--brand-coral); }
.brand-system-preview :is(.account-tab.is-active, .therapist-tab.is-active, .manual-guide-tabs button.is-active) {
  border-bottom-color: var(--brand-coral);
}

.brand-system-preview .tool-view-page {
  padding-top: 28px;
  background: var(--brand-background-page);
}
.brand-system-preview .tool-view-heading { padding-right: 0; padding-left: 0; }
.brand-system-preview .tool-frame-wrap { overflow: hidden; }

.brand-system-preview .manual-article-page { max-width: 1120px; }
.brand-system-preview .manual-article-header > span,
.brand-system-preview .manual-article-category {
  color: #985248 !important;
  background: var(--brand-coral-soft);
}
.brand-system-preview .manual-detail-section p,
.brand-system-preview .manual-detail-section li { line-height: 1.7; }

.brand-system-preview .feedback-row,
.brand-system-preview .payment-cycle-row,
.brand-system-preview .inventory-refills-item,
.brand-system-preview .account-row,
.brand-system-preview .dashboard-list-row {
  border-color: var(--brand-border-default);
}
.brand-system-preview .account-row:hover,
.brand-system-preview .dashboard-list-row:hover { background: #fafafa; }

.brand-system-preview .status-badge,
.brand-system-preview .feedback-status,
.brand-system-preview .payment-cycle-status,
.brand-system-preview .sales-status-badge {
  border-radius: 6px;
  font-weight: var(--brand-weight-medium);
}

@media (max-width: 700px) {
  .brand-system-preview :is(.work-intro, .assistant-intro, .inventory-refills-heading, .tool-view-heading) {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }
  .brand-system-preview :is(.work-intro, .intro, .assistant-intro, .inventory-refills-heading, .tool-view-heading) h1 {
    font-size: 27px;
  }
}

/* CLIPPER cool palette preview.
   Intentionally scoped to dashboard, today's work and payment cycles only. */
.clipper-cool-preview {
  --color-brand-logo: #ff765f;
  --color-text-primary: #10243a;
  --color-text-heading: #0b1f33;
  --color-text-secondary: #66778a;
  --color-text-muted: #8c9aaa;
  --color-primary: #245f83;
  --color-primary-hover: #1c4e6d;
  --color-link: #337ba5;
  --color-selection: #eaf2f7;
  --color-page-background: #f4f7f9;
  --color-surface: #ffffff;
  --color-border: #dce4ea;
  --color-border-strong: #b9cbd8;
  --color-success: #24836b;
  --color-warning: #c78932;
  --color-danger: #d45d63;
  --color-disabled: #8c9aaa;
  --shadow-cool-card: 0 1px 2px rgba(16, 36, 58, .035);
  --focus-cool-ring: 0 0 0 3px rgba(51, 123, 165, .14);

  /* Map existing shared tokens without changing other pages. */
  --brand-text-primary: var(--color-text-primary);
  --brand-text-secondary: var(--color-text-secondary);
  --brand-background-page: var(--color-page-background);
  --brand-background-card: var(--color-surface);
  --brand-border-default: var(--color-border);
  --brand-success: var(--color-success);
  --brand-warning: var(--color-warning);
  --brand-danger: var(--color-danger);
  --console-ink: var(--color-text-primary);
  --console-muted: var(--color-text-secondary);
  --console-primary: var(--color-primary);
  --console-blue: var(--color-link);
  --console-line: var(--color-border);
  --text-primary: var(--color-text-primary);
  --text-heading: var(--color-text-heading);
  --text-secondary: var(--color-text-secondary);
  --text-muted: var(--color-text-muted);
  --background-page: var(--color-page-background);
  --background-card: var(--color-surface);
  --border-default: var(--color-border);
  --ink: var(--color-text-primary);
  --muted: var(--color-text-secondary);
  --line: var(--color-border);
  --surface: var(--color-surface);
  --canvas: var(--color-page-background);
  --blue: var(--color-primary);
  --blue-soft: var(--color-selection);
  color: var(--color-text-primary);
  background: var(--color-page-background);
}

.clipper-cool-preview .app-shell,
.clipper-cool-preview .page-content { background: var(--color-page-background); }

.clipper-cool-preview .site-header {
  border-color: var(--color-border);
  background: rgba(255, 255, 255, .97);
  box-shadow: none;
}

/* Logo and the existing menu icon shapes are intentionally untouched. */
.clipper-cool-preview .side-navigation {
  border-color: var(--color-border);
  background: var(--color-surface);
}
.clipper-cool-preview .sidebar-group-label { color: var(--color-text-muted); }
.clipper-cool-preview .sidebar-link { color: var(--color-text-secondary); }
.clipper-cool-preview .sidebar-link > span:first-child { color: #7f91a3; }
.clipper-cool-preview .sidebar-link:hover {
  color: var(--color-text-primary);
  background: #f1f5f7;
}
.clipper-cool-preview .sidebar-link.is-active {
  color: var(--color-text-primary);
  background: var(--color-selection);
  box-shadow: inset 3px 0 var(--color-primary);
}
.clipper-cool-preview .sidebar-link.is-active > span:first-child { color: var(--color-primary); }

.clipper-cool-preview :is(.intro, .work-intro) .eyebrow,
.clipper-cool-preview .breadcrumbs,
.clipper-cool-preview .breadcrumbs a { color: var(--color-text-secondary); }
.clipper-cool-preview :is(.intro, .work-intro) h1 {
  color: var(--color-text-heading);
  font-weight: 700;
}
.clipper-cool-preview :is(.intro, .work-intro) p:not(.eyebrow) { color: var(--color-text-secondary); }
.clipper-cool-preview .breadcrumbs span:last-child { color: var(--color-text-primary); }

.clipper-cool-preview.brand-system-preview .task-primary,
.clipper-cool-preview .next-action-complete {
  color: #fff;
  border-color: var(--color-primary);
  background: var(--color-primary);
  box-shadow: none;
}
.clipper-cool-preview.brand-system-preview .task-primary:hover,
.clipper-cool-preview .next-action-complete:hover {
  border-color: var(--color-primary-hover);
  background: var(--color-primary-hover);
}
.clipper-cool-preview .task-secondary {
  color: var(--color-text-secondary);
  border-color: var(--color-border);
  background: #fff;
}
.clipper-cool-preview .task-secondary:hover {
  color: var(--color-primary);
  border-color: var(--color-border-strong);
  background: #f7fafb;
}
.clipper-cool-preview :is(button, a):active { transform: translateY(1px); }

.clipper-cool-preview.brand-system-preview :is(input, select, textarea):focus-visible,
.clipper-cool-preview .payment-cycle-fields input:focus,
.clipper-cool-preview .task-dialog :is(input, select):focus {
  outline: 0;
  border-color: var(--color-primary);
  box-shadow: var(--focus-cool-ring);
}

/* Dashboard: keep normal values navy and reserve state colors for real states. */
.clipper-cool-preview.dashboard-page {
  --dash-navy: var(--color-text-primary);
  --dash-blue: var(--color-primary);
  --dash-blue-soft: var(--color-selection);
  --dash-green: var(--color-success);
  --dash-green-soft: #edf7f4;
  --dash-amber: var(--color-warning);
  --dash-line: var(--color-border);
  --dash-shadow: var(--shadow-cool-card);
}
.clipper-cool-preview.dashboard-page .intro .eyebrow { color: var(--color-text-secondary); }
.clipper-cool-preview.dashboard-page .overview-card,
.clipper-cool-preview.dashboard-page .dashboard-panel,
.clipper-cool-preview.dashboard-page .next-action-section,
.clipper-cool-preview.dashboard-page .dashboard-ai-preview {
  border-color: var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-cool-card);
}
.clipper-cool-preview.dashboard-page .overview-card.is-clickable:hover,
.clipper-cool-preview.dashboard-page .operation-alert-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-cool-card);
}
.clipper-cool-preview.dashboard-page :is(
  .overview-heading,
  .target-label-block > b,
  .target-number-line strong,
  .target-number-line b,
  .previous-metric > strong,
  .previous-conversion strong,
  .sales-goal,
  .operation-alert-card h3,
  .operation-card-state strong,
  .next-action-time,
  .next-action-copy b
) { color: var(--color-text-primary) !important; }
.clipper-cool-preview.dashboard-page :is(
  .target-progress-meta b,
  .overview-detail-link,
  .operation-card-link,
  .operation-card-state button,
  .next-action-kicker,
  .next-action-confirm
) { color: var(--color-link); }
.clipper-cool-preview.dashboard-page .overview-progress i { background: var(--color-primary); }
.clipper-cool-preview.dashboard-page .overview-target-row.is-success .overview-progress i { background: var(--color-success); }
.clipper-cool-preview.dashboard-page :is(.overview-target-row.is-attention, .overview-target-row.is-late) .overview-progress i { background: var(--color-warning); }
.clipper-cool-preview.dashboard-page .target-state.is-late,
.clipper-cool-preview.dashboard-page .next-action-copy em.is-overdue {
  color: var(--color-danger);
  background: #fdf0f1;
}
.clipper-cool-preview.dashboard-page .next-action-section.is-overdue { border-left-color: var(--color-danger); }
.clipper-cool-preview.dashboard-page .operation-alert-card.is-urgent {
  border-color: #edc6c9;
  background: #fff;
}

/* Today's work: 0 and unfinished values are ordinary data, not warnings. */
.clipper-cool-preview .task-overview,
.clipper-cool-preview .task-shift,
.clipper-cool-preview .task-dialog {
  border-color: var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-cool-card);
}
.clipper-cool-preview .task-overview article,
.clipper-cool-preview .task-progress,
.clipper-cool-preview .task-shift-heading,
.clipper-cool-preview .task-item { border-color: var(--color-border); }
.clipper-cool-preview .task-overview article strong,
.clipper-cool-preview .task-overview .complete strong,
.clipper-cool-preview .task-overview .remaining strong,
.clipper-cool-preview .task-overview .handoff strong,
.clipper-cool-preview .task-progress strong { color: var(--color-text-primary); }
.clipper-cool-preview .task-progress { background: #f8fafb; }
.clipper-cool-preview .progress-track { background: #e5ebef; }
.clipper-cool-preview .progress-track span { background: var(--color-primary); }
.clipper-cool-preview .task-shift-heading,
.clipper-cool-preview .task-shift.middle .task-shift-heading,
.clipper-cool-preview .task-shift.late .task-shift-heading { background: #f5f8fa; }
.clipper-cool-preview .task-title-row em { color: var(--color-primary); background: var(--color-selection); }
.clipper-cool-preview .task-check input:checked + span { border-color: var(--color-success); background: var(--color-success); }
.clipper-cool-preview .handoff-field input { accent-color: var(--color-primary); }
.clipper-cool-preview .inquiry-reminder {
  color: var(--color-text-primary);
  border-color: var(--color-border);
  background: #f8fafb;
}
.clipper-cool-preview .inquiry-reminder > span { color: var(--color-primary); background: var(--color-selection); }

/* Payment cycles: make form boundaries explicit and the required note neutral. */
.clipper-cool-preview .payment-cycle-form,
.clipper-cool-preview .payment-cycle-records,
.clipper-cool-preview .payment-cycle-row {
  border-color: var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-cool-card);
}
.clipper-cool-preview .payment-cycle-required {
  padding: 0;
  color: var(--color-text-muted);
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 400;
}
.clipper-cool-preview .payment-cycle-fields input {
  min-height: 44px;
  color: var(--color-text-primary);
  border-color: var(--color-border) !important;
  border-radius: 10px;
  background: #fff;
}
.clipper-cool-preview .payment-cycle-fields input:focus,
.clipper-cool-preview .task-dialog :is(input, select):focus {
  border-color: var(--color-primary) !important;
  box-shadow: var(--focus-cool-ring) !important;
}
.clipper-cool-preview .payment-cycle-fields input::placeholder { color: var(--color-text-muted); }
.clipper-cool-preview .payment-cycle-message.is-success { color: var(--color-success); }
.clipper-cool-preview .payment-cycle-message.is-error { color: var(--color-danger); }
.clipper-cool-preview .payment-cycle-status-button {
  color: var(--color-warning);
  border-color: #e7d3b7;
  background: #fffaf2;
}
.clipper-cool-preview .payment-cycle-status-button.is-paid {
  color: var(--color-success);
  border-color: #c9dfd7;
  background: #edf7f4;
}
.clipper-cool-preview .payment-cycle-delete:hover {
  color: var(--color-danger);
  border-color: #e9c4c7;
  background: #fdf4f4;
}

/* Global header search: use the same cool, precise tone on every CLIPPER page. */
.site-header .console-search {
  height: 40px;
  padding: 0 13px;
  color: #8c9aaa;
  border-color: #dce4ea;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.site-header .console-search:hover {
  border-color: #b9cbd8;
}

.site-header .console-search:focus-within,
.dashboard-page .site-header .console-search:focus-within {
  color: #337ba5;
  border-color: #337ba5;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(51, 123, 165, .14);
}

.site-header .console-search input {
  color: #10243a;
  font-size: 13px;
}

.site-header .console-search input::placeholder {
  color: #8c9aaa;
}

.site-header .portal-search-results {
  border-color: #dce4ea;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(16, 36, 58, .08);
}

.site-header .portal-search-results a {
  color: #10243a;
  border-color: #edf1f4;
}

.site-header .portal-search-results a:hover {
  background: #eaf2f7;
}

.site-header .portal-search-results small,
.site-header .portal-search-results p {
  color: #66778a;
}

/* Global account control: keep brand warmth in the logo, not routine controls. */
.site-header .avatar {
  color: #ffffff;
  background: #245f83;
  box-shadow: none;
}

.site-header .staff-button:hover {
  color: #10243a;
  border-color: transparent;
  background: #f1f5f7;
}

.site-header .staff-button:focus-visible {
  outline-color: #337ba5;
  box-shadow: 0 0 0 3px rgba(51, 123, 165, .14);
}

/* Shared selected navigation: match the dashboard on every console page. */
.brand-system-preview .sidebar-link.is-active {
  color: #10243a;
  background: #eaf2f7;
  box-shadow: inset 3px 0 #245f83;
}
.brand-system-preview .sidebar-link.is-active > span:first-child { color: #245f83; }
.brand-system-preview .mobile-navigation-link.is-active {
  color: #245f83;
  background: #eaf2f7;
}

/* Shared action colors; semantic warning/error colors retain their own tokens. */
.brand-system-preview :is(button, a) {
  --brand-coral: #245f83;
  --brand-coral-strong: #1c4e6d;
  --brand-coral-soft: #eaf2f7;
  --console-blue: #337ba5;
  --cliper-gradient: linear-gradient(#245f83, #245f83);
}
.brand-system-preview :is(.brand-primary-button, .task-primary, .primary-button, .save-button, .register-button, .dashboard-action-primary, .modal-primary, button[type="submit"]) {
  background: #245f83;
  border-color: #245f83;
  color: #fff;
  box-shadow: none;
}
.brand-system-preview :is(.brand-primary-button, .task-primary, .primary-button, .save-button, .register-button, .dashboard-action-primary, .modal-primary, button[type="submit"]):hover {
  background: #1c4e6d;
  border-color: #1c4e6d;
  box-shadow: none;
}
.brand-system-preview :is(.card-action, .task-secondary, .admin-link, .reset-button, .reset-preview, .inventory-refills-manage-link, .overview-detail-link, .context-operation-guide) {
  color: #337ba5;
  border-color: #b9cbd8;
}
.brand-system-preview :is(.card-action, .task-secondary, .admin-link, .reset-button, .reset-preview, .inventory-refills-manage-link, .overview-detail-link, .context-operation-guide):hover {
  color: #245f83;
  background: #eaf2f7;
  border-color: #b9cbd8;
}
.brand-system-preview :is(button, a):focus-visible {
  outline: 3px solid rgba(51, 123, 165, .25);
  outline-offset: 2px;
  box-shadow: none;
}
.brand-system-preview :is(.task-tab, .sales-weekday-button, .account-level, .account-tab, .inventory-refills-filter, .inventory-refills-filters button, .therapist-workflow-tab, .therapist-tab, .manual-guide-tabs button, .manual-feedback-options button).is-active {
  border-color: #b9cbd8;
}

/* Room selection uses the same blue as the main navigation. */
.brand-system-preview .room-list-item { cursor: pointer; }
.brand-system-preview .room-list-item:hover { background: #f1f5f7; }
.brand-system-preview .room-list-item.is-selected {
  background: #eaf2f7;
  box-shadow: inset 3px 0 #245f83;
}

/* 操作ガイド: 新人が日常操作を順番に覚え、慣れた人は画面名からすぐ探せる入口。 */
.manual-eyebrow { margin: 0 0 6px; color: var(--console-blue); font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.manual-starter { margin: 18px 0; padding: 22px; border: 1px solid var(--console-line); border-radius: 12px; background: #fff; }
.manual-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.manual-section-heading span { color: var(--console-blue); font-size: 12px; font-weight: 700; }
.manual-section-heading h2 { margin: 3px 0 0; font-size: 20px; }
.manual-section-heading p { margin: 0; color: var(--console-muted); font-size: 12px; }
.manual-starter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.manual-starter-grid a { display: flex; align-items: center; gap: 11px; min-height: 76px; padding: 13px; color: var(--console-ink); border: 1px solid #d5e2ec; border-radius: 9px; background: #fff; text-decoration: none; transition: border-color .16s ease, background .16s ease; }
.manual-starter-grid a:hover { border-color: #8db9d8; background: #f4f9fd; }
.manual-starter-grid b { display: grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; color: #fff; border-radius: 50%; background: var(--console-blue); font-size: 13px; }
.manual-starter-grid span { display: grid; gap: 4px; min-width: 0; }
.manual-starter-grid strong { font-size: 13px; line-height: 1.4; }
.manual-starter-grid small { color: var(--console-muted); font-size: 11px; }
.manual-tree-node small { margin-left: auto; color: var(--console-muted); font-size: 10px; }
.manual-escalation-note { display: flex; gap: 16px; margin: 18px 0 0; padding: 14px 16px; color: #4f6273; border: 1px solid #dce6ee; border-radius: 9px; background: #f7fafc; font-size: 12px; line-height: 1.6; }
.manual-escalation-note strong { flex: 0 0 auto; color: var(--console-ink); }

@media (max-width: 1000px) { .manual-starter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .manual-starter { padding: 16px; }
  .manual-section-heading { align-items: start; }
  .manual-section-heading p { display: none; }
  .manual-starter-grid { grid-template-columns: 1fr; }
  .manual-escalation-note { display: grid; gap: 4px; }
}
