/* Clinical reserve: visual layer only. Univer owns its canvas and editing UI. */
:root {
  --ink: #132a3f;
  --primary: #1e4b72;
  --primary-mid: #2c6491;
  --success: #356b5e;
  --warning: #a9843f;
  --danger: #a83e32;
  --paper: #f7f9fb;
  --line: #e6ebf1;
  --soft: #edf3f8;
  --text: #3d4e60;
  --muted: #78889a;
  --title-font: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, Georgia, serif;
  --body-font: Inter, DengXian, "Microsoft YaHei", "PingFang SC", sans-serif;
  font-family: var(--body-font);
  color: var(--text);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
}
body { background: var(--paper); }
button, input, select, textarea { font-family: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--primary-mid); outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .5; }
.muted, .page-subtitle, .section-caption { color: var(--muted); }
.brand-mark {
  display: flex; align-items: center; justify-content: center; gap: 3px;
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px;
  color: #fff; background: var(--ink); box-shadow: 0 5px 12px #132a3f12;
}
.brand-mark i { display: block; width: 2px; height: 12px; border-radius: 2px; background: currentColor; }
.brand-mark i:nth-child(2) { height: 20px; }
.brand-mark i:nth-child(3) { height: 15px; }
.brand-mark i:nth-child(4) { height: 17px; }
.brand strong, .auth-brand strong { font-family: var(--title-font); font-size: 20px; font-weight: 600; color: var(--ink); }
.brand small, .auth-brand small { font-size: 9px; letter-spacing: .24em; color: var(--muted); margin-top: 3px; }
.main-view { grid-template-columns: 236px minmax(0, 1fr); }
.sidebar { background: #ffffffed; color: var(--text); border-right: 1px solid var(--line); padding: 28px 16px 18px; }
.brand { padding: 0 8px 34px; gap: 12px; }
.nav-label { color: #91a0b2; letter-spacing: .18em; margin-bottom: 5px; padding-left: 12px; }
.nav-list { gap: 7px; }
.nav-item {
  position: relative; min-height: 44px; padding: 11px 13px; gap: 13px; border: 1px solid transparent;
  border-radius: 10px; color: var(--text); font-size: 14px;
}
.nav-item span { width: 19px; color: #7d91a7; font-size: 18px; line-height: 1; }
.nav-item:hover { background: #f4f7fa; color: var(--primary); }
.nav-item.is-active { border-color: #d9e5ef; background: var(--soft); color: var(--primary); font-weight: 600; }
.nav-item.is-active::before { content: ""; position: absolute; left: -17px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--primary); }
.nav-item.is-active span { color: var(--primary); }
.sidebar-foot { border-color: var(--line); color: var(--muted); padding: 17px 9px 0; line-height: 1.6; }
.sidebar-foot small { color: #99a7b7; }
.online-dot { background: #3a9d80; box-shadow: 0 0 0 4px #3a9d8017; }
.content-area {
  background-color: var(--paper);
  background-image: radial-gradient(ellipse at 100% 0%, #2c649110, transparent 55%), radial-gradient(ellipse at 0% 20%, #356b5e09, transparent 45%), linear-gradient(#132a3f07 1px, transparent 1px), linear-gradient(90deg, #132a3f07 1px, transparent 1px);
  background-size: auto, auto, 28px 28px, 28px 28px;
}
.topbar { min-height: 62px; height: auto; padding: 17px 34px; background: #ffffffed; border-color: var(--line); gap: 16px; }
.breadcrumb { color: var(--muted); font-size: 12px; white-space: nowrap; }
.top-user { gap: 10px; color: var(--text); flex-wrap: wrap; justify-content: flex-end; }
.avatar { background: var(--primary); width: 30px; height: 30px; }
#userName { color: var(--text); font-size: 13px; overflow-wrap: anywhere; max-width: 160px; }
#todayLabel { color: var(--muted); margin-right: 12px; }
.user-menu { border-radius: 10px; border-color: var(--line); box-shadow: 0 6px 20px #132a3f12; }
.user-menu button:hover { background: var(--soft); }
.page-content { max-width: 1420px; padding: 30px 34px 42px; }
.page-heading { gap: 20px; margin-bottom: 22px; }
.page h1, .auth-intro h1 { font-family: var(--title-font); color: var(--ink); font-size: 30px; line-height: 1.3; font-weight: 600; }
.page-subtitle { font-size: 13px; line-height: 1.7; margin-top: 9px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--primary); font-size: 10px; letter-spacing: .18em; margin-bottom: 12px; }
.eyebrow::before { content: ""; display: inline-block; width: 20px; height: 1px; background: #8faac2; flex-shrink: 0; }
.filters { align-items: center; }
.filter-input, .filter-select, .auth-form input, .auth-form select, .form-field input, .form-field select, .form-field textarea {
  color: var(--ink); border-color: #dfe6ee; border-radius: 9px; background: #fff;
}
.filter-input:focus, .filter-select:focus, .auth-form input:focus, .auth-form select:focus, .form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: #8faac2; box-shadow: 0 0 0 3px #1e4b7210;
}
input::placeholder, textarea::placeholder { color: #8b9bac; opacity: 1; }
.primary-btn, .secondary-btn { border-radius: 9px; font-weight: 500; padding: 10px 15px; }
.primary-btn { color: #fff; background: var(--ink); }
.primary-btn:hover { background: var(--primary); }
.secondary-btn { color: var(--primary); background: #fff; border: 1px solid #dfe6ee; }
.secondary-btn:hover { background: var(--soft); border-color: #bccfdf; }
.link-btn { color: var(--primary); }
.status-remove { color: var(--danger); background: #fcf2f0; border: 1px solid #f0d7d1; border-radius: 7px; }
.primary-btn.is-danger { background: var(--danger); border-color: var(--danger); }
.primary-btn.is-danger:hover { background: #90352b; }
.card, .section { border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px #1024380a; }
.section { padding: 20px; margin-bottom: 16px; }
.section h2 { font-family: var(--title-font); color: var(--ink); font-size: 19px; font-weight: 600; }
.section-caption { line-height: 1.65; }
.section-head { margin-bottom: 19px; }
.data-table th { color: var(--muted); background: #fafcfe; font-size: 12px; border-bottom-color: var(--line); }
.data-table td { color: var(--text); font-variant-numeric: tabular-nums; border-bottom-color: #edf1f5; }
.data-table th, .data-table td { padding: 13px 10px; }
.pill, .tag, .permission-chip { background: var(--soft); color: var(--primary); }
.notice, .inline-hint, .record-context { background: #f4f7fa; border-color: #dfe7ee; color: #62788d; }
.delta-up { color: var(--success); }
.delta-down { color: var(--danger); }
.modal-backdrop { background: #132a3f57; backdrop-filter: blur(3px); }
.app-modal { border-radius: 18px; border-color: var(--line); box-shadow: 0 16px 48px #132a3f22; }
.app-modal-head { padding: 20px 22px; border-color: var(--line); }
.app-modal-head h2 { font-family: var(--title-font); color: var(--ink); font-size: 21px; font-weight: 600; }
.app-modal-body { padding: 18px 22px; }
.app-modal-actions { padding: 15px 22px; border-color: var(--line); }
.modal-close { color: #8b9bac; }
.toast { border-radius: 12px; box-shadow: 0 8px 24px #132a3f15; }
.criteria-row { background: #fafcfe; border-color: var(--line); border-radius: 9px; }
.criteria-delete { color: #9aa6b5; }
.attachment-row { padding: 15px; border-radius: 12px; border-color: var(--line); gap: 15px; }
.attachment-row strong { color: var(--ink); font-weight: 500; }
.attachment-actions { flex-shrink: 0; gap: 9px; }
.attachment-history-head { color: var(--muted); }
.attachment-history .attachment-row { background: #fafcfe; }
.attachment-main strong { white-space: normal; overflow-wrap: anywhere; }
.private-chip, .private-chip[aria-pressed="true"] { color: var(--primary); border-color: #c8d9e7; background: var(--soft); }

/* Preserve the full status and plan content, with stable matching grid columns. */
#page-dashboard, #page-dashboard * { font-family: var(--body-font); }
#page-dashboard h1, #page-dashboard h2 { font-family: var(--title-font); }
.dashboard-heading { align-items: flex-end; }
#page-dashboard h1 { font-size: 34px; }
.dashboard-heading .filters { flex-shrink: 0; }
#dashSearch { width: 240px; max-width: 100%; }
#dashUpdated { letter-spacing: .08em; }
#page-dashboard .stat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
#page-dashboard .stat-card { padding: 18px 17px 16px; min-width: 0; }
#page-dashboard .stat-label { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.stat-label i { width: 5px; height: 5px; border-radius: 50%; background: var(--primary-mid); }
.stat-pending-consent .stat-label i { background: var(--warning); }
.stat-enrollment .stat-label i { background: var(--success); }
#page-dashboard .stat-value { display: flex; align-items: baseline; gap: 7px; font-size: 34px; font-weight: 500; color: var(--ink); line-height: 1.4; margin: 9px 0 7px; }
#page-dashboard .stat-value > span { font-family: Georgia, var(--title-font); }
#page-dashboard .stat-value small { color: var(--muted); font-size: 12px; font-weight: 400; }
#page-dashboard .stat-note { font-size: 11px; line-height: 1.6; color: var(--muted); }
#page-dashboard .bar-visual { grid-template-columns: 200px minmax(0, 1fr) 42px; gap: 16px; padding: 15px 0; margin: 0; border-bottom: 1px solid #edf1f5; }
#page-dashboard .bar-visual:last-child { border-bottom: 0; padding-bottom: 0; }
#page-dashboard .bar-label { white-space: normal; overflow-wrap: anywhere; }
#page-dashboard .bar-label strong, #page-dashboard .bar-label .muted { font-size: 15px; }
#page-dashboard .bar-label strong { color: var(--ink); font-weight: 600; }
#page-dashboard .bar-label .muted { display: inline-block; font-size: 14px; margin-top: 3px; }
#page-dashboard .bar-track { height: 22px; border-radius: 5px; background: #f1f5f9; }
#page-dashboard .bar-segment { border-right: 2px solid #fff; font-size: 11px; }
#page-dashboard .bar-segment:last-child { border-right: 0; }
#page-dashboard .bar-total { color: var(--ink); font-size: 16px; font-weight: 600; }
#page-dashboard .legend { flex-wrap: wrap; justify-content: center; width: 100%; max-width: 100%; overflow: visible; white-space: normal; row-gap: 5px; column-gap: 15px; font-size: 12px; color: var(--muted); }
#page-dashboard .legend > span { white-space: nowrap; }
#page-dashboard .legend .comparison { font-size: 13px; }
#page-dashboard .plan-section-head h2 { font-size: 19px; }
#page-dashboard .plan-section-head .section-caption { font-size: 12px; }
#page-dashboard .plan-grid { overflow-x: auto; gap: 0; }
#page-dashboard .plan-row { grid-template-columns: 160px minmax(0, 1fr); gap: 7px 18px; min-width: 870px; padding: 18px 0; border-bottom-color: var(--line); align-items: start; }
#page-dashboard .plan-row > strong { grid-column: 1; grid-row: 1; color: var(--ink); font-size: 14px; padding-top: 14px; overflow-wrap: anywhere; }
#page-dashboard .plan-row > .muted { grid-column: 1; grid-row: 1; padding-top: 40px; font-size: 13px; overflow-wrap: anywhere; }
#page-dashboard .plan-bars { grid-column: 2; grid-row: 1; gap: 0; }
#page-dashboard .plan-bars, #page-dashboard .plan-period-head, #page-dashboard .plan-cell { grid-template-columns: 95px repeat(6, minmax(82px, 1fr)); column-gap: 6px; }
#page-dashboard .plan-period-head { padding: 10px 8px; color: var(--muted); background: #f8fafc; border-radius: 6px; font-size: 12px; }
#page-dashboard .plan-cell { border-radius: 0; padding: 10px 8px; background: #fff; border-bottom: 1px solid #f0f3f7; }
#page-dashboard .plan-cell:last-child { border-bottom: 0; }
#page-dashboard .plan-cell > span { font-size: 13px; color: var(--text); }
#page-dashboard .plan-cell b { font-size: 16px; font-weight: 500; color: var(--ink); }
#page-dashboard .plan-cell b.plan-next { color: var(--primary-mid); }

/* Login keeps the existing forms, validation and authentication handlers. */
.auth-view { display: grid; width: 100%; grid-template-columns: 51% 49%; align-items: stretch; align-content: stretch; gap: 0; min-height: 100vh; background: var(--paper); }
.auth-story { position: relative; overflow: hidden; padding: 48px; display: flex; flex-direction: column; color: #fff; min-height: 100vh; background-color: var(--ink); background-image: radial-gradient(ellipse at 100% 100%, #2c64912e, transparent 55%), linear-gradient(#ffffff09 1px, transparent 1px), linear-gradient(90deg, #ffffff09 1px, transparent 1px); background-size: auto, 30px 30px, 30px 30px; }
.auth-story, .auth-workspace { width: 100%; min-width: 0; }
.auth-brand { margin: 0; gap: 12px; }
.auth-brand strong { color: #fff; }
.auth-brand small { color: #839caf; }
.auth-brand .brand-mark { color: #fff; border: 1px solid #ffffff26; background: #ffffff0c; box-shadow: none; }
.auth-story-copy { margin-block: auto; padding: 70px 0; max-width: 550px; }
.auth-story .eyebrow { color: #8eb1cb; margin-bottom: 24px; letter-spacing: .2em; }
.auth-story-copy h2 { margin: 0 0 24px; font-family: var(--title-font); font-weight: 500; font-size: 46px; line-height: 1.5; }
.auth-story-copy h2 span { color: #91b5cf; }
.auth-story-copy p { max-width: 470px; color: #a0b0bf; font-size: 13px; line-height: 2; margin: 0; }
.auth-story-bottom { border-top: 1px solid #ffffff26; padding-top: 25px; }
.auth-principles { display: flex; gap: 44px; }
.auth-principles strong { display: block; font-family: var(--title-font); font-size: 24px; font-weight: 500; }
.auth-principles small { display: block; font-size: 10px; letter-spacing: .16em; color: #94a6b7; margin-top: 7px; }
.auth-story .auth-footer { text-align: left; color: #7890a4; font-size: 10px; margin-top: 30px; }
.auth-workspace { display: flex; align-items: center; justify-content: center; padding: 42px; background-image: radial-gradient(ellipse at 85% 0%, #2c64910b, transparent 60%), linear-gradient(#132a3f07 1px, transparent 1px), linear-gradient(90deg, #132a3f07 1px, transparent 1px); background-size: auto, 28px 28px, 28px 28px; }
.auth-card { width: 100%; max-width: 390px; border: 0; border-radius: 0; padding: 0; background: transparent; box-shadow: none; }
.auth-intro h1 { font-size: 32px; margin: 23px 0 14px; }
.auth-intro > p { font-size: 12px; line-height: 1.8; margin: 0 0 24px; }
.auth-intro .eyebrow { font-size: 11px; }
.auth-tabs { margin: 0 0 26px; padding: 0; gap: 24px; border-bottom-color: #dfe6ee; }
.auth-tab { padding: 8px 0 12px; font-size: 13px; position: relative; color: var(--muted); border: 0; }
.auth-tab.is-active { color: var(--ink); font-weight: 600; }
.auth-tab.is-active::after { content: ""; position: absolute; bottom: -1px; height: 2px; background: var(--ink); left: 0; right: 0; border-radius: 2px; }
.auth-form { gap: 16px; }
.auth-form > h1, .auth-form > p.muted { display: none; }
.auth-form label { color: #506377; font-size: 12px; gap: 7px; }
.auth-form input, .auth-form select { padding: 11px 12px; min-width: 0; }
.auth-form .primary-btn { padding: 13px 16px; }
.auth-options { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.auth-checks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 15px; }
.auth-options .check-line { display: flex; flex-direction: row; gap: 8px; color: var(--muted); }
.auth-options input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--primary); box-shadow: none; margin: 0; }
.auth-credential-hint { margin: -8px 0 0; text-align: left; }
.auth-form .form-error:empty { display: none; }
.auth-hint { margin: 0; line-height: 1.7; font-size: 11px; }
.auth-activation { text-align: center; font-size: 11px; color: var(--muted); margin-top: 23px; padding-top: 17px; border-top: 1px solid var(--line); }
.auth-activation .link-btn { padding: 0; }
.auth-form .inline-form { align-items: stretch; }
.auth-form .inline-form .secondary-btn { white-space: nowrap; font-size: 12px; }

@media (min-width: 1650px) {
  .auth-story { padding: 60px; }
  .auth-card { max-width: 440px; }
}
@media (max-width: 1220px) {
  .page-content { padding: 25px 24px 38px; }
  .topbar { padding-inline: 24px; }
  #page-dashboard .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-heading { flex-wrap: wrap; }
  .dashboard-heading .filters { width: 100%; justify-content: flex-start; }
  .auth-story { padding: 36px; }
}
@media (max-width: 900px) {
  .main-view { grid-template-columns: 72px minmax(0, 1fr); }
  .sidebar { padding: 22px 10px; }
  .brand { padding: 0 5px 30px; }
  .brand > span:last-child, .nav-label { display: none; }
  .nav-item { font-size: 0; padding: 10px; gap: 0; }
  .nav-item.is-active::before { left: -11px; }
  .nav-item span { font-size: 19px; }
  #todayLabel { display: none; }
  #page-dashboard .bar-visual { grid-template-columns: 145px minmax(0, 1fr) 38px; gap: 12px; }
  .auth-view { grid-template-columns: 44% 56%; }
  .auth-story { padding: 28px; }
  .auth-story-copy h2 { font-size: 30px; }
  .auth-principles { gap: 22px; }
  .auth-workspace { padding: 32px; }
}
@media (max-width: 680px) {
  .topbar { padding: 12px 14px; align-items: flex-start; }
  .top-user { gap: 6px; }
  .breadcrumb { display: none; }
  .top-user { margin-left: auto; }
  .page-content { padding: 23px 14px 30px; }
  .page h1, #page-dashboard h1 { font-size: 26px; }
  .section { padding: 15px; }
  .dashboard-heading .filters { display: flex; flex-wrap: nowrap; }
  #dashSearch { width: 100%; min-width: 0; }
  #dashRefresh { flex-shrink: 0; }
  #page-dashboard .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #page-dashboard .stat-card { padding: 14px; }
  #page-dashboard .stat-card:last-child { grid-column: 1 / -1; }
  #page-dashboard .stat-value { font-size: 29px; }
  #page-dashboard .stat-label { font-size: 12px; }
  #page-dashboard .bar-visual { grid-template-columns: minmax(0, 1fr) 36px; gap: 10px; }
  #page-dashboard .bar-label { grid-column: 1 / -1; }
  #page-dashboard .bar-label strong { margin-right: 9px; }
  #page-dashboard .bar-label br { display: none; }
  #page-dashboard .bar-label .muted { margin-top: 0; }
  #page-dashboard .legend { gap: 5px 12px; }
  .app-modal-body { padding: 15px; }
  .attachment-actions { flex-wrap: wrap; }
  .auth-view { display: block; }
  .auth-story { min-height: 0; padding: 24px; width: 100%; }
  .auth-story-copy, .auth-story-bottom { display: none; }
  .auth-workspace { padding: 32px 24px 42px; min-height: calc(100vh - 86px); align-items: flex-start; width: 100%; }
  .auth-intro h1 { font-size: 29px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
.project-head { flex-wrap: wrap; }
.project-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.project-actions .secondary-btn { padding: 7px 10px; }

/* Follow-up visits share the Univer grid while keeping the original reserve sheet intact. */
#page-dashboard .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.followup-workspace { min-width: 0; }
.followup-config-grid, .followup-config-row { display: grid; grid-template-columns: 78px minmax(145px, 1.1fr) minmax(220px, 1.5fr) 92px 92px 68px 68px; gap: 8px; align-items: center; }
.followup-config-grid { padding: 8px 4px; color: #718096; font-size: 11px; background: #f7f9fc; }
.followup-config-row { padding: 9px 4px; border-bottom: 1px solid #edf0f4; }
.followup-config-list { overflow-x: auto; }
.followup-config-row .filter-input { min-width: 0; }
.followup-window-label { display: flex; align-items: center; gap: 4px; white-space: nowrap; color: #718096; }
.followup-window-label input { width: 58px; min-width: 0; padding: 8px; }
.followup-config-note { margin-top: 12px; }
.followup-readonly-config { display: flex; flex-wrap: wrap; gap: 7px; }
.followup-univer-host { height: 600px; }
.followup-sheet-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 13px; }
.followup-legend { display: flex; gap: 7px; flex-wrap: wrap; }
.followup-legend b, .followup-badge { display: inline-flex; align-items: center; border-radius: 99px; padding: 4px 9px; font-size: 11px; font-weight: 500; white-space: nowrap; }
.in-window { background: #e4f5eb; color: #18794e; }
.out-window { background: #fde8e7; color: #b42318; }
.pending { background: #f1f3f5; color: #667085; }
.overdue { background: #fff0d9; color: #b54708; }
.followup-reminder-list { display: grid; }
.followup-group-heading { font-size: 12px; color: var(--ink); margin: 14px 0 4px; }
.followup-reminder-row { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(210px, 1fr) auto auto; align-items: center; gap: 14px; padding: 11px 3px; border-bottom: 1px solid #edf0f4; }
.followup-reminder-primary, .followup-reminder-date { display: grid; gap: 4px; }
.followup-reminder-primary strong, .followup-reminder-date strong { font-size: 12px; }
.followup-reminder-primary span, .followup-reminder-date span, .followup-reminder-row small { font-size: 11px; color: #718096; }
.followup-empty { padding: 19px; }
.my-reminder-form { display: grid; grid-template-columns: minmax(180px, 1.3fr) minmax(150px, .8fr) minmax(180px, 1fr) auto; gap: 8px; align-items: center; }
.my-reminder-form .filter-input { min-width: 0; }
.personal-reminder-list { list-style: none; margin: 9px 0 0; padding: 0; }
.personal-reminder-row { display: flex; align-items: center; gap: 10px; padding: 9px 3px; border-bottom: 1px solid #edf0f4; }
.personal-reminder-row.is-complete .personal-reminder-text strong { text-decoration: line-through; color: #8a95a5; }
.reminder-toggle { border: 1px solid #ced6e0; border-radius: 50%; background: #fff; color: #2ba876; width: 24px; height: 24px; flex: 0 0 24px; }
.personal-reminder-text { display: grid; gap: 3px; flex: 1; min-width: 0; }
.personal-reminder-text strong { font-size: 12px; overflow-wrap: anywhere; }
.personal-reminder-text span, .personal-reminder-text small { font-size: 11px; color: #718096; overflow-wrap: anywhere; }
.compact-empty { padding: 15px; }
.followup-fallback { margin-top: 10px; }
.followup-fallback-table { min-width: 1080px; }
.followup-fallback-table td { white-space: nowrap; }
.followup-fallback-table .followup-actual-date { min-width: 130px; }
.followup-fallback-table .in-window, .followup-fallback-table .out-window, .followup-fallback-table .pending, .followup-fallback-table .overdue { font-weight: 600; }
@media (max-width: 1220px) { #page-dashboard .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .followup-config-grid, .followup-config-row { grid-template-columns: 72px minmax(130px, 1fr) minmax(180px, 1.3fr) 84px 84px 62px 62px; }
  .followup-reminder-row { grid-template-columns: minmax(150px, 1fr) minmax(190px, 1fr) auto; }
  .followup-reminder-row small { grid-column: 1 / -1; }
  .my-reminder-form { grid-template-columns: 1fr 1fr; }
  .my-reminder-form input[name="title"] { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  #page-dashboard .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #page-dashboard .stat-card:last-child { grid-column: auto; }
  .followup-config-section, .followup-sheet-section { overflow: hidden; }
  .followup-config-grid { display: none; }
  .followup-config-row { grid-template-columns: 72px minmax(120px, 1fr) minmax(190px, 1.4fr) 84px 84px 62px 62px; min-width: 730px; }
  .followup-add-config { grid-template-columns: 1fr 1fr; min-width: 0; }
  .followup-add-config .followup-formula-input { grid-column: 1 / -1; }
  .followup-add-config button { justify-self: start; }
  .followup-reminder-row { grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
  .followup-reminder-date { grid-column: 1; }
  .followup-reminder-row .followup-badge { grid-column: 2; grid-row: 1 / 3; }
  .my-reminder-form { grid-template-columns: 1fr; }
  .my-reminder-form input[name="title"] { grid-column: auto; }
  .followup-univer-host { height: 520px; }
  .followup-legend { width: 100%; }
}
