:root {
  --navy: #0b1220;
  --navy-soft: #111c31;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --cyan: #38bdf8;
  --ink: #172033;
  --muted: #6b7890;
  --line: #e5eaf2;
  --surface: #ffffff;
  --canvas: #f3f6fb;
  --success: #0f9f6e;
  --danger: #d14343;
  --shadow: 0 18px 50px rgba(22, 34, 55, .08);
}
html { background: var(--canvas); }
body {
  min-width: 320px;
  background:
    radial-gradient(circle at 78% -10%, rgba(37, 99, 235, .08), transparent 28rem),
    var(--canvas);
  color: var(--ink);
  letter-spacing: -.01em;
}
button, input, textarea, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }
.app { min-height: 100vh; }
.sidebar {
  width: 276px;
  padding: 22px 18px 18px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 15% 8%, rgba(56, 189, 248, .16), transparent 15rem),
    linear-gradient(168deg, #0a1222 0%, #0c172a 55%, #111827 100%);
  border-right: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 18px 0 48px rgba(15, 23, 42, .12);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 22px;
  margin: 0 0 6px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.brand-mark, .login-logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(125, 211, 252, .36);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(37, 99, 235, .95), rgba(14, 165, 233, .72));
  box-shadow: 0 12px 28px rgba(37, 99, 235, .28), inset 0 1px rgba(255, 255, 255, .3);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .06em;
}
.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand-copy span, .sidebar-section-label, .eyebrow, .login-kicker,
.login-card-head > span, .security-card-head > div > span, .note-kicker,
.dashboard-intro > div > span, .section-heading > div > span {
  color: #7f91ae;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}
.brand-copy strong { color: #f8fafc; font-size: 18px; letter-spacing: -.02em; }
.nav-shell { flex: 1; min-height: 0; overflow-y: auto; padding: 7px 0; scrollbar-width: thin; }
.sidebar-section-label { margin: 16px 11px 7px; color: #64748b; }
.nav {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 43px;
  margin: 3px 0;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  box-shadow: none;
  color: #aebbd0;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.nav:hover {
  transform: translateX(2px);
  border-color: rgba(148, 163, 184, .13);
  background: rgba(148, 163, 184, .09);
  color: #fff;
}
.nav.active {
  border-color: rgba(125, 211, 252, .18);
  background: linear-gradient(105deg, rgba(37, 99, 235, .94), rgba(37, 99, 235, .62));
  box-shadow: 0 10px 26px rgba(37, 99, 235, .22), inset 0 1px rgba(255, 255, 255, .16);
  color: #fff;
}
.nav-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .07);
  font-size: 13px;
  font-weight: 800;
}
.nav.active .nav-icon { background: rgba(255, 255, 255, .16); }
.sidebar-footer {
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.system-state { display: flex; align-items: center; gap: 10px; padding: 9px 11px 11px; }
.state-dot, .secure-chip i, .signing-state i, .security-pill span {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 0 5px rgba(52, 211, 153, .1);
}
.system-state div { display: flex; flex-direction: column; gap: 1px; }
.system-state strong { color: #d8e3f3; font-size: 12px; }
.system-state div span { color: #718099; font-size: 11px; }
.nav.danger { margin: 3px 0 0; color: #f8a7ae; }
.nav.danger:hover { background: rgba(225, 29, 72, .11); border-color: rgba(251, 113, 133, .14); }
.main {
  margin-left: 276px;
  width: calc(100% - 276px);
  min-height: 100vh;
  padding: 24px 32px 38px;
}
#panel { width: 100%; max-width: 1680px; margin: 0 auto; }
.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  min-height: 84px;
  margin-bottom: 22px;
  padding: 14px 18px;
  border: 1px solid rgba(219, 227, 239, .9);
  border-radius: 17px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 12px 32px rgba(22, 34, 55, .06);
  backdrop-filter: blur(16px);
}
.page-heading { display: flex; flex-direction: column; }
.page-heading .eyebrow { color: #7490b8; margin-bottom: 3px; }
.page-heading h2 { margin: 0; color: #182238; font-size: 23px; letter-spacing: -.035em; }
.page-heading p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.secure-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid #dcefe7;
  border-radius: 999px;
  background: #f4fbf8;
  color: #28775d;
  font-size: 12px;
  font-weight: 700;
}
.secure-chip i { width: 6px; height: 6px; flex-basis: 6px; box-shadow: none; }
#refresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d9e2ef;
  background: #fff;
  color: #3e4e66;
  box-shadow: 0 5px 14px rgba(30, 41, 59, .05);
}
#refresh:hover { border-color: #a8bce0; background: #f8fbff; color: var(--blue-dark); }
.card, .table-wrap, .toolbar, .pager {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.card { border-radius: 17px; }
.dashboard-intro {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 17px;
  padding: 24px 26px;
  border: 1px solid #d8e5fb;
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 30%, rgba(56, 189, 248, .16), transparent 17rem),
    linear-gradient(125deg, #f8fbff, #eef5ff);
}
.dashboard-intro:after {
  content: "";
  position: absolute;
  right: 13%;
  bottom: -36px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(37, 99, 235, .12);
  border-radius: 50%;
}
.dashboard-intro h3, .section-heading h3 { margin: 4px 0 5px; font-size: 20px; }
.dashboard-intro p, .section-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.signing-state {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto auto;
  gap: 1px 9px;
  align-items: center;
  min-width: 156px;
  padding: 12px 15px;
  border: 1px solid rgba(37, 99, 235, .13);
  border-radius: 13px;
  background: rgba(255, 255, 255, .72);
}
.signing-state i { grid-row: 1 / 3; }
.signing-state span { color: var(--blue-dark); font-size: 13px; font-weight: 800; }
.signing-state strong { color: var(--muted); font-size: 11px; font-weight: 600; }
.metric-grid { grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 13px; }
.metric-card { min-height: 138px; padding: 17px; transition: transform .18s ease, box-shadow .18s ease; }
.metric-card:hover { transform: translateY(-2px); box-shadow: 0 20px 46px rgba(22, 34, 55, .11); }
.metric-head { display: flex; align-items: center; gap: 9px; color: #53627a; }
.metric-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #edf4ff;
  color: var(--blue);
  font-weight: 800;
}
.metric-label { font-size: 13px; font-weight: 700; }
.metric-card .num { margin: 14px 0 5px; color: #15213a; font-size: 29px; font-variant-numeric: tabular-nums; }
.metric-foot { color: #9aa6b8; font-size: 11px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin: 25px 2px 11px; }
.toolbar {
  min-height: 60px;
  padding: 10px 12px 10px 16px;
  border-radius: 15px;
}
.toolbar .tip { max-width: 900px; line-height: 1.55; }
.btn, .smallbtn, .topbar button, .login-card button {
  border-radius: 10px;
  font-weight: 700;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.btn.primary, .login-card button {
  border: 1px solid rgba(29, 78, 216, .18);
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  box-shadow: 0 9px 20px rgba(37, 99, 235, .18);
}
.btn.primary:hover, .login-card button:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(37, 99, 235, .25); }
.btn.ghost { border: 1px solid #dce6f5; background: #f6f9fe; color: var(--blue-dark); }
.table-wrap { border-radius: 16px; }
table { min-width: 880px; }
th {
  padding: 13px 14px;
  background: #f7f9fc;
  color: #66758c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}
td { padding: 13px 14px; color: #344158; border-color: #edf1f6; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #f9fbfe; }
.actions { flex-wrap: wrap; }
.actions button, .smallbtn { border: 1px solid #dfe6f0; background: #fff; color: #44536b; }
.actions button:hover, .smallbtn:hover { border-color: #aec4e6; background: #f4f8ff; color: var(--blue-dark); }
.badge { font-weight: 750; }
.pager { border-radius: 14px; box-shadow: 0 10px 28px rgba(22, 34, 55, .05); }
.field label { color: #42516a; font-weight: 700; }
.field input, .field textarea, .field select, .login-card input, input, textarea, select {
  border-color: #dce3ee;
  background: #fbfcfe;
  color: #1f2a3d;
}
.field input:focus, .field textarea:focus, .field select:focus,
.login-card input:focus, input:focus, textarea:focus, select:focus {
  border-color: #79a7ef;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .1);
}
.modal-card { border-radius: 19px; box-shadow: 0 36px 90px rgba(5, 15, 35, .28); }
.modal-head { padding: 18px 22px; }
.modal-head h3 { color: #182238; letter-spacing: -.02em; }
.modal-actions { padding: 14px 22px; }
.main.login-mode {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  padding: 0;
  background: #081221;
}
.login-layout {
  display: grid;
  grid-template-columns: minmax(420px, 1.2fr) minmax(440px, .8fr);
  width: 100%;
  min-height: 100vh;
}
.login-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 9vw, 132px);
  background:
    radial-gradient(circle at 18% 22%, rgba(37, 99, 235, .34), transparent 28rem),
    radial-gradient(circle at 82% 75%, rgba(14, 165, 233, .16), transparent 24rem),
    linear-gradient(145deg, #07111f, #0b1930 58%, #102342);
  color: #fff;
}
.login-visual:before, .login-visual:after {
  content: "";
  position: absolute;
  border: 1px solid rgba(125, 211, 252, .12);
  border-radius: 50%;
}
.login-visual:before { width: 410px; height: 410px; right: -220px; top: -150px; }
.login-visual:after { width: 270px; height: 270px; left: -140px; bottom: -110px; }
.login-logo { width: 52px; height: 52px; margin-bottom: 34px; border-radius: 16px; font-size: 16px; }
.login-kicker { color: #71b7ff; }
.login-visual h1 { max-width: 620px; margin: 14px 0 18px; font-size: clamp(38px, 4.7vw, 68px); line-height: 1.1; letter-spacing: -.055em; }
.login-visual p { max-width: 560px; margin: 0; color: #9fb0ca; font-size: 15px; line-height: 1.8; }
.security-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  margin-top: 34px;
  padding: 9px 13px;
  border: 1px solid rgba(110, 231, 183, .16);
  border-radius: 999px;
  background: rgba(16, 185, 129, .07);
  color: #a7f3d0;
  font-size: 12px;
  font-weight: 700;
}
.security-pill span { width: 6px; height: 6px; flex-basis: 6px; box-shadow: none; }
.login-card {
  align-self: center;
  width: min(430px, calc(100% - 64px));
  max-width: none;
  margin: 0 auto;
  padding: 40px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
}
.login-card-head { margin-bottom: 25px; }
.login-card-head > span { color: #6d8fbe; }
.login-card-head h2 { margin: 7px 0 5px; color: #172033; font-size: 29px; letter-spacing: -.04em; }
.login-card-head p { margin: 0; }
.login-card label { display: block; margin: 15px 0 5px; color: #4b5a70; font-size: 12px; font-weight: 750; }
.login-card input { height: 48px; margin: 0; }
.login-card button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 48px;
  margin-top: 22px;
  padding: 0 16px;
}
.login-card .msg { min-height: 19px; margin-top: 12px; font-size: 12px; }
.security-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr);
  gap: 18px;
  align-items: start;
}
.security-card { padding: 0; overflow: hidden; }
.security-card-head {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #f8fbff, #f3f7fd);
}
.security-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 13px;
  background: #e8f1ff;
  color: var(--blue);
  font-size: 19px;
}
.security-card-head h3 { margin: 4px 0 3px; font-size: 19px; }
.security-card-head p { margin: 0; color: var(--muted); font-size: 12px; }
.security-form { max-width: 660px; padding: 24px; }
.password-rules {
  display: grid;
  gap: 7px;
  margin: 15px 0 18px;
  padding: 13px 15px;
  border: 1px solid #e0e9f6;
  border-radius: 12px;
  background: #f8fbff;
  color: #697991;
  font-size: 12px;
}
.password-rules strong { color: #3c4d68; }
.password-rules span:before { content: "✓"; margin-right: 8px; color: var(--success); font-weight: 800; }
.security-submit { min-width: 170px; }
.form-message { min-height: 20px; margin-top: 12px; font-size: 13px; font-weight: 650; }
.form-message.error { color: var(--danger); }
.form-message.success { color: var(--success); }
.security-note { padding: 24px; background: linear-gradient(160deg, #0e1a30, #142544); color: #fff; }
.security-note .note-kicker { color: #75baff; }
.security-note h3 { margin: 7px 0 9px; font-size: 20px; }
.security-note > p { margin: 0 0 22px; color: #a9b6ca; font-size: 13px; line-height: 1.7; }
.note-item { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .09); }
.note-item i { color: #67b5ff; font-size: 11px; font-style: normal; font-weight: 800; }
.note-item div { display: flex; flex-direction: column; gap: 3px; }
.note-item strong { font-size: 13px; }
.note-item span { color: #93a3bb; font-size: 11px; line-height: 1.55; }
.doc-card { padding: 24px; }
.doc-hero { border-radius: 14px; }
.doc-card pre { border: 1px solid #24324a; box-shadow: inset 0 1px rgba(255, 255, 255, .05); }
.feature-head, .feature-row {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr .75fr 1.4fr auto;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
}
.feature-head { padding: 0 2px; color: #64748b; font-size: 12px; }
.feature-row input { margin: 0; padding: 9px 10px; }
.feature-toggle {
  display: flex !important;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  margin: 0 !important;
  padding: 8px 10px;
  border: 1px solid #dce3ee;
  border-radius: 10px;
  background: #f8fafc;
  white-space: nowrap;
}
.feature-toggle input { width: auto !important; margin: 0 !important; }
@media (max-width: 900px) {
  .feature-head { display: none; }
  .feature-row { grid-template-columns: 1fr; padding: 12px; border: 1px solid #e5eaf2; border-radius: 12px; background: #fbfcfe; }
}

@media (max-width: 1100px) {
  .secure-chip { display: none; }
  .security-layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .sidebar {
    position: relative;
    inset: auto;
    width: 100%;
    padding: 15px;
  }
  .brand { padding-bottom: 14px; }
  .nav-shell { display: flex; flex-wrap: wrap; gap: 5px; overflow: visible; }
  .sidebar-section-label { display: none; }
  .nav { width: auto; flex: 1 0 145px; margin: 0; }
  .nav:hover { transform: none; }
  .sidebar-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; }
  .sidebar-footer .nav { flex: 0 0 auto; }
  .main { margin-left: 0; width: 100%; padding: 17px; }
  .topbar { top: 8px; }
  .login-layout { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-card { width: min(430px, calc(100% - 32px)); margin: 42px auto; padding: 30px; }
}
@media (max-width: 620px) {
  .topbar { align-items: flex-start; }
  .topbar-actions { margin-left: 10px; }
  .page-heading p { display: none; }
  .dashboard-intro { align-items: flex-start; flex-direction: column; padding: 20px; }
  .signing-state { width: 100%; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-card { min-height: 126px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .sidebar-footer .system-state { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .modal-card { width: calc(100vw - 20px); margin: 2vh auto; max-height: 96vh; }
}
@media (max-width: 420px) {
  .metric-grid { grid-template-columns: 1fr; }
  .nav { flex-basis: 130px; }
  .login-card { padding: 24px; }
}
.full-doc-card { padding: 24px; }
.doc-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.doc-actions .btn { text-decoration: none; }
.doc-loading { padding: 44px 12px; color: #64748b; text-align: center; }
.doc-layout { display: grid; grid-template-columns: minmax(210px, 260px) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 24px; }
.doc-toc { position: sticky; top: 20px; max-height: calc(100vh - 48px); overflow: auto; padding: 18px; border: 1px solid #e3e9f2; border-radius: 14px; background: #f8fafc; }
.doc-toc .toc > ul { margin: 0; padding-left: 18px; }
.doc-toc ul { padding-left: 18px; }
.doc-toc li { margin: 6px 0; color: #64748b; font-size: 12px; line-height: 1.45; }
.doc-toc a { color: #42526c; text-decoration: none; }
.doc-toc a:hover { color: var(--primary); }
.doc-body { min-width: 0; color: #26364f; line-height: 1.75; }
.doc-body h1 { margin: 0 0 22px; color: #14213a; font-size: 30px; }
.doc-body h2 { margin: 42px 0 16px; padding-top: 8px; border-top: 1px solid #e8edf4; color: #172641; font-size: 23px; }
.doc-body h3 { margin: 28px 0 12px; color: #233654; font-size: 18px; }
.doc-body h4 { margin: 22px 0 10px; color: #334966; }
.doc-body p, .doc-body li { font-size: 14px; }
.doc-body pre { max-width: 100%; overflow: auto; white-space: pre; }
.doc-body code { overflow-wrap: anywhere; }
.doc-body table { display: block; width: 100%; overflow-x: auto; }
.doc-body th, .doc-body td { min-width: 120px; vertical-align: top; }
.doc-body blockquote { margin: 16px 0; padding: 8px 16px; border-left: 4px solid #8fc3ff; background: #f4f8fd; color: #53647d; }
.doc-body .headerlink { margin-left: 8px; color: #aab6c7; text-decoration: none; }
@media (max-width: 980px) {
  .doc-layout { grid-template-columns: 1fr; }
  .doc-toc { position: relative; top: auto; max-height: 320px; }
}
@media (max-width: 620px) {
  .full-doc-card { padding: 14px; }
  .doc-body h1 { font-size: 24px; }
  .doc-body h2 { font-size: 20px; }
}

/* v1.0.12 full-site table and form refinement */
.toolbar {
  gap: 20px;
  padding: 13px 14px 13px 18px;
}
.toolbar-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}
.toolbar-copy > span {
  color: #7890b2;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.toolbar-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 118px;
  white-space: nowrap;
}
.toolbar-action b { font-size: 17px; font-weight: 500; line-height: 1; }

.page-tip {
  position: relative;
  margin: 0 0 14px;
  padding: 14px 17px 14px 42px;
  border: 1px solid #dce7f7;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fbff, #f3f7fd);
  box-shadow: 0 8px 22px rgba(22, 34, 55, .04);
  color: #60718a;
  font-size: 13px;
  line-height: 1.6;
}
.page-tip:before {
  content: "i";
  position: absolute;
  left: 16px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #dceafe;
  color: #2563eb;
  font-size: 11px;
  font-weight: 900;
}

.table-wrap {
  position: relative;
  max-width: 100%;
  overflow: auto;
  scrollbar-color: #c9d5e7 transparent;
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
}
.table-wrap::-webkit-scrollbar { width: 10px; height: 10px; }
.table-wrap::-webkit-scrollbar-track { background: #f7f9fc; border-radius: 99px; }
.table-wrap::-webkit-scrollbar-thumb { border: 2px solid #f7f9fc; border-radius: 99px; background: #c9d5e7; }
table.data-table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
  font-variant-numeric: tabular-nums;
}
table.data-table th,
table.data-table td {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  vertical-align: middle;
}
table.data-table th {
  height: 47px;
  white-space: nowrap;
}
table.data-table td {
  height: 58px;
  line-height: 1.45;
}
table.data-table tbody tr:nth-child(even) td { background: #fcfdff; }
table.data-table tbody tr:hover td { background: #f5f9ff; }

.col-id { width: 58px; min-width: 58px; color: #738097; }
.col-number { min-width: 72px; text-align: center; }
.col-status { min-width: 104px; }
.col-date { width: 154px; min-width: 154px; white-space: nowrap; }
.col-key { width: 190px; min-width: 190px; }
.col-customer { min-width: 150px; max-width: 220px; }
.col-product { min-width: 160px; max-width: 230px; }
.col-contact { min-width: 128px; max-width: 190px; }
.col-email { min-width: 190px; max-width: 260px; }
.col-version { min-width: 92px; }
.col-ip { width: 150px; min-width: 150px; }
.col-host { min-width: 150px; max-width: 220px; }
.col-instance { width: 210px; min-width: 210px; }
.col-type { min-width: 110px; }
.col-event { min-width: 170px; }
.col-endpoint { width: 220px; min-width: 220px; }
.col-harbor { width: 245px; min-width: 245px; max-width: 245px; }
.col-summary { min-width: 170px; max-width: 240px; white-space: normal; color: #55647a; }
.col-payload { width: 360px; min-width: 360px; max-width: 360px; }

.cell-stack {
  display: flex;
  min-width: 0;
  max-width: 100%;
  flex-direction: column;
  gap: 3px;
}
.cell-stack strong,
.cell-stack span,
.cell-clip {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cell-stack strong { color: #293850; font-size: 13px; font-weight: 750; }
.cell-stack span { color: #7a879b; font-size: 11px; }
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: -.025em;
}
.cell-stack.mono strong { color: #31588d; }
.cell-clip { max-width: 100%; }
.muted-dash { color: #a3adbc; font-size: 12px; }

.cell-actions {
  position: sticky;
  right: 0;
  z-index: 3;
  width: 214px;
  min-width: 214px;
  border-left: 1px solid #eef2f7;
  background: #fff !important;
  box-shadow: -10px 0 18px -18px rgba(15, 23, 42, .55);
}
th.cell-actions {
  z-index: 5;
  background: #f7f9fc !important;
}
table.data-table tbody tr:nth-child(even) td.cell-actions { background: #fcfdff !important; }
table.data-table tbody tr:hover td.cell-actions { background: #f5f9ff !important; }
.row-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}
.row-actions.single { grid-template-columns: 1fr; }
.row-actions .action-wide { grid-column: 1 / -1; }
.row-actions button {
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid #dce5f0;
  border-radius: 8px;
  background: #fff;
  color: #40516a;
  cursor: pointer;
  font-size: 12px;
  font-weight: 680;
  line-height: 1.2;
  white-space: nowrap;
}
.row-actions button:hover { border-color: #a9c1e7; background: #eef5ff; color: #1d4ed8; }
.row-actions button.danger { border-color: #fecdd3; background: #fff1f2; color: #be123c; }
.row-actions button.ok { border-color: #bbf7d0; background: #ecfdf5; color: #047857; }
.row-actions button:disabled { opacity: .45; cursor: not-allowed; }
.license-row-actions { grid-template-columns: repeat(2, minmax(82px, 1fr)); }

.license-table { min-width: 1650px !important; }
.products-table { min-width: 1280px !important; }
.customers-table { min-width: 1120px !important; }
.requests-table { min-width: 1450px !important; }
.request-log-table { min-width: 1760px !important; }
.activations-table { min-width: 1500px !important; }
.events-table { min-width: 1020px !important; }

.copy-token {
  max-width: 184px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.empty {
  display: flex;
  min-height: 210px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 4px;
  border-radius: 13px;
  background: #edf4ff;
  color: #3b82f6;
  font-size: 20px;
}
.empty strong { color: #43516a; font-size: 14px; }
.empty small { color: #98a4b5; font-size: 12px; }

.badge.created { background: #e8edff; color: #4f46c8; }
.badge.error, .badge.failed, .badge.rejected { background: #fff0f1; color: #c33145; }
.badge.pending { background: #fff7df; color: #9a6a08; }
.badge.blocked { background: #fff0f1; color: #be123c; }

.modal-card {
  display: flex;
  max-height: 92vh;
  flex-direction: column;
  overflow: hidden;
}
.modal-card.modal-wide { width: min(1080px, calc(100vw - 48px)); }
.modal-head,
.modal-actions { flex: 0 0 auto; }
.modal-body {
  min-height: 0;
  overflow: auto;
  padding: 22px;
  scrollbar-color: #c9d5e7 transparent;
  scrollbar-width: thin;
}
.modal-actions {
  position: relative;
  z-index: 2;
  box-shadow: 0 -10px 22px rgba(15, 23, 42, .035);
}
.modal-actions .btn { min-width: 92px; }
.modal-wide .field { margin-bottom: 16px; }
.modal-wide .limit-head,
.modal-wide .limit-row {
  grid-template-columns: 1.12fr 1.12fr .75fr .9fr 1.3fr auto;
}
.modal-wide .feature-head,
.modal-wide .feature-row {
  grid-template-columns: 1.12fr 1.12fr .76fr 1.35fr auto;
}
.modal-wide .limit-row,
.modal-wide .feature-row {
  padding: 6px;
  border: 1px solid #edf1f6;
  border-radius: 11px;
  background: #fbfcfe;
}
.modal-wide .limit-row:focus-within,
.modal-wide .feature-row:focus-within {
  border-color: #bad1f4;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .06);
}

@media (max-width: 900px) {
  .cell-actions {
    position: static;
    min-width: 190px;
    box-shadow: none;
  }
  .toolbar { align-items: stretch; }
  .toolbar-action { width: 100%; }
  .modal-card.modal-wide { width: min(96vw, 1080px); }
  .modal-wide .limit-row,
  .modal-wide .feature-row { grid-template-columns: 1fr; padding: 12px; }
}
@media (max-width: 620px) {
  .main { padding: 12px; }
  .topbar { border-radius: 14px; }
  .toolbar { padding: 14px; }
  .page-tip { padding-right: 14px; }
  .modal-card,
  .modal-card.modal-wide { width: calc(100vw - 16px); max-height: 97vh; margin: 1.5vh auto; }
  .modal-head,
  .modal-body,
  .modal-actions { padding-left: 16px; padding-right: 16px; }
}

/* v1.0.12 ui3: full-width workspace */
#panel {
  width: 100%;
  max-width: none;
  margin: 0;
}
.main {
  padding: 16px 18px 28px;
}
#content,
#content > .card,
#content > .table-wrap,
#content > .toolbar,
#content > .pager,
.topbar,
.dashboard-intro,
.security-layout,
.doc-layout {
  width: 100%;
  max-width: none;
}
.topbar {
  top: 8px;
  margin-bottom: 14px;
}
.toolbar { margin-bottom: 12px; }
.table-wrap { box-shadow: 0 8px 24px rgba(22, 34, 55, .055); }
.cell-actions { box-shadow: none; }
.modal-card.modal-wide { width: min(1280px, calc(100vw - 36px)); }

@media (min-width: 1600px) {
  .main { padding-left: 20px; padding-right: 20px; }
  .topbar { min-height: 78px; }
  .toolbar { min-height: 58px; }
  table.data-table td { height: 60px; }
}
@media (max-width: 900px) {
  .main { padding: 12px; }
}
@media (max-width: 620px) {
  .main { padding: 8px; }
}

/* v1.0.12 ui4: every data table fills the responsive workspace */
table.data-table {
  width: 100% !important;
}

/* v1.0.12 ui5: compact feature chips and green documentation code */
.feature-chip-list,
.limit-chip-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 27px;
  padding: 4px 9px;
  border: 1px solid #c9eadc;
  border-radius: 999px;
  background: #f1fbf6;
  color: #177357;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.feature-chip i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #22a879;
  box-shadow: 0 0 0 3px rgba(34, 168, 121, .1);
}
.feature-chip.is-off {
  border-color: #dfe5ed;
  background: #f7f9fc;
  color: #7d899b;
}
.feature-chip.is-off i { background: #a6b0bf; box-shadow: none; }
.limit-chip {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #dce6f5;
  border-radius: 8px;
  background: #f7faff;
  color: #48617f;
  font-size: 11px;
  white-space: nowrap;
}
.limit-chip b { padding: 4px 7px; font-weight: 700; }
.limit-chip em {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  border-left: 1px solid #dce6f5;
  background: #edf4ff;
  color: #2459a9;
  font-style: normal;
  font-weight: 750;
}
.products-table .col-summary { width: 310px; min-width: 260px; max-width: 380px; }

.doc-card code,
.doc-body code {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #178447 !important;
}
.doc-body pre {
  border-color: #25354f;
  background: #0f172a;
}
.doc-card pre code,
.doc-body pre code,
.doc-body pre code * {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #79e5a7 !important;
}
