:root {
  color-scheme: light;
  --bg: #f3f5f7;
  --surface: #ffffff;
  --surface-soft: #f8fafb;
  --line: #e3e8ee;
  --line-strong: #d4dbe3;
  --text: #17202a;
  --muted: #687483;
  --muted-2: #8c97a5;
  --blue: #315efb;
  --blue-soft: #edf2ff;
  --green: #16845b;
  --green-soft: #e9f7f1;
  --red: #d63b45;
  --red-soft: #fff0f1;
  --amber: #a96500;
  --amber-soft: #fff5df;
  --ink: #10151b;
  --shadow: 0 8px 28px rgba(31, 43, 58, 0.07);
  --header-height: 66px;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; color: var(--text); background: var(--bg); font-size: 14px; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
svg { width: 18px; height: 18px; stroke-width: 1.9; }
.hidden { display: none !important; }

.login-body { min-height: 100vh; min-height: 100dvh; overflow-x: hidden; background: #e9edf1; }
.login-page { width: 100%; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.login-panel { width: min(760px, 100%); min-height: 450px; display: grid; grid-template-columns: 280px minmax(0, 1fr); overflow: hidden; background: #fff; border: 1px solid #d7dde4; border-radius: 8px; box-shadow: 0 24px 70px rgba(25, 35, 47, .16); }
.login-header { display: flex; align-items: flex-start; gap: 12px; padding: 34px; color: #fff; background: #202c38; }
.login-header .brand-mark { background: var(--blue); }
.login-brand-copy { display: grid; gap: 2px; }
.login-brand-copy strong { font-size: 15px; }
.login-brand-copy small { color: #aeb9c4; font-size: 11px; }
.login-content { display: grid; align-content: center; padding: 48px 52px; }
.login-heading { margin-bottom: 24px; }
.login-heading h1 { margin: 0 0 8px; font-size: 24px; letter-spacing: 0; }
.login-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.login-form { display: grid; gap: 18px; }
.login-submit { width: 100%; min-height: 42px; }
.auth-error { padding: 10px 12px; color: #a2242d !important; background: var(--red-soft); border-left: 3px solid var(--red); font-size: 12px; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr);
  align-items: center;
  padding: 0 30px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: var(--blue);
  border-radius: 7px;
  font-weight: 800;
  font-size: 16px;
}
.brand > div:last-child { display: grid; gap: 1px; }
.brand strong { font-size: 15px; white-space: nowrap; }
.brand span { color: var(--muted-2); font-size: 9px; font-weight: 700; letter-spacing: 1.5px; }

.main-nav { display: flex; align-items: center; gap: 4px; padding: 4px; background: #f4f6f8; border-radius: 7px; }
.nav-item {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 17px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
}
.nav-item:hover { color: var(--text); }
.nav-item.active { color: var(--text); background: var(--surface); box-shadow: 0 2px 8px rgba(31, 43, 58, .08); font-weight: 650; }
.nav-item svg { width: 16px; height: 16px; }

.header-actions { justify-self: end; display: flex; align-items: center; gap: 18px; }
.header-actions > a.icon-button { color: inherit; text-decoration: none; }
.manager-switcher { gap: 9px; }
.manager-switcher label { display: grid; gap: 1px; }
.manager-switcher select {
  max-width: 118px;
  padding: 0 20px 0 0;
  border: 0;
  outline: 0;
  background-color: transparent;
  color: var(--text);
  font-weight: 700;
}
.manager-switcher label > span { color: var(--muted-2); font-size: 11px; }
.manager-switcher select:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 3px; }
.icon-button {
  position: relative;
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 6px;
}
.icon-button:hover { border-color: var(--line-strong); background: var(--surface-soft); }
.notification-dot { position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; background: var(--red); border: 1px solid #fff; border-radius: 50%; }
.user-block { display: flex; align-items: center; gap: 9px; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: var(--green); border-radius: 50%; font-size: 12px; font-weight: 700; }
.user-block > div { display: grid; gap: 1px; }
.user-block strong { font-size: 13px; }
.user-block div span { color: var(--muted-2); font-size: 11px; }
.signed-user { min-width: 0; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.signed-user-copy { display: grid; gap: 1px; min-width: 0; }
.signed-user-copy strong { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.signed-user-copy small { color: var(--muted-2); font-size: 10px; }

main { width: min(1440px, 100%); margin: 0 auto; padding: 31px 34px 70px; }
.view { display: none; }
.view.active { display: block; animation: view-in .18s ease-out; }
@keyframes view-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 23px; }
.page-heading h1 { margin: 3px 0 0; font-size: 27px; line-height: 1.2; letter-spacing: 0; }
.eyebrow { margin: 0; color: var(--muted-2); font-size: 11px; font-weight: 700; letter-spacing: .8px; }
.primary-button, .secondary-button, .text-button, .danger-text-button, .danger-button, .back-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 15px;
  border-radius: 6px;
  font-weight: 650;
  border: 1px solid transparent;
  white-space: nowrap;
}
.primary-button { color: #fff; background: var(--blue); border-color: var(--blue); }
.primary-button:hover { background: #234ee6; }
.secondary-button { background: #fff; border-color: var(--line-strong); }
.secondary-button:hover { background: var(--surface-soft); }
.text-button, .back-button { background: transparent; border-color: transparent; color: var(--muted); }
.text-button:hover, .back-button:hover { color: var(--text); background: #e9edf1; }
.danger-text-button { background: transparent; color: var(--red); border-color: transparent; }
.danger-text-button:hover { background: var(--red-soft); }
.danger-button { color: #fff; background: var(--red); border-color: var(--red); }
.danger-button:hover { background: #bd2d37; }
.primary-button svg, .secondary-button svg, .text-button svg, .back-button svg, .danger-text-button svg, .danger-button svg { width: 16px; height: 16px; }

.metric-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: 92px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}
.metric-item { position: relative; display: flex; align-items: center; gap: 13px; padding: 18px 22px; min-width: 0; }
.metric-item + .metric-item::before { content: ""; position: absolute; left: 0; top: 21px; bottom: 21px; width: 1px; background: var(--line); }
.metric-icon { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 7px; color: var(--blue); background: var(--blue-soft); }
.metric-icon.red { color: var(--red); background: var(--red-soft); }
.metric-icon.amber { color: var(--amber); background: var(--amber-soft); }
.metric-icon.green { color: var(--green); background: var(--green-soft); }
.metric-copy { display: grid; gap: 2px; min-width: 0; }
.metric-copy strong { font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; }
.metric-copy span { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.filter-panel { padding: 17px 18px 13px; margin-bottom: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.filter-topline, .filter-footer { display: flex; align-items: center; gap: 12px; }
.filter-topline { justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid #edf0f3; }
.filter-heading { display: flex; align-items: center; gap: 8px; }
.filter-heading svg { width: 16px; height: 16px; color: var(--blue); }
.filter-heading strong { font-size: 13px; }
.filter-groups { display: grid; padding: 5px 0; }
.filter-group { min-width: 0; display: grid; grid-template-columns: 128px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 47px; border-bottom: 1px solid #f0f2f4; }
.filter-group:last-child { border-bottom: 0; }
.filter-label { color: var(--muted); font-size: 12px; font-weight: 650; }
.filter-options { display: flex; align-items: center; gap: 5px; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.filter-options button { min-width: 58px; min-height: 30px; padding: 0 12px; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 5px; white-space: nowrap; }
.filter-options button:hover { color: var(--text); background: var(--surface-soft); }
.filter-options button.active { color: var(--blue); background: var(--blue-soft); border-color: #d9e3ff; font-weight: 650; }
.filter-footer { justify-content: flex-end; padding-top: 10px; border-top: 1px solid #edf0f3; }
.segmented { display: inline-flex; padding: 3px; background: #f1f3f5; border-radius: 6px; overflow-x: auto; max-width: 100%; }
.segmented button { min-height: 32px; padding: 0 14px; color: var(--muted); background: transparent; border: 0; border-radius: 4px; white-space: nowrap; }
.segmented button.active { color: var(--text); background: #fff; box-shadow: 0 1px 5px rgba(20, 29, 40, .08); font-weight: 650; }
.search-box { width: min(310px, 35vw); min-width: 220px; height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 11px; background: #f7f9fa; border: 1px solid var(--line); border-radius: 6px; }
.search-box:focus-within { border-color: #9cb1ff; box-shadow: 0 0 0 3px rgba(49,94,251,.09); background: #fff; }
.search-box svg { color: var(--muted-2); width: 16px; height: 16px; }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); }
.search-box input::placeholder { color: #9aa4b1; }
.manager-toolbar select { min-width: 74px; height: 34px; padding: 0 25px 0 4px; border: 0; outline: 0; background: transparent; color: var(--text); }
.result-count { margin-left: auto; color: var(--muted); font-size: 12px; }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.project-card {
  position: relative;
  min-height: 235px;
  display: flex;
  flex-direction: column;
  padding: 19px 20px 17px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.project-card:hover { transform: translateY(-2px); border-color: #cfd6df; box-shadow: var(--shadow); }
.project-card:hover h3 { color: var(--blue); }
.project-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-color: transparent; }
.project-card.warning::before, .project-card.intervention::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--amber); }
.project-card.intervention::before { background: var(--red); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-title { min-width: 0; text-align: left; }
.card-title h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.35; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .16s ease; }
.org-name { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; }
.org-name svg { width: 14px; height: 14px; }
.tag-row { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.tag { min-height: 24px; display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; border-radius: 4px; color: #55616f; background: #f0f3f6; font-size: 11px; font-weight: 650; white-space: nowrap; }
.tag.blue { color: #254cc6; background: var(--blue-soft); }
.tag.red { color: #b82a34; background: var(--red-soft); }
.tag.amber { color: #895500; background: var(--amber-soft); }
.tag.green { color: #0d704a; background: var(--green-soft); }
.tag.outline { background: #fff; border: 1px solid var(--line); }
.card-progress { margin: 19px 0 16px; }
.progress-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; color: var(--muted); font-size: 12px; }
.progress-meta strong { color: var(--text); font-variant-numeric: tabular-nums; }
.progress-track { height: 6px; overflow: hidden; border-radius: 3px; background: #edf0f3; }
.progress-fill { height: 100%; border-radius: inherit; background: var(--blue); }
.progress-fill.warning { background: var(--amber); }
.progress-fill.intervention { background: var(--red); }
.card-details { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: auto; }
.card-detail { min-width: 0; display: grid; gap: 5px; }
.card-detail span { color: var(--muted-2); font-size: 11px; }
.card-detail strong { font-size: 12px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-detail:nth-child(even) { text-align: right; }
.tolerance-negative { color: var(--red); }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; margin-top: 15px; border-top: 1px solid #edf0f3; }
.owner-chip { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 12px; }
.mini-avatar { width: 25px; height: 25px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #dfe7ff; color: #294bbb; font-size: 10px; font-weight: 700; }
.update-age { color: var(--muted-2); font-size: 11px; white-space: nowrap; }

.empty-state { min-height: 300px; display: grid; place-items: center; align-content: center; gap: 9px; color: var(--muted); }
.empty-state svg { width: 36px; height: 36px; color: #9da7b4; }
.empty-state h3 { margin: 0 0 4px; color: var(--text); font-size: 16px; }

.detail-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.detail-actions { display: flex; gap: 4px; }
.detail-header { padding: 23px 25px 22px; margin-bottom: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.detail-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; }
.detail-title-row h1 { margin: 0 0 7px; font-size: 25px; line-height: 1.3; letter-spacing: 0; }
.detail-title-row p { margin: 0; color: var(--muted); }
.detail-status-group { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.detail-progress-row { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto; gap: 25px; align-items: end; margin-top: 23px; }
.detail-progress-block { min-width: 0; }
.detail-progress-block .progress-meta { margin-bottom: 8px; }
.detail-stat { display: grid; gap: 3px; min-width: 100px; }
.detail-stat span { color: var(--muted-2); font-size: 11px; }
.detail-stat strong { font-size: 14px; }
.detail-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; align-items: start; }
.detail-nav { position: sticky; top: calc(var(--header-height) + 16px); display: grid; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.detail-nav button { height: 42px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); text-align: left; }
.detail-nav button:hover { background: #f4f6f8; color: var(--text); }
.detail-nav button.active { background: var(--blue-soft); color: #254cc6; font-weight: 650; }
.detail-nav svg { width: 16px; height: 16px; }
.detail-content { min-width: 0; display: grid; gap: 16px; }
.content-section { padding: 21px 23px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.section-heading { min-height: 36px; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.section-heading h2 { margin: 0; font-size: 17px; letter-spacing: 0; }
.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.section-heading > span, .section-heading > div > span { font-size: 16px; font-weight: 700; }
.section-heading > div { display: flex; align-items: baseline; gap: 8px; }
.section-heading > div > strong { color: var(--muted-2); font-size: 12px; }
.data-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.data-item { min-height: 83px; display: grid; align-content: center; gap: 8px; padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.data-item.wide { grid-column: span 3; }
.data-item span { color: var(--muted-2); font-size: 11px; }
.data-item strong { font-size: 13px; font-weight: 600; line-height: 1.65; white-space: pre-line; }
.notice-box { display: flex; gap: 11px; padding: 14px 15px; margin-top: 15px; color: #745000; background: var(--amber-soft); border-left: 3px solid #d39120; }
.notice-box.red { color: #982932; background: var(--red-soft); border-left-color: var(--red); }
.notice-box svg { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 2px; }
.notice-box strong { display: block; margin-bottom: 3px; font-size: 12px; }
.notice-box p { margin: 0; font-size: 12px; line-height: 1.55; }

.plan-list, .timeline, .conversation-list, .evaluation-list, .audit-list { display: grid; }
.plan-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 13px; min-height: 61px; padding: 10px 0; border-top: 1px solid #edf0f3; }
.plan-item:first-child { border-top: 0; }
.status-check { width: 21px; height: 21px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 5px; background: #fff; color: transparent; }
.status-check.done { color: #fff; background: var(--green); border-color: var(--green); }
.status-check svg { width: 14px; height: 14px; }
.plan-copy { min-width: 0; display: grid; gap: 5px; }
.plan-copy strong { font-size: 13px; font-weight: 600; }
.plan-copy span, .plan-date { color: var(--muted); font-size: 11px; }
.plan-date { white-space: nowrap; }
.timeline-item { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 11px; padding-bottom: 20px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item:not(:last-child)::before { content: ""; position: absolute; left: 14px; top: 30px; bottom: 0; width: 1px; background: var(--line); }
.timeline-icon { z-index: 1; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: var(--blue-soft); }
.timeline-icon.update-monthly, .timeline-icon.update-normal { color: var(--green); background: var(--green-soft); }
.timeline-icon.update-important { color: #9a6200; background: var(--amber-soft); }
.timeline-icon.update-risk { color: var(--red); background: var(--red-soft); }
.timeline-icon svg { width: 14px; height: 14px; }
.timeline-body { padding: 1px 0 0; }
.timeline-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.timeline-meta strong { font-size: 12px; }
.timeline-meta span { color: var(--muted-2); font-size: 11px; }
.timeline-body p { margin: 0; line-height: 1.65; color: #394553; }
.conversation, .evaluation, .audit-item { padding: 15px 0; border-top: 1px solid #edf0f3; }
.conversation:first-child, .evaluation:first-child, .audit-item:first-child { border-top: 0; padding-top: 0; }
.conversation-head, .evaluation-head, .audit-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.conversation-head > div, .evaluation-head > div { display: flex; align-items: center; gap: 8px; }
.conversation-head time, .evaluation-head time, .audit-meta { color: var(--muted-2); font-size: 11px; }
.conversation-question, .evaluation p { margin: 0; line-height: 1.65; }
.conversation-reply { margin: 12px 0 0 34px; padding: 12px 14px; background: #f5f7f9; border-left: 2px solid #aeb8c4; border-radius: 0 5px 5px 0; }
.conversation-reply span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; }
.score { color: var(--green); font-weight: 750; font-variant-numeric: tabular-nums; }
.audit-item p { margin: 0; line-height: 1.6; }
.audit-change { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 10px 12px; margin-top: 8px; background: #f7f8fa; border-radius: 5px; color: #56616e; font-size: 12px; }
.audit-change svg { color: var(--muted-2); width: 15px; height: 15px; }

.manager-filter-section { margin-bottom: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.manager-filter-title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.manager-filter-title strong { font-size: 14px; }
.manager-filter-title span { color: var(--muted-2); font-size: 11px; }
.manager-sections { display: grid; gap: 16px; }
.manager-projects, .summary-list-section { min-width: 0; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.summary-list-section { width: 100%; }
.project-table-wrap { overflow-x: auto; }
.project-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.project-table th { height: 40px; padding: 0 12px; color: var(--muted-2); background: #f7f8fa; font-size: 11px; font-weight: 650; text-align: left; border-bottom: 1px solid var(--line); }
.project-table td { height: 62px; padding: 10px 12px; border-bottom: 1px solid #edf0f3; font-size: 12px; }
.project-table tbody tr { cursor: pointer; }
.project-table tbody tr:hover { background: #fafbfc; }
.table-project { display: grid; gap: 4px; min-width: 170px; }
.table-project strong { font-size: 13px; }
.table-project span { color: var(--muted); font-size: 11px; }
.table-progress { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.table-progress .progress-track { width: 68px; }
.summary-list { display: grid; gap: 2px; }
.summary-item { width: 100%; padding: 14px 5px; border: 0; border-top: 1px solid #edf0f3; background: transparent; text-align: left; }
.summary-item:first-child { border-top: 0; }
.summary-item:hover strong { color: var(--blue); }
.summary-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 7px; }
.summary-item strong { display: block; min-width: 0; font-size: 13px; line-height: 1.45; }
.summary-category { flex: 0 0 auto; min-height: 23px; display: inline-flex; align-items: center; padding: 0 8px; color: #2450ca; background: var(--blue-soft); border-radius: 4px; font-size: 10px; font-style: normal; font-weight: 700; white-space: nowrap; }
.summary-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted-2); font-size: 11px; }
.attention-select { min-height: 36px; padding: 0 31px 0 10px; background: #fff; border: 1px solid var(--line-strong); border-radius: 5px; }
.attention-select.compact { min-height: 32px; font-size: 11px; }
.update-frequency { color: var(--muted); font-size: 11px; white-space: nowrap; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; background: rgba(22, 29, 38, .48); backdrop-filter: blur(3px); }
.modal { width: min(760px, 100%); max-height: min(88vh, 900px); display: flex; flex-direction: column; background: #fff; border-radius: 8px; box-shadow: 0 25px 70px rgba(15, 23, 33, .25); }
.modal.wide { width: min(1080px, 100%); }
.modal-header { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 21px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 3px 0 0; font-size: 19px; letter-spacing: 0; }
.modal-kicker { color: var(--muted-2); font-size: 10px; font-weight: 700; letter-spacing: .8px; }
.modal-body { padding: 21px; overflow: auto; }
.modal-footer { display: flex; justify-content: flex-end; gap: 9px; padding: 14px 21px; border-top: 1px solid var(--line); }
.reminder-backdrop { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 18px; background: rgba(58, 8, 13, .64); backdrop-filter: blur(5px); }
.reminder-panel { width: min(1180px, 100%); max-height: min(92vh, 920px); display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 2px solid var(--red); border-radius: 8px; box-shadow: 0 28px 85px rgba(74, 7, 13, .38); }
.reminder-header { min-height: 132px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 24px 26px; color: #fff; background: var(--red); }
.reminder-symbol { width: 58px; height: 58px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.72); border-radius: 50%; background: rgba(255,255,255,.12); }
.reminder-symbol svg { width: 31px; height: 31px; stroke-width: 2.2; }
.reminder-heading { min-width: 0; }
.reminder-heading > span { display: block; margin-bottom: 5px; font-size: 10px; font-weight: 800; letter-spacing: 1.2px; opacity: .82; }
.reminder-heading h2 { margin: 0; font-size: 27px; letter-spacing: 0; }
.reminder-heading p { margin: 7px 0 0; font-size: 13px; opacity: .88; }
.reminder-close { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.45); border-radius: 6px; }
.reminder-close:hover { background: rgba(255,255,255,.12); }
.reminder-summary { display: flex; align-items: baseline; gap: 8px; padding: 16px 26px 12px; color: #7d1d25; border-bottom: 1px solid #f2d9dc; background: #fff5f6; }
.reminder-summary strong { font-size: 30px; line-height: 1; }
.reminder-summary span { font-size: 13px; font-weight: 650; }
.reminder-groups { min-height: 180px; overflow: auto; padding: 18px 26px; }
.reminder-groups section + section { margin-top: 22px; padding-top: 20px; border-top: 2px solid #edf0f3; }
.reminder-groups h3 { margin: 0 0 10px; font-size: 14px; }
.reminder-table, .communication-table { min-width: 1040px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.reminder-table-head, .reminder-table-row { display: grid; grid-template-columns: 44px minmax(150px, 1.2fr) minmax(110px, .9fr) 132px minmax(110px, .8fr) 108px 100px 60px; align-items: center; }
.communication-table-head, .communication-table-row { display: grid; grid-template-columns: 44px minmax(150px, .9fr) minmax(180px, 1.2fr) minmax(180px, 1.2fr) 132px 88px 60px; align-items: center; }
.reminder-table-head, .communication-table-head { min-height: 38px; color: var(--muted-2); background: #f7f8fa; font-size: 10px; font-weight: 700; }
.reminder-table-head > *, .reminder-table-row > *, .communication-table-head > *, .communication-table-row > * { min-width: 0; padding: 9px 10px; overflow-wrap: anywhere; }
.reminder-table-row, .communication-table-row { min-height: 58px; border-top: 1px solid #edf0f3; cursor: pointer; font-size: 11px; }
.reminder-table-row:hover, .communication-table-row:hover { background: #fbfcfd; }
.reminder-table-row > p { grid-column: 2 / -1; margin: 0 10px 10px; padding: 8px 10px; color: #7a4d00; background: var(--amber-soft); line-height: 1.5; }
.reminder-table-row select { min-height: 31px; width: 100%; padding: 0 25px 0 7px; background: #fff; border: 1px solid var(--line-strong); border-radius: 4px; font-size: 11px; }
.reminder-table-row small, .communication-table-row small { color: #9aa3ad; font-size: 9px; }
.reminder-statuses { display: flex; flex-wrap: wrap; gap: 4px; }
.reminder-empty { min-height: 92px; display: grid; place-items: center; color: var(--muted-2); border: 1px dashed var(--line-strong); border-radius: 6px; }
.communication-backdrop { background: rgba(20, 40, 55, .64); }
.communication-panel { border-color: #2f7085; }
.communication-header { background: #2f7085; }
.communication-panel .reminder-summary { color: #22576a; background: #eef8fa; border-bottom-color: #cfe4e9; }
.reminder-kind { min-height: 26px; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; color: #ae2832; background: var(--red-soft); border-radius: 4px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.reminder-item-copy { min-width: 0; display: grid; gap: 5px; }
.reminder-item-copy strong { font-size: 14px; transition: color .15s ease; }
.reminder-item-copy span { color: var(--muted); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.reminder-date { display: grid; gap: 4px; color: var(--muted-2); font-size: 10px; text-align: right; white-space: nowrap; }
.reminder-date strong { color: var(--text); font-size: 12px; }
.reminder-footer { display: flex; justify-content: flex-end; gap: 9px; padding: 15px 26px; border-top: 1px solid var(--line); background: #fafbfc; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-field { display: grid; gap: 7px; min-width: 0; }
.form-field.full { grid-column: 1 / -1; }
.people-multiselect { min-width: 0; }
.people-multiselect summary { min-height: 40px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 0 11px; list-style: none; color: var(--text); background: #fff; border: 1px solid var(--line-strong); border-radius: 5px; cursor: pointer; }
.people-multiselect summary::-webkit-details-marker { display: none; }
.people-multiselect summary > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.people-multiselect summary svg { width: 15px; height: 15px; color: var(--muted-2); transition: transform .15s ease; }
.people-multiselect[open] summary { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(49,94,251,.1); }
.people-multiselect[open] summary svg { transform: rotate(180deg); }
.people-options { max-height: 190px; display: grid; gap: 2px; margin-top: 6px; padding: 5px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 5px; box-shadow: 0 10px 24px rgba(15,23,33,.09); }
.people-option { min-height: 42px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 9px; padding: 6px 8px; border-radius: 4px; cursor: pointer; }
.people-option:hover { background: #f5f7f9; }
.people-option input { width: 16px; height: 16px; accent-color: var(--blue); }
.people-option > span { display: grid; gap: 2px; }
.people-option strong { font-size: 12px; }
.people-option small { color: var(--muted-2); font-size: 10px; }
.people-empty { margin: 0; padding: 12px; color: var(--muted-2); font-size: 11px; text-align: center; }
.form-field > span { color: #4f5a67; font-size: 12px; font-weight: 600; }
.required::after { content: " *"; color: var(--red); }
.form-field input, .form-field select, .form-field textarea, .summary-editor input, .summary-editor textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  outline: 0;
}
.form-field textarea, .summary-editor textarea { min-height: 86px; resize: vertical; line-height: 1.6; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus, .summary-editor input:focus, .summary-editor textarea:focus { border-color: #8da5ff; box-shadow: 0 0 0 3px rgba(49,94,251,.09); }
.checkbox-field { min-height: 40px; display: flex; align-items: center; gap: 9px; }
.checkbox-field input { width: 17px; height: 17px; accent-color: var(--blue); }
.form-note { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.summary-editor { display: grid; gap: 15px; }
.summary-title-row { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 12px; }
.summary-title-row select { width: 100%; min-height: 40px; padding: 0 32px 0 10px; background: #fff; border: 1px solid var(--line-strong); border-radius: 5px; }
.summary-editor-row { display: grid; grid-template-columns: 1fr 1fr 120px; gap: 12px; }
.generated-section { margin-top: 18px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.generated-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 14px; background: #f5f7f9; border-bottom: 1px solid var(--line); }
.generated-header strong { font-size: 12px; }
.generated-table-wrap { max-height: 310px; overflow: auto; }
.generated-table { width: 100%; border-collapse: collapse; min-width: 1320px; font-size: 11px; }
.generated-table th, .generated-table td { padding: 9px 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.generated-table th { position: sticky; top: 0; z-index: 1; color: var(--muted); background: #fafbfc; text-align: left; }
.summary-detail { display: grid; gap: 18px; }
.summary-detail-title > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.summary-detail-title h3 { margin: 0; font-size: 18px; }
.summary-detail-title p { margin: 0; color: var(--muted); }
.summary-content { padding: 16px; white-space: pre-wrap; line-height: 1.8; background: #f7f8fa; border-left: 3px solid var(--blue); }

.toast-region { position: fixed; right: 22px; bottom: 22px; z-index: 150; display: grid; gap: 9px; width: min(360px, calc(100vw - 44px)); }
.toast { display: flex; align-items: center; gap: 10px; padding: 13px 15px; color: #fff; background: #202a36; border-radius: 6px; box-shadow: 0 12px 30px rgba(15,22,31,.2); animation: toast-in .2s ease-out; }
.toast.error { background: #a92f38; }
.toast svg { flex: 0 0 auto; width: 17px; height: 17px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.skeleton { min-height: 220px; background: #eceff2; border-radius: 7px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }

.admin-body { min-height: 100vh; overflow-x: hidden; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 228px minmax(0, 1fr); }
.admin-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 20px 14px; color: #dfe6ed; background: #202c38; }
.admin-brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 24px; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-brand > span:last-child { display: grid; gap: 2px; }
.admin-brand strong { font-size: 14px; }
.admin-brand small { color: #93a1af; font-size: 10px; }
.admin-nav { display: grid; gap: 5px; padding-top: 18px; }
.admin-nav button { min-height: 43px; display: flex; align-items: center; gap: 10px; padding: 0 13px; color: #aeb9c4; background: transparent; border: 0; border-radius: 6px; text-align: left; }
.admin-nav button:hover { color: #fff; background: rgba(255,255,255,.06); }
.admin-nav button.active { color: #fff; background: #315efb; font-weight: 650; }
.admin-nav svg { width: 17px; height: 17px; }
.admin-sidebar-footer { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); }
.admin-sidebar-footer a { min-height: 40px; display: flex; align-items: center; gap: 9px; padding: 0 12px; color: #aeb9c4; text-decoration: none; }
.admin-sidebar-footer a:hover { color: #fff; }
.admin-sidebar-footer svg { width: 15px; height: 15px; }
.admin-workspace { min-width: 0; }
.admin-topbar { height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 28px; background: #fff; border-bottom: 1px solid var(--line); }
.admin-topbar > div:first-child { display: grid; gap: 3px; }
.admin-topbar > div:first-child strong { font-size: 14px; }
.admin-topbar > div:first-child span { color: var(--muted-2); font-size: 11px; }
.admin-user { display: flex; align-items: center; gap: 9px; }
.admin-user > span:nth-child(2) { display: grid; gap: 1px; margin-right: 5px; }
.admin-user strong { font-size: 12px; }
.admin-user small { color: var(--muted-2); font-size: 10px; }
.admin-main { width: min(1320px, 100%); margin: 0 auto; padding: 30px 32px 60px; }
.admin-view { display: none; }
.admin-view.active { display: block; animation: view-in .18s ease-out; }
.admin-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.admin-page-head h1 { margin: 0 0 7px; font-size: 25px; letter-spacing: 0; }
.admin-page-head p { margin: 0; color: var(--muted); font-size: 12px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.admin-stats > div { min-height: 82px; display: flex; align-items: center; gap: 12px; padding: 16px 19px; position: relative; }
.admin-stats > div + div::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 1px; background: var(--line); }
.admin-stats svg { width: 35px; height: 35px; padding: 8px; color: var(--blue); background: var(--blue-soft); border-radius: 6px; }
.admin-stats span { display: grid; gap: 2px; }
.admin-stats strong { font-size: 22px; }
.admin-stats small { color: var(--muted); font-size: 11px; }
.admin-panel { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.admin-stack { display: grid; gap: 16px; margin-bottom: 16px; }
.admin-panel-head { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px 10px 19px; border-bottom: 1px solid var(--line); }
.admin-panel-head > div { display: flex; align-items: baseline; gap: 9px; }
.admin-panel-head strong { font-size: 14px; }
.admin-panel-head span { color: var(--muted-2); font-size: 11px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; min-width: 860px; border-collapse: collapse; }
.admin-table th { height: 40px; padding: 0 15px; color: var(--muted-2); background: #f7f8fa; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 650; text-align: left; }
.admin-table td { min-height: 62px; padding: 12px 15px; border-bottom: 1px solid #edf0f3; font-size: 12px; vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: #fbfcfd; }
.actions-column { width: 145px; text-align: right !important; }
.account-cell { display: flex; align-items: center; gap: 10px; }
.account-cell > span:last-child { display: grid; gap: 3px; }
.account-cell strong { font-size: 13px; }
.account-cell small { color: var(--muted-2); font-size: 10px; }
.role-badge, .status-badge, .action-badge, .category-badge { min-height: 24px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 4px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.role-badge { color: #4f5d6b; background: #eef1f4; }
.role-badge.manager { color: #2450ca; background: var(--blue-soft); }
.status-badge.active { color: #116b49; background: var(--green-soft); }
.status-badge.pending { color: #8d5700; background: var(--amber-soft); }
.status-badge.disabled { color: #7c8794; background: #eef1f4; }
.action-badge { color: #354353; background: #eef1f4; }
.category-badge { color: #354353; background: #eef1f4; }
.category-新增 { color: #116b49; background: var(--green-soft); }
.category-删除 { color: #a2242d; background: var(--red-soft); }
.category-修改 { color: #8d5700; background: var(--amber-soft); }
.category-查询 { color: #2450ca; background: var(--blue-soft); }
.row-actions { display: flex; justify-content: flex-end; gap: 5px; }
.row-actions .icon-button { width: 31px; height: 31px; }
.row-actions .icon-button svg { width: 14px; height: 14px; }
.danger-icon { color: var(--red); }
.icon-button:disabled { cursor: not-allowed; opacity: .35; }
.admin-empty { min-height: 120px; display: grid; place-items: center; color: var(--muted-2); }
.danger-zone { min-height: 180px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 28px; background: #fff; border: 1px solid #efc7ca; border-left: 4px solid var(--red); border-radius: 7px; }
.danger-zone-icon { width: 48px; height: 48px; display: grid; place-items: center; color: var(--red); background: var(--red-soft); border-radius: 7px; }
.danger-zone-icon svg { width: 25px; height: 25px; }
.danger-zone-copy h2 { margin: 0 0 8px; font-size: 18px; }
.danger-zone-copy p { max-width: 760px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.log-filters, .history-filters { display: grid; grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, 170px)) repeat(2, minmax(145px, 170px)); gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.history-filters { grid-template-columns: minmax(260px, 1fr) 160px 180px 180px; }
.log-filters .search-box, .history-filters .search-box { width: 100%; }
.log-filters select, .history-filters select { min-height: 38px; padding: 0 32px 0 11px; background: #fff; border: 1px solid var(--line-strong); border-radius: 5px; }
.date-filter { min-height: 38px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px; padding: 0 8px; color: var(--muted-2); background: #fff; border: 1px solid var(--line-strong); border-radius: 5px; font-size: 10px; }
.date-filter input { min-width: 0; width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 11px; }
.log-table { min-width: 1140px; }
.deleted-table { min-width: 1080px; }
.deletion-log-table { min-width: 1250px; }
.reminder-history-table, .communication-history-table { min-width: 1500px; }
.countdown-cell { color: var(--muted); font-size: 12px; white-space: nowrap; }
.log-detail { min-width: 280px; max-width: 460px; line-height: 1.55; overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; }
.form-note.full { grid-column: 1 / -1; }

@media (max-width: 1100px) {
  .app-header { grid-template-columns: 1fr auto 1fr; padding: 0 20px; }
  .brand > div:last-child, .user-block > div { display: none; }
  .signed-user-copy { display: none; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-item { padding: 15px; }
  .metric-icon { display: none; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-stats > div:nth-child(3)::before { display: none; }
  .admin-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 760px) {
  :root { --header-height: 58px; }
  .app-header { grid-template-columns: auto 1fr auto; height: var(--header-height); padding: 0 12px; }
  .brand-mark { width: 32px; height: 32px; }
  .main-nav { justify-self: center; }
  .nav-item { width: 34px; min-height: 34px; justify-content: center; padding: 0; }
  .nav-item span { display: none; }
  .nav-item svg { display: block; }
  .header-actions { gap: 7px; }
  .signed-user { display: none; }
  .manager-switcher .avatar, .manager-switcher label > span { display: none; }
  .manager-switcher select { width: 60px; padding-right: 10px; font-size: 11px; }
  main { padding: 20px 14px 55px; }
  .page-heading { align-items: center; margin-bottom: 18px; }
  .page-heading h1 { font-size: 23px; }
  .page-heading .primary-button { width: 40px; padding: 0; }
  .page-heading .primary-button svg { width: 18px; height: 18px; }
  .page-heading .primary-button { font-size: 0; }
  .metric-strip { grid-template-columns: repeat(2, 1fr); min-height: 0; }
  .metric-item { min-height: 74px; padding: 13px 15px; }
  .metric-item + .metric-item::before { top: 14px; bottom: 14px; }
  .metric-item:nth-child(3)::before, .metric-item:nth-child(5)::before { display: none; }
  .metric-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .metric-copy strong { font-size: 20px; }
  .filter-panel { padding: 13px; }
  .filter-topline { align-items: stretch; flex-direction: column; }
  .filter-heading { min-height: 30px; }
  .search-box { width: 100%; min-width: 0; }
  .filter-group { grid-template-columns: 1fr; gap: 5px; padding: 9px 0; }
  .filter-options { padding-bottom: 2px; }
  .filter-options button { min-width: auto; padding: 0 11px; }
  .filter-footer { justify-content: space-between; }
  .result-count { width: auto; margin-left: 0; padding-top: 0; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 222px; }
  .detail-topbar { margin-bottom: 9px; }
  .detail-header { padding: 18px; }
  .detail-title-row { display: grid; }
  .detail-status-group { justify-content: flex-start; }
  .detail-progress-row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .detail-progress-block { grid-column: 1 / -1; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-nav { position: static; display: flex; overflow-x: auto; padding: 5px; }
  .detail-nav button { flex: 0 0 auto; padding: 0 10px; }
  .detail-nav button svg { display: none; }
  .content-section { padding: 17px 15px; }
  .data-grid { grid-template-columns: 1fr 1fr; }
  .data-item.wide { grid-column: span 2; }
  .plan-item { grid-template-columns: auto minmax(0, 1fr) auto; }
  .plan-item .tag { display: none; }
  .manager-filter-title { display: grid; gap: 4px; }
  .form-grid, .summary-editor-row, .summary-title-row { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .modal-backdrop { padding: 0; place-items: end center; }
  .modal, .modal.wide { width: 100%; max-height: 94vh; border-radius: 8px 8px 0 0; }
  .reminder-backdrop { padding: 0; place-items: end center; }
  .reminder-panel { width: 100%; max-height: 94vh; border-width: 2px 0 0; border-radius: 8px 8px 0 0; }
  .reminder-header { min-height: 112px; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 19px 16px; }
  .reminder-symbol { width: 46px; height: 46px; }
  .reminder-symbol svg { width: 25px; height: 25px; }
  .reminder-heading h2 { font-size: 21px; }
  .reminder-summary { padding: 13px 16px 10px; }
  .reminder-groups { padding: 14px 16px; }
  .reminder-footer { padding: 13px 16px; }
  .login-page { padding: 0; }
  .login-panel { min-height: 100vh; min-height: 100dvh; grid-template-columns: 1fr; border: 0; border-radius: 0; }
  .login-header { min-height: 98px; padding: 23px 24px; }
  .login-content { align-content: start; padding: 40px 24px; }
  .admin-shell { grid-template-columns: 64px minmax(0, 1fr); }
  .admin-sidebar { padding: 14px 8px; }
  .admin-brand { justify-content: center; padding: 2px 0 18px; }
  .admin-brand > span:last-child, .admin-nav span, .admin-sidebar-footer span { display: none; }
  .admin-nav button, .admin-sidebar-footer a { justify-content: center; padding: 0; }
  .admin-topbar { height: 58px; padding: 0 14px; }
  .admin-topbar > div:first-child span, .admin-user > span:nth-child(2), .admin-user .avatar { display: none; }
  .admin-main { padding: 22px 14px 46px; }
  .admin-page-head { align-items: stretch; flex-direction: column; }
  .admin-page-head .primary-button, .admin-page-head .secondary-button { align-self: flex-start; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-stats > div { min-height: 70px; padding: 13px; }
  .admin-stats svg { display: none; }
  .danger-zone { grid-template-columns: 1fr; padding: 22px; }
  .danger-zone-icon { width: 40px; height: 40px; }
  .danger-zone .danger-button { justify-self: stretch; }
  .log-filters, .history-filters { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .nav-item { padding: 0 8px; font-size: 12px; }
  .header-actions .icon-button { width: 32px; height: 32px; }
  .metric-strip { grid-template-columns: 1fr 1fr; }
  .metric-item:nth-child(5) { grid-column: 1 / -1; }
  .card-head { display: grid; }
  .tag-row { justify-content: flex-start; }
  .data-grid { grid-template-columns: 1fr; }
  .data-item.wide { grid-column: auto; }
}
