/* Ordered legacy cascade part 04; preserve link order. */
/* 2026 module-specific workspace refresh */
.module-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.module-section-heading > div {
  display: grid;
  gap: 3px;
}

.module-section-heading h3 {
  margin: 0;
  color: var(--admin-ink);
  font-size: 18px;
}

.module-section-heading > span {
  color: var(--admin-muted);
  font-size: 12px;
}

.module-section-kicker {
  color: var(--admin-primary);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

/* Resource library: file manager */
#page-resources .resource-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.resource-recent-section {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.resource-quick-access {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.resource-quick-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 86px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--admin-line);
  border-radius: 14px;
  background: #ffffff;
  padding: 14px;
  text-align: left;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.04);
}

.resource-quick-card:hover {
  border-color: #c7cffc;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.1);
  transform: translateY(-1px);
}

.resource-file-icon,
.resource-card-file-icon {
  display: grid;
  width: 46px;
  height: 52px;
  place-items: end center;
  border-radius: 8px 8px 11px 11px;
  background: linear-gradient(150deg, #e9edff, #dce3ff);
  color: #4653c5;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding-bottom: 9px;
}

.resource-quick-installer .resource-file-icon,
.resource-kind-installer .resource-card-file-icon { background: linear-gradient(150deg, #f1eaff, #e7dcff); color: #6941c6; }
.resource-quick-material .resource-file-icon,
.resource-kind-material .resource-card-file-icon { background: linear-gradient(150deg, #e7f8ef, #d8f3e5); color: var(--ds-success); }
.resource-quick-problem .resource-file-icon,
.resource-kind-problem .resource-card-file-icon { background: linear-gradient(150deg, #fff3df, #ffe8bd); color: var(--ds-warning); }

.resource-quick-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.resource-quick-copy strong,
.resource-quick-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-quick-copy strong { color: #1d2939; font-size: 13px; }
.resource-quick-copy small { color: var(--admin-muted); font-size: 11px; font-weight: 500; }
.resource-quick-arrow { color: var(--ds-text-faint); font-size: 15px; }
.resource-quick-empty { grid-column: 1 / -1; border: 1px dashed var(--admin-line-strong); border-radius: 14px; color: var(--admin-muted); padding: 22px; text-align: center; }

.resource-library-layout {
  grid-template-columns: 230px minmax(0, 1fr);
  margin-top: 22px;
}

.resource-view-label {
  border: 1px solid var(--admin-line);
  border-radius: 999px;
  background: #f8f9fc;
  color: var(--ds-text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
}

.resource-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

.resource-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: start;
  gap: 7px 14px;
  border-radius: 12px;
  padding: 15px 16px;
  box-shadow: none;
}

.resource-card::before {
  inset: 0 0 auto 0;
  width: auto;
  height: 3px;
}

.resource-card-file-icon { grid-column: 1; grid-row: 1 / span 4; }
.resource-card-head { grid-column: 3; grid-row: 1; justify-content: flex-end; }
.resource-card h3 { grid-column: 2; grid-row: 1; align-self: center; font-size: 15px; }
.resource-meta-row { grid-column: 2 / 4; grid-row: 2; }
.resource-summary { grid-column: 2 / 4; grid-row: 3; margin: 0; color: var(--ds-text-muted); font-size: 12px; }
.resource-details,
.resource-tags,
.resource-file-row { grid-column: 2 / 4; }
.resource-card-actions { grid-column: 2; flex-wrap: wrap; margin-top: 4px; }
.resource-updated { grid-column: 3; align-self: end; justify-self: end; color: var(--ds-text-faint); font-size: 11px; }
.resource-kind-badge,
.resource-status { min-height: 22px; font-size: 10px; padding: 3px 7px; }

/* Learning planner: progress + priorities + daily schedule */
.timetable-learning-panel { gap: 20px; padding: 22px; }

.learning-plan-overview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  border: 1px solid #e0e4ff;
  border-radius: 16px;
  background: linear-gradient(120deg, #f7f8ff, #ffffff 58%, #f3f0ff);
  padding: 20px 22px;
}

.learning-plan-progress-ring,
.practice-score-ring,
.review-progress-ring {
  display: grid;
  width: 104px;
  height: 104px;
  place-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at center, #ffffff 0 61%, transparent 62%), conic-gradient(var(--admin-primary) calc(var(--learning-progress, 0) * 1%), #e5e7f7 0);
  text-align: center;
}

.learning-plan-progress-ring strong,
.practice-score-ring strong,
.review-progress-ring strong { color: #1d2939; font-size: 22px; }
.learning-plan-progress-ring span,
.practice-score-ring span,
.review-progress-ring span { color: var(--ds-text-muted); font-size: 10px; font-weight: 700; }

.learning-plan-goal h3 { margin: 4px 0 7px; color: var(--ds-text); font-size: 22px; }
.learning-plan-goal p { max-width: 650px; margin: 0; color: var(--ds-text-muted); font-size: 13px; line-height: 1.6; }
.learning-plan-overview-metrics { display: grid; grid-template-columns: repeat(3, auto); gap: 8px; }
.learning-plan-overview-metrics span { display: grid; gap: 2px; min-width: 86px; border-left: 1px solid #dfe3f3; color: var(--ds-text-muted); font-size: 10px; padding-left: 13px; }
.learning-plan-overview-metrics strong { color: var(--ds-text-secondary); font-size: 19px; }

.learning-plan-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(220px, 0.55fr);
  gap: 14px;
}

.learning-plan-card {
  min-width: 0;
  border: 1px solid var(--admin-line);
  border-radius: 14px;
  background: #ffffff;
  padding: 16px;
}

.learning-priority-list { display: grid; margin-top: 12px; }
.learning-priority-list article { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; border-top: 1px solid #eef0f5; padding: 11px 0; }
.learning-priority-list article > span { color: var(--ds-text-faint); font-size: 11px; font-weight: 800; }
.learning-priority-list article div { display: grid; min-width: 0; gap: 3px; }
.learning-priority-list article strong { color: var(--ds-text-secondary); font-size: 12px; }
.learning-priority-list article small { overflow: hidden; color: var(--ds-text-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.learning-priority-list article b { border-radius: 999px; background: #fff4e5; color: var(--ds-warning); font-size: 9px; padding: 4px 7px; }
.learning-plan-schedule .annual-course-list { margin-top: 12px; }
.learning-plan-pulse { background: linear-gradient(150deg, #29265f, #4942a0); color: #ffffff; }
.learning-plan-pulse .module-section-kicker { color: #c9c6ff; }
.learning-plan-pulse h3 { margin: 6px 0 12px; font-size: 18px; }
.learning-plan-pulse p { min-height: 70px; color: #dedcff; font-size: 11px; line-height: 1.65; }
.learning-pulse-bar { height: 7px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.18); }
.learning-pulse-bar span { display: block; height: 100%; border-radius: inherit; background: #a9a5ff; }
.learning-plan-pulse > div:not(.learning-pulse-bar) { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.14); padding: 9px 0; font-size: 11px; }

/* Practice center: quiz dashboard + recent attempts */
.practice-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(380px, .65fr);
  gap: 14px;
  margin-bottom: 18px;
}

.practice-focus-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid #dce1ff;
  border-radius: 16px;
  background: linear-gradient(125deg, #f1f3ff, #ffffff 62%, #f8efff);
  padding: 20px 22px;
}

.practice-focus-card h3 { margin: 5px 0 6px; color: var(--ds-text); font-size: 21px; }
.practice-focus-card p { margin: 0 0 14px; color: var(--ds-text-muted); font-size: 12px; }
.practice-focus-card button { min-height: 36px; }
.practice-score-ring { width: 94px; height: 94px; background: radial-gradient(circle at center, #ffffff 0 61%, transparent 62%), conic-gradient(var(--ds-brand) calc(var(--practice-progress, 0) * 1%), #e7e7f5 0); }

.practice-dashboard-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.practice-dashboard-metrics > div,
.training-summary-metrics > div { display: grid; min-width: 0; gap: 4px; border: 1px solid var(--admin-line); border-radius: 13px; background: #ffffff; padding: 14px; }
.practice-dashboard-metrics span,
.training-summary-metrics span { color: var(--ds-text-muted); font-size: 11px; }
.practice-dashboard-metrics strong,
.training-summary-metrics strong { color: var(--ds-text); font-size: 22px; }
.practice-dashboard-metrics small,
.training-summary-metrics small { color: var(--ds-text-faint); font-size: 10px; }

#page-learning .control-grid { grid-template-columns: minmax(0, 1fr) 370px; }
.practice-library-panel { min-width: 0; }
.practice-library-panel .summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.practice-recent-head { display: flex; justify-content: space-between; margin: 18px 0 8px; color: var(--ds-text-secondary); font-size: 12px; }
.practice-recent-head span { color: var(--ds-text-faint); font-size: 10px; }
.practice-recent-list { display: grid; gap: 6px; }
.practice-recent-item { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 9px; width: 100%; min-height: 52px; border-color: transparent; background: #f8f9fc; padding: 7px 9px; text-align: left; }
.practice-recent-item:hover,
.practice-recent-item.active { border-color: #d7dcff; background: #f1f3ff; }
.practice-recent-date { display: grid; place-items: center; align-self: stretch; border-radius: 8px; background: #ffffff; color: var(--ds-text-muted); font-size: 10px; font-weight: 800; }
.practice-recent-item > span:nth-child(2) { display: grid; min-width: 0; gap: 3px; }
.practice-recent-item strong,
.practice-recent-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.practice-recent-item strong { color: var(--ds-text-secondary); font-size: 11px; }
.practice-recent-item small { color: var(--ds-text-faint); font-size: 9px; }
.practice-recent-item b { border-radius: 999px; background: var(--ds-success-soft); color: var(--ds-success); font-size: 9px; padding: 4px 7px; }
.practice-recent-item b.pending { background: var(--ds-surface-muted); color: var(--ds-text-muted); }
.exam-side { position: sticky; top: 88px; }

/* Training log: summary + form/history */
.training-stats { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(420px, .75fr); gap: 14px; margin-bottom: 18px; }
.training-summary-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; border: 1px solid #d9e9e5; border-radius: 16px; background: linear-gradient(125deg, #effaf6, #ffffff 65%); padding: 20px 22px; }
.training-summary-hero h3 { margin: 5px 0 6px; color: var(--ds-text); font-size: 20px; }
.training-summary-hero p { max-width: 650px; margin: 0; color: var(--ds-text-muted); font-size: 12px; line-height: 1.6; }
.training-streak { display: grid; min-width: 108px; gap: 2px; border-left: 1px solid #d5e7e1; padding-left: 20px; text-align: center; }
.training-streak strong { color: #08795e; font-size: 34px; }
.training-streak span { color: var(--ds-text-muted); font-size: 10px; }
.training-summary-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.training-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; }
.training-library { position: sticky; top: 88px; }
.training-library .log-list { position: relative; display: grid; gap: 0; padding-left: 14px; }
.training-library .log-list::before { position: absolute; top: 8px; bottom: 8px; left: 5px; width: 1px; background: #dfe3ea; content: ""; }
.training-library .log-item { position: relative; display: grid; gap: 4px; border: 0; border-bottom: 1px solid #eef0f4; border-radius: 0; background: transparent; padding: 12px 8px 12px 16px; }
.training-library .log-item::before { position: absolute; top: 18px; left: -13px; width: 9px; height: 9px; border: 2px solid #ffffff; border-radius: 50%; background: var(--ds-text-faint); box-shadow: 0 0 0 1px var(--ds-border-strong); content: ""; }
.training-library .log-item.active { background: var(--ds-brand-soft); }
.training-library .log-item.active::before { background: var(--admin-primary); box-shadow: 0 0 0 2px #dfe3ff; }
.training-library .log-item strong { color: var(--ds-text-secondary); font-size: 12px; }
.training-library .log-item span { color: var(--ds-text-muted); font-size: 10px; }

/* Review center: cycle status + queue */
.review-dashboard { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr) 230px; gap: 14px; margin-bottom: 18px; }
.review-cycle-card,
.review-queue-card,
.review-score-card { border: 1px solid var(--admin-line); border-radius: 16px; background: #ffffff; padding: 18px; }
.review-cycle-card { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 18px; background: linear-gradient(125deg, #f7f5ff, #ffffff); }
.review-progress-ring { width: 96px; height: 96px; background: radial-gradient(circle at center, #ffffff 0 61%, transparent 62%), conic-gradient(var(--ds-brand) calc(var(--review-progress, 0) * 1%), #e9e7f3 0); }
.review-cycle-card h3 { margin: 5px 0 6px; color: var(--ds-text); font-size: 19px; }
.review-cycle-card p { margin: 0; color: var(--ds-text-muted); font-size: 11px; line-height: 1.6; }
.review-cycle-metrics { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border-top: 1px solid #eceaf4; padding-top: 12px; }
.review-cycle-metrics span { display: flex; align-items: baseline; gap: 5px; color: var(--ds-text-muted); font-size: 10px; }
.review-cycle-metrics strong { color: var(--ds-text-secondary); font-size: 17px; }
.review-queue-card { min-width: 0; }
.review-queue-list { display: grid; margin-top: 10px; }
.review-queue-list > div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 8px; border-top: 1px solid #eef0f4; padding: 8px 0; }
.review-queue-list > div > span { grid-row: 1 / span 2; align-self: center; border-radius: 6px; font-size: 9px; padding: 4px 6px; }
.review-queue-list .due { background: var(--ds-danger-soft); color: var(--ds-danger); }
.review-queue-list .upcoming { background: var(--ds-brand-soft); color: var(--ds-brand-strong); }
.review-queue-list strong,
.review-queue-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-queue-list strong { color: var(--ds-text-secondary); font-size: 10px; }
.review-queue-list small { color: var(--ds-text-faint); font-size: 9px; }
.review-score-card { display: grid; align-content: center; background: #29265f; color: #ffffff; text-align: center; }
.review-score-card .module-section-kicker { color: #c8c5ff; }
.review-score-card > strong { margin-top: 10px; font-size: 30px; }
.review-score-card p { margin: 2px 0 12px; color: #cfccff; font-size: 11px; }
.review-score-card div { border-top: 1px solid rgba(255,255,255,.14); color: #d8d6f7; font-size: 9px; padding-top: 10px; }
.review-generator-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.review-generator { position: relative; display: grid; gap: 10px; overflow: hidden; padding-top: 22px; }
.review-generator::before { position: absolute; inset: 0 0 auto; height: 4px; background: var(--admin-primary); content: ""; }
.review-generator-week::before { background: #1570ef; }
.review-generator-month::before { background: var(--ds-success); }
.review-generator-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; background: #f0efff; color: #5d55c9; font-size: 11px; font-weight: 900; }
.review-generator-week .review-generator-icon { background: #eff8ff; color: var(--ds-info); }
.review-generator-month .review-generator-icon { background: var(--ds-success-soft); color: var(--ds-success); }
.review-generator .panel-head { margin: 0; }
.review-generator input { width: 100%; }
.review-workspace-panel { margin-top: 18px; }

/* Export & settings: segmented settings page */
.settings-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: start; gap: 18px; }
.settings-navigation { position: sticky; top: 88px; display: grid; gap: 6px; padding: 14px; }
.settings-nav-head { display: grid; gap: 3px; border-bottom: 1px solid var(--admin-line); margin-bottom: 4px; padding: 4px 6px 14px; }
.settings-nav-head span { color: var(--ds-text-faint); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.settings-nav-head strong { color: var(--ds-text); font-size: 16px; }
.settings-navigation button { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 43px; border-color: transparent; background: transparent; color: var(--ds-text-secondary); text-align: left; }
.settings-navigation button span { color: var(--ds-text-faint); font-size: 9px; }
.settings-navigation button.active { border-color: #dfe3ff; background: #f1f3ff; color: #4338ca; }
.settings-navigation button.danger { color: var(--ds-danger); }
.settings-content { display: grid; gap: 16px; min-width: 0; }
.settings-status-header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.settings-status-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 13px; background: var(--ds-success-soft); color: var(--ds-success); font-size: 18px; }
.settings-status-header h2 { margin: 3px 0; color: var(--ds-text); font-size: 20px; }
.settings-status-header p { margin: 0; color: var(--ds-text-muted); font-size: 11px; }
.settings-version { align-self: start; border-radius: 999px; background: var(--ds-surface-muted); color: var(--ds-text-muted); font-size: 9px; padding: 5px 8px; }
.settings-runtime-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.settings-runtime-grid > div { display: grid; min-width: 0; gap: 4px; border: 1px solid var(--admin-line); border-radius: 12px; background: var(--ds-surface-subtle); padding: 13px; }
.settings-runtime-grid span { color: var(--ds-text-muted); font-size: 10px; }
.settings-runtime-grid strong { overflow: hidden; color: var(--ds-text-secondary); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.settings-runtime-grid small { color: var(--ds-text-faint); font-size: 9px; }
.settings-runtime-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.settings-help { margin: 12px 0 0; color: var(--ds-text-muted); font-size: 11px; line-height: 1.6; }
.settings-section { position: relative; min-height: 180px; padding-left: 84px; scroll-margin-top: 90px; }
.settings-section-icon { position: absolute; top: 20px; left: 20px; display: grid; width: 44px; height: 44px; place-items: center; border-radius: 12px; background: var(--ds-brand-soft); color: #4338ca; font-size: 20px; }
.settings-section-icon-green { background: var(--ds-success-soft); color: var(--ds-success); }
.settings-section .panel-head { margin-bottom: 14px; }
.settings-section select { width: min(520px, 100%); }
.settings-section .button-row { margin-top: 12px; }
.settings-section .upload-label { width: min(520px, 100%); min-height: 46px; justify-content: center; }
.settings-danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-color: #fecdca; background: #fffbfa; scroll-margin-top: 90px; }
.settings-danger-zone span { color: var(--ds-danger); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.settings-danger-zone h2 { margin: 4px 0; color: #7a271a; font-size: 16px; }
.settings-danger-zone p { margin: 0; color: #912018; font-size: 11px; }
.settings-danger-zone button { flex: 0 0 auto; }

.ai-config-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ai-config-grid .wide-field { grid-column: 1 / -1; }
.ai-security-note { display: grid; gap: 4px; margin-top: 14px; border: 1px solid #abefc6; border-radius: 11px; background: var(--ds-success-soft); padding: 11px 13px; }
.ai-security-note strong { color: var(--ds-success); font-size: 11px; }
.ai-security-note span { color: #05603a; font-size: 10px; line-height: 1.55; }

@media (max-width: 1180px) {
  .resource-quick-access { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .learning-plan-overview { grid-template-columns: auto minmax(0, 1fr); }
  .learning-plan-overview-metrics { grid-column: 1 / -1; }
  .learning-plan-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .learning-plan-pulse { grid-column: 1 / -1; }
  .practice-dashboard,
  .training-stats { grid-template-columns: 1fr; }
  .review-dashboard { grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); }
  .review-score-card { grid-column: 1 / -1; min-height: 150px; }
}

@media (max-width: 900px) {
  #page-resources .resource-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resource-library-layout,
  .settings-layout { grid-template-columns: 1fr; }
  .resource-folder-panel,
  .settings-navigation,
  .training-library,
  .exam-side { position: static; }
  .settings-navigation { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .settings-nav-head { grid-column: 1 / -1; }
  .settings-navigation button { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .settings-navigation button span { display: none; }
  .practice-dashboard { grid-template-columns: 1fr; }
  #page-learning .control-grid,
  .training-layout,
  .review-dashboard,
  .review-generator-grid { grid-template-columns: 1fr; }
  .review-score-card { grid-column: auto; }
  .learning-plan-columns { grid-template-columns: 1fr; }
  .learning-plan-pulse { grid-column: auto; }
}

@media (max-width: 680px) {
  .ai-config-grid { grid-template-columns: 1fr; }
  .resource-quick-access,
  .practice-dashboard-metrics,
  .training-summary-metrics { grid-template-columns: 1fr; }
  .resource-card { display: flex; }
  .resource-card-file-icon { align-self: flex-start; flex: 0 0 auto; }
  .resource-card-head { justify-content: flex-start; }
  .resource-updated { align-self: flex-start; }
  .learning-plan-overview { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .learning-plan-overview-metrics { grid-template-columns: 1fr; width: 100%; }
  .learning-plan-overview-metrics span { border-top: 1px solid var(--ds-border); border-left: 0; padding: 8px 0 0; }
  .practice-focus-card,
  .training-summary-hero,
  .review-cycle-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .training-streak { border-top: 1px solid #d5e7e1; border-left: 0; padding: 12px 0 0; }
  .review-cycle-metrics { grid-template-columns: 1fr; }
  .settings-navigation { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-runtime-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-section { padding: 72px 16px 16px; }
  .settings-danger-zone { align-items: stretch; flex-direction: column; }
  .settings-danger-zone button { width: 100%; }
}

/* Home workspace v2: profile card, stable carousel and structured daily lists. */
body.public-mode .profile-edit-button,
body.public-mode #openTodoModalBtn,
body.public-mode #clearCompletedTodosBtn,
body.public-mode #openHighlightModalBtn,
body.public-mode .delete-highlight-btn { display: none !important; }

.danger-text { border-color: #fecdca !important; color: var(--ds-danger) !important; }
.ai-profile-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; margin-bottom: 14px; }
.ai-profile-toolbar label { display: grid; min-width: 0; gap: 6px; color: var(--ds-text-secondary); font-size: 10px; font-weight: 800; }
.ai-profile-toolbar select { width: 100%; }
.ai-config-switches { display: flex; flex-wrap: wrap; gap: 18px; border: 1px solid var(--ds-border); border-radius: 10px; background: var(--ds-surface-subtle); padding: 10px 12px; }
.ai-config-switches .check-row { display: flex; align-items: center; gap: 7px; }
.ai-config-switches input { width: auto; }
@media (max-width: 680px) {
  .ai-profile-toolbar { grid-template-columns: 1fr; }
}

.home-profile-panel {
  min-height: 420px;
  align-content: stretch;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
  border-color: var(--ds-border);
  background: #ffffff;
  padding: 24px;
}

.home-profile-head,
.home-name-row,
.home-panel-actions {
  display: flex;
  align-items: center;
}

.home-profile-head {
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--ds-border);
  padding-bottom: 14px;
}

.home-profile-head p { margin: 0 0 3px; }
.home-profile-head > div > span { color: var(--ds-text-faint); font-size: 10px; }
.profile-edit-button { min-height: 34px; border-color: #d9e0ff; background: var(--ds-brand-soft); color: var(--ds-brand); padding: 6px 11px; font-size: 11px; }

.home-profile-identity {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  min-width: 0;
}

.profile-avatar-shell {
  position: relative;
  display: grid;
  width: 150px;
  height: 184px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dfe4ff;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--ds-brand-soft), var(--ds-brand-soft-strong));
  color: var(--ds-brand);
  box-shadow: 0 10px 24px rgba(70, 95, 255, .12);
}

.profile-avatar-shell::after {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 12px;
  content: "";
  pointer-events: none;
}

.profile-avatar-shell img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-shell > span { font-size: 34px; font-weight: 850; letter-spacing: -.06em; }
.home-copy { min-width: 0; }
.home-name-row { flex-wrap: wrap; gap: 10px; }
.home-copy .home-name-row h2 { margin: 0; color: var(--ds-text); font-size: clamp(28px, 2.4vw, 38px); }
.home-name-row > span { border-radius: 999px; background: var(--ds-brand-soft); color: var(--ds-brand); padding: 5px 9px; font-size: 10px; font-weight: 750; }
.home-copy .hero-lead { max-width: none; margin: 7px 0 12px; color: var(--ds-text-muted); font-size: 12px; line-height: 1.65; }

.home-profile-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px 14px;
  margin: 0;
}

.home-profile-facts > div { min-width: 0; }
.home-profile-facts dt { color: var(--ds-text-faint); font-size: 9px; }
.home-profile-facts dd { overflow: hidden; margin: 2px 0 0; color: var(--ds-text-secondary); font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.home-copy .chip-row { gap: 5px; margin-top: 12px; }
.home-copy .chip { min-height: 24px; border: 0; background: var(--ds-surface-muted); color: var(--ds-text-secondary); padding: 3px 8px; font-size: 9px; box-shadow: none; }
.home-profile-panel .metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.home-profile-panel .metric { min-height: 66px; border: 1px solid var(--ds-border); border-radius: 11px; background: var(--ds-surface-subtle); padding: 10px 11px; }
.home-profile-panel .metric span, .home-profile-panel .metric small { font-size: 9px; }
.home-profile-panel .metric strong { margin: 2px 0; color: var(--ds-text-secondary); font-size: 19px; }

.home-overview > .carousel-shell {
  height: 420px;
  min-height: 420px;
  border: 1px solid var(--ds-border);
  border-radius: 18px;
  background: var(--ds-border);
}

.carousel-frame { height: 100%; }
.home-overview .carousel-shell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}

.home-today-panel { background: #ffffff; }
.today-panel-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.today-card,
.today-card.done,
.today-card.warn,
.today-card.todo {
  position: relative;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  min-height: 132px;
  align-content: start;
  gap: 4px 9px;
  border: 1px solid var(--ds-border);
  border-style: solid;
  border-radius: 13px;
  background: #ffffff;
  padding: 13px;
}
.today-card:hover { border-color: #c7d0ff; background: #fbfcff; transform: translateY(-1px); }
.today-card-icon { display: grid; width: 32px; height: 32px; grid-row: 1 / span 2; place-items: center; border-radius: 9px; background: var(--ds-brand-soft); color: var(--ds-brand) !important; font-size: 13px !important; }
.today-card.warn .today-card-icon { background: #fff4e5; color: #dc6803 !important; }
.today-card.done .today-card-icon { background: var(--ds-success-soft); color: var(--ds-success) !important; }
.today-card-label { align-self: end; color: var(--ds-text-muted) !important; font-size: 9px !important; }
.today-card strong { grid-column: 2; overflow: hidden; color: var(--ds-text); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.today-card small { grid-column: 1 / -1; margin-top: 7px; color: var(--ds-text-muted); font-size: 10px; line-height: 1.5; }
.today-card i { position: absolute; right: 11px; bottom: 9px; color: #c0c7d4; font-size: 12px; font-style: normal; }

.daily-todo-panel, .home-highlights-panel { min-height: 340px; }
.daily-todo-panel .panel-head, .home-highlights-panel .panel-head { align-items: center; }
.home-panel-actions { flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.home-panel-actions button, .home-highlights-panel .panel-head > button { min-height: 34px; font-size: 10px; }
.daily-todo-date { width: 145px; }
.daily-todo-list { gap: 0; overflow: hidden; border: 1px solid var(--ds-border); border-radius: 13px; background: #fff; }
.daily-todo-item, .daily-todo-item.done {
  grid-template-columns: 30px minmax(0, 1fr) 28px;
  min-height: 62px;
  gap: 10px;
  border: 0;
  border-top: 1px solid var(--ds-surface-muted);
  border-radius: 0;
  background: #ffffff;
  padding: 9px 12px;
}
.daily-todo-item:first-child { border-top: 0; }
.daily-todo-item:hover { background: #fafbff; }
.todo-check span { width: 22px; height: 22px; border: 1.5px solid #b9c0cc; border-radius: 50%; background: #fff; }
.todo-check input:checked + span { border-color: var(--ds-success); background: var(--ds-success); }
.todo-item-copy { display: grid; min-width: 0; gap: 4px; }
.todo-item-copy strong { overflow: hidden; color: var(--ds-text-secondary); font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.todo-item-copy > span { color: var(--ds-text-faint); font-size: 9px; }
.daily-todo-item.done .todo-item-copy strong { color: var(--ds-text-faint); text-decoration: line-through; }
.todo-priority { border-radius: 999px; background: var(--ds-surface-muted); color: var(--ds-text-muted); padding: 2px 5px; font-style: normal; }
.todo-priority.high { background: var(--ds-danger-soft); color: var(--ds-danger); }
.todo-priority.low { background: var(--ds-success-soft); color: var(--ds-success); }
.delete-todo-btn, .delete-highlight-btn { display: grid; min-height: 26px; height: 26px; place-items: center; border: 0; background: transparent; color: var(--ds-text-faint); padding: 0; box-shadow: none; }
.delete-todo-btn:hover, .delete-highlight-btn:hover { background: var(--ds-danger-soft); color: var(--ds-danger); }

.home-highlights-panel .highlight-list { display: grid; grid-template-columns: 1fr; gap: 0; overflow: hidden; border: 1px solid var(--ds-border); border-radius: 13px; background: #fff; }
.highlight-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 26px;
  align-items: center;
  min-height: 62px;
  gap: 10px;
  border: 0;
  border-top: 1px solid var(--ds-surface-muted);
  border-radius: 0;
  background: #ffffff;
  padding: 9px 12px;
}
.highlight-item:first-child { border-top: 0; }
.highlight-item:hover { background: #fafbff; }
.highlight-marker { display: grid !important; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: #fff4e5; color: #dc6803 !important; font-size: 11px !important; }
.highlight-item.progress .highlight-marker { background: var(--ds-brand-soft); color: var(--ds-brand) !important; }
.highlight-item.learning .highlight-marker { background: var(--ds-success-soft); color: var(--ds-success) !important; }
.highlight-item.life .highlight-marker { background: #f4f3ff; color: var(--ds-brand) !important; }
.highlight-copy { min-width: 0; }
.highlight-copy strong, .highlight-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.highlight-copy strong { color: var(--ds-text-secondary); font-size: 11px; }
.highlight-copy span { margin-top: 3px; color: var(--ds-text-muted); font-size: 9px; }
.highlight-item time { color: var(--ds-text-faint); font-size: 9px; white-space: nowrap; }

.home-empty-state { display: grid; justify-items: center; gap: 4px; border: 0; background: #fff; color: var(--ds-text-faint); padding: 34px 18px; text-align: center; }
.home-empty-state > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--ds-surface-muted); color: var(--ds-text-muted); font-size: 20px; }
.home-empty-state strong { margin-top: 5px; color: var(--ds-text-secondary); font-size: 11px; }
.home-empty-state p { margin: 0; font-size: 9px; }

.profile-editor-modal-panel { width: min(780px, 96vw); }
.profile-avatar-editor { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 18px; margin-bottom: 18px; border: 1px solid var(--ds-brand-soft-strong); border-radius: 14px; background: #f8f9ff; padding: 14px; }
.profile-avatar-preview-shell { width: 96px; height: 116px; border-radius: 14px; }
.profile-avatar-editor strong { color: var(--ds-text-secondary); font-size: 12px; }
.profile-avatar-editor p { margin: 4px 0 10px; color: var(--ds-text-muted); font-size: 10px; }
.profile-avatar-editor .button-row { justify-content: flex-start; }
.profile-avatar-editor .upload-label { width: auto; margin: 0; }
.profile-editor-grid, .compact-entry-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.profile-editor-grid label, .compact-entry-form label { display: grid; gap: 5px; color: var(--ds-text-secondary); font-size: 10px; font-weight: 700; }
.profile-editor-grid .wide-field, .compact-entry-form .wide-field { grid-column: 1 / -1; }
.profile-birth-month-field { position: relative; display: grid; align-content: start; gap: 5px; min-width: 0; }
.profile-field-label { color: var(--ds-text-secondary); font-size: 10px; font-weight: 700; }
.profile-birth-month-picker { position: relative; min-width: 0; }
.profile-birth-month-trigger { display: flex; width: 100%; min-height: var(--ds-control-height); align-items: center; justify-content: space-between; border: 1px solid var(--ds-border-strong); border-radius: var(--ds-control-radius); background: var(--ds-surface); padding: 9px 12px; color: var(--ds-text); font-size: var(--ds-font-size-body); font-weight: 500; text-align: left; box-shadow: none; }
.profile-birth-month-trigger:hover { border-color: var(--ds-border-hover); background: var(--ds-surface); }
.profile-birth-month-trigger[aria-expanded="true"] { border-color: var(--admin-primary); box-shadow: 0 0 0 4px rgba(70, 95, 255, 0.12); }
.profile-birth-month-trigger span.is-placeholder { color: var(--ds-placeholder); }
.profile-birth-month-trigger svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--ds-text-muted); }
.profile-birth-month-popover { position: absolute; z-index: 80; top: calc(100% + 8px); left: 0; width: min(320px, calc(100vw - 40px)); border: 1px solid var(--ds-border); border-radius: 12px; background: var(--ds-surface); padding: 10px; box-shadow: var(--ds-shadow-float); }
.profile-birth-picker-head { display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; gap: 8px; margin-bottom: 8px; }
.profile-birth-picker-head strong { color: var(--ds-text); font-size: 13px; text-align: center; }
.profile-birth-picker-head button { display: grid; width: 36px; min-height: 36px; place-items: center; border: 0; border-radius: 8px; background: transparent; padding: 0; color: var(--ds-text-muted); box-shadow: none; }
.profile-birth-picker-head button:hover:not(:disabled) { background: var(--ds-surface-muted); color: var(--ds-text); }
.profile-birth-picker-head svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.profile-birth-month-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.profile-birth-month-grid button { min-width: 0; min-height: 38px; border: 0; border-radius: 8px; background: transparent; padding: 6px 4px; color: var(--ds-text-secondary); font-size: 12px; font-weight: 500; box-shadow: none; }
.profile-birth-month-grid button:hover:not(:disabled) { background: var(--ds-surface-muted); color: var(--ds-text); }
.profile-birth-month-grid button.is-selected { background: var(--ds-brand-soft); color: var(--ds-brand); font-weight: 700; }
.profile-birth-picker-actions { display: flex; justify-content: space-between; margin-top: 8px; border-top: 1px solid var(--ds-border); padding-top: 8px; }
.profile-birth-picker-actions button { min-height: 32px; border: 0; background: transparent; padding: 4px 8px; color: var(--ds-brand); font-size: 11px; box-shadow: none; }
.profile-birth-picker-actions button:hover { background: var(--ds-brand-soft); }
.compact-entry-modal-panel { width: min(580px, 96vw); }

@media (max-width: 1380px) {
  .today-panel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1180px) {
  .home-overview > .carousel-shell { height: min(58vw, 520px); min-height: 360px; }
  .home-profile-panel { min-height: 0; }
}

@media (max-width: 760px) {
  .home-profile-identity { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; }
  .profile-avatar-shell { width: 104px; height: 132px; border-radius: 14px; }
  .home-profile-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .today-panel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-profile-panel .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-panel-actions { width: 100%; justify-content: stretch; }
  .home-panel-actions > * { flex: 1 1 130px; }
}

@media (max-width: 520px) {
  .home-profile-head { align-items: flex-start; }
  .home-profile-identity { grid-template-columns: 1fr; }
  .profile-avatar-shell { width: 112px; height: 138px; }
  .today-panel-grid { grid-template-columns: 1fr; }
  .home-overview > .carousel-shell { height: 270px; min-height: 270px; }
  .daily-todo-panel .panel-head, .home-highlights-panel .panel-head { align-items: stretch; flex-direction: column; }
  .home-highlights-panel .panel-head > button { width: 100%; }
  .highlight-item { grid-template-columns: 32px minmax(0, 1fr) 26px; }
  .highlight-item time { grid-column: 2; grid-row: 2; }
  .delete-highlight-btn { grid-column: 3; grid-row: 1 / span 2; }
  .profile-avatar-editor { grid-template-columns: 1fr; }
  .profile-editor-grid, .compact-entry-form { grid-template-columns: 1fr; }
  .profile-editor-grid .wide-field, .compact-entry-form .wide-field { grid-column: auto; }
  .profile-birth-month-popover { width: min(100%, 320px); }
}

/* Home workspace v3: execution-first personal command center. */
#page-home {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
}

#page-home .home-overview {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.home-command-bar,
.home-execution-panel,
.home-status-panel { grid-column: 1 / -1; }
.home-command-bar { order: 1; }
#page-home .carousel-shell { grid-column: 1 / -1; order: 2; }
.home-execution-panel { order: 3; }
.home-status-panel { order: 4; }
.home-annual-panel,
.home-calendar-panel { order: 5; }
#page-home .home-profile-panel,
.home-reminders-panel { grid-column: span 6; order: 6; align-self: stretch; }
.home-highlights-panel { display: none !important; }
.home-annual-panel { grid-column: span 7; }
.home-calendar-panel { grid-column: span 5; }

.home-command-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
  border: 1px solid #dfe4ff;
  border-radius: 18px;
  background: linear-gradient(125deg, #f8f9ff 0%, #ffffff 58%, #f2f6ff 100%);
  min-height: 88px;
  padding: 13px 20px;
  box-shadow: 0 10px 28px rgba(70, 95, 255, .07);
}

.home-command-copy { min-width: 0; }
.home-command-copy .eyebrow { display: none; }
.home-section-heading .eyebrow,
.home-calendar-head .eyebrow { margin: 0 0 4px; }
.home-command-copy h2 { margin: 0; color: var(--ds-text); font-size: clamp(20px, 2vw, 24px); letter-spacing: -.035em; }
.home-command-copy > p:last-child { margin: 3px 0 0; color: var(--ds-text-muted); font-size: 13px; }
.home-command-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.home-command-actions button { min-height: 36px; padding: 7px 12px; font-size: 12px; }

#page-home .panel,
#page-home .home-profile-panel,
#page-home .carousel-shell {
  min-width: 0;
  border: 1px solid var(--ds-border);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(43, 50, 79, .045);
}

#page-home .panel { padding: 22px; }
.home-execution-panel { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 0; padding: 0 !important; overflow: hidden; }
.home-execution-main { min-width: 0; padding: 16px 20px; }
.home-brief-panel { display: flex; min-width: 0; flex-direction: column; border-left: 1px solid var(--ds-border); background: #fafbff; padding: 20px; }
.home-section-heading,
.home-calendar-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.home-section-heading h2,
.home-calendar-head h2 { margin: 0; color: var(--ds-text); font-size: 19px; line-height: 1.35; }
.home-status-badge,
.home-ai-label { display: inline-flex; min-height: 28px; align-items: center; border-radius: 999px; background: var(--ds-brand-soft); color: var(--ds-brand); padding: 5px 10px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.home-ai-label { background: var(--ds-surface-muted); color: var(--ds-text-muted); }
.home-section-heading > div > span { display: block; margin-top: 4px; color: var(--ds-text-muted); font-size: 11px; }
.home-execution-date-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.home-execution-date-tools button { min-height: 32px; padding: 5px 9px; font-size: 10px; }
.home-execution-date-tools .date-step-button { width: 32px; min-width: 32px; padding: 0; font-size: 18px; }
.home-execution-date-tools .daily-todo-date { width: 134px; min-height: 32px; font-size: 11px; }

.home-progress-summary { display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: center; gap: 14px; margin: 10px 0; }
.home-progress-ring {
  --home-progress: 0;
  position: relative;
  display: grid;
  width: 68px;
  height: 68px;
  place-content: center;
  border-radius: 50%;
  background: conic-gradient(var(--ds-brand) calc(var(--home-progress) * 1%), #eef2f6 0);
  text-align: center;
}
.home-progress-ring::after { position: absolute; inset: 8px; border-radius: inherit; background: #fff; content: ""; }
.home-progress-ring strong,
.home-progress-ring span { position: relative; z-index: 1; }
.home-progress-ring strong { color: var(--ds-text); font-size: 18px; }
.home-progress-ring span { color: var(--ds-text-faint); font-size: 10px; }
.home-progress-copy { display: grid; gap: 7px; }
.home-progress-copy > strong { color: var(--ds-text-secondary); font-size: 16px; }
.home-progress-copy > span { color: var(--ds-text-muted); font-size: 13px; }
.home-linear-progress { overflow: hidden; height: 7px; margin-top: 6px; border-radius: 999px; background: #eef2f6; }
.home-linear-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ds-brand), var(--ds-brand)); transition: width .25s ease; }

.home-execution-list { display: grid; max-height: 174px; gap: 0; overflow-y: auto; }
.home-execution-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 52px; border: 1px solid var(--ds-border); border-radius: 12px; background: #fff; padding: 9px 12px; }
.home-execution-item.done { background: #f8fbf9; }
.home-task-status { display: grid; width: 23px; height: 23px; place-items: center; border: 1.5px solid #b9c0cc; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 900; }
.home-execution-item.done .home-task-status { border-color: var(--ds-success); background: var(--ds-success); }
.home-execution-item > div { min-width: 0; }
.home-execution-item strong,
.home-execution-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-execution-item strong { color: var(--ds-text-secondary); font-size: 13px; }
.home-execution-item.done strong { color: var(--ds-text-faint); text-decoration: line-through; }
.home-execution-item small { margin-top: 3px; color: var(--ds-text-faint); font-size: 11px; }
.home-execution-item time { color: var(--ds-text-muted); font-size: 11px; white-space: nowrap; }
.home-execution-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 10px; }
.home-execution-actions button { min-height: 34px; font-size: 10px; }
.home-execution-main.is-empty #clearCompletedTodosBtn,
.home-execution-main.is-empty #openTodoModalBtn { display: none; }

.home-brief-list { display: grid; gap: 8px; margin: 14px 0; }
.home-brief-list article { border-left: 3px solid #a4bcfd; border-radius: 0 10px 10px 0; background: #fff; padding: 11px 12px; }
.home-brief-list article.risk { border-left-color: var(--ds-warning); background: #fffcf5; }
.home-brief-list article.good { border-left-color: var(--ds-success); }
.home-brief-list span,
.home-brief-list strong { display: block; }
.home-brief-list span { color: var(--ds-text-faint); font-size: 10px; font-weight: 800; }
.home-brief-list strong { margin-top: 4px; color: var(--ds-text-secondary); font-size: 12px; line-height: 1.55; }
.home-brief-panel > button { width: 100%; margin-top: auto; border-color: #d9e0ff; color: var(--ds-brand); }

.home-status-panel .panel-head { margin-bottom: 14px; }
#page-home .today-panel-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
#page-home .today-card,
#page-home .today-card.done,
#page-home .today-card.warn,
#page-home .today-card.todo { min-height: 132px; padding: 15px; }
#page-home .today-card-label { font-size: 11px !important; }
#page-home .today-card strong { font-size: 15px; }
#page-home .today-card small { font-size: 12px; }

#page-home .home-reminders-panel { min-height: 300px; }
#page-home .home-reminders-panel .panel-head { min-height: 46px; }
.home-panel-actions { gap: 6px; }
.home-panel-actions .date-step-button { width: 36px; min-width: 36px; padding: 0; font-size: 21px; }
#page-home .daily-todo-date { width: 146px; min-height: 36px; }
#page-home .daily-todo-list { overflow-y: auto; border: 1px solid var(--ds-border); border-radius: 13px; }
#page-home .home-highlights-panel .highlight-list { max-height: 228px; overflow-y: auto; }
#page-home .home-empty-state { min-height: 168px; place-content: center; padding: 24px 18px; }
#page-home .home-empty-state.compact { min-height: 100px; border: 1px dashed var(--ds-border-strong); border-radius: 12px; }
#page-home .home-empty-state button { min-height: 34px; margin-top: 8px; font-size: 10px; }
#page-home .home-execution-list:has(.home-empty-state) { overflow: hidden; }
#page-home .home-execution-list .home-empty-state { min-height: 140px; padding: 12px 16px; }

.home-reminder-list { display: grid; gap: 7px; }
.home-reminder-item { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 51px; border: 1px solid var(--ds-border); border-radius: 11px; background: #fff; padding: 8px 10px; text-align: left; box-shadow: none; }
.home-reminder-item:hover { border-color: #c7d0ff; background: #fbfcff; }
.home-reminder-item > span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: var(--ds-surface-muted); color: var(--ds-text-muted); font-size: 11px; font-weight: 900; }
.home-reminder-item.risk > span { background: var(--ds-danger-soft); color: var(--ds-danger); }
.home-reminder-item.attention > span { background: #fff4e5; color: #dc6803; }
.home-reminder-item > div { min-width: 0; }
.home-reminder-item strong,
.home-reminder-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-reminder-item strong { color: var(--ds-text-secondary); font-size: 11px; }
.home-reminder-item small { margin-top: 3px; color: var(--ds-text-faint); font-size: 9px; }
.home-reminder-item > i { color: #c0c7d4; font-size: 11px; font-style: normal; }
#page-home .home-highlights-panel .highlight-copy strong { display: -webkit-box; overflow: hidden; white-space: normal; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
#page-home .home-highlights-panel .highlight-copy span { font-size: 10px; }

.home-annual-panel,
.home-calendar-panel { min-height: 340px; }
.home-annual-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.home-annual-metrics article { display: grid; min-width: 0; gap: 5px; border: 1px solid var(--ds-border); border-radius: 13px; background: #fcfcfd; padding: 16px; }
.home-annual-metrics span { color: var(--ds-text-muted); font-size: 12px; }
.home-annual-metrics strong { color: var(--ds-text); font-size: 24px; }
.home-annual-metrics small { color: var(--ds-text-faint); font-size: 11px; line-height: 1.45; }

.home-calendar-head > div:last-child { display: flex; gap: 6px; }
.home-calendar-head button { width: 34px; min-height: 34px; padding: 0; font-size: 18px; }
.home-calendar-weekdays,
.home-mini-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.home-calendar-weekdays { margin: 16px 0 7px; color: var(--ds-text-faint); font-size: 10px; text-align: center; }
.home-mini-calendar > button { position: relative; display: grid; min-height: 35px; place-content: center; gap: 1px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--ds-text-secondary); padding: 2px; box-shadow: none; }
.home-mini-calendar > button:hover,
.home-mini-calendar > button.selected { border-color: #a4bcfd; background: var(--ds-brand-soft); color: var(--ds-brand-strong); }
.home-mini-calendar > button.today span { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; background: var(--ds-brand); color: #fff; }
.home-mini-calendar > button::after { position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; background: transparent; content: ""; transform: translateX(-50%); }
.home-mini-calendar > button.has-task::after { background: var(--ds-brand); }
.home-mini-calendar > button.partial::after { background: var(--ds-warning); }
.home-mini-calendar > button.all-done::after { width: 11px; height: 7px; border: solid var(--ds-success); border-width: 0 0 2px 2px; border-radius: 0; background: transparent; transform: translateX(-50%) rotate(-45deg); }
.home-mini-calendar small { color: var(--ds-text-faint); font-size: 7px; }
.home-calendar-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; color: var(--ds-text-muted); font-size: 10px; }
.home-calendar-legend span { display: flex; align-items: center; gap: 5px; }
.home-calendar-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ds-brand); }
.home-calendar-legend i.partial { background: var(--ds-warning); }
.home-calendar-legend i.all-done { border-radius: 2px; background: var(--ds-success); }

#page-home .home-profile-panel { min-height: 0; grid-template-rows: auto auto auto; gap: 12px; align-content: start; padding: 18px; }
#page-home .home-profile-identity { grid-template-columns: 90px minmax(0, 1fr); align-items: center; gap: 14px; }
#page-home .profile-avatar-shell { width: 90px; height: 108px; border-radius: 14px; }
#page-home .home-copy .home-name-row h2 { font-size: clamp(24px, 2.2vw, 32px); }
#page-home .home-copy .hero-lead { margin-bottom: 13px; font-size: 13px; }
.profile-detail-link { min-height: 34px; border-color: #d9e0ff; background: #f8f9ff; color: var(--ds-brand); font-size: 11px; }
#page-home .home-profile-panel .metric { min-height: 64px; padding: 9px; }
#page-home .home-profile-panel .metric span,
#page-home .home-profile-panel .metric small { font-size: 10px; }
#page-home .home-profile-panel .metric strong { font-size: 21px; }

#page-home .carousel-shell { width: 100%; height: auto; min-height: 280px; max-height: 420px; aspect-ratio: var(--carousel-aspect, 18 / 7); overflow: hidden; isolation: isolate; background: #111827; }
#page-home .carousel-shell .carousel-backdrop { position: absolute; inset: -24px; z-index: 0; width: calc(100% + 48px); height: calc(100% + 48px); min-height: 0; object-fit: cover; object-position: center; filter: blur(22px) saturate(.82); opacity: .56; transform: scale(1.06); }
.carousel-image-link { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; border: 0; border-radius: 0; background: transparent; padding: 0; box-shadow: none; }
.carousel-image-link:hover { transform: none; }
#page-home .carousel-shell #carouselImage { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; object-fit: contain; object-position: center; }
.carousel-caption { position: absolute; inset: auto 0 0; z-index: 2; display: grid; gap: 3px; background: linear-gradient(transparent, rgba(16,24,40,.78)); color: #fff; padding: 70px 24px 22px; pointer-events: none; }
.carousel-caption span { font-size: 10px; font-weight: 850; letter-spacing: .1em; }
.carousel-caption strong { font-size: 19px; }
.carousel-caption small { color: rgba(255,255,255,.78); font-size: 12px; }
.carousel-manage { position: absolute; top: 12px; right: 12px; z-index: 4; opacity: 0; transition: opacity .18s ease; }
.carousel-shell:hover .carousel-manage,
.carousel-manage[open],
.carousel-manage:focus-within { opacity: 1; }
.carousel-manage summary { min-height: 34px; border: 1px solid rgba(255,255,255,.55); border-radius: 9px; background: rgba(255,255,255,.9); color: var(--ds-text-secondary); cursor: pointer; list-style: none; padding: 8px 11px; font-size: 11px; font-weight: 800; backdrop-filter: blur(8px); }
.carousel-manage summary::-webkit-details-marker { display: none; }
.carousel-manage > div { position: absolute; top: 40px; right: 0; display: grid; width: 160px; gap: 6px; border: 1px solid var(--ds-border); border-radius: 11px; background: #fff; padding: 8px; box-shadow: 0 12px 28px rgba(16,24,40,.15); }
.carousel-manage .upload-label,
.carousel-manage button { width: 100%; min-height: 34px; margin: 0; justify-content: center; font-size: 10px; }
body.public-mode .carousel-manage { display: none !important; }

@media (max-width: 1180px) {
  .home-reminders-panel,
  .home-annual-panel,
  .home-calendar-panel,
  #page-home .home-profile-panel,
  #page-home .carousel-shell { grid-column: 1 / -1; }
  .home-execution-panel { grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr); }
  #page-home .carousel-shell { height: auto; min-height: 240px; }
}

@media (max-width: 820px) {
  #page-home { padding: 18px; }
  #page-home .home-overview { gap: 18px; }
  .home-command-bar { align-items: stretch; flex-direction: column; }
  .home-command-actions { justify-content: flex-start; }
  .home-execution-panel { grid-template-columns: 1fr; }
  .home-brief-panel { border-top: 1px solid var(--ds-border); border-left: 0; }
  #page-home .today-panel-grid,
  .home-annual-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #page-home .home-reminders-panel .panel-head { align-items: stretch; flex-direction: column; }
  .home-panel-actions { justify-content: flex-start; }
}

@media (max-width: 540px) {
  #page-home { padding: 14px; }
  #page-home .home-overview { gap: 14px; }
  .home-command-bar,
  #page-home .panel,
  #page-home .home-profile-panel { padding: 17px; }
  .home-command-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-execution-panel { padding: 0 !important; }
  .home-execution-main,
  .home-brief-panel { padding: 18px; }
  .home-execution-main > .home-section-heading { align-items: stretch; flex-direction: column; }
  .home-execution-date-tools { width: 100%; justify-content: flex-start; }
  .home-execution-date-tools .daily-todo-date { flex: 1 1 130px; width: auto; }
  .home-progress-summary { grid-template-columns: 78px minmax(0, 1fr); gap: 13px; }
  .home-progress-ring { width: 74px; height: 74px; }
  .home-progress-ring strong { font-size: 18px; }
  #page-home .today-panel-grid,
  .home-annual-metrics { grid-template-columns: 1fr; }
  .home-panel-actions > * { flex: 1 1 110px; }
  .home-panel-actions .date-step-button { flex: 0 0 36px; }
  #page-home .daily-todo-date { flex: 1 1 138px; width: auto; }
  #page-home .home-profile-identity { grid-template-columns: 82px minmax(0, 1fr); }
  #page-home .profile-avatar-shell { width: 82px; height: 100px; }
  #page-home .home-profile-panel .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #page-home .carousel-shell { height: auto; min-height: 190px; max-height: 300px; }
  .carousel-manage { opacity: 1; }
  .carousel-caption { padding-right: 18px; padding-left: 18px; }
}

.ai-profile-toolbar > div { display: flex; align-items: end; gap: 7px; }
.ai-custom-toggle { display: flex; align-items: center; gap: 5px; margin-top: 6px; color: var(--ds-text-muted); font-size: 9px; }
.ai-advanced-config { border: 1px solid var(--ds-border); border-radius: 11px; }
.ai-advanced-config > summary { cursor: pointer; padding: 10px 12px; color: var(--ds-text-secondary); font-size: 10px; font-weight: 800; }
.ai-advanced-config > .ai-config-grid { border-top: 1px solid var(--ds-border); padding: 12px; }
.ai-security-note { align-items: center; }
.ai-payload-preview { max-height: 190px; overflow: auto; border: 1px solid #d1fadf; border-radius: 10px; background: #f6fef9; color: #05603a; padding: 12px; white-space: pre-wrap; font-size: 9px; line-height: 1.6; }
.ai-config-modal-panel { max-height: min(760px, calc(100vh - 32px)); }
.ai-config-modal-panel .modal-body { overflow: auto; }
.ai-config-modal-panel .modal-actions { position: sticky; z-index: 2; bottom: 0; background: #fff; }
@media (max-width: 620px) {
  .ai-security-note { align-items: flex-start; }
}

/* Annual execution workspace v2 */
#page-annual { max-width: 1440px; margin: 0 auto; padding: 0 24px 32px; }
#page-annual .annual-page-heading { min-height: 0; margin-bottom: 18px; padding: 20px 0 0; text-align: left; }
#page-annual .annual-page-heading .eyebrow { margin-bottom: 5px; }
#page-annual .annual-page-heading h2 { font-size: clamp(26px, 3vw, 38px); }
#page-annual .annual-page-heading .page-heading-note { margin-top: 5px; }
#page-annual .annual-page-heading .page-actions { position: absolute; top: 20px; right: 0; }
#page-annual .annual-stats { display: none; }
#page-annual .annual-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 20px; }
#page-annual .annual-tabs button { min-height: 72px; border: 1px solid var(--ds-border); border-radius: 14px; background: #fff; padding: 12px 14px; box-shadow: none; }
#page-annual .annual-tabs button.active { border-color: #8098f9; background: var(--ds-brand-soft); box-shadow: 0 8px 22px rgba(68,76,231,.1); }
#page-annual .annual-tab-code { width: 30px; height: 30px; border-radius: 9px; font-size: 12px; }
#page-annual .annual-tabs strong { font-size: 13px; }
#page-annual .annual-tabs small { margin-top: 2px; font-size: 10px; }
#page-annual .annual-content { min-height: 0; }
#page-annual .panel { border-color: var(--ds-border); border-radius: 16px; box-shadow: 0 8px 24px rgba(16,24,40,.045); }

.annual-overview-page,
.annual-auto-review-page { display: grid; gap: 18px; }
.annual-key-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.annual-key-metrics article { display: grid; min-height: 108px; align-content: center; gap: 4px; border: 1px solid var(--ds-border); border-radius: 15px; background: #fff; padding: 17px 18px; }
.annual-key-metrics span { color: var(--ds-text-muted); font-size: 11px; }
.annual-key-metrics strong { color: var(--ds-text); font-size: 26px; line-height: 1; }
.annual-key-metrics small { color: var(--ds-text-faint); font-size: 10px; }

.annual-phase-summary { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, .7fr) auto; align-items: center; gap: 22px; padding: 20px 22px; }
.annual-phase-summary h2 { margin: 4px 0 5px; color: var(--ds-text); font-size: 21px; }
.annual-phase-summary p { margin: 0; color: var(--ds-text-muted); font-size: 11px; line-height: 1.6; }
.annual-phase-facts { display: grid; gap: 4px; border-left: 1px solid var(--ds-border); padding-left: 22px; }
.annual-phase-facts span, .annual-phase-facts small { color: var(--ds-text-muted); font-size: 10px; }
.annual-phase-facts strong { color: var(--ds-brand-strong); font-size: 17px; }

.annual-calendar-board { padding: 22px; }
.annual-calendar-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.annual-calendar-toolbar h2 { margin: 4px 0; color: var(--ds-text); font-size: 20px; }
.annual-calendar-toolbar p { margin: 0; color: var(--ds-text-muted); font-size: 11px; }
.annual-calendar-actions { display: flex; align-items: center; gap: 6px; }
.annual-calendar-actions button { min-height: 34px; padding: 7px 11px; }
.annual-calendar-actions button.active { border-color: var(--ds-brand); background: var(--ds-brand-soft); color: var(--ds-brand-strong); }
.annual-calendar-actions input { width: 150px; min-height: 34px; }
.annual-year-calendar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.annual-year-calendar .annual-mini-days > i,
.annual-year-calendar .annual-mini-days > span { min-height: 20px; }
.annual-year-calendar > article { min-width: 0; border: 1px solid var(--ds-border); border-radius: 13px; background: #fcfcfd; padding: 11px; }
.annual-year-calendar > article > button { display: flex; width: 100%; min-height: 30px; align-items: center; justify-content: space-between; border: 0; background: transparent; padding: 0 2px 7px; box-shadow: none; }
.annual-year-calendar > article > button strong { color: var(--ds-text-secondary); font-size: 12px; }
.annual-year-calendar > article > button small { color: var(--ds-text-faint); font-size: 9px; }
.annual-mini-week, .annual-mini-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.annual-mini-week { margin-bottom: 3px; color: var(--ds-text-faint); font-size: 7px; text-align: center; }
.annual-mini-days > i { min-height: 25px; }
.annual-mini-days > span, .annual-mini-days > button { position: relative; display: grid; min-width: 0; min-height: 25px; place-items: center; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--ds-text-muted); padding: 1px; box-shadow: none; }
.annual-mini-days b { font-size: 8px; font-weight: 700; }
.annual-mini-days .has-task { background: var(--ds-brand-soft); color: var(--ds-brand-strong); }
.annual-mini-days .partial { background: #fff7e8; color: var(--ds-warning); }
.annual-mini-days .complete { background: var(--ds-success-soft); color: var(--ds-success); }
.annual-mini-days .selected { border-color: var(--ds-brand); box-shadow: inset 0 0 0 1px var(--ds-brand); }
.annual-month-calendar-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(310px, .6fr); gap: 18px; margin-top: 18px; }
.annual-month-calendar { border: 1px solid var(--ds-border); border-radius: 14px; padding: 16px; }
.annual-month-calendar > header, .annual-checkin-month-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.annual-month-calendar > header button, .annual-checkin-month-head button { width: 34px; min-height: 34px; padding: 0; }
.annual-month-calendar .annual-mini-week { font-size: 10px; }
.annual-month-calendar .annual-mini-days { gap: 5px; }
.annual-month-calendar .annual-mini-days > i,
.annual-month-calendar .annual-mini-days > button { min-height: 48px; }
.annual-month-calendar .annual-mini-days b { font-size: 11px; }
.annual-date-agenda { display: grid; align-content: start; gap: 12px; }
.annual-date-agenda > div:first-child { display: grid; gap: 3px; }
.annual-date-agenda > div:first-child span, .annual-date-agenda > div:first-child small { color: var(--ds-text-muted); font-size: 10px; }
.annual-date-agenda > div:first-child strong { color: var(--ds-text); font-size: 19px; }
.annual-date-event-list { display: grid; gap: 7px; }
.annual-date-event-list article { display: grid; grid-template-columns: 7px minmax(0, 1fr) auto; align-items: center; gap: 9px; border: 1px solid var(--ds-border); border-radius: 10px; padding: 10px; }
.annual-date-event-list article > i { width: 7px; height: 28px; border-radius: 9px; background: var(--ds-brand); }
.annual-date-event-list strong, .annual-date-event-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.annual-date-event-list strong { color: var(--ds-text-secondary); font-size: 11px; }
.annual-date-event-list small { margin-top: 2px; color: var(--ds-text-faint); font-size: 8px; }
.annual-event-form, .annual-weekly-plan-form, .annual-temporary-task-form { display: grid; gap: 8px; border-top: 1px solid var(--ds-border); padding-top: 12px; }
.annual-event-form { grid-template-columns: 1fr 145px; }
.annual-event-form select, .annual-event-form button { grid-column: span 2; }
.annual-event-form label, .annual-weekly-plan-form label, .annual-temporary-task-form label { display: flex; align-items: center; gap: 6px; color: var(--ds-text-muted); font-size: 10px; }
.annual-event-form label { grid-column: span 1; }
.annual-event-form label input, .annual-weekly-plan-form label input, .annual-temporary-task-form label input { width: auto; }
.annual-objective-board { padding: 20px 22px; }
.annual-objective-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.annual-objective-cards article { display: grid; min-width: 0; gap: 6px; border: 1px solid var(--ds-border); border-radius: 12px; padding: 14px; }
.annual-objective-cards article > span, .annual-objective-cards article > small { color: var(--ds-text-muted); font-size: 9px; }
.annual-objective-cards article > strong { display: -webkit-box; overflow: hidden; color: var(--ds-text-secondary); font-size: 12px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.annual-objective-cards article > div { overflow: hidden; height: 5px; border-radius: 9px; background: var(--ds-border); }
.annual-objective-cards article > div i { display: block; height: 100%; border-radius: inherit; background: var(--ds-brand); }

.annual-empty-action { display: grid; min-height: 150px; place-content: center; gap: 7px; border: 1px dashed var(--ds-border-strong); border-radius: 12px; color: var(--ds-text-muted); padding: 20px; text-align: center; }
.annual-empty-action strong { color: var(--ds-text-secondary); font-size: 13px; }
.annual-empty-action span { font-size: 10px; line-height: 1.55; }
.annual-empty-action button { justify-self: center; margin-top: 4px; }

.annual-week-schedule-board { margin-bottom: 18px; padding: 22px; }
.annual-week-table { overflow-x: auto; margin-top: 18px; border: 1px solid var(--ds-border); border-radius: 13px; }
.annual-week-table-head, .annual-week-table-row { display: grid; min-width: 900px; grid-template-columns: 72px repeat(7, minmax(105px, 1fr)); }
.annual-week-table-head { background: var(--ds-surface-subtle); }
.annual-week-table-head > *, .annual-week-table-row > * { min-width: 0; border-right: 1px solid var(--ds-border); padding: 9px; }
.annual-week-table-head > *:last-child, .annual-week-table-row > *:last-child { border-right: 0; }
.annual-week-table-head span, .annual-week-table-head strong { color: var(--ds-text-muted); font-size: 10px; text-align: center; }
.annual-week-table-row { border-top: 1px solid var(--ds-border); }
.annual-week-table-row > strong { color: var(--ds-text-secondary); font-size: 10px; }
.annual-week-table-row > div { display: grid; align-content: start; gap: 5px; min-height: 62px; }
.annual-week-table-row article { position: relative; display: grid; gap: 2px; border-left: 3px solid var(--ds-brand); border-radius: 7px; background: var(--ds-brand-soft); padding: 7px; }
.annual-week-table-row article.life-health { border-color: var(--ds-success); background: var(--ds-success-soft); }
.annual-week-table-row article.finance-debt { border-color: var(--ds-brand); background: #f9f5ff; }
.annual-week-table-row article.learning { border-color: #1570ef; background: #eff8ff; }
.annual-week-table-row article.paused { opacity: .45; }
.annual-week-table-row article span { color: var(--ds-text-secondary); font-size: 9px; font-weight: 800; line-height: 1.35; }
.annual-week-table-row article small { color: var(--ds-text-muted); font-size: 7px; }
.annual-week-table-row article button { position: absolute; top: 2px; right: 2px; width: 20px; min-height: 20px; border: 0; background: transparent; padding: 0; box-shadow: none; }
.annual-weekly-plan-form { grid-template-columns: minmax(220px, 1fr) 100px 110px 150px auto auto; align-items: center; margin-top: 14px; }
.annual-week-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 11px; color: var(--ds-text-muted); font-size: 9px; }
.annual-week-legend span { display: flex; align-items: center; gap: 5px; }
.annual-week-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--ds-brand); }
.annual-week-legend i.life-health { background: var(--ds-success); }
.annual-week-legend i.finance-debt { background: var(--ds-brand); }
.annual-week-legend i.learning { background: #1570ef; }
#page-annual .annual-workspace-rail { position: sticky; top: 24px; align-self: start; }

.annual-daily-workspace { display: grid; grid-template-columns: minmax(360px, .8fr) minmax(0, 1.2fr); gap: 18px; align-items: start; }
.annual-checkin-calendar, .annual-today-checklist { padding: 22px; }
.annual-checkin-week, .annual-checkin-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.annual-checkin-week { margin-bottom: 7px; color: var(--ds-text-faint); font-size: 9px; text-align: center; }
.annual-checkin-days > i { min-height: 56px; }
.annual-checkin-days > button { position: relative; display: grid; min-height: 56px; place-content: center; gap: 3px; border: 1px solid transparent; border-radius: 10px; background: #fff; color: var(--ds-text-secondary); padding: 4px; box-shadow: none; }
.annual-checkin-days > button:hover, .annual-checkin-days > button.selected { border-color: #8098f9; background: var(--ds-brand-soft); }
.annual-checkin-days button > span { font-size: 11px; }
.annual-checkin-days button > small, .annual-checkin-days button > b { font-size: 7px; }
.annual-checkin-days button.complete { border-color: #fecdca; background: #fff6f5; color: var(--ds-danger); }
.annual-checkin-days button.complete > b { border: 1px solid #f04438; border-radius: 50%; color: var(--ds-danger); padding: 3px; transform: rotate(-8deg); }
.annual-checkin-days button.partial { background: #fff7e8; color: var(--ds-warning); }
.annual-checkin-days button.overdue { background: #fff5f4; color: var(--ds-danger); }
.annual-checkin-days button.rest { color: var(--ds-text-faint); }
.annual-checkin-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 13px; color: var(--ds-text-muted); font-size: 9px; }
.annual-checkin-legend span { display: flex; align-items: center; gap: 5px; }
.annual-checkin-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--ds-border-strong); }
.annual-checkin-legend i.complete { background: #f04438; }
.annual-checkin-legend i.partial { background: var(--ds-warning); }
.annual-checkin-legend i.overdue { background: #fda29b; }
.annual-today-checklist-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.annual-today-checklist-head h2 { margin: 4px 0; color: var(--ds-text); font-size: 21px; }
.annual-today-checklist-head p { margin: 0; color: var(--ds-text-muted); font-size: 10px; }
.annual-checkin-stamp { display: grid; min-width: 90px; min-height: 72px; place-content: center; border: 2px solid var(--ds-border-strong); border-radius: 50%; color: var(--ds-text-muted); text-align: center; transform: rotate(-4deg); }
.annual-checkin-stamp.complete { border-color: #f04438; color: var(--ds-danger); }
.annual-checkin-stamp.partial { border-color: var(--ds-warning); color: var(--ds-warning); }
.annual-checkin-stamp strong { font-size: 16px; }
.annual-checkin-stamp span { font-size: 8px; }
.annual-grouped-task-list { display: grid; gap: 14px; margin-top: 18px; }
.annual-grouped-task-list > section { display: grid; gap: 0; overflow: hidden; border: 1px solid var(--ds-border); border-radius: 12px; }
.annual-grouped-task-list section > header { display: flex; align-items: center; justify-content: space-between; background: var(--ds-surface-subtle); padding: 9px 12px; }
.annual-grouped-task-list section > header strong { color: var(--ds-text-secondary); font-size: 10px; }
.annual-grouped-task-list section > header span { color: var(--ds-text-muted); font-size: 9px; }
.annual-grouped-task-list article { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 28px; align-items: center; gap: 9px; border-top: 1px solid var(--ds-border); padding: 10px 11px; }
.annual-grouped-task-list article.done { background: #f6fef9; }
.annual-grouped-task-list article.skipped { opacity: .58; }
.annual-task-check { display: grid; width: 28px; min-height: 28px; place-items: center; border: 1px solid var(--ds-border-strong); border-radius: 8px; background: #fff; color: var(--ds-success); padding: 0; }
.annual-grouped-task-list article.done .annual-task-check { border-color: #6ce9a6; background: var(--ds-success-soft); }
.annual-grouped-task-list article > div strong, .annual-grouped-task-list article > div small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.annual-grouped-task-list article > div strong { color: var(--ds-text-secondary); font-size: 11px; }
.annual-grouped-task-list article > div small { margin-top: 3px; color: var(--ds-text-faint); font-size: 8px; }
.annual-grouped-task-list article > span { border-radius: 999px; padding: 4px 7px; font-size: 8px; }
.annual-grouped-task-list article > span.required { background: var(--ds-danger-soft); color: var(--ds-danger); }
.annual-grouped-task-list article > span.optional { background: var(--ds-surface-muted); color: var(--ds-text-muted); }
.annual-task-more { width: 28px; min-height: 28px; border: 0; background: transparent; padding: 0; box-shadow: none; }
.annual-today-actions { display: flex; gap: 8px; margin-top: 14px; }
.annual-temporary-task-form { grid-template-columns: minmax(180px, 1fr) 150px auto auto; align-items: center; margin-top: 14px; }
.annual-daily-record-details { margin-top: 14px; border-top: 1px solid var(--ds-border); padding-top: 12px; }

.annual-review-periods { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; }
.annual-review-periods h2 { margin: 4px 0; color: var(--ds-text); font-size: 21px; }
.annual-review-periods p { margin: 0; color: var(--ds-text-muted); font-size: 10px; }
.annual-review-periods nav { display: grid; grid-template-columns: repeat(6, 38px); gap: 5px; }
.annual-review-periods nav button { min-height: 30px; border-radius: 8px; padding: 4px; font-size: 9px; }
.annual-review-periods nav button.active { border-color: var(--ds-brand); background: var(--ds-brand-soft); color: var(--ds-brand-strong); }
.annual-review-periods nav button.completed::after { color: var(--ds-success); content: " ·"; }
.annual-auto-review-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr); gap: 18px; }
.annual-review-stats-panel, .annual-ai-review-panel, .annual-year-auto-summary { padding: 20px 22px; }
.annual-review-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.annual-review-metrics article { display: grid; gap: 3px; border: 1px solid var(--ds-border); border-radius: 10px; background: #fcfcfd; padding: 11px; }
.annual-review-metrics span { color: var(--ds-text-muted); font-size: 9px; }
.annual-review-metrics strong { color: var(--ds-text-secondary); font-size: 17px; }
.annual-domain-rate-list { display: grid; gap: 9px; margin-top: 16px; }
.annual-domain-rate-list > div { display: grid; grid-template-columns: 100px minmax(0, 1fr) 42px; align-items: center; gap: 8px; }
.annual-domain-rate-list span, .annual-domain-rate-list strong { color: var(--ds-text-muted); font-size: 9px; }
.annual-domain-rate-list i { overflow: hidden; height: 6px; border-radius: 8px; background: var(--ds-border); }
.annual-domain-rate-list i b { display: block; height: 100%; background: var(--ds-brand); }
.annual-review-interruptions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.annual-review-interruptions > strong { width: 100%; color: var(--ds-text-secondary); font-size: 10px; }
.annual-review-interruptions > span { border-radius: 999px; background: #fff4ed; color: #b93815; padding: 5px 8px; font-size: 8px; }
.annual-ai-review-content { display: grid; gap: 9px; }
.annual-ai-review-content section { border-left: 3px solid #8098f9; border-radius: 8px; background: #f8f9ff; padding: 9px 11px; }
.annual-ai-review-content section strong { color: var(--ds-text-secondary); font-size: 10px; }
.annual-ai-review-content section p { margin: 4px 0 0; color: var(--ds-text-muted); font-size: 9px; line-height: 1.5; }
.annual-ai-review-content section.next-focus { border-color: var(--ds-success); background: #f6fef9; }
.annual-special-context { display: grid; gap: 5px; margin: 13px 0; color: var(--ds-text-secondary); font-size: 10px; }
.annual-ai-review-panel > button { width: 100%; }
.annual-year-auto-summary > div:last-of-type { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.annual-year-auto-summary article { display: grid; gap: 4px; border: 1px solid var(--ds-border); border-radius: 10px; padding: 12px; }
.annual-year-auto-summary article span { color: var(--ds-text-muted); font-size: 9px; }
.annual-year-auto-summary article strong { color: var(--ds-text-secondary); font-size: 19px; }
.annual-year-auto-summary > p { margin: 12px 0 0; color: var(--ds-text-muted); font-size: 10px; }

@media (max-width: 1180px) {
  .annual-year-calendar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .annual-daily-workspace, .annual-auto-review-grid { grid-template-columns: 1fr; }
  .annual-weekly-plan-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .annual-weekly-plan-form button { grid-column: span 3; }
}

@media (max-width: 820px) {
  #page-annual { padding-right: 16px; padding-left: 16px; }
  #page-annual .annual-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .annual-key-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .annual-phase-summary { grid-template-columns: 1fr; }
  .annual-phase-facts { border-top: 1px solid var(--ds-border); border-left: 0; padding-top: 12px; padding-left: 0; }
  .annual-year-calendar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .annual-month-calendar-layout { grid-template-columns: 1fr; }
  .annual-objective-cards { grid-template-columns: 1fr; }
  .annual-calendar-toolbar, .annual-review-periods { align-items: stretch; flex-direction: column; }
  .annual-review-periods nav { grid-template-columns: repeat(6, 1fr); }
  #page-annual .annual-workspace-rail { position: static; }
  .annual-year-auto-summary > div:last-of-type { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
  #page-annual { padding-right: 12px; padding-left: 12px; }
  #page-annual .annual-page-heading { padding-top: 12px; padding-right: 0; }
  #page-annual .annual-page-heading .page-actions { position: static; margin-top: 12px; }
  #page-annual .annual-tabs { grid-template-columns: 1fr 1fr; gap: 8px; }
  #page-annual .annual-tabs button { min-height: 64px; padding: 9px; }
  #page-annual .annual-tabs small { display: none; }
  .annual-key-metrics { grid-template-columns: 1fr 1fr; }
  .annual-key-metrics article { min-height: 92px; padding: 13px; }
  .annual-year-calendar { grid-template-columns: 1fr; }
  .annual-calendar-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .annual-calendar-actions input { grid-column: span 2; width: 100%; }
  .annual-event-form { grid-template-columns: 1fr; }
  .annual-event-form > * { grid-column: auto !important; }
  .annual-weekly-plan-form, .annual-temporary-task-form { grid-template-columns: 1fr; }
  .annual-weekly-plan-form button { grid-column: auto; }
  .annual-checkin-calendar, .annual-today-checklist, .annual-calendar-board { padding: 16px; }
  .annual-checkin-days { gap: 3px; }
  .annual-checkin-days > i, .annual-checkin-days > button { min-height: 45px; }
  .annual-today-checklist-head { align-items: flex-start; flex-direction: column; }
  .annual-checkin-stamp { min-width: 78px; min-height: 62px; }
  .annual-grouped-task-list article { grid-template-columns: 28px minmax(0, 1fr) auto; }
  .annual-task-more { grid-column: 3; }
  .annual-today-actions { display: grid; grid-template-columns: 1fr; }
  .annual-review-periods nav { grid-template-columns: repeat(4, 1fr); }
  .annual-review-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .annual-year-auto-summary > div:last-of-type { grid-template-columns: 1fr 1fr; }
}

img,
svg,
canvas,
video,
iframe {
  max-width: 100%;
}

.page,
#page-home,
#page-annual {
  width: min(100%, var(--ds-content-max));
  max-width: var(--ds-content-max);
  padding-right: var(--ds-page-padding);
  padding-left: var(--ds-page-padding);
}

.page > *,
.panel,
.modal-panel,
.settings-content,
.home-overview > *,
.annual-content > * {
  min-width: 0;
}

.module-empty-state,
.inventory-empty-state,
.resource-empty-state,
.annual-empty-action,
.annual-daily-empty-board {
  min-height: clamp(132px, 18vw, 220px);
}

.home-profile-panel,
.daily-todo-panel,
.home-highlights-panel,
.home-calendar-panel,
.home-annual-panel {
  min-height: 0;
}

.home-execution-list,
#page-home .home-highlights-panel .highlight-list {
  max-height: none;
  overflow: visible;
}

#page-home .carousel-shell,
.home-overview > .carousel-shell {
  height: auto;
  min-height: clamp(190px, 31vw, 420px);
  aspect-ratio: var(--carousel-aspect, 18 / 7);
}

.execution-source-mark {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: var(--ds-text-faint);
  font-size: 18px;
}

.resource-card-actions:empty {
  display: none;
}

.inventory-table td {
  overflow-wrap: anywhere;
}

@media (max-width: 1024px) {
  :root { --page-gutter: 22px; }
  .page-heading,
  .page-heading-centered {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: start;
    text-align: left;
  }
  .page-heading > .eyebrow,
  .page-heading > h2,
  .page-heading > .page-heading-note { grid-column: 1; }
  .page-actions { grid-column: 2; }
}

@media (max-width: 768px) {
  :root { --page-gutter: 16px; }
  .page-heading,
  .page-heading-centered {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .page-actions {
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
    width: 100%;
  }
  .page-actions > *,
  .page-actions button { flex: 1 1 140px; }
  .resource-toolbar,
  .review-generator-grid,
  .settings-runtime-grid,
  .annual-key-metrics,
  .annual-review-metrics {
    grid-template-columns: 1fr;
  }
  .inventory-table,
  .annual-week-table-head,
  .annual-week-table-row {
    min-width: 760px;
  }
  .modal-actions,
  .button-row {
    flex-wrap: wrap;
  }
}

@media (max-width: 390px) {
  :root { --page-gutter: 12px; }
  .workspace-topbar { gap: 8px; padding: 9px 10px; }
  .workspace-tools { gap: 6px; }
  .workspace-avatar { display: none; }
  .panel,
  .home-command-bar,
  #page-home .panel,
  #page-home .home-profile-panel,
  .annual-checkin-calendar,
  .annual-today-checklist,
  .annual-calendar-board {
    padding: 14px;
  }
  .home-command-actions,
  .home-execution-date-tools,
  .annual-calendar-actions,
  .modal-actions,
  .button-row {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .home-command-actions > *,
  .home-execution-date-tools > *,
  .annual-calendar-actions > *,
  .modal-actions > *,
  .button-row > * {
    width: 100%;
  }
  .home-progress-summary { grid-template-columns: 64px minmax(0, 1fr); }
  .home-progress-ring { width: 62px; height: 62px; }
  .daily-todo-item,
  .daily-todo-item.done { grid-template-columns: 28px minmax(0, 1fr) 24px; padding-right: 8px; padding-left: 8px; }
  .todo-item-copy > span { white-space: normal; }
  .annual-review-periods nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .annual-year-auto-summary > div:last-of-type { grid-template-columns: 1fr; }
}

html {
  min-width: 320px;
  background: var(--ds-bg);
  font-size: 16px;
  scroll-padding-top: 84px;
}

body {
  --ds-shell-sidebar-current: var(--ds-sidebar-width);
  min-width: 320px;
  min-height: 100%;
  overflow-x: clip;
  background: var(--ds-bg);
  color: var(--ds-text);
  font-size: var(--ds-font-size-body);
  line-height: var(--ds-line-height-body);
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
  font-family: var(--ds-font-sans);
}

a,
button,
.button-link,
summary,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

button,
.button-link {
  min-height: var(--ds-control-height);
  border: 1px solid var(--ds-border-strong);
  border-radius: var(--ds-control-radius);
  background: var(--ds-surface);
  color: var(--ds-text-secondary);
  padding: 8px 14px;
  font-size: var(--ds-font-size-body-sm);
  font-weight: 650;
  line-height: 1.25;
  box-shadow: none;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

button:hover:not(:disabled),
.button-link:hover {
  border-color: var(--ds-border-hover);
  background: var(--ds-surface-subtle);
  color: var(--ds-text);
}

button:active:not(:disabled),
.button-link:active {
  transform: translateY(1px);
}

button.primary,
.button-link.primary {
  border-color: var(--ds-brand);
  background: var(--ds-brand);
  color: var(--ds-on-brand);
  box-shadow: var(--ds-shadow-button);
}

button.primary:hover:not(:disabled),
.button-link.primary:hover {
  border-color: var(--ds-brand-strong);
  background: var(--ds-brand-strong);
  color: var(--ds-on-brand);
}

button.danger,
.button-link.danger {
  border-color: var(--ds-danger-border);
  background: var(--ds-surface);
  color: var(--ds-danger);
  box-shadow: none;
}

button.danger:hover:not(:disabled),
.button-link.danger:hover {
  border-color: var(--ds-danger-border-strong);
  background: var(--ds-danger-soft);
  color: var(--ds-danger);
}

button:disabled,
.button-link[aria-disabled="true"],
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

:where(button, .button-link, a, input, textarea, select, summary, [role="button"]):focus-visible {
  outline: 3px solid var(--ds-focus-color);
  outline-offset: 2px;
}

input,
textarea,
select {
  width: 100%;
  max-width: 100%;
  min-height: var(--ds-control-height);
  border: 1px solid var(--ds-border-strong);
  border-radius: var(--ds-control-radius);
  background: var(--ds-surface);
  color: var(--ds-text);
  padding: 9px 12px;
  font-size: var(--ds-font-size-body);
  line-height: 1.4;
  box-shadow: none;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--ds-placeholder);
}

input:hover:not(:disabled),
textarea:hover:not(:disabled),
select:hover:not(:disabled) {
  border-color: var(--ds-border-hover);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--ds-brand);
  box-shadow: var(--ds-focus-ring);
}

input[type="checkbox"],
input[type="radio"] {
  width: 20px;
  min-height: 20px;
  height: 20px;
  flex: 0 0 20px;
  padding: 0;
  accent-color: var(--ds-brand);
}

input[type="date"],
input[type="month"],
input[type="week"],
.native-date-input {
  min-width: 0;
  color-scheme: light;
  font-variant-numeric: tabular-nums;
}

label:has(> input),
label:has(> select),
label:has(> textarea),
label:has(> div > input),
label:has(> div > select),
label:has(> div > textarea) {
  position: relative;
  display: grid;
  gap: 7px;
  color: var(--ds-text-secondary);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.required-field-label {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: baseline;
  gap: 2px;
}

.required-field-label .required-indicator {
  color: var(--ds-danger);
  font-size: 1em;
  font-weight: 800;
  line-height: 1;
}

.inline-check,
.toggle-row,
label.inline-check,
label.toggle-row,
label:has(> input[type="checkbox"]),
label:has(> input[type="radio"]) {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 9px;
}

.form-error,
[role="alert"] {
  color: var(--ds-danger);
  font-size: 13px;
  line-height: 1.45;
}

.app-nav {
  width: var(--ds-sidebar-width);
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  gap: 14px;
  overflow-x: hidden;
  border-right: 1px solid var(--ds-border);
  background: var(--ds-surface);
  padding: 18px 12px 16px;
  box-shadow: none;
  transition: width 180ms ease, transform 180ms ease, padding 180ms ease;
}

.brand {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, #6d6eea, #4748c9);
  box-shadow: 0 6px 14px rgba(91, 92, 226, 0.2);
}

.brand > div:not(.brand-mark) {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.brand strong,
.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand strong {
  font-size: 14px;
}

.brand span {
  font-size: 12px;
}

.nav-collapse-button {
  display: grid;
  width: 30px;
  min-height: 30px;
  height: 30px;
  place-items: center;
  border-color: var(--ds-border);
  border-radius: 9px;
  padding: 0;
  color: var(--ds-text-muted);
  font-size: 20px;
  line-height: 1;
}

.workspace-chip {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 9px;
  border: 1px solid #dfe3ff;
  border-radius: 11px;
  background: #f7f7ff;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 650;
}

.global-jump {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--ds-border);
  border-radius: 11px;
  background: var(--ds-surface-subtle);
  padding: 0 9px;
  color: var(--ds-text-muted);
}

.global-jump > span {
  display: grid;
  place-items: center;
  font-size: 18px;
}

.global-jump input {
  min-height: 38px;
  border: 0;
  background: transparent;
  padding: 7px 4px;
  box-shadow: none;
  font-size: 13px;
}

.global-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 80;
  display: grid;
  width: min(420px, calc(100vw - 32px));
  max-height: min(60vh, 460px);
  gap: 4px;
  overflow-y: auto;
  border: 1px solid var(--ds-border);
  border-radius: 14px;
  background: var(--ds-surface);
  padding: 8px;
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.16);
}

.global-search-results > button {
  display: grid;
  height: auto;
  justify-items: start;
  gap: 2px;
  border-color: transparent;
  padding: 9px 10px;
  text-align: left;
}

.global-search-results > button span {
  color: var(--ds-text-muted);
  font-size: 12px;
}

.global-search-results > button strong {
  color: var(--ds-text);
  font-size: 13px;
}

.nav-list {
  gap: 13px;
}

.nav-section {
  gap: 4px;
}

.nav-section-label {
  display: flex;
  min-height: 28px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 8px 2px;
  border-radius: 7px;
  color: #7a8699;
  padding: 2px 0;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.07em;
  cursor: pointer;
}

.nav-section-label::after {
  color: var(--ds-text-faint);
  content: "⌄";
  font-size: 12px;
  transition: transform 150ms ease;
}

.nav-section.collapsed .nav-section-label::after {
  transform: rotate(-90deg);
}

.nav-section.collapsed .nav-btn {
  display: none;
}

.nav-btn {
  min-height: 42px;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 9px;
  color: var(--ds-text-secondary);
  font-size: 13px;
  font-weight: 620;
}

.nav-btn:hover {
  border-color: #edf0f5;
  background: var(--ds-surface-subtle);
}

.nav-btn.active {
  border-color: #e1e3ff;
  background: var(--ds-brand-soft);
  color: var(--ds-brand-strong);
}

.nav-icon {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  border-radius: 8px;
  background: transparent;
}

.nav-btn.active .nav-icon {
  background: var(--ds-brand-soft-strong);
}

.nav-foot {
  display: grid;
  gap: 10px;
  border-color: var(--ds-border);
  border-radius: 12px;
  background: var(--ds-surface-subtle);
  padding: 11px;
}

.nav-foot > div:first-child {
  display: grid;
  gap: 2px;
}

.nav-foot strong {
  font-size: 13px;
}

.nav-foot span {
  font-size: 12px;
}

.nav-foot-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.nav-foot-actions button {
  min-height: 34px;
  padding: 5px 8px;
  font-size: 12px;
}

.app-main {
  width: auto;
  min-height: 100vh;
  min-height: 100dvh;
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin-left: var(--ds-sidebar-width);
  background: var(--ds-bg);
  transition: margin-left 180ms ease;
}

.workspace-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: var(--ds-topbar-height);
  gap: 12px;
  border-bottom: 1px solid var(--ds-border);
  background: var(--ds-surface);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  padding-block: 10px;
  padding-inline: max(
    var(--ds-page-padding),
    calc((100vw - var(--ds-shell-sidebar-current) - var(--ds-content-max)) / 2 + var(--ds-page-padding))
  );
}

.workspace-heading {
  gap: 1px;
}

.workspace-heading-title {
  gap: 10px;
}

.workspace-heading-title > span,
.workspace-heading span,
.workspace-motivation {
  color: var(--ds-text-muted);
  font-size: 12px;
}

.workspace-heading strong {
  color: var(--ds-text);
  font-size: 17px;
  line-height: 1.3;
}

.workspace-tools {
  gap: 10px;
}

.workspace-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--ds-brand-soft);
  color: var(--ds-brand-strong);
  font-size: 12px;
  font-weight: 750;
}

body.nav-collapsed .app-nav {
  width: var(--ds-sidebar-collapsed);
  padding-right: 10px;
  padding-left: 10px;
}

body.nav-collapsed .app-main {
  margin-left: var(--ds-sidebar-collapsed);
}

body.nav-collapsed {
  --ds-shell-sidebar-current: var(--ds-sidebar-collapsed);
}

body.nav-collapsed .brand {
  grid-template-columns: 1fr;
  justify-items: center;
}

body.nav-collapsed .brand > div:not(.brand-mark),
body.nav-collapsed .workspace-chip > span:last-child,
body.nav-collapsed .global-jump input,
body.nav-collapsed .nav-section-label,
body.nav-collapsed .nav-btn > span:last-child,
body.nav-collapsed .nav-foot {
  display: none;
}

body.nav-collapsed .brand-mark {
  width: 38px;
  height: 38px;
}

body.nav-collapsed .nav-collapse-button {
  position: absolute;
  top: 5px;
  right: -3px;
  width: 24px;
  min-height: 28px;
  height: 28px;
  background: var(--ds-surface);
  font-size: 18px;
}

body.nav-collapsed .workspace-chip,
body.nav-collapsed .global-jump,
body.nav-collapsed .nav-btn {
  width: 44px;
  min-height: 42px;
  justify-content: center;
  padding: 0;
}

body.nav-collapsed .global-jump {
  display: grid;
  grid-template-columns: 1fr;
}

body.nav-collapsed .nav-list {
  gap: 5px;
}

body.nav-collapsed .nav-section {
  gap: 4px;
}

.page,
#page-home,
#page-annual {
  width: min(100%, var(--ds-content-max));
  max-width: var(--ds-content-max);
  margin: 0 auto;
  padding: var(--ds-page-block-start) var(--ds-page-padding) var(--ds-page-block-end);
}

.app-main > .page.active {
  flex: 1 0 auto;
}

.page > *,
.page :where(.panel, article, section, form, table),
.home-overview > *,
.annual-content > * {
  min-width: 0;
}

.page-heading,
.page-heading-centered {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto;
  align-items: center;
  justify-items: start;
  gap: 3px 20px;
  min-height: 0;
  margin: 0 0 var(--ds-section-gap);
  text-align: left;
}

.page-heading > .eyebrow,
.page-heading > h2,
.page-heading > .page-heading-note,
.page-heading-centered > .eyebrow,
.page-heading-centered > h2,
.page-heading-centered > .page-heading-note {
  grid-column: 1;
}

.page-heading .eyebrow,
.page .eyebrow,
.module-section-kicker,
.annual-board-kicker,
[class$="-kicker"] {
  margin: 0;
  color: var(--ds-brand);
  font-size: var(--ds-font-size-meta);
  font-weight: 750;
  letter-spacing: 0.045em;
  line-height: 1.35;
}

.page-heading h2 {
  margin: 0;
  color: var(--ds-text);
  font-size: var(--ds-font-size-page-title);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.page-heading-note {
  max-width: 760px;
  margin: 3px 0 0;
  color: var(--ds-text-muted);
  font-size: var(--ds-font-size-body-sm);
  line-height: var(--ds-line-height-body);
}

.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ds-bg);
}

.page-actions {
  position: static;
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  justify-self: end;
  gap: 8px;
  margin: 0;
  transform: none;
}

.panel,
.home-overview > .panel,
.home-profile-panel,
.kb-layout,
.exam-paper,
.review-paper,
.annual-section,
.learning-plan-overview,
.automation-hero,
.automation-panel {
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-card-radius);
  background: var(--ds-surface);
  box-shadow: var(--admin-shadow);
}

.panel,
.home-overview > .panel,
#page-home .panel,
#page-home .home-profile-panel,
.annual-checkin-calendar,
.annual-today-checklist,
.annual-calendar-board {
  padding: var(--ds-card-padding);
}

.panel:hover,
.home-overview > .panel:hover {
  border-color: var(--ds-border-strong);
}

.panel-head {
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-head h2,
.panel-head h3,
.page .module-section-title {
  margin: 0;
  color: var(--ds-text);
  font-size: var(--ds-font-size-section-title);
  font-weight: 720;
  letter-spacing: -0.018em;
  line-height: 1.3;
}

.panel-head span,
.panel-head p,
.page small,
.page .muted {
  color: var(--ds-text-muted);
  font-size: var(--ds-font-size-meta);
  line-height: 1.5;
}

.page p,
.page li,
.page td,
.page input,
.page textarea,
.page select,
.page button {
  font-size: max(var(--ds-font-size-body-sm), 0.875rem);
}

.page button {
  font-size: max(14px, 1em) !important;
}

.page small,
.page .muted,
.page [class*="-meta"],
.page [class*="-label"],
#page-home [class*="-legend"],
.page summary,
#page-home .home-overview span {
  font-size: max(var(--ds-font-size-meta), 0.8125rem) !important;
}

.metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--ds-card-gap);
}

.metric {
  min-height: 104px;
  border: 1px solid var(--ds-border);
  border-radius: 14px;
  background: var(--ds-surface);
  padding: 18px;
  box-shadow: none;
}

.metric strong,
[class*="metric"] > strong,
[class*="-stat"] > strong {
  color: var(--ds-text);
  font-size: clamp(22px, 2vw, 28px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.learning-plan-overview,
.home-command-bar,
.module-hero:not(.dark),
.main-overview-card {
  border-color: var(--ds-brand-border);
  background: var(--ds-surface);
  box-shadow: inset 3px 0 0 var(--ds-brand);
}

.table-toolbar {
  gap: 10px;
  border: 1px solid var(--ds-border);
  border-radius: 12px;
  background: var(--ds-surface-subtle);
  padding: 10px;
}

#page-inventory .inventory-toolbar.table-toolbar {
  gap: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  color: var(--ds-text-secondary);
  font-size: var(--ds-font-size-body-sm);
  line-height: 1.45;
}

th {
  color: var(--ds-text-secondary);
  font-size: var(--ds-font-size-body-sm);
  font-weight: 700;
  text-align: left;
}

th,
td {
  border-color: var(--ds-border);
  padding: 11px 12px;
  vertical-align: top;
}

.inventory-table-wrap,
.annual-edit-table-wrap {
  max-width: 100%;
  border-color: var(--ds-border);
  border-radius: 14px;
}

.inventory-table,
.annual-edit-table,
.responsive-table {
  min-width: 0;
}

.empty-state {
  display: grid;
  min-height: 156px;
  align-content: center;
  justify-items: center;
  gap: 8px;
  border: 1px dashed var(--ds-border-strong);
  border-radius: 14px;
  background: var(--ds-surface-subtle);
  padding: 28px 20px;
  color: var(--ds-text-muted);
  text-align: center;
}

.empty-state strong {
  color: var(--ds-text);
  font-size: 16px;
  line-height: 1.4;
}

.empty-state > span,
.empty-state > p {
  max-width: 520px;
  margin: 0;
  color: var(--ds-text-muted);
  font-size: var(--ds-font-size-body-sm);
  line-height: 1.55;
}

.empty-state[data-empty-kind]::before {
  display: inline-flex;
  justify-self: center;
  border-radius: 999px;
  background: var(--ds-surface-muted);
  color: var(--ds-text-muted);
  padding: 4px 9px;
  font-size: var(--ds-font-size-meta);
  font-weight: 700;
  content: "空状态";
}

.empty-state[data-empty-kind="module"]::before { content: "模块为空"; }
.empty-state[data-empty-kind="category"]::before { content: "分类为空"; }
.empty-state[data-empty-kind="archive"]::before { content: "档案为空"; }
.empty-state[data-empty-kind="search"]::before { content: "搜索无结果"; }
.empty-state[data-empty-kind="config"]::before {
  background: var(--ds-warning-soft);
  color: var(--ds-warning);
  content: "尚未配置";
}
.empty-state[data-empty-kind="error"]::before {
  background: var(--ds-danger-soft);
  color: var(--ds-danger);
  content: "加载失败";
}

.table-empty-state {
  margin: 12px 0;
}

.stock-status,
.status-badge,
.annual-status-badge,
.risk-badge,
[class*="status-chip"] {
  font-size: var(--ds-font-size-meta);
  font-weight: 700;
}

.stock-status.normal,
.status-success,
.annual-status-badge.good {
  background: var(--ds-success-soft);
  color: var(--ds-success);
}

.stock-status.low,
.stock-status.expiring,
.status-warning,
.annual-status-badge.waiting {
  background: var(--ds-warning-soft);
  color: var(--ds-warning);
}

.stock-status.empty,
.status-danger,
.status-error {
  background: var(--ds-danger-soft);
  color: var(--ds-danger);
}

.modal {
  z-index: 100;
  padding: 24px;
}

.modal-panel {
  width: min(720px, calc(100vw - 48px));
  max-width: 100%;
  max-height: min(88dvh, 860px);
  overflow: hidden;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-modal);
  background: var(--ds-surface);
  box-shadow: var(--ds-shadow-modal);
}

.modal-head,
.modal-body,
.modal-actions {
  padding-right: 24px;
  padding-left: 24px;
}

.modal-head {
  min-height: 68px;
  border-bottom: 1px solid var(--ds-border);
  padding-top: 16px;
  padding-bottom: 16px;
}

.modal-head h2 {
  font-size: 20px;
  line-height: 1.3;
}

.modal-body {
  overflow-y: auto;
  padding-top: 20px;
  padding-bottom: 20px;
}

.modal-actions {
  gap: 9px;
  border-top: 1px solid var(--ds-border);
  background: var(--ds-surface-subtle);
  padding-top: 14px;
  padding-bottom: 14px;
}

.privacy-blurred,
[data-privacy="blurred"] img {
  filter: blur(12px);
}

@media (max-width: 1180px) and (min-width: 1025px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  :root {
    --ds-page-padding: 24px;
    --ds-page-block-start: 24px;
    --ds-page-block-end: 48px;
  }

  .app-nav,
  body.nav-collapsed .app-nav {
    width: min(320px, calc(100vw - 32px));
    gap: 14px;
    overflow-x: hidden;
    padding: 18px 14px 16px;
    transform: translateX(-105%);
    box-shadow: 18px 0 44px rgba(16, 24, 40, 0.17);
  }

  body.nav-open .app-nav,
  body.nav-collapsed.nav-open .app-nav {
    transform: translateX(0);
  }

  .app-main,
  body.nav-collapsed .app-main {
    width: 100%;
    margin-left: 0;
  }

  .mobile-nav-toggle {
    display: inline-grid;
    min-height: 42px;
    place-items: center;
  }

  .nav-collapse-button,
  body.nav-collapsed .nav-collapse-button {
    display: none;
  }

  body.nav-collapsed .brand {
    grid-template-columns: 40px minmax(0, 1fr);
    justify-items: stretch;
  }

  body.nav-collapsed .brand > div:not(.brand-mark),
  body.nav-collapsed .workspace-chip > span:last-child,
  body.nav-collapsed .global-jump input,
  body.nav-collapsed .nav-section-label,
  body.nav-collapsed .nav-btn > span:last-child,
  body.nav-collapsed .nav-foot {
    display: initial;
  }

  body.nav-collapsed .brand > div:not(.brand-mark),
  body.nav-collapsed .nav-foot {
    display: grid;
  }

  body.nav-collapsed .workspace-chip,
  body.nav-collapsed .global-jump,
  body.nav-collapsed .nav-btn {
    width: 100%;
    justify-content: flex-start;
    padding-right: 9px;
    padding-left: 9px;
  }

  body.nav-collapsed .global-jump {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  body.nav-collapsed .nav-list {
    gap: 13px;
  }

  .workspace-topbar {
    padding-right: 24px;
    padding-left: 24px;
  }

  .page-heading,
  .page-heading-centered {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  :root {
    --ds-page-padding: 16px;
    --ds-page-block-start: 20px;
    --ds-page-block-end: max(40px, calc(24px + env(safe-area-inset-bottom)));
    --ds-section-gap: 16px;
    --ds-card-gap: 14px;
    --ds-card-padding: 16px;
    --ds-card-radius: 14px;
    --ds-control-height: 44px;
  }

  .workspace-topbar {
    min-height: 64px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 9px max(16px, env(safe-area-inset-right)) 9px max(16px, env(safe-area-inset-left));
  }

  .workspace-heading-title > span,
  .workspace-motivation,
  .workspace-tools > span:first-child {
    display: none;
  }

  .workspace-heading strong {
    display: block;
    overflow: hidden;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .workspace-heading,
  .workspace-heading-title,
  .workspace-tools {
    min-width: 0;
  }

  .workspace-tools .workspace-avatar {
    display: none;
  }

  .page,
  #page-home,
  #page-annual {
    padding: var(--ds-page-block-start) var(--ds-page-padding) var(--ds-page-block-end);
  }

  .page-heading,
  .page-heading-centered {
    grid-template-columns: 1fr;
    gap: 4px;
    margin-bottom: 16px;
  }

  .page-heading h2 {
    font-size: 28px;
  }

  .page-actions {
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
    width: 100%;
    margin-top: 10px;
  }

  .page-actions > *,
  .page-actions button {
    flex: 1 1 140px;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel,
  .home-overview > .panel,
  #page-home .panel,
  #page-home .home-profile-panel,
  .annual-checkin-calendar,
  .annual-today-checklist,
  .annual-calendar-board {
    padding: var(--ds-card-padding);
  }

  #page-home .panel,
  #page-home .home-profile-panel,
  #page-home .carousel-shell,
  #page-home .home-command-bar {
    border-radius: 14px;
  }

  .responsive-table,
  .inventory-table,
  .annual-edit-table {
    display: block;
    width: 100%;
    min-width: 0;
    border: 0;
  }

  .responsive-table thead,
  .inventory-table thead,
  .annual-edit-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .responsive-table tbody,
  .inventory-table tbody,
  .annual-edit-table tbody {
    display: grid;
    gap: 12px;
  }

  .responsive-table tr,
  .inventory-table tr,
  .annual-edit-table tr {
    display: grid;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--ds-border);
    border-radius: 13px;
    background: var(--ds-surface);
  }

  .responsive-table td,
  .inventory-table td,
  .annual-edit-table td {
    display: grid;
    grid-template-columns: minmax(88px, 34%) minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    min-width: 0;
    border: 0;
    border-bottom: 1px solid #edf0f5;
    padding: 11px 12px;
    overflow-wrap: anywhere;
  }

  .responsive-table td:last-child,
  .inventory-table td:last-child,
  .annual-edit-table td:last-child {
    border-bottom: 0;
  }

  .responsive-table td::before,
  .inventory-table td::before,
  .annual-edit-table td::before {
    color: var(--ds-text-muted);
    content: attr(data-label);
    font-size: 12px;
    font-weight: 700;
  }

  .inventory-table-wrap,
  .annual-edit-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  .inventory-table input,
  .inventory-table select {
    min-height: 40px;
    border-color: var(--ds-border-strong);
    background: var(--ds-surface);
  }

  .annual-week-table-head {
    display: none;
  }

  .annual-week-table-row {
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .inventory-pagination {
    align-items: stretch;
    flex-direction: column;
    border: 1px solid var(--ds-border);
    border-radius: 12px;
    margin-top: 12px;
  }

  .inventory-pagination-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .modal {
    align-items: flex-end;
    padding: 16px;
  }

  .modal-panel {
    width: 100%;
    max-height: calc(100dvh - 32px);
    border-radius: 16px;
  }

  .modal-head,
  .modal-body,
  .modal-actions {
    padding-right: 16px;
    padding-left: 16px;
  }

  .modal-actions,
  .button-row {
    flex-wrap: wrap;
  }
}

@media (max-width: 540px) {
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .workspace-tools {
    gap: 6px;
  }

  .workspace-avatar {
    display: none;
  }

  .page-actions,
  .button-row,
  .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .page-actions > *,
  .button-row > *,
  .modal-actions > * {
    width: 100%;
  }
}

@media (max-width: 390px) {
  :root {
    --ds-page-padding: 14px;
  }

  .workspace-topbar {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 9px;
    padding-right: max(12px, env(safe-area-inset-right));
    padding-left: max(12px, env(safe-area-inset-left));
  }

  .responsive-table td,
  .inventory-table td,
  .annual-edit-table td {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Final type guardrails: readable body copy with a distinct, restrained metadata tier. */
.page p,
.page li,
.page dd,
.page td {
  font-size: max(var(--ds-font-size-body), 0.9375rem) !important;
}

.page label,
.page input,
.page textarea,
.page select,
.page button {
  font-size: max(var(--ds-font-size-body-sm), 0.875rem) !important;
}

.page small,
.page .muted,
.page [class*="-meta"],
.page [class*="-helper"],
.page [class*="-caption"],
.page [class*="-note"] {
  font-size: max(var(--ds-font-size-meta), 0.8125rem) !important;
}

.practice-recent-item strong,
.review-queue-list strong,
.annual-date-event-list strong,
.annual-week-table-row > strong,
.annual-grouped-task-list strong,
.annual-review-interruptions > strong,
.annual-ai-review-content strong,
.home-reminder-item strong,
.todo-item-copy strong,
.highlight-copy strong,
.home-empty-state strong {
  font-size: var(--ds-font-size-meta) !important;
}

.annual-mini-week,
.review-score-card div {
  font-size: var(--ds-font-size-meta) !important;
}

#page-home .panel,
#page-home .home-profile-panel,
#page-home .carousel-shell,
#page-home .home-command-bar {
  border-radius: var(--ds-card-radius);
}

@media (max-width: 768px) {
  #page-home .panel,
  #page-home .home-profile-panel,
  #page-home .carousel-shell,
  #page-home .home-command-bar {
    border-radius: 14px;
  }
}

/* Keep dashboard v4 above the legacy home-workspace cascade. */
#page-home .home-overview {
  display: block;
}

#page-home .home-highlights-panel {
  display: block !important;
}

