:root {
  --navy: #16324f;
  --navy-deep: #0e2439;
  --blue: #2d5f8b;
  --teal: #1f7a73;
  --gold: #b8862d;
  --ink: #1f2933;
  --muted: #667085;
  --line: #d7dee7;
  --paper: #f4f7fa;
  --white: #ffffff;
  --pale-blue: #eaf2f8;
  --pale-teal: #e5f3f1;
  --pale-gold: #f8eed3;
  --danger: #b42318;
  --success: #237a57;
  --shadow: 0 14px 38px rgba(18, 43, 67, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #edf3f8 0, #f7f9fb 260px, #f4f7fa 100%);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-size: 14px;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--teal); }

.topbar {
  min-height: 78px;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.purge-banner {
  padding: 13px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fff7e8;
  background: #9a3412;
  border-bottom: 1px solid #7c2d12;
}
.purge-banner strong { display: block; font-size: 14px; }
.purge-banner span { display: block; margin-top: 4px; color: #ffddc6; font-size: 12px; }
.purge-banner form { flex: 0 0 auto; }
.purge-banner button {
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  color: #7c2d12;
  background: #fff7ed;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
[data-purge-timer] { color: white; font-variant-numeric: tabular-nums; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--navy);
  border-radius: 12px;
  font-size: 20px;
  font-weight: 800;
}
.brand-mark.logo-mark {
  width: 72px;
  padding: 0;
  overflow: hidden;
  background: white;
  border-radius: 4px;
}
.brand-mark.logo-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }

.brand strong { display: block; font-size: 16px; }
.brand small { display: block; color: var(--muted); margin-top: 3px; font-size: 11px; }

.nav { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 9px;
  font-weight: 600;
}
.nav a:hover, .nav a.active { color: var(--navy); background: var(--pale-blue); }
.nav a.user-chip {
  margin-left: 8px;
  padding: 7px 10px;
  color: var(--teal);
  background: var(--pale-teal);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.nav-badge {
  min-width: 18px;
  height: 18px;
  margin-left: 4px;
  padding: 0 5px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: var(--danger);
  font-size: 9px;
}
.nav-logout {
  padding: 8px 9px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.nav-logout:hover { color: var(--danger); }

.page {
  width: min(1460px, calc(100% - 48px));
  margin: 32px auto 56px;
}

.hero {
  min-height: 226px;
  padding: 38px 42px;
  border-radius: 22px;
  color: white;
  background:
    radial-gradient(circle at 88% 25%, rgba(56, 176, 162, 0.32), transparent 30%),
    linear-gradient(125deg, var(--navy-deep), var(--navy) 65%, #25587a);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.hero h1 {
  max-width: 780px;
  margin: 8px 0 14px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.hero-copy { max-width: 800px; margin: 0; color: #d7e7f2; line-height: 1.8; }
.eyebrow {
  margin: 0 0 6px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.hero .eyebrow { color: #79d8cc; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; min-width: 290px; }

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: 160ms ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary { color: white; background: var(--teal); }
.button.primary:hover { color: white; background: #176963; }
.button.danger { color: white; background: var(--danger); }
.button.danger:hover { color: white; background: #8f1d14; }
.button.secondary { color: var(--navy); background: white; border-color: var(--line); }
.button.light { color: var(--navy); background: white; }
.button.wide { width: 100%; }
.button:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}
.metric-card {
  min-height: 132px;
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.metric-card span { color: var(--muted); font-size: 12px; font-weight: 700; }
.metric-card strong { font-size: 30px; line-height: 1.1; }
.metric-card small { color: var(--muted); }
.metric-card.navy { color: white; background: var(--navy); border-color: var(--navy); }
.metric-card.navy span, .metric-card.navy small { color: #bfd4e4; }
.metric-card.teal { color: white; background: var(--teal); border-color: var(--teal); }
.metric-card.teal span, .metric-card.teal small { color: #cfece8; }
.metric-card.gold { background: var(--pale-gold); border-color: #ead39e; }
.metric-card.pale { background: var(--pale-blue); border-color: #c9dce9; }
.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}
.module-card {
  min-height: 172px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: white;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: 160ms ease;
}
.module-card:hover { color: var(--ink); border-color: #aac2d3; transform: translateY(-2px); box-shadow: var(--shadow); }
.module-index { color: var(--teal); font-size: 11px; font-weight: 900; letter-spacing: 0.12em; }
.module-card strong { margin-top: 13px; color: var(--navy); font-size: 19px; }
.module-card p { margin: 8px 0 18px; color: var(--muted); line-height: 1.7; }
.module-card small { margin-top: auto; color: var(--teal); font-weight: 800; }

.panel {
  padding: 24px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(23, 51, 78, 0.04);
}
.panel h2 { margin: 0; font-size: 18px; }
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.panel-head p { margin: 8px 0 0; }
.split-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 18px; align-items: start; }
.form-split { grid-template-columns: 0.9fr 1.1fr; }

.category-list { border-top: 1px solid var(--line); }
.category-row {
  display: grid;
  grid-template-columns: 1fr 80px 130px;
  align-items: center;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
}
.category-row strong { text-align: right; }
.category-count { color: var(--muted); text-align: center; }

.batch-list { display: grid; gap: 8px; }
.batch-row {
  display: grid;
  grid-template-columns: 1fr auto 20px;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.batch-row:hover { border-color: #a9c2d5; background: #f8fbfd; }
.batch-row small { display: block; color: var(--muted); margin-top: 4px; }
.batch-amount { font-weight: 800; color: var(--teal); }
.chevron { color: var(--muted); font-size: 23px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 840px; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); background: #f7f9fb; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
tbody tr:hover { background: #f9fbfc; }
.num { text-align: right; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.truncate { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actions { white-space: nowrap; }
.actions a { margin-right: 10px; font-weight: 700; }

.tag, .status, .count-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.tag { color: var(--navy); background: var(--pale-blue); }
.tag.danger { color: var(--danger); background: #fdecec; }
.status.待报销 { color: #7d5c17; background: var(--pale-gold); }
.status.报销中 { color: var(--blue); background: var(--pale-blue); }
.status.已报销 { color: var(--success); background: #e8f5ef; }
.status.已退回 { color: var(--danger); background: #fdecec; }
.status.待财务审核,
.status.待领导审批 { color: #7d5c17; background: var(--pale-gold); }
.status.待审批 { color: #7d5c17; background: var(--pale-gold); }
.status.已批准 { color: var(--teal); background: var(--pale-teal); }
.status.已驳回 { color: var(--danger); background: #fdecec; }
.status.已撤回 { color: var(--muted); background: #eef1f4; }
.status.large { padding: 9px 14px; font-size: 12px; }
.count-pill { color: var(--teal); background: var(--pale-teal); }

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.page-head h1 { margin: 4px 0 8px; font-size: 32px; letter-spacing: -0.03em; }
.page-head p { margin: 0; color: var(--muted); }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 7px; }
.form label > span { color: var(--navy); font-size: 12px; font-weight: 700; }
.form label > small { color: var(--muted); line-height: 1.5; }
input, select, textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #cfd9e3;
  border-radius: 9px;
  color: var(--ink);
  background: white;
  font: inherit;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(45, 95, 139, 0.12); border-color: var(--blue); }

.file-drop {
  padding: 22px;
  border: 1.5px dashed #9ab7cc;
  border-radius: 13px;
  background: #f8fbfd;
}
.file-drop strong { color: var(--navy); }
.file-drop small { color: var(--muted); }
.file-drop input { background: white; }

.guide-panel { background: linear-gradient(180deg, #f8fbfc, #edf6f4); }
.steps { list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; align-items: center; gap: 13px; line-height: 1.7; }
.steps li span {
  flex: 0 0 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--teal);
  font-weight: 800;
}
.notice {
  padding: 15px;
  border-radius: 10px;
  color: #704f12;
  background: var(--pale-gold);
  line-height: 1.7;
}
.muted { color: var(--muted); }

.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.result-card { padding: 18px; border: 1px solid var(--line); border-radius: 13px; }
.result-head { display: flex; justify-content: space-between; gap: 12px; }
.result-card p { margin: 10px 0; color: var(--muted); }
.result-card dl { display: grid; gap: 8px; margin: 14px 0; }
.result-card dl div { display: flex; justify-content: space-between; gap: 12px; }
.result-card dt { color: var(--muted); }
.result-card dd { margin: 0; font-weight: 700; text-align: right; }
.warning { margin: 12px 0; padding: 10px; border-radius: 9px; color: #7d5c17; background: var(--pale-gold); }
.warning span { display: block; }

.filter-bar {
  display: grid;
  grid-template-columns: 180px 160px minmax(240px, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 20px;
}
.filter-bar label { display: grid; gap: 6px; }
.filter-bar label span { color: var(--muted); font-size: 11px; font-weight: 700; }
.batch-toolbar {
  margin: 4px 0 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbfc;
  color: var(--muted);
  font-size: 12px;
}
.batch-toolbar strong { color: var(--teal); }
.batch-actions { display: flex; gap: 8px; }
.batch-actions .button { min-height: 34px; padding: 7px 12px; font-size: 12px; }
.check-cell { width: 38px; text-align: center; }
.check-cell input { width: 16px; min-height: 16px; margin: 0; }

.form-section { padding: 4px 0 18px; border-bottom: 1px solid var(--line); }
.form-section h2 { margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.form-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: 1 / -1; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); }
.danger-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-color: #efc4c0;
  background: #fff9f8;
}
.danger-panel h2 { color: var(--danger); }
.danger-panel p { margin: 8px 0 0; color: var(--muted); }

.inline-form { display: inline; }
.link-button {
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.muted-row { opacity: 0.55; }

.pending-strip {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 15px;
  border-radius: 11px;
  background: var(--pale-teal);
  color: var(--teal);
}
.pending-strip b { font-size: 18px; }
.check-list { display: grid; gap: 11px; padding: 0; list-style: none; }
.check-list li::before { content: "✓"; margin-right: 9px; color: var(--teal); font-weight: 900; }

.report-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.download-banner {
  margin-top: 18px;
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 16px;
  color: white;
  background: linear-gradient(125deg, var(--navy-deep), var(--navy) 60%, #24665f);
}
.download-banner h2 { margin: 4px 0 8px; }
.download-banner p { color: #d7e7f2; margin: 0; }
.download-banner .eyebrow { color: #83ded3; }

.alert { margin: 0 0 18px; padding: 14px 16px; border-radius: 11px; line-height: 1.7; }
.alert.error { color: var(--danger); background: #fdecec; border: 1px solid #efc4c0; }
.alert.success { color: var(--success); background: #e8f5ef; border: 1px solid #bce0d0; }
.alert p { margin: 0; }
.empty {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--muted);
  background: #f8fafc;
  border: 1px dashed var(--line);
  border-radius: 12px;
}
.text-link { font-weight: 700; }
.footer {
  width: min(1460px, calc(100% - 48px));
  margin: 0 auto 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 11px;
}

.login-page {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #ffffff;
  --login-blue: #004b9b;
  --login-blue-deep: #002f69;
  --login-blue-dark: #001f48;
  --login-red: #e21d36;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(470px, 1.08fr) minmax(440px, 0.92fr);
}
.login-visual {
  min-height: 100vh;
  padding: clamp(34px, 5vw, 72px);
  position: relative;
  overflow: hidden;
  color: var(--login-blue-deep);
  background: #ffffff;
  border-right: 1px solid #e5ecf4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 2;
}
.login-logo-card {
  width: 132px;
  height: 76px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dfe8f2;
  border-radius: 10px;
  background: white;
  box-shadow: 0 10px 24px rgba(0, 51, 105, 0.08);
}
.login-logo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.login-brand strong { display: block; color: var(--login-blue-deep); font-size: 18px; letter-spacing: 0.03em; }
.login-brand small { display: block; margin-top: 5px; color: #7185a0; font-size: 10px; letter-spacing: 0.06em; }
.login-message {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: auto 0;
  padding: 76px 0;
}
.login-message .eyebrow { color: #ff6874; }
.login-message h1 {
  margin: 16px 0 28px;
  font-size: clamp(42px, 4.9vw, 70px);
  line-height: 1.1;
  letter-spacing: -0.05em;
  color: var(--login-blue-deep);
}
.login-message h1::after {
  content: "";
  display: block;
  width: 74px;
  height: 5px;
  margin-top: 24px;
  border-radius: 4px;
  background: var(--login-red);
}
.login-message > p:last-child {
  max-width: 540px;
  color: #5f7189;
  font-size: 15px;
  line-height: 1.9;
}
.login-points {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.login-points span {
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 0;
  color: var(--login-blue);
  background: transparent;
  font-size: 12px;
}
.login-points span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--login-red);
}
.login-orbit {
  display: none;
}
.orbit-one {
  width: 540px;
  height: 540px;
  right: -170px;
  top: 18%;
}
.orbit-two {
  width: 330px;
  height: 330px;
  right: -50px;
  top: 30%;
}
.login-form-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 38px;
  background: #ffffff;
}
.login-form-wrap {
  width: min(440px, 100%);
  padding: 42px;
  border: 1px solid #d4e1ef;
  border-top: 4px solid var(--login-red);
  border-radius: 18px;
  background: white;
  box-shadow: 0 22px 60px rgba(0, 51, 105, 0.1);
}
.login-form-wrap .eyebrow { color: var(--login-red); }
.login-form-wrap h2 { margin: 8px 0 10px; color: var(--login-blue-deep); font-size: 30px; letter-spacing: -0.03em; }
.login-subtitle { margin: 0 0 27px; color: var(--muted); line-height: 1.7; }
.login-form { gap: 19px; }
.login-form input { min-height: 50px; border-color: #c8d8e8; background: #fbfdff; }
.login-form input:focus { outline: 3px solid rgba(0, 75, 155, 0.1); border-color: var(--login-blue); }
.button.login-button {
  min-height: 50px;
  margin-top: 6px;
  background: linear-gradient(90deg, #e4253c, #c8112c);
  box-shadow: 0 12px 26px rgba(200, 17, 44, 0.2);
}
.button.login-button:hover { background: linear-gradient(90deg, #cf1830, #aa0c24); }
.login-error {
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid #efc4c0;
  border-radius: 10px;
  color: var(--danger);
  background: #fff5f4;
  font-size: 12px;
}
.login-restored {
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid #bce0d0;
  border-radius: 10px;
  color: var(--success);
  background: #effaf5;
  font-size: 12px;
  line-height: 1.7;
}
.narrow-panel { max-width: 620px; margin-left: auto; margin-right: auto; }
.role-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 13px; }
.role-list li { padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.role-list strong, .role-list span { display: block; }
.role-list span { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.email-import { margin-top: 20px; padding-top: 18px; border-top: 1px solid #c9dcd8; }
.email-import h3 { margin: 0 0 8px; font-size: 15px; }
.email-import p { margin: 0 0 10px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.email-import code { padding: 2px 4px; border-radius: 4px; background: rgba(22, 50, 79, 0.08); }
.email-import .compact-form { display: grid; gap: 9px; margin: 13px 0 0; padding: 0; border: 0; }
.task-list { display: grid; gap: 8px; }
.task-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.task-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
}
.task-row:hover { color: var(--ink); border-color: #abc1d2; background: #f9fbfc; }
.task-row small { display: block; margin-top: 4px; color: var(--muted); }
.task-amount { color: var(--teal); font-weight: 800; white-space: nowrap; }
.user-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.user-card { padding: 17px; border: 1px solid var(--line); border-radius: 13px; display: grid; gap: 14px; }
.user-card-head { display: flex; align-items: center; gap: 10px; }
.user-card-head > span:nth-child(2) { flex: 1; }
.user-card-head small { display: block; margin-top: 3px; color: var(--muted); }
.avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: white;
  background: var(--navy);
  font-weight: 900;
}
.check-line { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 8px; }
.check-line input { width: auto; min-height: auto; }
.detail-list { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.detail-list div { display: grid; grid-template-columns: 120px 1fr; gap: 15px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; font-weight: 600; }
.danger-text { color: var(--danger); }
.status-title { font-size: 22px !important; line-height: 1.3 !important; }
.compact-form { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.timeline { display: grid; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 18px 1fr; gap: 12px; position: relative; padding-bottom: 16px; }
.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 12px;
  bottom: 0;
  border-left: 1px solid #bfd0da;
}
.timeline-dot { width: 11px; height: 11px; margin-top: 3px; border: 3px solid var(--pale-teal); border-radius: 50%; background: var(--teal); z-index: 1; }
.timeline p { margin: 4px 0; color: var(--muted); }
.timeline small { color: #94a3b1; }
.backup-form { margin-top: 18px; }
.schedule-card {
  margin-top: 18px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid #bcdad4;
  border-radius: 16px;
  background: linear-gradient(125deg, #f5fbfa, #e7f4f1);
}
.schedule-card h2 { margin: 4px 0 8px; color: var(--teal); }
.schedule-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.schedule-meta {
  min-width: 230px;
  padding: 13px 16px;
  border-radius: 11px;
  background: white;
  border: 1px solid #cbe1dc;
}
.schedule-meta span, .schedule-meta strong, .schedule-meta small { display: block; }
.schedule-meta span { color: var(--muted); font-size: 11px; }
.schedule-meta strong { margin: 5px 0; color: var(--navy); font-size: 17px; }
.schedule-meta small { color: var(--muted); }
.email-test-box { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.email-test-box h3 { margin: 0 0 12px; }
.test-form { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.login-footer-note {
  margin-top: 26px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #7f8ea0;
  font-size: 10px;
}

@media (max-width: 980px) {
  .topbar { padding: 14px 20px; align-items: flex-start; flex-direction: column; }
  .purge-banner { padding: 13px 20px; align-items: flex-start; flex-direction: column; }
  .nav { flex-wrap: wrap; }
  .page { width: calc(100% - 24px); margin-top: 20px; }
  .hero { padding: 28px 24px; align-items: flex-start; flex-direction: column; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-grid { grid-template-columns: 1fr; }
  .task-grid { grid-template-columns: 1fr; }
  .split-grid, .form-split { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .user-grid { grid-template-columns: 1fr; }
  .login-shell { grid-template-columns: 1fr; }
  .login-visual { min-height: 470px; }
  .login-form-panel { min-height: auto; padding: 34px 20px 50px; }
}

@media (max-width: 620px) {
  .brand small { display: none; }
  .nav a { padding: 8px 9px; font-size: 12px; }
  .metric-grid, .report-metrics, .result-grid, .form-grid, .form-grid.compact { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr; }
  .page-head, .form-footer, .download-banner { align-items: flex-start; flex-direction: column; }
  .schedule-card { align-items: flex-start; flex-direction: column; }
  .schedule-meta { width: 100%; min-width: 0; }
  .span-2 { grid-column: auto; }
  .hero-actions { min-width: 0; }
  .footer { width: calc(100% - 24px); flex-direction: column; }
}
