:root {
  --bg: #f6f5f2;
  --panel: #ffffff;
  --panel-soft: #faf9f6;
  --ink: #25211d;
  --muted: #766f67;
  --line: #ddd8cf;
  --accent: #267365;
  --accent-strong: #15594e;
  --accent-soft: #e3f1ec;
  --rose: #b45b62;
  --rose-soft: #fae9ea;
  --gold: #a9782b;
  --gold-soft: #f4ead7;
  --shadow: 0 18px 45px rgba(55, 48, 39, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  letter-spacing: 0;
}

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

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px 1fr;
}

.sidebar {
  background: #fffdf9;
  border-right: 1px solid var(--line);
  padding: 22px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  padding: 0 8px 18px;
  border-bottom: 1px solid var(--line);
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 13px;
  margin-top: 5px;
}

.nav-group {
  margin-top: 18px;
}

.nav-title {
  color: var(--muted);
  font-size: 12px;
  padding: 0 8px 8px;
}

.nav-button {
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  margin-bottom: 6px;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.nav-button:hover {
  background: var(--panel-soft);
}

.nav-button.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
}

.nav-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
  flex: 0 0 auto;
}

.nav-button.active .nav-mark {
  background: var(--accent);
  color: white;
}

.main {
  min-width: 0;
}

.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 245, 242, 0.92);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.page-title {
  font-size: 24px;
  font-weight: 800;
}

.page-hint {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.section-title.with-gap {
  margin-top: 22px;
}

.role-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 8px;
  background: #ebe6dc;
}

.role-switch button {
  height: 34px;
  min-width: 74px;
  padding: 0 12px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}

.role-switch button.active {
  background: white;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(60, 50, 37, 0.08);
}

.account-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 4px 5px 4px 13px;
  border-radius: 8px;
  background: #ebe6dc;
  color: var(--ink);
  font-size: 14px;
}

.account-pill button {
  height: 30px;
  padding: 0 11px;
  border-radius: 6px;
  background: white;
  color: var(--muted);
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: var(--bg);
}

.login-panel {
  width: min(920px, 100%);
  padding: 28px;
  display: grid;
  gap: 22px;
}

.login-panel h1 {
  margin: 0 0 8px;
  font-size: 32px;
}

.login-panel p {
  margin: 0;
}

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

.login-card {
  min-height: 132px;
  padding: 15px;
  display: grid;
  align-content: start;
  gap: 8px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--ink);
}

.login-card:hover {
  border-color: #a5c9c0;
  background: var(--accent-soft);
}

.login-card strong {
  font-size: 18px;
}

.login-card span,
.login-card small,
.login-note {
  color: var(--muted);
}

.login-card.boss {
  background: var(--gold-soft);
}

.login-note {
  font-size: 13px;
}

.reset-button {
  width: fit-content;
}

.content {
  padding: 24px 28px 42px;
  max-width: 1280px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.7fr);
}

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

.home-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.card.pad {
  padding: 18px;
}

.entry {
  min-height: 158px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.entry h3,
.card h3,
.section-title {
  margin: 0;
  font-size: 18px;
}

.entry p,
.muted {
  color: var(--muted);
  line-height: 1.65;
}

.entry p {
  margin: 10px 0 0;
  font-size: 14px;
}

.entry button,
.primary,
.ghost,
.danger,
.copy-button {
  height: 38px;
  border-radius: 7px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.entry button,
.primary {
  background: var(--accent);
  color: white;
}

.primary:hover,
.entry button:hover {
  background: var(--accent-strong);
}

.ghost {
  background: var(--panel-soft);
  color: var(--ink);
  border: 1px solid var(--line);
}

.danger {
  background: var(--rose-soft);
  color: #8e3e45;
}

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

.boss-command-card {
  margin: 14px 0 18px;
}

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

.boss-priority-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(31, 122, 105, 0.14);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 253, 251, 0.9)),
    #fff;
  text-align: left;
  cursor: pointer;
}

.boss-priority-card.high {
  border-color: rgba(183, 87, 97, 0.28);
  background:
    radial-gradient(circle at 92% 12%, rgba(183, 87, 97, 0.12), transparent 34%),
    #fff;
}

.boss-priority-card.warn {
  border-color: rgba(210, 170, 98, 0.34);
  background:
    radial-gradient(circle at 92% 12%, rgba(210, 170, 98, 0.14), transparent 34%),
    #fff;
}

.boss-priority-card:hover,
.boss-shortcut:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(31, 122, 105, 0.08);
}

.boss-priority-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.boss-priority-card strong {
  color: var(--ink);
  font-size: 32px;
  line-height: 1;
}

.boss-priority-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.boss-home-grid {
  margin-top: 18px;
}

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

.boss-action-item {
  display: grid;
  gap: 6px;
  min-height: 118px;
  padding: 14px;
  border: 1px solid rgba(31, 122, 105, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.boss-action-item span,
.boss-action-item em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.boss-action-item strong {
  color: var(--accent-strong);
  font-size: 34px;
  line-height: 1;
}

.boss-shortcuts {
  display: grid;
  gap: 10px;
}

.boss-shortcut {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(31, 122, 105, 0.14);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(232, 251, 247, 0.72), rgba(255, 255, 255, 0.86)),
    #fff;
  text-align: left;
  cursor: pointer;
}

.boss-shortcut strong {
  color: var(--ink);
  font-size: 15px;
}

.boss-shortcut span {
  color: var(--muted);
  font-size: 13px;
}

.onboarding-prompt {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-color: rgba(31, 122, 105, 0.22);
  background:
    radial-gradient(circle at 90% 16%, rgba(59, 185, 163, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 250, 247, 0.92));
}

.onboarding-prompt h3,
.onboarding-hero h3 {
  margin: 8px 0 4px;
  font-size: 22px;
}

.onboarding-hero {
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 18px;
  align-items: center;
  border-color: rgba(31, 122, 105, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 250, 247, 0.9)),
    var(--panel);
}

.onboarding-progress {
  min-height: 110px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  background: var(--accent);
  color: white;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.onboarding-progress strong {
  font-size: 34px;
  line-height: 1;
}

.onboarding-progress span {
  font-size: 13px;
  opacity: 0.86;
}

.onboarding-steps {
  display: grid;
  gap: 14px;
}

.onboarding-step {
  display: grid;
  gap: 16px;
}

.onboarding-step-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.onboarding-step-head > span {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: var(--gold);
  font-weight: 900;
}

.onboarding-step-head > span.done {
  background: var(--accent);
  color: white;
}

.onboarding-step-head h3 {
  margin: 0;
}

.onboarding-step-head p {
  margin: 3px 0 0;
}

.onboarding-step-head > strong {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
}

.compact-onboarding-form {
  padding-top: 12px;
  border-top: 1px solid rgba(31, 122, 105, 0.12);
}

.growth-hero {
  padding: 18px;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: 20px;
  align-items: center;
}

.growth-main {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: center;
}

.level-badge {
  width: 92px;
  height: 92px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: white;
  font-size: 28px;
  font-weight: 900;
}

.growth-main h2 {
  margin: 0;
  font-size: 24px;
}

.growth-main p {
  margin: 6px 0 12px;
  color: var(--muted);
}

.progress-track,
.ability-bar {
  height: 8px;
  border-radius: 999px;
  background: #e7e1d7;
  overflow: hidden;
}

.progress-fill,
.ability-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.ability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ability-grid.compact {
  margin: 14px 0;
}

.ability {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
}

.ability-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
}

.ability.low .ability-bar span {
  background: var(--rose);
}

.ability.mid .ability-bar span {
  background: var(--gold);
}

.ability.strong .ability-bar span {
  background: var(--accent);
}

.game-growth-panel {
  margin-top: 18px;
}

.game-growth-panel .record-top {
  align-items: flex-start;
}

.rank-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.rank-tabs button {
  padding: 8px 12px;
  border: 1px solid rgba(31, 122, 105, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.rank-tabs button.active {
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  color: white;
  box-shadow: 0 10px 18px rgba(31, 122, 105, 0.14);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.rank-board {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(31, 122, 105, 0.14);
  border-radius: 14px;
  background:
    radial-gradient(circle at 88% 8%, rgba(59, 185, 163, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.78);
}

.rank-board-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.rank-board-head strong {
  color: var(--ink);
}

.rank-board-head span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid transparent;
}

.rank-row.is-me {
  border-color: rgba(31, 122, 105, 0.28);
  background: rgba(232, 251, 247, 0.72);
}

.rank-no {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.rank-row strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-row em {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.rank-row b {
  color: var(--accent-strong);
  font-size: 15px;
}

.badge-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(31, 122, 105, 0.16);
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.badge-card {
  min-height: 116px;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(31, 122, 105, 0.12);
  background: rgba(255, 255, 255, 0.68);
}

.badge-card.unlocked {
  border-color: rgba(210, 170, 98, 0.42);
  background:
    radial-gradient(circle at 88% 10%, rgba(210, 170, 98, 0.18), transparent 32%),
    #fff;
}

.badge-card.locked {
  opacity: 0.62;
  filter: grayscale(0.2);
}

.badge-card span {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
}

.badge-card.locked span {
  background: #ece7de;
  color: var(--muted);
}

.badge-card strong {
  color: var(--ink);
  font-size: 14px;
}

.badge-card em {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-style: normal;
}

.metric {
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric-label {
  color: var(--muted);
  font-size: 13px;
}

.metric-value {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 800;
}

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

.login-form {
  padding: 14px;
  border: 1px solid rgba(31, 122, 105, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.platform-admin-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
  align-items: start;
}

.employee-account-panel {
  margin-bottom: 18px;
}

.form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
}

.form input,
.form select,
.form textarea,
.outcome-form input,
.outcome-form select {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 7px;
  padding: 10px 11px;
  color: var(--ink);
  outline: none;
}

.form textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.55;
}

.form input:focus,
.form select:focus,
.form textarea:focus,
.outcome-form input:focus,
.outcome-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(38, 115, 101, 0.13);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.button-row.no-margin {
  margin-top: 0;
}

.button-row.small {
  gap: 8px;
  margin-top: 10px;
}

.button-row.small button {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 13px;
}

.small {
  font-size: 12px;
}

.record-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.record-list > .record-card,
.record-card.compact {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.record-card.compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.knowledge-item.is-disabled {
  opacity: 0.62;
  background: #f7f5f1;
}

.tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}

.score-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 8px;
  border: 1px solid #a5c9c0;
  background: var(--accent-soft);
}

.score-main {
  display: grid;
  place-items: center;
  height: 76px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-size: 30px;
  font-weight: 900;
}

.score-main span {
  font-size: 12px;
  font-weight: 700;
}

.award-explain {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.award-explain div {
  display: grid;
  gap: 2px;
}

.award-explain strong {
  color: var(--accent-strong);
  font-size: 13px;
}

.award-explain span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.result-section {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.result-section:last-of-type {
  border-bottom: 0;
}

.result-section p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-weight: 700;
  font-size: 14px;
}

.field small {
  color: var(--muted);
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 7px;
  padding: 10px 11px;
  color: var(--ink);
  outline: none;
}

.textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.55;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(38, 115, 101, 0.13);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  color: var(--muted);
}

.chip.active {
  background: var(--accent-soft);
  border-color: #a5c9c0;
  color: var(--accent-strong);
  font-weight: 700;
}

.chip.role-mismatch {
  background: #f5f2ed;
  border-color: #e7ded2;
  color: #9b8f82;
}

.chip.role-mismatch.active {
  background: #fff1e5;
  border-color: #e7b980;
  color: #8d5b20;
}

.field-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.parse-status {
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.parse-status.success {
  color: var(--accent-strong);
}

.parse-status.danger {
  color: #a34a3a;
}

.task-draft-notice {
  margin-bottom: 14px;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid #a5c9c0;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
}

.task-template-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.config-head {
  justify-content: space-between;
  margin-bottom: 12px;
}

.compact-form-grid {
  gap: 10px;
}

.textarea.small {
  min-height: 74px;
}

.config-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.config-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
}

.config-item.stacked {
  align-items: start;
}

.config-item > div {
  display: grid;
  gap: 4px;
}

.config-item span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.template-button {
  width: 100%;
  padding: 13px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  text-align: left;
  display: grid;
  gap: 5px;
}

.template-button:hover {
  border-color: #a5c9c0;
  background: var(--accent-soft);
}

.template-button span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.training-goal,
.mini-profile {
  margin: 12px 0 14px;
  padding: 12px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: grid;
  gap: 4px;
}

.mini-profile {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  color: var(--muted);
  background: var(--panel-soft);
}

.customer-line {
  margin-top: 10px;
  padding: 12px;
  border-left: 4px solid var(--accent);
  background: var(--panel-soft);
  border-radius: 6px;
  font-weight: 700;
}

.training-result {
  display: grid;
  gap: 12px;
}

.score-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: 8px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.score-label {
  color: var(--muted);
  font-size: 13px;
}

.score-value {
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
}

.score-value span {
  font-size: 16px;
  margin-left: 4px;
  color: var(--muted);
}

.xp-card {
  min-width: 130px;
  padding: 12px;
  border-radius: 8px;
  background: var(--gold-soft);
  color: var(--gold);
  display: grid;
  align-content: center;
  gap: 3px;
  text-align: center;
}

.xp-card.upgraded {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.score-mini,
.risk-notice {
  padding: 12px;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
}

.score-mini {
  background: var(--panel-soft);
}

.risk-notice {
  background: #fff1f0;
  border-color: #f0b8b1;
  color: #8f2c22;
}

.risk-notice span,
.score-mini span {
  color: inherit;
  font-size: 13px;
  line-height: 1.5;
}

.prefill-notice {
  margin: 10px 0 14px;
  padding: 12px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: grid;
  gap: 4px;
}

.prefill-notice span {
  font-size: 13px;
  line-height: 1.5;
}

.rank-list {
  display: grid;
  gap: 10px;
}

.task-panel {
  margin-bottom: 18px;
}

.task-list {
  display: grid;
  gap: 10px;
}

.task-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  display: grid;
  gap: 10px;
}

.task-item.done {
  background: var(--accent-soft);
  border-color: #a5c9c0;
}

.task-main {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.task-main > div {
  display: grid;
  gap: 4px;
}

.task-main span,
.task-assignees {
  color: var(--muted);
  font-size: 13px;
}

.task-rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 2px;
}

.task-rule span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.task-proof {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border-radius: 8px;
  border: 1px dashed #d8cfc4;
  background: white;
}

.compact-field {
  gap: 5px;
}

.compact-field label {
  font-size: 12px;
}

.task-review-queue {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e7c985;
  background: #fffaf0;
}

.task-command {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.task-command-metric {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(31, 122, 105, 0.16);
  border-radius: 14px;
  background:
    radial-gradient(circle at 86% 18%, rgba(59, 185, 163, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 253, 251, 0.92));
  box-shadow: 0 12px 24px rgba(31, 37, 33, 0.055);
}

.task-command-metric span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.task-command-metric strong {
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.task-command-metric em {
  color: var(--accent-strong);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.task-template-panel {
  margin-bottom: 18px;
}

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

.task-template-button {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(31, 122, 105, 0.15);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(232, 251, 247, 0.72), rgba(255, 255, 255, 0.86)),
    #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.task-template-button:hover {
  border-color: rgba(31, 122, 105, 0.38);
  box-shadow: 0 10px 20px rgba(31, 122, 105, 0.09);
  transform: translateY(-1px);
}

.task-template-button strong {
  font-size: 15px;
}

.task-template-button span {
  color: var(--muted);
  font-size: 12px;
}

.task-factory-layout {
  align-items: start;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
  gap: 12px;
}

.employee-picker {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.employee-picker legend {
  padding: 0;
  color: var(--ink);
  font-weight: 900;
}

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

.employee-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(31, 122, 105, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.employee-pick input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.employee-pick span {
  display: grid;
  gap: 3px;
}

.employee-pick strong {
  color: var(--ink);
  font-size: 14px;
}

.employee-pick em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.task-rule-engine {
  align-self: stretch;
}

.task-rule-grid {
  display: grid;
  gap: 12px;
}

.task-rule-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(31, 122, 105, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
}

.task-rule-card > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  color: white;
  font-weight: 900;
}

.task-rule-card strong {
  color: var(--ink);
}

.task-rule-card p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.task-board {
  margin-top: 18px;
}

.task-board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.task-board-column {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(31, 122, 105, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.56);
}

.task-column-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.task-column-head strong {
  color: var(--ink);
  font-size: 16px;
}

.task-column-head span {
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 900;
}

.task-column-list {
  display: grid;
  gap: 12px;
}

.task-board-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(31, 122, 105, 0.14);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 253, 251, 0.94)),
    #fff;
  box-shadow: 0 10px 18px rgba(31, 37, 33, 0.045);
}

.task-board-card.has-pending {
  border-color: rgba(210, 170, 98, 0.38);
  background:
    radial-gradient(circle at 88% 8%, rgba(210, 170, 98, 0.16), transparent 30%),
    #fff;
}

.task-board-card.is-done {
  border-color: rgba(31, 122, 105, 0.28);
}

.task-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.task-card-head h3 {
  margin: 0;
  font-size: 16px;
}

.task-card-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.task-card-head > span {
  height: fit-content;
  white-space: nowrap;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.task-progress-line {
  display: grid;
  gap: 7px;
}

.task-member-list {
  display: grid;
  gap: 10px;
}

.task-member {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.task-member p {
  margin: 0;
  line-height: 1.45;
}

.review-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.review-row span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.handoff-panel {
  margin-top: 18px;
}

.handoff-list {
  display: grid;
  gap: 10px;
}

.handoff-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  display: grid;
  gap: 10px;
}

.handoff-card.pending {
  border-color: #e7c985;
  background: #fffaf0;
}

.handoff-card.summary {
  gap: 6px;
}

.handoff-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.handoff-top > div {
  display: grid;
  gap: 4px;
}

.handoff-top span,
.handoff-meta,
.handoff-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.handoff-meta {
  display: grid;
  gap: 3px;
}

.compact-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rank-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) minmax(240px, 0.8fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.rank-no,
.level-mini {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--accent);
  color: white;
  font-weight: 800;
}

.rank-info {
  display: grid;
  gap: 3px;
}

.rank-info span,
.rank-advice {
  color: var(--muted);
  font-size: 13px;
}

.mini-rank-list,
.insight-list {
  display: grid;
  gap: 10px;
}

.mini-rank-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.mini-rank-item > div:nth-child(2) {
  display: grid;
  gap: 3px;
}

.mini-rank-item span,
.insight-item span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.mini-rank-item b {
  color: var(--accent-strong);
}

.insight-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.insight-item.warn {
  background: #fffaf0;
  border-color: #e7c985;
}

.mini-action {
  height: 30px;
  width: fit-content;
  padding: 0 10px;
  font-size: 13px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.profile-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel-soft);
  display: grid;
  gap: 11px;
}

.profile-head,
.profile-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.profile-head span,
.profile-row span,
.profile-card p {
  color: var(--muted);
}

.profile-head > div:first-child {
  display: grid;
  gap: 3px;
}

.profile-card p {
  margin: 0;
  line-height: 1.55;
  font-size: 13px;
}

.result-list {
  display: grid;
  gap: 10px;
}

.award-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--muted);
  line-height: 1.45;
}

.award-notice.gain {
  background: var(--accent-soft);
  border-color: #a5c9c0;
  color: var(--accent-strong);
}

.award-notice strong {
  white-space: nowrap;
}

.result-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: var(--panel-soft);
}

.result-item h4 {
  margin: 0 0 7px;
  font-size: 14px;
}

.result-item p {
  margin: 0;
  color: #3d3832;
  line-height: 1.65;
}

.result-placeholder {
  min-height: 420px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  padding: 28px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.table th {
  color: var(--muted);
  font-weight: 700;
  background: var(--panel-soft);
}

.status {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
}

.status.warn {
  background: var(--gold-soft);
  color: var(--gold);
}

.status.bad {
  background: var(--rose-soft);
  color: #8e3e45;
}

.outcome-form {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #a5c9c0;
  border-radius: 8px;
  background: var(--accent-soft);
}

.task-link-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  margin: 12px 0;
  border: 1px solid #d9c9b6;
  border-radius: 8px;
  background: #fff8ef;
}

.task-link-panel > div:first-child {
  display: grid;
  gap: 3px;
}

.task-link-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.outcome-form > div:first-child {
  display: grid;
  gap: 3px;
  color: var(--accent-strong);
}

.outcome-form span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.outcome-fields {
  display: grid;
  grid-template-columns: minmax(130px, 180px) minmax(120px, 150px) minmax(200px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.record-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.record-clickable {
  width: 100%;
  color: inherit;
  text-align: left;
}

.record-clickable:hover {
  border-color: #a5c9c0;
  background: var(--accent-soft);
}

.record-card:last-child {
  border-bottom: 0;
}

.record-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.record-side {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 6px;
}

.record-title {
  font-weight: 800;
}

.record-note {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.record-time {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(37, 33, 29, 0.35);
}

.modal-card {
  width: min(860px, 100%);
  max-height: min(86vh, 820px);
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.modal-head h3 {
  margin: 0;
  font-size: 20px;
}

.modal-body {
  display: grid;
  gap: 14px;
}

.detail-section {
  display: grid;
  gap: 10px;
}

.detail-section h4 {
  margin: 0;
  font-size: 16px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-grid > div {
  display: grid;
  gap: 5px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.detail-grid span {
  color: var(--muted);
  font-size: 12px;
}

.detail-grid strong {
  line-height: 1.55;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #25211d;
  color: white;
  padding: 12px 14px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  z-index: 20;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .nav-title {
    width: 100%;
  }

  .nav-button {
    width: auto;
  }

  .grid.two,
  .grid.three,
  .home-actions,
  .metrics,
  .login-grid,
  .growth-hero,
  .profile-grid {
    grid-template-columns: 1fr 1fr;
  }

  .growth-hero {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .rank-advice {
    grid-column: 2;
  }
}

@media (max-width: 680px) {
  .topbar {
    height: auto;
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
    padding: 16px;
  }

  .content {
    padding: 16px;
  }

  .grid.two,
  .grid.three,
  .home-actions,
  .metrics,
  .login-grid,
  .ability-grid,
  .profile-grid,
  .mini-profile,
  .config-grid {
    grid-template-columns: 1fr;
  }

  .growth-main {
    grid-template-columns: 1fr;
  }

  .score-head {
    flex-direction: column;
  }

  .task-proof,
  .review-row,
  .outcome-fields {
    grid-template-columns: 1fr;
  }

  .record-top {
    flex-direction: column;
  }

  .record-side {
    justify-items: start;
  }

  .modal-backdrop {
    padding: 12px;
    align-items: end;
  }

  .modal-card {
    max-height: 90vh;
  }

  .modal-head {
    flex-direction: column;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .table {
    min-width: 680px;
  }

  .table-wrap {
    overflow-x: auto;
  }
}

/* V1.3 visual polish: productized SaaS workspace skin */
:root {
  --bg: #f4f6f4;
  --panel: #ffffff;
  --panel-soft: #fbfaf7;
  --ink: #1f2521;
  --muted: #6f766f;
  --line: #e5e0d7;
  --accent: #1f7a69;
  --accent-strong: #0e5c50;
  --accent-soft: #e8f4ef;
  --rose: #b75761;
  --rose-soft: #faecee;
  --gold: #9f7025;
  --gold-soft: #f6ecd8;
  --shadow: 0 14px 34px rgba(31, 37, 33, 0.07);
  --shadow-soft: 0 8px 22px rgba(31, 37, 33, 0.05);
}

body {
  background:
    radial-gradient(circle at 18% 0%, rgba(31, 122, 105, 0.08), transparent 32%),
    linear-gradient(180deg, #fbfaf7 0%, var(--bg) 300px);
}

.app-shell {
  grid-template-columns: 232px minmax(0, 1fr);
}

.sidebar {
  padding: 20px 14px;
  background: rgba(255, 253, 249, 0.94);
  border-right-color: rgba(229, 224, 215, 0.9);
  box-shadow: 8px 0 24px rgba(31, 37, 33, 0.03);
  backdrop-filter: blur(14px);
}

.brand {
  padding: 2px 10px 18px;
}

.brand-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 23px;
  letter-spacing: 0;
}

.brand-name::before {
  content: "";
  width: 11px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), #d1aa62);
}

.brand-subtitle {
  padding-left: 19px;
}

.nav-title {
  margin-top: 2px;
  color: #8a8278;
  font-weight: 700;
}

.nav-button {
  height: 44px;
  padding: 0 11px;
  border-radius: 10px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-button:hover {
  background: #f4f1eb;
  transform: translateX(2px);
}

.nav-button.active {
  background: linear-gradient(90deg, var(--accent-soft), #f6f0df);
  box-shadow: inset 3px 0 0 var(--accent);
}

.nav-mark {
  border-radius: 8px;
  background: #f4f1eb;
  font-weight: 800;
}

.topbar {
  height: 78px;
  padding: 0 32px;
  border-bottom-color: rgba(229, 224, 215, 0.88);
  background: rgba(250, 249, 245, 0.82);
}

.page-title {
  font-size: 25px;
  line-height: 1.2;
}

.page-hint {
  max-width: 760px;
  color: #747b74;
}

.account-pill,
.role-switch {
  border: 1px solid rgba(229, 224, 215, 0.8);
  background: #f3eee5;
}

.account-pill button,
.role-switch button.active {
  box-shadow: var(--shadow-soft);
}

.content {
  width: min(100%, 1380px);
  max-width: none;
  margin: 0 auto;
  padding: 28px 32px 52px;
}

.grid {
  gap: 18px;
}

.grid.two {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
}

.card {
  border-color: rgba(229, 224, 215, 0.92);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.card.pad {
  padding: 20px;
}

.card h3,
.entry h3,
.section-title {
  color: #161b18;
  font-size: 19px;
  line-height: 1.35;
}

.entry {
  min-height: 164px;
  border-color: rgba(229, 224, 215, 0.95);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.entry:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 122, 105, 0.28);
  box-shadow: var(--shadow);
}

.entry button,
.primary,
.ghost,
.danger,
.copy-button {
  min-height: 40px;
  border-radius: 9px;
  font-weight: 700;
}

.entry button,
.primary,
.copy-button {
  background: linear-gradient(180deg, #268875, var(--accent-strong));
  box-shadow: 0 8px 18px rgba(31, 122, 105, 0.18);
}

.ghost {
  background: #fffdf9;
}

.ghost:hover {
  border-color: rgba(31, 122, 105, 0.35);
  color: var(--accent-strong);
}

.danger {
  border: 1px solid #efcfd3;
}

.metric {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #fffdf9);
  box-shadow: var(--shadow-soft);
}

.metric::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), #d1aa62);
}

.metric-label {
  font-weight: 700;
}

.metric-value {
  font-size: 25px;
}

.growth-hero {
  border: 0;
  background:
    linear-gradient(135deg, rgba(31, 122, 105, 0.96), rgba(19, 83, 73, 0.96)),
    var(--accent);
  color: white;
  box-shadow: 0 22px 54px rgba(31, 122, 105, 0.2);
}

.growth-main p,
.growth-hero .progress-meta {
  color: rgba(255, 255, 255, 0.78);
}

.level-badge {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.growth-hero .progress-track,
.growth-hero .ability-bar {
  background: rgba(255, 255, 255, 0.22);
}

.growth-hero .progress-fill,
.growth-hero .ability-bar span {
  background: #f2d18d;
}

.growth-hero .ability {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
}

.form {
  gap: 16px;
}

.form label {
  color: #242a25;
}

.form input,
.form select,
.form textarea,
.outcome-form input,
.outcome-form select {
  min-height: 42px;
  border-color: #ded8cd;
  border-radius: 9px;
  background: #fffefd;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.form textarea {
  min-height: 112px;
}

.form input:focus,
.form select:focus,
.form textarea:focus,
.outcome-form input:focus,
.outcome-form select:focus {
  background: white;
  box-shadow: 0 0 0 4px rgba(31, 122, 105, 0.12);
}

.record-list {
  gap: 12px;
}

.record-list > .record-card,
.record-card.compact {
  border-color: rgba(229, 224, 215, 0.92);
  border-radius: 11px;
  background: #fffdf9;
}

.record-card {
  border-bottom-color: rgba(229, 224, 215, 0.85);
}

.tag,
.status {
  border-radius: 999px;
  font-weight: 800;
}

.score-card {
  grid-template-columns: 104px minmax(0, 1fr);
  padding: 16px;
  border-radius: 12px;
  border-color: rgba(31, 122, 105, 0.22);
  background: linear-gradient(135deg, var(--accent-soft), #fff8ea);
}

.score-main {
  height: 84px;
  border-radius: 12px;
  background: linear-gradient(180deg, #268875, var(--accent-strong));
}

.result-section {
  padding: 15px 0;
}

.result-section strong {
  color: #111714;
}

.result-section p {
  color: #535a53;
}

.task-link-panel,
.outcome-form {
  border-radius: 12px;
}

.modal-card {
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(31, 37, 33, 0.22);
}

.login-page {
  background:
    radial-gradient(circle at 18% 12%, rgba(31, 122, 105, 0.12), transparent 36%),
    linear-gradient(135deg, #fbfaf7, #eef4ef);
}

.login-panel {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(31, 37, 33, 0.12);
}

.login-card {
  border-radius: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.login-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.employee-card {
  display: grid;
  gap: 16px;
}

.employee-grid {
  grid-template-columns: repeat(2, minmax(360px, 1fr));
}

.employee-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.employee-head h3,
.employee-head p {
  margin: 0;
}

.employee-head p {
  margin-top: 8px;
}

.level-chip {
  min-width: 58px;
  height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 17px;
  font-weight: 900;
  white-space: nowrap;
}

.employee-kicker {
  width: fit-content;
  margin-bottom: 8px;
  padding: 4px 8px;
  border: 1px solid rgba(59, 185, 163, 0.18);
  border-radius: 999px;
  background: rgba(232, 244, 239, 0.72);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
}

.level-orbit {
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #ffffff 0 52%, transparent 53%),
    conic-gradient(var(--tech-cyan) var(--level), rgba(31, 122, 105, 0.1) 0);
  box-shadow: 0 14px 30px rgba(31, 122, 105, 0.12), inset 0 0 0 1px rgba(31, 122, 105, 0.1);
}

.level-orbit span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  color: white;
  font-size: 17px;
  font-weight: 900;
}

.employee-signal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.employee-signal span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(31, 122, 105, 0.14);
  background: rgba(255, 255, 255, 0.66);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.employee-signal span:nth-child(2) {
  border-color: rgba(183, 87, 97, 0.18);
  background: rgba(250, 236, 238, 0.58);
  color: #8e3e45;
}

.employee-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.employee-stats div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 10px;
  background: #fbfaf7;
  border: 1px solid var(--line);
}

.employee-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.employee-stats strong {
  font-size: 20px;
}

.mini-progress {
  display: grid;
  gap: 8px;
}

.employee-dashboard {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.power-gauge {
  min-height: 188px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.94) 0 48%, transparent 49%),
    conic-gradient(var(--tech-cyan) var(--score), rgba(31, 122, 105, 0.11) 0);
  box-shadow: inset 0 0 0 1px rgba(31, 122, 105, 0.13), 0 18px 36px rgba(31, 122, 105, 0.09);
}

.power-gauge > div {
  width: 122px;
  height: 122px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.24), transparent 34%),
    linear-gradient(180deg, var(--accent), var(--accent-strong));
  color: white;
  box-shadow: 0 14px 28px rgba(31, 122, 105, 0.2);
}

.power-gauge strong {
  font-size: 38px;
  line-height: 1;
}

.power-gauge span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 800;
}

.employee-level-strip {
  display: grid;
  gap: 8px;
}

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

.ability-gauge {
  display: grid;
  gap: 9px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(31, 122, 105, 0.14);
  background: rgba(255, 255, 255, 0.72);
}

.ability-gauge-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.ability-gauge-head span {
  color: var(--ink);
}

.ability-gauge-head strong {
  font-size: 16px;
}

.ability-gauge-track {
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(31, 122, 105, 0.12);
}

.ability-gauge-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--tech-cyan));
  box-shadow: 0 0 16px rgba(59, 185, 163, 0.25);
}

.ability-gauge.mid .ability-gauge-track span {
  background: linear-gradient(90deg, #a9782b, #d2aa62);
}

.ability-gauge.low .ability-gauge-track span {
  background: linear-gradient(90deg, #b75761, #d9858c);
}

.role-model-card {
  display: grid;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(59, 185, 163, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(232, 251, 247, 0.82), rgba(255, 255, 255, 0.82)),
    #fff;
}

.role-model-card > div:first-child {
  display: grid;
  gap: 5px;
}

.role-model-card strong {
  color: var(--ink);
  font-size: 14px;
}

.role-model-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.role-weight-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.role-weight-list span {
  padding: 6px 9px;
  border: 1px solid rgba(31, 122, 105, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-strong);
  font-weight: 800;
}

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

.employee-chart-panel > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(31, 122, 105, 0.14);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 253, 251, 0.78)),
    radial-gradient(circle at 18% 12%, rgba(59, 185, 163, 0.12), transparent 34%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.chart-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.chart-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--tech-cyan);
  box-shadow: 0 0 0 5px rgba(59, 185, 163, 0.12);
}

.employee-radar-chart,
.employee-line-chart {
  width: 100%;
  height: 214px;
  min-width: 0;
}

.employee-coach-tip {
  padding: 13px;
  border: 1px solid rgba(210, 170, 98, 0.26);
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(255, 248, 234, 0.92), rgba(255, 255, 255, 0.8)),
    #fff;
}

.employee-coach-tip strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1d211e;
}

.employee-coach-tip strong::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #d2aa62;
  box-shadow: 0 0 0 5px rgba(210, 170, 98, 0.15);
}

.employee-coach-tip p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}

.employee-trend {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(31, 122, 105, 0.14);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.7);
}

.trend-chart {
  display: grid;
  gap: 4px;
  padding-top: 4px;
  border-top: 1px dashed rgba(31, 122, 105, 0.14);
}

.trend-chart svg {
  width: 100%;
  height: 94px;
  overflow: visible;
}

.trend-axis {
  stroke: rgba(31, 122, 105, 0.16);
  stroke-width: 2;
  stroke-dasharray: 5 6;
}

.trend-line {
  fill: none;
  stroke: var(--tech-cyan);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 5px 8px rgba(59, 185, 163, 0.18));
}

.trend-dot {
  fill: #ffffff;
  stroke: var(--accent-strong);
  stroke-width: 4;
}

.trend-chart text {
  fill: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.trend-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.trend-chart.is-empty line,
.trend-chart.is-empty circle {
  stroke: rgba(31, 122, 105, 0.18);
  fill: rgba(31, 122, 105, 0.08);
  stroke-width: 2;
  stroke-dasharray: 5 6;
}

.trend-chart.is-empty .trend-labels {
  justify-content: center;
}

.employee-ledger {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.employee-ledger > strong {
  font-size: 14px;
}

.employee-ledger p {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.employee-ledger span {
  color: var(--accent-strong);
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 1080px) {
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 12;
    padding: 14px 16px;
  }

  .brand {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 0 2px 12px;
  }

  .brand-subtitle {
    padding-left: 0;
  }

  .nav-group {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-button {
    flex: 0 0 auto;
  }

  .content {
    padding: 22px;
  }
}

@media (max-width: 680px) {
  .sidebar {
    padding: 12px;
  }

  .brand {
    display: grid;
    gap: 4px;
  }

  .nav-group {
    flex-wrap: nowrap;
    margin-top: 10px;
  }

  .nav-button {
    height: 40px;
    padding: 0 9px;
  }

  .nav-mark {
    display: none;
  }

  .topbar {
    padding: 14px 16px;
  }

  .page-title {
    font-size: 22px;
  }

  .account-pill {
    width: 100%;
    justify-content: space-between;
  }

  .content {
    padding: 16px 14px 28px;
  }

  .card.pad,
  .entry,
  .growth-hero {
    padding: 16px;
  }

  .score-card {
    grid-template-columns: 1fr;
  }

  .score-main {
    width: 100%;
  }
}

/* V1.3.1 light AI-tech layer: subtle, readable, not neon */
:root {
  --tech-cyan: #3bb9a3;
  --tech-cyan-soft: rgba(59, 185, 163, 0.13);
  --tech-gold-soft: rgba(210, 170, 98, 0.16);
  --tech-line: rgba(31, 122, 105, 0.16);
}

body {
  background:
    linear-gradient(rgba(31, 122, 105, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 122, 105, 0.028) 1px, transparent 1px),
    radial-gradient(circle at 16% 4%, rgba(59, 185, 163, 0.12), transparent 30%),
    radial-gradient(circle at 88% 10%, rgba(210, 170, 98, 0.1), transparent 28%),
    linear-gradient(180deg, #fbfaf7 0%, #f3f6f4 360px, #f4f6f4 100%);
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
}

.topbar {
  background:
    linear-gradient(90deg, rgba(255, 253, 249, 0.9), rgba(244, 250, 247, 0.82)),
    rgba(250, 249, 245, 0.82);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(31, 122, 105, 0.32), transparent);
}

.card {
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.42), transparent 34%);
}

.card > * {
  position: relative;
  z-index: 1;
}

.metric {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 250, 0.96)),
    #fff;
}

.metric-value {
  color: #111714;
}

.metric .status,
.record-card .status {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.ai-input-card,
.ai-output-card {
  border-color: rgba(31, 122, 105, 0.16);
}

.ai-input-card h3,
.ai-output-card h3 {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ai-input-card h3::before,
.ai-output-card h3::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--tech-cyan);
  box-shadow: 0 0 0 5px var(--tech-cyan-soft), 0 0 18px rgba(59, 185, 163, 0.42);
}

.ai-output-card {
  background:
    linear-gradient(180deg, rgba(250, 255, 252, 0.98), rgba(255, 253, 249, 0.98)),
    var(--panel);
}

.ai-output-card::after {
  content: "AI COACH";
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1;
  padding: 4px 8px;
  border: 1px solid rgba(31, 122, 105, 0.16);
  border-radius: 999px;
  color: rgba(31, 122, 105, 0.72);
  background: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.score-card {
  border-color: rgba(59, 185, 163, 0.26);
  background:
    linear-gradient(135deg, rgba(232, 244, 239, 0.96), rgba(255, 248, 234, 0.96)),
    linear-gradient(90deg, rgba(59, 185, 163, 0.12), transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68), 0 12px 26px rgba(31, 122, 105, 0.08);
}

.score-main {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.26), transparent 34%),
    linear-gradient(180deg, #2b9b86, var(--accent-strong));
}

.score-main::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
}

.result-section {
  border-bottom-color: rgba(31, 122, 105, 0.12);
}

.result-section strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.result-section strong::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--tech-cyan), #d2aa62);
}

.growth-hero {
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.13), transparent 28%),
    linear-gradient(135deg, rgba(31, 122, 105, 0.98), rgba(10, 78, 69, 0.98));
  background-size: 26px 26px, 26px 26px, auto, auto;
}

.level-badge,
.level-chip {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 12px 24px rgba(31, 122, 105, 0.18);
}

.progress-fill,
.ability-bar span {
  background: linear-gradient(90deg, var(--accent), var(--tech-cyan));
}

.growth-hero .progress-fill,
.growth-hero .ability-bar span {
  background: linear-gradient(90deg, #f2d18d, #75dec8);
}

.employee-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 250, 247, 0.98)),
    var(--panel);
}

.employee-stats div,
.ability,
.detail-grid > div {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.tag {
  background: linear-gradient(180deg, var(--gold-soft), #fff7e8);
}

.nav-button.active .nav-mark {
  box-shadow: 0 0 0 4px rgba(31, 122, 105, 0.12);
}

@media (max-width: 680px) {
  body {
    background-size: 40px 40px, 40px 40px, auto, auto, auto;
  }

  .ai-output-card::after {
    position: static;
    display: inline-flex;
    width: fit-content;
    margin: -4px 0 10px;
  }
}

/* V1.3.2 targeted AI feel: stronger on AI/growth/dashboard, calmer on admin pages */
.view-boss-home .metrics,
.view-employee-home .growth-hero,
.view-invite .ai-output-card,
.view-live-deal .ai-output-card,
.view-review .ai-output-card,
.view-training .ai-output-card,
.view-service-practice .ai-output-card,
.view-knowledge-qa .ai-output-card {
  isolation: isolate;
}

.view-boss-home .metric {
  min-height: 116px;
  display: grid;
  align-content: space-between;
  border-color: rgba(31, 122, 105, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 252, 248, 0.96)),
    radial-gradient(circle at 92% 12%, rgba(59, 185, 163, 0.12), transparent 34%);
}

.view-boss-home .metric-value {
  font-size: 28px;
}

.view-boss-home .card.pad:first-child h3,
.view-boss-home .card.pad:nth-child(2) h3 {
  display: flex;
  align-items: center;
  gap: 9px;
}

.view-boss-home .card.pad:first-child h3::before,
.view-boss-home .card.pad:nth-child(2) h3::before {
  content: "";
  width: 8px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--tech-cyan), #d2aa62);
  box-shadow: 0 0 18px rgba(59, 185, 163, 0.28);
}

.view-employee-home .growth-hero::after {
  content: "GROWTH ENGINE";
  position: absolute;
  right: 18px;
  top: 16px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 900;
}

.ai-output-card .record-note {
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid rgba(31, 122, 105, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-strong);
}

.ai-output-card .task-link-panel,
.ai-output-card .outcome-form {
  border-color: rgba(31, 122, 105, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(248, 252, 250, 0.88)),
    #fff;
}

.view-store-config .card,
.view-tasks .card,
.view-employees .card,
.view-records .card,
.view-handoffs .card,
.view-admin .card {
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(31, 37, 33, 0.045);
}

.view-store-config .card::before,
.view-tasks .card::before,
.view-employees .card::before,
.view-records .card::before,
.view-handoffs .card::before,
.view-admin .card::before {
  opacity: 0.38;
}

.view-store-config .form input,
.view-store-config .form select,
.view-store-config .form textarea,
.view-tasks .form input,
.view-tasks .form select,
.view-tasks .form textarea {
  background: #fff;
}

.view-employees .employee-card {
  overflow: visible;
  border-color: rgba(31, 122, 105, 0.18);
  background:
    linear-gradient(rgba(31, 122, 105, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 122, 105, 0.022) 1px, transparent 1px),
    radial-gradient(circle at 88% 10%, rgba(59, 185, 163, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 253, 251, 0.98));
  background-size: 24px 24px, 24px 24px, auto, auto;
  box-shadow: 0 16px 38px rgba(31, 37, 33, 0.07);
}

.view-employees .employee-card::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent 28%),
    linear-gradient(90deg, rgba(31, 122, 105, 0.12), transparent 42%);
}

.view-employees .employee-abilities .ability {
  border-color: rgba(31, 122, 105, 0.14);
  background: rgba(255, 255, 255, 0.72);
}

.view-employees .employee-abilities .ability-gauge {
  border-color: rgba(31, 122, 105, 0.14);
  background: rgba(255, 255, 255, 0.76);
}

.view-employees .employee-stats div {
  border-color: rgba(31, 122, 105, 0.13);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(251, 250, 247, 0.82)),
    rgba(255, 255, 255, 0.72);
  min-height: 54px;
  align-content: center;
}

.view-employees .employee-stats strong {
  color: #121915;
}

.view-employees .employee-level-strip .progress-track {
  height: 10px;
  background: rgba(31, 122, 105, 0.12);
}

.view-employees .employee-level-strip .progress-fill {
  background: linear-gradient(90deg, var(--accent), var(--tech-cyan), #d2aa62);
  box-shadow: 0 0 18px rgba(59, 185, 163, 0.28);
}

.view-employees .employee-ledger {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.view-employees .employee-ledger p {
  padding: 7px 0;
  border-bottom: 1px dashed rgba(31, 122, 105, 0.13);
}

.view-employees .employee-ledger p:last-child {
  border-bottom: 0;
}

.view-store-config .record-card.compact,
.view-tasks .record-card,
.view-records .record-card,
.view-handoffs .record-card {
  background: #fffdf9;
}

@media (max-width: 680px) {
  .view-employee-home .growth-hero::after {
    position: static;
    width: fit-content;
    margin-top: 8px;
  }

  .view-boss-home .metric {
    min-height: 96px;
  }

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

  .employee-head {
    align-items: center;
  }

  .level-orbit {
    width: 64px;
    height: 64px;
  }

  .level-orbit span {
    width: 46px;
    height: 46px;
    font-size: 15px;
  }

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

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

  .power-gauge {
    min-height: 172px;
  }

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

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

  .employee-radar-chart,
  .employee-line-chart {
    height: 200px;
  }

  .task-command,
  .task-template-grid,
  .task-board-grid,
  .boss-priority-grid,
  .boss-action-grid,
  .onboarding-hero,
  .onboarding-step-head,
  .game-grid,
  .platform-admin-grid {
    grid-template-columns: 1fr;
  }

  .form-row,
  .employee-pick-grid,
  .badge-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) and (min-width: 681px) {
  .game-grid {
    grid-template-columns: 1fr;
  }

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

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

.mobile-bottom-nav {
  display: none;
}

.mobile-action-list {
  display: grid;
  gap: 12px;
}

.mobile-action-card {
  width: 100%;
  min-height: 106px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  text-align: left;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 250, 247, 0.86)),
    var(--panel);
}

.mobile-action-card strong {
  font-size: 17px;
}

.mobile-action-card p {
  margin: 8px 0 0;
}

.mobile-action-arrow {
  min-width: 54px;
  height: 34px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.mobile-hero-card {
  margin-bottom: 14px;
  background:
    radial-gradient(circle at 88% 10%, rgba(59, 185, 163, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 250, 247, 0.92));
}

.mobile-hero-card h3 {
  margin: 10px 0 4px;
  font-size: 22px;
}

@media (max-width: 680px) {
  .app-shell.role-beautician,
  .app-shell.role-consultant,
  .app-shell.role-manager {
    display: block;
    min-height: 100vh;
    padding-bottom: 76px;
  }

  .app-shell.role-beautician .sidebar,
  .app-shell.role-consultant .sidebar,
  .app-shell.role-manager .sidebar {
    display: none;
  }

  .app-shell.role-beautician .main,
  .app-shell.role-consultant .main,
  .app-shell.role-manager .main {
    min-height: 100vh;
  }

  .app-shell.role-beautician .topbar,
  .app-shell.role-consultant .topbar,
  .app-shell.role-manager .topbar {
    height: auto;
    min-height: 64px;
    padding: 12px 14px;
    align-items: flex-start;
    gap: 10px;
  }

  .app-shell.role-beautician .page-title,
  .app-shell.role-consultant .page-title,
  .app-shell.role-manager .page-title {
    font-size: 20px;
    line-height: 1.18;
  }

  .app-shell.role-beautician .page-hint,
  .app-shell.role-consultant .page-hint,
  .app-shell.role-manager .page-hint {
    max-width: 210px;
    font-size: 12px;
    line-height: 1.35;
  }

  .app-shell.role-beautician .account-pill,
  .app-shell.role-consultant .account-pill,
  .app-shell.role-manager .account-pill {
    height: 34px;
    padding: 3px;
    flex: 0 0 auto;
  }

  .app-shell.role-beautician .account-pill span,
  .app-shell.role-consultant .account-pill span,
  .app-shell.role-manager .account-pill span {
    display: none;
  }

  .app-shell.role-beautician .account-pill button,
  .app-shell.role-consultant .account-pill button,
  .app-shell.role-manager .account-pill button {
    height: 28px;
  }

  .app-shell.role-beautician .content,
  .app-shell.role-consultant .content,
  .app-shell.role-manager .content {
    padding: 14px 12px 22px;
    max-width: none;
  }

  .app-shell.role-beautician .grid.two,
  .app-shell.role-consultant .grid.two,
  .app-shell.role-manager .grid.two,
  .app-shell.role-beautician .grid.three,
  .app-shell.role-consultant .grid.three,
  .app-shell.role-manager .grid.three,
  .app-shell.role-beautician .home-actions,
  .app-shell.role-consultant .home-actions,
  .app-shell.role-manager .home-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-shell.role-beautician .ai-input-card,
  .app-shell.role-consultant .ai-input-card,
  .app-shell.role-manager .ai-input-card,
  .app-shell.role-beautician .ai-output-card,
  .app-shell.role-consultant .ai-output-card,
  .app-shell.role-manager .ai-output-card {
    width: 100%;
    min-width: 0;
    overflow: visible;
  }

  .app-shell.role-beautician .ai-output-card,
  .app-shell.role-consultant .ai-output-card,
  .app-shell.role-manager .ai-output-card {
    margin-top: 0;
  }

  .app-shell.role-beautician .ai-output-card::after,
  .app-shell.role-consultant .ai-output-card::after,
  .app-shell.role-manager .ai-output-card::after {
    position: static;
    width: fit-content;
    display: inline-flex;
    margin: 8px 0 12px;
  }

  .app-shell.role-beautician .ai-output-card h3,
  .app-shell.role-consultant .ai-output-card h3,
  .app-shell.role-manager .ai-output-card h3,
  .app-shell.role-beautician .ai-input-card h3,
  .app-shell.role-consultant .ai-input-card h3,
  .app-shell.role-manager .ai-input-card h3 {
    flex-wrap: nowrap;
    word-break: keep-all;
  }

  .app-shell.role-beautician .form,
  .app-shell.role-consultant .form,
  .app-shell.role-manager .form {
    min-width: 0;
  }

  .app-shell.role-beautician .form input,
  .app-shell.role-beautician .form select,
  .app-shell.role-beautician .form textarea,
  .app-shell.role-consultant .form input,
  .app-shell.role-consultant .form select,
  .app-shell.role-consultant .form textarea,
  .app-shell.role-manager .form input,
  .app-shell.role-manager .form select,
  .app-shell.role-manager .form textarea {
    width: 100%;
    min-width: 0;
  }

  .app-shell.role-beautician .button-row,
  .app-shell.role-consultant .button-row,
  .app-shell.role-manager .button-row {
    flex-wrap: wrap;
  }

  .app-shell.role-beautician .button-row > *,
  .app-shell.role-consultant .button-row > *,
  .app-shell.role-manager .button-row > * {
    flex: 1 1 130px;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 80;
    height: 62px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 7px;
    border: 1px solid rgba(31, 122, 105, 0.16);
    border-radius: 18px;
    background: rgba(255, 253, 249, 0.94);
    box-shadow: 0 18px 42px rgba(37, 33, 29, 0.16);
    backdrop-filter: blur(16px);
  }

  .mobile-bottom-nav button {
    min-width: 0;
    border-radius: 13px;
    display: grid;
    place-items: center;
    gap: 1px;
    background: transparent;
    color: var(--muted);
  }

  .mobile-bottom-nav button span {
    width: 24px;
    height: 24px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: var(--panel-soft);
    font-size: 12px;
    font-weight: 900;
  }

  .mobile-bottom-nav button strong {
    font-size: 11px;
    line-height: 1;
  }

  .mobile-bottom-nav button.active {
    background: var(--accent-soft);
    color: var(--accent-strong);
  }

  .mobile-bottom-nav button.active span {
    background: var(--accent);
    color: #fff;
  }

  .view-employee-home .growth-hero {
    margin-bottom: 12px;
    padding: 14px;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .view-employee-home .growth-main {
    grid-template-columns: 62px 1fr;
    gap: 12px;
  }

  .view-employee-home .level-badge {
    width: 62px;
    height: 62px;
    font-size: 19px;
  }

  .view-employee-home .growth-main h2 {
    font-size: 18px;
  }

  .view-employee-home .growth-main p {
    font-size: 12px;
    line-height: 1.45;
  }

  .view-employee-home .ability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .view-employee-home .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .view-employee-home .metric {
    min-height: 92px;
    padding: 13px;
  }

  .view-employee-home .metric strong {
    font-size: 22px;
  }

  .view-employee-home .game-growth-panel,
  .view-employee-home .growth-ledger-panel,
  .view-employee-home .home-entry-title,
  .view-employee-home .home-actions {
    display: none;
  }

  .view-employee-home .today-task-title {
    margin-top: 16px;
  }

  .view-employee-home .grid.three {
    grid-template-columns: 1fr;
  }

  .mobile-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 12px;
  }

  .mobile-action-card {
    min-height: 98px;
    padding: 14px;
  }

  .mobile-action-arrow {
    min-width: 48px;
  }

  .view-mobile-mine .growth-hero {
    grid-template-columns: 1fr;
  }

  .view-mobile-mine .growth-main {
    grid-template-columns: 68px 1fr;
  }

  .view-mobile-mine .level-badge {
    width: 68px;
    height: 68px;
    font-size: 21px;
  }

  .view-mobile-mine .ability-grid,
  .view-mobile-mine .game-grid,
  .view-mobile-mine .badge-grid {
    grid-template-columns: 1fr;
  }
}
