.console-page {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 28px 36px;
  color: #29463b;
  box-sizing: border-box;
}

.console-page * { box-sizing: border-box; }
.console-page h1 { margin: 0; font-size: 26px; line-height: 1.25; color: #24483a; }
.console-page h2 { margin: 0; font-size: 17px; line-height: 1.35; color: #2d5545; }
.console-page p { margin: 0; line-height: 1.55; }
.console-page a { color: inherit; text-decoration: none; }
.console-page a:hover { text-decoration: none; }
.console-page a:focus-visible,
.console-page button:focus-visible { outline: 3px solid #b88948; outline-offset: 3px; }

#adminPageHome {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

#adminPageHome > .console-page { flex: 0 0 auto; }

.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.console-header p { margin-top: 5px; color: #6b7e76; font-size: 13px; }
.console-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-shrink: 0; }
.console-header-actions span { color: #71827b; font-size: 12px; font-variant-numeric: tabular-nums; }
.console-header button {
  min-height: 34px;
  padding: 7px 15px;
  border: 1px solid #315f4c;
  border-radius: 8px;
  background: #315f4c;
  color: #fff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.console-header button:hover { background: #284f40; }
.console-header button:disabled { cursor: wait; opacity: .62; }

.console-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.console-home-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
  margin-top: 18px;
}

.console-home-detail-grid > .console-panel {
  height: 100%;
  margin-top: 0;
}

.console-inventory-panel { overflow: hidden; padding: 0; border-color: rgba(49,100,71,.12); border-radius: 16px; box-shadow: 0 12px 34px rgba(31,62,43,.07); }
.console-inventory-head { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px 17px 24px; border-bottom: 1px solid #e5ece7; }
.console-inventory-head h2 { color: #17251e; font-size: 18px; letter-spacing: -.02em; }
.console-inventory-head p { margin-top: 5px; color: #728078; font-size: 12px; }
.console-inventory-refresh { appearance: none; height: 34px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid #2f7453; border-radius: 8px; background: #2f7453; color: #fff; font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; transition: background-color 150ms, border-color 150ms, color 150ms; }
.console-inventory-refresh:hover { border-color: #1f5a3e; background: #1f5a3e; }
.console-inventory-refresh:disabled { cursor: default; opacity: .62; }
.console-inventory-refresh svg { width: 14px; height: 14px; }
.console-inventory-refresh.is-loading svg { animation: console-inventory-spin .7s linear infinite; }
.console-inventory-loading { padding: 24px; color: #728078; font-size: 12px; }
.console-inventory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.console-inventory-section { position: relative; min-width: 0; padding: 24px; opacity: 0; transform: translateY(4px); transition: background-color 150ms; animation: console-inventory-enter 220ms cubic-bezier(.22,.61,.36,1) forwards; }
.console-inventory-section:nth-child(2) { animation-delay: 55ms; }
.console-inventory-section:nth-child(3) { animation-delay: 110ms; }
.console-inventory-section + .console-inventory-section::before { content: ""; position: absolute; top: 24px; bottom: 24px; left: 0; width: 1px; background: #e5ece7; }
.console-inventory-section:hover { background: #f7faf8; }
.console-inventory-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.console-inventory-section h3 { margin: 0; color: #536259; font-size: 13px; font-weight: 700; }
.console-inventory-label-row > span { padding: 4px 7px; border-radius: 999px; background: #f1f7f3; color: #2f7453; font-size: 10px; font-weight: 700; }
.console-inventory-amount-shell { position: relative; height: 47px; margin: 12px 0 17px; overflow: hidden; }
.console-inventory-amount { position: absolute; inset: 0 auto auto 0; color: #1d2d24; font-size: clamp(25px,3vw,31px); font-weight: 720; line-height: 47px; letter-spacing: -.045em; white-space: nowrap; font-variant-numeric: tabular-nums; transition: color 150ms; }
.console-inventory-section:hover .console-inventory-amount { color: #1f5a3e; }
.console-inventory-amount.is-old { animation: console-inventory-old-up 280ms cubic-bezier(.22,.61,.36,1) forwards; }
.console-inventory-amount.is-new { opacity: 0; transform: translateY(4px); animation: console-inventory-new-up 280ms cubic-bezier(.22,.61,.36,1) 45ms forwards; }
.console-inventory-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.console-inventory-metric { min-width: 0; padding: 10px 9px; border-radius: 8px; background: #f7f9f8; transition: background-color 180ms, color 180ms; }
.console-inventory-metric small { display: block; overflow: hidden; margin-bottom: 5px; color: #7d8982; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.console-inventory-metric b { color: #37463e; font-size: 14px; font-weight: 720; font-variant-numeric: tabular-nums; }
.console-inventory-metric[data-tone="amber"] b { color: #99651e; }
.console-inventory-metric[data-tone="red"] b { color: #a6493f; }
.console-inventory-metric.is-changed[data-feedback="warm"] { animation: console-inventory-hint-amber 650ms cubic-bezier(.22,.61,.36,1); }
.console-inventory-metric.is-changed[data-tone="red"] { animation: console-inventory-hint-red 650ms cubic-bezier(.22,.61,.36,1); }
.console-inventory-metric.is-changed:not([data-tone]), .console-inventory-metric.is-changed[data-feedback="positive"] { animation: console-inventory-hint-green 650ms cubic-bezier(.22,.61,.36,1); }
@keyframes console-inventory-spin { to { transform: rotate(360deg); } }
@keyframes console-inventory-enter { to { opacity: 1; transform: translateY(0); } }
@keyframes console-inventory-old-up { to { opacity: 0; transform: translateY(-5px); } }
@keyframes console-inventory-new-up { to { opacity: 1; transform: translateY(0); } }
@keyframes console-inventory-hint-green { 45% { background: #e9f4ec; } }
@keyframes console-inventory-hint-amber { 45% { background: #fff7e8; } }
@keyframes console-inventory-hint-red { 45% { background: #fff3f1; } }

.console-panel {
  min-width: 0;
  margin-top: 18px;
  padding: 19px 20px;
  border: 1px solid #dce7e1;
  border-radius: 14px;
  background: #fff;
}

.console-summary-card {
  min-height: 168px;
  margin-top: 0;
  display: flex;
  flex-direction: column;
}

.console-summary-card.has-attention { border-color: #d9c8a8; background: #fffdf8; }
.console-summary-list { display: flex; flex: 1; flex-direction: column; justify-content: center; margin-top: 10px; }
.console-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 35px;
  padding: 7px 0;
  border-bottom: 1px solid #edf2ef;
  font-size: 13px;
}

.console-summary-row:last-child { border-bottom: 0; }
.console-summary-row strong { color: #294f40; font-size: 19px; font-weight: 650; font-variant-numeric: tabular-nums; }
.console-summary-row.is-muted { color: #8b9993; }
.console-summary-row.is-muted strong { color: #91a099; font-weight: 550; }
.console-summary-row.is-attention,
.console-summary-row.is-attention-soft { color: #76572f; }
.console-summary-row.is-attention strong { color: #9a642c; }
.console-summary-row.is-attention-soft strong { color: #806139; }
.console-summary-row[href]:hover { color: #1f664d; }

.console-quality-value { display: flex; align-items: flex-end; flex-direction: column; gap: 1px; text-align: right; }
.console-trend { font-size: 10.5px; font-weight: 500; white-space: nowrap; }
.console-trend.is-up { color: #3f755f; }
.console-trend.is-down { color: #986634; }
.console-trend.is-flat { color: #82928b; }

.console-review-total { display: flex; align-items: baseline; gap: 9px; margin: auto 0 8px; padding-top: 10px; }
.console-review-total strong { color: #315d4b; font-size: 31px; line-height: 1; font-weight: 650; font-variant-numeric: tabular-nums; }
.has-attention .console-review-total strong { color: #93602f; }
.console-review-total span { color: #697c73; font-size: 12px; }
.console-review-breakdown { display: flex; flex-wrap: wrap; gap: 5px 12px; color: #71827a; font-size: 11.5px; }

.console-leave-panel { display: block; padding-block: 17px; }
.console-leave-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.console-leave-heading span { min-width: 0; }
.console-leave-heading h2 { display: flex; align-items: center; gap: 7px; }
.console-leave-heading h2 em { padding: 2px 7px; border-radius: 999px; background: #edf4f0; color: #456b5b; font-size: 10.5px; font-style: normal; }
.console-leave-heading small { display: block; margin-top: 3px; color: #7b8b84; font-size: 11.5px; }
.console-leave-heading > i { flex-shrink: 0; color: #315f4c; font-size: 12px; font-style: normal; font-weight: 600; }
.console-attendance-counts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 14px; padding: 12px 14px; border-radius: 9px; background: #f7faf8; color: #61726b; font-size: 13px; }
.console-attendance-counts span { display: flex; align-items: baseline; gap: 7px; }
.console-attendance-counts b { color: #294c3e; font-size: 18px; }
.console-leave-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin-top: 13px; }
.console-leave-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 39px; padding: 8px 11px; border-radius: 8px; background: #f7faf8; font-size: 12.5px; }
.console-leave-row b { overflow: hidden; text-overflow: ellipsis; color: #315648; white-space: nowrap; }
.console-leave-row span { flex-shrink: 0; color: #725c3e; }
.console-leave-row span i { color: #a4ada8; font-style: normal; }
.console-leave-notice { margin-top: 13px !important; padding: 11px 13px; border-radius: 8px; background: #fff9ef; color: #82633d; font-size: 12.5px; }
.console-leave-empty { padding: 18px 8px 2px; }

.console-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.console-panel-heading p { margin-top: 4px; color: #778880; font-size: 11.5px; }

.console-pressure-list { display: grid; gap: 6px; }
.console-pressure {
  display: grid;
  grid-template-columns: 88px minmax(100px, 1fr) 90px;
  align-items: center;
  gap: 14px;
  min-height: 31px;
  padding: 3px 7px;
  border-radius: 7px;
  font-size: 12.5px;
}

.console-pressure.is-active:hover { background: #f4f8f6; }
.console-pressure.is-zero { color: #9ba7a2; }
.console-pressure-date { display: flex; align-items: baseline; gap: 7px; }
.console-pressure-date b { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.console-pressure-date small { color: #82928b; font-size: 10.5px; }
.console-pressure.is-zero .console-pressure-date small { color: #aab4af; }
.console-bar { height: 8px; overflow: hidden; border-radius: 999px; background: #edf2ef; }
.console-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: #79a58f; }
.console-pressure.is-zero .console-bar { background: #f3f6f4; }
.console-pressure.is-zero .console-bar i { background: #dfe7e3; }
.console-pressure-value { display: flex; align-items: center; justify-content: flex-end; gap: 7px; font-weight: 600; font-variant-numeric: tabular-nums; }
.console-pressure.is-zero .console-pressure-value { font-weight: 500; color: #a0aaa5; }

.console-growth-list { border-top: 1px solid #edf2ef; }
.console-growth-row {
  display: grid;
  grid-template-columns: minmax(190px, .8fr) minmax(0, 1.5fr);
  align-items: center;
  gap: 20px;
  min-height: 48px;
  padding: 8px 4px;
  border-bottom: 1px solid #edf2ef;
}

.console-growth-person { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.console-growth-person b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.console-growth-person small { color: #72837b; font-size: 11px; white-space: nowrap; }
.console-growth-items { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.console-growth-item { display: flex; align-items: center; gap: 9px; min-height: 30px; padding: 5px 10px; border-radius: 8px; background: #f4f8f6; color: #426454; font-size: 11.5px; }
.console-growth-item:hover { background: #eaf2ee; }
.console-growth-item b { color: #315d4b; font-size: 14px; font-variant-numeric: tabular-nums; }
.console-empty { padding: 26px 8px; color: #7c8c85; font-size: 13px; text-align: center; }
.console-panel-link { display: inline-flex; margin-top: 13px; color: #315f4c !important; font-size: 12.5px; font-weight: 600; }
.console-panel-link:hover { text-decoration: underline !important; }

.console-error { margin: 0 0 14px; padding: 10px 13px; border-radius: 9px; background: #fff6e9; color: #87561f; font-size: 12px; }

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

@media (max-width: 720px) {
  .console-page { padding: 18px 16px 28px; }
  .console-header { align-items: flex-start; }
  .console-header p { display: none; }
  .console-header-actions { gap: 9px; }
  .console-summary-grid { grid-template-columns: 1fr; gap: 10px; }
  .console-home-detail-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
  .console-summary-card { min-height: 0; padding: 16px; }
  .console-panel { margin-top: 12px; padding: 16px; }
  .console-growth-row { grid-template-columns: 1fr; gap: 7px; padding: 11px 2px; }
  .console-growth-items { justify-content: flex-start; }
  .console-leave-list { grid-template-columns: 1fr; }
  .console-inventory-grid { grid-template-columns: 1fr; }
  .console-inventory-head { align-items: flex-start; padding: 18px; }
  .console-inventory-section { padding: 21px 18px; }
  .console-inventory-section + .console-inventory-section::before { top: 0; right: 18px; bottom: auto; left: 18px; width: auto; height: 1px; }
}

@media (max-width: 430px) {
  .console-page { padding: 14px 12px 24px; }
  .console-page h1 { font-size: 22px; }
  .console-header { gap: 10px; margin-bottom: 14px; }
  .console-header-actions { align-items: flex-end; flex-direction: column-reverse; gap: 5px; }
  .console-header-actions span { font-size: 10.5px; }
  .console-header button { min-height: 32px; padding: 6px 12px; }
  .console-pressure { grid-template-columns: 66px minmax(64px, 1fr) 75px; gap: 8px; padding-inline: 2px; }
  .console-pressure-date { gap: 4px; }
  .console-pressure-date small { display: none; }
  .console-pressure-value { gap: 4px; }
  .console-leave-heading small { display: none; }
  .console-leave-row { align-items: flex-start; flex-direction: column; gap: 3px; }
}

/* 管理首页：紧凑首屏与轻量状态变化；颜色沿用现有 C02。 */
.console-page { padding-top: 14px; }
.console-summary-card { min-height: 146px; padding: 16px 18px; transition: border-color 120ms ease; }
.console-summary-card:hover { border-color: #a9c1b3; }
.console-hero { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; }
.console-hero strong { color: #294f40; font-size: 34px; font-weight: 650; line-height: 1; font-variant-numeric: tabular-nums; }
.console-hero span { color: #687b71; font-size: 12px; }
.console-hero.is-empty strong { color: #71827a; font-size: 20px; font-weight: 520; line-height: 1.2; }
.console-mini-row { display: flex; gap: 16px; margin-top: auto; }
.console-mini-row .console-summary-row { min-width: 0; flex: 1; border: 0; gap: 7px; padding-bottom: 0; }
.console-mini-row .console-summary-row strong { font-size: 15px; }
.console-mini-footer { display: flex; align-items: baseline; gap: 6px; margin-top: auto; color: #71827a; font-size: 12px; }
.console-mini-footer .console-trend { margin-left: auto; }
.console-review-breakdown { margin-top: auto; }
.console-attendance-counts { flex-wrap: nowrap; align-items: baseline; gap: 32px; padding: 9px 0; background: transparent; border-bottom: 1px solid #edf2ef; border-radius: 0; }
.console-attendance-metric { display: grid !important; grid-template-columns: 58px 2ch auto; align-items: baseline; column-gap: 6px !important; white-space: nowrap; }
.console-attendance-label { color: #74847c; font-size: 12px; }
.console-attendance-counts b { min-width: 2ch; color: #355447; font-size: 17px; font-weight: 650; line-height: 1; text-align: right; font-variant-numeric: tabular-nums; }
.console-attendance-counts small { color: #93a099; font-size: 10px; }
.console-leave-list { display: block; margin-top: 6px; }
.console-leave-row { min-height: 32px; padding: 6px 2px; border-radius: 0; border-bottom: 1px solid #f0f3f1; background: transparent; }
.console-leave-row:last-child { border-bottom: 0; }
.console-leave-row { animation: console-value-change 170ms ease; }
.console-leave-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.console-pressure { transition: background-color 120ms ease; }
.console-pressure.is-active:hover { background: #f4f8f6; }
.console-pressure.is-active:hover .console-bar i { background: #5e9279; }
.console-bar i { transform-origin: left; animation: console-bar-enter 250ms ease both; transition: width 250ms ease, background-color 120ms ease; }
.console-pressure:nth-child(2) .console-bar i { animation-delay: 25ms; }
.console-pressure:nth-child(3) .console-bar i { animation-delay: 50ms; }
.console-pressure:nth-child(4) .console-bar i { animation-delay: 75ms; }
.console-pressure:nth-child(5) .console-bar i { animation-delay: 100ms; }
.console-pressure:nth-child(6) .console-bar i { animation-delay: 125ms; }
.console-pressure:nth-child(7) .console-bar i { animation-delay: 150ms; }
@keyframes console-bar-enter { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.value-changed { animation: console-value-change 160ms ease; }
@keyframes console-value-change { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.state-changed { animation: console-state-change 280ms ease; }
@keyframes console-state-change { from { background: #f3f8ef; } to { background: transparent; } }
.admin-sidebar-footer #c02-environment { position: static; transform: none; display: block; width: fit-content; max-width: 100%; margin: 12px auto 0; padding: 4px 8px; font-size: 10px; letter-spacing: .5px; box-shadow: none; }
@media (max-width: 720px) {
  .console-page { padding-top: 10px; }
  .console-mini-row { gap: 8px; }
}
@media (max-width: 390px) {
  .console-hero strong { font-size: 30px; }
  .console-hero.is-empty strong { font-size: 19px; }
  .console-attendance-counts { gap: 16px; }
  .console-attendance-metric { grid-template-columns: 54px 2ch auto; column-gap: 4px !important; }
  .console-pressure { grid-template-columns: 63px minmax(0,1fr) 50px; gap: 5px; }
  .console-inventory-head { gap: 10px; padding: 16px 14px; }
  .console-inventory-head h2 { font-size: 16px; }
  .console-inventory-head p { font-size: 10.5px; }
  .console-inventory-refresh { flex: 0 0 auto; padding-inline: 10px; }
  .console-inventory-section { padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .console-page .console-summary-card, .console-page .console-pressure, .console-page .console-bar i,
  .console-page .value-changed, .console-page .state-changed, .console-page .console-leave-row,
  .console-page .console-inventory-section, .console-page .console-inventory-refresh svg,
  .console-page .console-inventory-amount, .console-page .console-inventory-metric { animation: none !important; transition: none !important; }
  .console-page .console-inventory-section { opacity: 1 !important; transform: none !important; }
  .console-page .console-inventory-amount.is-old { display: none !important; }
  .console-page .console-inventory-amount.is-new { opacity: 1 !important; transform: none !important; }
}
