:root {
  --bg: #d8dee5;
  --panel: rgba(241, 245, 249, 0.84);
  --line: rgba(135, 149, 163, 0.42);
  --line-soft: rgba(176, 187, 198, 0.28);
  --text: #15202b;
  --muted: #667586;
  --primary: #445566;
  --primary-soft: rgba(68, 85, 102, 0.12);
  --good: #2f7357;
  --good-soft: rgba(47, 115, 87, 0.12);
  --warn: #ad7230;
  --warn-soft: rgba(173, 114, 48, 0.12);
  --bad: #a64e46;
  --bad-soft: rgba(166, 78, 70, 0.12);
  --blue: #577089;
  --blue-soft: rgba(87, 112, 137, 0.12);
  --shadow: 0 24px 56px rgba(23, 35, 48, 0.12);
  --shadow-soft: 0 12px 28px rgba(31, 43, 54, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  min-height: 100vh;
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(142, 154, 167, 0.32), transparent 28%),
    radial-gradient(circle at top right, rgba(241, 244, 247, 0.6), transparent 22%),
    linear-gradient(180deg, #eef2f5 0%, #dce2e8 38%, #cfd6de 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

body::before {
  top: -140px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0));
  filter: blur(14px);
}

body::after {
  left: 4%;
  bottom: -140px;
  width: 520px;
  height: 240px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
  transform: rotate(-8deg);
}

#app {
  max-width: 1720px;
  margin: 0 auto;
  padding: 24px 28px 36px;
  position: relative;
  z-index: 1;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

.panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.78) 0%, rgba(236, 241, 246, 0.92) 42%, rgba(220, 228, 236, 0.88) 100%);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0));
}

.login-panel {
  max-width: 480px;
  margin: 64px auto;
  padding: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(229, 236, 242, 0.94)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
}

h1,
h2,
h3 {
  margin: 0 0 12px;
}

.muted,
.section-note {
  color: var(--muted);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.82fr);
  gap: 18px;
  margin-bottom: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.dashboard-top-grid {
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  align-items: start;
}

.dashboard-top-grid > .panel {
  min-height: 0;
}

.manager-shell {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  gap: 20px;
}

.manager-sidebar {
  background:
    linear-gradient(180deg, rgba(52, 64, 77, 0.98), rgba(33, 43, 54, 0.99)),
    radial-gradient(circle at top, rgba(174, 189, 205, 0.2), transparent 42%);
  color: white;
  border-radius: 24px;
  padding: 20px 16px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  align-content: start;
  min-height: calc(100vh - 36px);
  max-height: calc(100vh - 36px);
  position: sticky;
  top: 18px;
  overflow: auto;
  box-shadow: 0 20px 40px rgba(20, 28, 38, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 10px;
  display: block;
  align-self: end;
}

.manager-side-head {
  display: block;
}

.sidebar-logout-button {
  justify-self: start;
  padding-inline: 16px;
}

.manager-side-head .sidebar-logout-button {
  display: none;
}

.manager-sidebar .eyebrow,
.manager-sidebar .muted {
  color: rgba(255, 255, 255, 0.72);
}

.manager-nav {
  display: grid;
  gap: 10px;
  align-content: start;
}

.nav-link {
  width: 100%;
  min-height: 52px;
  text-align: left;
  border-radius: 16px;
  padding: 12px 14px;
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.nav-link:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
}

.nav-link.active {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(196, 211, 226, 0.18));
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 10px 22px rgba(17, 25, 34, 0.18);
  color: #ffffff;
  font-weight: 800;
  padding-left: 18px;
}

.nav-link.active::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 4px;
  height: 22px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, #f6fbff 0%, #cedeed 100%);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.22);
}

.sidebar-footer button {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
}

.manager-main {
  min-width: 0;
  padding-top: 2px;
  display: grid;
}

.manager-section {
  display: none;
}

.manager-section.active {
  display: block;
}

.manager-header {
  margin-bottom: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(226, 233, 240, 0.92));
  box-shadow: var(--shadow-soft);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.form {
  display: grid;
  gap: 14px;
}

.form.compact {
  gap: 10px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.checkbox-row {
  grid-template-columns: auto 1fr;
  align-items: center;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(233, 239, 245, 0.88));
  color: var(--text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

button {
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(180deg, #5b6d7f 0%, #465869 100%);
  color: white;
  cursor: pointer;
  box-shadow:
    0 10px 24px rgba(49, 63, 77, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.14);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    opacity 0.16s ease,
    filter 0.16s ease,
    background 0.16s ease;
}

button::before {
  content: "";
  position: absolute;
  top: -130%;
  left: -38%;
  width: 42%;
  height: 320%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
  transform: rotate(24deg);
  transition: transform 0.28s ease, opacity 0.28s ease;
  opacity: 0.72;
}

button.secondary {
  background: linear-gradient(180deg, #738392 0%, #5f707f 100%);
}

button.warn {
  background: linear-gradient(180deg, #c28544 0%, #a56a2f 100%);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    0 14px 28px rgba(49, 63, 77, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.14);
  filter: saturate(1.04);
}

button:hover:not(:disabled)::before {
  transform: translateX(180%) rotate(24deg);
}

button:active:not(:disabled) {
  transform: translateY(1px) scale(0.992);
  box-shadow:
    0 6px 14px rgba(49, 63, 77, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(66, 90, 112, 0.45);
  box-shadow: 0 0 0 4px rgba(66, 90, 112, 0.1);
  background: #fff;
}

.checkbox-row input,
.checkbox-line input {
  width: auto;
}

.status-card,
.summary-list,
.actions,
.board,
#approval-list,
#approval-list-mirror,
.pool-roster,
.pool-members {
  display: grid;
  gap: 12px;
}

.approval-history-preview {
  display: grid;
  gap: 12px;
}

#approval-list,
#approval-list-mirror {
  max-height: 420px;
  overflow: auto;
  padding-right: 6px;
}

#approval-center-list {
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 240px);
  overflow: auto;
  padding-right: 6px;
}

.approval-history-expand {
  width: 100%;
  justify-content: center;
}

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

.summary-kpis {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-bottom: 16px;
}

.item,
.approval-row,
.pool-member,
.muted-card {
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 14px 15px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.9), rgba(232, 238, 244, 0.84));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.item.emphasis {
  padding: 20px;
  background:
    linear-gradient(138deg, rgba(255, 255, 255, 0.98), rgba(231, 237, 244, 0.94));
  box-shadow:
    inset 0 0 0 1px rgba(66, 90, 112, 0.05),
    0 14px 32px rgba(33, 46, 59, 0.08);
}

.approval-row:hover,
.pool-member:hover,
.user-card:hover,
.pool-setting-form:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(33, 46, 59, 0.08);
}

.item.good,
.badge.good,
.stat-chip.good {
  border-color: rgba(47, 125, 83, 0.28);
}

.item.warn,
.badge.warn,
.stat-chip.warn {
  border-color: rgba(202, 123, 19, 0.28);
}

.item.bad,
.badge.bad,
.stat-chip.bad {
  border-color: rgba(179, 60, 49, 0.3);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #e9eef3;
}

.badge.good,
.stat-chip.good {
  background: var(--good-soft);
  color: var(--good);
  border-color: rgba(47, 125, 83, 0.34);
}

.badge.warn,
.stat-chip.warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.badge.bad,
.stat-chip.bad {
  background: var(--bad-soft);
  color: var(--bad);
}

.badge.off {
  background: linear-gradient(180deg, rgba(92, 108, 126, 0.2), rgba(92, 108, 126, 0.1));
  color: #55677b;
  border-color: rgba(92, 108, 126, 0.28);
}

.badge.blue,
.stat-chip.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.user-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.actions {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.row-actions,
.board-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.approval-meta,
.member-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin-top: 10px;
}

.meta-item {
  min-width: 0;
}

.meta-item .label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 2px;
}

.meta-item .value {
  display: block;
  font-size: 15px;
  line-height: 1.45;
}

.subtle-code {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.user-card {
  padding: 16px 18px;
}

.pool-setting-form .row-head strong,
.user-card .row-head strong {
  font-size: 18px;
}

.compact-board {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.board-card {
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(229, 236, 242, 0.9));
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(30, 43, 56, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.board-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(30, 43, 56, 0.12);
}

.board-card.good {
  box-shadow: inset 0 0 0 1px rgba(47, 125, 83, 0.12);
}

.board-card.warn {
  box-shadow: inset 0 0 0 1px rgba(202, 123, 19, 0.14);
}

.board-card.blue {
  box-shadow: inset 0 0 0 1px rgba(44, 104, 139, 0.14);
}

.board-card.neutral {
  box-shadow: inset 0 0 0 1px rgba(90, 86, 78, 0.1);
}

.board-card-toggle {
  width: 100%;
  background: transparent;
  color: inherit;
  border: none;
  border-radius: 0;
  padding: 18px;
  text-align: left;
  box-shadow: none;
  cursor: pointer;
}

.board-card-toggle:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
}

.board-card-toggle::before {
  display: none;
}

.board-card-toggle:active {
  transform: none;
  box-shadow: none;
}

.board-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.board-card-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
}

.board-card-subtitle {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.board-card-arrow {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.board-highlight {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(245, 248, 251, 0.92), rgba(232, 238, 244, 0.84));
  font-size: 13px;
  line-height: 1.5;
  min-height: 74px;
}

.board-detail {
  border-top: 1px solid var(--line-soft);
  padding: 12px 16px 16px;
  display: grid;
  gap: 10px;
}

.board-detail-compact {
  min-height: 164px;
  align-content: start;
}

.board-detail.empty {
  color: var(--muted);
}

.board-preview-box {
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(232, 238, 244, 0.86));
  display: grid;
  gap: 10px;
}

.board-preview-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.board-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.board-preview-list-late {
  display: grid;
  gap: 8px;
}

.board-preview-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  line-height: 1.2;
}

.board-preview-chip.warn {
  background: var(--warn-soft);
  border-color: rgba(173, 114, 48, 0.2);
  color: var(--warn);
}

.board-preview-chip.bad {
  background: var(--bad-soft);
  border-color: rgba(166, 78, 70, 0.2);
  color: var(--bad);
}

.board-preview-chip.blue {
  background: var(--blue-soft);
  border-color: rgba(87, 112, 137, 0.2);
  color: var(--blue);
}

.board-preview-name {
  font-weight: 700;
}

.board-preview-status {
  opacity: 0.9;
}

.board-preview-late-row {
  border: 1px solid rgba(166, 78, 70, 0.16);
  background: rgba(166, 78, 70, 0.06);
  border-radius: 12px;
  padding: 8px 10px;
}

.board-preview-late-name {
  font-weight: 700;
  margin-bottom: 4px;
}

.board-preview-late-text {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.board-preview-foot,
.board-preview-empty {
  font-size: 12px;
  color: var(--muted);
}

.board-preview-empty {
  min-height: 76px;
  display: grid;
  place-items: center;
  text-align: center;
}

.detail-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(216, 198, 169, 0.4);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-name {
  font-weight: 700;
}

.detail-sub,
.detail-meta {
  font-size: 13px;
  color: var(--muted);
}

.detail-full {
  grid-column: 1 / -1;
}

.pool-settings-list,
.user-list {
  display: grid;
  gap: 12px;
}

.pool-setting-form {
  display: grid;
  gap: 12px;
}

.checkbox-tile {
  display: grid;
  gap: 8px;
}

.checkbox-line,
.inline-picker {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inline-picker {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pool-picker-shell {
  position: relative;
  min-width: 176px;
  z-index: 24;
}

.pool-picker-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(231, 237, 243, 0.9));
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.pool-picker-trigger::before {
  display: none;
}

.pool-picker-caret {
  font-size: 12px;
  color: var(--muted);
}

.pool-picker-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: 100%;
  display: none;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(247, 250, 252, 0.98), rgba(228, 235, 242, 0.96));
  box-shadow: 0 20px 36px rgba(31, 43, 54, 0.14);
  z-index: 60;
}

.pool-picker-menu.open {
  display: grid;
  gap: 6px;
}

.pool-picker-option {
  width: 100%;
  text-align: left;
  min-height: 40px;
  border-radius: 10px;
  padding: 9px 11px;
  background: transparent;
  color: var(--text);
  box-shadow: none;
  transition: transform 0.14s ease, background 0.14s ease, color 0.14s ease;
}

.pool-picker-option.active {
  background: linear-gradient(180deg, #56697a 0%, #445464 100%);
  color: white;
}

.pool-picker-option:not(.active):hover {
  background: rgba(70, 88, 104, 0.08);
  transform: translateX(2px);
}

.inline-select {
  min-width: 160px;
}

.inline-picker span {
  color: var(--muted);
  font-size: 14px;
}

.pool-picker-feedback {
  width: 100%;
  margin-top: 6px;
  font-size: 12px;
  color: var(--primary);
  text-align: right;
  opacity: 0.82;
}

.employee-ops-panel {
  overflow: visible;
  z-index: 8;
}

.employee-ops-panel .section-head {
  position: relative;
  z-index: 10;
}

.approval-row {
  padding: 16px;
}

.approval-center-stack,
.approval-center-list {
  display: grid;
  gap: 14px;
}

.approval-center-group + .approval-center-group {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.approval-center-head {
  margin-bottom: 14px;
}

.approval-history-title {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
}

.approval-history-row.history-anomaly {
  border-color: rgba(166, 78, 70, 0.24);
  background:
    linear-gradient(155deg, rgba(255, 250, 250, 0.92), rgba(242, 233, 233, 0.84));
}

.row-actions button {
  min-width: 88px;
}

.section-tools,
.form-actions-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.section-tools input[type="date"] {
  min-width: 160px;
}

.people-search-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(216, 198, 169, 0.45);
}

.action-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.timer-hero {
  margin-bottom: 4px;
  padding: 16px 18px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(234, 240, 246, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.timer-hero.warn {
  background: linear-gradient(135deg, rgba(202, 123, 19, 0.12), rgba(255, 255, 255, 0.85));
  border: 1px solid rgba(202, 123, 19, 0.2);
}

.timer-hero.bad {
  background: linear-gradient(135deg, rgba(179, 60, 49, 0.14), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(179, 60, 49, 0.24);
}

.timer-label {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.timer-value {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.timer-note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.current-pool-spotlight {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  text-align: center;
  gap: 12px;
  width: 100%;
  max-width: 208px;
  padding: 18px 14px;
  border-radius: 20px;
  min-height: 132px;
  background:
    linear-gradient(160deg, rgba(74, 112, 153, 0.22), rgba(246, 249, 252, 0.98) 38%, rgba(220, 231, 241, 0.94) 100%);
  border: 1px solid rgba(65, 104, 146, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 12px 24px rgba(39, 52, 64, 0.07);
}

.current-pool-label {
  font-size: 12px;
  color: #426889;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.current-pool-value {
  display: inline-flex;
  align-self: center;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 9px 16px;
  border-radius: 16px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  color: #f7fbff;
  background: linear-gradient(180deg, #54749a 0%, #355b86 100%);
  border: 1px solid rgba(41, 78, 118, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -1px 0 rgba(18, 39, 61, 0.18),
    0 10px 20px rgba(53, 91, 127, 0.18);
}

.pool-member-status {
  font-size: 15px;
  color: var(--muted);
}

.tip-box,
.message,
.error {
  margin-top: 12px;
  white-space: pre-wrap;
}

.message {
  color: var(--primary);
}

.import-report {
  display: grid;
  gap: 14px;
}

.import-report-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.import-report-metric {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(236, 242, 247, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.import-report-metric.good {
  background:
    linear-gradient(180deg, rgba(237, 249, 242, 0.96), rgba(223, 242, 232, 0.92));
  border-color: rgba(47, 115, 87, 0.2);
}

.import-report-metric.warn {
  background:
    linear-gradient(180deg, rgba(255, 245, 232, 0.96), rgba(248, 235, 214, 0.92));
  border-color: rgba(173, 114, 48, 0.24);
}

.import-report-metric.bad {
  background:
    linear-gradient(180deg, rgba(252, 239, 237, 0.96), rgba(247, 228, 225, 0.92));
  border-color: rgba(166, 78, 70, 0.2);
}

.import-report-metric.blue {
  background:
    linear-gradient(180deg, rgba(236, 243, 249, 0.96), rgba(223, 233, 243, 0.92));
  border-color: rgba(87, 112, 137, 0.22);
}

.import-report-metric-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.import-report-metric-value {
  display: block;
  font-size: 22px;
  line-height: 1.1;
  color: var(--text);
}

.import-report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.import-report-section {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(250, 252, 255, 0.94), rgba(238, 243, 248, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  display: grid;
  gap: 10px;
}

.import-report-section.full {
  grid-column: 1 / -1;
}

.import-report-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.import-report-section-head h4 {
  margin: 0;
  font-size: 15px;
}

.import-report-note {
  font-size: 12px;
  color: var(--muted);
}

.import-report-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.import-report-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 12px;
  border: 1px solid rgba(135, 149, 163, 0.18);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.import-report-tag.good {
  background: rgba(226, 243, 233, 0.86);
  border-color: rgba(47, 115, 87, 0.16);
}

.import-report-tag.warn {
  background: rgba(250, 239, 224, 0.92);
  border-color: rgba(173, 114, 48, 0.18);
}

.import-report-tag.bad {
  background: rgba(249, 232, 229, 0.92);
  border-color: rgba(166, 78, 70, 0.16);
}

.import-report-tag.blue {
  background: rgba(229, 237, 245, 0.92);
  border-color: rgba(87, 112, 137, 0.18);
}

.import-report-empty {
  color: var(--muted);
  font-size: 13px;
}

.import-report-special-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.import-report-special-card {
  padding: 12px;
  border-radius: 14px;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.72);
  display: grid;
  gap: 8px;
}

.import-report-special-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.error {
  color: var(--bad);
}

.muted-card {
  color: var(--muted);
  background: rgba(246, 249, 252, 0.72);
  border-style: dashed;
}

#employee-view .topbar {
  position: relative;
  overflow: hidden;
  padding: 18px 20px;
  margin-bottom: 14px;
  border: 1px solid rgba(159, 170, 181, 0.44);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(231, 237, 243, 0.94));
  box-shadow:
    var(--shadow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

#employee-view .topbar::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 42%;
  height: 100%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
  pointer-events: none;
}

#employee-view.screen.active {
  display: grid;
  gap: 14px;
}

.employee-topbar h2 {
  font-size: 28px;
  margin-bottom: 0;
}

#employee-view .topbar button {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(89, 104, 118, 0.18);
  background: rgba(244, 247, 250, 0.92);
  color: var(--primary);
  box-shadow: none;
}

#employee-view .topbar button::before {
  display: none;
}

#employee-view .topbar button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 18px rgba(33, 46, 59, 0.08);
  filter: none;
}

.employee-hero-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(340px, 0.9fr);
}

#employee-view .hero-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.78fr);
  align-items: stretch;
  gap: 14px;
}

#employee-view .grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 14px;
}

.employee-ops-panel {
  position: relative;
  overflow: visible;
  padding: 18px;
  border-radius: 20px;
  border-color: rgba(141, 154, 166, 0.34);
  background:
    linear-gradient(145deg, rgba(248, 250, 252, 0.96), rgba(233, 239, 245, 0.92));
  box-shadow: var(--shadow-soft);
}

.employee-ops-panel .section-head {
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.employee-ops-panel .section-head h3 {
  margin-bottom: 0;
}

.employee-status-panel,
.employee-summary-panel,
.employee-roster-panel,
.employee-approval-panel {
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

#employee-status-card .item.emphasis {
  min-height: 100%;
  border-radius: 22px;
}

#employee-status-card .employee-status-shell {
  gap: 18px;
}

.employee-status-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 2px;
}

.status-caption {
  color: var(--primary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 6px;
}

.employee-status-title {
  display: block;
  font-size: 30px;
  line-height: 1.08;
  color: #23433a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.42);
}

.employee-status-shell.off .employee-status-title {
  color: #5b6f84;
}

.employee-status-shell.good .employee-status-title {
  color: #1f6a48;
}

.employee-status-shell.warn .employee-status-title {
  color: #a06827;
}

.employee-status-shell.bad .employee-status-title {
  color: #94423b;
}

.employee-core-grid,
.employee-status-main-grid {
  display: grid;
  grid-template-columns: minmax(190px, 220px) minmax(0, 1fr);
  gap: 20px 18px;
  align-items: start;
}

.employee-status-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.employee-status-primary {
  align-content: start;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
}

.employee-status-secondary {
  align-content: start;
}

.employee-status-metric {
  min-height: 74px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(159, 170, 181, 0.28);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(232, 238, 244, 0.84));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.employee-status-metric.spotlight {
  grid-column: 1 / -1;
  min-height: 92px;
  background:
    linear-gradient(145deg, rgba(244, 248, 252, 0.98), rgba(221, 230, 239, 0.92));
  border-color: rgba(93, 116, 139, 0.24);
}

.employee-status-metric.wide {
  grid-column: 1 / -1;
}

.employee-status-metric .label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
  line-height: 1.4;
}

.employee-status-metric .value {
  display: block;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 800;
  word-break: break-word;
}

#employee-summary.summary-highlight {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#employee-summary .item {
  min-height: 76px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 15px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(228, 235, 242, 0.88));
}

#employee-summary .item strong {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
  margin-right: auto;
}

#employee-summary .item div {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .employee-core-grid,
  .employee-status-main-grid {
    grid-template-columns: 1fr;
  }

  .current-pool-spotlight {
    max-width: none;
  }

  #employee-summary.summary-highlight {
    grid-template-columns: 1fr;
  }
}

#employee-actions.actions {
  grid-template-columns: repeat(auto-fit, minmax(164px, 1fr));
  gap: 12px;
}

.employee-action-btn {
  position: relative;
  min-height: 86px;
  padding: 14px 15px;
  border-radius: 18px;
  border: 1px solid rgba(115, 129, 143, 0.18);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  letter-spacing: 0;
  font-weight: 700;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(33, 46, 59, 0.08);
}

.employee-action-btn::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  opacity: 1;
  pointer-events: none;
}

.employee-action-btn.primary {
  background: linear-gradient(180deg, rgba(236, 246, 250, 0.98), rgba(226, 237, 243, 0.92));
  color: #224657;
  border-color: rgba(64, 101, 124, 0.18);
}

.employee-action-btn.primary::before {
  background: #4d7891;
}

.employee-action-btn.secondary {
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.98), rgba(230, 236, 242, 0.92));
  color: #40586a;
  border-color: rgba(88, 110, 128, 0.16);
}

.employee-action-btn.secondary::before {
  background: #6f8798;
}

.employee-action-btn.soft {
  color: #264455;
  border-color: rgba(67, 96, 120, 0.16);
  background: linear-gradient(180deg, rgba(246, 249, 252, 0.98), rgba(234, 240, 245, 0.92));
}

.employee-action-btn.soft::before {
  background: #7a90a5;
}

.employee-action-btn.warn {
  background: linear-gradient(180deg, rgba(252, 244, 233, 0.98), rgba(245, 232, 216, 0.94));
  color: #8c5314;
  border-color: rgba(173, 114, 48, 0.22);
}

.employee-action-btn.warn::before {
  background: #c47c28;
}

.employee-action-btn.danger {
  background: linear-gradient(180deg, rgba(251, 240, 239, 0.98), rgba(244, 228, 226, 0.94));
  color: #8a403a;
  border-color: rgba(166, 78, 70, 0.2);
}

.employee-action-btn.danger::before {
  background: #b45c54;
}

.employee-action-btn .employee-action-title,
.employee-action-btn .employee-action-note {
  position: relative;
  z-index: 1;
}

.employee-action-title {
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
}

.employee-action-note {
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.9;
}

.employee-action-btn.soft .employee-action-note {
  color: var(--muted);
}

.employee-action-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 22px rgba(33, 46, 59, 0.1);
  filter: none;
}

.employee-action-btn:hover:not(:disabled)::before {
  transform: none;
}

.employee-action-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 8px 16px rgba(33, 46, 59, 0.08);
}

#employee-pool-roster,
#employee-approvals {
  gap: 14px;
}

#employee-pool-roster .pool-member,
#employee-approvals .item {
  padding: 16px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(233, 239, 245, 0.88));
}

#employee-view .message {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(68, 85, 102, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(222, 230, 238, 0.76));
  color: var(--primary);
}

#employee-view h3,
#manager-view h3 {
  letter-spacing: 0.01em;
}

.summary-kpis .item {
  min-height: 94px;
  display: grid;
  align-content: space-between;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(228, 235, 242, 0.88));
}

.summary-kpis .item strong {
  color: var(--muted);
  font-size: 13px;
}

.summary-kpis .item div {
  font-size: 30px;
  font-weight: 800;
}

#board-modal-root {
  position: relative;
  z-index: 50;
}

.board-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 28, 0.48);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.board-modal-dialog {
  width: min(1200px, 100%);
  max-height: min(84vh, 920px);
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(155deg, rgba(250, 252, 254, 0.98), rgba(225, 232, 239, 0.96));
  box-shadow: 0 28px 60px rgba(19, 24, 31, 0.24);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  padding: 20px;
  gap: 14px;
}

.board-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.board-modal-close {
  background: #526979;
}

.board-modal-body {
  overflow: auto;
  border-top: 1px solid var(--line-soft);
  padding-top: 8px;
}

.board-modal-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0 10px;
}

.board-modal-search {
  flex: 1;
  min-width: 240px;
}

.board-modal-summary {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.detail-row.over-limit {
  border-radius: 16px;
  padding: 12px;
  background: rgba(179, 60, 49, 0.08);
  border: 1px solid rgba(179, 60, 49, 0.16);
}

@media (max-width: 1400px) {
  .compact-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .compact-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-top-grid {
    grid-template-columns: 1fr;
  }

  .employee-core-grid,
  #employee-summary.summary-highlight {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 800px) {
  #app {
    padding: 14px;
  }

  .board-modal-tools {
    flex-direction: column;
    align-items: stretch;
  }

  .board-modal-summary {
    white-space: normal;
  }

  .topbar,
  .section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .inline-picker,
  .pool-picker-feedback {
    justify-content: flex-start;
    text-align: left;
  }

  .hero-grid,
  .summary-highlight,
  .compact-board {
    grid-template-columns: 1fr;
  }

  .employee-core-grid {
    grid-template-columns: 1fr;
  }

  .employee-status-top {
    flex-direction: column;
  }

  .employee-topbar h2 {
    font-size: 24px;
  }

  .manager-shell {
    grid-template-columns: 1fr;
  }

  .manager-sidebar {
    min-height: auto;
  }

  .approval-meta,
  .member-meta {
    grid-template-columns: 1fr;
  }

  #employee-actions.actions {
    grid-template-columns: 1fr;
  }
}

/* Employee compact orb skin: closer to a desktop accelerator widget. */
#employee-view.screen.active {
  max-width: 1320px;
  margin: 0 auto;
  gap: 14px;
}

#employee-view .employee-topbar {
  min-height: 84px;
  padding: 16px 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0) 30%),
    linear-gradient(135deg, rgba(247, 251, 253, 0.94), rgba(222, 231, 238, 0.86));
}

#employee-view .employee-topbar h2 {
  font-size: clamp(24px, 3vw, 34px);
}

#employee-view .employee-topbar button {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
}

#employee-view .hero-grid.employee-hero-grid {
  grid-template-columns: minmax(520px, 0.98fr) minmax(320px, 0.52fr);
}

#employee-view .employee-status-panel,
#employee-view .employee-summary-panel,
#employee-view .employee-ops-panel,
#employee-view .employee-roster-panel,
#employee-view .employee-approval-panel {
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 34%),
    linear-gradient(145deg, rgba(248, 251, 253, 0.92), rgba(224, 233, 241, 0.84));
}

#employee-view .employee-status-panel {
  padding: 16px;
}

#employee-status-card .item.emphasis {
  padding: 22px;
  min-height: 330px;
  border-radius: 26px;
}

#employee-status-card .employee-status-top {
  margin-bottom: 10px;
}

#employee-status-card .badge {
  border-radius: 999px;
  padding: 7px 12px;
}

#employee-status-card .employee-status-main-grid,
#employee-status-card .employee-core-grid {
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: center;
}

#employee-status-card .current-pool-spotlight {
  position: relative;
  width: 212px;
  height: 212px;
  min-height: 212px;
  max-width: none;
  padding: 28px 20px;
  border-radius: 50%;
  isolation: isolate;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.98) 0 10%, rgba(191, 223, 245, 0.76) 21%, rgba(67, 103, 151, 0.92) 58%, rgba(35, 65, 105, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow:
    inset 0 14px 24px rgba(255, 255, 255, 0.28),
    inset 0 -22px 34px rgba(13, 38, 70, 0.3),
    0 18px 36px rgba(43, 74, 112, 0.3),
    0 0 0 12px rgba(104, 142, 178, 0.08);
}

#employee-status-card .current-pool-spotlight::before,
#employee-status-card .current-pool-spotlight::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

#employee-status-card .current-pool-spotlight::before {
  inset: 15px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-top-color: rgba(255, 255, 255, 0.78);
  transform: rotate(-24deg);
}

#employee-status-card .current-pool-spotlight::after {
  inset: 31px;
  background:
    conic-gradient(from 210deg, rgba(121, 219, 255, 0.74), rgba(255, 255, 255, 0.06), rgba(121, 219, 255, 0.74));
  opacity: 0.42;
  filter: blur(1px);
  z-index: -1;
}

#employee-status-card .current-pool-label {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  padding: 5px 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.96);
  background: rgba(18, 46, 78, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 5px 14px rgba(18, 43, 71, 0.18);
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  font-weight: 800;
  text-shadow: 0 2px 6px rgba(8, 27, 48, 0.55);
}

#employee-status-card .current-pool-value {
  position: relative;
  z-index: 2;
  min-width: 112px;
  max-width: 150px;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  color: #ffffff;
  font-size: 40px;
  line-height: 1.05;
  text-shadow:
    0 3px 9px rgba(4, 19, 36, 0.72),
    0 0 18px rgba(255, 255, 255, 0.28);
  white-space: normal;
}

#employee-status-card .employee-status-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#employee-status-card .employee-status-metric {
  min-height: 68px;
  padding: 12px 14px;
  border-radius: 18px;
}

#employee-status-card .employee-status-metric.spotlight {
  min-height: 78px;
}

#employee-summary.summary-highlight {
  grid-template-columns: 1fr;
}

#employee-summary .item {
  min-height: 66px;
  padding: 12px 14px;
  border-radius: 18px;
}

#employee-summary .item div {
  font-size: 22px;
}

#employee-view .employee-ops-panel {
  padding: 16px 18px 18px;
}

#employee-view .employee-ops-panel .section-head {
  display: grid;
  grid-template-columns: auto minmax(220px, 340px);
  align-items: center;
}

#employee-actions.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}

#employee-actions .employee-action-btn {
  flex: 0 0 138px;
  width: 138px;
  min-height: 112px;
  padding: 14px 13px;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 28px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 12px 22px rgba(39, 54, 68, 0.11);
}

#employee-actions .employee-action-btn::before {
  inset: 10px auto auto 50%;
  width: 34px;
  height: 5px;
  border-radius: 999px;
  transform: translateX(-50%);
  opacity: 0.7;
}

#employee-actions .employee-action-title {
  font-size: 17px;
}

#employee-actions .employee-action-note {
  max-width: 108px;
  font-size: 11px;
}

#employee-actions .employee-action-btn.primary {
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0) 33%),
    linear-gradient(180deg, rgba(232, 249, 255, 0.98), rgba(183, 216, 235, 0.94));
}

#employee-actions .employee-action-btn.warn {
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, rgba(255, 246, 229, 0.98), rgba(244, 210, 164, 0.94));
}

#employee-actions .employee-action-btn.danger {
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, rgba(255, 239, 238, 0.98), rgba(235, 189, 185, 0.94));
}

#employee-view .message {
  min-height: 28px;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 999px;
}

#employee-view .employee-bottom-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

@media (max-width: 1100px) {
  #employee-view .hero-grid.employee-hero-grid,
  #employee-view .employee-bottom-grid,
  #employee-status-card .employee-status-main-grid,
  #employee-status-card .employee-core-grid {
    grid-template-columns: 1fr;
  }

  #employee-status-card .current-pool-spotlight {
    margin: 0 auto;
  }
}

@media (max-width: 700px) {
  #employee-view .employee-ops-panel .section-head {
    grid-template-columns: 1fr;
  }

  #employee-actions .employee-action-btn {
    flex-basis: calc(50% - 6px);
    width: calc(50% - 6px);
  }
}
