:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #d7e2f0;
  --soft-line: #e8eef7;
  --panel: #ffffff;
  --canvas: #eef3fb;
  --sidebar: #0b1424;
  --blue: #2563eb;
  --blue-dark: #123c9c;
  --blue-soft: #eaf2ff;
  --cyan: #0891b2;
  --cyan-soft: #e6f8fb;
  --green: #16a34a;
  --green-soft: #e8f7ee;
  --orange: #d97706;
  --orange-soft: #fff4de;
  --red: #dc2626;
  --red-soft: #fff1f2;
  --purple: #6d5dfc;
  --shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
button, input, select, textarea { font: inherit; color: inherit; }
button, select { cursor: pointer; }
[hidden] { display: none !important; }

.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(16,24,39,.96), rgba(28,73,92,.9)),
    url("./demo网站截图/运营账号首页.png") center / cover;
}
.login-card {
  width: min(1080px, 100%);
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 420px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 26px 80px rgba(4,11,24,.34);
}
.login-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: 620px;
  padding: 42px;
  color: white;
  background:
    linear-gradient(135deg, rgba(16,24,39,.94), rgba(31,85,88,.82)),
    url("./demo网站截图/管理员账号工作台页面.png") center / cover;
}
.login-brand,
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
}
.login-brand strong { display: block; font-size: 18px; }
.login-brand small { color: rgba(255,255,255,.68); font-size: 13px; }
.login-logo-card {
  width: 84px;
  margin: clamp(70px, 12vh, 130px) 0 12px;
}
.login-logo-card img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .28));
}
.login-copy h1 {
  width: min(560px, 100%);
  margin: 0;
  font-size: 42px;
  line-height: 1.18;
  letter-spacing: 0;
}
.login-copy p {
  width: min(500px, 100%);
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 16px;
  line-height: 1.8;
}
.login-preview {
  height: 116px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.86), rgba(255,255,255,.68)),
    url("./demo网站截图/指定设计师页.png") center / cover;
  box-shadow: 0 16px 42px rgba(0,0,0,.18);
}
.login-panel {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 46px;
  background: #fff;
}
.login-panel h2 { margin: 0 0 8px; font-size: 28px; }
.login-panel p { margin: 0; color: var(--muted); line-height: 1.6; }
.login-panel label {
  display: grid;
  gap: 8px;
  font-weight: 900;
}
.login-panel input {
  min-height: 46px;
  border-radius: 8px;
}
.login-submit { min-height: 46px; }
.login-version {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
}
.login-version strong {
  color: #64748b;
  font-variant-numeric: tabular-nums;
}
.login-error {
  min-height: 22px;
  color: var(--red) !important;
  font-weight: 800;
}
.demo-accounts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  color: var(--muted);
  font-weight: 800;
}
.demo-accounts button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  min-height: 30px;
  padding: 0 12px;
  color: var(--ink);
  font-weight: 900;
}
.demo-accounts button:hover {
  border-color: #99b7f7;
  background: var(--blue-soft);
  color: var(--blue);
}
.app-shell { min-height: 100vh; display: flex; }
.sidebar {
  width: 228px; background: var(--sidebar); color: #d9e2f1; position: fixed;
  inset: 0 auto 0 0; padding: 18px 12px; display: flex; flex-direction: column; z-index: 20;
}
.sidebar .brand { padding: 0 4px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(135deg,#3467e8,#4caf6b); position: relative; }
.brand-mark span { position: absolute; right: 7px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: #d9fbff; }
.brand strong { display: block; color: #fff; font-size: 15px; }
.brand small { color: #94a2b8; font-size: 12px; }
.nav { padding-top: 16px; display: grid; gap: 8px; }
.nav button, .side-action {
  border: 0; border-radius: 6px; min-height: 38px; width: 100%; padding: 0 12px;
  display: flex; align-items: center; gap: 10px; background: transparent; color: #c9d4e6; font-weight: 700;
}
.nav button.active { background: #3154d4; color: #fff; }
.nav-group {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.nav-root {
  min-height: 44px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 20px;
  font-weight: 950;
  background: linear-gradient(90deg, rgba(65,93,220,.38), rgba(65,93,220,.10));
  border: 1px solid rgba(120,146,255,.24);
  border-radius: 8px;
  letter-spacing: 0;
}
.nav-root .icon {
  color: #9fb4ff;
  font-size: 17px;
}
.nav-subsection {
  display: grid;
  gap: 5px;
  padding-left: 20px;
}
.nav-subhead {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 900;
  color: #cbd7ea;
  background: rgba(255,255,255,.05);
  cursor: pointer;
  list-style: none;
}
.nav-subhead::-webkit-details-marker { display: none; }
.nav-subhead::before {
  content: "▾";
  margin-right: 6px;
  color: #8191aa;
  font-size: 10px;
}
.nav-subsection:not([open]) .nav-subhead::before {
  content: "▸";
}
.nav-subhead.blue { border-left: 3px solid #5f83ff; }
.nav-subhead.orange { border-left: 3px solid #f2a33c; }
.nav-subhead.red { border-left: 3px solid #f05b5b; }
.nav-subhead b {
  color: #fff;
  font-size: 12px;
  margin-left: auto;
}
.nav-ticket-list {
  display: grid;
  gap: 5px;
  padding-top: 5px;
}
.nav button.nav-ticket {
  min-height: 34px;
  padding: 0 8px 0 14px;
  gap: 8px;
  background: rgba(255,255,255,.035);
  color: #d7e1f2;
  font-size: 12px;
  justify-content: space-between;
}
.nav button.nav-ticket.active-ticket {
  background: rgba(49,84,212,.42);
  color: #fff;
}
.nav-root.urgent-nav-root {
  background: linear-gradient(90deg, rgba(220,38,38,.34), rgba(49,84,212,.08));
  border-color: rgba(248,113,113,.36);
}
.nav-root.urgent-nav-root .icon {
  color: #fecaca;
}
.nav button.nav-ticket.urgent-nav-ticket {
  background: rgba(220,38,38,.14);
  color: #ffe4e6;
  box-shadow: inset 3px 0 0 #ef4444;
}
.nav button.nav-ticket.urgent-nav-ticket.active-ticket {
  background: linear-gradient(90deg, rgba(220,38,38,.70), rgba(49,84,212,.36));
}
.nav-ticket span:first-child {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.nav-ticket .pill {
  flex: 0 0 auto;
  max-width: 72px;
  transform: scale(.82);
  transform-origin: right center;
}
.nav-empty {
  padding: 7px 10px 7px 14px;
  color: #78869a;
  font-size: 12px;
  font-weight: 800;
}
.icon { width: 16px; text-align: center; font-size: 13px; }
.side-footer { margin-top: auto; display: grid; gap: 8px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 12px; }
.side-action { background: rgba(255,255,255,.07); justify-content: flex-start; }
.side-action.active { background: rgba(49,84,212,.52); color: #fff; }
.side-action b { margin-left: auto; min-width: 22px; height: 22px; border-radius: 999px; background: #e4433d; color: white; display: grid; place-items: center; font-size: 12px; }
.side-action.muted { color: #aeb9ca; }
.sidebar-version {
  display: block;
  padding: 4px 8px 0;
  color: rgba(174, 185, 202, .68);
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.main { margin-left: 228px; width: calc(100% - 228px); min-width: 0; }
.topbar {
  height: 64px; background: white; border-bottom: 1px solid var(--soft-line);
  display: flex; align-items: center; gap: 14px; padding: 0 24px; position: sticky; top: 0; z-index: 10;
}
.topbar h1 { font-size: 22px; margin: 0; letter-spacing: 0; }
.top-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.notice-filter-tip {
  margin: -4px 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f7f9fd;
  color: var(--muted);
  font-weight: 800;
}
.custom-period-controls,
.module-period-controls { display: flex; align-items: center; gap: 8px; position: relative; }
.module-period-controls { flex-wrap: wrap; justify-content: flex-end; }
.module-period-controls select {
  min-height: 38px;
  min-width: 86px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 0 10px;
  font-weight: 900;
}
.module-period-controls select:hover { border-color: #9ab6ff; color: var(--blue); background: #f6f9ff; }
.period-pick-btn {
  min-height: 38px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 0 12px;
  font-weight: 900;
}
.period-pick-btn:hover { border-color: #9ab6ff; color: var(--blue); background: #f6f9ff; }
.period-pick-btn.active {
  border-color: #7fa4ff;
  color: var(--blue);
  background: #edf4ff;
  box-shadow: 0 0 0 2px rgba(47, 98, 230, .08) inset;
}
.period-pick-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.month-picker-popover,
.week-picker-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 340px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .16);
  z-index: 80;
}
.week-picker-popover { width: 320px; }
.month-picker-head,
.week-picker-head {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.month-picker-head strong,
.week-picker-head strong {
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #f5f7fb;
  font-size: 16px;
}
.month-year-btn,
.week-step-btn {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  font-size: 18px;
  font-weight: 900;
}
.month-year-btn:hover,
.week-step-btn:hover { color: var(--blue); border-color: #9ab6ff; }
.week-picker-range {
  min-height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #edf4ff;
  color: var(--blue);
  font-weight: 900;
  margin-bottom: 10px;
}
.week-picker-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.week-picker-days span {
  min-height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid #dfe7f4;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}
.week-picker-days small {
  color: var(--muted);
  font-size: 12px;
}
.week-picker-days b {
  font-size: 12px;
}
.month-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.month-option {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}
.month-option:hover {
  border-color: #9ab6ff;
  color: var(--blue);
  background: #f6f9ff;
}
.month-option.selected {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}
.month-picker-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.month-picker-actions .text-btn {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 900;
  padding: 0 6px;
}
.month-picker-actions .current-month { margin-right: auto; }
.month-picker-actions .apply-months {
  min-height: 34px;
  padding: 0 14px;
}
.month-picker-actions .apply-months:disabled {
  opacity: .45;
  cursor: not-allowed;
}
select, input, textarea {
  border: 1px solid var(--line); background: white; border-radius: 8px; min-height: 38px; padding: 0 14px; outline: none;
}
input[readonly] {
  background: #fbfcfe;
  color: var(--muted);
  font-weight: 800;
}
.ticket-number-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 16px;
  letter-spacing: 1px;
}
textarea { padding: 14px; line-height: 1.7; min-height: 120px; resize: vertical; }
.primary, .secondary {
  border-radius: 8px; border: 1px solid var(--line); min-height: 38px; padding: 0 16px; font-weight: 800; background: white;
}
.primary { background: var(--blue); border-color: var(--blue); color: white; }
.secondary { color: var(--muted); }
a.secondary { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
button.secondary.danger { color: var(--red); border-color: #f3c7c7; background: #fffafa; }
button.secondary.danger:hover { background: var(--red-soft); }
button.secondary:disabled { opacity: .55; cursor: not-allowed; }
button.primary:disabled { opacity: .55; cursor: not-allowed; }
.mobile-menu { display: none; border: 0; background: transparent; font-size: 22px; }
.content { padding: 24px; display: grid; gap: 20px; }

.panel { background: var(--panel); border: 1px solid var(--soft-line); border-radius: 10px; box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; }
.panel-title { margin: 0; font-size: 18px; }
.panel-head small { display: block; margin-top: 5px; color: var(--muted); font-weight: 800; }
.panel-tools { margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.panel-tools select {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
  font-weight: 900;
}
.panel-tools select:hover { border-color: #9ab6ff; color: var(--blue); background: #f7faff; }
.panel-note { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; font-weight: 800; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { padding: 18px; min-height: 96px; }
.stat small { display: block; color: var(--muted); font-weight: 800; }
.stat strong { display: block; font-size: 30px; margin-top: 20px; }
.ops-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 0 18px 18px; }
.ops-stat-card { min-height: 104px; border: 1px solid var(--soft-line); border-radius: 8px; background: linear-gradient(180deg, #ffffff, #fbfcff); padding: 16px; }
.ops-stat-card small { display: block; color: var(--muted); font-size: 13px; font-weight: 900; }
.ops-stat-card strong { display: block; margin: 8px 0 10px; font-size: 30px; line-height: 1; }
.ops-status-row { display: flex; flex-wrap: wrap; gap: 7px; }
.ops-status-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; border-radius: 999px; padding: 0 9px; color: var(--muted); background: #eef2f7; font-size: 12px; font-weight: 900; }
.ops-status-chip b { color: inherit; font-size: 12px; }
.ops-status-chip.blue { background: var(--blue-soft); color: var(--blue); }
.ops-status-chip.green { background: var(--green-soft); color: var(--green); }
.ops-status-chip.orange { background: var(--orange-soft); color: var(--orange); }
.ops-status-chip.red { background: var(--red-soft); color: var(--red); }
.ops-status-chip.gray { background: #eef2f7; color: var(--muted); }
.admin-overview { background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%); }
.admin-overview .panel-head small { display: block; margin-top: 5px; color: var(--muted); font-weight: 800; }
.admin-kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding: 0 18px 14px; }
.admin-kpi { position: relative; overflow: hidden; border: 1px solid var(--soft-line); border-radius: 8px; padding: 16px; background: #fff; }
.admin-kpi::after { content: ""; position: absolute; right: -28px; top: -28px; width: 84px; height: 84px; border-radius: 50%; opacity: .16; background: currentColor; }
.admin-kpi small { display: block; color: var(--muted); font-weight: 900; }
.admin-kpi strong { display: block; margin: 12px 0 6px; font-size: 30px; line-height: 1; }
.admin-kpi span { display: inline-flex; border-radius: 999px; padding: 3px 9px; background: #eef2f7; color: var(--muted); font-size: 12px; font-weight: 900; }
.admin-trends { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.trend { border-radius: 999px; padding: 3px 8px; font-size: 11px; font-style: normal; font-weight: 900; }
.trend.up { background: var(--green-soft); color: var(--green); }
.trend.down { background: var(--red-soft); color: var(--red); }
.trend.neutral { background: #eef2f7; color: var(--muted); }
.admin-kpi.blue { border-top: 3px solid var(--blue); color: var(--blue); }
.admin-kpi.green { border-top: 3px solid var(--green); color: var(--green); }
.admin-kpi.orange { border-top: 3px solid var(--orange); color: var(--orange); }
.admin-kpi.red { border-top: 3px solid var(--red); color: var(--red); }
.admin-kpi small,
.admin-kpi strong,
.admin-kpi span,
.admin-kpi .admin-trends { position: relative; z-index: 1; }
.admin-kpi strong { color: var(--ink); }

.designer-personal-panel { overflow: hidden; }
.designer-profile-card {
  position: relative;
  margin: 16px;
  border: 1px solid var(--soft-line);
  border-top: 3px solid var(--blue);
  border-radius: 8px;
  padding: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f7faff 100%);
  display: grid;
  grid-template-columns: minmax(240px, .72fr) minmax(0, 2.28fr);
  gap: 14px;
  overflow: hidden;
}
.designer-profile-card::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: currentColor;
  opacity: .12;
}
.designer-profile-card.blue { color: var(--blue); }
.designer-profile-card.green { color: var(--green); border-top-color: var(--green); }
.designer-profile-card.orange { color: var(--orange); border-top-color: var(--orange); }
.designer-profile-main,
.designer-data-grid,
.designer-rank-strip { position: relative; z-index: 1; }
.designer-profile-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.designer-profile-main h2 { margin: 0; color: var(--ink); font-size: 22px; }
.designer-profile-main p { margin: 5px 0 0; color: var(--muted); font-weight: 900; }
.designer-data-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.designer-data-grid div {
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255,255,255,.78);
}
.designer-data-grid small { color: var(--muted); font-weight: 900; }
.designer-data-grid strong { display: block; margin-top: 8px; color: var(--ink); font-size: 26px; line-height: 1; }
.designer-data-grid span { display: inline-block; margin-top: 8px; color: var(--muted); font-size: 12px; font-weight: 900; }
.designer-rank-strip {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.designer-rank-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: #eef2f7;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.designer-rank-strip b { color: var(--ink); }
.admin-status-strip { margin: 0 18px 14px; padding: 12px 14px; border: 1px solid var(--soft-line); border-radius: 8px; background: #fbfcfe; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.admin-status-strip > b { margin-right: 4px; }
.admin-section-head {
  margin: 2px 18px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.admin-section-label { margin: 2px 18px 10px; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 900; }
.admin-section-head .admin-section-label { margin: 0; }
.admin-section-label::before { content: ""; width: 8px; height: 22px; border-radius: 999px; background: var(--blue); }
.admin-section-label.group { color: var(--blue); }
.admin-section-label.group::before { background: linear-gradient(180deg, #3162e8, #41a05f); }
.admin-section-label.people { color: var(--orange); }
.admin-section-label.people::before { background: linear-gradient(180deg, #d87a19, #efb23c); }
.section-period-meta { margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; color: var(--ink); font-weight: 900; }
.compact-period-head { padding-bottom: 0; }
.admin-people-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 18px 18px; }
.lead-people-grid { grid-template-columns: 1fr; }
.admin-people-panel { border: 1px solid #f0dcc4; border-radius: 8px; background: linear-gradient(180deg, #fffdf8, #ffffff); padding: 16px; }
.admin-people-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.admin-people-head h3 { margin: 0; font-size: 16px; }
.admin-people-head span { color: var(--muted); font-size: 12px; font-weight: 900; }
.admin-people-head span b { margin-left: 8px; color: var(--ink); font-size: 18px; }
.admin-rank-wrap { display: grid; gap: 14px; }
.admin-rank { display: grid; gap: 8px; }
.admin-rank > b { font-size: 13px; color: var(--muted); }
.admin-rank-scroll { max-height: 310px; overflow-y: auto; padding-right: 4px; display: grid; gap: 8px; }
.admin-rank-scroll::-webkit-scrollbar { width: 8px; }
.admin-rank-scroll::-webkit-scrollbar-track { background: #f3f5f9; border-radius: 999px; }
.admin-rank-scroll::-webkit-scrollbar-thumb { background: #c8d2e2; border-radius: 999px; border: 2px solid #f3f5f9; }
.admin-rank-row { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; min-height: 34px; border-radius: 8px; padding: 0 10px; background: #fbfcfe; }
.admin-rank-row span { width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 900; }
.admin-rank-row strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.admin-rank-row em { color: var(--muted); font-style: normal; font-size: 12px; font-weight: 900; }
.admin-rank-tabs { display: grid; gap: 8px; }
.rank-tab-input { display: none; }
.admin-rank-tab-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.admin-rank-tab-head > b { color: var(--muted); font-size: 13px; }
.admin-rank-tab-head > div { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.admin-rank-tab-head label { min-height: 26px; display: inline-flex; align-items: center; border-radius: 999px; padding: 0 10px; background: #fff4df; color: var(--orange); font-size: 12px; font-weight: 900; cursor: pointer; }
.admin-rank-panel { display: none; }
#designer-rank-points:checked ~ .admin-rank-tab-head label[for="designer-rank-points"],
#designer-rank-quality:checked ~ .admin-rank-tab-head label[for="designer-rank-quality"],
#designer-rank-efficiency:checked ~ .admin-rank-tab-head label[for="designer-rank-efficiency"],
#designer-rank-leadQuality:checked ~ .admin-rank-tab-head label[for="designer-rank-leadQuality"],
#designer-rank-performance:checked ~ .admin-rank-tab-head label[for="designer-rank-performance"],
#lead-designer-rank-points:checked ~ .admin-rank-tab-head label[for="lead-designer-rank-points"],
#lead-designer-rank-quality:checked ~ .admin-rank-tab-head label[for="lead-designer-rank-quality"],
#lead-designer-rank-efficiency:checked ~ .admin-rank-tab-head label[for="lead-designer-rank-efficiency"],
#operator-rank-tickets:checked ~ .admin-rank-tab-head label[for="operator-rank-tickets"],
#operator-rank-disputes:checked ~ .admin-rank-tab-head label[for="operator-rank-disputes"] {
  background: var(--blue);
  color: white;
}
#designer-rank-points:checked ~ .admin-rank-panels .points,
#designer-rank-quality:checked ~ .admin-rank-panels .quality,
#designer-rank-efficiency:checked ~ .admin-rank-panels .efficiency,
#designer-rank-leadQuality:checked ~ .admin-rank-panels .leadQuality,
#designer-rank-performance:checked ~ .admin-rank-panels .performance,
#lead-designer-rank-points:checked ~ .admin-rank-panels .points,
#lead-designer-rank-quality:checked ~ .admin-rank-panels .quality,
#lead-designer-rank-efficiency:checked ~ .admin-rank-panels .efficiency,
#operator-rank-tickets:checked ~ .admin-rank-panels .tickets,
#operator-rank-disputes:checked ~ .admin-rank-panels .disputes {
  display: block;
}
.empty-rank { min-height: 34px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); font-size: 12px; font-weight: 900; }
.admin-group-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 18px 18px; }
.lead-group-grid { grid-template-columns: 1fr; }
.admin-group-panel { border: 1px solid #cfe0ff; border-radius: 8px; background: linear-gradient(180deg, #f5f9ff, #ffffff); padding: 16px; }
.admin-group-panel.design { border-color: #cdeed8; background: linear-gradient(180deg, #f4fff8, #ffffff); }
.admin-group-list { display: grid; gap: 10px; }
.admin-group-row { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(220px, 1.5fr) auto; gap: 12px; align-items: center; min-height: 74px; border: 1px solid rgba(49,98,232,.18); border-radius: 8px; padding: 10px 12px; background: rgba(255,255,255,.78); }
.admin-group-panel.design .admin-group-row { border-color: rgba(31,158,82,.2); }
.admin-group-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 900; }
.admin-group-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.admin-group-metrics span { min-height: 48px; border-radius: 8px; background: #f7f9fd; padding: 8px 10px; }
.admin-group-metrics small { margin: 0; font-size: 11px; }
.admin-group-metrics b { display: block; margin-top: 3px; color: var(--ink); font-size: 18px; line-height: 1; }
.admin-group-state { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.management-overview .panel-tools,
.management-board-head .section-period-meta {
  align-items: center;
}
.management-metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 0 18px 18px;
}
.management-metric {
  position: relative;
  min-height: 132px;
  overflow: hidden;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: inset 0 3px 0 currentColor;
}
.management-metric small,
.management-mini-metric small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.25;
}
.management-metric strong {
  display: block;
  margin: 12px 0 8px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  font-weight: 1000;
}
.management-metric > span {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  border-radius: 999px;
  padding: 0 8px;
  background: #eef2f7;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}
.management-metric.blue { color: var(--blue); }
.management-metric.green { color: var(--green); }
.management-metric.orange { color: var(--orange); }
.management-metric.red { color: var(--red); }
.management-metric.purple { color: #6d28d9; }
.management-group-board,
.management-member-board,
.management-rank-board {
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}
.management-group-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 18px 18px;
}
.management-group-card {
  border: 1px solid #d7e4f8;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  overflow: hidden;
  box-shadow: inset 4px 0 0 rgba(47, 109, 246, .18);
}
.management-group-title {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #e3ecfb;
  background: linear-gradient(90deg, #eef5ff, #f8fbff);
}
.management-group-title b {
  color: var(--ink);
  font-size: 16px;
  font-weight: 1000;
}
.management-group-title span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
}
.management-group-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
}
.management-mini-metric {
  min-height: 86px;
  padding: 10px;
  border: 1px solid #e8eef7;
  border-radius: 8px;
  background: #ffffff;
}
.management-mini-metric b {
  display: block;
  margin: 8px 0 5px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1;
  font-weight: 1000;
}
.management-mini-metric .admin-trends,
.management-metric .admin-trends {
  margin-top: 6px;
}
.management-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}
.management-table-wrap {
  max-height: 390px;
  overflow: auto;
  border-top: 1px solid #e8eef7;
}
.management-member-table,
.management-rank-table {
  min-width: 760px;
}
.management-rank-table {
  min-width: 920px;
}
.management-member-table th,
.management-rank-table th {
  height: 42px;
  background: linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
  color: #1d4ed8;
  border-bottom-color: #b9d4ff;
}
.management-member-table td,
.management-rank-table td {
  height: 48px;
}
.management-rank-board .management-board-head {
  background: linear-gradient(90deg, rgba(109, 40, 217, .06), rgba(255,255,255,0));
}
.ops-designer-rank-board {
  grid-column: 1 / -1;
  background: #ffffff;
  border-color: #c9daf8;
}
.ops-designer-rank-board .management-board-head {
  background: #f3f7ff;
  border-bottom: 1px solid #c9daf8;
}
.ops-designer-rank-board .management-rank-table th {
  background: #eaf2ff;
  color: #1d4ed8;
  border-bottom-color: #b9d4ff;
}
.management-rank-table th {
  background: linear-gradient(180deg, #fbfaff 0%, #f0edff 100%);
  color: #6d28d9;
  border-bottom-color: #c4b5fd;
}
.pill { display: inline-flex; align-items: center; min-height: 24px; border-radius: 999px; padding: 0 10px; font-weight: 800; font-size: 12px; }
.pill.blue { background: var(--blue-soft); color: var(--blue); }
.pill.green { background: var(--green-soft); color: var(--green); }
.pill.orange { background: var(--orange-soft); color: var(--orange); }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill.gray { background: #eef2f7; color: var(--muted); }
.health { padding: 18px 20px; display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 92px 1fr 46px; gap: 14px; align-items: center; font-weight: 800; }
.bar { height: 16px; border-radius: 999px; background: #edf1f7; overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.bar.green span { background: linear-gradient(90deg,#40a35b,#67d36b); }
.bar.orange span { background: linear-gradient(90deg,#eea231,#ee6e86); }
.bar.red span { background: linear-gradient(90deg,#d83b35,#ef7b95); }
.bar.gray span { background: #cbd5e1; }

.delivery-progress-card {
  padding: 30px 34px;
  display: grid;
  gap: 20px;
}
.delivery-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.delivery-progress-head h2 {
  margin: 0 0 8px;
  font-size: 38px;
  line-height: 1.15;
}
.delivery-progress-head small {
  color: var(--muted);
  font-weight: 800;
  font-size: 16px;
}
.delivery-progress-time {
  text-align: right;
  white-space: nowrap;
}
.delivery-progress-time strong {
  color: #0f172a;
  font-size: 44px;
  line-height: 1;
  font-weight: 950;
}
.delivery-progress-time span {
  color: #0f172a;
  font-size: 30px;
  font-weight: 900;
}
.delivery-score {
  min-width: 96px;
  text-align: right;
  font-size: 28px;
  line-height: 1;
}
.delivery-score.green { color: var(--green); }
.delivery-score.blue { color: var(--blue); }
.delivery-score.orange { color: var(--orange); }
.delivery-score.red { color: var(--red); }
.delivery-score.gray { color: var(--muted); }
.delivery-progress-card > .bar {
  height: 18px;
}
.efficiency-progress-hero {
  display: grid;
  gap: 20px;
  padding: 28px 34px;
  border: 1px solid #d7e4f8;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  box-shadow: inset 4px 0 0 #dbe8ff;
}
.efficiency-progress-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}
.efficiency-progress-score {
  display: flex;
  align-items: flex-end;
  gap: 18px;
}
.efficiency-progress-score span {
  color: #475569;
  font-size: 22px;
  font-weight: 950;
}
.efficiency-progress-score strong {
  color: #0f172a;
  font-size: 58px;
  line-height: .95;
  font-weight: 950;
}
.efficiency-progress-score.green strong { color: #16a34a; }
.efficiency-progress-score.orange strong { color: var(--orange); }
.efficiency-progress-score.red strong { color: var(--red); }
.efficiency-progress-score.gray strong { color: var(--muted); }
.efficiency-progress-formula {
  color: #64748b;
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}
.efficiency-progress-bar .bar {
  height: 26px;
  background: #e8eef7;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .05);
}
.efficiency-progress-rules {
  display: grid;
  gap: 8px;
  padding: 16px 20px;
  border: 1px solid #dbe6f6;
  border-radius: 8px;
  background: #f8fbff;
}
.efficiency-progress-rules p {
  margin: 0;
  color: #64748b;
  font-size: 17px;
  font-weight: 850;
}
.efficiency-progress-rules b {
  color: #0f172a;
}

.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 920px; }
th, td { text-align: left; border-top: 1px solid var(--soft-line); padding: 14px 18px; white-space: nowrap; }
th { color: var(--muted); font-size: 12px; background: #fbfcfe; }
td { font-size: 14px; font-weight: 650; }
.recycle-bin-panel { overflow: hidden; }
.recycle-bin-table { min-width: 980px; }
.recycle-ticket-title { display: grid; gap: 4px; min-width: 220px; white-space: normal; }
.recycle-ticket-title b { color: var(--ink); font-weight: 900; }
.recycle-ticket-title span { color: var(--muted); font-size: 12px; font-weight: 700; }
.recycle-ticket-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.recycle-ticket-actions .secondary { min-width: 88px; }
.edit-permission-row {
  min-height: 34px;
  padding: 0 12px;
  color: var(--blue);
  border-color: #c9daf8;
  background: #f8fbff;
}
.account-permission-text {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.ticket-id-cell { display: inline-flex; align-items: center; gap: 8px; }
.copy-ticket-id { border: 1px solid var(--line); background: white; color: var(--blue); border-radius: 6px; width: 30px; min-height: 30px; padding: 0; font-size: 17px; font-weight: 900; line-height: 1; }
.copy-ticket-id:hover { background: var(--blue-soft); border-color: #aac5ff; }
.designer-name-with-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  vertical-align: middle;
}
.designer-group-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eaf2ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}
.designer-group-tag.md { min-height: 24px; padding: 0 10px; font-size: 12px; }
.designer-group-tag.sm { min-height: 20px; padding: 0 7px; font-size: 11px; }
.designer-group-tag.xs { min-height: 18px; padding: 0 6px; font-size: 10px; }
.score-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  background: #fff6e8;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
}
.score-pill.green { background: var(--green-soft); color: var(--green); }
.score-pill.red { background: var(--red-soft); color: var(--red); }
.score-pill.orange { background: #fff6e8; color: var(--orange); }
.project-items-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-color: #cfe0ff;
  border-left-color: #2563eb;
  border-radius: 8px;
  background: #f8fbff;
}
.project-items-head,
.project-items-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #dbe7fb;
}
.project-items-head span,
.project-items-detail-head b {
  display: block;
  color: var(--ink);
  font-size: 17px;
  font-weight: 1000;
}
.project-items-head small,
.project-items-detail-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.project-items-table,
.project-items-detail-table {
  overflow-x: auto;
  border: 1px solid #d8e4f5;
  border-radius: 8px;
  background: #fff;
}
.project-items-table table,
.project-items-detail-table table {
  min-width: 1220px;
  width: 100%;
  border-collapse: collapse;
}
.project-items-table th,
.project-items-detail-table th {
  padding: 12px 14px;
  background: #eef3fb;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 1000;
  text-align: left;
  border-bottom: 1px solid #bfd3f4;
}
.project-items-table td,
.project-items-detail-table td {
  padding: 13px 14px;
  border-top: 1px solid #e6edf7;
  color: var(--ink);
  font-weight: 900;
  vertical-align: middle;
}
.project-items-table tbody tr:nth-child(even) td,
.project-items-detail-table tbody tr:nth-child(even) td {
  background: #fbfdff;
}
.project-items-table tbody tr:hover td {
  background: #f4f8ff;
}
.project-items-table tbody tr td:first-child,
.project-items-detail-table tbody tr td:first-child {
  box-shadow: inset 3px 0 0 #b7ccf6;
}
.project-item-primary-category,
.project-item-task-type,
.project-item-category,
.project-item-quantity {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
  font-weight: 900;
  color: var(--ink);
}
.project-item-quantity { max-width: 94px; text-align: center; }
.project-unit-score,
.project-subtotal-score {
  color: var(--blue);
}
.project-unit-label {
  color: var(--orange);
  font-weight: 1000;
}
.project-unit-workdays,
.project-subtotal-workdays {
  color: var(--muted);
}
.project-items-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.project-items-summary article {
  min-height: 72px;
  border: 1px solid #dce8ff;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 8px 20px rgba(15, 24, 39, .035);
}
.project-items-summary small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.project-items-summary strong {
  display: block;
  margin-top: 6px;
  color: var(--blue);
  font-size: 22px;
  font-weight: 1000;
}
.project-items-detail {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #cfe0ff;
  border-radius: 9px;
  background: #fbfdff;
}
.project-items-detail-head { margin-bottom: 12px; }
.project-items-detail-head strong {
  color: var(--blue);
  font-size: 18px;
  font-weight: 1000;
  white-space: nowrap;
}
.worktime-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}
.table-progress {
  display: grid;
  gap: 8px;
  min-width: 260px;
}

.table-progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.table-progress-head b {
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
  white-space: nowrap;
}

.table-progress-head strong {
  color: var(--blue);
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.table-progress small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.table-progress .bar { height: 13px; }
.product-cell {
  display: grid;
  gap: 3px;
  min-width: 120px;
}
.product-cell b {
  color: var(--ink);
  font-size: 13px;
  font-weight: 1000;
}
.product-cell span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  word-break: break-all;
}
.product-cell em {
  width: fit-content;
  border-radius: 999px;
  padding: 2px 7px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 11px;
  font-style: normal;
  font-weight: 1000;
}
.product-cell.ok span { color: var(--green); }
.product-cell.danger em {
  background: var(--red-soft);
  color: var(--red);
}
.product-id-reminder {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--red);
  color: white;
  font-size: 12px;
  font-weight: 1000;
  white-space: nowrap;
}
.product-id-reminder .update-dot {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .22);
}
.reminder-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.update-reminder {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}
.update-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(213, 70, 62, .12); }
.read-reminder {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f1f5fb;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.muted-dash { color: var(--muted); font-weight: 900; }
.link-btn { border: 0; background: transparent; color: var(--blue); font-weight: 900; padding: 0; }

.kanban { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 12px; padding: 0 16px 16px; }
.lane { border: 1px solid var(--soft-line); border-radius: 8px; background: #fbfcfe; min-height: 520px; padding: 12px; }
.lane h3 { margin: 0 0 12px; font-size: 14px; color: var(--muted); display: flex; justify-content: space-between; }
.ticket-card { background: white; border: 1px solid var(--soft-line); border-radius: 7px; padding: 14px; margin-bottom: 10px; display: grid; gap: 10px; }
.ticket-card h4 { margin: 0; }
.ticket-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; color: var(--muted); font-size: 12px; font-weight: 800; }
.empty-state,
.empty-lane {
  min-height: 96px;
  display: grid;
  place-items: center;
  padding: 20px;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}
.empty-lane {
  min-height: 180px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}
.filters { display: grid; grid-template-columns: minmax(180px, 1.5fr) repeat(7, minmax(110px, 1fr)) auto auto; gap: 10px; padding: 14px; border-bottom: 1px solid var(--soft-line); }
.filters.with-group-filter { grid-template-columns: minmax(180px, 1.4fr) repeat(8, minmax(110px, 1fr)) auto auto; }

.schedule { display: grid; grid-template-columns: 190px 1fr; gap: 12px; padding: 12px 14px 14px; }
.summary-cards { display: grid; gap: 8px; }
.mini-card { border: 1px solid var(--soft-line); border-radius: 8px; padding: 8px 10px; }
.mini-card strong { display: block; font-size: 18px; margin-top: 3px; }
.mini-card .bar { margin-top: 6px; }
.timeline-board { border: 1px solid var(--soft-line); border-radius: 9px; overflow: hidden; min-height: 138px; }
.date-strip, .time-strip { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; padding: 8px; }
.date-strip button { border: 1px solid var(--line); background: white; border-radius: 7px; min-height: 34px; font-weight: 800; color: var(--muted); }
.date-strip button.active { color: var(--blue); border-color: #9bbcff; background: var(--blue-soft); }
.time-strip { border-top: 1px solid var(--soft-line); color: var(--muted); font-size: 12px; font-weight: 800; }
.schedule-time-strip {
  grid-template-columns: repeat(17, minmax(54px, 1fr));
  overflow-x: auto;
}
.gantt-scroll {
  overflow-x: auto;
  border-top: 1px solid var(--soft-line);
  background: linear-gradient(#fff, #fbfcff);
}
.gantt-scroll::-webkit-scrollbar { height: 12px; }
.gantt-scroll::-webkit-scrollbar-track { background: #edf1f7; border-radius: 999px; }
.gantt-scroll::-webkit-scrollbar-thumb { background: #b9c8df; border-radius: 999px; border: 3px solid #edf1f7; }
.gantt-canvas {
  min-width: 2550px;
  padding: 0 0 10px;
}
.gantt-hours {
  display: grid;
  grid-template-columns: repeat(17, 150px);
  height: 34px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.gantt-rows {
  display: grid;
  gap: 6px;
  padding-top: 2px;
  max-height: 165px;
  overflow-y: auto;
}
.gantt-row {
  position: relative;
  min-height: 42px;
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(220,228,240,.72) 0, rgba(220,228,240,.72) 1px, transparent 1px, transparent 150px),
    #fff;
}
.gantt-line {
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: var(--soft-line);
}
.bars { position: relative; height: 250px; padding: 14px 8px; }
.event {
  position: absolute;
  min-width: 180px;
  min-height: 32px;
  border-radius: 8px;
  color: white;
  font-weight: 900;
  font-size: 11px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 5px 9px;
  box-shadow: 0 8px 18px rgba(23, 32, 51, .14);
}
.gantt-bar {
  border: 0;
  top: 5px;
  height: 32px;
  min-height: 32px;
  border-radius: 7px;
  padding: 4px 10px;
  box-shadow: 0 8px 18px rgba(23, 32, 51, .12);
  cursor: pointer;
  text-align: left;
}
.gantt-bar:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}
.event strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
}
.gantt-bar strong {
  -webkit-line-clamp: 1;
  font-size: 11px;
}
.event span {
  opacity: .92;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  line-height: 1.1;
}
.gantt-empty { min-width: 100%; }
.event.orange { background: #d47b23; }
.event.blue { background: var(--blue); }
.event.purple { background: var(--purple); }
.event.green { background: #3ea558; }

.designer-grid { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 12px; max-height: 480px; overflow: auto; padding: 0 16px 16px; }
.designer-card { border: 1px solid var(--soft-line); border-radius: 8px; padding: 12px; display: grid; gap: 10px; }
.lead-designer-card {
  width: 100%;
  background: white;
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: .16s ease;
}
.lead-designer-card:hover,
.lead-designer-card.active {
  border-color: #9bbcff;
  box-shadow: 0 8px 22px rgba(49, 98, 232, .13);
  transform: translateY(-1px);
}
.lead-designer-card.active {
  background: linear-gradient(180deg, #f6f9ff, #ffffff);
}
.avatar-line { display: flex; justify-content: space-between; gap: 10px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg,#2d62e6,#51a66a); flex: 0 0 auto; }
.metric-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }
.metric { border: 1px solid var(--soft-line); border-radius: 6px; padding: 8px; }
.metric small { color: var(--muted); font-weight: 800; }
.metric strong { display: block; margin-top: 4px; }

.dict-layout { display: grid; grid-template-columns: 260px 1fr; gap: 18px; }
.dict-menu { padding: 14px; display: grid; gap: 8px; }
.dict-menu button { display: flex; justify-content: space-between; border: 1px solid var(--line); background: white; border-radius: 7px; min-height: 40px; padding: 0 12px; align-items: center; font-weight: 800; color: var(--muted); }
.dict-menu button.active { background: var(--blue-soft); border-color: #b9ceff; color: var(--blue); }
.dict-menu button:disabled { opacity: .48; cursor: not-allowed; background: #f7f9fc; }
.dictionary-detail-panel { display: grid; gap: 16px; }
.dictionary-summary-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; padding: 0 20px; }
.dictionary-summary-strip article { border: 1px solid var(--soft-line); border-radius: 8px; background: linear-gradient(180deg, #fbfdff, #fff); padding: 14px 16px; }
.dictionary-summary-strip b { display: block; font-size: 28px; line-height: 1.1; color: var(--ink); }
.dictionary-summary-strip span { display: block; margin-top: 6px; color: var(--muted); font-weight: 850; font-size: 13px; }
.commerce-summary article:nth-child(2) { border-color: #d8e7d9; background: #fbfffc; }
.commerce-summary article:nth-child(3) { border-color: #f2d9b5; background: #fffdfa; }
.commerce-summary article:nth-child(4) { border-color: #e1d5ff; background: #fdfcff; }
.commerce-dict-board {
  margin: 0 20px 20px;
  border: 1px solid #d9e5f5;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 460px;
}
.commerce-platform-panel {
  border-right: 1px solid #d9e5f5;
  background: #f8fbff;
}
.commerce-shop-panel {
  min-width: 0;
  background: #fff;
}
.commerce-panel-head {
  min-height: 74px;
  padding: 14px 16px;
  border-bottom: 1px solid #d9e5f5;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.commerce-panel-head b {
  display: block;
  color: var(--ink);
  font-size: 17px;
  font-weight: 1000;
}
.commerce-panel-head small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
}
.commerce-panel-head .primary {
  min-width: 92px;
  min-height: 36px;
}
.commerce-platform-list {
  display: grid;
  padding: 8px 0;
}
.commerce-platform-card {
  border-left: 3px solid transparent;
  border-bottom: 1px solid #e7eef8;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 64px;
}
.commerce-platform-card.active {
  border-left-color: #2563eb;
  background: #eaf2ff;
}
.commerce-platform-select {
  border: 0;
  border-radius: 0;
  background: transparent;
  min-height: 0;
  padding: 11px 10px 11px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 8px;
  text-align: left;
}
.commerce-platform-select b {
  color: var(--ink);
  font-size: 16px;
  font-weight: 1000;
}
.commerce-platform-select span {
  color: #1d4ed8;
  background: #dbeafe;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 1000;
}
.commerce-platform-select small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.commerce-platform-actions {
  display: flex;
  gap: 4px;
  padding-right: 8px;
}
.commerce-platform-actions button {
  min-height: 28px;
  width: auto;
  padding: 0 8px;
  font-size: 12px;
  border-radius: 6px;
}
.commerce-shop-table td:first-child b {
  color: #1d4ed8;
}
.design-project-toolbar {
  margin: 0 20px;
  padding: 16px 18px;
  border: 1px solid #cfe0ff;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: #fbfdff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.design-project-toolbar > div:first-child {
  flex: 1 1 360px;
  min-width: 280px;
}
.design-project-toolbar b {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 1000;
}
.design-project-toolbar small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 850;
}
.design-project-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(132px, max-content));
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.design-project-actions button {
  min-width: 132px;
  min-height: 42px;
  justify-content: center;
  white-space: nowrap;
}
.design-project-summary article:nth-child(2) { border-color: #d8e7d9; background: #fbfffc; }
.design-project-summary article:nth-child(3) { border-color: #f2d9b5; background: #fffdfa; }
.design-project-summary article:nth-child(4) { border-color: #e1d5ff; background: #fdfcff; }
.design-project-board {
  margin: 0 20px 20px;
  overflow: hidden;
  border: 1px solid #d9e5f5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 24, 39, .04);
  display: grid;
  grid-template-columns: 210px 240px minmax(680px, 1fr);
  min-height: 520px;
}
.design-project-column {
  min-width: 0;
  border-right: 1px solid #d9e5f5;
  background: #fafcff;
  position: relative;
}
.secondary-column {
  background: #fff;
}
.primary-column {
  background: #f8fbff;
}
.design-project-column-head {
  min-height: 78px;
  padding: 12px 14px;
  border-bottom: 1px solid #d9e5f5;
  background: #fff;
}
.logic-stage-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.primary-column .logic-stage-head,
.secondary-column .logic-stage-head {
  padding-right: 22px;
}
.primary-column .logic-stage-head::after,
.secondary-column .logic-stage-head::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -10px;
  z-index: 3;
  width: 20px;
  height: 20px;
  border-top: 1px solid #d9e5f5;
  border-right: 1px solid #d9e5f5;
  background: #fff;
  transform: translateY(-50%) rotate(45deg);
}
.logic-stage-copy {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 8px;
  align-items: center;
}
.logic-step-index {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 1000;
}
.logic-stage-copy small {
  grid-column: 1 / -1;
}
.logic-add-button {
  flex: 0 0 auto;
  min-width: 74px;
  min-height: 34px;
  border: 1px solid #2563eb;
  border-radius: 7px;
  background: #2563eb;
  color: #fff;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 1000;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(37, 99, 235, .18);
}
.logic-add-button:disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
}
.design-project-column-head b {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 1000;
}
.primary-column .design-project-column-head b {
  font-size: 16px;
}
.secondary-column .design-project-column-head b {
  font-size: 16px;
}
.design-project-column-head small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 850;
  line-height: 1.45;
  font-size: 12px;
}
.design-primary-list,
.design-secondary-list {
  display: grid;
  gap: 0;
  padding: 8px 0;
}
.design-primary-card,
.design-secondary-card {
  border: 0;
  border-left: 3px solid transparent;
  border-bottom: 1px solid #e7eef8;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 58px;
}
.design-primary-card {
  min-height: 66px;
}
.design-secondary-card {
  min-height: 58px;
}
.design-primary-card.active,
.design-secondary-card.active {
  border-left-color: #2563eb;
  background: #eef5ff;
  box-shadow: none;
}
.design-primary-card.active {
  background: #eaf2ff;
}
.design-secondary-card.active {
  background: #f4f8ff;
}
.design-primary-select,
.design-secondary-select {
  width: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 10px 8px 10px 14px;
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 8px;
}
.design-primary-select {
  padding: 12px 8px 12px 14px;
}
.design-secondary-select {
  padding: 10px 8px 10px 14px;
}
.design-primary-select b,
.design-secondary-select b {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 1000;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.design-primary-select b {
  font-size: 18px;
}
.design-secondary-select b {
  font-size: 16px;
}
.design-primary-select small,
.design-secondary-select small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
  grid-column: 1 / -1;
}
.design-primary-select small {
  font-size: 12px;
}
.design-primary-select em,
.design-secondary-select em {
  color: #1d4ed8;
  font-size: 12px;
  font-style: normal;
  font-weight: 1000;
  padding: 2px 7px;
  border-radius: 999px;
  background: #dbeafe;
}
.design-primary-actions,
.design-project-master-actions {
  display: flex;
  gap: 4px;
  padding: 0 8px 0 0;
  align-items: center;
  justify-content: flex-end;
}
.design-primary-actions {
  padding-right: 8px;
}
.design-primary-actions button,
.design-project-master-actions button {
  min-height: 28px;
  width: auto;
  padding: 0 8px;
  font-size: 12px;
  border-radius: 6px;
}
.design-project-groups {
  padding: 0 20px 20px;
  display: grid;
  gap: 16px;
}
.design-project-group {
  overflow: hidden;
  border: 1px solid #d9e5f5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 24, 39, .04);
  display: grid;
  grid-template-columns: 180px 230px minmax(0, 1fr);
}
.design-project-primary,
.design-project-master {
  padding: 16px;
  border-right: 1px solid #d9e5f5;
  background: #f8fbff;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 12px;
}
.design-project-primary {
  background: #f5f9ff;
}
.design-project-primary h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 1000;
}
.design-project-primary > small {
  color: var(--muted);
  font-weight: 850;
  line-height: 1.45;
}
.design-project-kicker {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 1000;
}
.design-project-master h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 1000;
}
.design-project-master > small {
  color: var(--muted);
  font-weight: 850;
}
.design-project-master-status {
  display: flex;
  align-items: center;
}
.design-project-master-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: 160px;
  max-width: 100%;
}
.design-project-master-metrics article {
  border: 1px solid #d9e5f5;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}
.design-project-master-metrics b {
  display: block;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.15;
}
.design-project-master-metrics span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.design-project-master-actions {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: start;
  gap: 8px;
  padding: 0 14px 14px;
  width: 100%;
  max-width: 100%;
}
.design-project-master-actions button {
  width: 100%;
  justify-content: center;
  min-height: 40px;
  padding-left: 10px;
  padding-right: 10px;
}
.design-project-master-actions .add-category-dict {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}
.design-project-master-actions .edit-project-dict {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}
.design-project-master-actions .delete-project-dict {
  border-color: #fecaca;
  background: #fff5f5;
  color: #dc2626;
}
.design-project-detail {
  min-width: 0;
  background: #fff;
  position: relative;
}
.design-project-detail-head {
  min-height: 64px;
  padding: 12px 18px 12px 22px;
  border-bottom: 1px solid #d9e5f5;
  background: #fbfdff;
}
.design-project-detail-head .logic-stage-copy {
  grid-template-columns: auto minmax(0, max-content);
  max-width: calc(100% - 100px);
}
.design-project-detail-head b {
  display: block;
  color: var(--ink);
  font-size: 19px;
  font-weight: 1000;
}
.design-project-detail-head small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 850;
  line-height: 1.55;
  max-width: 820px;
}
.hierarchy-level-three th {
  font-size: 12px;
}
.hierarchy-level-three td {
  padding-top: 12px;
  padding-bottom: 12px;
}
.hierarchy-level-three td:first-child b {
  font-size: 15px;
}
.design-project-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid #dbe6f5;
  background: #f8fbff;
}
.design-project-group-head b {
  display: block;
  color: var(--ink);
  font-size: 17px;
  font-weight: 1000;
}
.design-project-group-head small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 850;
}
.design-project-category-table th {
  background: #eef5ff;
  color: #1d4ed8;
  border-top: 0;
}
.design-project-category-table td:first-child {
  box-shadow: inset 3px 0 0 #bfdbfe;
}
.design-project-category-table td:first-child small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.dictionary-form { display: grid; gap: 18px; }
.dictionary-form-hero { border: 1px solid var(--soft-line); border-radius: 10px; padding: 18px; min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: linear-gradient(135deg, #f7faff, #ffffff); overflow: hidden; position: relative; }
.dictionary-form-hero::after { content: ""; position: absolute; right: -36px; top: -42px; width: 120px; height: 120px; border-radius: 50%; background: rgba(49, 98, 232, .10); }
.dictionary-form-hero.category::after { background: rgba(224, 129, 6, .12); }
.dictionary-form-hero.generic::after { background: rgba(31, 158, 82, .11); }
.dictionary-form-hero b { display: block; font-size: 24px; color: var(--ink); }
.dictionary-form-hero small { display: block; margin-top: 8px; color: var(--muted); font-weight: 850; }
.dictionary-form-hero span { position: relative; z-index: 1; border-radius: 999px; padding: 8px 13px; background: white; color: var(--blue); font-weight: 950; border: 1px solid #d8e3fb; white-space: nowrap; }
.dictionary-form-hero.category span { color: var(--orange); border-color: #f4ddbd; }
.dictionary-form-hero.generic span { color: var(--green); border-color: #cdeed8; }
.table-actions { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dictionary-level-groups { display: grid; gap: 16px; padding: 0 20px 20px; }
.dictionary-level-card {
  overflow: hidden;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fff;
}
.dictionary-level-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--soft-line);
}
.dictionary-level-title h3 { margin: 0; font-size: 18px; font-weight: 1000; color: var(--ink); }
.dictionary-level-title small { display: block; margin-top: 5px; color: var(--muted); font-weight: 850; }
.dictionary-level-title span {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  background: #f8fbff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 1000;
}
.dictionary-level-table th { font-size: 13px; font-weight: 1000; }
.dictionary-level-card.designer { border-color: #cfe0ff; }
.dictionary-level-card.designer .dictionary-level-title { background: linear-gradient(90deg, #f8fbff, #eef5ff); }
.dictionary-level-card.designer .dictionary-level-title span { background: #eaf2ff; color: var(--blue); }
.dictionary-level-card.designer .dictionary-level-table th { background: #eef5ff; color: #1d4ed8; border-top-color: #cfe0ff; }
.dictionary-level-card.operator { border-color: #ccebd6; }
.dictionary-level-card.operator .dictionary-level-title { background: linear-gradient(90deg, #f8fffb, #f0fdf4); }
.dictionary-level-card.operator .dictionary-level-title span { background: #e8f7ee; color: var(--green); }
.dictionary-level-card.operator .dictionary-level-table th { background: #f0fdf4; color: #15803d; border-top-color: #ccebd6; }
.dict-subtitle { margin: 6px 0 -4px; font-size: 17px; color: var(--ink); }
.weight-panel { padding: 18px 20px; display: grid; gap: 12px; }
.password-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(15, 24, 39, .34);
  padding: 20px;
}
.password-modal {
  position: relative;
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 22px;
  box-shadow: 0 24px 70px rgba(15, 24, 39, .28);
}
.password-modal h3 {
  margin: 0 0 8px;
  font-size: 22px;
}
.password-modal p {
  margin: 0 0 16px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
}
.password-modal-input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  font-weight: 900;
}
.password-modal-input:focus {
  outline: 2px solid rgba(49,98,232,.18);
  border-color: #8fb0ff;
}
.password-modal-message {
  display: block;
  min-height: 20px;
  margin-top: 8px;
  color: var(--red);
  font-weight: 900;
}
.password-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}
.password-modal-close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  font-weight: 900;
}

.drawer { position: fixed; right: 0; top: 0; bottom: 0; width: min(1000px, 100vw); background: white; transform: translateX(104%); transition: .25s ease; z-index: 40; box-shadow: -18px 0 45px rgba(18,31,52,.18); overflow: auto; }
.drawer.open { transform: translateX(0); }
.overlay { position: fixed; inset: 0; background: rgba(15,24,39,.28); opacity: 0; pointer-events: none; transition: .25s ease; z-index: 35; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer-head { height: 86px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 26px; margin: 0; }
.close { border: 1px solid var(--line); background: white; min-width: 76px; height: 46px; padding: 0 16px; border-radius: 8px; font-size: 15px; font-weight: 900; color: var(--muted); }
.drawer-body { padding: 20px; display: grid; gap: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: grid; gap: 8px; font-weight: 900; }
.field.full { grid-column: 1 / -1; }
.product-form-hint {
  border: 1px solid #dbe7f4;
  border-radius: 8px;
  padding: 11px 13px;
  background: #f8fbff;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.product-form-hint.warn {
  border-color: #f3d4a3;
  background: var(--orange-soft);
  color: #9a5b00;
}
.product-form-title {
  border: 1px solid #dbe7f4;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 13px 15px;
  background: #fbfdff;
}
.product-form-title b {
  font-size: 16px;
}
.product-form-title span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.field-tip {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 800;
}
.password-strong-tip {
  color: #b45309;
}
.space-account-input {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: stretch;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.space-account-prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-right: 1px solid #d8e3f3;
  background: #edf4ff;
  color: #1d4ed8;
  font-weight: 950;
  letter-spacing: .02em;
  user-select: none;
}
.space-account-input input {
  border: 0;
  min-height: 46px;
  border-radius: 0;
  background: #fff;
}
.space-account-input:focus-within {
  border-color: #9bbcf8;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.ticket-form-module {
  position: relative;
  border: 1px solid #dde7f6;
  border-left-width: 4px;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 8px 22px rgba(15, 24, 39, .04);
}
.ticket-form-module > span,
.ticket-form-module > b,
.ticket-form-module > small,
.ticket-form-module > label,
label.ticket-form-module {
  color: var(--ink);
}
.ticket-form-module input,
.ticket-form-module select,
.ticket-form-module textarea {
  background: #fff;
}
.ticket-module-id { border-left-color: #64748b; background: #fbfcfe; }
.ticket-module-title { border-left-color: #2563eb; background: #fbfdff; }
.ticket-module-product { border-left-color: #2563eb; background: #f8fbff; }
.ticket-module-schedule { border-left-color: #f59e0b; background: #fffdfa; }
.ticket-module-project { border-left-color: #2563eb; background: #f8fbff; }
.ticket-module-people { border-left-color: #0f9f6e; background: #fbfffd; }
.ticket-module-desc { border-left-color: #7c3aed; background: #fdfcff; }
.ticket-module-assets { border-left-color: #0891b2; background: #fbfeff; }
.ticket-module-assign { border-left-color: #334155; background: #fbfcfe; }
.delivery-picker-field { position: relative; }
.delivery-picker-trigger {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  font-weight: 950;
  text-align: left;
}
.delivery-picker-trigger b {
  flex: 0 0 auto;
  min-width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #edf4ff;
  color: var(--blue);
  font-size: 12px;
}
.delivery-picker-trigger.active,
.delivery-picker-trigger.has-value {
  border-color: #8fb0ff;
  color: var(--ink);
  box-shadow: 0 0 0 3px rgba(49, 98, 232, .10);
}
.delivery-picker-popover {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  width: min(420px, 100%);
  border: 1px solid #cfe0ff;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 24, 39, .16);
  padding: 14px;
}
.delivery-picker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.delivery-picker-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}
.delivery-picker-grid input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--ink);
  font-weight: 900;
}
.delivery-picker-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}
.upload-box { border: 1px dashed #9db7df; border-radius: 9px; min-height: 140px; display: grid; place-items: center; color: var(--muted); font-weight: 900; background: #fbfcff; }
.footer-actions { position: sticky; bottom: 0; background: white; border-top: 1px solid var(--line); padding: 14px 20px; display: flex; justify-content: flex-end; gap: 12px; }
.closed-ticket-note { margin-right: auto; align-self: center; color: var(--muted); font-weight: 900; }
.account-form { display: grid; gap: 14px; }
.account-form-hint { border: 1px solid var(--soft-line); border-radius: 8px; background: #fbfcfe; color: var(--muted); padding: 12px 14px; font-size: 13px; font-weight: 800; }
.permission-module-section {
  border: 1px solid #cfe0ff;
  border-radius: 8px;
  background: #f8fbff;
  padding: 14px;
}
.permission-module-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 12px;
}
.permission-module-head b {
  font-size: 18px;
  font-weight: 1000;
}
.permission-module-head small {
  color: var(--muted);
  font-weight: 900;
}
.permission-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.permission-module-card {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  min-height: 92px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  cursor: pointer;
}
.permission-module-card.checked {
  border-color: #8fb4ff;
  background: #eef5ff;
  box-shadow: inset 4px 0 0 var(--blue);
}
.permission-module-card input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--blue);
}
.permission-module-card b,
.permission-module-card small {
  display: block;
}
.permission-module-card b {
  color: var(--ink);
  font-weight: 1000;
  margin-bottom: 6px;
}
.permission-module-card small {
  color: var(--muted);
  line-height: 1.55;
  font-weight: 800;
}
.account-footer-actions .delete-account { margin-right: auto; color: var(--red); border-color: #f3b6b4; background: var(--red-soft); }
.admin-password-panel { padding-bottom: 18px; }
.admin-security-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 20px;
}
.admin-security-summary > div {
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 14px;
}
.admin-security-summary small {
  display: block;
  color: var(--muted);
  font-weight: 900;
}
.admin-security-summary strong {
  display: block;
  margin-top: 6px;
}
.admin-password-context {
  border: 1px solid #cfe0ff;
  border-radius: 8px;
  background: var(--blue-soft);
  padding: 14px;
}
.admin-password-context b,
.admin-password-context small {
  display: block;
}
.admin-password-context small {
  margin-top: 5px;
  color: var(--muted);
  font-weight: 800;
}
.admin-password-message {
  min-height: 20px;
  color: var(--muted);
  font-weight: 900;
}
.admin-password-message.error { color: var(--red); }
.admin-password-message.success { color: var(--green); }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ops-detail-grid { margin-top: 4px; }
.ops-detail-title-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.ops-detail-title-panel h2 { margin: 0; }
.ops-detail-title-panel small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 900;
}
.info-box {
  border: 1px solid #dde7f6;
  border-left: 4px solid #94a3b8;
  border-radius: 9px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 24, 39, .035);
}
.detail-grid .info-box:nth-child(4n + 1) { border-left-color: #2563eb; background: #fbfdff; }
.detail-grid .info-box:nth-child(4n + 2) { border-left-color: #0f9f6e; background: #fbfffd; }
.detail-grid .info-box:nth-child(4n + 3) { border-left-color: #f59e0b; background: #fffdfa; }
.detail-grid .info-box:nth-child(4n + 4) { border-left-color: #7c3aed; background: #fdfcff; }
.info-box small { color: var(--muted); display: block; font-weight: 900; margin-bottom: 8px; }
.info-box strong { font-size: 20px; }
.info-box-html { padding: 14px; }
.info-box-content { font-weight: 900; }
.info-box-wide { grid-column: 1 / -1; background: #fbfdff; }
.product-attribution-panel {
  display: grid;
  gap: 14px;
  padding-bottom: 16px;
}
.product-attribution-panel .panel-head {
  padding-bottom: 0;
}
.product-attribution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 18px;
}
.product-attribution-grid article {
  border: 1px solid #dde7f6;
  border-radius: 8px;
  padding: 13px;
  background: #fbfdff;
}
.product-attribution-grid small {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-weight: 900;
}
.product-attribution-grid strong {
  font-size: 17px;
  line-height: 1.35;
  word-break: break-all;
}
.product-id-editor {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 0 18px;
}
.score-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.score-summary-card {
  min-height: 84px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 13px;
  background: #fff;
  display: grid;
  align-content: space-between;
}
.score-summary-card b { font-size: 13px; color: var(--muted); }
.score-summary-card strong { font-size: 24px; line-height: 1; color: var(--dark); }
.score-summary-card small { margin: 0; font-size: 12px; color: var(--muted); font-weight: 900; }
.score-summary-card.quality { border-color: #cfe0ff; background: #f6f9ff; }
.score-summary-card.quality strong { color: var(--blue); }
.score-summary-card.efficiency { border-color: #ccefd7; background: #f5fcf7; }
.score-summary-card.efficiency strong { color: var(--green); }
.score-summary-card.lead-quality { border-color: #ffe2c1; background: #fff9f1; }
.score-summary-card.lead-quality strong { color: var(--orange); }
.score-summary-card.is-pending { background: #f8fafc; border-color: var(--line); }
.score-summary-card.is-pending strong { color: var(--muted); }
.state-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.state-tabs button { border: 1px solid var(--line); border-radius: 8px; background: white; min-height: 80px; color: var(--muted); font-weight: 900; font-size: 18px; }
.state-tabs button.active { background: var(--blue-soft); border-color: #a9c4ff; color: var(--blue); }
.planning-panel { padding: 18px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.planning-panel-main { min-width: 0; display: grid; gap: 12px; flex: 1; }
.planning-panel-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.planning-panel span { color: var(--muted); }
.planning-link { min-width: 112px; height: 44px; }
.requirement-brief-panel { padding: 18px; display: grid; gap: 14px; border-left: 4px solid #7c3aed; }
.requirement-source-badge { border: 1px solid #ddd6fe; border-radius: 999px; background: #f5f3ff; color: #6d28d9; padding: 6px 10px; font-size: 12px; font-weight: 950; }
.requirement-description { border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); padding: 14px 16px; line-height: 1.65; font-weight: 850; overflow-wrap: anywhere; }
.deliveries { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.asset-card { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.asset-thumb { height: 210px; display: grid; place-items: center; background: #eef3fb; padding: 12px; }
.uploaded-asset img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.clickable-image { cursor: zoom-in; }
.clickable-image:focus { outline: 3px solid rgba(47, 101, 226, .25); outline-offset: 3px; }
.asset-info { min-height: 112px; display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 16px 16px; }
.asset-info h4 { margin: 0 0 6px; font-size: 18px; line-height: 1.35; overflow-wrap: anywhere; }
.asset-info p { margin: 0; color: var(--muted); font-weight: 800; }
.asset-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex: 0 0 auto; }
.replace-asset { min-width: 74px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 auto; }
.delete-delivery-asset { min-width: 58px; flex: 0 0 auto; }
.asset-preview { height: 190px; background: linear-gradient(135deg,#d9e4fa,#d8eee1); display: grid; place-items: center; padding: 26px; }
.asset-preview div { height: 100%; width: 100%; border-radius: 9px; background: rgba(255,255,255,.75); display: grid; align-items: end; padding: 18px; }
.asset-preview span { height: 20px; border-radius: 999px; background: var(--blue); }
.asset-preview.green span { background: var(--green); }
.asset-preview.orange span { background: var(--orange); }
.delivery-empty { grid-column: 1 / -1; }
.delivery-lock-note { grid-column: 1 / -1; border: 1px solid #cfe0ff; border-radius: 8px; background: var(--blue-soft); color: var(--muted); padding: 13px 14px; font-weight: 900; }
.delivery-upload { min-height: 260px; cursor: pointer; align-content: center; gap: 8px; transition: .18s ease; }
.delivery-upload {
  width: 100%;
  padding: 18px;
  appearance: none;
  text-align: center;
  white-space: normal;
}
.delivery-upload:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.delivery-upload span { font-size: 20px; }
.delivery-upload small { color: var(--muted); font-size: 13px; text-align: center; max-width: 280px; line-height: 1.5; }
.revision-message-box { display: grid; gap: 12px; }
.revision-message-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.revision-message-head b { display: block; font-size: 18px; }
.revision-message-head small { display: block; margin-top: 4px; color: var(--muted); font-weight: 800; }
.revision-message-head span { flex: 0 0 auto; border: 1px solid #cfe0ff; border-radius: 999px; background: #f8fbff; color: var(--blue); padding: 7px 12px; font-size: 12px; font-weight: 900; }
.revision-paste-zone,
.requirement-paste-zone { border: 1px dashed #b7c9e5; border-radius: 10px; background: #fbfdff; padding: 16px; outline: none; display: grid; gap: 8px; }
.revision-paste-zone:focus,
.requirement-paste-zone:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 101, 226, .12); }
.revision-paste-zone strong,
.requirement-paste-zone strong { color: var(--text); font-size: 15px; }
.revision-paste-zone small,
.requirement-paste-zone small { color: var(--muted); font-weight: 800; }
.revision-image-preview,
.requirement-image-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.requirement-image-preview.readonly { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.revision-preview-card,
.requirement-preview-card { position: relative; border: 1px solid var(--line); border-radius: 8px; background: white; overflow: hidden; }
.revision-preview-card img,
.requirement-preview-card img { width: 100%; height: 118px; object-fit: contain; display: block; background: #eef3fb; }
.requirement-image-preview.readonly .requirement-preview-card img { height: 160px; }
.revision-preview-card span,
.requirement-preview-card span { display: block; padding: 8px 10px; color: var(--muted); font-size: 12px; font-weight: 850; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.revision-remove-image,
.requirement-remove-image { position: absolute; top: 8px; right: 8px; border: 1px solid #f3c7c7; border-radius: 999px; background: #fffafa; color: var(--red); font-size: 12px; font-weight: 900; padding: 5px 8px; }
.material-upload-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.material-upload-row span { color: var(--muted); font-weight: 850; line-height: 1.45; }
.material-file-preview { display: grid; gap: 10px; }
.material-file-preview.readonly { margin-top: 2px; }
.material-file-card { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.material-file-card b { display: block; color: var(--ink); font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.material-file-card small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 850; }
.material-file-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.material-file-actions .secondary { min-height: 36px; padding: 0 12px; }
.ops-action-panel { padding: 18px; display: grid; gap: 14px; }
.ops-action-panel textarea { min-height: 132px; }
.action-row { display: flex; gap: 12px; flex-wrap: wrap; }
.action-row button, .submit-evaluation { min-height: 48px; }
.rating-row { display: grid; grid-template-columns: 120px 1fr; align-items: start; gap: 14px; }
.score-value { display: flex; align-items: baseline; gap: 4px; margin-bottom: 10px; color: var(--blue); }
.score-value strong { font-size: 30px; line-height: 1; }
.score-picker { display: grid; grid-template-columns: repeat(10, minmax(48px, 1fr)); gap: 6px; max-width: 620px; }
.score-picker button { border: 1px solid var(--line); background: white; color: var(--muted); border-radius: 7px; min-height: 34px; font-weight: 900; }
.score-picker button.active { background: var(--blue); border-color: var(--blue); color: white; }
.score-picker button:hover { border-color: #9bbcff; color: var(--blue); }
.quality-score-panel { border: 1px solid var(--line); border-radius: 10px; padding: 16px; background: #fff; display: grid; gap: 14px; }
.quality-score-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--soft-line); }
.quality-score-head b { display: block; font-size: 18px; }
.quality-score-head small { display: block; margin-top: 5px; color: var(--muted); font-weight: 900; }
.quality-score-head strong { display: flex; align-items: baseline; gap: 5px; color: var(--blue); font-size: 36px; line-height: 1; }
.quality-score-head em { font-style: normal; font-size: 16px; }
.quality-score-list { display: grid; gap: 10px; }
.quality-metric-row { display: grid; grid-template-columns: 170px minmax(280px, 1fr) 88px; align-items: center; gap: 14px; padding: 10px 0; }
.quality-metric-label { display: flex; align-items: center; gap: 10px; min-width: 0; }
.quality-metric-label b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 20px; }
.quality-metric-label span { color: var(--muted); font-weight: 900; line-height: 1.35; }
.quality-metric-control { display: grid; gap: 4px; }
.quality-score-slider { width: 100%; accent-color: var(--blue); cursor: pointer; }
.quality-ticks { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 900; }
.quality-score-number { width: 88px; min-height: 42px; border: 1px solid var(--line); border-radius: 8px; text-align: center; font-size: 17px; font-weight: 900; color: var(--ink); background: #fff; }
.flow { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.flow-row { display: grid; grid-template-columns: 130px 26px 1fr; gap: 10px; padding: 18px; border-top: 1px solid var(--soft-line); }
.flow-row:first-child { border-top: 0; }
.dot { width: 15px; height: 15px; border-radius: 50%; margin-top: 5px; background: var(--blue); }
.dot.green { background: var(--green); }
.dot.orange { background: var(--orange); }
.dot.red { background: var(--red); }
.flow-row b { display: block; font-size: 17px; margin-bottom: 7px; }
.flow-row p { margin: 0; color: var(--muted); font-weight: 800; }
.flow-attachments { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.flow-attachment { margin: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.flow-attachment img { width: 100%; height: 130px; object-fit: contain; display: block; background: #eef3fb; }
.flow-attachment figcaption { padding: 8px 10px; color: var(--muted); font-size: 12px; font-weight: 850; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.image-viewer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 23, 42, .76);
  display: grid;
  place-items: center;
  padding: 28px;
}
.image-viewer {
  width: min(1180px, 96vw);
  max-height: 92vh;
  display: grid;
  gap: 10px;
  position: relative;
}
.image-viewer-canvas {
  min-height: 220px;
  max-height: calc(92vh - 72px);
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f8fafc;
  overflow: auto;
  box-shadow: 0 24px 70px rgba(2, 6, 23, .38);
}
.image-viewer-canvas img {
  max-width: 100%;
  max-height: calc(92vh - 92px);
  object-fit: contain;
  display: block;
}
.image-viewer-caption {
  color: #fff;
  text-align: center;
  font-weight: 850;
  font-size: 14px;
}
.image-viewer-close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: #fff;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(2, 6, 23, .25);
}
.assign-table {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: auto;
  max-width: 100%;
}
.assign-table table {
  min-width: 900px;
  table-layout: fixed;
}
.assign-table th,
.assign-table td {
  text-align: center;
}
.assign-summary-table {
  background: #ffffff;
}
.assign-summary-table table {
  min-width: 940px;
  border-collapse: separate;
  border-spacing: 0;
}
.assign-summary-table th {
  background: #f8fbff;
  color: #64748b;
  font-size: 13px;
}
.assign-summary-table td {
  background: #ffffff;
  font-weight: 900;
  border-top: 1px solid #edf2f8;
}
.assign-summary-table .assign-summary-row {
  cursor: pointer;
  transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.assign-summary-table .assign-summary-row:hover td {
  background: #f7fbff;
}
.assign-summary-table .assign-summary-row.assigned td {
  background: #f4f8ff;
  box-shadow: none;
}
.assign-summary-table .assign-summary-row.assigned td:first-child,
.assign-table tr.selected-designer-row td:first-child {
  box-shadow: inset 3px 0 0 rgba(37, 99, 235, .68);
}
.assign-summary-table .assign-summary-row.assigned td:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}
.assign-summary-table .assign-summary-row.assigned td:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}
.assign-metric {
  display: inline-flex;
  min-width: 44px;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f1f5ff;
  color: #3154d4;
  font-weight: 900;
}
.assign-select-hint {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.assign-table .designer-col {
  width: 260px;
  text-align: left;
}
.assign-table .hour-col {
  width: 92px;
}
.assign-table .action-col {
  width: 130px;
}
.assign-designer-select {
  font-weight: 900;
}
.assign-table tr.selected-designer-row .designer-col {
  background: #f3f7ff;
  box-shadow: inset 4px 0 0 var(--blue);
}
.assign-table tr.level-match-row .designer-col {
  background: #f5fbf7;
}
.assign-table tr.selected-designer-row .assign-action:not(:disabled) {
  box-shadow: 0 8px 18px rgba(49, 98, 232, .16);
}
.slot {
  width: 100%;
  border: 0;
  border-radius: 8px;
  min-height: 54px;
  display: grid;
  place-items: center;
  gap: 2px;
  font-weight: 900;
  padding: 7px 6px;
  color: var(--ink);
  cursor: default;
}
.slot small {
  max-width: 84px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}
.slot.free { background: #dcfbe7; color: #145b32; }
.slot.overtime.free {
  background: #eef6ff;
  color: #24508f;
}
.slot.free.selected {
  outline: 2px solid #23a05a;
  box-shadow: 0 8px 16px rgba(25, 129, 72, .16);
  transform: translateY(-1px);
}
.slot:disabled {
  opacity: 1;
}
.slot.busy { background: #ffe2e5; cursor: not-allowed; }
.slot.detail { background: #dbeaff; cursor: not-allowed; }
.slot.overtime.busy,
.slot.overtime.detail {
  box-shadow: inset 0 0 0 1px rgba(47, 98, 230, .12);
}
.slot.busy small,
.slot.detail small { color: rgba(13, 24, 44, .64); }
.embedded-assign {
  display: grid;
  gap: 12px;
  padding-top: 8px;
}
.embedded-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--soft-line);
}
.embedded-head span {
  font-size: 18px;
  font-weight: 900;
}
.embedded-head small {
  color: var(--muted);
  font-size: 13px;
}
.embedded-assign .filters {
  grid-template-columns: minmax(360px, 2fr) minmax(180px, .7fr) minmax(180px, .7fr);
  padding: 0;
  border-bottom: 0;
}
.assign-filters {
  grid-template-columns: minmax(360px, 2fr) minmax(180px, .7fr) minmax(180px, .7fr);
  align-items: center;
}
.assign-context {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid #c8dcff;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}
.urgent-routing-note {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff5f5;
  color: var(--red);
  font-size: 13px;
  font-weight: 950;
}
.embedded-assign.urgent-mode .assign-context,
.embedded-assign.urgent-mode .assign-filters,
.embedded-assign.urgent-mode .assign-summary-table,
.embedded-assign.urgent-mode .assign-select-hint {
  opacity: .42;
  pointer-events: none;
  filter: grayscale(.15);
}
.lead-urgent-assign {
  display: grid;
  gap: 14px;
}
.lead-urgent-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff7f7;
}
.lead-urgent-head b {
  display: block;
  font-size: 16px;
}
.lead-urgent-head small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 850;
}
.lead-urgent-head span {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
}
.lead-urgent-actions {
  justify-content: flex-end;
}
.lead-urgent-table .lead-urgent-designer-row {
  cursor: pointer;
}
.lead-urgent-table .lead-urgent-designer-row:hover td {
  background: #f8fbff;
}
.lead-urgent-table .lead-urgent-designer-row.selected-designer-row td {
  background: #f3f7ff;
  border-top-color: #d7e4f8;
  border-bottom: 1px solid #d7e4f8;
  box-shadow: none;
  color: #0f172a;
}
.lead-urgent-table .lead-urgent-designer-row.selected-designer-row td:first-child {
  position: relative;
  box-shadow: inset 4px 0 0 #3154d4;
  background: linear-gradient(90deg, #eaf1ff 0%, #f3f7ff 100%);
}
.lead-urgent-table .lead-urgent-designer-row.selected-designer-row td:first-child b {
  color: #102a6b;
}
.lead-urgent-table .lead-urgent-designer-row.selected-designer-row .assign-metric,
.lead-urgent-table .lead-urgent-designer-row.selected-designer-row .worktime-pill {
  background: #ffffff;
  color: #3154d4;
  border: 1px solid #d7e4f8;
}
.lead-selected-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  padding: 4px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  background: #ffffff;
  color: #3154d4;
  font-size: 12px;
  font-weight: 950;
  vertical-align: middle;
}
.assign-action.assigned {
  background: var(--green);
  border-color: var(--green);
}
.designer-brief {
  display: grid;
  gap: 5px;
}
.designer-brief b {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}
.designer-brief small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.designer-hours {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.designer-hours span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid #dfe7f3;
  border-radius: 999px;
  background: #f7f9fd;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}
.designer-hours b {
  color: var(--ink);
  font-size: 11px;
}
.designer-hours span.overtime {
  border-color: #d8e7ff;
  background: #f2f7ff;
  color: #42638f;
}
.designer-hours span.workload {
  border-color: #bfd5ff;
  background: var(--blue-soft);
  color: var(--blue);
}
.start-work-panel {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--soft-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.start-work-panel div {
  display: grid;
  gap: 6px;
}
.start-work-panel small {
  color: var(--muted);
  font-weight: 800;
}
.feishu-import {
  display: grid;
  gap: 10px;
}
.agent-job-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dbe5f5;
  border-radius: 8px;
  background: #f8fbff;
}
.agent-job-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.agent-job-head div {
  display: grid;
  gap: 4px;
}
.agent-job-head b {
  font-size: 15px;
}
.agent-job-head small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
}
.agent-job-head span {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}
.agent-job-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.agent-job-card {
  position: relative;
  display: grid;
  gap: 5px;
  min-height: 88px;
  padding: 12px;
  border: 1px solid #dbe5f5;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: .18s ease;
}
.agent-job-card:hover,
.agent-job-card.active {
  border-color: var(--blue);
  box-shadow: 0 10px 24px rgba(45, 94, 230, .12);
}
.agent-job-card.active {
  background: #eef4ff;
}
.agent-job-card strong {
  font-size: 15px;
  line-height: 1.35;
}
.agent-job-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}
.agent-job-card em {
  justify-self: start;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}
.feishu-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.feishu-status {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fbfcfe;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.feishu-status.success {
  border-color: #b9e5c7;
  background: var(--green-soft);
  color: var(--green);
}
.feishu-status.error {
  border-color: #f3b6b4;
  background: var(--red-soft);
  color: var(--red);
}
.feishu-status a {
  color: inherit;
  font-weight: 900;
}

/* 2026 visual refresh: business-grade blue and white system skin. */
body {
  background:
    linear-gradient(180deg, #f7fbff 0%, #eef3fb 38%, #e9f0fa 100%);
  letter-spacing: 0;
}

.login-view {
  background:
    linear-gradient(120deg, rgba(6, 19, 44, .94) 0%, rgba(20, 64, 132, .88) 54%, rgba(8, 145, 178, .78) 100%),
    url("./demo网站截图/管理员账号工作台页面.png") center / cover;
}

.login-card {
  border-radius: 8px;
  border: 1px solid rgba(226, 236, 248, .55);
  background: rgba(255,255,255,.96);
  box-shadow: 0 30px 90px rgba(2, 8, 23, .32);
}

.login-copy {
  background:
    linear-gradient(145deg, rgba(8, 21, 48, .96), rgba(18, 60, 156, .86)),
    url("./demo网站截图/运营账号首页.png") center / cover;
}

.login-logo-card {
  width: 84px;
  margin: clamp(70px, 12vh, 130px) 0 12px;
}

.login-logo-card img {
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .30));
}

.login-brand strong,
.brand strong {
  letter-spacing: 0;
}

.login-copy h1 {
  max-width: 620px;
  font-size: 44px;
  font-weight: 950;
  margin: 0;
}

.login-copy p {
  color: rgba(232, 241, 255, .86);
  font-weight: 750;
  margin: 0;
}

.login-preview {
  margin-top: auto;
  height: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border-radius: 8px;
  padding: 12px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
}

.login-preview span {
  display: grid;
  gap: 6px;
  min-height: 94px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255,255,255,.88);
  color: var(--ink);
}

.login-preview b {
  font-size: 15px;
}

.login-preview em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.55;
}

.login-panel {
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.login-panel h2 {
  font-size: 30px;
  font-weight: 950;
}

.demo-accounts button,
.primary,
.secondary,
.period-pick-btn,
.module-period-controls select,
.panel-tools select,
select,
input,
textarea {
  border-radius: 8px;
}

.primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: #1d4ed8;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .18);
}

.primary:hover {
  filter: brightness(1.04);
}

.app-shell {
  background:
    linear-gradient(180deg, #f7fbff 0%, #eef3fb 100%);
}

.sidebar {
  width: 248px;
  padding: 20px 14px;
  background: linear-gradient(180deg, #081224 0%, #0d1b31 58%, #0a1323 100%);
  box-shadow: 8px 0 28px rgba(2, 8, 23, .18);
  overflow-x: hidden;
}

.sidebar .brand {
  padding: 0 6px 22px;
}

.brand-mark {
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 52%, #22c55e 100%);
}

.brand strong {
  font-size: 17px;
}

.brand small {
  color: #9fb0c8;
  font-weight: 750;
}

.nav {
  gap: 9px;
  min-width: 0;
  overflow-x: hidden;
}

.nav button,
.side-action {
  min-height: 42px;
  border-radius: 8px;
  font-weight: 900;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.nav button:hover,
.side-action:hover {
  background: rgba(255,255,255,.09);
  color: #fff;
}

.nav button.active {
  background: linear-gradient(135deg, #2f6df3, #1d4ed8);
  box-shadow: 0 12px 24px rgba(37, 99, 235, .24);
}

.nav-root {
  background: linear-gradient(90deg, rgba(37, 99, 235, .32), rgba(8, 145, 178, .08));
  border-color: rgba(125, 170, 255, .24);
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.nav-subhead {
  background: rgba(255,255,255,.065);
  color: #d8e4f5;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.nav button.nav-ticket {
  background: rgba(255,255,255,.055);
  min-width: 0;
}

.main {
  margin-left: 248px;
  width: calc(100% - 248px);
}

.topbar {
  height: 72px;
  border-bottom: 1px solid #e5edf7;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
}

.topbar h1 {
  font-size: 24px;
  font-weight: 950;
}

.content {
  padding: 26px 28px;
  gap: 22px;
}

.panel {
  border-radius: 8px;
  border: 1px solid #dfe8f5;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .06);
}

.panel-head {
  min-height: 66px;
  padding: 18px 22px;
}

.panel-title {
  font-size: 19px;
  font-weight: 950;
}

.panel-head small,
.panel-note {
  color: #64748b;
}

.ops-stats-grid,
.admin-kpi-grid {
  gap: 12px;
}

.ops-stat-card,
.admin-kpi,
.stat {
  border-radius: 8px;
  border-color: #dfe8f5;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.ops-stat-card {
  min-height: 112px;
  box-shadow: inset 0 3px 0 rgba(37, 99, 235, .08);
}

.ops-stat-card strong,
.admin-kpi strong,
.stat strong {
  color: #0f172a;
  font-weight: 950;
}

.admin-overview {
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}

.admin-kpi {
  padding: 18px;
  border-top: 0;
  box-shadow: inset 0 3px 0 currentColor;
}

.admin-kpi::after,
.designer-profile-card::after,
.dictionary-form-hero::after {
  display: none;
}

.admin-status-strip,
.notice-filter-tip {
  background: #f8fbff;
}

.admin-group-panel,
.admin-people-panel {
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.admin-group-panel.design {
  background: linear-gradient(180deg, #f7fff9 0%, #ffffff 100%);
}

.admin-group-row,
.admin-rank-row,
.metric,
.info-box,
.mini-card {
  border-radius: 8px;
  background: #ffffff;
}

.table-wrap {
  background: #fff;
}

table {
  min-width: 1080px;
}

th {
  height: 48px;
  background: #f6f9fd;
  color: #64748b;
  font-size: 12px;
  font-weight: 950;
}

td {
  height: 62px;
  color: #111827;
}

tr.ticket-row:hover td {
  background: #f8fbff;
}

tr.ticket-row.urgent-ticket-row td {
  background: #fff8f6;
}

tr.ticket-row.urgent-ticket-row td:first-child {
  box-shadow: inset 4px 0 0 #ef4444;
}

tr.ticket-row.urgent-ticket-row:hover td {
  background: #fff1ed;
}

tr.ticket-row.product-id-overdue-row td {
  background: #fff7f7;
}

tr.ticket-row.product-id-overdue-row td:first-child {
  box-shadow: inset 4px 0 0 var(--red);
}

tr.ticket-row.designer-row-waiting td {
  background: #fffaf0;
}

tr.ticket-row.designer-row-waiting td:first-child {
  box-shadow: inset 4px 0 0 #f59e0b;
}

tr.ticket-row.designer-row-delivering td {
  background: #f6f9ff;
}

tr.ticket-row.designer-row-delivering td:first-child {
  box-shadow: inset 4px 0 0 #2f6df6;
}

tr.ticket-row.designer-row-evaluating td {
  background: #fff8ed;
}

tr.ticket-row.designer-row-evaluating td:first-child {
  box-shadow: inset 4px 0 0 #f97316;
}

tr.ticket-row.designer-row-dispute td {
  background: #fff5f5;
}

tr.ticket-row.designer-row-dispute td:first-child {
  box-shadow: inset 4px 0 0 #ef4444;
}

tr.ticket-row.has-unread-update td {
  background: #fff1f2;
  border-bottom-color: #fecdd3;
}

tr.ticket-row.has-unread-update td:first-child {
  box-shadow: inset 5px 0 0 #e11d48;
}

tr.ticket-row.has-unread-update:hover td {
  background: #ffe4e6;
}

.side-action.notice-alert {
  background: #991b1b;
  border: 1px solid #fecaca;
  box-shadow: inset 4px 0 0 #fca5a5;
  color: #fff;
  animation: notice-button-pulse 1.6s ease-in-out infinite;
}

.side-action.notice-alert:hover {
  background: #7f1d1d;
  color: #fff;
}

.side-action.notice-alert b {
  background: #fff;
  color: #b91c1c;
}

@keyframes notice-button-pulse {
  0%, 100% { box-shadow: inset 4px 0 0 #fca5a5, 0 0 0 0 rgba(248, 113, 113, .28); }
  50% { box-shadow: inset 4px 0 0 #fca5a5, 0 0 0 6px rgba(248, 113, 113, 0); }
}

.notice-toast-host {
  position: fixed;
  top: 78px;
  right: 24px;
  z-index: 80;
  width: min(380px, calc(100vw - 32px));
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.notice-toast {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 14px 14px 16px;
  border: 1px solid #fecaca;
  border-left: 4px solid #dc2626;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .18);
  pointer-events: auto;
}

.notice-toast-content {
  min-width: 0;
}

.notice-toast-content b {
  display: block;
  color: #991b1b;
  font-size: 15px;
}

.notice-toast-content p {
  margin: 5px 0 0;
  color: #475569;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.5;
}

.notice-toast-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.notice-toast-open,
.notice-toast-close {
  min-height: 32px;
  border-radius: 6px;
  font-weight: 850;
}

.notice-toast-open {
  padding: 0 10px;
  border: 1px solid #fecaca;
  background: #fff5f5;
  color: #b91c1c;
}

.notice-toast-close {
  width: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 20px;
  line-height: 1;
}

.unread-detail-summary {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #fecaca;
  border-left: 4px solid #e11d48;
  border-radius: 8px;
  background: #fffafa;
}

.unread-detail-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #fee2e2;
}

.unread-detail-summary-head span,
.unread-detail-summary-head b {
  display: block;
}

.unread-detail-summary-head span {
  color: #be123c;
  font-size: 13px;
  font-weight: 900;
}

.unread-detail-summary-head b {
  margin-top: 3px;
  color: #0f172a;
  font-size: 16px;
}

.unread-detail-summary-head em {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fee2e2;
  color: #be123c;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.unread-detail-summary-list {
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

.unread-detail-summary-list article {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
}

.unread-detail-summary-list time {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.unread-detail-summary-list b {
  color: #0f172a;
  font-size: 14px;
}

.unread-detail-summary-list p,
.unread-detail-summary-more {
  margin: 3px 0 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.5;
}

.flow-row.flow-row-unread {
  background: #fffafa;
}

.flow-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.flow-title-line > b {
  margin-bottom: 7px;
}

.flow-new-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  margin-bottom: 7px;
}

.filters {
  background: #fbfdff;
  padding: 14px 18px;
}

.schedule {
  gap: 14px;
  padding: 12px 18px 18px;
}

.timeline-board,
.assign-table,
.flow,
.drawer,
.upload-box,
.asset-card {
  border-radius: 8px;
}

.gantt-scroll {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.gantt-row {
  min-height: 38px;
  background:
    repeating-linear-gradient(90deg, rgba(203, 213, 225, .68) 0, rgba(203, 213, 225, .68) 1px, transparent 1px, transparent 150px),
    #fff;
}

.gantt-bar {
  height: 28px;
  min-height: 28px;
  top: 5px;
  border-radius: 8px;
  font-size: 10px;
}

.gantt-bar strong {
  font-size: 10px;
}

.gantt-bar span {
  font-size: 9px;
}

.designer-profile-card {
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
}

.designer-grid {
  gap: 14px;
}

.lead-designer-card:hover,
.lead-designer-card.active {
  border-color: #93b4ff;
}

.drawer {
  box-shadow: -22px 0 56px rgba(15, 23, 42, .18);
}

.drawer-head {
  background: #fff;
}

.state-tabs button {
  min-height: 72px;
}

.update-reminder {
  background: #fff1f2;
  color: #dc2626;
}

.update-reminder-strong {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: 0;
}

.update-reminder-strong .update-dot {
  width: 8px;
  height: 8px;
  background: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .14);
}

.ticket-created-at {
  color: #475569;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.ticket-time-sort {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.time-sort-button {
  min-height: 40px;
  padding: 0 11px;
  color: #64748b;
  border-color: #d8e3f2;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.time-sort-button.is-active {
  color: #1d4ed8;
  border-color: #93c5fd;
  background: #eff6ff;
}

.read-reminder {
  color: #64748b;
  background: #eef3f8;
}

.score-picker {
  max-width: 760px;
  grid-template-columns: repeat(13, minmax(46px, 1fr));
}

/* Functional panels use a quiet color system so adjacent modules are easier to scan. */
body .panel {
  --module-bg: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  --module-border: #dfe8f5;
  --module-primary: #2563eb;
  --module-accent: rgba(37, 99, 235, .18);
  --module-head-bg: rgba(37, 99, 235, .035);
  --module-formula-bg: linear-gradient(180deg, #f8fbff, #eef5ff);
  --module-formula-border: #cfe0ff;
  background: var(--module-bg);
  border-color: var(--module-border);
  box-shadow: inset 4px 0 0 var(--module-accent), 0 14px 36px rgba(15, 23, 42, .06);
}

body .panel > .panel-head:first-child {
  background: linear-gradient(90deg, var(--module-head-bg), rgba(255,255,255,0));
  border-bottom: 1px solid rgba(223, 232, 245, .74);
}

.content > .panel:nth-of-type(6n+1),
.content > .stats > .panel:nth-child(6n+1) {
  --module-bg: linear-gradient(180deg, #f8fbff 0%, #ffffff 68%);
  --module-border: #cfe0ff;
  --module-accent: #2f6df6;
  --module-head-bg: rgba(47, 109, 246, .065);
}

.content > .panel:nth-of-type(6n+2),
.content > .stats > .panel:nth-child(6n+2) {
  --module-bg: linear-gradient(180deg, #f7fff9 0%, #ffffff 68%);
  --module-border: #ccebd6;
  --module-accent: #22a865;
  --module-head-bg: rgba(34, 168, 101, .07);
}

.content > .panel:nth-of-type(6n+3),
.content > .stats > .panel:nth-child(6n+3) {
  --module-bg: linear-gradient(180deg, #fffbf3 0%, #ffffff 68%);
  --module-border: #f4ddbd;
  --module-accent: #d97706;
  --module-head-bg: rgba(217, 119, 6, .075);
}

.content > .panel:nth-of-type(6n+4),
.content > .stats > .panel:nth-child(6n+4) {
  --module-bg: linear-gradient(180deg, #faf8ff 0%, #ffffff 68%);
  --module-border: #ddd6fe;
  --module-accent: #7c3aed;
  --module-head-bg: rgba(124, 58, 237, .06);
}

.content > .panel:nth-of-type(6n+5),
.content > .stats > .panel:nth-child(6n+5) {
  --module-bg: linear-gradient(180deg, #f3fbff 0%, #ffffff 68%);
  --module-border: #c7ebf5;
  --module-accent: #0891b2;
  --module-head-bg: rgba(8, 145, 178, .06);
}

.content > .panel:nth-of-type(6n+6),
.content > .stats > .panel:nth-child(6n+6) {
  --module-bg: linear-gradient(180deg, #fff8f8 0%, #ffffff 68%);
  --module-border: #fed7d7;
  --module-accent: #e14c4c;
  --module-head-bg: rgba(225, 76, 76, .055);
}

.payroll-rating-panel {
  --module-bg: linear-gradient(180deg, #f8fbff 0%, #ffffff 72%);
  --module-border: #cfe0ff;
  --module-primary: #1d4ed8;
  --module-accent: #2f6df6;
  --module-head-bg: rgba(47, 109, 246, .065);
}

.payroll-module-group {
  --group-border: #dfe8f5;
  --group-bg: linear-gradient(180deg, rgba(248, 251, 255, .76), rgba(255,255,255,.42));
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--group-border);
  border-radius: 10px;
  background: var(--group-bg);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .045);
}

.payroll-module-group > .panel {
  margin: 0;
  box-shadow: inset 4px 0 0 var(--module-accent), 0 8px 20px rgba(15, 23, 42, .035);
}

.payroll-workspace {
  display: grid;
  gap: 18px;
}

.payroll-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  border: 1px solid #d7e4f8;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fbff, #fff);
}

.payroll-page-head h2 {
  margin: 0 0 6px;
  font-size: 24px;
  color: #0f172a;
}

.payroll-page-head p {
  margin: 0;
  color: #64748b;
  font-weight: 800;
}

.payroll-module-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 0 22px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(239, 246, 255, .78));
  box-shadow: inset 0 -2px 0 rgba(37, 99, 235, .08);
}

.payroll-module-title b {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #0f172a;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 1000;
  letter-spacing: 0;
}

.payroll-module-title b em {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-style: normal;
  font-size: 20px;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .2);
}

.level-system .payroll-module-title {
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(255, 247, 237, .84));
  box-shadow: inset 0 -2px 0 rgba(217, 119, 6, .12);
}

.level-system .payroll-module-title b em {
  background: #d97706;
  box-shadow: 0 8px 18px rgba(217, 119, 6, .18);
}

.payroll-module-title span {
  max-width: 52%;
  color: #475569;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.45;
  text-align: right;
}

.performance-stat-page {
  gap: 10px;
}

.performance-stat-head {
  min-height: 78px;
  border-color: #cfe0ff;
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 56%, #eef5ff 100%);
  color: var(--ink);
  box-shadow: inset 4px 0 0 rgba(47, 109, 246, .25), 0 10px 28px rgba(15, 23, 42, .045);
}

.performance-stat-head h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 30px;
  font-weight: 1000;
  text-align: left;
}

.performance-stat-head p {
  color: var(--muted);
}

.performance-stat-source {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 680px;
}

.performance-stat-source span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #d8e3fb;
  border-radius: 8px;
  background: #fff;
  color: #3154d4;
  font-size: 12px;
  font-weight: 950;
}

.performance-stat-section {
  padding: 0;
  overflow: hidden;
  border-color: #d7e4f8;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: inset 4px 0 0 rgba(47, 109, 246, .18), 0 10px 26px rgba(15, 23, 42, .04);
}

.performance-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 430px);
  gap: 12px;
  align-items: stretch;
}

.performance-stat-grid + .performance-stat-grid {
  margin-top: 12px;
}

.performance-concept-grid {
  grid-auto-rows: auto;
}

.performance-stat-grid .performance-stat-section {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  min-height: 0;
}

.performance-stat-band {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 12px;
  border-bottom: 1px solid #e3ecfb;
  background: linear-gradient(90deg, #f8fbff 0%, #eef5ff 100%);
  color: #0f172a;
}

.stat-work .performance-stat-band {
  background: linear-gradient(90deg, #eef5ff 0%, #f8fbff 100%);
  border-bottom-color: #cfe0ff;
}

.stat-quality .performance-stat-band {
  background: linear-gradient(90deg, #f0fdf4 0%, #f8fffb 100%);
  border-bottom-color: #ccebd6;
}

.stat-level .performance-stat-band {
  background: linear-gradient(90deg, #fff7ed 0%, #fffaf4 100%);
  border-bottom-color: #fed7aa;
}

.stat-rank .performance-stat-band {
  background: linear-gradient(90deg, #f5f3ff 0%, #fbfaff 100%);
  border-bottom-color: #ddd6fe;
}

.stat-work { box-shadow: inset 4px 0 0 rgba(47, 109, 246, .28), 0 10px 26px rgba(15, 23, 42, .04); }
.stat-quality { box-shadow: inset 4px 0 0 rgba(22, 163, 74, .28), 0 10px 26px rgba(15, 23, 42, .04); }
.stat-level { box-shadow: inset 4px 0 0 rgba(217, 119, 6, .30), 0 10px 26px rgba(15, 23, 42, .04); }
.stat-rank { box-shadow: inset 4px 0 0 rgba(109, 93, 252, .28), 0 10px 26px rgba(15, 23, 42, .04); }

.performance-stat-band h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 1000;
  line-height: 1.1;
}

.performance-stat-band small {
  display: block;
  margin-top: 3px;
  color: #475569;
  font-weight: 850;
  font-size: 11px;
  line-height: 1.25;
}

.performance-stat-band .module-period-controls {
  flex: 0 0 auto;
  margin: 0;
}

.performance-stat-band .module-period-controls select,
.performance-stat-band .period-pick-btn {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  border-color: #cfe0ff;
  background: rgba(255, 255, 255, .92);
}

.performance-concept-section {
  padding: 0;
  overflow: hidden;
  border-color: #d7e4f8;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .04);
}

.performance-concept-head {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid #e3ecfb;
}

.performance-concept-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 1000;
}

.performance-concept-head small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.concept-quality {
  box-shadow: inset 4px 0 0 rgba(22, 163, 74, .26), 0 10px 26px rgba(15, 23, 42, .04);
}

.concept-quality .performance-concept-head {
  background: linear-gradient(90deg, #f0fdf4 0%, #f8fffb 100%);
  border-bottom-color: #ccebd6;
}

.concept-quality .performance-concept-head h2 {
  color: #15803d;
}

.concept-efficiency {
  box-shadow: inset 4px 0 0 rgba(217, 119, 6, .28), 0 10px 26px rgba(15, 23, 42, .04);
}

.concept-efficiency .performance-concept-head {
  background: linear-gradient(90deg, #fff7ed 0%, #fffaf4 100%);
  border-bottom-color: #fed7aa;
}

.concept-efficiency .performance-concept-head h2 {
  color: #b45309;
}

.performance-concept-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 14px 14px;
}

.performance-concept-item {
  min-height: 74px;
  padding: 10px 12px;
  border: 1px dashed #cfe0ff;
  border-radius: 8px;
  background: #fbfdff;
}

.performance-concept-item b {
  display: block;
  margin-bottom: 5px;
  color: #3154d4;
  font-size: 13px;
  font-weight: 1000;
}

.performance-concept-item span {
  display: block;
  color: #475569;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
}

.efficiency-map-wrap {
  padding: 12px 14px 14px;
  overflow: auto;
}

.efficiency-map-compact {
  min-width: 720px;
  table-layout: fixed;
  border-collapse: collapse;
}

.efficiency-map-compact th,
.efficiency-map-compact td {
  height: 33px;
  padding: 7px 9px;
  border: 1px solid #e8eef7;
  font-size: 12px;
  white-space: nowrap;
}

.efficiency-map-compact th {
  background: #fff7ed;
  color: #b45309;
  font-weight: 1000;
}

.efficiency-map-compact td {
  color: #334155;
  font-weight: 850;
}

.efficiency-map-compact td:nth-child(3),
.efficiency-map-compact td:nth-child(4) {
  color: #1d4ed8;
  font-weight: 950;
}

.performance-concept-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 14px 0;
}

.performance-stat-grid .performance-concept-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.performance-concept-row article {
  min-height: 68px;
  padding: 10px 12px;
  border: 1px dashed #cfe0ff;
  border-radius: 8px;
  background: #fbfdff;
}

.performance-concept-row b {
  display: block;
  margin-bottom: 5px;
  color: #3154d4;
  font-size: 13px;
  font-weight: 1000;
}

.performance-concept-row span {
  display: block;
  color: #475569;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
}

.performance-stat-table {
  min-width: 0;
  margin-top: 0;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.performance-stat-section .table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  border-top: 1px solid #e8eef7;
  background: #ffffff;
  isolation: isolate;
}

.performance-stat-grid .performance-stat-table {
  min-width: 620px;
}

.performance-stat-grid .work-eval-table {
  min-width: 560px;
}

.performance-stat-grid .quality-eval-table,
.performance-stat-grid .level-eval-table {
  min-width: 700px;
}

.performance-stat-grid .rank-eval-table {
  min-width: 920px;
}

.performance-stat-table th {
  position: sticky;
  top: 0;
  z-index: 5;
  height: 40px;
  padding: 8px 12px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  color: #3154d4;
  font-size: 12px;
  font-weight: 1000;
  line-height: 1.2;
  border-top: 0;
  border-bottom: 1px solid #d8e3f2;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
}

.stat-work .performance-stat-table th {
  background: linear-gradient(180deg, #f8fbff 0%, #eaf2ff 100%);
  color: #1d4ed8;
  border-bottom-color: #93c5fd;
}

.stat-quality .performance-stat-table th {
  background: linear-gradient(180deg, #f8fffb 0%, #e9f9ef 100%);
  color: #15803d;
  border-bottom-color: #86efac;
}

.stat-level .performance-stat-table th {
  background: linear-gradient(180deg, #fffaf4 0%, #fff1df 100%);
  color: #b45309;
  border-bottom-color: #fdba74;
}

.stat-rank .performance-stat-table th {
  background: linear-gradient(180deg, #fbfaff 0%, #f0edff 100%);
  color: #6d28d9;
  border-bottom-color: #c4b5fd;
}

.performance-stat-table td {
  height: 46px;
  padding: 8px 12px;
  background: #ffffff;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  border-bottom: 1px solid #e8eef7;
  vertical-align: middle;
}

.performance-stat-table tbody tr:hover td {
  background: #f8fbff;
}

.performance-stat-table td:first-child {
  width: 150px;
  background: #f8fbff;
  box-shadow: inset -1px 0 0 #edf3fb;
}

.performance-stat-table th:first-child {
  width: 150px;
  box-shadow: inset -1px 0 0 rgba(148, 163, 184, .22), 0 8px 18px rgba(15, 23, 42, .06);
}

.stat-work .performance-stat-table th:first-child {
  background: linear-gradient(180deg, #f8fbff 0%, #e4efff 100%);
}

.stat-quality .performance-stat-table th:first-child {
  background: linear-gradient(180deg, #f8fffb 0%, #def7e8 100%);
}

.stat-level .performance-stat-table th:first-child {
  background: linear-gradient(180deg, #fffaf4 0%, #ffead0 100%);
}

.stat-rank .performance-stat-table th:first-child {
  background: linear-gradient(180deg, #fbfaff 0%, #ece8ff 100%);
}

.performance-stat-table td:first-child .designer-name-with-group {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  max-width: 100%;
  white-space: normal;
}

.performance-stat-table .designer-group-tag.sm {
  min-height: 18px;
  padding: 0 6px;
  font-size: 10px;
}

.performance-stat-table .score-pill {
  min-height: 22px;
  padding: 0 8px;
  font-size: 11px;
}

.rank-eval-table th:first-child,
.rank-eval-table td:first-child {
  width: 132px;
}

.quality-eval-table th:first-child,
.quality-eval-table td:first-child,
.level-eval-table th:first-child,
.level-eval-table td:first-child {
  width: 140px;
}

.work-eval-table td:nth-child(3) strong {
  color: #3154d4;
  font-size: 15px;
}

.quality-eval-table td:nth-child(n+2):nth-child(-n+4),
.rank-eval-table td:nth-child(n+2) {
  color: #3154d4;
}

.rank-eval-table .rank-number {
  display: inline-flex;
  min-width: 46px;
  color: #3154d4;
  font-weight: 1000;
}

.rank-eval-table em {
  color: #64748b;
  font-style: normal;
  font-weight: 900;
}

.performance-contribution-editor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.performance-contribution-editor.rank {
  justify-content: center;
}

.contribution-rank-label {
  min-width: 44px;
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.performance-contribution-input {
  width: 76px;
  min-height: 30px;
  border: 1px solid #cfe0ff;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f7faff);
  color: #1d4ed8;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 950;
  text-align: center;
  outline: none;
}

.performance-contribution-input::placeholder {
  color: #94a3b8;
}

.performance-contribution-input:focus {
  border-color: #2f6df6;
  box-shadow: 0 0 0 3px rgba(47, 109, 246, .14);
  background: #fff;
}

.performance-contribution-input.negative {
  color: #dc2626;
  border-color: #fecaca;
  background: linear-gradient(180deg, #fff, #fff7f7);
}

.performance-contribution-input.positive {
  color: #166534;
  border-color: #bbf7d0;
  background: linear-gradient(180deg, #fff, #f7fff9);
}

.performance-level-rule-input {
  width: 88px;
  min-height: 30px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #fffaf4);
  color: #9a3412;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 1000;
  text-align: center;
  outline: none;
}

.performance-level-rule-input:hover {
  border-color: #fdba74;
  background: #fff7ed;
}

.performance-level-rule-input:focus {
  border-color: #d97706;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, .14);
  background: #fff;
}

.performance-stat-page .performance-stat-section,
.performance-stat-page .performance-concept-section {
  border-radius: 8px;
  border-color: #dfe8f5;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .045), inset 4px 0 0 var(--module-accent, rgba(47, 109, 246, .22));
}

.performance-stat-page .performance-stat-band,
.performance-stat-page .performance-concept-head {
  min-height: 46px;
  padding: 9px 14px;
  background: linear-gradient(90deg, #f8fbff 0%, #eef5ff 100%);
}

.performance-stat-page .performance-stat-band h2,
.performance-stat-page .performance-concept-head h2 {
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: 0;
}

.performance-stat-page .performance-stat-band small,
.performance-stat-page .performance-concept-head small {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
}

.performance-stat-page .performance-stat-table th {
  height: 42px;
  padding: 8px 12px;
  font-size: 12px;
  text-align: left;
}

.performance-stat-page .performance-stat-table td {
  height: 48px;
  font-size: 12px;
}

.performance-stat-page .performance-stat-table td:first-child .designer-name-with-group,
.management-table-wrap .designer-name-with-group {
  align-items: flex-start;
}

.performance-stat-rules {
  margin-top: 4px;
}

.formula-manager-notice {
  margin: 0 18px 12px;
  padding: 12px 14px;
  border: 1px solid #cfe0ff;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbff, #eef5ff);
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.5;
}

.formula-manager-notice.warning {
  border-color: #fed7aa;
  background: linear-gradient(180deg, #fff7ed, #fffbeb);
  color: #c2410c;
}

.performance-logic-guide {
  margin: 0 18px 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 10px;
}

.performance-logic-guide article {
  padding: 12px 14px;
  border: 1px solid #ddd6fe;
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfaff, #f7f3ff);
}

.performance-logic-guide b {
  display: block;
  margin-bottom: 6px;
  color: #4c1d95;
  font-size: 14px;
}

.performance-logic-guide span {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.55;
}

.performance-score-logic-grid {
  margin: 0 18px 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 10px;
}

.performance-score-logic-grid article {
  padding: 14px;
  border: 1px solid #ddd6fe;
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfaff, #f7f3ff);
}

.performance-score-logic-grid b {
  display: block;
  margin-bottom: 6px;
  color: #4c1d95;
  font-size: 14px;
}

.performance-rank-panel .performance-score-logic-grid b {
  min-height: 38px;
  display: grid;
  place-items: center;
  margin: -14px -14px 10px;
  padding: 0 12px;
  border-bottom: 1px solid #d8b4fe;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: #fff;
  font-size: 17px;
  font-weight: 950;
  text-align: center;
  letter-spacing: 0;
}

.performance-score-logic-grid span {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.55;
}

.performance-rank-list {
  display: grid;
  margin-top: 8px;
}

.performance-rank-list .leaderboard-row {
  border-top-color: #eadfff;
}

.performance-rank-list .leaderboard-row strong {
  color: #0f172a;
  font-size: 13px;
}

.performance-band-rule-embedded {
  margin-top: 16px;
  padding-top: 4px;
  border-top: 1px solid #eadfff;
}

.performance-band-rule-embedded > .panel-head {
  margin-top: 0;
  background: linear-gradient(90deg, rgba(124, 58, 237, .045), rgba(255,255,255,0));
}

.performance-band-rule-embedded .panel-title {
  font-size: 18px;
}

.performance-head-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid #edf2ec;
  font-weight: 850;
}

.leaderboard-row span {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eaf8ed;
  color: #15803d;
  font-size: 12px;
}

.leaderboard-row em {
  font-style: normal;
  color: #2563eb;
}

.level-evaluation-table {
  min-width: 980px;
}

.performance-system {
  --group-border: #ddd6fe;
  --group-bg: linear-gradient(180deg, rgba(250, 245, 255, .82), rgba(255,255,255,.48));
}

.level-system {
  --group-border: #f4ddbd;
  --group-bg: linear-gradient(180deg, rgba(255, 251, 235, .84), rgba(255,255,255,.5));
}

.payroll-rating-panel .panel-title,
.payroll-module-group .panel-title {
  font-size: 20px;
  letter-spacing: 0;
}

.payroll-rating-panel .panel-head small,
.payroll-module-group .panel-head small {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.45;
}

.admin-password-panel,
.dictionary-detail-panel {
  --module-bg: linear-gradient(180deg, #f3fbff 0%, #ffffff 70%);
  --module-border: #c7ebf5;
  --module-accent: #0891b2;
  --module-head-bg: rgba(8, 145, 178, .06);
}

.admin-overview {
  --module-bg: linear-gradient(180deg, #f8fbff 0%, #ffffff 72%);
  --module-border: #cfe0ff;
  --module-accent: #2f6df6;
  --module-head-bg: rgba(47, 109, 246, .055);
}

.admin-group-panel {
  --module-bg: linear-gradient(180deg, #f8fbff 0%, #ffffff 72%);
  --module-border: #cfe0ff;
  --module-accent: #2f6df6;
  --module-head-bg: rgba(47, 109, 246, .055);
}

.admin-group-panel.design,
.admin-people-panel {
  --module-bg: linear-gradient(180deg, #f7fff9 0%, #ffffff 72%);
  --module-border: #ccebd6;
  --module-accent: #22a865;
  --module-head-bg: rgba(34, 168, 101, .06);
}

.nav-root.lead-score-nav-root {
  background: linear-gradient(90deg, rgba(245, 158, 11, .22), rgba(49, 84, 212, .08));
  border-color: rgba(245, 158, 11, .38);
}

.nav-root.lead-score-nav-root .icon { color: #fde68a; }
.nav-subhead.amber { border-left: 3px solid #f59e0b; }

.lead-quality-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #cfe0ff;
  border-radius: 10px;
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.lead-quality-panel.is-scored {
  border-color: #ccefd7;
  background: linear-gradient(180deg, #f5fcf7 0%, #ffffff 100%);
}

.lead-quality-panel.is-scored .lead-quality-slider {
  opacity: .58;
  cursor: not-allowed;
}

.lead-quality-panel.is-scored .lead-quality-number,
.lead-quality-panel.is-scored .lead-quality-comment {
  background: #f4f7fb;
  color: var(--muted);
  cursor: not-allowed;
}

.lead-quality-panel.is-scored .lead-quality-icon {
  background: #e8f8ee;
  color: #16a34a;
}

.save-lead-quality.is-locked,
.save-lead-quality:disabled {
  box-shadow: none;
  cursor: not-allowed;
  opacity: .72;
}

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

.lead-quality-head b {
  display: block;
  color: var(--ink);
  font-size: 18px;
}

.lead-quality-head small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 900;
}

.lead-quality-total-card {
  min-width: 150px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  text-align: right;
}

.lead-quality-total-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.lead-quality-total-card strong {
  color: var(--blue);
  font-size: 32px;
  line-height: 1;
}

.lead-quality-total-card em {
  color: var(--muted);
  font-style: normal;
  font-weight: 900;
}

.lead-quality-rows {
  display: grid;
  gap: 10px;
}

.lead-quality-row {
  display: grid;
  grid-template-columns: 220px minmax(260px, 1fr) 90px;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--soft-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .78);
}

.lead-quality-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.lead-quality-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 1000;
}

.lead-quality-label b {
  display: block;
  color: var(--ink);
}

.lead-quality-label small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 900;
  line-height: 1.35;
}

.lead-quality-control {
  display: grid;
  gap: 4px;
}

.lead-quality-slider {
  width: 100%;
  accent-color: var(--blue);
  cursor: pointer;
}

.lead-quality-ticks {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.lead-quality-number {
  width: 90px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  text-align: center;
}

.lead-quality-comment {
  width: 100%;
  min-height: 86px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  resize: vertical;
}

.lead-quality-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lead-adjustment-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #d7e4f8;
  border-radius: 8px;
  background: #f8fbff;
}
.lead-adjustment-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.lead-adjustment-head b {
  color: #0f172a;
  font-size: 16px;
}
.lead-adjustment-head small {
  color: #64748b;
  font-weight: 850;
}
.lead-adjustment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lead-adjustment-chip {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid #d7e4f8;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
}
.lead-adjustment-chip input {
  width: 15px;
  height: 15px;
}
.lead-adjustment-chip.addition em {
  color: var(--green);
}
.lead-adjustment-chip.deduct em {
  color: var(--red);
}
.lead-adjustment-chip em {
  font-style: normal;
  font-weight: 1000;
}
.lead-adjustment-chip:has(input:checked) {
  border-color: #93c5fd;
  background: #eff6ff;
}
.lead-adjustment-chip input:disabled {
  opacity: .7;
}
.lead-adjustment-empty {
  color: #64748b;
  font-size: 13px;
  font-weight: 850;
}

.lead-quality-tip {
  color: var(--muted);
  font-weight: 900;
}

@media (max-width: 1100px) {
  .login-card { grid-template-columns: 1fr; }
  .login-copy { min-height: 360px; }
  .login-preview { grid-template-columns: 1fr; }
  .stats, .designer-grid, .kanban, .ops-stats-grid, .admin-kpi-grid, .admin-people-grid, .admin-group-grid, .admin-security-summary, .agent-job-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .management-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .management-group-card-grid,
  .management-lower-grid { grid-template-columns: 1fr; }
  .performance-logic-guide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .performance-score-logic-grid { grid-template-columns: 1fr; }
  .designer-profile-card { grid-template-columns: 1fr; }
  .designer-data-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-attribution-grid { grid-template-columns: 1fr; }
  .product-id-editor { grid-template-columns: 1fr; }
  .schedule, .dict-layout { grid-template-columns: 1fr; }
  .commerce-dict-board { grid-template-columns: 1fr; }
  .commerce-platform-panel { border-right: 0; border-bottom: 1px solid #d9e5f5; }
  .design-project-board { grid-template-columns: 1fr; }
  .design-project-column { border-right: 0; border-bottom: 1px solid #d9e5f5; }
  .primary-column .logic-stage-head::after,
  .secondary-column .logic-stage-head::after { display: none; }
  .design-project-actions { grid-template-columns: repeat(2, minmax(132px, 1fr)); width: 100%; }
  .design-project-actions button { width: 100%; }
  .design-project-group { grid-template-columns: 1fr; }
  .design-project-primary,
  .design-project-master { border-right: 0; border-bottom: 1px solid #d9e5f5; }
  .filters, .feishu-row { grid-template-columns: 1fr 1fr; }
  .embedded-assign .filters, .assign-filters { grid-template-columns: minmax(240px, 2fr) minmax(150px, 1fr) minmax(150px, 1fr); }
  .start-work-panel { align-items: stretch; flex-direction: column; }
  .quality-metric-row { grid-template-columns: 150px minmax(220px, 1fr) 88px; }
  .lead-quality-row { grid-template-columns: 180px minmax(180px, 1fr) 80px; }
  .performance-stat-head { align-items: flex-start; flex-direction: column; }
  .performance-stat-source { justify-content: flex-start; max-width: none; }
  .performance-stat-grid { grid-template-columns: 1fr; }
  .performance-concept-list { grid-template-columns: 1fr; }
  .performance-concept-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .login-view { padding: 14px; }
  .login-card { min-height: auto; border-radius: 10px; }
  .login-copy { padding: 24px; min-height: 300px; }
  .login-copy h1 { font-size: 28px; }
  .login-panel { padding: 24px; }
  .sidebar { transform: translateX(-100%); transition: .25s ease; }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; width: 100%; }
  .mobile-menu { display: block; }
  .topbar { padding: 0 12px; }
  .topbar h1 { font-size: 18px; }
  .top-actions select, .custom-period-controls { display: none; }
  .content { padding: 14px; }
  .stats, .kanban, .designer-grid, .ops-stats-grid, .admin-kpi-grid, .admin-people-grid, .admin-group-grid, .admin-security-summary, .form-grid, .detail-grid, .state-tabs, .deliveries, .agent-job-list { grid-template-columns: 1fr; }
  .management-metric-grid,
  .management-group-card-grid,
  .management-lower-grid { grid-template-columns: 1fr; }
  .management-group-metrics { grid-template-columns: 1fr; }
  .quality-score-head, .quality-metric-row { grid-template-columns: 1fr; display: grid; }
  .lead-quality-head, .lead-quality-row, .lead-quality-actions { grid-template-columns: 1fr; display: grid; }
  .quality-score-head { align-items: start; }
  .quality-score-number { width: 100%; }
  .lead-quality-total-card { text-align: left; }
  .lead-quality-number { width: 100%; }
  .performance-logic-guide { grid-template-columns: 1fr; margin: 0 14px 14px; }
  .performance-score-logic-grid { grid-template-columns: 1fr; margin: 0 14px 14px; }
  .designer-data-grid { grid-template-columns: 1fr; }
  .delivery-progress-head { flex-direction: column; }
  .delivery-score { text-align: left; }
  .design-project-toolbar { align-items: flex-start; flex-direction: column; }
  .design-project-actions { justify-content: flex-start; }
  .design-project-master-metrics { grid-template-columns: 1fr; }
  .delivery-progress-card { padding: 20px 16px; gap: 18px; }
  .delivery-progress-head h2 { font-size: 26px; }
  .delivery-progress-time { text-align: left; }
  .delivery-progress-time strong { font-size: 34px; }
  .delivery-progress-time span { font-size: 24px; }
  .efficiency-progress-hero { padding: 20px 16px; }
  .efficiency-progress-main { align-items: flex-start; flex-direction: column; }
  .efficiency-progress-score { align-items: flex-start; flex-direction: column; gap: 8px; }
  .efficiency-progress-score span { font-size: 18px; }
  .efficiency-progress-score strong { font-size: 44px; }
  .efficiency-progress-formula { font-size: 15px; white-space: normal; }
  .efficiency-progress-bar .bar { height: 22px; }
  .efficiency-progress-rules { padding: 14px; }
  .efficiency-progress-rules p { font-size: 15px; }
  .designer-profile-card { margin: 12px; padding: 14px; }
  .admin-group-row { grid-template-columns: 1fr; }
  .admin-group-state { justify-content: flex-start; }
  .feishu-row, .assign-filters { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 70px 1fr 42px; }
  .performance-stat-head { padding: 18px; }
  .performance-stat-head h2 { font-size: 24px; }
  .performance-stat-band { align-items: flex-start; flex-direction: column; }
  .performance-stat-grid { gap: 12px; }
  .permission-module-head { display: block; }
  .permission-module-head small { display: block; margin-top: 6px; }
  .permission-module-grid { grid-template-columns: 1fr; }
  .efficiency-map-compact { min-width: 680px; }
  .performance-concept-row { grid-template-columns: 1fr; }
  .performance-stat-table { min-width: 760px; }
}
