:root {
  --bg: #f5f7fa;
  --panel: #ffffff;
  --panel-soft: #f3f6f8;
  --text: #1f2937;
  --muted: #6b7280;
  --weak: #9ca3af;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --blue: #2563eb;
  --teal: #14b8a6;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --cyan: #1f6f8b;
  --shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  --shadow-soft: 0 1px 4px rgba(15, 23, 42, 0.04);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #f7fafb 0, var(--bg) 260px);
  color: var(--text);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

.loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--text);
}

.loading-card {
  min-width: min(360px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.loading-mark {
  width: 54px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #2db58c;
  color: #10231c;
  font-weight: 800;
}

.loading-title {
  font-size: 16px;
  font-weight: 800;
}

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

.noscript {
  margin: 12px auto;
  width: min(560px, calc(100% - 32px));
  border: 1px solid #efbbb8;
  border-radius: 8px;
  background: #fff0ef;
  color: #aa2f2a;
  padding: 12px;
  text-align: center;
}

.toast-host {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 80;
  width: min(520px, calc(100vw - 28px));
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  border: 1px solid #b8eadf;
  border-radius: 12px;
  background: rgba(240, 253, 249, 0.96);
  color: #075e4a;
  box-shadow: 0 18px 38px rgba(10, 44, 66, 0.18);
  padding: 12px 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  backdrop-filter: blur(12px);
}

.toast::before {
  content: "✓";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #16b983;
  color: #fff;
  font-weight: 800;
  grid-row: 1 / span 2;
}

.toast strong,
.toast span {
  display: block;
}

.toast strong {
  font-size: 13px;
}

.toast span {
  color: #246f5f;
  font-size: 13px;
  line-height: 1.45;
}

.toast.error {
  border-color: #fecaca;
  background: rgba(255, 248, 248, 0.96);
  color: #991b1b;
}

.toast.error::before {
  content: "!";
  background: #ef4444;
}

.toast.error span {
  color: #b91c1c;
}

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

button {
  border: 0;
  cursor: pointer;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}

.sidebar {
  background: #111f27;
  color: #fff;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #2db58c;
  color: #10231c;
  font-weight: 800;
}

.brand-copy strong {
  display: block;
  font-size: 16px;
}

.brand-copy span {
  display: block;
  margin-top: 3px;
  color: #aab8c4;
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav button {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  background: transparent;
  color: #d8e0e7;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.nav button.active {
  background: #24343f;
  color: #fff;
  box-shadow: inset 3px 0 0 #2db58c;
}

.nav button.nav-child {
  margin-left: 28px;
  min-height: 38px;
  font-size: 13px;
}

.nav button.nav-child .nav-icon {
  color: #94d5e2;
}

.nav-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #8fd7be;
}

.sidebar-foot {
  margin-top: auto;
  color: #9cadb9;
  font-size: 12px;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
}

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 86px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 4;
  backdrop-filter: blur(10px);
}

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

.breadcrumb {
  color: var(--weak);
  font-size: 12px;
  margin-bottom: 5px;
}

.page-title h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.page-title p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

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

.user-chip {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.user-chip > span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef2f7;
  color: var(--text);
  font-weight: 700;
}

.user-chip strong,
.user-chip small {
  display: block;
}

.user-chip strong {
  font-size: 13px;
}

.user-chip small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.search {
  width: min(320px, 28vw);
  min-width: 190px;
}

.user-switch {
  width: min(220px, 22vw);
  min-width: 160px;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 10%, rgba(18, 203, 212, 0.16), transparent 28%),
    linear-gradient(180deg, #f8fbfd 0, #eef5fa 100%);
}

.login-card {
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 26px;
  display: grid;
  gap: 16px;
}

.login-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
}

.login-card h1 {
  margin: 0;
  font-size: 24px;
}

.login-card p,
.login-hint {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  outline: 0;
}

.input,
.select {
  height: 38px;
  padding: 0 11px;
}

.input.compact {
  width: 150px;
}

.textarea {
  min-height: 78px;
  padding: 10px 11px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: #6aa7ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.content {
  padding: 24px 28px 36px;
  min-width: 0;
}

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

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

.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  color: var(--text);
}

.stat:hover {
  border-color: #75a7f5;
  transform: translateY(-1px);
}

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

.stat strong {
  display: block;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

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

.stat em {
  color: var(--blue);
  font-size: 12px;
  font-style: normal;
}

.two-col {
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  margin-top: 16px;
}

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

.panel-head {
  min-height: 56px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-head h2 {
  margin: 0;
  font-size: 16px;
}

.record-count {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.records-head {
  align-items: flex-start;
}

.record-filters {
  justify-content: flex-end;
}

.panel-body {
  padding: 20px;
}

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

.task-actions {
  display: inline-grid;
  grid-template-columns: repeat(2, auto) 40px;
  align-items: center;
  justify-content: start;
  gap: 8px;
  min-width: 192px;
}

.task-actions .btn:not(.icon) {
  min-width: 64px;
}

.tasks-panel table {
  min-width: 820px;
  table-layout: fixed;
}

.tasks-panel th:nth-child(1),
.tasks-panel td:nth-child(1) {
  width: 92px;
}

.tasks-panel th:nth-child(2),
.tasks-panel td:nth-child(2) {
  width: 74px;
}

.tasks-panel th:nth-child(3),
.tasks-panel td:nth-child(3) {
  width: 150px;
}

.tasks-panel th:nth-child(4),
.tasks-panel td:nth-child(4) {
  width: 190px;
}

.tasks-panel th:nth-child(5),
.tasks-panel td:nth-child(5) {
  width: 62px;
}

.tasks-panel th:nth-child(6),
.tasks-panel td:nth-child(6) {
  width: 92px;
}

.tasks-panel th:nth-child(7),
.tasks-panel td:nth-child(7),
.tasks-panel th:nth-child(8),
.tasks-panel td:nth-child(8) {
  width: 76px;
}

.tasks-panel th:nth-child(9),
.tasks-panel td:nth-child(9) {
  width: 210px;
}

.tasks-panel th:last-child,
.tasks-panel td:last-child {
  position: sticky;
  right: 0;
  z-index: 1;
  background: #fff;
  box-shadow: -8px 0 16px rgba(20, 48, 76, 0.05);
}

.tasks-panel th:last-child {
  background: #f4f8fb;
  z-index: 2;
}

.control-layout {
  display: grid;
  gap: 16px;
}

.account-submit {
  align-self: end;
}

.account-list {
  display: grid;
  gap: 14px;
}

.department-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 14px;
  align-items: start;
}

.department-column {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbfd;
  padding: 12px;
  min-width: 0;
}

.department-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 2px 12px;
}

.department-head strong,
.department-head span {
  display: block;
}

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

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

.account-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 14px;
}

.account-card.disabled {
  opacity: 0.62;
  background: #f7fafc;
}

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

.account-head strong,
.account-head span {
  display: block;
}

.account-head span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.permission-section {
  display: grid;
  gap: 8px;
}

.permission-section > label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.permission-grid.products {
  grid-template-columns: 1fr;
}

.permission-grid.operations {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.permission-chip {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef3f7;
  color: var(--text);
  padding: 0 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  overflow-wrap: anywhere;
}

.permission-chip.checked {
  border-color: #7dd3c7;
  background: #e7fbf7;
  color: #075e4a;
}

.permission-chip:disabled {
  cursor: default;
  opacity: 0.8;
}

.btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  background: #e8eef3;
  color: #1f2b33;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  font-weight: 500;
}

.btn.primary {
  background: var(--blue);
  color: #fff;
  box-shadow: none;
}

.btn.success {
  background: var(--green);
  color: #fff;
}

.btn.danger {
  background: #f4dddd;
  color: var(--red);
}

.btn.icon {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 8px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.table-wrap {
  overflow: auto;
}

.mobile-task-list {
  display: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

th {
  color: var(--muted);
  font-weight: 600;
  background: #f9fafb;
}

tbody tr:hover {
  background: #f8fafb;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.pill.pending {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}

.pill.running {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.pill.done,
.pill.pass {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.pill.fail {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}

.pill.neutral {
  background: #f3f4f6;
  color: #4b5563;
  border-color: #e5e7eb;
}

.quality-strip {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.quality-strip strong,
.quality-strip span {
  display: block;
}

.quality-strip span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.quality-strip.passed {
  background: #eefaf4;
  border-color: #a9dec9;
}

.quality-strip.failed {
  background: #fff0ef;
  border-color: #efbbb8;
}

.bar-chart {
  height: 236px;
  display: grid;
  grid-template-columns: repeat(7, minmax(30px, 1fr));
  gap: 12px;
  align-items: end;
  padding: 20px 8px 8px;
}

.bar-item {
  display: grid;
  gap: 8px;
  justify-items: center;
  align-items: end;
  height: 100%;
}

.bar {
  width: 100%;
  max-width: 42px;
  min-height: 8px;
  border-radius: 7px 7px 3px 3px;
  background: var(--cyan);
}

.bar-label {
  color: var(--muted);
  font-size: 12px;
}

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

.daily-row {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 9px 12px;
  display: grid;
  grid-template-columns: 84px repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
}

.daily-row strong {
  font-size: 14px;
}

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

.daily-row .pass-text {
  color: var(--green);
}

.daily-row .fail-text {
  color: var(--red);
  font-weight: 700;
}

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

.task-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  color: var(--text);
  text-align: left;
}

.task-row.as-button:hover {
  border-color: #75a7f5;
  background: #f8fbff;
}

.task-row strong {
  display: block;
  margin-bottom: 4px;
}

.task-row small {
  display: block;
  color: var(--muted);
  line-height: 1.5;
}

.mobile-task-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 12px;
}

.mobile-task-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.mobile-task-top strong,
.mobile-task-top span {
  display: block;
}

.mobile-task-top strong {
  font-size: 15px;
}

.mobile-task-top span:not(.pill) {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.mobile-task-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mobile-task-meta div {
  min-width: 0;
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 8px;
}

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

.mobile-task-meta span {
  display: block;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.mobile-task-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.library-layout {
  display: grid;
  grid-template-columns: 260px 300px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.library-tabs {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

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

.library-overview {
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  box-shadow: var(--shadow-soft);
}

.library-overview > div {
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}

.library-overview > div:last-child {
  border-right: 0;
}

.library-overview label,
.library-overview span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.library-overview strong {
  display: block;
  margin: 8px 0 5px;
  font-size: 28px;
  line-height: 1;
}

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

.product-list-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.list-item {
  width: 100%;
  min-height: 44px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: left;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.list-item:hover {
  border-color: #bfdbfe;
  background: #f8fbff;
}

.list-item.active {
  border-color: #93c5fd;
  background: #eff6ff;
}

.list-main {
  min-width: 0;
}

.list-main strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-main span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

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

.detail-title h2 {
  margin: 0;
  font-size: 20px;
}

.detail-title p {
  margin: 6px 0 0;
  color: var(--muted);
}

.compare-panel .panel-head {
  align-items: flex-start;
}

.compare-select {
  width: min(320px, 38vw);
  background-color: #fff;
}

.compare-picker {
  display: grid;
  grid-template-columns: minmax(160px, 0.9fr) minmax(220px, 1.2fr) auto;
  gap: 10px;
  align-items: center;
}

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

.compare-product-card {
  position: relative;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbff 0, #ffffff 100%);
  padding: 16px;
}

.compare-remove {
  position: absolute;
  top: 10px;
  right: 10px;
}

.compare-product-card label,
.compare-product-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.compare-product-card strong {
  display: block;
  margin: 7px 0 6px;
  font-size: 18px;
}

.compare-title {
  margin: 22px 0 10px;
  font-size: 16px;
  font-weight: 700;
}

.compare-table th {
  width: 180px;
}

.compare-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  min-width: 760px;
}

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

.metric-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.metric-card.has-data {
  border-color: #a9dec9;
  background: #fbfffd;
}

.metric-card.has-data .mini {
  background: #eaf8f1;
}

.metric-card.no-data {
  border-color: #e3e8ed;
  background: #fafbfc;
}

.metric-card.no-data .metric-top strong {
  color: #5d6973;
}

.metric-card.no-data .metric-top span,
.metric-card.no-data .mini label,
.metric-card.no-data .mini span {
  color: #8a96a1;
}

.metric-card.no-data .mini {
  background: #f0f3f6;
}

.metric-card[open] {
  box-shadow: var(--shadow);
}

.metric-summary {
  padding: 13px 54px 13px 13px;
  display: grid;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}

.metric-summary::-webkit-details-marker {
  display: none;
}

.metric-summary::after {
  content: "展开";
  position: absolute;
  top: 14px;
  right: 54px;
  color: var(--muted);
  font-size: 12px;
}

.metric-card[open] .metric-summary::after {
  content: "收起";
}

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

.metric-top strong {
  font-size: 15px;
}

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

.metric-delete {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
}

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

.mini {
  background: var(--panel-soft);
  border-radius: 8px;
  padding: 8px;
  min-width: 0;
}

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

.mini span {
  display: block;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-history {
  border-top: 1px solid var(--line);
  padding: 0 13px 13px;
}

.metric-history table {
  min-width: 760px;
}

.metric-history th,
.metric-history td {
  padding: 10px 12px;
}

.evidence-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.file-pick {
  position: relative;
  overflow: hidden;
  min-height: 44px;
}

.file-pick input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.evidence-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.evidence-item {
  width: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  display: grid;
}

.evidence-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--panel-soft);
}

.evidence-item.video > span {
  height: 68px;
  display: grid;
  place-items: center;
  background: #e8f7fb;
  color: var(--blue);
  font-weight: 800;
}

.evidence-item small {
  padding: 5px 6px;
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

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

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

.empty {
  min-height: 170px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
}

.drawer.open {
  display: block;
}

.shade {
  position: absolute;
  inset: 0;
  background: rgba(18, 28, 36, 0.34);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(520px, 100vw);
  height: 100%;
  background: #fff;
  box-shadow: -12px 0 30px rgba(20, 31, 43, 0.14);
  display: flex;
  flex-direction: column;
}

.drawer-panel.wide {
  width: min(760px, 100vw);
}

.drawer-head {
  min-height: 66px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.drawer-head.collapsible {
  cursor: pointer;
}

.drawer-head.collapsible:hover {
  background: #f8fbfd;
}

.drawer-head h2 {
  margin: 0;
  font-size: 18px;
}

.drawer-body {
  padding: 18px;
  overflow: auto;
}

.drawer-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

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

.summary-list.compact {
  padding: 12px;
}

.summary-item {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  color: var(--text);
  text-align: left;
}

.summary-item.as-button:hover {
  border-color: #75a7f5;
  background: #f8fbff;
}

.summary-accordion {
  display: grid;
  gap: 0;
}

.summary-accordion.open .summary-item {
  border-color: #8bb8ff;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background: #f8fbff;
}

.summary-action-stack {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.summary-action-stack em {
  color: var(--cyan);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.summary-detail {
  border: 1px solid #8bb8ff;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 12px;
}

.summary-item strong,
.summary-item span,
.summary-item small {
  display: block;
}

.summary-item span {
  margin-top: 4px;
  color: var(--muted);
}

.summary-item small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.5;
}

.summary-item .summary-action-stack {
  display: grid;
  margin-top: 0;
  color: inherit;
}

.release-review {
  display: grid;
  gap: 14px;
}

.review-product {
  border: 1px solid #cfe4ff;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.review-product span,
.review-product small,
.review-metric span,
.review-metric small {
  display: block;
  color: var(--muted);
}

.review-product strong {
  display: block;
  margin: 6px 0;
  font-size: 18px;
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.section-title {
  margin: 4px 0 10px;
  font-size: 15px;
}

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

.review-metric-list.compact {
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}

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

.review-metric.pass {
  border-color: #a7f3d0;
  background: #f8fffc;
}

.review-metric.fail {
  border-color: #fecaca;
  background: #fff8f8;
}

.review-metric.no-record {
  background: #f8fafc;
}

.review-metric strong {
  display: block;
  margin-bottom: 5px;
}

.review-metric small {
  margin-top: 5px;
}

.review-metric-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 16px;
}

.parameter-picker {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.parameter-picker summary {
  min-height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  background: #f8fafb;
}

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

.picker-actions {
  padding: 10px 12px 0;
  display: flex;
  gap: 8px;
}

.parameter-grid {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 360px;
  overflow: auto;
}

.check-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.check-item input {
  margin-top: 3px;
}

.check-item strong,
.check-item small {
  display: block;
}

.check-item small {
  margin-top: 4px;
  color: var(--muted);
}

.parameter-option-block {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.parameter-option-block .check-item {
  border: 0;
  border-radius: 0;
}

.parameter-actions {
  padding: 0 10px 10px 34px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.parameter-actions .btn {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.condition-picker {
  border-top: 1px solid var(--line);
  background: #f8fbfd;
}

.condition-picker summary {
  min-height: 36px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

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

.condition-grid label {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 7px 8px;
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
}

.release-brand-list {
  display: grid;
  gap: 12px;
}

.released-page {
  display: grid;
  gap: 14px;
}

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

.release-overview > div {
  border: 1px solid #bfe5d5;
  border-radius: 8px;
  background: #f3fbf7;
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.release-overview label,
.release-overview span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.release-overview strong {
  display: block;
  margin: 6px 0;
  font-size: 28px;
  line-height: 1;
}

.release-brand {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.release-brand summary {
  min-height: 58px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  background: #f8fafb;
}

.release-brand summary::-webkit-details-marker {
  display: none;
}

.release-brand summary strong,
.release-brand summary small {
  display: block;
}

.release-brand summary small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.release-brand[open] summary {
  border-bottom: 1px solid var(--line);
  background: #f1faf6;
}

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

.release-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  min-height: 104px;
  color: var(--text);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.release-card:hover {
  border-color: #75a7f5;
  box-shadow: var(--shadow);
}

.release-card strong,
.release-card span {
  display: block;
}

.release-card span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.release-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.release-card-foot span {
  margin: 0;
}

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

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

.result-param-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 12px;
}

.result-param-card.filled {
  border-color: #a7f3d0;
  background: #f7fefb;
}

.result-param-card.filled.fail {
  border-color: #fecaca;
  background: #fff8f8;
}

.result-param-card.pending-fill {
  background: #fbfcfd;
}

.result-param-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.result-param-head strong,
.result-param-head span,
.result-param-head small {
  display: block;
}

.result-param-head > div > span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.result-param-head > div > small {
  margin-top: 4px;
  color: #087ea4;
  font-size: 12px;
  line-height: 1.4;
}

.result-param-actions,
.result-submit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.result-param-actions {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.result-param-actions span,
.result-submit-bar span {
  color: var(--muted);
  font-size: 13px;
}

.result-submit-bar {
  margin-top: 16px;
  border: 1px solid #b7d2e4;
  border-radius: 8px;
  background: #edf7fb;
  padding: 12px;
}

.muted-line {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

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

.export-sub-picker {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.export-sub-picker summary {
  min-height: 44px;
  padding: 0 12px;
  background: #f8fbfd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}

.export-sub-picker summary strong {
  color: var(--muted);
  font-size: 13px;
}

.export-metric-grid {
  padding: 10px 12px 12px;
  max-height: 260px;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.standard-picker {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.standard-picker-head {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: #f8fbfd;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.standard-list {
  max-height: 260px;
  overflow: auto;
  display: grid;
}

.standard-row {
  min-width: 0;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto minmax(128px, 0.7fr) minmax(160px, 1fr);
  gap: 10px;
  align-items: center;
}

.standard-row:hover {
  background: #f6fbfd;
}

.standard-row input {
  margin: 0;
}

.standard-code {
  font-weight: 800;
  color: var(--text);
}

.standard-name {
  color: var(--text);
}

.standard-row small {
  grid-column: 3;
  color: var(--muted);
  font-size: 12px;
}

.standard-option {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.standard-option input {
  margin-top: 3px;
}

.standard-option strong,
.standard-option small {
  display: block;
}

.standard-option strong {
  color: var(--text);
  font-size: 13px;
}

.standard-option small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.inline-param-form {
  display: grid;
  grid-template-columns: minmax(140px, 1.4fr) repeat(3, minmax(90px, 0.8fr)) auto;
  gap: 10px;
  align-items: center;
}

.composition-card {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdff;
  padding: 14px;
}

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

.composition-head strong,
.composition-head span {
  display: block;
}

.composition-head span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

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

.composition-list > div:not(.empty) {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.composition-list span,
.composition-list strong,
.composition-list small {
  display: block;
}

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

.composition-list strong {
  margin-top: 5px;
  font-size: 20px;
}

.composition-list small {
  margin-top: 4px;
  color: var(--muted);
  min-height: 16px;
}

.compact-empty {
  min-height: 80px;
  grid-column: 1 / -1;
}

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

.composition-edit-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 120px minmax(160px, 1fr);
  gap: 10px;
}

.notice {
  border: 1px solid #b7d2e4;
  background: #edf7fb;
  color: #29556a;
  padding: 12px;
  border-radius: 8px;
  line-height: 1.6;
}

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

  .two-col,
  .library-layout,
  .result-layout,
  .released-grid {
    grid-template-columns: 1fr;
  }
}

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

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 10px 12px;
    gap: 12px;
    box-shadow: 0 6px 18px rgba(17, 31, 39, 0.18);
  }

  .brand-mark,
  .sidebar-foot {
    display: none;
  }

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

  .nav button {
    min-height: 38px;
    justify-content: center;
    padding: 0 4px;
    font-size: 11px;
    border-radius: 8px;
  }

  .nav button.nav-child {
    margin-left: 0;
    min-height: 40px;
    font-size: 11px;
  }

  .nav-icon {
    display: none;
  }

  .topbar {
    height: auto;
    min-height: 74px;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 14px 12px;
    gap: 12px;
  }

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

  .user-chip {
    display: none;
  }

  .record-filters,
  .record-filters .input.compact,
  .record-filters .btn {
    width: 100%;
  }

  .daily-row {
    grid-template-columns: 1fr 1fr;
  }

  .desktop-table {
    display: none;
  }

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

  .tasks-panel > .panel-head .toolbar {
    display: none;
  }

  .content {
    padding: 12px;
  }

  .page-title h1 {
    font-size: 20px;
  }

  .page-title p {
    font-size: 12px;
  }

  .panel,
  .stat,
  .release-brand,
  .release-card,
  .mobile-task-card {
    box-shadow: none;
  }

  .stats,
  .form-grid,
  .metric-meta,
  .parameter-grid,
  .release-overview,
  .compare-hero,
  .library-overview,
  .result-param-grid {
    grid-template-columns: 1fr;
  }

  .library-overview > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 14px 16px;
  }

  .library-overview > div:last-child {
    border-bottom: 0;
  }

  .library-tabs .btn,
  .compare-select,
  .compare-picker,
  .compare-picker .select,
  .compare-picker .btn,
  .compare-panel .toolbar {
    width: 100%;
  }

  .compare-picker {
    grid-template-columns: 1fr;
  }

  .product-list-entry {
    grid-template-columns: 1fr;
  }

  .compare-panel .table-wrap table {
    min-width: 560px;
  }

  .release-overview {
    gap: 8px;
  }

  .release-overview > div {
    padding: 11px 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
  }

  .release-overview strong {
    margin: 0;
    font-size: 24px;
    grid-row: 1 / span 2;
    grid-column: 2;
  }

  .release-brand-list {
    gap: 8px;
  }

  .release-brand summary {
    min-height: 52px;
    padding: 10px 12px;
  }

  .release-brand summary small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 58vw;
  }

  .released-grid {
    padding: 8px;
    gap: 8px;
  }

  .release-card {
    min-height: auto;
    padding: 10px;
    gap: 10px;
  }

  .release-card strong {
    font-size: 14px;
  }

  .release-card span {
    font-size: 12px;
  }

  .panel-head,
  .detail-title,
  .quality-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .parameter-grid {
    max-height: 48vh;
  }

  .review-product,
  .review-metric {
    grid-template-columns: 1fr;
  }

  .review-actions .btn,
  .review-metric-actions,
  .review-metric-actions .btn {
    width: 100%;
  }

  .review-metric-actions {
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .result-param-actions .btn,
  .result-submit-bar .btn {
    width: 100%;
  }

  .evidence-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .evidence-buttons .btn {
    width: 100%;
    min-height: 34px;
  }

  .evidence-preview .evidence-item {
    width: 72px;
  }

  .result-param-card {
    padding: 10px;
    gap: 10px;
  }

  .result-param-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .result-param-head > .pill {
    justify-self: start;
  }

  .summary-item {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
  }

  .summary-item .toolbar {
    justify-content: space-between;
  }

  .standard-picker-head,
  .standard-row,
  .export-option-grid,
  .export-metric-grid,
  .inline-param-form,
  .composition-list,
  .composition-edit-row,
  .condition-grid {
    grid-template-columns: 1fr;
  }

  .drawer-panel {
    width: 100vw;
  }
}

/* Visual refresh: modern lab management dashboard */
:root {
  --bg: #f3f7fb;
  --panel: #ffffff;
  --panel-soft: #f7fafc;
  --text: #10243a;
  --muted: #60748a;
  --weak: #92a4b6;
  --line: #dfe8f1;
  --line-strong: #c8d7e5;
  --blue: #087ea4;
  --teal: #12cbd4;
  --green: #16b983;
  --amber: #f28b38;
  --red: #ef4d4d;
  --cyan: #047e95;
  --shadow: 0 18px 40px rgba(20, 48, 76, 0.08);
  --shadow-soft: 0 8px 22px rgba(20, 48, 76, 0.06);
}

body {
  background: #f3f7fb;
  color: var(--text);
}

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

.sidebar {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(4, 22, 43, 0.98), rgba(3, 36, 64, 0.98) 52%, #052f48),
    linear-gradient(135deg, rgba(18, 203, 212, 0.16), transparent 44%);
  padding: 26px 14px;
  gap: 28px;
  box-shadow: 12px 0 34px rgba(8, 33, 56, 0.14);
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: auto -38px 74px -48px;
  height: 190px;
  border-top: 1px solid rgba(18, 203, 212, 0.18);
  border-radius: 50%;
  transform: rotate(-10deg);
}

.sidebar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 250px;
  background:
    linear-gradient(165deg, transparent 18%, rgba(7, 126, 149, 0.22) 54%, transparent 55%),
    linear-gradient(12deg, rgba(18, 203, 212, 0.1), transparent 54%);
  pointer-events: none;
}

.brand-mark,
.nav,
.sidebar-foot {
  position: relative;
  z-index: 1;
}

.brand-mark {
  gap: 14px;
  padding: 4px 4px 10px;
}

.mark {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
  background: linear-gradient(160deg, #13d5dc, #0a7393);
  color: #e8fdff;
  box-shadow: 0 0 22px rgba(18, 203, 212, 0.28);
}

.brand-copy strong {
  font-size: 18px;
}

.brand-copy span {
  color: #9db8cc;
  font-size: 13px;
}

.nav {
  gap: 12px;
}

.nav button {
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #dceaf5;
  font-size: 15px;
  font-weight: 600;
}

.nav button:hover {
  background: rgba(18, 203, 212, 0.08);
  border-color: rgba(18, 203, 212, 0.18);
}

.nav button.active {
  background: linear-gradient(180deg, rgba(9, 128, 160, 0.44), rgba(4, 79, 112, 0.46));
  border-color: rgba(18, 203, 212, 0.9);
  box-shadow:
    inset 4px 0 0 #12cbd4,
    0 12px 26px rgba(5, 177, 203, 0.16);
}

.nav button.nav-child {
  margin-left: 44px;
  min-height: 42px;
  color: #bed3e2;
  font-size: 13px;
}

.nav-icon {
  width: 26px;
  height: 26px;
  color: #7ff5ee;
}

.sidebar-foot {
  border: 1px solid rgba(115, 214, 225, 0.18);
  border-radius: 12px;
  background: rgba(13, 82, 115, 0.42);
  padding: 14px;
  color: #c7dbea;
}

.topbar {
  height: 116px;
  padding: 0 34px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #e6edf5;
  box-shadow: 0 1px 0 rgba(14, 42, 71, 0.04);
}

.breadcrumb {
  color: #7f91a5;
  font-weight: 500;
}

.page-title h1 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 28px;
  color: #0b2038;
  font-weight: 800;
}

.page-title h1::after {
  content: "✓";
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #63d5cf;
  color: #059995;
  font-size: 13px;
  font-weight: 800;
}

.page-title p {
  color: #6e8296;
  font-size: 14px;
}

.content {
  padding: 24px 32px 38px;
}

.input,
.select,
.textarea {
  border-color: #d8e4ef;
  border-radius: 10px;
  background: #fff;
}

.input,
.select {
  height: 44px;
}

.search {
  width: min(360px, 30vw);
}

.btn {
  min-height: 42px;
  border-radius: 10px;
  background: #edf3f8;
  color: #14304b;
  font-weight: 700;
}

.btn.primary {
  background: linear-gradient(180deg, #0994ad, #04728c);
  color: #fff;
  box-shadow: 0 8px 18px rgba(4, 126, 149, 0.22);
}

.btn.success {
  background: linear-gradient(180deg, #18bd8a, #0c986b);
}

.btn.danger {
  background: #fde8e8;
  color: #da3030;
}

.user-chip {
  border-left-color: #dfe8f1;
  padding-left: 18px;
}

.user-chip > span {
  background: linear-gradient(180deg, #12cbd4, #047e95);
  color: #fff;
  box-shadow: 0 8px 16px rgba(4, 126, 149, 0.22);
}

.grid {
  gap: 18px;
}

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

.stat {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  border-radius: 14px;
  border-color: #dbe8f4;
  padding: 22px;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, #fff 0%, #f9fcff 100%);
  box-shadow: var(--shadow-soft);
}

.stat::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.2), rgba(4, 126, 149, 0.05));
}

.stat:hover {
  border-color: #8ecfe0;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.stat-icon {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e8f1ff;
}

.stat-icon::before {
  content: "▣";
  color: #2563eb;
  font-size: 26px;
}

.stat-copy {
  position: relative;
  z-index: 1;
  display: block;
}

.stat label {
  display: block;
  color: #30485f;
  font-size: 14px;
  font-weight: 600;
}

.stat strong {
  margin: 8px 0 6px;
  color: #061b31;
  font-size: 34px;
  font-weight: 800;
}

.stat span {
  color: #6d8094;
}

.stat em {
  display: inline-block;
  margin-top: 10px;
  color: #087ea4;
  font-weight: 700;
}

.stat-pendingTasks {
  border-color: #cfe1ff;
}

.stat-pendingTasks .stat-icon {
  background: #e6f0ff;
}

.stat-pendingTasks .stat-icon::before {
  content: "☑";
  color: #2f76f6;
}

.stat-failedRecords {
  border-color: #f4dfc8;
}

.stat-failedRecords .stat-icon {
  background: #fff0df;
}

.stat-failedRecords .stat-icon::before {
  content: "!";
  color: #e77726;
}

.stat-pendingRelease {
  border-color: #ded8ff;
}

.stat-pendingRelease .stat-icon {
  background: #eee9ff;
}

.stat-pendingRelease .stat-icon::before {
  content: "◎";
  color: #604cf4;
}

.stat-releasedProducts {
  border-color: #d0eee6;
}

.stat-releasedProducts .stat-icon {
  background: #e5f8f0;
}

.stat-releasedProducts .stat-icon::before {
  content: "盾";
  color: #13a875;
  font-size: 20px;
}

.panel,
.library-overview {
  border-color: #dce7f1;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.panel-head {
  min-height: 64px;
  padding: 16px 22px;
  border-bottom-color: #e4edf5;
}

.panel-head h2 {
  color: #0b2038;
  font-size: 18px;
  font-weight: 800;
}

.panel-body {
  padding: 20px 22px;
}

th {
  background: #f5f8fb;
  color: #5c7288;
}

th,
td {
  border-bottom-color: #e5edf4;
}

tbody tr:hover {
  background: #f6fbfd;
}

.pill {
  min-height: 26px;
  padding: 0 11px;
  font-weight: 700;
}

.daily-row {
  min-height: 50px;
  border: 0;
  border-bottom: 1px solid #e5edf4;
  border-radius: 0;
  background: transparent;
}

.daily-row:first-child {
  border-top: 1px solid #eef3f7;
}

.task-list {
  gap: 0;
}

.task-row {
  grid-template-columns: 58px minmax(0, 1fr) auto;
  border: 0;
  border-bottom: 1px solid #e5edf4;
  border-radius: 0;
  padding: 14px 0;
}

.task-row.as-button:hover {
  background: transparent;
  border-color: #d6e6f3;
}

.task-row.as-button:hover strong {
  color: #087ea4;
}

.product-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 46%),
    linear-gradient(145deg, #0f4d75, #0a86a2 52%, #12cbd4);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    0 8px 18px rgba(9, 73, 106, 0.16);
}

.task-row:nth-child(2n) .product-thumb {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.25), transparent 46%),
    linear-gradient(145deg, #11466a, #2e87d8 54%, #cfe9ff);
}

.task-row:nth-child(3n) .product-thumb {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.25), transparent 46%),
    linear-gradient(145deg, #073a46, #0d6a78 54%, #93eadf);
}

.task-row:nth-child(4n) .product-thumb {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.25), transparent 46%),
    linear-gradient(145deg, #755a30, #b8954d 54%, #f1d494);
}

.task-row strong {
  color: #10243a;
  font-weight: 800;
}

.task-row small {
  color: #60748a;
}

.list-item,
.mobile-task-card,
.quality-strip,
.summary-item,
.review-product,
.review-metric,
.release-brand,
.release-card {
  border-radius: 12px;
  border-color: #dce7f1;
}

.list-item.active {
  border-color: #8ecfe0;
  background: #eefbfc;
}

.library-overview {
  overflow: hidden;
}

.metric-card.has-data {
  border-color: #b8e8dc;
}

.metric-card.no-data {
  border-color: #dce7f1;
  background: #f8fbfd;
}

.two-col {
  grid-template-columns: minmax(0, 1.25fr) minmax(430px, 0.75fr);
}

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

  .two-col {
    grid-template-columns: 1fr;
  }
}

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

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 10px 12px;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(6, 25, 43, 0.18);
  }

  .sidebar::before,
  .sidebar::after,
  .brand-mark,
  .sidebar-foot {
    display: none;
  }

  .nav {
    display: flex;
    grid-template-columns: none;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav button,
  .nav button.nav-child {
    flex: 0 0 auto;
    width: 74px;
    min-width: 0;
    min-height: 42px;
    margin-left: 0;
    padding: 0 6px;
    justify-content: center;
    border-radius: 10px;
    font-size: 12px;
  }

  .nav button span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-icon {
    display: none;
  }

  .topbar {
    height: auto;
    min-height: 132px;
    padding: 16px 14px;
  }

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

  .content {
    padding: 14px;
  }

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

  .stat {
    min-height: 116px;
    grid-template-columns: 54px minmax(0, 1fr);
    padding: 16px;
  }

  .stat-icon {
    width: 52px;
    height: 52px;
  }

  .task-row {
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: start;
  }

  .task-row > .pill {
    grid-column: 2;
    justify-self: start;
  }

  .product-thumb {
    width: 40px;
    height: 40px;
  }

  .toast-host {
    top: auto;
    right: 12px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
    transform: none;
    z-index: 90;
  }

  .toast {
    min-height: 0;
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 14px 34px rgba(6, 25, 43, 0.2);
  }

  .toast::before {
    width: 22px;
    height: 22px;
    font-size: 13px;
  }

  .toast strong,
  .toast span {
    font-size: 12px;
  }
}

/* Mobile overflow and minute-level form hardening */
.panel,
.table-wrap,
.result-layout,
.library-layout,
.drawer-panel,
.result-param-card,
.mobile-task-card,
.summary-item,
.review-metric,
.list-item {
  max-width: 100%;
}

.table-wrap {
  -webkit-overflow-scrolling: touch;
}

td,
th,
.list-main,
.mobile-task-card,
.result-param-actions span,
.summary-item span,
.summary-item small,
.review-metric small,
.notice {
  overflow-wrap: anywhere;
  word-break: break-word;
}

input[type="datetime-local"] {
  min-width: 0;
}

@media (max-width: 760px) {
  html,
  body,
  #app {
    max-width: 100%;
    overflow-x: hidden;
  }

  .main,
  .content,
  .panel,
  .panel-body,
  .drawer-body,
  .result-layout,
  .library-layout,
  .result-param-card {
    min-width: 0;
  }

  .top-actions {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 8px;
  }

  .top-actions .search {
    min-width: 0;
  }

  .user-switch {
    width: 100%;
    min-width: 0;
  }

  .top-actions > .btn {
    width: 100%;
    padding-inline: 12px;
  }

  .panel-head {
    gap: 10px;
  }

  .panel-head .toolbar,
  .toolbar {
    width: 100%;
    align-items: stretch;
  }

  .toolbar .btn:not(.icon) {
    flex: 1 1 auto;
    min-width: 0;
  }

  .mobile-task-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .mobile-task-actions:has(.btn:only-child) {
    grid-template-columns: 1fr;
  }

  .mobile-task-actions .btn:not(.icon) {
    width: 100%;
  }

  .mobile-task-meta {
    grid-template-columns: 1fr;
  }

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

  .mobile-task-top .pill {
    justify-self: start;
  }

  .list-item {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .list-item > .pill,
  .list-item > span:last-child {
    justify-self: start;
  }

  .result-param-card .form-grid {
    grid-template-columns: 1fr;
  }

  .result-param-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .result-param-actions .btn,
  .result-submit-bar .btn {
    width: 100%;
  }

  .record-filters {
    display: grid;
    grid-template-columns: 1fr;
  }

  .record-filters .input.compact,
  .record-filters .btn {
    width: 100%;
  }

  table {
    min-width: 760px;
  }

  .account-head {
    align-items: stretch;
    flex-direction: column;
  }

  .permission-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .permission-chip {
    width: 100%;
    text-align: left;
    justify-content: flex-start;
  }

  .metric-history table,
  .compare-panel .table-wrap table {
    min-width: 680px;
  }
}

/* Compact usability pass */
.shell {
  grid-template-columns: 236px minmax(0, 1fr);
}

.sidebar {
  padding: 18px 14px;
  gap: 18px;
}

.mark,
.loading-mark,
.stat-icon,
.product-thumb,
.user-chip > span {
  flex: 0 0 auto;
  aspect-ratio: 1;
}

.brand-mark {
  gap: 10px;
}

.mark {
  width: 42px;
  height: 42px;
}

.logo-mark {
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  clip-path: none;
  padding: 4px;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

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

.brand-copy strong {
  font-size: 16px;
  line-height: 1.25;
  white-space: nowrap;
}

  .brand-copy span {
    font-size: 12px;
  }

.nav {
  gap: 7px;
}

.nav button,
.nav button.nav-child {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 14px;
}

.nav button.active {
  box-shadow: inset 3px 0 0 #12cbd4;
}

.nav button.nav-child {
  margin-left: 28px;
  min-height: 36px;
  font-size: 12px;
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  font-size: 12px;
  line-height: 1;
}

.topbar {
  height: 82px;
  padding: 0 24px;
  gap: 16px;
}

.page-title h1 {
  font-size: 23px;
}

.page-title p {
  margin-top: 4px;
  font-size: 12px;
}

.top-actions {
  gap: 8px;
}

.btn {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.1;
  box-shadow: none;
}

.btn.primary,
.btn.success {
  box-shadow: none;
}

.btn.icon {
  width: 30px;
  height: 30px;
  min-height: 30px;
  font-size: 16px;
  line-height: 1;
}

.search,
.input,
.select,
textarea {
  min-height: 36px;
  font-size: 13px;
}

.content {
  padding: 20px 24px 28px;
}

.panel {
  border-radius: 10px;
}

.panel-head {
  padding: 16px 18px;
}

.panel-body {
  padding: 16px 18px;
}

th,
td {
  padding: 11px 12px;
  font-size: 13px;
}

.permission-chip {
  min-height: 30px;
  padding: 0 9px;
  justify-content: flex-start;
  text-align: left;
  font-size: 12px;
  line-height: 1.25;
}

.task-actions {
  grid-template-columns: repeat(3, auto);
  gap: 6px;
  min-width: 0;
}

.task-actions .btn:not(.icon) {
  min-width: 50px;
}

.user-chip {
  min-height: 36px;
  gap: 8px;
  padding-left: 12px;
}

.user-chip > span {
  width: 30px;
  height: 30px;
  font-size: 13px;
}

.evidence-upload-actions .btn {
  min-height: 36px;
}

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

  .sidebar {
    padding: 10px 12px;
    gap: 8px;
  }

  .brand-mark,
  .sidebar-foot {
    display: none;
  }

  .nav {
    gap: 5px;
  }

  .nav button,
  .nav button.nav-child {
    flex: 0 0 56px;
    width: 56px;
    min-height: 36px;
    padding: 0 4px;
    font-size: 11px;
    border-radius: 8px;
  }

  .topbar {
    height: auto;
    min-height: 0;
    padding: 12px 14px;
    gap: 10px;
  }

  .top-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .top-actions .search {
    grid-column: 1 / -1;
    width: 100%;
  }

  .top-actions > .btn {
    width: auto;
    min-height: 38px;
  }

  .content {
    padding: 12px;
  }

  .panel-head,
  .panel-body {
    padding: 14px;
  }

  .btn {
    min-height: 36px;
  }

  .btn.icon {
    width: 34px;
    height: 34px;
    min-height: 34px;
  }

  .mobile-task-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  }

  .mobile-task-actions .btn:not(.icon) {
    width: auto;
  }
}

@media (max-width: 760px) {
  .sidebar .brand-mark {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 2px 4px 8px;
  }

  .sidebar .brand-mark .mark {
    width: 34px;
    height: 34px;
  }

  .sidebar .brand-copy {
    display: block;
    min-width: 0;
  }

  .sidebar .brand-copy strong {
    display: block;
    color: #fff;
    font-size: 15px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .sidebar .brand-copy span {
    display: block;
    margin-top: 2px;
    color: #b8c7d4;
    font-size: 11px;
    white-space: nowrap;
  }
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(180deg, #f5f9fc 0%, #eaf2f7 100%);
}

.login-card {
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.login-brand {
  display: flex;
  color: var(--text);
  margin-bottom: 4px;
}

.login-brand .brand-copy strong {
  color: var(--text);
}

.login-brand .brand-copy span,
.login-hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.mobile-section-head {
  display: none;
}

.btn.tiny {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 8px;
}

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

.compact-form {
  align-items: end;
}

.control-user-list {
  display: grid;
  gap: 12px;
}

.control-user-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
}

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

.control-user-head strong,
.control-user-head span {
  display: block;
}

.control-user-head span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

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

.permission-block {
  display: grid;
  gap: 8px;
}

.permission-block > label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.permission-chip {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef3f7;
  color: var(--text);
  font-weight: 700;
}

.permission-chip.active {
  border-color: #7bd4c6;
  background: #e8faf5;
  color: #0f766e;
}

.assignee-select {
  min-width: 104px;
  min-height: 34px;
  padding: 6px 8px;
}

.library-overview-panel {
  margin-bottom: 14px;
}

.library-overview-panel .library-overview {
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.evidence-field {
  display: grid;
  gap: 8px;
}

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

.evidence-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.evidence-empty {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.evidence-preview .evidence-item {
  position: relative;
  width: 82px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: var(--text);
}

.evidence-preview .evidence-item img,
.evidence-preview .evidence-item video {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #edf4f8;
}

.evidence-preview .evidence-item span {
  display: block;
  padding: 4px 6px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.metric-history .evidence-preview {
  margin-top: 8px;
}

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

@media (max-width: 760px) {
  html,
  body,
  #app,
  .shell,
  .main,
  .content {
    max-width: 100%;
    overflow-x: hidden;
  }

  .main,
  .content,
  .panel,
  .library-tabs,
  .mobile-section-head {
    min-width: 0;
  }

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

  .stat {
    min-height: 78px;
    padding: 12px;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    border-radius: 10px;
  }

  .stat-icon {
    width: 38px;
    height: 38px;
  }

  .stat-icon::before {
    font-size: 18px;
  }

  .stat label {
    font-size: 13px;
  }

  .stat strong {
    margin: 3px 0;
    font-size: 26px;
  }

  .stat-copy {
    display: block;
  }

  .stat-copy > span {
    display: none;
  }

  .stat em {
    margin-top: 2px;
    font-size: 11px;
  }

  .panel.collapsible-panel.collapsed .collapsible-body,
  .collapsible-panel.collapsed > .collapsible-body {
    display: none;
  }

  .mobile-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow-soft);
  }

  .mobile-section-head > strong {
    min-width: 0;
  }

  .mobile-section-head .collapse-toggle {
    flex: 0 0 auto;
    width: 64px;
    min-width: 64px;
    text-align: center;
    position: static;
  }

  .collapsible-panel .library-overview {
    margin-top: 10px;
  }

  .panel-head {
    min-height: 0;
    padding: 12px 14px;
    gap: 8px;
  }

  .panel-body {
    padding: 12px 14px;
  }

  .panel-head .toolbar {
    gap: 6px;
  }

  .panel-head .toolbar .btn:not(.icon) {
    min-height: 32px;
    padding: 6px 9px;
    font-size: 12px;
  }

  .list-item {
    min-height: 58px;
    padding: 12px;
  }

  .control-create,
  .control-group {
    margin-bottom: 12px;
  }

  .control-user-card {
    padding: 12px;
  }

  .permission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .permission-chip {
    width: 100%;
    min-height: 34px;
    text-align: left;
  }

  .login-card {
    padding: 18px;
  }
}
