:root {
  --bg: #eef4f2;
  --surface: #ffffff;
  --surface-2: #f7fbfa;
  --surface-3: #edf5f3;
  --line: #d9e7e2;
  --text: #162923;
  --muted: #6b7f78;
  --brand: #0d9488;
  --brand-2: #0f766e;
  --danger: #df4b4b;
  --warning: #d9911e;
  --success: #0f9f6e;
  --shadow: 0 18px 48px rgba(18, 44, 38, 0.08);
  --topbar: #10231f;
  --sidebar: #eef5f2;
  --sidebar-active: #dff7f1;
  --sidebar-hover: #e6f1ee;
  --tab: #f4f8f7;
  --tab-active: #ffffff;
  --accent-gold: #c8872e;
  --ink: #10231f;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Alibaba PuHuiTi", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
}

button,
input,
select {
  font: inherit;
}

body {
  overflow: hidden;
}

html,
body,
#app {
  width: 100%;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Login */
.login-page {
  overflow: auto;
  background:
    radial-gradient(circle at top, rgba(10, 163, 148, 0.28), transparent 32%),
    linear-gradient(145deg, #13222b 0%, #07141b 48%, #0d2730 100%);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(100%, 420px);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  padding: 38px 34px 32px;
}

.login-banner {
  margin: 0 -34px 20px;
  padding: 16px 18px;
  background: linear-gradient(90deg, var(--brand), #12b79f);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.login-notch {
  width: 22px;
  height: 12px;
  margin: -2px 0 24px -34px;
  background: linear-gradient(180deg, #24343d, #0f2128);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 30% 100%);
}

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

.login-form input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-form input:focus {
  border-color: rgba(10, 163, 148, 0.8);
  box-shadow: 0 0 0 4px rgba(10, 163, 148, 0.12);
}

.login-form button,
.btn-primary {
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease;
}

.login-form button:hover,
.btn-primary:hover {
  background: var(--brand-2);
}

.login-form button:active,
.btn-primary:active,
.btn-secondary:active,
.btn-danger:active,
.btn-teal:active,
.btn-ghost:active,
.topbar-icon:active {
  transform: translateY(1px);
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: var(--danger);
  font-size: 14px;
}

.form-message.success {
  color: var(--success);
}

.login-tips {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 13px;
}

.login-tips p {
  margin: 6px 0;
}

/* App shell */
.app-shell {
  height: 100vh;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  grid-template-rows: 54px minmax(0, 1fr);
  grid-template-areas:
    "topbar topbar"
    "sidebar workspace";
}

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

.app-shell.sidebar-hidden .sidebar {
  width: 0;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border-right: 0;
  opacity: 0;
  pointer-events: none;
}

.topbar {
  grid-area: topbar;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  background: var(--topbar);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 17px;
  font-weight: 700;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(10, 163, 148, 0.18);
}

.topbar-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}

.svg-icon {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-chip,
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 260px;
  padding: 0 12px;
  height: 34px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-chip {
  flex: 0 1 auto;
  min-width: 0;
}

.sidebar {
  grid-area: sidebar;
  overflow: auto;
  background: var(--sidebar);
  border-right: 1px solid #dde3e7;
  transition: width 0.18s ease, opacity 0.18s ease, padding 0.18s ease;
}

.sidebar-inner {
  padding: 8px 0 16px;
}

.menu-group {
  border-bottom: 1px solid #dfe5ea;
}

.menu-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 10px 16px;
  font-size: 14px;
  color: #24323a;
  cursor: pointer;
  user-select: none;
  background: rgba(255, 255, 255, 0.44);
}

.menu-group-title:hover {
  background: var(--sidebar-hover);
}

.menu-group-title .label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #33434d;
  opacity: 0.88;
}

.menu-icon .svg-icon {
  width: 16px;
  height: 16px;
}

.menu-text {
  letter-spacing: 0.01em;
}

.menu-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #7c8b95;
  font-size: 12px;
}

.menu-fold {
  color: #80909a;
}

.menu-group-title .indicator {
  color: #7c8b95;
  font-size: 12px;
}

.menu-items {
  display: none;
  background: rgba(255, 255, 255, 0.75);
}

.menu-group.is-open .menu-items {
  display: block;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 18px 8px 28px;
  color: #30414a;
  border-top: 1px solid #e8edf1;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.94);
  font-size: 12px;
  line-height: 1.2;
}

.menu-item:hover {
  background: #f7fafb;
}

.menu-item.is-active {
  background: var(--sidebar-active);
  color: #08796d;
  font-weight: 600;
}

.menu-item-arrow {
  display: inline-flex;
  width: 8px;
  color: #8a98a3;
  font-size: 12px;
  line-height: 1;
}

.menu-item.is-active .menu-item-arrow {
  color: #0f9a8a;
}

.menu-item-text {
  flex: 1 1 auto;
  font-size: 12px;
  letter-spacing: 0;
}

.menu-item small {
  color: var(--muted);
  font-weight: 400;
}

.workspace {
  grid-area: workspace;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  background: #fff;
}

.tabs-bar {
  display: flex;
  align-items: stretch;
  gap: 1px;
  overflow: auto;
  border-bottom: 1px solid var(--line);
  background: #f0f1f2;
}

.tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 110px;
  max-width: 200px;
  padding: 0 14px;
  height: 40px;
  border: 0;
  background: var(--tab);
  color: #2e3c44;
  cursor: pointer;
  white-space: nowrap;
}

.tab.is-active {
  background: var(--tab-active);
  color: #0b786d;
  border-bottom: 2px solid var(--brand);
}

.tab .close {
  margin-left: auto;
  color: #8b9aa3;
  font-weight: 700;
}

.workspace-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px 7px;
  border-bottom: 1px solid #edf1f4;
  background: #fff;
}

.breadcrumbs {
  color: #87939b;
  font-size: 13px;
  margin-bottom: 6px;
}
.workspace-head > .title-block {
  min-width: 0;
  display: grid;
  grid-template-columns: max-content max-content;
  align-items: end;
  column-gap: clamp(36px, 6vw, 120px);
}

.workspace-head > .title-block .breadcrumbs {
  grid-column: 1 / -1;
}

.page-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.verifier-limit-inline {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 24px;
  row-gap: 4px;
  min-height: 26px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.3;
}

.verifier-limit-inline > span {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}

.verifier-limit-inline strong {
  font-size: 18px;
  font-weight: 800;
}

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

.btn-ghost,
.btn-secondary,
.btn-danger,
.btn-teal,
.btn-inline {
  height: 34px;
  padding: 0 12px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: #fff;
  color: #2d3a42;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease;
}

.btn-secondary {
  background: #fafcfd;
}

.btn-secondary:hover,
.btn-inline:hover,
.btn-ghost:hover {
  background: #f2f6f8;
  border-color: #cfd8df;
}

.btn-danger {
  border-color: #f3b2b2;
  background: #ff4d4f;
  color: #fff;
}

.btn-green {
  border-color: #9dd8bf;
  background: #13a563;
  color: #fff;
}

.btn-blue {
  border-color: #9dc5ff;
  background: #2d8cff;
  color: #fff;
}

.btn-teal {
  border-color: #8dd9d2;
  background: #0aa394;
  color: #fff;
}

.btn-teal:hover {
  border-color: #0d9488;
  background: #0d9488;
}

.btn-yellow {
  border-color: #ffd58a;
  background: #f6b21a;
  color: #fff;
}

.btn-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #0aa394;
  color: #fff;
  cursor: pointer;
}

.btn-icon .svg-icon,
.topbar-icon .svg-icon {
  pointer-events: none;
}

.btn-inline {
  height: 24px;
  padding: 0 7px;
  font-size: 12px;
  line-height: 22px;
}

.btn-inline:disabled {
  cursor: wait;
  opacity: 0.82;
}

.btn-inline.is-loading {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-inline.is-loading::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-group {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.page {
  min-width: 0;
  overflow: auto;
  padding: 14px 16px 20px;
  background: #fff;
}

.card {
  background: #fff;
  border: 1px solid #ebeff2;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.card + .card {
  margin-top: 14px;
}

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

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

.page-top .title-block h2 {
  margin: 0;
  font-size: 16px;
}

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

.summary-strip {
  padding: 11px 13px;
  border-radius: 4px;
  background: #f6f8fa;
  color: #41535e;
  font-size: 12px;
  line-height: 1.7;
}

.summary-strip strong {
  color: #0a7f72;
}

.filter-panel {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #edf1f4;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
  align-items: end;
}

.field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

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

.field input,
.field select,
.field textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.modal-panel .field input,
.modal-panel .field select,
.modal-panel .field textarea {
  min-height: 36px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(10, 163, 148, 0.7);
  box-shadow: 0 0 0 3px rgba(10, 163, 148, 0.08);
}

.field.span-2 {
  grid-column: span 2;
}

.field.span-3 {
  grid-column: span 3;
}

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

.table-card {
  margin-top: 10px;
  overflow: hidden;
}

.account-card .table-wrap table {
  width: 1440px;
  min-width: 1440px;
  table-layout: fixed;
}

.account-card th,
.account-card td {
  white-space: nowrap;
}

.account-card th:nth-child(1),
.account-card td:nth-child(1) {
  width: 56px;
}

.account-card th:nth-child(2),
.account-card td:nth-child(2) {
  width: 148px;
}

.account-card th:nth-child(3),
.account-card td:nth-child(3) {
  width: 68px;
  text-align: center;
}

.account-card th:nth-child(4),
.account-card td:nth-child(4) {
  width: 68px;
  text-align: center;
}

.account-card th:nth-child(5),
.account-card td:nth-child(5) {
  width: 142px;
}

.account-card th:nth-child(6),
.account-card td:nth-child(6) {
  width: 142px;
}

.account-card th:nth-child(7),
.account-card td:nth-child(7) {
  width: 76px;
  text-align: center;
}

.account-card th:nth-child(8),
.account-card td:nth-child(8) {
  width: 160px;
}

.account-card th:nth-child(9),
.account-card td:nth-child(9) {
  width: 76px;
  text-align: center;
}

.account-card th:nth-child(10),
.account-card td:nth-child(10) {
  width: 160px;
}

.account-card th:nth-child(11),
.account-card td:nth-child(11) {
  width: 320px;
}

.account-card th,
.account-card td {
  padding: 8px 8px;
}

.account-card .table-actions {
  gap: 6px;
  justify-content: flex-start;
}

.account-card .btn-inline {
  padding-inline: 9px;
}

.recharge-card .table-wrap table {
  min-width: 1640px;
}

.recharge-card th,
.recharge-card td {
  white-space: nowrap;
}

.recharge-card th:nth-child(1),
.recharge-card td:nth-child(1) {
  width: 260px;
}

.recharge-card th:nth-child(14),
.recharge-card td:nth-child(14) {
  width: 92px;
  max-width: 92px;
  text-align: center;
}

.cashier-card .table-wrap table {
  min-width: 1320px;
  table-layout: fixed;
}

.cashier-card th,
.cashier-card td {
  padding: 9px 12px;
}

.cashier-card th {
  white-space: nowrap;
  word-break: keep-all;
  line-height: 1.25;
}

.cashier-card th:nth-child(1),
.cashier-card td:nth-child(1) {
  width: 44px;
}

.cashier-card th:nth-child(2),
.cashier-card td:nth-child(2) {
  width: 132px;
}

.cashier-card th:nth-child(3),
.cashier-card td:nth-child(3) {
  width: 102px;
}

.cashier-card th:nth-child(4),
.cashier-card td:nth-child(4) {
  width: 118px;
}

.cashier-card th:nth-child(5),
.cashier-card td:nth-child(5) {
  width: 120px;
}

.cashier-card th:nth-child(6),
.cashier-card td:nth-child(6) {
  width: 132px;
}

.cashier-card th:nth-child(7),
.cashier-card td:nth-child(7),
.cashier-card th:nth-child(8),
.cashier-card td:nth-child(8) {
  width: 82px;
  text-align: center;
}

.cashier-card th:nth-child(9),
.cashier-card td:nth-child(9) {
  width: 180px;
}

.cashier-card th:nth-child(10),
.cashier-card td:nth-child(10) {
  width: 148px;
}

.cashier-card th:nth-child(11),
.cashier-card td:nth-child(11) {
  width: 164px;
}

.cashier-card td:nth-child(5) code {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

.cashier-card td:nth-child(9) .type-link {
  display: inline-grid;
  width: 100%;
  max-width: 100%;
  min-height: 36px;
  align-content: center;
  gap: 2px;
  overflow: hidden;
  font-family: "Alibaba PuHuiTi", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  white-space: nowrap;
  line-height: 1.2;
}

.cashier-page-link span,
.cashier-page-link small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cashier-page-link span {
  font-weight: 800;
}

.cashier-page-link small {
  color: #6b7f78;
  font-family: "Alibaba PuHuiTi", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 11px;
}

.cashier-card .table-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(42px, 1fr));
  gap: 6px;
}

.cashier-card .btn-inline {
  min-width: 0;
  padding-inline: 8px;
}

.table-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #edf1f4;
  background: #fafbfd;
}

.table-toolbar .toolbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.table-wrap {
  overflow: auto;
  max-width: 100%;
}

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

th,
td {
  padding: 10px 10px;
  border-bottom: 1px solid #eef2f4;
  font-size: 12px;
  text-align: left;
  vertical-align: middle;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fafbfd;
  color: #60707a;
  font-weight: 500;
}

tbody tr:hover {
  background: #fafcfd;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #eef3f6;
  color: #51626d;
  font-size: 11px;
}

.tag.success {
  background: rgba(19, 165, 99, 0.12);
  color: var(--success);
}

.tag.danger {
  background: rgba(255, 91, 91, 0.12);
  color: var(--danger);
}

.tag.warning {
  background: rgba(240, 173, 78, 0.14);
  color: #b9770f;
}

.tag.brand {
  background: rgba(10, 163, 148, 0.14);
  color: var(--brand-2);
}

.tag.gray {
  background: #eef2f4;
  color: #596973;
}

.tag-button {
  appearance: none;
  border: 0;
  font-family: inherit;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.tag-button:hover {
  box-shadow: 0 0 0 2px rgba(10, 163, 148, 0.12);
}

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

.reason-detail > div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fbfa;
}

.reason-detail span {
  color: var(--muted);
}

.reason-detail strong {
  color: var(--text);
  font-weight: 600;
  word-break: break-word;
}

.type-link {
  color: #2d8cff;
  font-weight: 600;
}

.table-text-button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: #0f766e;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.table-text-button:hover {
  text-decoration: underline;
}

.error-compact-button {
  appearance: none;
  display: inline-block;
  width: 4.8em;
  max-width: 4.8em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid #f3c2c2;
  border-radius: 4px;
  background: #fff7f7;
  color: #c24141;
  font: inherit;
  font-weight: 700;
  line-height: 26px;
  padding: 0 6px;
  cursor: pointer;
  vertical-align: middle;
}

.error-compact-button:hover {
  background: #ffecec;
  border-color: #f0a3a3;
}

.table-actions {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.page-top-compact .btn-group {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-top: 1px solid #edf1f4;
  background: #fff;
}

.pager-info {
  color: var(--muted);
  font-size: 13px;
}

.pager-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pager-controls button,
.pager-controls select,
.pager-controls input {
  height: 34px;
}

.pager-controls input {
  width: 66px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 8px;
}

.empty-state {
  padding: 42px 16px;
  text-align: center;
  color: var(--muted);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 14px;
}

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

.metric {
  padding: 16px;
  border-radius: 6px;
  background: linear-gradient(180deg, #fff, #f6f9fb);
  border: 1px solid #ecf1f4;
}

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

.metric strong {
  display: block;
  margin-top: 10px;
  font-size: 28px;
  line-height: 1;
}

.metric em {
  display: block;
  margin-top: 8px;
  color: var(--brand-2);
  font-style: normal;
  font-size: 12px;
}

.notice-list {
  padding: 14px;
  line-height: 1.7;
  color: #eaf7f5;
  background: linear-gradient(180deg, #18343b, #11262b);
  border-radius: 6px;
}

.notice-list p {
  margin: 0 0 8px;
}

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

.doc-box {
  padding: 16px;
  border: 1px solid #e6ecef;
  border-radius: 6px;
  background: #fff;
}

.doc-box pre {
  margin: 0;
  padding: 14px;
  overflow: auto;
  border-radius: 6px;
  background: #0c1620;
  color: #d6e4ed;
  font-size: 12px;
}

.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 80;
  min-width: 240px;
  max-width: min(92vw, 380px);
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.94);
  color: #fff;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translate(-50%, calc(-50% + 12px));
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.is-showing {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.toast.is-sticky {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: min(92vw, 520px);
  pointer-events: auto;
}

.toast-close {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.toast-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

.modal-host {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}

.modal-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.45);
  pointer-events: auto;
}

.modal-panel {
  width: min(100%, 980px);
  max-height: min(88vh, 920px);
  overflow: auto;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.18);
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid #e7edf2;
  background: #fff;
}

.modal-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: #eef2f6;
  color: #334155;
  font-size: 20px;
  cursor: pointer;
}

.modal-form {
  padding: 12px 14px 14px;
}

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

.modal-actions .btn-primary,
.modal-actions .btn-secondary {
  height: 36px;
}

.modal-tip {
  margin-bottom: 12px;
  padding: 9px 11px;
  border-radius: 6px;
  background: #f5f9fb;
  color: #51606d;
  font-size: 12px;
  line-height: 1.7;
}

.form-section-title {
  margin: 12px 0 8px;
  color: #014d4b;
  font-size: 13px;
  font-weight: 800;
}

.modal-form > .form-section-title:first-child {
  margin-top: 0;
}

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

.ck-account-list {
  display: grid;
  gap: 10px;
  max-height: 58vh;
  overflow: auto;
  padding-right: 2px;
}

.ck-account-row {
  display: grid;
  grid-template-columns: 128px minmax(180px, 1fr) 120px 120px;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid #d9ece9;
  border-radius: 8px;
  background: #fbfdfc;
}

.ck-account-meta {
  display: grid;
  gap: 4px;
  align-self: center;
  min-width: 0;
}

.ck-account-meta strong {
  font-size: 16px;
  color: #0f766e;
}

.ck-account-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #51606d;
  font-size: 12px;
}

.field-block {
  display: block;
}

.field-block textarea {
  min-height: 200px;
  resize: vertical;
}

.modal-panel .form-grid {
  align-items: start;
}

.modal-panel .field span {
  font-size: 12px;
}

.quick-menu {
  display: grid;
  gap: 10px;
}

.quick-card {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #e3eaee;
  border-radius: 6px;
  background: #fafcfd;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease;
}

.quick-card:hover {
  border-color: #bfd3d8;
  background: #f5faf9;
  box-shadow: 0 8px 18px rgba(15, 154, 138, 0.06);
}

.quick-card strong {
  font-size: 15px;
  color: #1f2d35;
}

.quick-card span {
  color: #5f717c;
  font-size: 13px;
}

.apk-dropzone {
  display: grid;
  gap: 8px;
  padding: 22px;
  margin-top: 10px;
  border: 1px dashed #b6c7d1;
  background: linear-gradient(180deg, #fbfdfe, #f3f8fb);
  cursor: pointer;
}

.apk-dropzone.is-dragging {
  border-color: var(--brand);
  background: linear-gradient(180deg, #f3fffd, #eafbf8);
}

.apk-dropzone-title {
  font-size: 16px;
  font-weight: 700;
  color: #20323b;
}

.apk-dropzone-meta {
  color: #61707a;
}

.apk-summary {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.apk-kv {
  display: grid;
  gap: 4px;
}

.apk-kv span,
.apk-section-title {
  color: #6a7a84;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.apk-kv strong {
  color: #18252c;
  font-size: 14px;
  word-break: break-all;
}

.apk-hash {
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
}

.apk-section {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.apk-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.apk-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef7f6;
  color: #0f6f64;
  font-size: 12px;
}

.apk-searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0 4px;
}

.apk-searchbar input[type="text"] {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
}

.apk-searchbar input[type="text"]:focus {
  border-color: rgba(10, 163, 148, 0.7);
  box-shadow: 0 0 0 4px rgba(10, 163, 148, 0.08);
}

.apk-search-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #51606d;
  font-size: 13px;
  white-space: nowrap;
}

.apk-search-results {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding: 8px 0 14px;
}

.apk-hit {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e5edf1;
  border-radius: 6px;
  background: #fbfdfe;
  text-align: left;
  cursor: pointer;
}

.apk-hit:hover {
  border-color: rgba(10, 163, 148, 0.35);
  background: #f5fbfa;
}

.apk-hit strong {
  color: #1d2a32;
  font-size: 13px;
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  word-break: break-all;
}

.apk-hit span {
  color: #0f6f64;
  font-size: 12px;
}

.apk-hit em {
  color: #53636e;
  font-style: normal;
  font-size: 12px;
  word-break: break-word;
}

.apk-tree {
  display: grid;
  max-height: 520px;
  overflow: auto;
  padding: 8px 0;
}

.apk-file {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid #eef2f4;
}

.apk-file:hover {
  background: #f7fbfc;
}

.apk-file.dir {
  color: #0e7d70;
}

.apk-file.file {
  color: #26343d;
}

.apk-file-icon {
  width: 20px;
  flex: 0 0 20px;
}

.apk-file-path {
  flex: 1;
  min-width: 0;
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  word-break: break-all;
}

.apk-pre {
  margin: 0;
  min-height: 240px;
  max-height: 540px;
  overflow: auto;
  padding: 14px;
  border-top: 1px solid #eef2f4;
  background: #fbfcfd;
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  line-height: 1.6;
  white-space: normal;
  word-break: normal;
}

.apk-code-view {
  padding: 0;
}

.apk-code {
  display: grid;
  min-width: 100%;
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
}

.apk-code-empty {
  padding: 14px;
  color: #65747d;
}

.apk-line {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: stretch;
  border-bottom: 1px solid #edf2f5;
}

.apk-line:hover {
  background: #f5fbfa;
}

.apk-line.is-focus {
  background: #eefaf8;
}

.apk-line-no {
  position: sticky;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 12px 0 10px;
  color: #7a8790;
  background: #f7fafb;
  border-right: 1px solid #eef2f4;
  font-size: 12px;
  user-select: none;
}

.apk-line.is-focus .apk-line-no {
  color: #0b7469;
  background: #e6f6f4;
  font-weight: 700;
}

.apk-line-code {
  min-width: 0;
  padding: 0 12px;
  white-space: pre;
  overflow-x: auto;
}

.apk-line-code mark,
.apk-hit mark {
  padding: 0 2px;
  border-radius: 2px;
  background: #fff1a8;
  color: inherit;
}

.apk-line.is-focus .apk-line-code {
  background: #f8fdfd;
}

/* Visual refinement */
.login-page {
  background:
    radial-gradient(circle at 20% 14%, rgba(30, 190, 165, 0.28), transparent 28%),
    radial-gradient(circle at 84% 82%, rgba(200, 135, 46, 0.2), transparent 26%),
    linear-gradient(145deg, #081714 0%, #10231f 48%, #183b35 100%);
}

.login-shell::before {
  content: "";
  position: fixed;
  inset: 24px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
}

.login-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: linear-gradient(90deg, var(--brand), #49d6bd, var(--accent-gold));
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: #48645c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0d9488, #d4a049);
  color: #fff;
  letter-spacing: 0;
  box-shadow: 0 12px 24px rgba(13, 148, 136, 0.22);
}

.login-banner {
  margin: 0 0 18px;
  padding: 8px 0 0;
  background: transparent;
  color: var(--ink);
  font-size: 22px;
}

.login-banner p {
  margin: 10px 0 0;
  color: #697d76;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
}

.login-notch {
  display: none;
}

.login-form {
  gap: 16px;
}

.login-form input {
  height: 50px;
  border-radius: 14px;
  background: #f8fbfa;
}

.login-form button,
.btn-primary {
  border-radius: 12px;
  background: linear-gradient(135deg, #0d9488, #0f766e);
  box-shadow: 0 12px 24px rgba(13, 148, 136, 0.2);
}

.login-assurance {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.login-assurance span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(13, 148, 136, 0.12);
  border-radius: 999px;
  background: #f4fbf9;
  color: #0f766e;
  font-size: 12px;
  font-weight: 700;
}

.app-shell {
  background:
    radial-gradient(circle at 18% 0%, rgba(21, 184, 157, 0.13), transparent 28%),
    linear-gradient(180deg, #f6faf8 0%, #edf4f1 100%);
}

.topbar {
  height: 54px;
  padding: 0 20px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(135deg, #0b1f1b, #143b34);
  box-shadow: 0 16px 30px rgba(8, 23, 20, 0.12);
}

.brand-mark {
  font-size: 18px;
  letter-spacing: 0.04em;
}

.brand-dot {
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #54e2c7, #d7a450);
  box-shadow: 0 0 0 6px rgba(84, 226, 199, 0.14);
}

.topbar-icon,
.project-chip,
.user-chip {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(239, 247, 244, 0.94)),
    radial-gradient(circle at 20% 0%, rgba(13, 148, 136, 0.1), transparent 32%);
  border-right: 1px solid rgba(17, 67, 58, 0.1);
}

.menu-group {
  margin: 8px 10px;
  overflow: hidden;
  border: 1px solid rgba(19, 87, 76, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.menu-group-title {
  min-height: 44px;
  border-radius: 14px;
  background: transparent;
  color: #1b332d;
  font-weight: 700;
}

.menu-group-title:hover {
  background: rgba(13, 148, 136, 0.08);
}

.menu-items,
.menu-item {
  background: transparent;
}

.menu-item {
  margin: 2px 8px 8px;
  min-height: 36px;
  border: 0;
  border-radius: 12px;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.78);
}

.menu-item.is-active {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.16), rgba(200, 135, 46, 0.1));
  color: #075e55;
  box-shadow: inset 3px 0 0 var(--brand);
}

.workspace {
  background:
    radial-gradient(circle at 88% 8%, rgba(200, 135, 46, 0.08), transparent 26%),
    linear-gradient(180deg, #f8fbfa 0%, #eef5f2 100%);
}

.tabs-bar {
  padding: 8px 12px 0;
  gap: 8px;
  border-bottom: 0;
  background: transparent;
}

.tab {
  min-width: 116px;
  height: 38px;
  border: 1px solid rgba(20, 68, 60, 0.08);
  border-radius: 13px 13px 0 0;
  background: rgba(255, 255, 255, 0.62);
}

.tab.is-active {
  border-bottom-color: #fff;
  background: #fff;
  box-shadow: 0 -8px 22px rgba(12, 47, 40, 0.06);
}

.workspace-head {
  margin: 0 12px;
  padding: 12px 16px;
  border: 1px solid rgba(16, 78, 68, 0.08);
  border-radius: 0 16px 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 34px rgba(16, 44, 38, 0.05);
}

.page {
  padding: 16px 18px 24px;
  background: transparent;
}

.card {
  overflow: hidden;
  border-color: rgba(16, 78, 68, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  animation: riseIn 0.34s ease both;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  padding: 24px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 255, 255, 0.24), transparent 24%),
    linear-gradient(135deg, #10231f 0%, #176055 64%, #c8872e 140%);
  color: #fff;
  box-shadow: 0 24px 56px rgba(16, 44, 38, 0.18);
  animation: riseIn 0.36s ease both;
}

.home-hero h2 {
  margin: 4px 0 8px;
  font-size: 28px;
  letter-spacing: 0.03em;
}

.home-hero p {
  margin: 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.76);
}

.eyebrow {
  margin: 0;
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.btn-light {
  height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease;
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.22);
}

.btn-light:active {
  transform: translateY(1px);
}

.dashboard-cards {
  gap: 14px;
}

.metric {
  position: relative;
  overflow: hidden;
  min-height: 142px;
  padding: 18px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(16, 44, 38, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.metric:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(16, 44, 38, 0.1);
}

.metric::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.12);
}

.metric.tone-2::after {
  background: rgba(200, 135, 46, 0.16);
}

.metric.tone-3::after {
  background: rgba(45, 140, 255, 0.13);
}

.metric.tone-4::after {
  background: rgba(223, 75, 75, 0.11);
}

.metric span {
  position: relative;
  z-index: 1;
  color: #60756e;
  font-weight: 700;
}

.metric strong {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  color: var(--ink);
  font-size: clamp(24px, 2vw, 34px);
}

.metric em {
  position: relative;
  z-index: 1;
  color: var(--brand-2);
}

.summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  background: transparent;
}

.summary-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(13, 148, 136, 0.12);
  border-radius: 999px;
  background: #f6fbfa;
}

.notice-list {
  min-height: 98px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(84, 226, 199, 0.16), transparent 36%),
    linear-gradient(145deg, #10231f, #163832);
}

.filter-panel {
  position: relative;
  padding: 14px;
  border-color: rgba(13, 148, 136, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(16, 44, 38, 0.04);
}

.filter-panel::before {
  content: "筛选条件";
  display: inline-flex;
  margin-bottom: 10px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.field input,
.field select,
.field textarea {
  border-radius: 12px;
  background: #fbfdfc;
}

.filter-panel .field input,
.filter-panel .field select,
.filter-panel .field textarea {
  inline-size: 100%;
  max-inline-size: 100%;
  min-inline-size: 0;
  min-height: 34px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 12px;
}

.filter-panel .field input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
}

.filter-panel .btn-primary,
.filter-panel .btn-secondary {
  height: 34px;
  padding: 0 13px;
  font-size: 12px;
}

.btn-ghost,
.btn-secondary,
.btn-danger,
.btn-teal,
.btn-inline,
.btn-icon {
  border-radius: 999px;
}

.btn-secondary,
.btn-ghost {
  background: #fff;
}

.btn-icon {
  border-color: rgba(13, 148, 136, 0.14);
  background: linear-gradient(135deg, #0d9488, #0f766e);
  box-shadow: 0 10px 22px rgba(13, 148, 136, 0.16);
}

.stats-card {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.stats-card > span {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 8px;
  min-height: 78px;
  padding: 14px;
  border: 1px solid rgba(13, 148, 136, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(16, 44, 38, 0.05);
}

.stats-card > span::after {
  content: "";
  position: absolute;
  right: -26px;
  top: -32px;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.08);
}

.stats-card > span.is-loading strong,
.stats-card > span.is-loading small {
  width: fit-content;
  border-radius: 8px;
  color: transparent;
  background: linear-gradient(90deg, #edf5f2 0%, #f8fbfa 45%, #edf5f2 100%);
  background-size: 220% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}

@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}

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

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

.table-toolbar {
  align-items: center;
  padding: 13px 16px;
  border-bottom-color: rgba(16, 78, 68, 0.08);
  background: linear-gradient(180deg, #fff, #f8fbfa);
}

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

.table-wrap {
  background: #fff;
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

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

thead th {
  background: #f7fbfa;
  color: #506a62;
  font-weight: 800;
}

tbody tr {
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

tbody tr:hover {
  background: #f4fbf8;
}

tbody tr:nth-child(even) {
  background-image: linear-gradient(90deg, rgba(13, 148, 136, 0.018), transparent);
}

.tag {
  min-width: 52px;
  height: 24px;
  font-weight: 700;
}

.pager {
  border-top-color: rgba(16, 78, 68, 0.08);
  background: linear-gradient(180deg, #fff, #fbfdfc);
}

.empty-state {
  color: #7b8c85;
}

.empty-illustration {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 110px;
  color: #7b8c85;
  font-weight: 700;
}

.empty-illustration::before {
  content: "";
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background:
    linear-gradient(#dff0eb 0 0) 14px 15px / 20px 3px no-repeat,
    linear-gradient(#dff0eb 0 0) 14px 24px / 20px 3px no-repeat,
    linear-gradient(#dff0eb 0 0) 14px 33px / 14px 3px no-repeat,
    linear-gradient(135deg, #f7fbfa, #eaf5f1);
  border: 1px solid #dcebe6;
  box-shadow: 0 12px 24px rgba(16, 44, 38, 0.08);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(13, 148, 136, 0.36) transparent;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.34);
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(13, 148, 136, 0.52);
  background-clip: content-box;
}

.modal-mask {
  background: rgba(8, 23, 20, 0.56);
  backdrop-filter: blur(4px);
}

.modal-panel {
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.modal-head {
  padding: 14px 18px;
  background: linear-gradient(180deg, #fff, #f8fbfa);
}

/* UI comfort pass */
.topbar {
  min-height: 58px;
}

.topbar-icon:hover,
.project-chip:hover,
.user-chip:hover {
  background: rgba(255, 255, 255, 0.14);
}

.sidebar-inner {
  padding: 12px 10px 18px;
}

.menu-group {
  margin: 0 0 10px;
  border-radius: 14px;
}

.menu-group-title {
  padding: 11px 14px;
}

.menu-item {
  margin: 2px 8px 7px;
  padding-left: 22px;
}

.workspace-head {
  margin: 0 14px;
  border-radius: 0 14px 14px;
}

.page {
  padding: 18px 20px 24px;
}

.filter-panel {
  margin-top: 12px;
  padding: 13px 14px;
}

.filter-grid {
  gap: 10px;
}

.table-card {
  margin-top: 12px;
}

.table-toolbar {
  min-height: 50px;
}

thead th {
  height: 40px;
  font-size: 12px;
}

td {
  height: 48px;
}

tbody tr:hover {
  background: #f1faf7;
}

.tag {
  min-width: 54px;
}

.btn-inline {
  min-width: 48px;
}

.pager {
  min-height: 58px;
}

.pager-controls button,
.pager-controls select,
.pager-controls input {
  border-radius: 999px;
}

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

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

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

@media (max-width: 960px) {
  body.dashboard-page {
    overflow: hidden;
  }

  .app-shell {
    position: relative;
    height: 100dvh;
    min-height: 100dvh;
    grid-template-columns: 1fr;
    grid-template-rows: 54px minmax(0, 1fr);
    grid-template-areas:
      "topbar"
      "workspace";
  }

  .app-shell.sidebar-hidden {
    grid-template-columns: 1fr;
  }

  .app-shell:not(.sidebar-hidden)::after {
    content: "";
    position: fixed;
    inset: 54px 0 0;
    z-index: 35;
    background: rgba(8, 23, 20, 0.36);
    backdrop-filter: blur(3px);
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 45;
  }

  .sidebar {
    position: fixed;
    z-index: 40;
    top: 54px;
    bottom: 0;
    left: 0;
    width: min(84vw, 310px);
    max-height: none;
    transform: translateX(0);
    border-right: 1px solid rgba(17, 67, 58, 0.12);
    box-shadow: 24px 0 60px rgba(8, 23, 20, 0.24);
    transition: transform 0.22s ease, opacity 0.18s ease;
  }

  .app-shell.sidebar-hidden .sidebar {
    width: min(84vw, 310px);
    min-width: auto;
    padding: initial;
    transform: translateX(-108%);
    border-right: 1px solid rgba(17, 67, 58, 0.12);
    opacity: 0;
    pointer-events: none;
  }

  .sidebar-inner {
    padding-bottom: 40px;
  }

  .workspace {
    min-height: 0;
    grid-template-rows: auto auto minmax(0, 1fr);
    overflow: hidden;
  }

  .tabs-bar {
    padding-inline: 8px;
  }

  .tab {
    min-width: 96px;
    max-width: 152px;
    padding: 0 10px;
  }

  .workspace-head {
    margin: 0 8px;
    border-radius: 0 14px 14px;
  }

  .page {
    min-height: 0;
    padding: 12px 10px 18px;
  }
}

@media (max-width: 720px) {
  .topbar {
    gap: 8px;
    padding: 0 10px;
  }

  .topbar-left,
  .topbar-right {
    gap: 8px;
  }

  .brand-mark {
    font-size: 15px;
  }

  .brand-dot {
    width: 10px;
    height: 10px;
  }

  .project-chip {
    display: none;
  }

  .user-chip {
    max-width: min(62vw, 220px);
    padding: 0 10px;
    font-size: 13px;
  }

  .topbar-icon {
    width: 34px;
    min-width: 34px;
  }

  .login-card {
    padding: 28px 20px 24px;
  }

  .login-banner {
    margin: 0 0 18px;
  }

  .dashboard-cards,
  .doc-grid {
    grid-template-columns: 1fr;
  }

  .workspace-head,
  .table-toolbar,
  .pager {
    flex-direction: column;
    align-items: stretch;
  }

  .workspace-head > .title-block {
    grid-template-columns: 1fr;
    row-gap: 6px;
  }

  .verifier-limit-inline {
    white-space: normal;
  }

  .verifier-limit-inline > span {
    white-space: normal;
  }
  .workspace-head {
    gap: 10px;
    padding: 12px;
  }

  .workspace-actions {
    justify-content: flex-start;
  }

  .home-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
    border-radius: 20px;
  }

  .home-hero h2 {
    font-size: 24px;
  }

  .metric {
    min-height: 124px;
  }

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

  .filter-panel {
    margin-top: 8px;
    padding: 8px;
    border-radius: 12px;
    overflow: hidden;
  }

  .filter-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: -5px;
  }

  .field {
    min-width: 0;
    gap: 4px;
  }

  .filter-grid > .field {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 5px;
  }

  .field label {
    font-size: 11px;
    line-height: 1.2;
  }

  .field input,
  .field select,
  .field textarea {
    min-width: 0;
    min-height: 32px;
    padding: 0 8px;
    font-size: 12px;
    border-radius: 8px;
  }

  .filter-panel .btn-primary,
  .filter-panel .btn-secondary {
    height: 32px;
    padding: 0 10px;
  }

  .filter-actions,
  .pager-controls {
    width: 100%;
  }

  .filter-grid > .field:last-child {
    flex-basis: 100%;
    max-width: 100%;
  }

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

  .filter-actions .btn-primary,
  .filter-actions .btn-secondary {
    flex: 1;
  }

  .table-card {
    border-radius: 16px;
  }

  .table-wrap {
    max-width: calc(100vw - 20px);
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 920px;
  }

  .account-card .table-wrap table {
    min-width: 1400px;
  }

  th,
  td {
    padding: 9px 10px;
  }

  .pager {
    gap: 10px;
  }

  .pager-controls {
    justify-content: flex-start;
  }

  .pager-controls button,
  .pager-controls select {
    flex: 1 1 auto;
  }

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

  .field.span-2,
  .field.span-3 {
    grid-column: auto;
  }
}

/* UI comfort pass: calmer dashboard surfaces */
.login-page {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.055), transparent 36%),
    linear-gradient(145deg, #081714 0%, #10231f 52%, #21382f 100%);
}

.login-shell {
  padding: clamp(18px, 4vw, 40px);
}

.login-shell::before {
  inset: clamp(14px, 3vw, 28px);
  border-radius: 24px;
}

.login-card {
  width: min(100%, 432px);
  padding: 38px 34px 34px;
  border-radius: 20px;
}

.login-form input {
  background: #fbfdfc;
}

.app-shell {
  grid-template-columns: 236px minmax(0, 1fr);
  background: #eef5f2;
}

.topbar {
  min-height: 56px;
  box-shadow: 0 12px 26px rgba(8, 23, 20, 0.1);
}

.sidebar {
  background: #f4f9f7;
}

.sidebar-inner {
  padding: 12px 12px 18px;
}

.menu-group {
  border-color: rgba(16, 78, 68, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 18px rgba(16, 44, 38, 0.035);
}

.menu-group-title {
  min-height: 42px;
}

.menu-item {
  min-height: 38px;
}

.workspace {
  background: #f6faf8;
}

.tabs-bar {
  padding: 10px 14px 0;
}

.tab {
  border-radius: 12px 12px 0 0;
}

.workspace-head {
  margin: 0 14px;
  border-radius: 0 14px 14px 14px;
  box-shadow: 0 10px 28px rgba(16, 44, 38, 0.045);
}

.page {
  padding: 18px 20px 24px;
}

.home-hero {
  min-height: 168px;
  border-radius: 18px;
}

.home-hero h2 {
  max-width: 860px;
  line-height: 1.22;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.metric {
  border: 1px solid rgba(16, 78, 68, 0.08);
  border-radius: 14px;
}

.metric::after {
  opacity: 0.78;
}

.card {
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(16, 44, 38, 0.06);
}

.filter-panel {
  border-radius: 14px;
}

.filter-panel::before {
  content: "筛选条件";
}

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

.field label {
  font-weight: 700;
}

.field input,
.field select,
.field textarea,
.filter-panel .field input,
.filter-panel .field select,
.filter-panel .field textarea {
  border-radius: 8px;
}

.btn-ghost,
.btn-secondary,
.btn-danger,
.btn-teal,
.btn-inline,
.btn-icon,
.btn-primary {
  border-radius: 10px;
}

.table-toolbar {
  min-height: 52px;
}

.table-card {
  border-radius: 14px;
}

thead th {
  height: 42px;
}

td {
  height: 46px;
}

.tag {
  border-radius: 8px;
}

.pager {
  min-height: 54px;
}

@media (max-width: 960px) {
  .app-shell {
    grid-template-rows: 56px minmax(0, 1fr);
  }

  .sidebar {
    top: 56px;
  }

  .app-shell:not(.sidebar-hidden)::after {
    inset: 56px 0 0;
  }
}

@media (max-width: 720px) {
  .login-card {
    padding: 30px 22px 26px;
  }

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

  .workspace-head {
    margin-inline: 8px;
  }

  .page {
    padding: 12px 10px 18px;
  }

  .filter-grid > .field {
    flex-basis: 100%;
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .app-shell:not(.sidebar-hidden) .user-chip {
    display: none;
  }
}

/* UI comfort pass: operational details */
.table-card {
  border: 1px solid rgba(16, 78, 68, 0.09);
}

.table-wrap {
  scrollbar-gutter: stable;
}

.table-wrap table {
  background: #fff;
}

thead th:first-child,
tbody td:first-child {
  padding-left: 16px;
}

thead th:last-child,
tbody td:last-child {
  padding-right: 16px;
}

.empty-state {
  min-height: 112px;
  align-content: center;
}

.stats-card {
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
}

.stats-card > span {
  min-height: 82px;
  border-radius: 14px;
}

.stats-card small {
  position: relative;
  z-index: 1;
}

.stats-card strong {
  position: relative;
  z-index: 1;
  font-size: 22px;
}

.toast {
  left: auto;
  right: 22px;
  top: 74px;
  min-width: 260px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(16, 35, 31, 0.96);
  box-shadow: 0 18px 44px rgba(8, 23, 20, 0.24);
  transform: translateY(-10px);
}

.toast.is-showing {
  transform: translateY(0);
}

.modal-mask {
  padding: 28px;
}

.modal-panel {
  border: 1px solid rgba(16, 78, 68, 0.1);
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(8, 23, 20, 0.26);
}

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

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

.modal-close {
  border-radius: 10px;
}

.modal-form {
  padding: 16px 18px 18px;
}

.modal-tip {
  border: 1px solid rgba(13, 148, 136, 0.1);
  border-radius: 12px;
  background: #f5fbf9;
}

.form-grid {
  gap: 12px;
}

.quick-card,
.doc-box {
  border-radius: 12px;
}

@media (min-width: 521px) and (max-width: 720px) {
  .filter-grid > .field {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .filter-grid > .field:last-child {
    flex-basis: 100%;
    max-width: 100%;
  }

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

@media (max-width: 520px) {
  .toast {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 18px;
    min-width: 0;
    max-width: none;
    transform: translateY(12px);
  }

  .toast.is-showing {
    transform: translateY(0);
  }

  .modal-mask {
    align-items: end;
    padding: 10px;
  }

  .modal-panel {
    width: 100%;
    max-height: min(88vh, 760px);
    border-radius: 18px 18px 12px 12px;
  }

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

/* UI comfort pass: desktop workbench */
@media (min-width: 1180px) {
  .login-card {
    width: 440px;
    padding: 42px 38px 36px;
  }

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

  .topbar {
    min-height: 60px;
    padding: 0 24px;
  }

  .topbar-left,
  .topbar-right {
    gap: 14px;
  }

  .project-chip,
  .user-chip {
    height: 36px;
    max-width: 360px;
    padding-inline: 14px;
  }

  .topbar-icon {
    width: 36px;
    height: 36px;
  }

  .sidebar-inner {
    padding: 16px 14px 22px;
  }

  .menu-group {
    margin-bottom: 12px;
  }

  .menu-group-title {
    min-height: 46px;
    padding: 12px 15px;
  }

  .menu-item {
    min-height: 38px;
    margin: 2px 8px 8px;
    padding-left: 24px;
  }

  .tabs-bar {
    padding: 12px 18px 0;
  }

  .tab {
    min-width: 128px;
    height: 40px;
  }

  .workspace-head {
    align-items: center;
    min-height: 74px;
    margin: 0 18px;
    padding: 14px 18px;
  }

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

  .page {
    padding: 22px 24px 28px;
  }

  .home-hero {
    min-height: 178px;
    padding: 28px 30px;
  }

  .home-hero h2 {
    font-size: 30px;
  }

  .dashboard-cards {
    grid-template-columns: repeat(4, minmax(190px, 1fr));
    gap: 16px;
  }

  .metric {
    min-height: 136px;
    padding: 20px;
  }

  .metric strong {
    font-size: 32px;
  }

  .grid-2 {
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
    gap: 16px;
  }

  .filter-panel {
    margin-top: 14px;
    padding: 16px;
  }

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

  .filter-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(76px, 1fr));
    align-items: end;
  }

  .filter-panel .field input,
  .filter-panel .field select,
  .filter-panel .field textarea {
    min-height: 36px;
    padding-inline: 11px;
  }

  .filter-panel .btn-primary,
  .filter-panel .btn-secondary {
    width: 100%;
  }

  .stats-card {
    grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
  }

  .stats-card > span {
    min-height: 88px;
    padding: 15px 16px;
  }

  .table-card {
    margin-top: 14px;
  }

  .table-toolbar {
    min-height: 54px;
    padding: 14px 18px;
  }

  .table-toolbar .muted {
    margin-left: auto;
  }

  .table-wrap {
    border-radius: 0 0 14px 14px;
  }

  .table-card .table-wrap table th:last-child,
  .table-card .table-wrap table td:last-child {
    position: sticky;
    right: 0;
    z-index: 2;
    min-width: 120px;
    background: #fff;
    box-shadow: -12px 0 18px rgba(16, 44, 38, 0.055);
  }

  .table-card .table-wrap table thead th:last-child {
    z-index: 3;
    background: #f7fbfa;
  }

  .table-card .table-wrap tbody tr:hover td:last-child {
    background: #f4fbf8;
  }

  .table-actions {
    justify-content: flex-start;
  }

  th,
  td {
    padding: 10px 12px;
    font-size: 12.5px;
  }

  thead th {
    height: 44px;
  }

  td {
    height: 48px;
  }

  td code,
  .type-link {
    display: inline-flex;
    max-width: 320px;
    align-items: center;
    min-height: 26px;
    padding: 0 8px;
    border: 1px solid rgba(13, 148, 136, 0.12);
    border-radius: 8px;
    background: #f7fbfa;
    color: #27564f;
    font-family: "Cascadia Mono", "Consolas", monospace;
    font-size: 11.5px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
  }

  .type-link {
    color: #0f766e;
    text-decoration: none;
  }

  .type-link:hover {
    border-color: rgba(13, 148, 136, 0.28);
    background: #eefaf7;
  }

  .pager {
    min-height: 56px;
    padding-inline: 16px;
  }

  .toast {
    top: 82px;
    right: 28px;
  }

  .modal-panel {
    width: min(100%, 1040px);
  }
}

@media (min-width: 1440px) {
  .app-shell {
    grid-template-columns: 264px minmax(0, 1fr);
  }

  .page {
    padding: 24px 28px 32px;
  }

  .workspace-head {
    margin-inline: 20px;
    padding-inline: 20px;
  }

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

  .dashboard-cards,
  .grid-2 {
    gap: 18px;
  }
}

/* UI comfort pass: navigation and workbench rhythm */
.project-chip,
.user-chip {
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tabs-bar {
  gap: 6px;
  border-bottom: 0;
  background: linear-gradient(180deg, #f5faf8, #eef6f2);
}

.tab {
  justify-content: center;
  border: 1px solid rgba(16, 78, 68, 0.08);
  border-bottom-color: transparent;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(16, 44, 38, 0.035);
}

.tab.is-active {
  box-shadow: 0 12px 24px rgba(16, 44, 38, 0.065);
}

.tab .close {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  line-height: 1;
}

.tab .close:hover {
  background: rgba(13, 148, 136, 0.1);
  color: #0f766e;
}

.workspace-head {
  border: 1px solid rgba(16, 78, 68, 0.08);
  border-top: 0;
}

.workspace-actions {
  row-gap: 8px;
}

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

.table-toolbar strong::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #0d9488, #c8872e);
}

.table-toolbar .muted,
.pager-info {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
}

.table-toolbar .muted {
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.08);
  color: #506a62;
  font-weight: 700;
}

.pager {
  position: sticky;
  bottom: 0;
  z-index: 4;
  backdrop-filter: blur(8px);
}

.pager-controls {
  flex-wrap: wrap;
}

.pager-controls button,
.pager-controls select,
.pager-controls input {
  min-height: 38px;
}

@media (max-width: 960px) {
  .tabs-bar {
    gap: 6px;
    padding: 8px 8px 0;
  }

  .tab {
    min-width: 108px;
    height: 38px;
    border-radius: 12px 12px 0 0;
  }

  .workspace-actions {
    width: 100%;
  }

  .workspace-actions > button {
    flex: 1 1 auto;
  }

  .table-toolbar .toolbar-actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .workspace-head {
    border-radius: 0 12px 12px;
  }

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

  .workspace-actions > button,
  .workspace-actions .btn-primary,
  .workspace-actions .btn-secondary,
  .workspace-actions .btn-icon {
    width: 100%;
  }

  .btn-icon {
    min-width: 42px;
  }

  .table-toolbar strong::before {
    height: 14px;
  }

  .table-toolbar .muted {
    align-self: flex-start;
    width: fit-content;
  }

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

  .pager-controls input {
    width: 100%;
  }
}

/* UI comfort pass: modal and form polish */
.modal-panel {
  scrollbar-gutter: stable;
  background: linear-gradient(180deg, #fff, #fbfdfc);
}

.modal-head {
  gap: 14px;
  border-bottom-color: rgba(16, 78, 68, 0.08);
}

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

.modal-head strong::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #0d9488;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

.modal-close {
  display: inline-grid;
  place-items: center;
  transition: background 0.16s ease, color 0.16s ease, transform 0.12s ease;
}

.modal-close:hover {
  background: #e6f4f1;
  color: #0f766e;
}

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

.modal-tip {
  margin-bottom: 0;
  padding: 12px 13px;
  border-left: 4px solid rgba(13, 148, 136, 0.42);
}

.form-section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 -2px;
}

.form-section-title::before {
  content: "";
  width: 4px;
  height: 14px;
  border-radius: 999px;
  background: #0d9488;
}

.modal-panel .form-grid {
  gap: 14px;
}

.modal-panel .field {
  gap: 7px;
}

.modal-panel .field span {
  color: #526963;
  font-size: 12px;
  font-weight: 800;
}

.modal-panel .field input,
.modal-panel .field select,
.modal-panel .field textarea {
  min-height: 40px;
  border-radius: 10px;
  background: #fbfdfc;
}

.modal-panel .field textarea {
  padding-block: 10px;
  line-height: 1.55;
}

.modal-panel .field input:disabled,
.modal-panel .field select:disabled,
.modal-panel .field textarea:disabled,
.modal-panel .field input[readonly],
.modal-panel .field select[readonly],
.modal-panel .field textarea[readonly] {
  background: #f3f7f5;
  color: #6b7f78;
}

.modal-panel [data-channel-toggle] {
  min-height: 42px;
  border-radius: 12px !important;
  background: #fbfdfc !important;
}

.modal-panel [data-channel-menu] {
  max-height: 180px !important;
  border-radius: 12px !important;
  box-shadow: 0 18px 38px rgba(16, 44, 38, 0.14);
}

.modal-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 2px -18px -18px;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(16, 78, 68, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), #fff);
  backdrop-filter: blur(8px);
}

.modal-actions .btn-primary,
.modal-actions .btn-secondary {
  min-width: 96px;
  height: 40px;
}

.ck-account-list {
  max-height: min(58vh, 520px);
  padding-right: 4px;
}

.ck-account-row {
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f8fcfb);
  box-shadow: 0 10px 22px rgba(16, 44, 38, 0.04);
}

@media (max-width: 720px) {
  .modal-form {
    gap: 12px;
  }

  .modal-panel .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .modal-actions {
    margin-inline: -18px;
  }

  .modal-actions .btn-primary,
  .modal-actions .btn-secondary {
    width: 100%;
  }

  .ck-account-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

/* UI comfort pass: login and state feedback */
.login-card {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow:
    0 32px 86px rgba(3, 18, 15, 0.36),
    0 1px 0 rgba(255, 255, 255, 0.86) inset;
}

.login-brand {
  margin-bottom: 20px;
  letter-spacing: 0;
}

.login-brand-mark {
  border-radius: 10px;
}

.login-banner span {
  display: block;
  color: #10231f;
  font-size: 24px;
  line-height: 1.28;
}

.login-banner p {
  max-width: 320px;
}

.login-form input {
  border-color: rgba(16, 78, 68, 0.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.78) inset;
}

.login-form input::placeholder {
  color: #8a9a94;
}

.login-form input:hover {
  border-color: rgba(13, 148, 136, 0.28);
  background: #fff;
}

.login-form button {
  height: 48px;
  font-weight: 800;
}

.login-assurance {
  justify-content: flex-start;
}

.login-assurance span {
  gap: 6px;
  border-color: rgba(13, 148, 136, 0.14);
  background: rgba(244, 251, 249, 0.86);
  color: #0d6f67;
}

.login-assurance span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #0d9488;
}

.form-message {
  display: flex;
  align-items: center;
  min-height: 22px;
  margin-top: -4px;
  font-size: 13px;
  line-height: 1.45;
}

.tag {
  gap: 6px;
  min-width: auto;
  min-height: 24px;
  height: auto;
  padding: 4px 8px;
  border: 1px solid rgba(81, 98, 109, 0.1);
  line-height: 1;
  white-space: nowrap;
}

.tag::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.72;
}

button.tag {
  cursor: pointer;
}

button.tag:hover {
  filter: saturate(1.08);
}

.table-actions .btn-inline {
  min-height: 28px;
  height: auto;
  padding-inline: 10px;
  font-weight: 800;
  line-height: 1;
}

.table-text-button {
  min-height: 26px;
  padding: 0 7px;
  border-radius: 8px;
  transition: background 0.14s ease, color 0.14s ease;
}

.table-text-button:hover {
  background: rgba(13, 148, 136, 0.09);
  color: #0b5f58;
  text-decoration: none;
}

.type-link {
  transition: border-color 0.14s ease, background 0.14s ease, color 0.14s ease;
}

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

.toast::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #54e2c7;
  box-shadow: 0 0 0 5px rgba(84, 226, 199, 0.14);
}

.toast-close {
  margin-left: 4px;
}

@media (max-width: 720px) {
  .login-banner span {
    font-size: 22px;
  }

  .login-form input,
  .login-form button {
    height: 46px;
  }

  .login-assurance {
    gap: 7px;
  }

  .tag {
    min-height: 26px;
  }
}

/* UI comfort pass: dashboard overview polish */
.home-hero {
  position: relative;
  overflow: hidden;
}

.home-hero::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: 24px;
  width: min(240px, 28%);
  height: 92px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.18) 0 0) 20px 24px / 72px 7px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.12) 0 0) 20px 48px / 142px 7px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.1) 0 0) 20px 70px / 104px 7px no-repeat,
    rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

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

.hero-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.dashboard-cards {
  align-items: stretch;
}

.metric {
  display: grid;
  align-content: space-between;
  gap: 12px;
}

.metric span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
}

.metric span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #0d9488;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

.metric.tone-2 span::before {
  background: #c8872e;
  box-shadow: 0 0 0 4px rgba(200, 135, 46, 0.12);
}

.metric.tone-3 span::before {
  background: #2d8cff;
  box-shadow: 0 0 0 4px rgba(45, 140, 255, 0.1);
}

.metric.tone-4 span::before {
  background: #df4b4b;
  box-shadow: 0 0 0 4px rgba(223, 75, 75, 0.1);
}

.metric strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.metric em {
  min-height: 18px;
  line-height: 1.45;
}

.grid-2 > .card {
  min-width: 0;
}

.summary-strip {
  align-items: stretch;
}

.summary-strip span {
  flex: 1 1 180px;
  justify-content: space-between;
  border-radius: 14px;
  white-space: nowrap;
}

.summary-strip strong {
  min-width: 0;
  color: #0b7469;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notice-list {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.notice-list p {
  margin: 0;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.84);
}

.table-card + .table-card,
.grid-2 + .table-card {
  margin-top: 14px;
}

@media (max-width: 960px) {
  .home-hero::after {
    display: none;
  }

  .home-hero {
    align-items: flex-start;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn-light {
    width: 100%;
  }

  .summary-strip span {
    flex-basis: 100%;
  }
}

@media (max-width: 720px) {
  .metric {
    min-height: 118px;
  }

  .metric em {
    font-size: 12px;
  }

  .notice-list {
    min-height: auto;
  }
}

/* UI comfort pass: filter and pagination controls */
.filter-panel {
  overflow: hidden;
}

.filter-panel::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #0d9488, rgba(13, 148, 136, 0));
  pointer-events: none;
}

.filter-grid {
  position: relative;
  z-index: 1;
  align-items: end;
}

.filter-panel .field {
  gap: 6px;
}

.filter-panel .field label {
  color: #526963;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.filter-panel .field input,
.filter-panel .field select,
.filter-panel .field textarea {
  min-height: 38px;
  border-color: rgba(16, 78, 68, 0.12);
  background: #fbfdfc;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.78) inset;
}

.filter-panel .field input:hover,
.filter-panel .field select:hover,
.filter-panel .field textarea:hover {
  border-color: rgba(13, 148, 136, 0.28);
  background: #fff;
}

.filter-panel .field input:focus,
.filter-panel .field select:focus,
.filter-panel .field textarea:focus {
  border-color: rgba(13, 148, 136, 0.46);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

.filter-panel .field input::placeholder {
  color: #93a39d;
}

.filter-actions {
  align-items: center;
  justify-content: flex-start;
  min-height: 38px;
}

.filter-actions .btn-primary,
.filter-actions .btn-secondary {
  min-width: 74px;
  height: 38px;
  font-weight: 800;
}

.pager {
  position: sticky;
  bottom: 0;
  z-index: 4;
  min-height: 58px;
  padding: 12px 14px;
  border-top-color: rgba(16, 78, 68, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), #fff);
  backdrop-filter: blur(8px);
}

.pager-info {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(16, 78, 68, 0.08);
  border-radius: 999px;
  background: #f7fbfa;
  color: #526963;
  font-weight: 700;
}

.pager-controls {
  justify-content: flex-end;
}

.pager-controls span {
  color: #526963;
  font-size: 12px;
  font-weight: 700;
}

.pager-controls button,
.pager-controls select,
.pager-controls input {
  min-height: 38px;
  border-color: rgba(16, 78, 68, 0.12);
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
}

.pager-controls input {
  width: 72px;
  text-align: center;
}

.pager-controls select {
  padding-inline: 12px;
}

.toolbar-actions {
  min-width: 0;
}

@media (min-width: 1200px) {
  .filter-grid {
    grid-template-columns: repeat(auto-fit, minmax(154px, 1fr));
    gap: 12px;
  }

  .filter-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 720px) {
  .filter-panel {
    padding: 12px;
  }

  .filter-panel::after {
    width: 3px;
  }

  .filter-panel .field input,
  .filter-panel .field select,
  .filter-panel .field textarea,
  .filter-actions .btn-primary,
  .filter-actions .btn-secondary {
    min-height: 40px;
  }

  .pager {
    align-items: stretch;
    padding: 12px;
  }

  .pager-info {
    justify-content: center;
    width: 100%;
    border-radius: 12px;
  }

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

  .pager-controls span {
    display: none;
  }

  .pager-controls button,
  .pager-controls select,
  .pager-controls input {
    width: 100%;
  }
}

/* UI comfort pass: utility workspaces */
.page-top .btn-group {
  gap: 10px;
}

.quick-menu {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.quick-card {
  position: relative;
  overflow: hidden;
  min-height: 86px;
  padding: 15px 16px;
  border-color: rgba(16, 78, 68, 0.1);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f8fcfb);
  box-shadow: 0 10px 24px rgba(16, 44, 38, 0.045);
}

.quick-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #0d9488;
}

.quick-card:hover {
  border-color: rgba(13, 148, 136, 0.28);
  background: #fff;
  box-shadow: 0 16px 32px rgba(16, 44, 38, 0.08);
}

.quick-card strong,
.quick-card span {
  position: relative;
  z-index: 1;
}

.quick-card strong {
  color: #10231f;
  line-height: 1.35;
}

.quick-card span {
  line-height: 1.55;
}

.doc-grid {
  align-items: stretch;
}

.doc-box {
  overflow: hidden;
  border-color: rgba(16, 78, 68, 0.1);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #fbfdfc);
  box-shadow: 0 12px 28px rgba(16, 44, 38, 0.05);
}

.doc-box h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: #10231f;
  font-size: 15px;
}

.doc-box h3::before {
  content: "";
  width: 4px;
  height: 14px;
  border-radius: 999px;
  background: #0d9488;
}

.doc-box pre,
.apk-pre {
  scrollbar-gutter: stable;
  border: 1px solid rgba(16, 78, 68, 0.08);
  background: #0d1f1b;
  color: #d7f1ec;
  font-family: "Cascadia Mono", "Consolas", monospace;
  line-height: 1.6;
}

.apk-dropzone {
  position: relative;
  min-height: 146px;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  border-color: rgba(13, 148, 136, 0.28);
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 12%, rgba(13, 148, 136, 0.12), transparent 28%),
    linear-gradient(180deg, #fff, #f4fbf8);
  text-align: center;
  box-shadow: 0 16px 36px rgba(16, 44, 38, 0.06);
}

.apk-dropzone::before {
  content: "";
  width: 52px;
  height: 52px;
  border: 1px solid rgba(13, 148, 136, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(#0d9488 0 0) center 17px / 18px 3px no-repeat,
    linear-gradient(#0d9488 0 0) center 25px / 28px 3px no-repeat,
    linear-gradient(#0d9488 0 0) center 33px / 20px 3px no-repeat,
    #eefaf7;
  box-shadow: 0 12px 24px rgba(13, 148, 136, 0.12);
}

.apk-dropzone.is-dragging {
  border-style: solid;
  box-shadow: 0 18px 42px rgba(13, 148, 136, 0.14);
}

.apk-dropzone-title {
  color: #10231f;
  line-height: 1.35;
}

.apk-dropzone-meta {
  max-width: min(100%, 560px);
  color: #60756e;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.apk-summary {
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 12px;
}

.apk-kv {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(16, 78, 68, 0.08);
  border-radius: 12px;
  background: #f8fcfb;
}

.apk-kv span,
.apk-section-title {
  letter-spacing: 0.02em;
}

.apk-section {
  grid-column: 1 / -1;
  margin-top: 0;
  padding-top: 12px;
  border-top: 1px dashed rgba(16, 78, 68, 0.12);
}

.apk-pill {
  max-width: 100%;
  border: 1px solid rgba(13, 148, 136, 0.12);
  overflow-wrap: anywhere;
}

.apk-searchbar {
  flex-wrap: wrap;
  padding: 16px;
}

.apk-searchbar input[type="text"] {
  min-height: 42px;
  border-color: rgba(16, 78, 68, 0.12);
  border-radius: 12px;
  background: #fbfdfc;
}

.apk-search-flag {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(13, 148, 136, 0.12);
  border-radius: 999px;
  background: #f4fbf9;
  color: #0f766e;
  font-weight: 800;
}

.apk-search-flag input {
  accent-color: #0f766e;
}

.apk-search-results {
  padding: 0 16px 16px;
}

.apk-hit {
  border-radius: 12px;
  background: #fff;
}

.apk-hit:hover {
  border-color: rgba(13, 148, 136, 0.3);
  background: #f7fbfa;
}

.apk-tree {
  padding: 10px;
  scrollbar-gutter: stable;
}

.apk-file {
  min-height: 32px;
  margin-bottom: 3px;
  border-radius: 9px;
}

.apk-file:hover {
  background: rgba(13, 148, 136, 0.08);
}

.apk-file-path {
  line-height: 1.4;
}

.apk-code-view {
  min-height: 320px;
}

.apk-line-no {
  font-variant-numeric: tabular-nums;
}

.error-compact-button {
  border-radius: 8px;
}

.error-compact-button:hover {
  text-decoration: none;
}

@media (max-width: 720px) {
  .page-top .btn-group {
    width: 100%;
  }

  .page-top .btn-group > button {
    flex: 1 1 auto;
  }

  .quick-menu,
  .apk-summary {
    grid-template-columns: 1fr;
  }

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

  .apk-searchbar .btn-primary,
  .apk-search-flag {
    width: 100%;
    justify-content: center;
  }
}

/* UI comfort pass: interaction states */
:where(button, a, input, select, textarea, [role="button"], .tab):focus-visible {
  outline: 3px solid rgba(13, 148, 136, 0.28);
  outline-offset: 2px;
}

.topbar-icon:focus-visible,
.btn-light:focus-visible {
  outline-color: rgba(255, 255, 255, 0.42);
}

.btn-primary,
.btn-secondary,
.btn-danger,
.btn-teal,
.btn-green,
.btn-blue,
.btn-yellow,
.btn-ghost,
.btn-inline,
.btn-icon,
.tab,
.table-text-button,
.type-link {
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    color 0.16s ease,
    transform 0.12s ease,
    filter 0.16s ease;
}

.btn-primary:disabled,
.btn-secondary:disabled,
.btn-danger:disabled,
.btn-teal:disabled,
.btn-green:disabled,
.btn-blue:disabled,
.btn-yellow:disabled,
.btn-ghost:disabled,
.btn-icon:disabled,
.login-form button:disabled {
  opacity: 0.58;
  filter: grayscale(0.2);
  box-shadow: none;
  cursor: wait;
}

.btn-primary:hover:not(:disabled),
.btn-secondary:hover:not(:disabled),
.btn-danger:hover:not(:disabled),
.btn-teal:hover:not(:disabled),
.btn-green:hover:not(:disabled),
.btn-blue:hover:not(:disabled),
.btn-yellow:hover:not(:disabled),
.btn-ghost:hover:not(:disabled),
.btn-inline:hover:not(:disabled),
.btn-icon:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled),
.btn-secondary:active:not(:disabled),
.btn-danger:active:not(:disabled),
.btn-teal:active:not(:disabled),
.btn-green:active:not(:disabled),
.btn-blue:active:not(:disabled),
.btn-yellow:active:not(:disabled),
.btn-ghost:active:not(:disabled),
.btn-inline:active:not(:disabled),
.btn-icon:active:not(:disabled) {
  transform: translateY(0);
}

.btn-danger:hover:not(:disabled) {
  background: #e84545;
  border-color: #e84545;
}

.btn-green:hover:not(:disabled) {
  background: #0f9f6e;
  border-color: #0f9f6e;
}

.btn-blue:hover:not(:disabled) {
  background: #2278df;
  border-color: #2278df;
}

.btn-yellow:hover:not(:disabled) {
  background: #d9911e;
  border-color: #d9911e;
}

.tab .close {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-left: 4px;
  border-radius: 999px;
  color: #78908a;
  line-height: 1;
}

.tab .close:hover {
  background: rgba(13, 148, 136, 0.1);
  color: #0f766e;
}

.tab.is-active .close {
  color: #0f766e;
}

td code,
.reason-detail strong {
  border-radius: 8px;
}

td code {
  display: inline-flex;
  max-width: min(360px, 100%);
  min-height: 26px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(13, 148, 136, 0.12);
  background: #f7fbfa;
  color: #27564f;
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 11.5px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.reason-detail > div {
  border-color: rgba(16, 78, 68, 0.1);
  border-radius: 12px;
  background: #f8fcfb;
}

.error-compact-button {
  min-height: 24px;
  border: 1px solid rgba(223, 75, 75, 0.18);
  background: rgba(223, 75, 75, 0.08);
  color: #b73939;
  font-weight: 800;
}

.error-compact-button:hover {
  border-color: rgba(223, 75, 75, 0.32);
  background: rgba(223, 75, 75, 0.12);
}

.table-actions {
  align-items: center;
}

.table-actions .btn-inline {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.cashier-page-link {
  border-radius: 10px;
}

.cashier-page-link:focus-visible {
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* UI comfort pass: dense table readability */
.table-wrap {
  position: relative;
  isolation: isolate;
}

.table-wrap::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 5;
  width: 22px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 74%);
  pointer-events: none;
}

.table-card thead th {
  height: 44px;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(16, 78, 68, 0.08);
}

.table-card tbody td {
  line-height: 1.48;
}

.table-card tbody tr {
  position: relative;
}

.table-card tbody tr:hover,
.table-card tbody tr:focus-within {
  background: #f3faf7;
}

.table-card tbody tr.order-marked-row,
.table-card tbody tr.order-marked-row:hover,
.table-card tbody tr.order-marked-row:focus-within {
  background: #fff7d6;
}

.table-card tbody tr.order-marked-row td {
  border-bottom-color: rgba(217, 119, 6, 0.22);
}

.table-card tbody tr:hover td,
.table-card tbody tr:focus-within td {
  border-bottom-color: rgba(13, 148, 136, 0.16);
}

.table-card tbody tr.order-marked-row:hover td,
.table-card tbody tr.order-marked-row:focus-within td {
  border-bottom-color: rgba(217, 119, 6, 0.22);
}

.table-card tbody td strong {
  color: #10231f;
  font-weight: 850;
}

.table-card td,
.table-card th,
.table-card .tag,
.stats-card strong,
.metric strong {
  font-variant-numeric: tabular-nums;
}

.table-card .tag {
  max-width: 100%;
  justify-content: flex-start;
  text-align: left;
}

.table-card td > .tag {
  vertical-align: middle;
}

.table-card td code {
  max-width: min(420px, 100%);
}

.table-card .table-actions {
  min-width: max-content;
}

.table-card .btn-inline {
  min-width: 44px;
}

.table-card .btn-inline.btn-danger {
  box-shadow: 0 8px 18px rgba(223, 75, 75, 0.12);
}

.table-card .btn-inline.btn-teal,
.table-card .btn-inline.btn-green {
  box-shadow: 0 8px 18px rgba(13, 148, 136, 0.12);
}

.table-card .empty-state {
  background:
    radial-gradient(circle at 50% 12%, rgba(13, 148, 136, 0.08), transparent 34%),
    #fff;
}

.account-card tbody td:nth-child(2),
.recharge-card tbody td:nth-child(1),
.cashier-card tbody td:nth-child(4) {
  font-weight: 800;
  color: #10231f;
}

.recharge-card tbody td:nth-child(14) {
  white-space: normal;
  word-break: break-word;
}

.ip-address-cell {
  display: inline-flex;
  align-items: center;
  max-width: 168px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.35;
  color: #24423b;
  white-space: nowrap;
}

.ip-address-cell.ipv6 {
  color: #0f766e;
}

.cashier-card td:nth-child(9) .type-link {
  border-color: rgba(13, 148, 136, 0.16);
  background: #f4fbf9;
}

.cashier-card td:nth-child(9) .type-link:hover {
  border-color: rgba(13, 148, 136, 0.34);
  background: #ecf8f4;
}

@media (max-width: 720px) {
  .table-wrap::after {
    width: 16px;
  }

  .table-card thead th {
    height: 42px;
  }

  .table-card tbody td {
    line-height: 1.42;
  }

  .table-card .btn-inline {
    min-height: 30px;
  }
}

/* UI comfort pass: navigation and tab clarity */
.sidebar {
  scrollbar-gutter: stable;
}

.sidebar::-webkit-scrollbar,
.tabs-bar::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.sidebar::-webkit-scrollbar-thumb,
.tabs-bar::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.34);
  background-clip: padding-box;
}

.sidebar::-webkit-scrollbar-track,
.tabs-bar::-webkit-scrollbar-track,
.table-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.menu-group:has(.menu-item.is-active) {
  border-color: rgba(13, 148, 136, 0.18);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(16, 44, 38, 0.05);
}

.menu-group:has(.menu-item.is-active) .menu-group-title {
  color: #0e5f56;
}

.menu-group:has(.menu-item.is-active) .menu-icon {
  color: #0d9488;
}

.menu-group-title {
  position: relative;
}

.menu-group-title::after {
  content: "";
  position: absolute;
  inset: auto 14px 0 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(13, 148, 136, 0.12), transparent);
  opacity: 0;
}

.menu-group.is-open .menu-group-title::after {
  opacity: 1;
}

.menu-item {
  position: relative;
  overflow: hidden;
}

.menu-item::before {
  content: "";
  position: absolute;
  inset: 8px auto 8px 0;
  width: 3px;
  border-radius: 999px;
  background: #0d9488;
  opacity: 0;
}

.menu-item:hover::before {
  opacity: 0.28;
}

.menu-item.is-active::before {
  opacity: 1;
}

.menu-item-text,
.tab {
  overflow: hidden;
  text-overflow: ellipsis;
}

.tabs-bar {
  scrollbar-gutter: stable;
}

.tab {
  position: relative;
}

.tab::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: #0d9488;
  opacity: 0;
  transform: scaleX(0.72);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.tab:hover {
  background: rgba(255, 255, 255, 0.82);
}

.tab.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.tab .close {
  margin-right: -4px;
}

.workspace-head {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.82) inset,
    0 10px 24px rgba(16, 44, 38, 0.04);
}

.breadcrumbs {
  max-width: min(58vw, 720px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .app-shell:not(.sidebar-hidden)::after {
    background: rgba(6, 22, 19, 0.44);
  }

  .sidebar {
    width: min(82vw, 300px);
  }

  .app-shell.sidebar-hidden .sidebar {
    width: min(82vw, 300px);
  }

  .menu-group {
    margin-inline: 8px;
  }

  .menu-item {
    min-height: 40px;
  }
}

@media (max-width: 720px) {
  .brand-mark {
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .user-chip {
    max-width: min(50vw, 190px);
  }

  .tabs-bar {
    padding-bottom: 1px;
  }

  .tab {
    min-width: 104px;
  }

  .breadcrumbs {
    max-width: 100%;
  }
}

/* UI comfort pass: feedback and empty states */
.empty-state {
  font-weight: 750;
  line-height: 1.65;
}

.empty-state:not(td) {
  display: grid;
  min-height: 128px;
  place-items: center;
  border: 1px dashed rgba(13, 148, 136, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(13, 148, 136, 0.055), rgba(200, 135, 46, 0.035)),
    #fbfdfc;
}

td.empty-state {
  height: 136px;
  color: #6f847d;
  background:
    radial-gradient(circle at 50% 18%, rgba(13, 148, 136, 0.08), transparent 34%),
    linear-gradient(180deg, #fff, #fbfdfc);
}

.empty-illustration {
  position: relative;
  z-index: 1;
  min-height: 118px;
  color: #60776f;
}

.empty-illustration::before {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background:
    linear-gradient(#cfe7e1 0 0) 14px 15px / 24px 3px no-repeat,
    linear-gradient(#cfe7e1 0 0) 14px 25px / 24px 3px no-repeat,
    linear-gradient(#cfe7e1 0 0) 14px 35px / 17px 3px no-repeat,
    linear-gradient(145deg, #ffffff, #eaf6f2);
}

.table-card tbody tr:has(.empty-state):hover {
  background: transparent;
}

.stats-card > span.is-loading {
  border-style: dashed;
}

.stats-card > span.is-loading::after {
  background:
    linear-gradient(110deg, transparent 0 34%, rgba(255, 255, 255, 0.52) 46%, transparent 60%),
    rgba(13, 148, 136, 0.08);
  background-size: 220% 100%, auto;
  animation: shimmer 1.25s ease-in-out infinite;
}

.toast {
  overflow: hidden;
  padding: 13px 14px;
  color: #f6fffd;
}

.toast > span {
  min-width: 0;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.toast.is-sticky {
  align-items: center;
}

.toast-close {
  width: 28px;
  height: 28px;
  font-size: 17px;
}

.form-message:not(:empty) {
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid rgba(223, 75, 75, 0.18);
  border-radius: 10px;
  background: rgba(223, 75, 75, 0.065);
  color: #b73939;
}

.form-message.success:not(:empty) {
  border-color: rgba(15, 159, 110, 0.18);
  background: rgba(15, 159, 110, 0.075);
  color: #0b7655;
}

.modal-tip {
  position: relative;
  overflow: hidden;
}

.modal-tip::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #0d9488, rgba(200, 135, 46, 0.72));
}

@media (max-width: 720px) {
  .empty-state:not(td) {
    min-height: 112px;
    border-radius: 14px;
  }

  td.empty-state {
    height: 118px;
  }

  .toast {
    top: auto;
    right: 10px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    left: 10px;
    width: auto;
    max-width: none;
    transform: translateY(12px);
  }

  .toast.is-showing {
    transform: translateY(0);
  }
}

/* UI comfort pass: docs and APK workbench */
.page-top {
  min-height: 72px;
  padding: 16px 18px;
  border: 1px solid rgba(16, 78, 68, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(13, 148, 136, 0.07), rgba(200, 135, 46, 0.04)),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(16, 44, 38, 0.045);
}

.page-top .title-block h2 {
  color: #10231f;
  font-size: 18px;
  line-height: 1.35;
}

.page-top .title-block p {
  max-width: 760px;
  line-height: 1.55;
}

.page-top .btn-group {
  align-items: center;
}

.doc-box {
  display: flex;
  flex-direction: column;
  min-height: 260px;
}

.doc-box pre {
  flex: 1 1 auto;
  min-height: 190px;
  max-height: min(56vh, 460px);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 2;
}

.doc-box pre::selection,
.apk-pre::selection,
.apk-line-code::selection {
  background: rgba(84, 226, 199, 0.28);
}

.apk-dropzone {
  outline: 1px solid rgba(255, 255, 255, 0.72);
  outline-offset: -6px;
}

.apk-dropzone-title {
  font-size: 17px;
}

.apk-summary .empty-state {
  grid-column: 1 / -1;
}

.apk-kv strong {
  min-width: 0;
  line-height: 1.45;
}

.apk-section-title {
  color: #0d6f67;
  font-weight: 900;
}

.apk-pill {
  min-height: 30px;
  background: #eefaf7;
  font-weight: 750;
}

.apk-search-results {
  scrollbar-gutter: stable;
}

.apk-hit {
  position: relative;
  overflow: hidden;
}

.apk-hit::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #0d9488;
  opacity: 0;
}

.apk-hit:hover::before {
  opacity: 1;
}

.apk-hit strong {
  line-height: 1.45;
}

.apk-hit em {
  line-height: 1.55;
}

.apk-tree {
  max-height: min(58vh, 560px);
}

.apk-file {
  border: 1px solid transparent;
}

.apk-file:hover {
  border-color: rgba(13, 148, 136, 0.1);
}

.apk-file.dir {
  font-weight: 850;
}

.apk-file-icon {
  display: inline-grid;
  place-items: center;
  opacity: 0.9;
}

.apk-pre:not(.apk-code-view) {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.apk-code-view {
  border-radius: 0 0 16px 16px;
  background: #0d1f1b;
}

.apk-code {
  background: #10231f;
  color: #dff6f1;
}

.apk-line {
  min-height: 30px;
  border-bottom-color: rgba(255, 255, 255, 0.055);
}

.apk-line:hover {
  background: rgba(84, 226, 199, 0.08);
}

.apk-line.is-focus {
  background: rgba(84, 226, 199, 0.13);
}

.apk-line-no {
  color: rgba(223, 246, 241, 0.48);
  background: #0b1b18;
  border-right-color: rgba(255, 255, 255, 0.06);
}

.apk-line.is-focus .apk-line-no {
  color: #54e2c7;
  background: #0e2924;
}

.apk-line-code {
  padding: 5px 12px;
  color: inherit;
  line-height: 1.62;
}

.apk-line.is-focus .apk-line-code {
  background: transparent;
}

.apk-code-empty {
  min-height: 240px;
  display: grid;
  place-items: center;
  color: #7b928c;
}

@media (max-width: 960px) {
  .page-top {
    align-items: flex-start;
  }

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

  .doc-box {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .page-top {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
  }

  .page-top .title-block h2 {
    font-size: 17px;
  }

  .doc-box pre,
  .apk-pre {
    max-height: 420px;
  }

  .apk-line {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .apk-line-no {
    padding-inline: 8px;
  }
}

/* UI comfort pass: overview detail cards */
.dashboard-cards + .grid-2,
.home-hero + .dashboard-cards,
.apk-dropzone + .grid-2 {
  margin-top: 16px;
}

.card:has(.summary-strip),
.card:has(.notice-list) {
  position: relative;
  min-height: 174px;
}

.card:has(.summary-strip)::after,
.card:has(.notice-list)::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -48px;
  width: 128px;
  height: 128px;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.055);
  pointer-events: none;
}

.card:has(.notice-list)::after {
  background: rgba(200, 135, 46, 0.055);
}

.card:has(.summary-strip) > .page,
.card:has(.notice-list) > .page {
  position: relative;
  z-index: 1;
  background: transparent;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 10px;
  padding: 0;
  background: transparent;
}

.summary-strip span {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 74px;
  padding: 13px 14px;
  border: 1px solid rgba(16, 78, 68, 0.08);
  background: linear-gradient(180deg, #fff, #f7fbfa);
  box-shadow: 0 10px 22px rgba(16, 44, 38, 0.045);
}

.summary-strip span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #0d9488;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.09);
}

.summary-strip strong {
  display: block;
  font-size: 16px;
  line-height: 1.25;
}

.notice-list {
  position: relative;
  overflow: hidden;
  min-height: 130px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background:
    radial-gradient(circle at 88% 0%, rgba(84, 226, 199, 0.16), transparent 28%),
    linear-gradient(145deg, #10231f, #173a34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.notice-list::before {
  content: "";
  position: absolute;
  inset: 12px auto 12px 0;
  width: 3px;
  border-radius: 999px;
  background: #54e2c7;
}

.notice-list p {
  position: relative;
  padding-left: 12px;
  line-height: 1.6;
}

.grid-2 > .table-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
}

.grid-2 > .table-card .table-wrap {
  flex: 1 1 auto;
}

.grid-2 > .table-card table {
  height: 100%;
}

.grid-2 > .table-card tbody td {
  height: 52px;
}

.grid-2 > .table-card .empty-state {
  height: 178px;
}

.dashboard-cards .metric {
  isolation: isolate;
}

.dashboard-cards .metric::after {
  z-index: -1;
}

@media (min-width: 1180px) {
  .card:has(.summary-strip),
  .card:has(.notice-list) {
    min-height: 190px;
  }

  .grid-2 > .table-card {
    min-height: 286px;
  }
}

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

@media (max-width: 720px) {
  .dashboard-cards + .grid-2,
  .home-hero + .dashboard-cards,
  .apk-dropzone + .grid-2 {
    margin-top: 12px;
  }

  .summary-strip {
    grid-template-columns: 1fr;
  }

  .summary-strip span {
    min-height: 68px;
  }

  .notice-list {
    min-height: 112px;
  }

  .grid-2 > .table-card {
    min-height: auto;
  }
}

/* UI comfort pass: credential and readonly modals */
.modal-panel .field:has(input[readonly]),
.modal-panel .field:has(textarea[readonly]),
.modal-panel .field:has(input:disabled),
.modal-panel .field:has(textarea:disabled) {
  position: relative;
  padding: 12px;
  border: 1px solid rgba(16, 78, 68, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f7fbfa);
}

.modal-panel .field:has(input[readonly])::before,
.modal-panel .field:has(textarea[readonly])::before,
.modal-panel .field:has(input:disabled)::before,
.modal-panel .field:has(textarea:disabled)::before {
  content: "";
  position: absolute;
  inset: 12px auto 12px 0;
  width: 3px;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.52);
}

.modal-panel .field:has(input:disabled)::before,
.modal-panel .field:has(textarea:disabled)::before {
  background: rgba(107, 127, 120, 0.38);
}

.modal-panel .field:has(input[readonly]) span,
.modal-panel .field:has(textarea[readonly]) span,
.modal-panel .field:has(input:disabled) span,
.modal-panel .field:has(textarea:disabled) span {
  color: #4e665f;
}

.modal-panel .field input[readonly],
.modal-panel .field textarea[readonly],
.modal-panel .field input:disabled,
.modal-panel .field textarea:disabled {
  border-color: rgba(13, 148, 136, 0.1);
  background: rgba(255, 255, 255, 0.88);
  color: #19312b;
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 12px;
  line-height: 1.55;
}

.modal-panel .field textarea[readonly],
.modal-panel .field textarea:disabled {
  min-height: 96px;
  resize: vertical;
}

.modal-panel .field-block:has(input[readonly]) input,
.modal-panel .field-block:has(textarea[readonly]) textarea {
  overflow-wrap: anywhere;
}

.modal-panel .form-grid[style*="grid-template-columns:1fr"] {
  gap: 10px;
}

.modal-panel .quick-menu {
  gap: 12px;
}

.modal-panel .quick-card {
  min-height: 76px;
  border-radius: 14px;
}

.modal-panel .quick-card:has(input[type="checkbox"]) {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start !important;
}

.modal-panel .quick-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #0d9488;
}

.modal-panel [id^="cashier-channel-box"] {
  position: relative;
}

.modal-panel [data-channel-summary] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-panel [data-channel-menu] label {
  transition: background 0.14s ease, color 0.14s ease;
}

.modal-panel [data-channel-menu] label:hover {
  background: #ecf8f4 !important;
  color: #0f766e !important;
}

.modal-panel .field-block + .field-block {
  margin-top: 2px;
}

@media (max-width: 720px) {
  .modal-panel .field:has(input[readonly]),
  .modal-panel .field:has(textarea[readonly]),
  .modal-panel .field:has(input:disabled),
  .modal-panel .field:has(textarea:disabled) {
    padding: 10px;
  }

  .modal-panel .quick-card:has(input[type="checkbox"]) {
    grid-template-columns: 22px minmax(0, 1fr);
  }
}

/* UI comfort pass: risk and exception states */
.tag.danger,
.tag.warning {
  border-color: currentColor;
}

.tag.danger {
  box-shadow: 0 8px 18px rgba(223, 75, 75, 0.09);
}

.tag.warning {
  box-shadow: 0 8px 18px rgba(217, 145, 30, 0.09);
}

button.tag,
.tag-button {
  min-height: 26px;
  border: 1px solid rgba(13, 148, 136, 0.14);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
}

button.tag:hover,
.tag-button:hover {
  border-color: rgba(13, 148, 136, 0.3);
  transform: translateY(-1px);
}

button.tag.danger {
  border-color: rgba(223, 75, 75, 0.22);
}

button.tag.warning {
  border-color: rgba(217, 145, 30, 0.24);
}

.table-card tbody tr:has(.error-compact-button),
.table-card tbody tr:has(button.tag.danger),
.table-card tbody tr:has(button.tag.warning) {
  background-image:
    linear-gradient(90deg, rgba(223, 75, 75, 0.045), transparent 32%),
    linear-gradient(90deg, rgba(13, 148, 136, 0.018), transparent);
}

.table-card tbody tr:has(.error-compact-button):hover,
.table-card tbody tr:has(button.tag.danger):hover,
.table-card tbody tr:has(button.tag.warning):hover {
  background: #fff8f6;
}

.error-compact-button {
  position: relative;
  display: inline-flex;
  width: auto;
  max-width: 128px;
  min-width: 68px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  border-radius: 999px;
  line-height: 28px;
}

.error-compact-button::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.8;
}

.error-compact-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(223, 75, 75, 0.12);
}

.reason-detail {
  gap: 12px;
}

.reason-detail > div {
  position: relative;
  grid-template-columns: minmax(86px, 0.3fr) minmax(0, 1fr);
  min-height: 48px;
  padding: 12px 14px 12px 16px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(16, 44, 38, 0.045);
}

.reason-detail > div::before {
  content: "";
  position: absolute;
  inset: 12px auto 12px 0;
  width: 3px;
  border-radius: 999px;
  background: #0d9488;
}

.reason-detail > div:nth-child(2)::before {
  background: #d9911e;
}

.reason-detail span {
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
}

.reason-detail strong {
  display: block;
  min-width: 0;
  padding: 2px 0;
  color: #10231f;
  font-weight: 850;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.modal-panel .field:has(input[type="file"]) {
  padding: 14px;
  border: 1px dashed rgba(13, 148, 136, 0.28);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(13, 148, 136, 0.06), rgba(200, 135, 46, 0.035)),
    #fbfdfc;
}

.modal-panel .field input[type="file"] {
  min-height: 44px;
  padding: 9px;
  border: 1px solid rgba(13, 148, 136, 0.12);
  border-radius: 12px;
  background: #fff;
  color: #526963;
}

.modal-panel .field input[type="file"]::file-selector-button {
  min-height: 30px;
  margin-right: 10px;
  border: 0;
  border-radius: 999px;
  background: #0d9488;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  padding: 0 12px;
  cursor: pointer;
}

.modal-panel .field textarea:disabled {
  max-height: min(52vh, 420px);
  overflow: auto;
}

@media (max-width: 720px) {
  .reason-detail > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .error-compact-button {
    max-width: 108px;
  }
}
