:root {
  --blue: #1677ff;
  --blue-dark: #0f5fd7;
  --cyan: #24b3ff;
  --bg: #edf3fa;
  --bg-soft: #f7fafe;
  --panel: #ffffff;
  --text: #1f2329;
  --text-2: #4e5969;
  --text-3: #86909c;
  --line: #e4ecf5;
  --green: #12b76a;
  --orange: #ff9f1a;
  --red: #f04438;
  --purple: #7c6cff;
  --teal: #11b7b0;
  --shadow: 0 12px 30px rgba(22, 119, 255, .08);
  --shadow-soft: 0 8px 18px rgba(31, 35, 41, .05);
  --side-width: 248px;
  --right-width: 356px;
  --top-height: 72px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  color: var(--text);
  background: linear-gradient(180deg, #f3f7fc 0%, #edf3fa 100%);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.admin-shell {
  display: grid;
  grid-template-columns: var(--side-width) minmax(820px, 1fr) var(--right-width);
  grid-template-rows: var(--top-height) 1fr;
  height: 100vh;
  min-width: 0;
}

.sidebar {
  grid-row: 1 / 3;
  grid-column: 1;
  overflow: auto;
  padding: 16px 14px 18px 16px;
  color: #fff;
  background: linear-gradient(180deg, #0f5fd7 0%, #1677ff 48%, #2db5ff 100%);
  border-right: 1px solid rgba(255, 255, 255, .16);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 16px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  border-radius: 14px;
  color: #0f5fd7;
  font-size: 20px;
  font-weight: 950;
  background: linear-gradient(180deg, #fff, #e8fbff);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .12);
}

.brand-title {
  font-size: 18px;
  line-height: 1.1;
  font-weight: 950;
}

.brand-sub {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, .9);
}

.side-block {
  margin-bottom: 14px;
}

.side-title {
  margin: 0 10px 8px;
  font-size: 12px;
  font-weight: 950;
  color: rgba(255, 255, 255, .92);
}

.org-tree,
.side-note {
  padding: 8px;
  margin: 0 6px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  background: rgba(255, 255, 255, .1);
}

.org-node,
.domain-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: calc(100% - 12px);
  min-height: 38px;
  margin: 4px 6px;
  padding: 0 10px;
  border-radius: 13px;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  background: transparent;
}

.org-node {
  width: 100%;
  margin: 3px 0;
  font-size: 12px;
}

.org-node.level-1 {
  padding-left: 22px;
}

.org-node.level-2 {
  padding-left: 34px;
}

.org-node.active,
.domain-item.active {
  background: rgba(255, 255, 255, .18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 8px 18px rgba(0, 0, 0, .08);
}

.domain-item:hover,
.org-node:hover {
  background: rgba(255, 255, 255, .14);
}

.nav-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  flex: 0 0 20px;
  border-radius: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  background: rgba(255, 255, 255, .18);
}

.side-note {
  padding: 12px;
  font-size: 12px;
  line-height: 1.6;
}

.side-note b,
.side-note span {
  display: block;
}

.side-note span {
  margin-top: 5px;
  color: rgba(255, 255, 255, .86);
}

.topbar {
  grid-row: 1;
  grid-column: 2 / 4;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto minmax(300px, 390px) auto;
  align-items: center;
  gap: 16px;
  padding: 13px 20px;
  background: rgba(255, 255, 255, .93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  z-index: 20;
}

.top-title {
  min-width: 0;
}

.page-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 950;
}

.page-sub {
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
}

.breadcrumb,
.search-box,
.top-pill,
.admin-user {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.breadcrumb {
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: #f7fafe;
}

.search-icon {
  width: 14px;
  height: 14px;
  border: 2px solid #7aa7df;
  border-radius: 50%;
  position: relative;
  flex: 0 0 14px;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  right: -5px;
  bottom: -3px;
  border-radius: 2px;
  background: #7aa7df;
  transform: rotate(45deg);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.search-box input::placeholder {
  color: var(--text-3);
}

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

.top-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 13px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.top-pill.primary {
  color: #0f5fd7;
  background: linear-gradient(180deg, #eef6ff, #e8faff);
}

.top-pill span {
  min-width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: 999px;
  color: #d92d20;
  font-size: 11px;
  background: #fff1f0;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 7px 0 12px;
  border-radius: 18px;
}

.user-copy {
  display: grid;
  gap: 2px;
  text-align: right;
}

.user-copy b {
  color: var(--text);
  font-size: 12px;
  line-height: 1.1;
}

.user-copy span {
  color: var(--text-3);
  font-size: 10px;
}

.user-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  border: 1px solid rgba(22, 119, 255, .14);
  border-radius: 50%;
  color: #2457d6;
  font-size: 13px;
  font-weight: 950;
  background: linear-gradient(180deg, #dff4ff, #b0f7ff);
}

.main {
  grid-row: 2;
  grid-column: 2;
  overflow: auto;
  padding: 18px;
  min-width: 0;
}

.rightbar {
  grid-row: 2;
  grid-column: 3;
  overflow: auto;
  padding: 18px 18px 18px 0;
  border-left: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .25));
  min-width: 0;
}

.hero-panel,
.panel,
.right-panel {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.hero-panel {
  overflow: hidden;
  padding: 18px;
  color: #f4f8ff;
  background: linear-gradient(135deg, #102b59 0%, #173d79 58%, #1c4c90 100%);
  border-color: rgba(73, 164, 255, .18);
  box-shadow: 0 14px 30px rgba(8, 18, 38, .18);
}

.panel,
.right-panel {
  padding: 16px;
  background: #fff;
}

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

.section-title {
  color: var(--text);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 950;
}

.hero-panel .section-title,
.dark-title {
  color: #fff;
}

.section-sub {
  margin-top: 5px;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 600;
}

.hero-panel .section-sub,
.dark-sub {
  color: rgba(255, 255, 255, .78);
}

.ghost-btn,
.close-btn {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid #d9eaff;
  border-radius: 999px;
  color: #0f5fd7;
  background: #fff;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.hero-panel .ghost-btn {
  color: #fff;
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .12);
}

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

.kpi-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 116px;
  padding: 14px;
  border: 1px solid rgba(157, 211, 255, .16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .04));
}

.ring {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at center, #132b59 0 52%, transparent 53%), conic-gradient(var(--ring-color) 0 var(--ring-value), rgba(255, 255, 255, .1) var(--ring-value) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}

.ring span {
  color: #fff;
  font-size: 21px;
  font-weight: 950;
}

.kpi-name {
  color: #d9e8ff;
  font-size: 14px;
  font-weight: 950;
}

.kpi-desc {
  margin-top: 6px;
  color: rgba(255, 255, 255, .76);
  font-size: 11px;
  line-height: 1.45;
}

.mini-bars {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.mini-bar {
  display: grid;
  grid-template-columns: 58px 1fr 34px;
  gap: 8px;
  align-items: center;
}

.mini-bar span {
  color: rgba(255, 255, 255, .78);
  font-size: 10px;
  font-weight: 750;
}

.bar-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .11);
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #49a4ff, #7ad0ff);
}

.hero-lower {
  display: grid;
  grid-template-columns: 1.1fr .9fr 1fr;
  gap: 14px;
}

.dark-card {
  min-height: 248px;
  padding: 14px;
  border: 1px solid rgba(157, 211, 255, .16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
}

.dark-title {
  margin-bottom: 5px;
  font-size: 15px;
  font-weight: 950;
}

.dark-sub {
  min-height: 38px;
  font-size: 12px;
  line-height: 1.55;
}

.funnel {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.funnel-row {
  display: grid;
  grid-template-columns: 82px 1fr 48px;
  gap: 8px;
  align-items: center;
}

.funnel-name,
.funnel-value {
  color: rgba(255, 255, 255, .84);
  font-size: 11px;
  font-weight: 850;
}

.funnel-value {
  text-align: right;
}

.funnel-bar {
  height: 22px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
}

.funnel-inner {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2c91ff, #59c8ff);
}

.radar-card {
  position: relative;
  width: 220px;
  height: 190px;
  margin: 12px auto 0;
}

.radar-card svg {
  width: 100%;
  height: 100%;
}

.radar-line {
  fill: none;
  stroke: rgba(255, 255, 255, .14);
  stroke-width: 1.4;
}

.radar-fill {
  fill: rgba(255, 209, 102, .35);
  stroke: #ffd166;
  stroke-width: 2;
}

.radar-label {
  position: absolute;
  color: rgba(255, 255, 255, .84);
  font-size: 11px;
  font-weight: 850;
}

.radar-label.top {
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
}

.radar-label.right {
  top: 82px;
  right: -18px;
}

.radar-label.bottom {
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
}

.radar-label.left {
  top: 82px;
  left: -18px;
}

.state-flow {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-top: 14px;
}

.state-chip {
  min-height: 46px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .07);
}

.state-chip b {
  display: block;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.state-chip span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, .72);
  font-size: 10px;
  line-height: 1.35;
}

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

.plate-card,
.service-card,
.check-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fafcff);
  box-shadow: var(--shadow-soft);
}

.plate-card {
  min-height: 146px;
  padding: 14px;
}

.plate-icon,
.service-icon,
.check-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  background: linear-gradient(135deg, #1677ff, #24b3ff);
}

.plate-card:nth-child(2) .plate-icon,
.service-card:nth-child(2) .service-icon,
.check-card:nth-child(2) .check-icon {
  background: linear-gradient(135deg, #12b76a, #6ee7b7);
}

.plate-card:nth-child(3) .plate-icon,
.service-card:nth-child(3) .service-icon,
.check-card:nth-child(3) .check-icon {
  background: linear-gradient(135deg, #7c6cff, #a99cff);
}

.plate-card:nth-child(4) .plate-icon,
.service-card:nth-child(4) .service-icon,
.check-card:nth-child(4) .check-icon {
  background: linear-gradient(135deg, #ff9f1a, #ffd166);
}

.plate-card:nth-child(5) .plate-icon,
.service-card:nth-child(5) .service-icon,
.check-card:nth-child(5) .check-icon {
  background: linear-gradient(135deg, #11b7b0, #65e6df);
}

.plate-card b,
.service-card b,
.check-card b {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 950;
}

.plate-card span,
.service-card span,
.check-card span {
  display: block;
  margin-top: 7px;
  color: var(--text-2);
  font-size: 11px;
  line-height: 1.55;
}

.plate-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: #0f5fd7;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
  background: #eef6ff;
}

.segmented {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7fafe;
}

.segmented button {
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--text-2);
  background: transparent;
  font-size: 11px;
  font-weight: 950;
}

.segmented button.active {
  color: #fff;
  background: linear-gradient(90deg, #1677ff, #24b3ff);
  box-shadow: 0 8px 14px rgba(22, 119, 255, .18);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.filter {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text-2);
  background: #fff;
  box-shadow: var(--shadow-soft);
  font-size: 12px;
  font-weight: 850;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0 8px;
}

th {
  padding: 0 10px 4px;
  color: var(--text-3);
  text-align: left;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

td {
  padding: 12px 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  background: #fafcff;
  font-size: 13px;
  font-weight: 700;
  vertical-align: middle;
}

td:first-child {
  border-left: 1px solid var(--line);
  border-radius: 14px 0 0 14px;
  color: var(--text);
  font-weight: 950;
}

td:last-child {
  border-right: 1px solid var(--line);
  border-radius: 0 14px 14px 0;
}

.status {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  color: #0f5fd7;
  background: #eef6ff;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.status.green {
  color: #1f8f5b;
  background: #f1fff8;
}

.status.orange {
  color: #d97917;
  background: #fff8f1;
}

.status.red {
  color: #d92d20;
  background: #fff1f0;
}

.status.purple {
  color: #6655e8;
  background: #f4f0ff;
}

.ops {
  display: flex;
  align-items: center;
  gap: 8px;
}

.op-btn {
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #1677ff;
  background: #eef6ff;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.op-btn.warn {
  color: #d97917;
  background: #fff8f1;
}

.op-btn.danger {
  color: #d92d20;
  background: #fff1f0;
}

.service-card {
  min-height: 162px;
  padding: 14px;
}

.service-items {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.service-item {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
  border-radius: 12px;
  color: var(--text-2);
  background: #f7fafe;
  font-size: 11px;
  font-weight: 850;
}

.service-item em {
  color: #0f5fd7;
  font-style: normal;
  font-weight: 950;
}

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

.check-card {
  min-height: 112px;
  padding: 13px;
}

.right-panel {
  padding: 14px;
}

.right-title {
  margin-bottom: 11px;
  color: var(--text);
  font-size: 15px;
  font-weight: 950;
}

.action-card {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid #dcecff;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff, #f3f9ff);
}

.action-card b {
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.field {
  min-height: 58px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.field span {
  display: block;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 750;
}

.field strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 13px;
  font-weight: 950;
}

.action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.solid-btn,
.line-btn {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 950;
}

.solid-btn {
  color: #fff;
  background: linear-gradient(90deg, #1677ff, #24b3ff);
}

.line-btn {
  color: #0f5fd7;
  border: 1px solid #d9eaff;
  background: #fff;
}

.line-btn.danger {
  color: var(--red);
  border-color: rgba(240, 68, 56, .22);
}

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

.right-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fafcff;
}

.right-item-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
}

.right-item b {
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 950;
}

.right-item p {
  margin: 0;
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.5;
}

.tiny {
  margin-top: 6px;
  color: var(--text-3);
  font-size: 11px;
  line-height: 1.45;
}

.drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 25, 45, .22);
}

.drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 100;
  width: 520px;
  overflow: auto;
  border-left: 1px solid var(--line);
  background: #fff;
  box-shadow: -18px 0 48px rgba(31, 35, 41, .16);
}

.drawer-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
}

.drawer-title {
  color: var(--text);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 950;
}

.drawer-sub {
  margin-top: 5px;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.5;
}

.drawer-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.drawer-section {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fafcff);
}

.drawer-section h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 950;
}

.drawer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.drawer-note {
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.7;
}

.file-manager {
  background: linear-gradient(180deg, #f7fbff, #fff);
}

.file-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.file-form label {
  display: grid;
  gap: 6px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 850;
}

.file-form select,
.file-form input,
.file-form textarea {
  min-width: 0;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: #fff;
}

.file-form select,
.file-form input {
  height: 38px;
}

.file-form textarea {
  padding: 10px;
  min-height: 96px;
  line-height: 1.5;
  resize: vertical;
}

.file-form .file-picker,
.file-form .solid-btn,
.file-form .full,
.file-form .config-actions {
  grid-column: 1 / 3;
}

.config-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

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

.file-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 88px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.config-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 98px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.config-copy {
  min-width: 0;
}

.config-copy b,
.config-copy span,
.config-copy em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.config-copy b {
  color: var(--text);
  font-size: 13px;
  font-weight: 950;
}

.config-copy span {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 750;
}

.config-copy em {
  margin-top: 4px;
  color: var(--text-3);
  font-size: 10px;
  font-style: normal;
}

.file-preview {
  width: 76px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #eaf4ff, #f7fafe);
}

.file-preview.video {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  background: linear-gradient(135deg, #7c6cff, #24b3ff);
}

.file-copy {
  min-width: 0;
}

.file-copy b,
.file-copy span,
.file-copy em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-copy b {
  color: var(--text);
  font-size: 13px;
  font-weight: 950;
}

.file-copy span {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 750;
}

.file-copy em {
  margin-top: 4px;
  color: var(--text-3);
  font-size: 10px;
  font-style: normal;
}

.file-actions {
  display: grid;
  gap: 6px;
}

.file-actions .line-btn {
  height: 28px;
}

.file-empty {
  padding: 18px;
  border: 1px dashed #cfe1f6;
  border-radius: 16px;
  color: var(--text-2);
  text-align: center;
  font-size: 12px;
  font-weight: 850;
  background: #f7fafe;
}

.timeline {
  display: grid;
  gap: 9px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 9px;
}

.timeline-dot {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, #1677ff, #24b3ff);
  font-size: 11px;
  font-weight: 950;
}

.timeline-copy b {
  display: block;
  color: var(--text);
  font-size: 12px;
  font-weight: 950;
}

.timeline-copy span {
  display: block;
  margin-top: 4px;
  color: var(--text-3);
  font-size: 11px;
  line-height: 1.5;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 120;
  min-width: 168px;
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 950;
  background: rgba(15, 95, 215, .96);
  box-shadow: 0 12px 28px rgba(22, 119, 255, .22);
  transform: translateX(-50%);
}

.login-mask {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(15, 95, 215, .94), rgba(36, 179, 255, .86));
}

.login-mask[hidden] {
  display: none;
}

.login-card {
  width: 420px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 24px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 24px 80px rgba(8, 43, 103, .22);
}

.login-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  font-size: 22px;
  font-weight: 950;
  background: linear-gradient(135deg, #1677ff, #24b3ff);
  box-shadow: 0 14px 28px rgba(22, 119, 255, .22);
}

.login-card h1 {
  margin: 18px 0 8px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 950;
}

.login-card p {
  margin: 0 0 20px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.6;
}

.login-card label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 850;
}

.login-card input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  color: var(--text);
  background: #f7fafe;
}

.login-card input:focus {
  border-color: rgba(22, 119, 255, .55);
  box-shadow: 0 0 0 4px rgba(22, 119, 255, .1);
}

.login-card .solid-btn {
  width: 100%;
  height: 46px;
  margin-top: 4px;
}

.login-tip {
  margin-top: 14px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 1500px) {
  .admin-shell {
    grid-template-columns: 214px minmax(680px, 1fr) 280px;
  }

  .topbar {
    grid-template-columns: minmax(210px, 1fr) minmax(220px, 320px) auto;
    gap: 10px;
  }

  .top-pill:nth-child(4),
  .breadcrumb {
    display: none;
  }

  .top-actions {
    gap: 6px;
  }

  .top-pill {
    padding: 0 10px;
    font-size: 12px;
  }

  .search-box {
    min-width: 0;
  }

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

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

  .hero-lower .dark-card:last-child {
    grid-column: 1 / 3;
  }

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

@media (max-width: 1320px) {
  .admin-shell {
    grid-template-columns: 196px minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
  }

  .sidebar {
    grid-row: 1 / 4;
    grid-column: 1;
    padding: 12px 10px;
  }

  .topbar {
    grid-row: 1;
    grid-column: 2;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    padding: 12px 14px;
  }

  .top-title,
  .search-box,
  .top-actions {
    width: 100%;
  }

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

  .top-actions {
    flex-wrap: wrap;
  }

  .admin-user {
    margin-left: auto;
  }

  .main {
    grid-row: 2;
    grid-column: 2;
    padding: 14px;
  }

  .rightbar {
    grid-row: 3;
    grid-column: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-height: 360px;
    padding: 0 14px 14px;
    overflow: auto;
    border-left: 0;
    border-top: 1px solid var(--line);
    background: #f7fafe;
  }

  .right-panel {
    margin-bottom: 0;
  }

  .hero-panel,
  .panel {
    border-radius: 18px;
  }

  .hero-lower,
  .service-grid,
  .check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-lower .dark-card:last-child {
    grid-column: auto;
  }

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

@media (max-width: 1100px) {
  .admin-shell {
    grid-template-columns: 176px minmax(0, 1fr);
  }

  .plate-grid,
  .service-grid,
  .check-grid,
  .rightbar {
    grid-template-columns: 1fr;
  }

  .hero-lower,
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}
