:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --fill: #f1f5f9;
  --accent: #3b82f6;
  --accent-2: #2563eb;
  --accent-soft: #eff6ff;
  --ok: #16a34a;
  --ok-soft: #dcfce7;
  --danger: #ef4444;
  --danger-soft: #fee2e2;
  --warn: #f59e0b;
  --warn-soft: #fef3c7;
  --radius: 12px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.04);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --font: system-ui, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5;
}
::selection { background: #dbeafe; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.body { padding: 28px 32px 40px; background: var(--bg); }

.adm-ico { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* shell */
.adm-shell { height: 100vh; overflow: hidden; background: var(--bg); }
.adm-app {
  display: grid;
  grid-template-columns: 232px 1fr;
  grid-template-rows: 64px 1fr;
  height: 100vh;
}
.adm-side {
  grid-row: 1 / span 2;
  background: var(--panel);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.adm-brand {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.adm-logo {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(145deg, #60a5fa, #2563eb);
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.28);
}
.adm-logo svg { width: 16px; height: 16px; }
.adm-nav { flex: 1; overflow: auto; padding: 6px 12px 16px; }
.adm-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #475569;
  text-decoration: none;
  padding: 9px 12px;
  margin: 2px 0;
  border-radius: 10px;
  font-size: 13px;
  position: relative;
}
.adm-nav a:hover { background: var(--fill); color: var(--text); }
.adm-nav a.is-on {
  background: var(--accent-soft);
  color: var(--accent-2);
  font-weight: 600;
}
.adm-nav a.is-on::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
}
.adm-group {
  margin: 16px 12px 6px;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.04em;
}
.adm-side-foot {
  padding: 12px 14px 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.adm-side-foot img { width: 32px; height: 32px; border-radius: 50%; }
.adm-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.adm-search {
  flex: 1;
  max-width: 420px;
  margin: 0 auto;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: var(--muted);
  gap: 8px;
}
.adm-search input {
  border: 0; background: transparent; outline: none;
  flex: 1; font: inherit; color: var(--text);
}
.adm-search kbd {
  font: inherit; font-size: 11px; color: #94a3b8;
  border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; background: #fff;
}
.adm-crumb { font-size: 15px; font-weight: 650; min-width: 88px; }
.adm-user { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); margin-left: auto; }
.adm-user img { width: 32px; height: 32px; border-radius: 50%; }
.adm-user a { color: #475569; text-decoration: none; }
.adm-user a:hover { color: var(--accent); }
.adm-bell { position: relative; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: #475569; cursor: pointer; }
.adm-bell i {
  position: absolute; top: 8px; right: 8px;
  width: 7px; height: 7px; border-radius: 50%; background: #ef4444;
}
.adm-main { min-width: 0; background: var(--bg); }
.adm-main iframe { width: 100%; height: 100%; border: 0; background: var(--bg); }
.adm-menu {
  display: none;
  width: 36px; height: 36px; border: 0; border-radius: 10px;
  background:
    linear-gradient(var(--text), var(--text)) 10px 12px / 16px 1.5px no-repeat,
    linear-gradient(var(--text), var(--text)) 10px 17px / 16px 1.5px no-repeat,
    linear-gradient(var(--text), var(--text)) 10px 22px / 16px 1.5px no-repeat;
  cursor: pointer;
}

/* login split */
.adm-login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 44%) 1fr;
  background: #fff;
}
.adm-login-hero {
  background:
    radial-gradient(900px 420px at 20% -10%, rgba(59, 130, 246, 0.28), transparent 55%),
    linear-gradient(165deg, #d7e8ff 0%, #eef4ff 42%, #e4edff 100%);
  position: relative;
  overflow: hidden;
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.adm-login-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(#93c5fd 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.55;
  pointer-events: none;
}
.adm-login-hero > * { position: relative; }
.adm-hex {
  width: 72px; height: 72px;
  filter: drop-shadow(0 12px 20px rgba(37, 99, 235, 0.25));
}
.adm-login-hero h1 {
  margin: 28px 0 10px;
  font-size: 36px;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.adm-login-hero p { margin: 0; color: var(--muted); max-width: 28ch; font-size: 15px; }
.adm-login-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  padding-top: 20px;
}
.adm-login-stats b { display: block; color: var(--accent-2); font-size: 20px; font-weight: 700; }
.adm-login-stats span { color: var(--muted); font-size: 12px; }
.adm-login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.adm-card {
  width: min(400px, 100%);
}
.adm-card-brand {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 28px; font-weight: 700;
}
.adm-login-mark { margin: 0 0 6px; text-align: center; color: var(--muted); font-size: 13px; }
.adm-card h2 {
  margin: 0 0 6px;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.adm-card .sub { text-align: center; color: var(--muted); margin: 0 0 28px; font-size: 13px; }
.adm-field { margin-bottom: 14px; }
.adm-field label { display: block; font-size: 13px; color: #334155; margin-bottom: 6px; font-weight: 500; }
.layui-input, .layui-textarea, select {
  width: 100%;
  max-width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  box-sizing: border-box;
}
select, select.layui-input, .adm-field select, .lm-input, .lm-field select {
  -webkit-appearance: none;
  appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.adm-field input, .adm-field select, .adm-field textarea {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  box-sizing: border-box;
  display: block;
}
.adm-field input:focus, .layui-input:focus, .layui-textarea:focus, select:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16);
}
.adm-field textarea, .layui-textarea { height: auto; min-height: 96px; padding: 10px 12px; }
.adm-pass { position: relative; }
.adm-pass input { padding-right: 40px; }
.adm-eye {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  border: 0; background: none; color: #94a3b8; cursor: pointer; padding: 4px;
}
.adm-row-between { display: flex; justify-content: space-between; align-items: center; margin: 8px 0 16px; font-size: 13px; }
.adm-row-between a { color: var(--accent); text-decoration: none; }
.adm-check { display: flex; align-items: center; gap: 8px; color: #334155; }
.adm-check input { accent-color: var(--accent); width: 16px; height: 16px; }
.adm-or {
  display: flex; align-items: center; gap: 12px; color: #94a3b8; font-size: 12px; margin: 16px 0;
}
.adm-or::before, .adm-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.adm-btn, .layui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.22);
  box-sizing: border-box;
  vertical-align: middle;
}
.adm-btn:hover, .layui-btn:hover { background: var(--accent-2); }
.adm-btn-block { width: 100%; min-height: 44px; }
.adm-card .adm-btn-block,
.adm-card .adm-field input,
.adm-card .adm-field select,
.adm-card .adm-pass,
.adm-card .adm-pass input { width: 100%; box-sizing: border-box; }
.adm-btn-ghost, .layui-btn-primary {
  background: #fff;
  color: var(--accent-2);
  border: 1px solid #bfdbfe;
  box-shadow: none;
}
.adm-btn-ghost:hover, .layui-btn-primary:hover { background: var(--accent-soft); }
.layui-btn-normal { background: var(--accent); }
.layui-btn-danger { background: var(--danger); box-shadow: none; }
.layui-btn-warm { background: var(--warn); box-shadow: none; }
.layui-btn-xs { min-height: 26px; padding: 0 8px; font-size: 12px; box-shadow: none; }
.layui-btn-sm { min-height: 32px; padding: 0 10px; font-size: 12px; }
.layui-btn-big, .layui-btn-lg { min-height: 44px; }
.layui-btn-radius { border-radius: 999px; }
.layui-bg-cyan { background: #06b6d4; color: #fff; }
.layui-bg-black { background: #0f172a; color: #fff; }

.my-index-main > .layui-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px 8px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: none;
}
.adm-toolbar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 22px 12px;
  margin-bottom: 14px;
}
.adm-toolbar > .layui-form {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 4px;
  border: 0;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
}
.adm-toolbar .layui-form-item { max-width: none; }
.adm-toolbar > .layui-elem-quote {
  margin: 8px 0 4px;
  max-width: 720px;
}
body.body-embed .adm-toolbar {
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
  background: transparent;
}
.layui-form-item {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 10px 14px;
  margin-bottom: 16px;
  align-items: start;
  max-width: 720px;
}
.layui-form-label {
  padding-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  text-align: right;
}
.layui-input-block, .layui-input-inline { min-width: 0; }
.layui-input-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  max-width: 480px;
}
.layui-input-block > .layui-btn:not(.layui-btn-xs) {
  min-height: 44px;
}
.layui-form-item > .layui-input-block:first-child { grid-column: 2; }
.layui-input-block > .layui-input,
.layui-input-block > .layui-textarea,
.layui-input-block > select {
  width: 100%;
  max-width: 100%;
  flex: 1 1 100%;
  min-width: 0;
}
.layui-form-mid, .layui-word-aux {
  flex: 1 1 100%;
  width: 100%;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  padding: 0;
  white-space: normal;
}
.adm-opt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.adm-opt input[type="checkbox"],
.adm-opt input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
  flex: 0 0 auto;
}
.adm-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.layui-hide, [hidden] { display: none !important; }
.layui-show { display: block; }
.layui-collapse {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 0 0 14px;
  border-radius: 0;
}
.layui-colla-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  margin: 0;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.layui-colla-title,
.layui-colla-item > h2 {
  margin: 0;
  padding: 16px 22px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.layui-colla-content {
  display: none;
  padding: 20px 22px 12px;
}
.layui-colla-content.layui-show { display: block; }
.layui-colla-content .layui-form-item { max-width: 640px; }
.layui-colla-item > .layui-btn {
  float: none !important;
  margin: 0 22px 18px;
}
blockquote.layui-elem-quote,
.layui-elem-quote {
  display: block;
  box-sizing: border-box;
  width: auto;
  max-width: 720px;
  margin: 0 0 16px;
  padding: 16px 18px;
  background: var(--accent-soft);
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  color: #1e3a8a;
  font-size: 13px;
  line-height: 1.7;
}
.layui-elem-quote a { color: var(--accent-2); }
.layui-input-block > .layui-elem-quote {
  flex: 1 1 100%;
  width: 100%;
  max-width: none;
}
.layui-colla-content > .layui-elem-quote,
.layui-form > .layui-elem-quote {
  max-width: 720px;
}
.layui-upload-drag {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 180px;
  padding: 24px;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  text-align: center;
}
.layui-upload-drag:hover {
  border-color: #93c5fd;
  background: var(--accent-soft);
  color: var(--accent-2);
}
.layui-upload-drag .layui-icon { font-size: 28px; color: var(--accent); }
.img-thumbnail {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--fill);
}
.layui-row { display: block; }
.layui-row:has(> .layui-col-xs6) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.my-index-main { max-width: 100%; min-width: 0; overflow-x: hidden; }
.layui-col-xs12, .layui-col-md12 { display: block; }
.layui-col-xs6 { min-width: 0; }

.adm-table-host { width: 100%; min-width: 0; }
.adm-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.adm-table-wrap.is-empty { overflow: hidden; }
.adm-table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  font-size: 13px;
}
.adm-table th, .adm-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 10px;
  text-align: left;
  vertical-align: middle;
}
.adm-table th {
  background: #f8fafc;
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.adm-table td {
  white-space: nowrap;
}
.adm-cell-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
}
.adm-switch-lab { font-size: 12px; color: var(--text); }
.adm-table tr:last-child td { border-bottom: 0; }
.adm-table tbody tr:hover td { background: #f8fafc; }
.adm-table input[type="text"] { height: 32px; width: 100%; min-width: 0; }
.adm-table td:has(input[type="checkbox"]) { text-align: center; }
.adm-empty,
.adm-table td.adm-empty {
  white-space: normal;
  text-align: center;
  color: var(--muted);
  padding: 48px 16px;
}
.adm-table td.adm-na {
  color: var(--muted);
  font-weight: 400;
}
.adm-table td.adm-ops {
  overflow: visible;
  white-space: nowrap;
  min-width: 0;
}
.adm-table td.adm-ops .layui-btn { margin-right: 0; }
.adm-link {
  display: inline;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.adm-link:hover {
  background: none;
  text-decoration: underline;
}
.adm-ud-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}
.adm-ud-item { min-width: 0; }
.adm-ud-item.is-wide { grid-column: 1 / -1; }
.adm-ud-item dt {
  margin: 0 0 2px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.adm-ud-item dd {
  margin: 0;
  font-size: 13px;
  word-break: break-all;
  font-variant-numeric: tabular-nums;
}
.adm-ud-act {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.adm-ud-act .layui-btn { margin: 0; }
.adm-ud-act .adm-ud-del { margin-left: auto; }
@media (max-width: 560px) {
  .adm-ud-grid { grid-template-columns: 1fr; }
  .adm-ud-act .adm-ud-del { margin-left: 0; }
}
.adm-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
.adm-app-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.adm-app-card-hd {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.adm-app-card-hd strong {
  display: inline;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  word-break: break-all;
  margin-right: 8px;
}
.adm-crypto-tag {
  display: inline-block;
  vertical-align: middle;
  margin-top: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: #f1f5f9;
  color: var(--muted);
}
.adm-crypto-tag.is-v3 {
  background: #ecfdf5;
  color: #047857;
}
.adm-crypto-tag.is-v2 {
  background: var(--accent-soft);
  color: var(--accent-2);
}
.adm-expire-tag {
  display: inline-block;
  vertical-align: middle;
  margin-top: 4px;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: #f1f5f9;
  color: var(--muted);
}
.adm-expire-tag.is-over {
  background: var(--danger-soft);
  color: var(--danger);
}
.adm-app-id {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-bottom: 2px;
}
.adm-app-card-stats {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
  flex: 0 0 auto;
}
.adm-app-card-stats b {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  margin-left: 4px;
  font-variant-numeric: tabular-nums;
}
.adm-app-card-sec {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px 10px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.adm-app-card-act {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.adm-prod {
  padding: 2px 0 6px;
}
.adm-prod-add {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr auto;
  gap: 8px;
  margin-bottom: 14px;
}
.adm-prod-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.adm-prod-table th,
.adm-prod-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.adm-prod-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}
.adm-prod-table code {
  font-size: 12px;
}
.adm-prod-table .layui-input {
  height: 32px;
}
.adm-prod-log {
  padding: 4px 0 8px;
}
.adm-prod-log-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.adm-prod-log-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.adm-prod-log-bar input,
.adm-prod-log-bar select {
  height: 34px;
}
.adm-prod-log-bar input {
  flex: 1;
}
.adm-prod-log-msg {
  white-space: pre-wrap;
  word-break: break-all;
  font-family: ui-monospace, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
}
.adm-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  padding: 14px 2px 0;
  font-size: 13px;
  color: var(--muted);
}
.layui-timeline {
  list-style: none;
  margin: 0;
  padding: 4px 0 8px 8px;
  border-left: 2px solid var(--line);
}
.layui-timeline-item {
  position: relative;
  padding: 0 0 22px 22px;
}
.layui-timeline-axis {
  position: absolute;
  left: -7px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  font-size: 0 !important;
  overflow: hidden;
}
.layui-timeline-title { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.layui-timeline-content p { margin: 0; color: var(--text); }
.adm-flow-more { margin: 12px 0 0 30px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; width: 100%; }

input[lay-skin="switch"] {
  appearance: none; width: 40px; height: 22px; border-radius: 99px;
  background: #cbd5e1; position: relative; cursor: pointer; vertical-align: middle;
}
input[lay-skin="switch"]:checked { background: var(--accent); }
input[lay-skin="switch"]::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(15,23,42,.15);
}
input[lay-skin="switch"]:checked::after { left: 20px; }

.adm-toast {
  position: fixed;
  top: 12px;
  left: 50%;
  right: auto;
  bottom: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: min(380px, calc(100vw - 24px));
  min-width: 0;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  border: 0.5px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.12), 0 1px 2px rgba(15, 23, 42, 0.04);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  z-index: 120;
  font-size: 13px;
  line-height: 1.55;
  pointer-events: none;
  overflow: hidden;
  opacity: 1;
  transform-origin: 50% 0;
  transform: translate(-50%, 0) scale(0.13, 1.08);
  transition: transform 880ms var(--ease-drawer),
              border-radius 880ms var(--ease-drawer);
}
.adm-toast.is-on {
  border-radius: 20px;
  transform: translate(-50%, 0) scale(1, 1);
}
.adm-toast.is-out {
  opacity: 0;
  border-radius: 20px;
  transform: translate(-50%, 0) scale(1, 1);
  transition: opacity 220ms var(--ease-out);
}
@media (prefers-reduced-motion: reduce) {
  .adm-toast.is-out {
    transform: translate(-50%, 0) scale(1, 1);
    transition: opacity 180ms ease;
  }
}
.adm-toast-mark {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 1px;
}
.adm-toast-mark svg { display: block; width: 20px; height: 20px; }
.adm-toast.is-ok .adm-toast-mark { color: #16a34a; }
.adm-toast.is-err .adm-toast-mark { color: #ef4444; }
.adm-toast.is-info .adm-toast-mark { color: var(--accent); }
.adm-toast-body { min-width: 0; white-space: pre-wrap; word-break: break-word; }
.adm-mask {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .36);
  z-index: 70; display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0;
  transition: opacity 180ms ease;
}
.adm-mask.is-in { opacity: 1; }
.adm-modal {
  background: var(--panel); border-radius: 16px;
  min-width: min(420px, 92vw); max-width: 92vw; max-height: 90vh;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(15,23,42,.18);
  transform: translateY(8px);
  opacity: 0;
  transition: transform 220ms var(--ease-out), opacity 180ms ease;
}
.adm-mask.is-in .adm-modal {
  transform: translateY(0);
  opacity: 1;
}
.adm-mask.is-in .adm-modal.is-sharp,
.adm-modal.is-sharp {
  transform: none;
  opacity: 1;
}
.adm-modal-hd {
  margin: 0; padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex: 0 0 auto;
}
.adm-modal-x {
  width: 32px; height: 32px; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer;
}
.adm-modal-x:hover { background: var(--fill); color: var(--text); }
.adm-modal .adm-modal-body { padding: 16px 20px; overflow: auto; min-height: 0; flex: 1 1 auto; }
.adm-modal .adm-modal-actions {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 12px 20px 18px;
  flex: 0 0 auto;
  border-top: 1px solid var(--line);
}
.adm-modal-iframe {
  display: flex; flex-direction: column;
  overflow: hidden; max-height: 90vh;
}
.adm-modal-iframe .adm-modal-body { flex: 1; min-height: 0; padding: 0; overflow: hidden; }
.adm-modal-frame { width: 100%; height: 100%; min-height: 520px; border: 0; display: block; background: #fff; }
.adm-alert-html { line-height: 1.7; word-break: break-all; }
.adm-key-hint { margin: 0 0 16px; font-size: 13px; color: var(--muted); line-height: 1.55; }
.adm-key-block { margin: 0 0 14px; }
.adm-key-block:last-child { margin-bottom: 0; }
.adm-key-block > span {
  display: block; font-size: 13px; font-weight: 650; color: var(--text);
}
.adm-key-block small {
  display: block; margin: 2px 0 8px; font-size: 12px; color: var(--muted); font-weight: 400;
}
.adm-key-line { display: flex; gap: 8px; align-items: stretch; }
.adm-key-line input {
  flex: 1; min-width: 0;
  font-family: ui-monospace, "Cascadia Mono", Consolas, "Sarasa Mono SC", monospace;
  font-size: 12px;
  letter-spacing: 0;
}
.adm-key-line .layui-btn { flex: 0 0 auto; box-shadow: none; min-width: 64px; }
.adm-key-reset { margin-top: 4px; }
.adm-load {
  position: fixed; inset: 0; background: rgba(248,250,252,.65);
  z-index: 85; display: flex; align-items: center; justify-content: center;
}
.adm-load i {
  width: 26px; height: 26px; border: 3px solid var(--line); border-top-color: var(--accent);
  border-radius: 50%; animation: admspin .7s linear infinite;
}
@keyframes admspin { to { transform: rotate(360deg); } }

.adm-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.adm-page-head h1 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.adm-prod-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 14px;
}
.adm-prod-bar select,
.adm-prod-bar input {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  background: var(--panel);
  min-width: 0;
}
.adm-prod-bar select { min-width: 220px; max-width: 320px; }
.adm-prod-bar input { flex: 1; min-width: 180px; max-width: 360px; }
body.body-embed { padding: 8px 12px 20px; background: #fff; }
body.body-embed .my-index-main > .layui-form {
  width: 100%;
  max-width: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
  background: transparent;
}
body.body-embed .layui-form-item { max-width: none; }
.adm-hero h1 { margin: 0 0 4px; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.adm-hero p { margin: 0; color: var(--muted); font-size: 13px; }
.adm-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.adm-tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 14px;
  box-shadow: var(--shadow);
}
.adm-tile span { color: var(--muted); font-size: 12px; }
.adm-tile b {
  display: block;
  margin: 6px 0 8px;
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.adm-tile svg { width: 100%; height: 28px; display: block; }
.adm-block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-top: 14px;
  box-shadow: var(--shadow);
}
.adm-block h2 { margin: 0 0 10px; font-size: 16px; font-weight: 650; }
.adm-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
#login-err { color: var(--danger); font-size: 13px; min-height: 1.2em; margin: 10px 0 0; text-align: center; }
.adm-login-foot { margin-top: 22px; text-align: center; font-size: 12px; color: var(--muted); }
.adm-login-foot a { color: var(--accent); text-decoration: none; }
.adm-tile[data-href] { cursor: pointer; }
.mdl-textfield { margin: 0 0 14px; width: 100%; box-sizing: border-box; }
.mdl-textfield__label, .mdl-textfield > label {
  display: block;
  font-size: 13px;
  color: #334155;
  margin-bottom: 6px;
  font-weight: 500;
}
.mdl-textfield__input {
  display: block;
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  box-sizing: border-box;
}
.mdl-textfield__input:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16);
}
.mdl-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.mdl-radio { margin-right: 12px; font-size: 13px; color: #334155; }

@media (max-width: 1100px) {
  .adm-tiles { grid-template-columns: repeat(2, 1fr); }
  .adm-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .adm-login { grid-template-columns: 1fr; }
  .adm-login-hero { display: none; }
  .adm-app { grid-template-columns: 1fr; }
  .adm-side { display: none; }
  .adm-side.is-open {
    display: flex; position: fixed; inset: 0 auto 0 0; width: 232px; z-index: 40;
    box-shadow: var(--shadow);
  }
  .adm-menu { display: block; }
  .adm-search { display: none; }
  .layui-form-item { grid-template-columns: 1fr; max-width: none; }
  .my-index-main > .layui-form { width: 100%; }
  .layui-form-label { text-align: left; padding-top: 0; }
  body.body { padding: 16px; }
}
