﻿:root {
  color-scheme: light;
  --navy: #10233f;
  --ink: #17243a;
  --muted: #69778d;
  --line: #e2e8f1;
  --paper: #fff;
  --canvas: #f4f7fb;
  --blue: #1261d6;
  --blue-dark: #084ba9;
  --blue-soft: #eaf2ff;
  --green: #16865c;
  --green-soft: #e8f7f1;
  --amber: #b66b08;
  --amber-soft: #fff5df;
  --danger: #c2382b;
  --danger-soft: #fff0ee;
  --shadow: 0 18px 55px rgba(23, 52, 91, .11);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; overflow-x: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin-top: 0; }
h1 { letter-spacing: -.035em; }
a { color: inherit; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  height: 84px;
  margin: auto;
}
.site-header.compact { width: min(1480px, calc(100% - 48px)); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand > span:last-child { display: grid; gap: 2px; }
.brand strong { color: var(--navy); font-size: 17px; letter-spacing: .02em; }
.brand small { color: var(--muted); font-size: 11px; }
.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: linear-gradient(145deg, #1775ed, #0847a7);
  box-shadow: 0 8px 20px rgba(18, 97, 214, .25);
  font-weight: 800;
}
.brand-mark.large { width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 17px; font-size: 23px; }
.nav-link { color: var(--blue); font-size: 14px; font-weight: 700; text-decoration: none; }
.nav-link span { display: inline-block; margin-left: 5px; transition: transform .2s; }
.nav-link:hover span { transform: translateX(4px); }

.portal-body {
  background:
    radial-gradient(circle at 15% 25%, rgba(33, 120, 237, .14), transparent 31%),
    radial-gradient(circle at 90% 85%, rgba(51, 164, 139, .11), transparent 30%),
    #f6f9fd;
}
.portal-shell {
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: clamp(50px, 8vw, 110px);
  align-items: center;
  width: min(1120px, calc(100% - 48px));
  min-height: calc(100vh - 125px);
  margin: auto;
  padding: 35px 0 70px;
}
.portal-shell.single { grid-template-columns: 1fr; width: min(920px, calc(100% - 48px)); }
.hero-copy .tag, .tag {
  display: inline-flex;
  padding: 7px 12px;
  border: 1px solid #cfe0f8;
  border-radius: 100px;
  color: var(--blue);
  background: rgba(255,255,255,.7);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}
.hero-copy h1 {
  margin: 24px 0 20px;
  color: var(--navy);
  font-size: clamp(43px, 5.4vw, 68px);
  line-height: 1.13;
}
.hero-copy h1 em { color: var(--blue); font-style: normal; }
.hero-copy > p { max-width: 610px; color: var(--muted); font-size: 17px; line-height: 1.8; }
.feature-grid { display: grid; gap: 14px; margin-top: 36px; }
.feature-grid article { display: flex; align-items: center; gap: 14px; }
.feature-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 13px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: 800;
}
.feature-grid article div { display: grid; gap: 3px; }
.feature-grid small { color: var(--muted); }

.qr-card {
  padding: 26px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 28px;
  background: rgba(255,255,255,.93);
  box-shadow: 0 30px 90px rgba(31, 67, 113, .16);
  text-align: center;
  backdrop-filter: blur(16px);
}
.qr-card-head, .browser-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}
.qr-card-head > div { display: flex; align-items: center; gap: 8px; color: var(--green); }
.secure-label { padding: 5px 9px; border-radius: 8px; background: var(--green-soft); color: var(--green); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22a873; box-shadow: 0 0 0 4px rgba(34,168,115,.13); }
.qr {
  display: grid;
  width: 286px;
  height: 286px;
  margin: 25px auto 20px;
  padding: 18px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
}
.qr img, .qr canvas { max-width: 100%; }
.qr-card h2 { margin-bottom: 7px; font-size: 20px; }
.qr-card > p { color: var(--muted); font-size: 13px; }
.qr-actions { display: flex; gap: 10px; margin-top: 20px; }
.link-preview { overflow: hidden; margin: 14px 0 0; text-overflow: ellipsis; white-space: nowrap; }
.skeleton { animation: shimmer 1.3s infinite linear; background: linear-gradient(90deg,#eef2f7 25%,#f8fafc 50%,#eef2f7 75%); background-size: 200% 100%; }
.qr-skeleton { width: 250px; height: 250px; border-radius: 14px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.button, .toolbar-button, .icon-button {
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  font-weight: 700;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 17px; text-decoration: none; }
.button:hover, .toolbar-button:hover, .icon-button:hover { transform: translateY(-1px); }
.button.primary { color: white; background: var(--blue); box-shadow: 0 8px 20px rgba(18,97,214,.2); }
.button.primary:hover { background: var(--blue-dark); }
.button.secondary { color: var(--blue); background: var(--blue-soft); }
.button.wide { flex: 1; width: 100%; }
.icon-button, .toolbar-button { padding: 10px 13px; color: #52637a; background: #f1f4f8; }
.toolbar-button.danger { color: var(--danger); background: var(--danger-soft); }
.toolbar-button.solid-danger { color: white; background: var(--danger); }
.danger-button { color: white; background: var(--danger); }

.session-body { background: #eef3f9; }
.mobile-auth-body {
  min-height: 100vh;
  padding: 18px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 0, rgba(18,97,214,.16), transparent 32%),
    #f3f7fc;
  -webkit-text-size-adjust: 100%;
}
.mobile-auth-card {
  overflow: hidden;
  width: min(100%, 500px);
  max-width: 100%;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: var(--shadow);
}
.mobile-auth-header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 17px 19px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}
.mobile-auth-header > div { display: grid; flex: 1; gap: 2px; }
.mobile-auth-header strong { color: var(--navy); font-size: 15px; }
.mobile-auth-header small { color: var(--muted); font-size: 10px; }
.mobile-auth-content { padding: 27px 24px 25px; text-align: center; }
.mobile-auth-content h1 { margin: 9px 0 8px; font-size: 27px; }
.mobile-auth-content .lead { min-height: 42px; margin-bottom: 19px; font-size: 13px; }
.mobile-qr-wrap {
  position: relative;
  display: grid;
  width: min(100%, 310px);
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 18px;
  place-items: center;
  border: 1px solid #dce5f1;
  border-radius: 18px;
  background: white;
  box-shadow: 0 12px 35px rgba(24,61,106,.09);
}
.mobile-qr-wrap img { display: block; width: 100%; height: 100%; opacity: 0; object-fit: contain; transition: opacity .2s; -webkit-touch-callout: default; user-select: auto; }
.mobile-qr-wrap img.visible { opacity: 1; }
.mobile-qr-loading { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; align-content: center; color: var(--muted); font-size: 12px; }
.mobile-qr-loading[hidden] { display: none; }
.mobile-qr-loading p { margin: 10px 0 0; }
.qr-corner { position: absolute; width: 25px; height: 25px; border-color: var(--blue); border-style: solid; pointer-events: none; }
.qr-corner.top-left { top: 8px; left: 8px; border-width: 3px 0 0 3px; border-radius: 7px 0 0; }
.qr-corner.top-right { top: 8px; right: 8px; border-width: 3px 3px 0 0; border-radius: 0 7px 0 0; }
.qr-corner.bottom-left { bottom: 8px; left: 8px; border-width: 0 0 3px 3px; border-radius: 0 0 0 7px; }
.qr-corner.bottom-right { right: 8px; bottom: 8px; border-width: 0 3px 3px 0; border-radius: 0 0 7px; }
.mobile-qr-wrap.authorized { opacity: .3; }
.long-press-tip {
  display: flex;
  align-items: center;
  width: min(100%, 310px);
  margin: 14px auto 20px;
  padding: 11px 14px;
  gap: 11px;
  border-radius: 12px;
  color: #775116;
  background: var(--amber-soft);
  text-align: left;
}
.finger-icon { font-size: 25px; }
.long-press-tip div { display: grid; gap: 2px; }
.long-press-tip strong { font-size: 13px; }
.long-press-tip small { font-size: 10px; }
.mobile-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin: 0 0 18px; padding: 0; list-style: none; }
.mobile-steps li { display: grid; place-items: center; align-content: start; gap: 6px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.mobile-steps li span { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; color: var(--blue); background: var(--blue-soft); font-size: 11px; font-weight: 900; }
.security-notice { padding: 13px 14px; border-radius: 11px; color: #52637a; background: #f3f6fa; text-align: left; }
.security-notice strong { font-size: 11px; }
.security-notice p { margin: 4px 0 0; font-size: 10px; line-height: 1.6; }
.auth-success { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 12px 14px; border-radius: 11px; color: var(--green); background: var(--green-soft); text-align: left; }
.auth-success > span { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; color: white; background: var(--green); font-weight: 900; }
.auth-success div { display: grid; gap: 2px; }
.auth-success small { font-size: 10px; }
.mobile-auth-actions { display: grid; gap: 13px; margin: 18px 0 16px; }
.mobile-auth-actions.two { grid-template-columns: 1fr 1fr; }
.mobile-auth-actions .button { min-width: 0; }
.consent-document {
  max-height: 240px;
  overflow: auto;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f8fafc;
  text-align: left;
}
.consent-document p { margin: 0 0 10px; color: #3f4f65; font-size: 13px; line-height: 1.75; text-indent: 2em; }
.identity-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0 12px;
  text-align: left;
}
.identity-form label { display: grid; gap: 6px; color: #516278; font-size: 11px; font-weight: 800; }
.identity-form label.wide { grid-column: 1 / -1; }
.identity-form input {
  width: 100%;
  max-width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: #fff;
  box-sizing: border-box;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
.identity-form input:focus { border-color: #8eb7ec; box-shadow: 0 0 0 3px rgba(18,97,214,.09); }
.signature-label { display: block; margin: 12px 0 8px; color: var(--navy); font-size: 13px; font-weight: 800; text-align: left; }
.signature-shell { position: relative; }
.signature-pad {
  width: 100%;
  height: 150px;
  border: 1px dashed #9db2ce;
  border-radius: 14px;
  background:
    linear-gradient(transparent calc(100% - 1px), #e9eef6 calc(100% - 1px)),
    white;
  touch-action: none;
}
.signature-full-head, .signature-full-actions { display: none; }
body.signing-lock {
  overflow: hidden;
  position: fixed;
  inset: 0;
  width: 100%;
}
.signature-shell.fullscreen {
  position: fixed;
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  height: var(--signature-viewport-height, 100dvh);
  z-index: 300;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  background: #f8fafc;
  overflow: hidden;
  box-sizing: border-box;
}
.signature-shell.fullscreen .signature-full-head {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  gap: 6px;
  text-align: center;
  padding: 12px 16px;
  border: 1px solid #d8e4f3;
  border-radius: 14px;
  background: #fff;
  position: relative;
  z-index: 3;
}
.signature-shell.fullscreen .signature-full-head strong { color: var(--navy); font-size: clamp(17px, 2.6vw, 22px); }
.signature-shell.fullscreen .signature-full-head span { color: #516278; font-size: clamp(12px, 1.8vw, 15px); line-height: 1.55; }
.signature-shell.fullscreen .signature-pad {
  grid-column: 2;
  grid-row: 2;
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 0;
  max-height: 100%;
  height: 100%;
  border: 2px dashed #7fa1ce;
  border-radius: 18px;
  box-sizing: border-box;
  background: white;
}
.signature-shell.fullscreen .signature-full-actions {
  grid-column: 1;
  grid-row: 1 / 3;
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 8px 0;
  position: relative;
  z-index: 5;
  background: #f8fafc;
}
.signature-shell.fullscreen .signature-full-actions .button {
  width: 70px;
  min-height: 132px;
  padding: 14px 10px;
  border-radius: 14px;
  touch-action: manipulation;
  position: relative;
  z-index: 6;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.2;
}
.signature-shell.fullscreen .signature-full-actions .button span {
  display: inline-block;
  min-width: max-content;
  transform: rotate(90deg);
  white-space: nowrap;
}
.signature-shell.fullscreen .signature-full-actions .ghost-button {
  border: 1px solid #d8e4f3;
  color: #65758b;
  background: white;
}
.user-notice {
  margin: 14px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
}
.notice-check {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 0;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-size: 12px;
  font-weight: 400;
}
.notice-check input {
  appearance: none;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 0;
  border: 2px solid #2f6fbe;
  border-radius: 50%;
  background-color: #fff;
  cursor: pointer;
}
.notice-check input:checked {
  background-color: #2f6fbe;
  background-image: url("data:image/svg+xml,%3Csvg width='15' height='15' viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 9.2 7.3 12.5 14.2 5.5' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 15px 15px;
}
.notice-link {
  padding: 0;
  color: #3d78d8;
  font: inherit;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
}
.text-link { color: var(--blue); font-size: 11px; font-weight: 700; text-decoration: none; }

.notice-page-body {
  min-height: 100vh;
  margin: 0;
  background: #f4f7fb;
  color: var(--navy);
}
.notice-page {
  width: min(720px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 34px;
}
.notice-page-header {
  padding: 20px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff, #eef5ff);
  box-shadow: 0 12px 35px rgba(13, 39, 80, 0.08);
}
.notice-page-header h1 {
  margin: 7px 0 8px;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.3;
}
.notice-page-header p:last-child {
  margin: 0;
  color: #607086;
  font-size: 13px;
  line-height: 1.7;
}
.notice-document {
  margin-top: 14px;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(13, 39, 80, 0.08);
}
.notice-document h2 {
  margin: 18px 0 8px;
  color: var(--navy);
  font-size: 16px;
}
.notice-document h2:first-child {
  margin-top: 0;
}
.notice-document p {
  margin: 0 0 10px;
  color: #3f4f65;
  font-size: 14px;
  line-height: 1.8;
  text-indent: 2em;
}
.notice-document .notice-date {
  margin-top: 18px;
  text-align: right;
  color: #64748b;
}
.redirect-body {
  display: grid;
  min-height: 100vh;
  padding: 22px;
  place-items: center;
  background:
    radial-gradient(circle at 50% 15%, rgba(18,97,214,.15), transparent 35%),
    #f3f7fc;
}
.redirect-card {
  width: min(100%, 460px);
  padding: 42px 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow);
  text-align: center;
}
.redirect-card h1 { margin: 12px 0; font-size: 28px; }
.redirect-spinner { display: block; width: 38px; height: 38px; margin: 20px auto; border-width: 4px; }
.redirect-progress { overflow: hidden; height: 7px; margin: 28px 0 13px; border-radius: 20px; background: #e8eef6; }
.redirect-progress i { display: block; width: 12%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#1261d6,#48a2ff); transition: width .35s ease; }
.redirect-hint { margin-bottom: 22px; color: var(--muted); font-size: 12px; }
.session-layout {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 26px;
  width: min(1480px, calc(100% - 48px));
  margin: 10px auto 50px;
}
.session-guide, .browser-card, .panel {
  border: 1px solid rgba(218,226,237,.9);
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow);
}
.session-guide { padding: 34px; }
.session-guide h1 { margin: 20px 0 12px; font-size: 30px; }
.lead { color: var(--muted); line-height: 1.65; }
.steps { display: grid; gap: 0; margin: 32px 0; padding: 0; list-style: none; }
.steps li { position: relative; display: flex; gap: 14px; min-height: 78px; color: #96a1b1; }
.steps li:not(:last-child)::after { position: absolute; top: 36px; bottom: 5px; left: 16px; width: 2px; background: #e5eaf1; content: ""; }
.steps li > span { z-index: 1; display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 50%; background: #edf1f5; font-weight: 800; }
.steps li div { display: grid; align-content: start; gap: 5px; padding-top: 4px; }
.steps li small { font-size: 12px; }
.steps li.active { color: var(--ink); }
.steps li.active > span { color: white; background: var(--blue); }
.steps li.complete:not(:last-child)::after { background: var(--blue); }
.notice { padding: 16px; border-radius: 13px; color: #74521f; background: #fff8e9; }
.notice strong { font-size: 13px; }
.notice p { margin: 5px 0 0; font-size: 12px; line-height: 1.6; }
.browser-card { overflow: hidden; }
.browser-bar {
  display: grid;
  grid-template-columns: 100px 1fr 100px;
  align-items: center;
  min-height: 56px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: #fafbfd;
  font-size: 12px;
  text-align: center;
}
.browser-dots { display: flex; gap: 7px; }
.browser-dots i { width: 10px; height: 10px; border-radius: 50%; background: #d6dce5; }
.browser-dots i:first-child { background: #ff7a70; }
.browser-dots i:nth-child(2) { background: #ffc663; }
.browser-dots i:nth-child(3) { background: #56c99a; }
.viewer { position: relative; overflow: hidden; background: #e8edf4; }
.session-viewer { min-height: 680px; }
.viewer img { display: block; width: 100%; opacity: 0; object-fit: contain; transition: opacity .25s; }
.viewer img.visible { opacity: 1; }
.viewer-placeholder, .workspace-empty, .empty-state {
  display: grid;
  place-items: center;
  align-content: center;
  color: var(--muted);
  text-align: center;
}
.viewer-placeholder { position: absolute; inset: 0; z-index: 1; }
.viewer-placeholder[hidden] { display: none; }
.spinner { display: inline-block; width: 25px; height: 25px; border: 3px solid #dce5f2; border-top-color: var(--blue); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.browser-footer { min-height: 46px; padding: 0 18px; border-top: 1px solid var(--line); }
.browser-footer span:first-child { display: flex; align-items: center; gap: 8px; }
.status-badge { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 100px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.status-badge.online { color: var(--green); background: var(--green-soft); }
.status-badge.waiting { color: var(--amber); background: var(--amber-soft); }
.status-badge.loading, .status-badge.idle { color: #66768d; background: #eef2f6; }
.status-badge.archived { color: #5d6472; background: #e8ebf0; }
.status-badge.error { color: var(--danger); background: var(--danger-soft); }

.admin-body { display: flex; min-height: 100vh; background: #f5f7fb; }
.admin-body.auth-locked .sidebar,
.admin-body.auth-locked .admin-main {
  visibility: hidden;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  display: flex;
  width: 238px;
  padding: 24px 16px;
  flex-direction: column;
  color: #cbd5e2;
  background: #10233f;
}
.sidebar-brand { padding: 0 8px 26px; border-bottom: 1px solid rgba(255,255,255,.09); }
.sidebar-brand strong { color: white; }
.sidebar-brand small { color: #91a1b7; }
.side-nav { display: grid; gap: 6px; margin-top: 24px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-radius: 10px; color: #afbdd0; background: transparent; cursor: pointer; font-weight: 700; text-align: left; text-decoration: none; }
.nav-item:hover, .nav-item.active { color: white; background: rgba(255,255,255,.1); }
.nav-item span { width: 22px; color: #75aaf3; font-size: 18px; text-align: center; }
.sidebar-footer { display: grid; gap: 12px; margin-top: auto; }
.system-online { display: flex; align-items: center; gap: 9px; padding: 0 14px; color: #8fa1b7; font-size: 12px; }
.system-online i { width: 8px; height: 8px; border-radius: 50%; background: #31c38c; box-shadow: 0 0 0 4px rgba(49,195,140,.13); }
.admin-main { width: calc(100% - 238px); margin-left: 238px; padding: 28px 34px 38px; }
.admin-header { display: flex; align-items: center; justify-content: space-between; max-width: 1550px; margin: auto; }
.admin-header h1 { margin: 2px 0 5px; font-size: 29px; }
.admin-header p { margin-bottom: 0; }
.admin-header-status { display: flex; align-items: center; gap: 10px; }
.eyebrow { margin-bottom: 0; color: var(--blue); font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.muted { color: var(--muted); line-height: 1.5; }
.header-actions, .actions { display: flex; align-items: center; gap: 9px; }
.toolbar-select {
  min-height: 39px;
  max-width: 150px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--navy);
  background: #f4f7fb;
  font-size: 12px;
  font-weight: 800;
}
.entry-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  max-width: 1550px;
  margin: 20px auto 16px;
  padding: 18px 20px;
  background: radial-gradient(circle at 10% 10%, rgba(11,87,208,.09), transparent 34%), #fff;
}
.entry-copy h2 { margin: 3px 0 6px; font-size: 21px; }
.entry-copy p:last-child { margin: 0; }
.entry-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1550px; margin: 0 auto 18px; }
.stat-card { display: flex; align-items: center; gap: 14px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: 0 5px 18px rgba(32,62,98,.045); }
.stat-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; font-size: 12px; font-weight: 900; }
.stat-icon.blue { color: var(--blue); background: var(--blue-soft); }
.stat-icon.green { color: var(--green); background: var(--green-soft); }
.stat-icon.amber { color: var(--amber); background: var(--amber-soft); }
.stat-icon.gray { color: #64748b; background: #edf1f5; }
.stat-card div { display: grid; gap: 3px; }
.stat-card small { color: var(--muted); font-size: 12px; }
.stat-card strong { font-size: 24px; }
.console-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 18px; max-width: 1550px; min-height: 650px; margin: auto; }
.panel { overflow: hidden; box-shadow: 0 8px 28px rgba(34,60,95,.06); }
.session-panel { padding: 18px; }
.group-dashboard { max-width: 1550px; margin: 0 auto 18px; padding: 0; background: transparent; box-shadow: none; }
.group-dashboard-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 16px;
  align-items: stretch;
}
.group-config-card, .group-qr-card {
  padding: 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(34,60,95,.06);
}
.group-config-card { display: grid; align-content: center; }
.group-dashboard h2 { margin: 3px 0 6px; font-size: 22px; }
.group-create-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 10px;
  max-width: 560px;
  margin-top: 16px;
}
.group-create-row input {
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
}
.group-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 560px;
  margin-top: 12px;
}
.group-toolbar .select-control { flex: 1 1 240px; }
.group-qr-card { display: grid; gap: 12px; }
.group-qr-card-head { display: flex; justify-content: space-between; gap: 12px; color: var(--navy); font-size: 13px; font-weight: 900; }
.group-qr-card-head small { color: var(--muted); font-size: 11px; font-weight: 700; }
.button:disabled, .toolbar-button:disabled, .filter:disabled { opacity: .45; cursor: not-allowed; }
.precreate-dashboard {
  max-width: 1550px;
  margin: 0 auto 18px;
  padding: 20px;
}
.precreate-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.precreate-head h2 { margin: 3px 0 6px; font-size: 22px; }
.precreate-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.template-drop-zone {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px dashed #8fb5e8;
  border-radius: 8px;
  color: #27466f;
  background: #f7fbff;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.template-drop-zone strong {
  color: #1f3658;
  font-size: 14px;
}
.template-drop-zone span {
  color: var(--muted);
  font-size: 12px;
}
.template-drop-zone.dragging,
.template-drop-zone:focus-visible {
  border-color: #1261d6;
  background: #eef6ff;
  box-shadow: 0 0 0 3px rgba(18, 97, 214, .12);
  outline: none;
}
.template-drop-zone.uploaded {
  border-color: #22c55e;
  background: #f0fdf4;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .12);
}
.upload-success-hint {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 2px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #166534;
  background: #dcfce7;
  font-size: 12px;
  font-weight: 800;
}
.comprehensive-query-dashboard {
  max-width: 1280px;
  margin: 18px auto;
  padding: 22px;
}
.comprehensive-download-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.comprehensive-upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px 116px 120px;
  gap: 12px;
  align-items: stretch;
  margin: 16px 0;
}
.comprehensive-switch {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #d6e2f2;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.comprehensive-switch input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}
.comprehensive-drop-zone {
  margin-top: 0;
}
.comprehensive-progress {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid #e4edf8;
  border-radius: 10px;
  background: #f8fafc;
}
.comprehensive-progress > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #334155;
}
.comprehensive-progress progress {
  width: 100%;
  height: 10px;
}
.comprehensive-result-table {
  overflow: auto;
  border: 1px solid #e4edf8;
  border-radius: 10px;
  background: #fff;
}
.comprehensive-empty-upload {
  min-height: 250px;
  cursor: pointer;
  border-radius: 10px;
  transition: background .18s ease, box-shadow .18s ease;
}
.comprehensive-empty-upload.dragging,
.comprehensive-empty-upload:hover,
.comprehensive-empty-upload:focus-visible {
  outline: none;
  background: #f3f8ff;
  box-shadow: inset 0 0 0 2px #93c5fd;
}
.comprehensive-empty-upload p {
  color: #64748b;
}
.comprehensive-result-head,
.comprehensive-result-row {
  display: grid;
  grid-template-columns: 46px 86px 150px minmax(260px, 2.4fr) 74px 74px 86px;
  min-width: 820px;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
}
.comprehensive-result-head.with-into-gd,
.comprehensive-result-row.with-into-gd {
  grid-template-columns: 46px 86px 150px minmax(230px, 2fr) minmax(180px, 1.45fr) 74px 74px 86px;
  min-width: 960px;
}
.comprehensive-result-head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}
.comprehensive-result-row {
  border-top: 1px solid #eef2f7;
  color: #334155;
  font-size: 13px;
}
.comprehensive-result-row strong,
.comprehensive-result-row span,
.comprehensive-result-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.comprehensive-result-row small.error {
  color: var(--danger);
}
.comprehensive-history-panel {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e4edf8;
}
.comprehensive-history-list {
  display: grid;
  gap: 10px;
}
.comprehensive-history-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 180px));
  gap: 10px;
}
.comprehensive-history-summary > div {
  padding: 12px;
  border: 1px solid #e4edf8;
  border-radius: 10px;
  background: #f8fafc;
}
.comprehensive-history-summary span,
.comprehensive-history-summary strong {
  display: block;
}
.comprehensive-history-summary span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}
.comprehensive-history-summary strong {
  margin-top: 4px;
  color: #0f172a;
  font-size: 22px;
}
.comprehensive-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e4edf8;
  border-radius: 10px;
  background: #fff;
}
.comprehensive-history-item strong,
.comprehensive-history-item span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.comprehensive-history-item strong {
  color: #0f172a;
  font-size: 13px;
}
.comprehensive-history-item span {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
}
.comprehensive-history-actions {
  display: inline-flex;
  gap: 8px;
}
.precreate-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}
.precreate-section { border: 1px solid var(--line); border-radius: 16px; background: #fbfdff; overflow: hidden; }
.precreate-section summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; color: var(--navy); cursor: pointer; list-style: none; font-weight: 900; }
.precreate-section summary::-webkit-details-marker { display: none; }
.precreate-section summary small { color: var(--muted); font-size: 11px; font-weight: 700; }
.precreate-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 0 15px 15px; }
.precreate-fields label.wide { grid-column: span 2; }
.precreate-form label { display: grid; gap: 6px; min-width: 0; color: #506178; font-size: 11px; font-weight: 800; }
.precreate-form label b { color: var(--danger); }
.precreate-form input {
  min-width: 0;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: white;
}
.precreate-form input[type=file] { padding: 8px; font-size: 11px; }
.precreate-form input:focus { border-color: #8eb7ec; box-shadow: 0 0 0 3px rgba(18,97,214,.09); }
.precreate-submit { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid #d8e4f3; border-radius: 16px; color: var(--muted); background: #f2f7ff; font-size: 12px; }
.precreate-submit .button { min-width: 160px; }
.panel-heading.compact { min-height: 0; }
.input-row.compact { gap: 7px; }
.input-row.compact input { padding: 9px 10px; }
.select-control {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  color: var(--ink);
  outline: none;
}
.admin-group-qr {
  display: grid;
  min-height: 250px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg,#ffffff,#f7faff);
}
.group-qr-wrap { position: relative; display: grid; width: 214px; height: 214px; place-items: center; }
.group-qr-wrap canvas, .group-qr-wrap img { width: 190px; height: 190px; }
.group-qr-wrap span {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  max-width: 92px;
  padding: 5px 8px;
  border: 2px solid white;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 12px rgba(16,35,63,.18);
}
.panel-heading, .workspace-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.panel-heading > div { display: flex; align-items: center; gap: 9px; }
.panel-heading h2, .workspace h2 { margin: 0; font-size: 17px; }
.count-pill { display: inline-grid; min-width: 23px; height: 23px; padding: 0 6px; place-items: center; border-radius: 100px; color: var(--blue); background: var(--blue-soft); font-size: 11px; font-weight: 800; }
.search-box { display: flex; align-items: center; gap: 8px; margin: 16px 0 11px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; }
.search-box span { color: #8d9aab; font-size: 20px; }
.search-box input { width: 100%; height: 39px; border: 0; outline: 0; background: transparent; }
.filter-row { display: flex; gap: 6px; margin-bottom: 13px; }
.filter-row.stacked { display: grid; grid-template-columns: 1fr auto auto; align-items: center; }
.filter { padding: 7px 10px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; }
.filter.active { color: var(--blue); background: var(--blue-soft); }
.filter.danger-text { color: var(--danger); background: var(--danger-soft); }
.session-list { display: grid; gap: 7px; max-height: 680px; overflow: auto; }
.session-item {
  display: grid;
  grid-template-columns: 20px 42px 1fr auto 12px;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 11px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.session-check { width: 15px; height: 15px; accent-color: var(--blue); }
.session-item:hover { background: #f6f9fd; }
.session-item.active { border-color: #c8dcf9; background: var(--blue-soft); }
.avatar { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: #3269ac; background: #dceafb; font-size: 11px; font-weight: 900; }
.session-copy { display: grid; min-width: 0; gap: 2px; }
.session-name { display: flex; align-items: center; gap: 7px; }
.session-name strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.session-copy small { color: var(--muted); font-size: 10px; }
.session-detail {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 11px;
  font-weight: 800;
}
.state-dot { width: 7px; height: 7px; border-radius: 50%; background: #9aa5b4; }
.state-dot.online { background: #22a873; }
.state-dot.waiting { background: #e49a2c; }
.state-dot.error { background: var(--danger); }
.chevron { color: #9ba7b6; font-size: 19px; }
.empty-state { min-height: 280px; padding: 30px 10px; }
.empty-state h3 { margin: 12px 0 6px; font-size: 14px; }
.empty-state p { color: var(--muted); font-size: 11px; }
.empty-search { color: #9ba8b8; font-size: 35px; }
.workspace { display: flex; min-width: 0; padding: 18px; flex-direction: column; }
.workspace-head { min-height: 50px; }
.active-user { display: flex; align-items: center; gap: 12px; min-width: 0; }
.active-user > div { min-width: 0; }
.title-line { display: flex; align-items: center; gap: 9px; }
.active-user p { overflow: hidden; max-width: 520px; margin: 5px 0 0; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.auto-refresh { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; cursor: pointer; }
.admin-viewer { min-height: 540px; margin-top: 16px; border: 1px solid var(--line); border-radius: 13px; cursor: crosshair; }
.session-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.session-meta span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #e8eef6;
  border-radius: 11px;
  background: #f8fbff;
}
.session-meta span small {
  color: #7a8aa0;
  font-size: 10px;
  font-weight: 800;
}
.session-meta span strong {
  overflow: hidden;
  color: #223552;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: pre-line;
}
.admin-viewer:fullscreen { display: grid; place-items: center; background: #111827; }
.admin-viewer:fullscreen img { max-height: 100vh; object-fit: contain; }
.workspace-empty { position: absolute; inset: 0; }
.workspace-empty[hidden] { display: none; }
.workspace-empty h3 { margin: 12px 0 5px; font-size: 16px; }
.workspace-empty p { color: var(--muted); font-size: 12px; }
.empty-monitor { color: #9bb0c9; font-size: 42px; }

.overview-view { max-width: 1680px; margin: 18px auto 14px; }
.overview-view .stats-grid { margin-bottom: 0; }
.console-grid {
  grid-template-columns: minmax(310px, 360px) minmax(0, 1fr);
  max-width: 1680px;
  align-items: start;
}
.left-workbench {
  display: grid;
  gap: 14px;
  min-width: 0;
  align-content: start;
}
.left-workbench .session-panel { order: 1; }
.left-workbench .group-dashboard { order: 2; }
.left-workbench .panel { border: 1px solid rgba(226,232,241,.9); background: white; }
.left-workbench .group-dashboard {
  max-width: none;
  margin: 0;
  padding: 0;
  background: white;
  box-shadow: 0 8px 28px rgba(34,60,95,.06);
}
.left-workbench .group-config-card {
  padding: 16px;
  border-radius: 0;
  box-shadow: none;
}
.compact-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.compact-card-head h2 { margin: 2px 0 0; font-size: 17px; }
.compact-muted { margin: 8px 0 0; font-size: 12px; }
.mini-link {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}
.left-workbench .group-create-row {
  grid-template-columns: minmax(0, 1fr) 68px;
  max-width: none;
  margin-top: 12px;
}
.left-workbench .group-create-row input { min-height: 38px; }
.left-workbench .group-toolbar {
  display: grid;
  grid-template-columns: 1fr repeat(3, auto);
  max-width: none;
  gap: 7px;
  margin-top: 9px;
}
.left-workbench .group-toolbar .filter {
  min-height: 36px;
  padding-inline: 9px;
  background: #f5f8fc;
}
.compact-qr {
  min-height: 180px;
  margin-top: 12px;
  border-radius: 14px;
}
.compact-qr .group-qr-wrap { width: 164px; height: 164px; }
.compact-qr .group-qr-wrap canvas, .compact-qr .group-qr-wrap img { width: 146px; height: 146px; }
.compact-qr .group-qr-wrap span { max-width: 78px; padding: 4px 7px; font-size: 11px; }
.session-panel {
  display: flex;
  min-height: 0;
  max-height: calc(100vh - 292px);
  flex-direction: column;
}
.session-panel .search-box { margin: 13px 0 9px; }
.filter-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  margin-bottom: 8px;
}
.batch-actions {
  margin-bottom: 9px;
  border: 1px solid #edf2f8;
  border-radius: 10px;
  background: #fbfdff;
}
.batch-actions summary {
  padding: 8px 10px;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  list-style: none;
}
.batch-actions summary::-webkit-details-marker { display: none; }
.batch-actions div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 8px 9px;
}
.status-tabs {
  overflow-x: auto;
  padding-bottom: 2px;
  margin-bottom: 10px;
  scrollbar-width: thin;
}
.status-tabs .filter { flex: 0 0 auto; }
.session-list {
  flex: 1;
  max-height: none;
  min-height: 260px;
  padding-right: 2px;
}
.workspace {
  min-height: calc(100vh - 194px);
  border: 1px solid rgba(226,232,241,.9);
}
.workspace-head {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 16px;
  min-height: 0;
}
.action-groups {
  display: grid;
  gap: 8px;
  justify-items: stretch;
}
.action-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 7px;
}
.action-group:not(:first-child) {
  padding-top: 8px;
  border-top: 1px dashed #e6edf6;
}
.danger-zone .toolbar-button { min-width: 58px; }
.workspace .toolbar-button, .workspace .toolbar-select {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
}
.workspace .toolbar-select { max-width: 132px; }
.session-meta {
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  margin-top: 14px;
}
.admin-viewer {
  min-height: min(58vh, 640px);
  margin-top: 14px;
  background: #edf2f8;
}
.compact-qr .empty-state {
  min-height: 142px;
  padding: 18px 8px;
}
.qr-collapsible {
  margin-top: 10px;
  border: 1px solid #edf2f8;
  border-radius: 12px;
  background: #fbfdff;
}
.qr-collapsible summary {
  padding: 9px 11px;
  color: var(--blue);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  list-style: none;
}
.qr-collapsible summary::-webkit-details-marker { display: none; }
.qr-collapsible summary::after {
  content: "展开";
  float: right;
  color: var(--muted);
  font-size: 11px;
}
.qr-collapsible[open] summary::after { content: "收起"; }
.qr-collapsible .admin-group-qr {
  margin: 0 10px 10px;
}

@media (min-width: 1500px) {
  .workspace-head {
    grid-template-columns: minmax(340px, .8fr) minmax(560px, 1.2fr);
  }
  .action-groups { justify-items: end; }
  .action-group { justify-content: flex-end; }
}
.screen-loading { position: absolute; inset: 0; z-index: 2; display: none; place-items: center; background: rgba(242,246,250,.75); }
.screen-loading.visible { display: grid; }
.remote-controls { margin-top: 13px; }
.input-row { display: flex; gap: 9px; }
.input-row input {
  width: 100%;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
}
.input-row input:focus { border-color: #8eb7ec; box-shadow: 0 0 0 3px rgba(18,97,214,.09); }
.control-note { display: flex; justify-content: space-between; margin-top: 9px; color: var(--muted); font-size: 10px; }

.login-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(11,28,52,.72); backdrop-filter: blur(8px); transition: opacity .2s; }
.login-overlay.hidden { visibility: hidden; opacity: 0; pointer-events: none; }
.login-card { width: min(100%, 400px); padding: 38px; border-radius: 22px; background: white; box-shadow: 0 30px 100px rgba(0,0,0,.25); text-align: center; }
.login-card h1 { margin: 6px 0 8px; font-size: 29px; }
.login-card .muted { margin-bottom: 25px; font-size: 13px; }
.field-label { display: block; margin-bottom: 7px; color: #4f6075; font-size: 12px; font-weight: 800; text-align: left; }
.password-field { display: flex; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.password-field:focus-within { border-color: #8eb7ec; box-shadow: 0 0 0 3px rgba(18,97,214,.09); }
.password-field input { width: 100%; min-width: 0; padding: 12px 13px; border: 0; outline: 0; }
.password-field button { border: 0; color: var(--blue); background: transparent; cursor: pointer; font-size: 11px; font-weight: 800; }
.form-error { min-height: 18px; margin: 10px 0 0; color: var(--danger); font-size: 12px; }
.toast { position: fixed; top: 50%; left: 50%; z-index: 5000; max-width: min(86vw, 520px); padding: 12px 17px; border-radius: 11px; color: white; background: #153257; box-shadow: var(--shadow); opacity: 0; transform: translate(-50%, calc(-50% + 15px)); pointer-events: none; transition: .2s; font-size: 13px; font-weight: 700; line-height: 1.45; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, -50%); }
.toast.error { background: var(--danger); }
.confirm-dialog { width: min(90%, 390px); padding: 26px; border: 0; border-radius: 17px; box-shadow: 0 25px 80px rgba(0,0,0,.25); }
.confirm-dialog::backdrop { background: rgba(10,27,50,.55); backdrop-filter: blur(3px); }
.confirm-dialog h3 { margin-bottom: 8px; }
.confirm-dialog p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.dialog-input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
}
.detail-dialog { width: min(94%, 760px); }
.import-dialog { width: min(94%, 620px); }
.import-result-content {
  max-height: min(58vh, 440px);
  margin-top: 14px;
  padding: 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #3f5066;
  background: #f7f9fc;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
}
.import-result-content.success {
  color: #11754f;
  border-color: #bee7d6;
  background: #effaf5;
}
.import-result-content.error {
  color: #9f2f29;
  border-color: #f0cbc8;
  background: #fff4f3;
}
.detail-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 16px;
  max-height: min(66vh, 620px);
  overflow: auto;
}
.detail-section { padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafc; }
.detail-section h4 { margin-bottom: 10px; color: var(--navy); font-size: 13px; }
.detail-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.detail-content-grid div {
  display: grid;
  gap: 5px;
  padding: 10px 11px;
  border: 1px solid #e8eef6;
  border-radius: 10px;
  background: #f8fbff;
}
.detail-content span { color: #7a8aa0; font-size: 11px; font-weight: 800; }
.detail-content strong { overflow-wrap: anywhere; color: #223552; font-size: 13px; }
.detail-edit-row {
  display: grid;
  gap: 5px;
  padding: 10px 11px;
  border: 1px solid #e8eef6;
  border-radius: 10px;
  background: #f8fbff;
}
.detail-input {
  width: 100%;
  min-width: 0;
  border: 1px solid #d8e2ef;
  border-radius: 8px;
  padding: 8px 9px;
  color: #223552;
  font-size: 13px;
  background: #fff;
}
.detail-input:focus {
  outline: 2px solid rgba(37, 99, 235, .16);
  border-color: #7aa2e8;
}

@media (max-width: 1100px) {
  .portal-shell { grid-template-columns: 1fr 390px; gap: 35px; }
  .session-layout { grid-template-columns: 320px minmax(0,1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .console-grid { grid-template-columns: 290px minmax(0,1fr); }
  .entry-dashboard { grid-template-columns: 1fr; }
  .entry-actions { justify-content: flex-start; }
  .group-dashboard-main { grid-template-columns: 1fr; }
  .precreate-head { flex-direction: column; }
  .precreate-tools { justify-content: flex-start; }
  .precreate-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .session-meta { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
  .workspace-head { align-items: flex-start; flex-direction: column; }
  .workspace-head { grid-template-columns: 1fr; }
  .action-groups { justify-items: stretch; }
  .action-group { justify-content: flex-start; }
  .session-meta { grid-template-columns: repeat(3, minmax(120px, 1fr)); }
}
@media (max-width: 820px) {
  .portal-shell, .session-layout { grid-template-columns: 1fr; }
  .portal-shell { padding-top: 20px; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .feature-grid { width: max-content; max-width: 100%; margin-inline: auto; text-align: left; }
  .qr-card { width: min(100%, 430px); margin: auto; }
  .session-guide { order: 2; }
  .session-viewer { min-height: 450px; }
  .sidebar { position: static; width: 74px; padding: 20px 10px; }
  .sidebar .brand > span:last-child, .nav-item:not(.active), .nav-item { font-size: 0; }
  .sidebar-brand { padding-inline: 6px; }
  .nav-item { justify-content: center; }
  .nav-item span { font-size: 18px; }
  .system-online { display: none; }
  .admin-main { width: calc(100% - 74px); margin-left: 0; padding: 20px; }
  .console-grid { grid-template-columns: 1fr; }
  .session-panel { max-height: none; }
  .session-list { max-height: 330px; }
  .left-workbench .group-toolbar { grid-template-columns: 1fr 1fr; }
  .left-workbench .group-toolbar .select-control { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .site-header { width: calc(100% - 28px); height: 72px; }
  .portal-shell, .session-layout { width: calc(100% - 28px); }
  .hero-copy h1 { font-size: 39px; }
  .qr-card { padding: 20px; }
  .qr { width: 260px; height: 260px; }
  .qr-skeleton { width: 225px; height: 225px; }
  .sidebar { display: none; }
  .admin-main { width: 100%; padding: 15px; }
  .admin-header { align-items: flex-start; flex-direction: column; gap: 14px; }
  .entry-actions { display: grid; grid-template-columns: 1fr; }
  .header-actions { width: 100%; }
  .header-actions .button { flex: 1; font-size: 12px; }
  .precreate-fields, .detail-content-grid { grid-template-columns: 1fr; }
  .precreate-fields label.wide { grid-column: auto; }
  .precreate-submit { align-items: stretch; flex-direction: column; }
  .session-meta { grid-template-columns: 1fr; }
  .detail-content { grid-template-columns: 1fr; }
  .stats-grid { gap: 9px; }
  .overview-view { margin-top: 12px; }
  .stat-card { padding: 13px; }
  .stat-icon { display: none; }
  .actions, .action-group { flex-wrap: wrap; }
  .auto-refresh { width: 100%; }
  .admin-viewer { min-height: 350px; }
  .control-note { gap: 8px; flex-direction: column; }
  .mobile-auth-body { padding: 0; background: white; }
  .mobile-auth-card { min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
  .mobile-auth-content { padding-inline: 20px; }
  .identity-form { grid-template-columns: 1fr; }
  .identity-form label.wide { grid-column: auto; }
  .signature-shell.fullscreen {
    padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    grid-template-columns: 96px minmax(0, 1fr);
  }
  .signature-shell.fullscreen .signature-full-actions {
    grid-template-columns: 1fr;
  }
  .signature-shell.fullscreen .signature-full-actions .button {
    width: 62px;
    min-height: 112px;
    font-size: 15px;
  }
}

/* Admin layout stabilization: final overrides */
.admin-body {
  --admin-sidebar-width: 238px;
  min-width: 0;
  overflow-x: hidden;
}

.admin-body.auth-locked {
  display: grid;
  place-items: center;
}

.admin-body.auth-locked .sidebar,
.admin-body.auth-locked .admin-main {
  visibility: hidden;
  pointer-events: none;
}

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(11, 28, 52, .72);
  backdrop-filter: blur(8px);
}

.login-overlay.hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.login-card {
  width: min(100%, 400px);
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  display: flex;
  width: var(--admin-sidebar-width);
  min-height: 100vh;
  flex-direction: column;
}

.admin-main {
  box-sizing: border-box;
  width: calc(100% - var(--admin-sidebar-width));
  min-width: 0;
  min-height: 100vh;
  margin-left: var(--admin-sidebar-width);
  padding: 24px 28px 32px;
  overflow-x: hidden;
}

.admin-header,
.overview-view,
.console-grid,
.precreate-dashboard {
  width: 100%;
  max-width: 1680px;
  margin-right: auto;
  margin-left: auto;
}

.admin-view[hidden] {
  display: none !important;
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.overview-view {
  margin-top: 16px;
  margin-bottom: 14px;
}

.console-grid {
  display: grid;
  grid-template-columns: minmax(410px, 430px) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  min-height: 0;
}

.left-workbench {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
}

.left-workbench .group-dashboard {
  order: 0;
}

.left-workbench .group-config-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 166px;
  align-items: start;
  gap: 12px 14px;
}

.left-workbench .compact-card-head,
.left-workbench .compact-muted,
.left-workbench .group-create-row,
.left-workbench .group-toolbar {
  grid-column: 1;
}

.left-workbench .group-create-row {
  max-width: none;
}

.left-workbench .qr-collapsible {
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: stretch;
  margin: 0;
}

.left-workbench .qr-collapsible summary {
  min-height: 34px;
  padding: 8px 10px;
}

.left-workbench .qr-collapsible .admin-group-qr {
  margin-top: 8px;
}

.left-workbench .session-panel {
  order: 1;
}

.session-panel {
  display: flex;
  min-height: 0;
  max-height: calc(100vh - 262px);
  flex-direction: column;
}

.session-list {
  flex: 1 1 auto;
  min-height: 240px;
  max-height: none;
  overflow: auto;
}

.workspace {
  min-width: 0;
  overflow: hidden;
}

.workspace-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.active-user,
.actions,
.action-group {
  min-width: 0;
}

.actions.action-groups,
.action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.actions.action-groups {
  justify-content: flex-start;
}

.workspace .toolbar-button,
.workspace .toolbar-select,
.auto-refresh {
  min-height: 36px;
}

.session-meta {
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 10px;
}

.admin-viewer {
  height: clamp(300px, calc(100vh - 420px), 680px);
  min-height: 300px;
  max-height: 680px;
  overflow: hidden;
}

.precreate-dashboard {
  margin-top: 16px;
}

@media (min-width: 1500px) {
  .workspace-head {
    grid-template-columns: minmax(280px, 1fr) auto;
  }

  .actions.action-groups {
    justify-content: flex-end;
  }
}

@media (max-width: 1100px) {
  .admin-body {
    --admin-sidebar-width: 74px;
  }

  .admin-main {
    padding: 20px;
  }

  .console-grid {
    grid-template-columns: minmax(340px, 370px) minmax(0, 1fr);
    gap: 14px;
  }

  .left-workbench .group-config-card {
    grid-template-columns: 1fr;
  }

  .left-workbench .compact-card-head,
  .left-workbench .compact-muted,
  .left-workbench .group-create-row,
  .left-workbench .group-toolbar,
  .left-workbench .qr-collapsible {
    grid-column: 1;
  }

  .left-workbench .qr-collapsible {
    grid-row: auto;
  }

  .session-panel {
    max-height: calc(100vh - 246px);
  }
}

@media (max-width: 820px) {
  .admin-body {
    display: block;
  }

  .admin-body.auth-locked {
    display: grid;
  }

  .sidebar {
    display: none;
  }

  .admin-main {
    width: 100%;
    margin-left: 0;
    padding: 15px;
  }

  .admin-header {
    flex-direction: column;
  }

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

  .session-panel {
    max-height: none;
  }

  .session-list {
    max-height: 330px;
  }

  .admin-viewer {
    height: auto;
    min-height: 350px;
  }
}

/* Signature layout stabilization: final overrides */
.signature-shell.fullscreen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  grid-template-rows: auto minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
}

.signature-shell.fullscreen .signature-full-head {
  grid-column: 1 / -1;
  grid-row: 1;
}

.signature-shell.fullscreen .signature-pad {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  height: min(58vh, 320px);
  min-height: 180px;
  align-self: center;
}

.signature-shell.fullscreen .signature-full-actions {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  align-content: center;
  gap: 10px;
}

.signature-shell.fullscreen .signature-full-actions .button {
  width: 100%;
  min-height: 86px;
}

@media (orientation: landscape) {
  .signature-shell.fullscreen .signature-pad {
    height: min(72vh, 360px);
  }
}

/* Mobile authorization final interaction fixes */
.notice-lock {
  overflow: hidden;
}

.mobile-notice-dialog[hidden] {
  display: none;
}

.mobile-notice-dialog {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, .42);
  backdrop-filter: blur(4px);
}

.mobile-notice-card {
  width: min(100%, 360px);
  padding: 24px;
  border: 1px solid #dce7f5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 35, 63, .24);
  text-align: center;
}

.mobile-notice-card h2 {
  margin: 0 0 10px;
  color: #10233f;
  font-size: 22px;
}

.mobile-notice-card p {
  margin: 0 0 20px;
  color: #445b78;
  font-size: 16px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.mobile-notice-card .button {
  width: 100%;
  min-height: 46px;
}

.signature-shell.fullscreen {
  position: fixed;
  inset: env(safe-area-inset-top) 0 env(safe-area-inset-bottom) 0;
  z-index: 2100;
  width: 100vw;
  height: var(--signature-viewport-height, 100dvh);
  min-height: 100dvh;
  padding: 16px;
  border: 0;
  border-radius: 0;
  background: #f6f9fd;
  box-shadow: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(260px, 1fr) auto;
  align-items: stretch;
  gap: 14px;
}

.signature-shell.fullscreen .signature-full-head {
  grid-column: 1;
  grid-row: 1;
  min-height: auto;
  padding: 16px;
  border: 1px solid #dce7f5;
  border-radius: 16px;
  background: #fff;
  text-align: center;
}

.signature-shell.fullscreen .signature-pad {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  height: 100%;
  min-height: 260px;
  align-self: stretch;
  border-radius: 18px;
  background: #fff;
}

.signature-shell.fullscreen .signature-full-actions {
  grid-column: 1;
  grid-row: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: stretch;
  gap: 10px;
}

.signature-shell.fullscreen .signature-full-actions .button {
  width: 100%;
  min-height: 52px;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}

@media (orientation: landscape) {
  .signature-shell.fullscreen {
    grid-template-columns: minmax(0, 1fr) 132px;
    grid-template-rows: auto minmax(0, 1fr);
    padding: 14px;
  }

  .signature-shell.fullscreen .signature-full-head {
    grid-column: 1 / -1;
    grid-row: 1;
    padding: 12px 16px;
  }

  .signature-shell.fullscreen .signature-pad {
    grid-column: 1;
    grid-row: 2;
    min-height: 220px;
    height: 100%;
  }

  .signature-shell.fullscreen .signature-full-actions {
    grid-column: 2;
    grid-row: 2;
    grid-template-columns: 1fr;
    align-content: center;
  }

  .signature-shell.fullscreen .signature-full-actions .button {
    min-height: 72px;
  }
}

/* Workflow operations dashboard */
.ops-dashboard {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto 16px;
  padding: 16px;
  border: 1px solid #dfe8f5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(34, 60, 95, .06);
}

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

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

.ops-context {
  display: grid;
  min-width: 160px;
  gap: 3px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.ops-context span,
.ops-metrics small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.ops-context strong,
.ops-metrics strong {
  color: var(--ink);
  font-size: 18px;
}

.ops-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(96px, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.ops-metrics span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.ops-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.ops-actions .toolbar-button {
  min-height: 36px;
}

.ops-actions .toolbar-button.primary {
  border-color: #1261d6;
  color: #fff;
  background: #1261d6;
}

.operation-log-panel {
  display: grid;
  gap: 12px;
  max-width: 1550px;
  margin: 0 auto 18px;
  padding: 16px;
  border: 1px solid #dfe8f4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 35, 65, .06);
}

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

.operation-log-head h2 {
  margin: 3px 0 0;
  color: #182b48;
  font-size: 18px;
}

.operation-log-list {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding-right: 4px;
}

.operation-log-item {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr) 96px;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e6edf6;
  border-left: 4px solid #3b82f6;
  border-radius: 8px;
  background: #f9fbff;
}

.operation-log-item.partial { border-left-color: #f59e0b; }
.operation-log-item.error { border-left-color: #dc2626; }

.operation-log-item time,
.operation-log-item span {
  color: #72829a;
  font-size: 12px;
  font-weight: 700;
}

.operation-log-item strong {
  display: block;
  color: #20324f;
  font-size: 13px;
}

.operation-log-item p {
  margin: 3px 0 0;
  color: #64748b;
  font-size: 12px;
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .ops-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

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

  .operation-log-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .operation-log-item {
    grid-template-columns: 1fr;
  }
}

/* Session console layout refresh: reference-inspired structure, project-native styling */
.admin-main {
  background:
    linear-gradient(180deg, rgba(245, 248, 252, .96), rgba(238, 243, 248, .96));
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(210, 220, 233, .9);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
}

.admin-header h1 {
  letter-spacing: 0;
}

.admin-view.overview-view {
  padding-top: 16px;
}

.stats-grid {
  max-width: 1920px;
  margin: 0 auto 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card {
  min-height: 76px;
  border-color: #dfe8f3;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(21, 42, 75, .06);
}

.ops-dashboard {
  display: grid;
  grid-template-columns: minmax(270px, 360px) minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
  max-width: 1920px;
  margin-bottom: 14px;
  border-radius: 8px;
}

.ops-head {
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.ops-metrics {
  grid-template-columns: repeat(5, minmax(118px, 1fr));
}

.ops-actions {
  grid-column: 1 / -1;
  justify-content: flex-start;
  padding-top: 2px;
}

.console-grid {
  display: grid;
  grid-template-columns: minmax(560px, 760px) minmax(420px, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 1920px;
  min-height: 0;
  margin: 0 auto;
}

.left-workbench {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.left-workbench .group-panel,
.left-workbench .session-panel,
.workspace {
  border-radius: 8px;
  border-color: #dce6f2;
  box-shadow: 0 12px 32px rgba(22, 43, 78, .07);
}

.left-workbench .group-panel {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(220px, 300px);
  gap: 14px;
}

.left-workbench .group-panel .panel-heading,
.left-workbench .group-create-row,
.left-workbench .group-toolbar,
.left-workbench .muted.compact-muted {
  grid-column: 1;
}

.left-workbench .qr-collapsible {
  grid-column: 2;
  grid-row: 1 / span 4;
  margin: 0;
}

.left-workbench .qr-collapsible summary {
  border-bottom: 1px solid #edf2f7;
}

.left-workbench .compact-qr {
  min-height: 170px;
}

.session-panel {
  max-height: calc(100vh - 392px);
}

.session-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 2px;
}

.session-item {
  display: grid;
  grid-template-columns: 24px 38px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 10px;
  min-height: 70px;
  padding: 10px 12px;
  border: 1px solid #e1e9f3;
  border-radius: 8px;
  background: #fff;
  text-align: left;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.session-item:hover,
.session-item.active {
  border-color: #9bbcf0;
  background: #f8fbff;
  box-shadow: 0 10px 22px rgba(18, 97, 214, .1);
}

.session-item .avatar {
  width: 34px;
  height: 34px;
  font-size: 12px;
}

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

.session-name,
.session-state,
.session-time {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-name {
  color: #13243a;
  font-size: 14px;
}

.session-state,
.session-time {
  margin-top: 3px;
  color: #66758b;
  font-size: 12px;
}

.session-detail {
  min-width: 44px;
  padding: 6px 9px;
  border: 1px solid #dbe5f1;
  border-radius: 6px;
  color: #355070;
  background: #f7fafc;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.workspace {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 460px;
  padding: 16px;
}

.workspace-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e4ecf5;
}

.actions.action-groups {
  justify-content: flex-end;
}

.toolbar-button.primary-action,
.remote-entry-button {
  border-color: #1463d8;
  color: #fff;
  background: #1463d8;
}

.toolbar-button.primary-action:hover,
.remote-entry-button:hover {
  background: #0b4fb6;
}

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

.session-meta.meta-grid span {
  border-radius: 8px;
  background: #f8fafc;
}

.admin-body .group-dashboard-strip .group-config-card .compact-card-head {
  align-items: flex-start;
  text-align: left;
}

.admin-body .group-dashboard-strip .group-toolbar {
  grid-template-columns: minmax(360px, 1fr) auto auto auto;
}

.admin-body .group-dashboard-strip #groupFilter {
  min-width: 360px;
}

.admin-body .group-dashboard-strip .group-qr-wrap {
  width: min(100%, 360px);
  margin: 0 auto;
}

.admin-body .group-dashboard-strip .qr-poster-canvas {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(15, 35, 63, .12);
}

.workspace-empty-inline {
  min-height: 124px;
  border: 1px dashed #d5e0ec;
  border-radius: 8px;
  background: #fbfdff;
}

.remote-entry-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding: 18px;
  border: 1px solid #dce7f3;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fbff, #eef7f2);
}

.remote-entry-panel h3 {
  margin: 2px 0 4px;
  color: #17243a;
  font-size: 20px;
}

.remote-entry-button {
  min-width: 132px;
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.remote-page {
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  background: #edf2f7;
  color: var(--ink);
}

.remote-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 14px 18px;
  border-bottom: 1px solid #d8e3ef;
  background: #fff;
}

.remote-topbar h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

.remote-top-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.remote-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 14px;
  height: calc(100vh - 76px);
  padding: 14px;
}

.remote-viewer {
  position: relative;
  min-height: 0;
  height: 100%;
  border-radius: 8px;
  background: #111827;
}

.remote-viewer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: crosshair;
}

.remote-side-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  min-height: 0;
}

.remote-control-panel,
.remote-diagnostic-panel {
  border-radius: 8px;
}

.remote-button-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.remote-diagnostic-panel {
  flex: 1;
  min-height: 0;
}

.remote-diagnostic-panel pre {
  min-height: 0;
  max-height: calc(100vh - 342px);
  margin: 0;
  overflow: auto;
  padding: 12px;
  border: 1px solid #e0e7f0;
  border-radius: 8px;
  background: #0f172a;
  color: #dbeafe;
  font-size: 12px;
  white-space: pre-wrap;
}

@media (max-width: 1366px) {
  .console-grid {
    grid-template-columns: minmax(500px, 620px) minmax(380px, 1fr);
  }

  .ops-metrics {
    grid-template-columns: repeat(5, minmax(92px, 1fr));
  }

  .workspace-head {
    flex-direction: column;
  }

  .actions.action-groups {
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  .stats-grid,
  .ops-dashboard,
  .console-grid,
  .remote-shell {
    grid-template-columns: 1fr;
  }

  .left-workbench .group-panel {
    grid-template-columns: 1fr;
  }

  .left-workbench .qr-collapsible {
    grid-column: 1;
    grid-row: auto;
  }

  .session-panel {
    max-height: none;
  }

  .remote-page {
    overflow: auto;
  }

  .remote-shell {
    height: auto;
  }

  .remote-viewer {
    height: 60vh;
  }

  .remote-topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .stats-grid,
  .ops-metrics,
  .session-meta.meta-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ops-dashboard {
    display: block;
  }

  .ops-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 12px;
  }

  .session-item {
    grid-template-columns: 24px 34px minmax(0, 1fr);
  }

  .session-detail,
  .session-item .chevron {
    display: none;
  }

  .remote-entry-panel {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Admin layout emergency reset: keep the console anchored and compact */
html:has(.admin-body),
body.admin-body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}

body.admin-body {
  display: block;
  background: #eef3f8;
}

.admin-body .sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  width: 238px;
  overflow-y: auto;
}

.admin-body .admin-main {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 238px;
  width: auto;
  margin: 0;
  padding: 14px 16px 16px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #eef3f8;
}

.admin-body .admin-header {
  position: relative;
  top: auto;
  z-index: 1;
  min-height: 58px;
  margin: 0 0 10px;
  padding: 12px 14px;
  border: 1px solid #dce6f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(22, 43, 78, .05);
}

.admin-body .admin-header h1 {
  margin: 0;
  font-size: 21px;
}

.admin-body .admin-header .muted {
  margin-top: 2px;
  font-size: 12px;
}

.admin-body .admin-view[hidden] {
  display: none !important;
}

.admin-body .admin-view.overview-view {
  display: block;
  max-width: none;
  padding: 0;
  margin: 0;
}

.admin-body .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: none;
  margin: 0 0 10px;
}

.admin-body .stat-card {
  min-height: 62px;
  padding: 10px 12px;
}

.admin-body .ops-dashboard {
  display: grid;
  grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  max-width: none;
  margin: 0 0 10px;
  padding: 10px 12px;
}

.admin-body .ops-metrics {
  grid-template-columns: repeat(5, minmax(84px, 1fr));
  gap: 8px;
}

.admin-body .ops-metric {
  min-height: 54px;
  padding: 8px 10px;
}

.admin-body .ops-actions {
  grid-column: 1 / -1;
  gap: 8px;
  padding-top: 0;
}

.admin-body .ops-actions .button,
.admin-body .toolbar-button {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.admin-body .console-grid {
  display: grid;
  grid-template-columns: minmax(480px, 620px) minmax(420px, 1fr);
  gap: 12px;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
}

.admin-body .left-workbench {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  gap: 10px;
}

.admin-body .panel {
  border-radius: 8px;
}

.admin-body .left-workbench .group-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 172px;
  gap: 10px;
  min-height: 0;
  max-height: 172px;
  padding: 12px;
  overflow: hidden;
}

.admin-body .left-workbench .group-panel .panel-heading,
.admin-body .left-workbench .group-create-row,
.admin-body .left-workbench .group-toolbar,
.admin-body .left-workbench .compact-muted {
  grid-column: 1;
}

.admin-body .left-workbench .group-panel .panel-heading {
  margin: 0;
}

.admin-body .left-workbench .group-create-row,
.admin-body .left-workbench .group-toolbar {
  margin: 6px 0 0;
}

.admin-body .left-workbench .compact-muted {
  margin: 4px 0 0;
}

.admin-body .left-workbench .qr-collapsible {
  grid-column: 2;
  grid-row: 1 / span 4;
  min-height: 0;
  max-height: 148px;
  margin: 0;
  overflow: hidden;
}

.admin-body .left-workbench .qr-collapsible summary {
  min-height: 28px;
  padding: 6px 8px;
  font-size: 11px;
}

.admin-body .admin-group-qr.compact-qr {
  display: grid;
  min-height: 116px;
  max-height: 116px;
  margin: 0;
  padding: 8px;
  place-items: center;
  overflow: hidden;
}

.admin-body .compact-qr .group-qr-wrap {
  width: 104px;
  height: 104px;
}

.admin-body .compact-qr .group-qr-wrap canvas,
.admin-body .compact-qr .group-qr-wrap img {
  width: 92px !important;
  height: 92px !important;
}

.admin-body .compact-qr .group-qr-wrap span {
  max-width: 72px;
  padding: 3px 6px;
  font-size: 10px;
}

.admin-body .session-panel {
  display: flex;
  flex: 1 1 auto;
  min-height: 360px;
  max-height: none;
  padding: 12px;
  overflow: hidden;
}

.admin-body .session-panel .panel-heading,
.admin-body .session-panel .search-box,
.admin-body .session-panel .filter-tools,
.admin-body .session-panel .batch-actions,
.admin-body .session-panel .status-tabs {
  flex: 0 0 auto;
}

.admin-body .session-list {
  flex: 1 1 auto;
  min-height: 220px;
  max-height: calc(100vh - 500px);
  overflow-y: auto;
}

.admin-body .session-item {
  min-height: 62px;
  padding: 8px 10px;
}

.admin-body .workspace {
  display: flex;
  min-width: 0;
  min-height: 0;
  padding: 14px;
  gap: 10px;
}

.admin-body .workspace-head {
  flex: 0 0 auto;
  padding-bottom: 10px;
}

.admin-body .session-meta.meta-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
}

.admin-body .workspace-empty-inline {
  min-height: 92px;
  padding: 12px;
}

.admin-body .remote-entry-panel {
  margin: 0;
  padding: 14px;
}

@media (max-width: 1366px) {
  .admin-body .admin-main {
    padding: 10px 12px 12px;
  }

  .admin-body .admin-header {
    margin-bottom: 8px;
    padding: 10px 12px;
  }

  .admin-body .stats-grid {
    gap: 8px;
    margin-bottom: 8px;
  }

  .admin-body .ops-dashboard {
    margin-bottom: 8px;
  }

  .admin-body .console-grid {
    grid-template-columns: minmax(440px, 590px) minmax(360px, 1fr);
    gap: 10px;
  }

  .admin-body .session-list {
    max-height: calc(100vh - 470px);
  }
}

@media (max-width: 980px) {
  html:has(.admin-body),
  body.admin-body {
    height: auto;
    min-height: 100%;
    overflow: auto;
  }

  .admin-body .sidebar {
    display: none;
  }

  .admin-body .admin-main {
    position: static;
    width: 100%;
    min-height: 100vh;
    padding: 10px;
    overflow: visible;
  }

  .admin-body .stats-grid,
  .admin-body .ops-dashboard,
  .admin-body .console-grid {
    grid-template-columns: 1fr;
  }

  .admin-body .left-workbench .group-panel {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .admin-body .left-workbench .qr-collapsible {
    grid-column: 1;
    grid-row: auto;
    max-height: none;
  }

  .admin-body .session-list {
    max-height: none;
  }
}

/* Modao reference layout: session console */
.admin-body {
  background: #f3f5f9;
  color: #0f172a;
}

.admin-body .sidebar {
  width: 240px;
  background: #202985;
  color: #fff;
  box-shadow: none;
}

.admin-body .sidebar-brand {
  gap: 12px;
  padding: 22px 16px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.admin-body .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #2677f1;
}

.admin-body .side-nav {
  gap: 12px;
  padding: 12px;
}

.admin-body .nav-item {
  min-height: 40px;
  border-radius: 6px;
  color: #dbeafe;
  font-weight: 700;
}

.admin-body .nav-item.active {
  background: #2f58c7;
  color: #fff;
}

.admin-body .sidebar-footer {
  padding: 16px 24px 24px;
}

.admin-body .admin-main {
  left: 240px;
  width: calc(100% - 240px);
  padding: 0 32px 32px;
  background: #f3f5f9;
}

.admin-body .admin-header {
  position: sticky;
  top: 0;
  z-index: 8;
  min-height: 82px;
  margin: 0 -32px 32px;
  padding: 20px 32px;
  border: 0;
  border-bottom: 1px solid #dfe5ee;
  border-radius: 0;
  box-shadow: none;
}

.admin-body .admin-header .eyebrow {
  display: none;
}

.admin-body .admin-header h1 {
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0;
}

.admin-body .admin-header .muted {
  margin-top: 6px;
}

.admin-body .admin-header-status {
  align-items: center;
  gap: 26px;
}

.admin-body .admin-header-status::after {
  content: none;
  white-space: pre;
  padding-left: 22px;
  border-left: 1px solid #dfe5ee;
  color: #0f172a;
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}

.admin-body .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0 0 24px;
}

.admin-body .stat-card {
  min-height: 130px;
  align-items: center;
  padding: 24px;
  border: 1px solid #dde4ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.admin-body .stat-icon {
  display: none;
}

.admin-body .stat-card small {
  display: block;
  margin-bottom: 10px;
  color: #64748b;
  font-size: 14px;
}

.admin-body .stat-card strong {
  color: #020617;
  font-size: 30px;
  line-height: 1.1;
}

.admin-body .stat-card div::after {
  content: "实时同步中";
  display: block;
  margin-top: 10px;
  color: #94a3b8;
  font-size: 13px;
}

.admin-body .stat-card:first-child div::after {
  content: "较昨日无变化";
}

.admin-body.view-logs .stats-grid,
.admin-body.view-logs .ops-dashboard {
  display: none;
}

.admin-body:not(.view-logs) .operation-log-panel {
  display: none;
}

.admin-body.view-logs .operation-log-panel {
  display: block;
  margin: 0;
}

.admin-body:not(.view-logs) .ops-dashboard {
  display: none;
}

.admin-body .console-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  min-height: 0;
}

.admin-body .left-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  min-width: 0;
  max-height: none;
  overflow: visible;
}

.admin-body .group-dashboard,
.admin-body .session-panel,
.admin-body .workspace,
.admin-body .operation-log-panel {
  border: 1px solid #dde4ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.admin-body .group-dashboard,
.admin-body .session-panel {
  padding: 0;
}

.admin-body .group-config-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 20px;
}

.admin-body .compact-card-head {
  align-items: center;
}

.admin-body .compact-card-head h2,
.admin-body .panel-heading h2 {
  font-size: 18px;
  line-height: 1.25;
}

.admin-body .group-create-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 8px;
}

.admin-body .group-create-row .button {
  white-space: nowrap;
}

.admin-body .group-create-row input,
.admin-body .search-box input,
.admin-body .select-control {
  min-height: 38px;
  border-color: #cfd8e6;
  border-radius: 7px;
  background: #fff;
}

.admin-body .group-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 1px dashed #d8e0ec;
  border-radius: 8px;
  background: #f8fafc;
}

.admin-body .group-toolbar .select-control {
  flex: 0 1 160px;
  max-width: 160px;
}

.admin-body .qr-collapsible {
  position: absolute;
  right: 52px;
  bottom: 18px;
  width: 170px;
  max-height: none;
  border: 0;
  background: transparent;
}

.admin-body .qr-collapsible summary {
  color: #1d4ed8;
  text-align: right;
}

.admin-body .admin-group-qr {
  justify-content: center;
  min-height: 98px;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

.admin-body .admin-group-qr canvas,
.admin-body .admin-group-qr img {
  width: 92px !important;
  height: 92px !important;
  border-radius: 7px;
}

.admin-body .group-dashboard .group-config-card {
  position: relative;
  padding-right: 230px;
}

.admin-body .session-panel {
  position: relative;
  overflow: hidden;
}

.admin-body .session-panel .panel-heading {
  min-height: 68px;
  padding: 20px 24px;
  border-bottom: 1px solid #edf1f7;
}

.admin-body .session-panel #reloadList {
  display: none;
}

.admin-body .session-panel .search-box {
  position: absolute;
  top: 20px;
  right: 166px;
  width: min(256px, 32%);
  margin: 0;
}

.admin-body .session-panel .filter-tools {
  position: absolute;
  top: 20px;
  right: 52px;
  width: 150px;
  margin: 0;
}

.admin-body .session-panel .filter-tools #clearFilters {
  display: none;
}

.admin-body .status-tabs {
  gap: 8px;
  padding: 12px 24px;
  border-top: 1px solid #edf1f7;
  border-bottom: 1px solid #edf1f7;
}

.admin-body .filter,
.admin-body .toolbar-button,
.admin-body .button {
  border-radius: 7px;
}

.admin-body .filter.active,
.admin-body .button.primary,
.admin-body .toolbar-button.primary {
  background: #2f73ee;
  color: #fff;
}

.admin-body .batch-actions {
  padding: 12px 24px;
  border: 0;
  border-bottom: 1px solid #edf1f7;
  background: #fff;
}

.admin-body .batch-actions summary {
  display: inline-flex;
  margin-right: 16px;
  color: #64748b;
}

.admin-body .batch-actions > div {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  vertical-align: middle;
}

.admin-body .session-list {
  max-height: calc(100vh - 520px);
  min-height: 180px;
  padding: 10px 24px 24px;
  overflow: auto;
}

.admin-body .session-item {
  min-height: 66px;
  border-radius: 7px;
}

.admin-body .workspace {
  min-height: 0;
  padding: 18px;
}

.admin-body .workspace-empty-inline {
  display: none;
}

.admin-body .workspace-head {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.5fr);
  gap: 18px;
  align-items: start;
  padding: 0;
  border: 0;
}

.admin-body .action-groups {
  justify-content: flex-end;
}

.admin-body .session-meta {
  margin-top: 16px;
}

.admin-body .remote-entry-panel {
  margin-top: 16px;
}

@media (min-width: 1600px) {
  .admin-body .admin-main {
    padding-left: 48px;
    padding-right: 48px;
  }

  .admin-body .admin-header {
    margin-left: -48px;
    margin-right: -48px;
    padding-left: 48px;
    padding-right: 48px;
  }

  .admin-body .session-list {
    max-height: calc(100vh - 548px);
  }
}

@media (max-width: 1180px) {
  .admin-body .stats-grid {
    gap: 16px;
  }

  .admin-body .group-dashboard .group-config-card {
    padding-right: 20px;
  }

  .admin-body .qr-collapsible {
    position: static;
    width: auto;
  }

  .admin-body .session-panel .search-box,
  .admin-body .session-panel .filter-tools {
    float: none;
    width: auto;
    margin: 0 24px 12px;
  }

  .admin-body .workspace-head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .admin-body .admin-main {
    left: 0;
    width: 100%;
    padding: 12px;
  }

  .admin-body .admin-header {
    margin: -12px -12px 16px;
    padding: 16px 12px;
  }

  .admin-body .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 16px;
  }

  .admin-body .stat-card {
    min-height: 96px;
    padding: 18px;
  }

  .admin-body .console-grid,
  .admin-body .left-workbench {
    gap: 16px;
  }

  .admin-body .group-create-row {
    grid-template-columns: 1fr;
  }

  .admin-body .group-toolbar,
  .admin-body .batch-actions > div {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-body .group-toolbar .select-control {
    flex: 0 0 auto;
    max-width: none;
  }
}

/* One-to-one Modao console pass: desktop workspace-first layout */
@media (min-width: 981px) {
  .admin-body .sidebar {
    display: none;
  }

  .admin-body .admin-main {
    left: 0;
    width: 100%;
    height: 100vh;
    padding: 0 22px 14px;
    overflow: hidden;
    background: #f3f6fb;
  }

  .admin-body .admin-header {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 64px;
    margin: 0 -22px 8px;
    padding: 8px 22px;
    border-bottom: 1px solid #e1e7f0;
    background: #fff;
  }

  .admin-body .admin-header h1 {
    font-size: 22px;
    line-height: 1.1;
  }

  .admin-body .admin-header .muted {
    margin-top: 6px;
    font-size: 11px;
  }

  .admin-body .admin-header-status {
    margin-right: 70px;
  }

  .admin-body .system-online {
    font-size: 12px;
  }

  .admin-body .stats-grid,
  .admin-body .ops-dashboard,
  .admin-body .group-dashboard {
    display: none;
  }

  .admin-body .console-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 18px;
    height: calc(100vh - 86px);
    min-height: 0;
  }

  .admin-body .left-workbench {
    display: contents;
  }

  .admin-body .session-panel {
    order: 1;
    grid-row: 1;
    display: grid;
    grid-template-rows: 50px 44px 44px minmax(0, 1fr);
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #d8e2f0;
    border-radius: 7px;
    background: #fff;
  }

  .admin-body .session-panel .panel-heading {
    min-height: 50px;
    padding: 12px 20px;
    border-bottom: 1px solid #e6edf6;
  }

  .admin-body .session-panel .panel-heading h2 {
    font-size: 18px;
  }

  .admin-body .count-pill {
    height: 22px;
    min-width: 22px;
    padding: 0 7px;
  }

  .admin-body .session-panel .search-box {
    position: absolute;
    top: 8px;
    right: 220px;
    width: 260px;
    height: 38px;
    margin: 0;
  }

  .admin-body .session-panel .filter-tools {
    position: absolute;
    top: 8px;
    right: 50px;
    width: 150px;
    margin: 0;
  }

  .admin-body .batch-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 44px;
    padding: 8px 20px;
    border-bottom: 1px solid #e6edf6;
  }

  .admin-body .batch-actions summary {
    min-width: 58px;
    margin: 0;
    font-size: 11px;
  }

  .admin-body .batch-actions > div {
    display: flex;
    gap: 14px;
  }

  .admin-body .batch-actions .filter,
  .admin-body .status-tabs .filter {
    min-height: 24px;
    padding: 4px 10px;
    border: 0;
    background: transparent;
    font-size: 11px;
  }

  .admin-body .batch-actions .danger-text {
    background: #fee2e2;
    color: #dc2626;
  }

  .admin-body .status-tabs {
    gap: 18px;
    min-height: 44px;
    padding: 9px 20px;
    border-bottom: 1px solid #e6edf6;
    overflow-x: auto;
  }

  .admin-body .status-tabs .filter.active {
    border-radius: 6px;
    background: #2f73ee;
    color: #fff;
  }

  .admin-body .session-list {
    max-height: none;
    min-height: 0;
    padding: 14px 20px;
    overflow: auto;
  }

  .admin-body .session-item {
    grid-template-columns: 22px 32px minmax(0, 1fr) auto 18px;
    min-height: 54px;
    margin-bottom: 8px;
    padding: 8px 12px;
    border: 1px solid #cfe0f5;
    border-radius: 5px;
    background: #fff;
    box-shadow: none;
  }

  .admin-body .session-item .avatar {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 11px;
  }

  .admin-body .session-main strong {
    font-size: 12px;
  }

  .admin-body .session-detail,
  .admin-body .session-main small {
    font-size: 10px;
  }

  .admin-body .session-item .detail-button {
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 5px;
    font-size: 11px;
  }

  .admin-body .workspace {
    order: 2;
    grid-row: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 232px;
    max-height: 232px;
    padding: 14px;
    overflow: hidden;
    border: 1px solid #d8e2f0;
    border-radius: 7px;
    background: #fff;
    box-shadow: none;
  }

  .admin-body .workspace-head {
    display: grid;
    grid-template-columns: minmax(310px, 1fr) auto;
    gap: 16px;
    align-items: start;
  }

  .admin-body .active-user {
    align-items: flex-start;
  }

  .admin-body .active-user .avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .admin-body .title-line h2 {
    font-size: 17px;
  }

  .admin-body .action-groups {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    max-width: none;
  }

  .admin-body .action-group {
    display: flex;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .admin-body .workspace .toolbar-button,
  .admin-body .workspace .toolbar-select {
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 11px;
  }

  .admin-body .workspace .toolbar-select {
    max-width: 112px;
  }

  .admin-body .session-meta {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
  }

  .admin-body .session-meta span {
    min-height: 44px;
    padding: 8px 10px;
    border-radius: 5px;
  }

  .admin-body .session-meta small {
    font-size: 10px;
  }

  .admin-body .session-meta strong {
    font-size: 12px;
  }

  .admin-body .remote-entry-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 108px;
    align-items: center;
    gap: 16px;
    min-height: 92px;
    margin: 0;
    padding: 14px 16px;
    border-radius: 5px;
  }

  .admin-body .remote-entry-panel h3 {
    font-size: 18px;
  }

  .admin-body .remote-entry-panel .muted {
    margin-top: 4px;
    font-size: 13px;
  }

  .admin-body .remote-entry-button {
    min-height: 34px;
    border-radius: 5px;
    font-size: 12px;
  }
}

/* Admin console redesign: reference layout */
.admin-body {
  --console-blue: #1f2a86;
  --console-blue-2: #2949b6;
  --console-bg: #f3f4f6;
  --console-line: #e5e7eb;
  --console-text: #101827;
  display: flex;
  overflow: hidden;
  background: var(--console-bg);
  color: var(--console-text);
}

.admin-body.auth-locked {
  display: block;
  overflow: auto;
}

.admin-body.auth-locked .sidebar,
.admin-body.auth-locked .admin-main {
  display: none;
}

.sidebar {
  width: 240px;
  min-width: 240px;
  min-height: 100vh;
  padding: 22px 12px;
  background: var(--console-blue);
  color: #fff;
}

.sidebar-brand {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 12px;
  padding: 0 4px 18px;
  border-bottom: 1px solid rgba(255,255,255,.14);
  color: #fff;
}

.sidebar-brand .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #1d73e8;
  color: #fff;
}

.sidebar-brand strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
}

.sidebar-brand small {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,.78);
  font-size: 12px;
}

.side-nav {
  gap: 10px;
  margin-top: 14px;
}

.side-nav .nav-item,
.sidebar-footer .nav-item {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255,255,255,.92);
  font-weight: 700;
}

.side-nav .nav-item.active {
  background: var(--console-blue-2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.sidebar-footer {
  margin-top: auto;
  gap: 16px;
  color: #fff;
}

.admin-main {
  flex: 1;
  min-width: 0;
  height: 100vh;
  overflow: auto;
  background: var(--console-bg);
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 18px 32px;
  border-bottom: 1px solid var(--console-line);
  background: rgba(255,255,255,.96);
}

.admin-header .eyebrow {
  display: none;
}

.admin-header h1 {
  margin: 0 0 4px;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
  color: #0f172a;
}

.admin-header .muted {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.admin-header-status {
  display: flex;
  align-items: center;
  gap: 22px;
}

.admin-header-status .system-online {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
}

.admin-user-card {
  display: flex;
  column-gap: 12px;
  align-items: center;
  min-height: 38px;
}

.admin-user-card strong,
.admin-user-card small {
  grid-column: 1;
  text-align: right;
}

.admin-user-card strong {
  color: #111827;
  font-size: 13px;
  line-height: 38px;
  align-self: center;
}

.admin-user-card small {
  color: #64748b;
  font-size: 12px;
}

.admin-user-card span {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #1d4ed8);
  color: #fff;
  font-weight: 800;
}

#sessionManagementView {
  padding: 32px 32px 0;
}

.workflow-ops {
  display: none;
}

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

.stat-card {
  min-height: 138px;
  padding: 28px 24px;
  border: 1px solid var(--console-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}

.stat-card .stat-icon {
  display: none;
}

.stat-card small {
  color: #4b5563;
  font-size: 14px;
}

.stat-card strong {
  display: block;
  margin: 14px 0 8px;
  color: #020617;
  font-size: 30px;
  line-height: 1;
}

.stat-card em {
  color: #9ca3af;
  font-size: 13px;
  font-style: normal;
}

#sessionConsoleView {
  padding: 32px;
}

.console-grid {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin: 0;
}

.left-workbench {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.admin-body .panel,
.group-dashboard,
.session-panel,
.operation-log-panel {
  border: 1px solid var(--console-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}

.group-dashboard {
  padding: 22px 20px 18px;
}

.compact-card-head h2,
.operation-log-head h2,
.panel-heading h2 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  line-height: 1.2;
}

.compact-card-head .eyebrow {
  display: inline;
  margin: 0;
  color: #0f172a;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0;
}

.mini-link {
  color: #2563eb;
  font-size: 13px;
}

.group-create-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 14px;
}

.group-toolbar {
  display: block;
  margin-top: 16px;
}

.group-toolbar > .select-control,
.group-toolbar > .filter {
  margin-bottom: 10px;
}

.qr-collapsible {
  border: 1px solid var(--console-line);
  border-radius: 8px;
}

.qr-collapsible summary {
  display: none;
}

.admin-group-qr.compact-qr {
  display: grid;
  place-items: center;
  min-height: 176px;
  padding: 16px;
}

.admin-group-qr canvas,
.admin-group-qr img {
  max-width: 146px;
  max-height: 146px;
}

.operation-log-panel {
  padding: 18px 16px;
}

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

.operation-log-head .eyebrow {
  display: none;
}

.operation-log-list {
  max-height: 228px;
  overflow: auto;
  padding-right: 4px;
}

.operation-log-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eef2f7;
}

.operation-log-item time,
.operation-log-item span,
.operation-log-item p {
  color: #6b7280;
  font-size: 12px;
}

.operation-log-item strong {
  color: #111827;
  font-size: 13px;
}

.session-panel {
  min-width: 0;
  padding: 0;
  overflow: hidden;
}

.session-panel .panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 20px 24px 12px;
  border-bottom: 1px solid var(--console-line);
}

.session-panel .panel-heading > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.session-panel-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.session-panel-tools .search-box {
  width: 256px;
  margin: 0;
}

.session-panel-tools .select-control {
  width: 112px;
}

.toolbar-button.icon-only {
  width: 36px;
  min-width: 36px;
  padding: 0;
}

.status-tabs {
  display: flex;
  gap: 8px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--console-line);
}

.filter,
.toolbar-button,
.table-button {
  min-height: 32px;
  border: 1px solid var(--console-line);
  border-radius: 7px;
  background: #fff;
  color: #374151;
  font-size: 13px;
}

.filter.active,
.toolbar-button.primary {
  border-color: #2563eb;
  background: #2f7df4;
  color: #fff;
}

.toolbar-button.danger {
  border-color: #dc2626;
  background: #dc2626;
  color: #fff;
}

.session-bulk-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--console-line);
  color: #6b7280;
  font-size: 13px;
}

.select-loaded {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.bulk-spacer {
  flex: 1;
}

.session-list {
  min-height: 390px;
  max-height: calc(100vh - 390px);
  overflow: auto;
}

.session-table {
  min-width: 980px;
}

.session-table-head,
.session-table-row {
  display: grid;
  grid-template-columns: 48px minmax(250px, 1.4fr) 110px 110px 108px 100px minmax(380px, 1.6fr);
  align-items: center;
  gap: 16px;
}

.session-table-head {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 42px;
  padding: 0 16px;
  background: #f8fafc;
  border-bottom: 1px solid #eef2f7;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
}

.session-table-row {
  min-height: 104px;
  padding: 14px 16px;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
}

.session-table-row:hover,
.session-table-row.active {
  background: #f8fbff;
}

.session-select-cell {
  display: flex;
  align-items: center;
  justify-content: center;
}

.session-user-cell {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.session-user-cell .avatar {
  width: 38px;
  height: 38px;
  background: #eef2f7;
  color: #64748b;
  font-weight: 800;
}

.session-user-cell .avatar.avatar-ok {
  background: #dbeafe !important;
  color: #1d4ed8 !important;
}

.session-user-cell .avatar.avatar-danger {
  background: #fee2e2 !important;
  color: #dc2626 !important;
}

.session-user-cell strong {
  display: inline-block;
  margin-right: 8px;
  color: #111827;
  font-size: 14px;
}

.session-user-cell small {
  display: block;
  overflow: hidden;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-status {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 6px;
  border-radius: 5px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
}

button.mini-status {
  border: 1px solid #dbe7f5;
  cursor: pointer;
}

button.mini-status:hover {
  border-color: #b8cff0;
  color: #1d4ed8;
  background: #eaf2ff;
}

.table-status {
  color: #4b5563;
  font-size: 13px;
}

.session-group-cell {
  color: #4b5563 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
}

.detail-image-link {
  cursor: pointer;
}

.detail-image-link:hover strong {
  color: #2563eb;
  text-decoration: underline;
}

.table-status.ready {
  color: #047857;
}

.table-status.error {
  color: #dc2626;
}

.session-row-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.session-row-actions small {
  width: 100%;
  color: #9ca3af;
  font-size: 12px;
  text-align: right;
}

.table-button,
.table-link {
  min-height: 30px;
  padding: 0 10px;
  white-space: nowrap;
}

.table-link {
  border: 0;
  background: transparent;
  color: #2563eb;
}

.table-empty {
  min-height: 280px;
}

.workspace {
  display: none;
}

@media (max-width: 1366px) {
  .sidebar {
    width: 220px;
    min-width: 220px;
  }

  .admin-header,
  #sessionManagementView,
  #sessionConsoleView {
    padding-left: 24px;
    padding-right: 24px;
  }

  .console-grid {
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 24px;
  }

  .stats-grid {
    gap: 18px;
  }

  .session-panel-tools .search-box {
    width: 230px;
  }
}

@media (max-width: 900px) {
  .admin-body {
    display: block;
    overflow: auto;
  }

  .sidebar {
    width: 100%;
    min-width: 0;
    min-height: auto;
  }

  .admin-main {
    height: auto;
    overflow: visible;
  }

  .admin-header,
  .session-panel .panel-heading,
  .session-panel-tools,
  .session-bulk-bar {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .session-panel-tools .search-box,
  .session-panel-tools .select-control {
    width: 100%;
  }

  .session-list {
    max-height: none;
  }
}

/* Admin console redesign: final precedence fixes */
.admin-body {
  display: flex !important;
}

.admin-body .sidebar {
  display: flex !important;
  position: static !important;
  width: 240px !important;
  min-width: 240px !important;
  height: auto !important;
  min-height: 100vh !important;
}

.admin-body .admin-main {
  flex: 1 1 auto !important;
  position: static !important;
  inset: auto !important;
  width: auto !important;
  height: 100vh !important;
  overflow: auto !important;
}

.admin-body #sessionManagementView {
  display: block !important;
  padding: 32px 32px 0 !important;
}

.admin-body .stats-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.admin-body .group-dashboard {
  display: block !important;
}

.admin-body .operation-log-panel {
  display: block !important;
}

.admin-body #sessionConsoleView {
  display: block !important;
  padding: 16px 32px 32px !important;
}

.admin-body .console-grid {
  display: grid !important;
  grid-template-columns: 380px minmax(0, 1fr) !important;
  grid-template-rows: auto !important;
  gap: 24px !important;
  height: auto !important;
  min-height: 0 !important;
}

.admin-body .left-workbench {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

.admin-body .session-panel {
  order: 0 !important;
  grid-row: auto !important;
  display: block !important;
  grid-template-rows: none !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.admin-body .workspace {
  display: none !important;
}

.admin-body .admin-header-status::after {
  content: none !important;
  display: none !important;
}

.admin-body .group-config-card {
  display: block !important;
  grid-template-columns: none !important;
  width: auto !important;
  min-height: 0 !important;
  padding: 18px 20px 16px !important;
}

.admin-body .compact-card-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.admin-body .compact-card-head > div {
  width: auto !important;
  min-width: 0 !important;
}

.admin-body .compact-card-head h2,
.admin-body .compact-card-head .eyebrow {
  white-space: nowrap !important;
}

.admin-body .group-create-row {
  grid-template-columns: minmax(0, 1fr) auto !important;
  width: 100% !important;
}

.admin-body .group-create-row input {
  width: 100% !important;
  min-width: 0 !important;
}

.admin-body .group-toolbar {
  display: block !important;
  width: 100% !important;
}

.admin-body .qr-collapsible,
.admin-body .admin-group-qr.compact-qr {
  width: 100% !important;
}

.admin-body .qr-collapsible {
  position: static !important;
  inset: auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin-top: 12px !important;
  overflow: visible !important;
}

.admin-body .admin-group-qr.compact-qr {
  min-height: 96px !important;
  padding: 8px !important;
  overflow: visible !important;
}

.admin-body .admin-group-qr canvas,
.admin-body .admin-group-qr img {
  max-width: 92px !important;
  max-height: 92px !important;
}

.admin-body .stat-card {
  min-height: 118px !important;
  padding: 24px !important;
}

.admin-body .session-bulk-bar {
  flex-wrap: wrap !important;
  height: auto !important;
  min-height: 58px !important;
}

.admin-body .session-list {
  display: block !important;
}

.admin-body .session-bulk-bar > span,
.admin-body .session-bulk-bar .filter,
.admin-body .session-bulk-bar .toolbar-button {
  white-space: nowrap !important;
}

.admin-body.auth-locked .sidebar,
.admin-body.auth-locked .admin-main {
  display: none !important;
}

@media (max-width: 900px) {
  .admin-body {
    display: block !important;
    overflow: auto !important;
  }

  .admin-body .sidebar {
    width: 100% !important;
    min-width: 0 !important;
    min-height: auto !important;
  }

  .admin-body .admin-main {
    height: auto !important;
    overflow: visible !important;
  }

  .admin-body .stats-grid,
  .admin-body .console-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Admin requested layout adjustments: group strip, clean precreate, no logs */
.admin-body .login-overlay.hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.admin-body:not(.view-precreate) #sessionConsoleView {
  display: block !important;
  padding: 16px 32px 32px !important;
}

.admin-body .console-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 16px !important;
  height: auto !important;
  min-height: 0 !important;
  align-items: stretch !important;
}

.admin-body .group-dashboard-strip {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 16px 18px !important;
}

.admin-body .group-dashboard-strip .group-config-card {
  display: grid !important;
  grid-template-columns: minmax(190px, 230px) minmax(260px, 1fr) minmax(340px, 1.4fr) 150px !important;
  grid-template-areas:
    "head create actions qr"
    "hint create actions qr" !important;
  gap: 10px 16px !important;
  align-items: center !important;
  padding: 0 !important;
}

.admin-body .group-dashboard-strip .compact-card-head {
  grid-area: head !important;
  margin: 0 !important;
}

.admin-body .group-dashboard-strip .compact-card-head > div:first-child {
  display: flex !important;
  align-items: baseline !important;
  gap: 6px !important;
}

.admin-body .group-dashboard-strip .compact-muted {
  grid-area: hint !important;
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

.admin-body .group-dashboard-strip .group-create-row {
  grid-area: create !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 92px !important;
  gap: 8px !important;
  margin: 0 !important;
}

.admin-body .group-dashboard-strip .group-create-row input,
.admin-body .group-dashboard-strip .group-create-row button,
.admin-body .group-dashboard-strip .group-toolbar .select-control,
.admin-body .group-dashboard-strip .group-toolbar .filter {
  height: 36px !important;
  min-height: 36px !important;
}

.admin-body .group-dashboard-strip .group-toolbar {
  grid-area: actions !important;
  display: grid !important;
  grid-template-columns: minmax(120px, 1fr) repeat(3, 88px) !important;
  gap: 8px !important;
  margin: 0 !important;
  align-items: center !important;
}

.admin-body .group-dashboard-strip .qr-collapsible {
  grid-area: qr !important;
  width: 150px !important;
  margin: 0 !important;
  justify-self: end !important;
}

.admin-body .group-dashboard-strip .qr-collapsible summary {
  display: none !important;
}

.admin-body .group-dashboard-strip .admin-group-qr {
  width: 150px !important;
  min-height: 104px !important;
  margin: 0 !important;
  padding: 8px !important;
}

.admin-body .group-dashboard-strip .admin-group-qr canvas,
.admin-body .group-dashboard-strip .admin-group-qr img {
  max-width: 90px !important;
  max-height: 90px !important;
}

.admin-body .operation-log-panel,
.admin-body .operation-log-list,
.admin-body .operation-log-head {
  display: none !important;
}

.admin-body .session-panel {
  width: 100% !important;
  min-width: 0 !important;
  max-height: none !important;
}

.admin-body .session-table {
  min-width: 960px !important;
}

.admin-body.view-precreate #precreateManagementView {
  display: block !important;
}

.admin-body #precreateManagementView {
  padding: 16px 32px 32px !important;
}

.admin-body #precreateManagementView .precreate-dashboard {
  max-width: 1180px !important;
  margin: 0 auto !important;
}

.admin-body #precreateManagementView .precreate-head {
  margin-bottom: 12px !important;
}

.admin-body #precreateManagementView .precreate-head .eyebrow,
.admin-body #precreateManagementView .precreate-head .muted,
.admin-body #precreateManagementView .precreate-tools,
.admin-body #templateDropZone {
  display: none !important;
}

@media (max-width: 1180px) {
  .admin-body .group-dashboard-strip .group-config-card {
    grid-template-columns: minmax(0, 1fr) 150px !important;
    grid-template-areas:
      "head qr"
      "hint qr"
      "create qr"
      "actions qr" !important;
  }

  .admin-body .group-dashboard-strip .group-toolbar {
    grid-template-columns: minmax(120px, 1fr) repeat(3, minmax(72px, 88px)) !important;
  }
}

@media (max-width: 900px) {
  .admin-body:not(.view-precreate) #sessionConsoleView,
  .admin-body #precreateManagementView {
    padding: 16px !important;
  }

  .admin-body .group-dashboard-strip .group-config-card {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "head"
      "hint"
      "create"
      "actions"
      "qr" !important;
  }

  .admin-body .group-dashboard-strip .group-toolbar,
  .admin-body .group-dashboard-strip .group-create-row {
    grid-template-columns: 1fr !important;
  }

  .admin-body .group-dashboard-strip .qr-collapsible,
  .admin-body .group-dashboard-strip .admin-group-qr {
    width: 100% !important;
    justify-self: stretch !important;
  }
}

/* User session search toolbar fix */
.admin-body #sessionManagementView[hidden],
.admin-body #sessionConsoleView[hidden],
.admin-body #precreateManagementView[hidden] {
  display: none !important;
}

.admin-body .session-panel .panel-heading {
  gap: 18px !important;
}

.admin-body .session-panel-tools {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
}

.admin-body .session-panel-tools .search-box {
  position: relative !important;
  flex: 0 1 300px !important;
  width: 300px !important;
  min-width: 240px !important;
  height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  border: 1px solid #d9e2ef !important;
  border-radius: 7px !important;
  background: #fff !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

.admin-body .session-panel-tools .search-box span {
  position: absolute !important;
  left: 14px !important;
  top: 50% !important;
  width: 13px !important;
  height: 13px !important;
  margin: -7px 0 0 !important;
  padding: 0 !important;
  border: 1.8px solid #8ea0b8 !important;
  border-radius: 999px !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  pointer-events: none !important;
}

.admin-body .session-panel-tools .search-box span::after {
  content: "" !important;
  position: absolute !important;
  right: -5px !important;
  bottom: -3px !important;
  width: 6px !important;
  height: 1.8px !important;
  border-radius: 999px !important;
  background: #8ea0b8 !important;
  transform: rotate(45deg) !important;
}

.admin-body .session-panel-tools .search-box input {
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 12px 0 40px !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: #111827 !important;
  font-size: 14px !important;
  line-height: 38px !important;
}

.admin-body .session-panel-tools .search-box input::placeholder {
  color: #7b8798 !important;
}

.admin-body .session-panel-tools #sessionGroupFilter {
  flex: 0 0 112px !important;
  width: 112px !important;
  height: 38px !important;
  margin: 0 !important;
  border-radius: 7px !important;
}

.admin-body .session-panel-tools #reloadList {
  flex: 0 0 16px !important;
  width: 16px !important;
  min-width: 16px !important;
  height: 16px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: transparent !important;
  background: #e5e7eb !important;
  box-shadow: none !important;
}

@media (max-width: 900px) {
  .admin-body .session-panel-tools {
    width: 100% !important;
    align-items: stretch !important;
  }

  .admin-body .session-panel-tools .search-box,
  .admin-body .session-panel-tools #sessionGroupFilter {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* Group entrance strip text layout fix */
.admin-body .group-dashboard-strip .group-config-card {
  grid-template-columns: minmax(280px, 360px) minmax(250px, 1fr) minmax(320px, 1.2fr) 150px !important;
  gap: 12px 18px !important;
}

.admin-body .group-dashboard-strip .compact-card-head {
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, auto) auto !important;
  align-items: center !important;
  justify-content: start !important;
  column-gap: 10px !important;
  row-gap: 4px !important;
}

.admin-body .group-dashboard-strip .compact-card-head > div:first-child {
  min-width: 0 !important;
  display: flex !important;
  align-items: baseline !important;
  gap: 6px !important;
  white-space: nowrap !important;
}

.admin-body .group-dashboard-strip .compact-card-head .eyebrow,
.admin-body .group-dashboard-strip .compact-card-head h2 {
  white-space: nowrap !important;
}

.admin-body .group-dashboard-strip .compact-card-head .mini-link {
  flex: 0 0 auto !important;
  height: 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  background: #eef4ff !important;
  white-space: nowrap !important;
}

.admin-body .group-dashboard-strip .compact-muted {
  max-width: 320px !important;
  white-space: normal !important;
}

@media (max-width: 1280px) {
  .admin-body .group-dashboard-strip .group-config-card {
    grid-template-columns: minmax(260px, 320px) minmax(230px, 1fr) minmax(280px, 1.1fr) 132px !important;
    gap: 10px 14px !important;
  }

  .admin-body .group-dashboard-strip .qr-collapsible,
  .admin-body .group-dashboard-strip .admin-group-qr {
    width: 132px !important;
  }
}

@media (max-width: 1100px) {
  .admin-body .group-dashboard-strip .group-config-card {
    grid-template-columns: minmax(0, 1fr) 132px !important;
    grid-template-areas:
      "head qr"
      "hint qr"
      "create qr"
      "actions qr" !important;
  }

  .admin-body .group-dashboard-strip .compact-muted {
    max-width: none !important;
  }
}

/* Remote page: move operation controls to bottom */
.remote-page {
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  background: #eef3f8 !important;
}

.remote-page .remote-topbar {
  flex: 0 0 auto !important;
}

.remote-page .remote-shell {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) auto auto !important;
  gap: 12px !important;
  padding: 12px !important;
  overflow: hidden !important;
}

.remote-page .remote-viewer {
  grid-row: 1 !important;
  min-height: 0 !important;
  height: auto !important;
  display: grid !important;
  place-items: center !important;
  overflow: auto !important;
}

.remote-page .remote-viewer img {
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

.remote-page .remote-side {
  grid-row: 2 / 4 !important;
  min-width: 0 !important;
  display: contents !important;
}

.remote-page .remote-controls {
  grid-row: 2 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 10px 12px !important;
}

.remote-page .remote-controls .panel-heading {
  min-height: 0 !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  border: 0 !important;
}

.remote-page .remote-input-row {
  display: grid !important;
  grid-template-columns: minmax(220px, 1fr) 96px !important;
  gap: 10px !important;
  align-items: stretch !important;
}

.remote-page #remoteTypeValue {
  min-height: 44px !important;
  resize: none !important;
}

.remote-page #remoteSendText {
  min-height: 44px !important;
}

.remote-page .remote-button-grid {
  display: flex !important;
  gap: 10px !important;
  margin-top: 8px !important;
}

.remote-page .remote-button-grid .toolbar-button {
  flex: 0 0 120px !important;
}

.remote-page .control-note {
  margin: 8px 0 0 !important;
  font-size: 12px !important;
}

.remote-page .remote-diagnostic-panel {
  grid-row: 3 !important;
  display: none !important;
  margin: 0 !important;
}

.remote-page .remote-diagnostic-panel:has(#remoteDiagnostic:not(:empty)) {
  display: block !important;
}

@media (max-width: 720px) {
  .remote-page {
    overflow: auto !important;
  }

  .remote-page .remote-shell {
    height: auto !important;
    overflow: visible !important;
  }

  .remote-page .remote-viewer {
    min-height: 48vh !important;
  }

  .remote-page .remote-input-row {
    grid-template-columns: 1fr !important;
  }

  .remote-page .remote-button-grid {
    flex-wrap: wrap !important;
  }
}

/* Group strip right spacing polish */
.admin-body .group-dashboard-strip {
  overflow: hidden !important;
}

.admin-body .group-dashboard-strip .group-config-card {
  grid-template-columns: minmax(280px, 360px) minmax(250px, 1fr) minmax(300px, 1.1fr) 122px !important;
  padding-right: 12px !important;
}

.admin-body .group-dashboard-strip .qr-collapsible,
.admin-body .group-dashboard-strip .admin-group-qr {
  width: 122px !important;
}

.admin-body .group-dashboard-strip .admin-group-qr canvas,
.admin-body .group-dashboard-strip .admin-group-qr img {
  max-width: 82px !important;
  max-height: 82px !important;
}

/* Align session search with group filter */
.admin-body .session-panel-tools {
  justify-content: flex-end !important;
  gap: 8px !important;
  margin-left: auto !important;
}

.admin-body .session-panel-tools .search-box {
  flex: 0 0 300px !important;
  width: 300px !important;
}

.admin-body .session-panel-tools #sessionGroupFilter {
  flex: 0 0 112px !important;
  width: 112px !important;
}

@media (min-width: 901px) {
  .admin-body .session-panel .panel-heading > div:first-child {
    flex: 0 0 auto !important;
  }

  .admin-body .session-panel-tools {
    max-width: 430px !important;
  }
}

/* Precreate import tools restored */
.admin-body #precreateManagementView .precreate-tools {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.admin-body #templateDropZone {
  display: grid !important;
}

/* Remote page: viewer left, diagnostics right, operation bottom */
.remote-page .remote-shell {
  grid-template-columns: minmax(0, 1fr) 360px !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  gap: 12px !important;
}

.remote-page .remote-viewer {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

.remote-page .remote-side-panel {
  grid-column: 2 !important;
  grid-row: 1 / 3 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  min-height: 0 !important;
}

.remote-page .remote-diagnostic-panel {
  display: flex !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  flex-direction: column !important;
}

.remote-page .remote-diagnostic-panel .panel-heading {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 12px 14px !important;
  border-bottom: 1px solid #dbe5f2 !important;
}

.remote-page .remote-diagnostic-panel .panel-heading h2 {
  margin: 0 !important;
  white-space: nowrap !important;
}

.remote-page .remote-diagnostic-panel .panel-heading span {
  display: block !important;
  margin-top: 2px !important;
  color: #64748b !important;
  font-size: 12px !important;
}

.remote-page .remote-diagnostic-panel #remoteInspect {
  flex: 0 0 auto !important;
  height: 34px !important;
  white-space: nowrap !important;
}

.remote-page .remote-diagnostic-panel pre {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  overflow: auto !important;
}

.remote-page .remote-control-panel {
  grid-column: 1 !important;
  grid-row: 2 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 12px !important;
}

.remote-page .remote-control-panel .panel-heading {
  display: flex !important;
  align-items: baseline !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  min-height: 0 !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  border: 0 !important;
}

.remote-page .remote-control-panel .panel-heading h2 {
  margin: 0 !important;
  font-size: 18px !important;
  white-space: nowrap !important;
}

.remote-page .remote-control-panel .panel-heading span {
  color: #334155 !important;
  font-size: 13px !important;
  white-space: nowrap !important;
}

.remote-page .remote-control-panel .input-row,
.remote-page .remote-input-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 96px !important;
  gap: 10px !important;
  align-items: stretch !important;
}

.remote-page #remoteTypeValue {
  width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 14px !important;
  line-height: 44px !important;
}

.remote-page #remoteSendText {
  width: 96px !important;
  min-width: 96px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 12px !important;
  white-space: nowrap !important;
}

.remote-page .remote-button-grid {
  display: none !important;
}

.remote-page .control-note {
  margin: 8px 0 0 !important;
  color: #64748b !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
}

@media (max-width: 980px) {
  .remote-page .remote-shell {
    grid-template-columns: 1fr !important;
    grid-template-rows: minmax(48vh, auto) auto auto !important;
    overflow: visible !important;
  }

  .remote-page .remote-viewer,
  .remote-page .remote-control-panel,
  .remote-page .remote-side-panel {
    grid-column: 1 !important;
  }

  .remote-page .remote-viewer { grid-row: 1 !important; }
  .remote-page .remote-control-panel { grid-row: 2 !important; }
  .remote-page .remote-side-panel { grid-row: 3 !important; }
}

/* Session table header/body alignment fix */
.admin-body .session-panel .session-list {
  padding: 0 !important;
  overflow-x: auto !important;
}

.admin-body .session-panel .session-table {
  width: 100% !important;
  min-width: 1120px !important;
  display: block !important;
  margin: 0 !important;
}

.admin-body .session-panel .session-table-head,
.admin-body .session-panel .session-table-row {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 54px minmax(300px, 1.45fr) 120px 120px 120px 100px minmax(430px, 1.65fr) !important;
  gap: 0 !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

.admin-body .session-panel .session-table-head {
  padding: 0 !important;
  min-height: 42px !important;
  background: #f8fafc !important;
  border-top: 1px solid #eef2f7 !important;
  border-bottom: 1px solid #eef2f7 !important;
}

.admin-body .session-panel .session-table-head > span {
  height: 42px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 10px !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.admin-body .session-panel .session-table-row {
  min-height: 104px !important;
  padding: 0 !important;
  border-bottom: 1px solid #eef2f7 !important;
}

.admin-body .session-panel .session-table-row > * {
  min-width: 0 !important;
  padding: 14px 10px !important;
  box-sizing: border-box !important;
}

.admin-body .session-panel .session-select-cell,
.admin-body .session-panel .session-detail-cell,
.admin-body .session-panel .table-status,
.admin-body .session-panel .session-table-row > span,
.admin-body .session-panel .session-row-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.admin-body .session-panel .session-user-cell {
  justify-content: flex-start !important;
  text-align: left !important;
}

.admin-body .session-panel .session-row-actions {
  justify-content: center !important;
  gap: 8px !important;
}

.admin-body .session-panel .session-row-actions small {
  text-align: center !important;
}

.admin-body .session-panel .session-group-cell {
  color: #4b5563 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
}

/* Customer/unit QR management */
.admin-body .group-dashboard-strip {
  display: grid !important;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: stretch !important;
}

.admin-body .customer-list-card,
.admin-body .group-config-card {
  min-width: 0 !important;
}

.admin-body .customer-create-row,
.admin-body .customer-date-row,
.admin-body .group-create-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 10px !important;
  align-items: center !important;
}

.admin-body .customer-date-row {
  grid-template-columns: 1fr 1fr auto !important;
  margin-top: 10px !important;
}

.admin-body .group-create-row {
  grid-template-columns: minmax(160px, 1fr) minmax(180px, 1fr) minmax(170px, 1fr) auto !important;
}

.admin-body .customer-list {
  display: grid !important;
  gap: 10px !important;
  max-height: 310px !important;
  overflow: auto !important;
  margin-top: 12px !important;
  padding-right: 4px !important;
}

.admin-body .customer-item {
  border: 1px solid #dbe4f0 !important;
  border-radius: 8px !important;
  padding: 12px !important;
  background: #fff !important;
}

.admin-body .customer-item header,
.admin-body .customer-stats,
.admin-body .customer-unit-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

.admin-body .customer-item header span {
  color: #64748b !important;
  font-size: 12px !important;
}

.admin-body .customer-stats {
  margin: 10px 0 !important;
}

.admin-body .customer-stats span {
  flex: 1 1 0 !important;
  padding: 8px !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
}

.admin-body .customer-stats small,
.admin-body .customer-unit-row small {
  color: #64748b !important;
  font-size: 12px !important;
}

.admin-body .customer-stats b {
  display: block !important;
  margin-top: 4px !important;
  font-size: 16px !important;
  color: #0f172a !important;
}

.admin-body .customer-units {
  display: grid !important;
  gap: 6px !important;
}

.admin-body .customer-unit-row {
  padding: 8px !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
}

.admin-body .customer-unit-row span {
  min-width: 90px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
}

.admin-body .group-qr-wrap {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  width: 214px !important;
  min-height: 238px !important;
  padding: 10px 12px 36px !important;
  box-sizing: border-box !important;
}

.admin-body .group-qr-wrap canvas,
.admin-body .group-qr-wrap img {
  display: block !important;
  width: 190px !important;
  height: 190px !important;
}

.admin-body .group-qr-wrap .qr-center-label {
  position: absolute !important;
  left: 50% !important;
  top: calc(50% - 18px) !important;
  transform: translate(-50%, -50%) !important;
  max-width: 74px !important;
  padding: 2px 4px !important;
  border-radius: 6px !important;
  background: rgba(255,255,255,.92) !important;
  color: #0f172a !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-align: center !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.admin-body .group-qr-wrap .qr-unit-label {
  position: absolute !important;
  left: 12px !important;
  right: 12px !important;
  top: auto !important;
  bottom: 12px !important;
  max-width: none !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #1e293b !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-align: center !important;
  transform: none !important;
  box-shadow: none !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

@media (max-width: 900px) {
  .admin-body .group-dashboard-strip,
  .admin-body .group-create-row,
  .admin-body .customer-date-row {
    grid-template-columns: 1fr !important;
  }
}

.admin-body .daily-stats-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

.admin-body .date-control {
  height: 38px;
  min-width: 140px;
  padding: 0 12px;
  border: 1px solid #d7e1ef;
  border-radius: 8px;
  color: #0f172a;
  background: #fff;
}

@media (max-width: 1200px) {
  .admin-body .daily-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* ui81 layout fixes */
.admin-body .daily-stats-section {
  display: grid !important;
  gap: 14px !important;
  margin-bottom: 18px !important;
}

.admin-body .daily-stats-toolbar {
  display: flex !important;
  align-items: end !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

.admin-body .daily-stats-toolbar h2 {
  margin: 2px 0 0 !important;
  font-size: 18px !important;
}

.admin-body .daily-date-row {
  display: grid !important;
  grid-template-columns: minmax(140px, 160px) minmax(140px, 160px) auto !important;
  gap: 10px !important;
  align-items: center !important;
}

.admin-body .group-dashboard-strip {
  grid-template-columns: minmax(360px, 440px) minmax(620px, 1fr) !important;
  overflow: visible !important;
}

.admin-body .group-dashboard-strip .group-config-card {
  display: grid !important;
  grid-template-columns: minmax(260px, 1fr) minmax(300px, 360px) !important;
  grid-template-areas:
    "head qr"
    "note qr"
    "form qr"
    "toolbar qr" !important;
  gap: 12px 18px !important;
  align-items: start !important;
  padding-right: 20px !important;
}

.admin-body .group-dashboard-strip .compact-card-head {
  grid-area: head !important;
}

.admin-body .group-dashboard-strip .compact-muted {
  grid-area: note !important;
  margin: 0 !important;
  max-width: 100% !important;
}

.admin-body .group-dashboard-strip .group-create-row {
  grid-area: form !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  max-width: none !important;
  width: 100% !important;
}

.admin-body .group-dashboard-strip .group-toolbar {
  grid-area: toolbar !important;
  display: flex !important;
  flex-wrap: wrap !important;
  max-width: none !important;
  width: 100% !important;
}

.admin-body .group-dashboard-strip .qr-collapsible {
  grid-area: qr !important;
  display: grid !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 260px !important;
  align-self: stretch !important;
}

.admin-body .group-dashboard-strip .admin-group-qr {
  width: 100% !important;
  min-height: 250px !important;
  align-self: stretch !important;
}

.admin-body .group-dashboard-strip .admin-group-qr canvas,
.admin-body .group-dashboard-strip .admin-group-qr img {
  max-width: 190px !important;
  max-height: 190px !important;
}

.admin-body .customer-item header span,
.admin-body .customer-stats small,
.admin-body .customer-unit-row small {
  white-space: nowrap !important;
}

.admin-body .session-panel .panel-heading {
  flex-wrap: wrap !important;
  align-items: flex-start !important;
}

.admin-body .session-panel-tools {
  display: grid !important;
  grid-template-columns: minmax(140px, 160px) minmax(140px, 160px) minmax(140px, 170px) minmax(140px, 170px) minmax(260px, 1fr) !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
}

.admin-body .session-panel-tools .date-control,
.admin-body .session-panel-tools .search-box,
.admin-body .session-panel-tools #sessionCustomerFilter,
.admin-body .session-panel-tools #sessionGroupFilter,
.admin-body .session-panel-tools #reloadList {
  width: 100% !important;
  min-width: 0 !important;
  flex: none !important;
}

.admin-body .session-panel-tools .search-box {
  display: flex !important;
  flex-basis: auto !important;
  position: relative !important;
  inset: 0 !important;
  height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.admin-body .session-panel-tools .search-box input {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 12px 0 40px !important;
  box-sizing: border-box !important;
}

.admin-body .session-panel-tools #sessionDateFrom {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

.admin-body .session-panel-tools #sessionDateTo {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

.admin-body .session-panel-tools .search-box {
  grid-column: 5 !important;
  grid-row: 1 !important;
  justify-self: stretch !important;
}

.admin-body .session-panel-tools #sessionCustomerFilter {
  grid-column: 3 !important;
  grid-row: 1 !important;
}

.admin-body .session-panel-tools #sessionGroupFilter {
  grid-column: 4 !important;
  grid-row: 1 !important;
}

@media (max-width: 1180px) {
  .admin-body .group-dashboard-strip {
    grid-template-columns: 1fr !important;
  }

  .admin-body .session-panel-tools {
    grid-template-columns: repeat(2, minmax(140px, 1fr)) !important;
  }

  .admin-body .session-panel-tools .search-box {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 760px) {
  .admin-body .daily-stats-toolbar,
  .admin-body .group-dashboard-strip .group-config-card {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "head"
      "note"
      "form"
      "toolbar"
      "qr" !important;
    align-items: stretch !important;
  }

  .admin-body .daily-date-row,
  .admin-body .group-dashboard-strip .group-create-row,
  .admin-body .session-panel-tools {
    grid-template-columns: 1fr !important;
  }

  .admin-body .group-dashboard-strip .compact-card-head,
  .admin-body .group-dashboard-strip .group-create-row,
  .admin-body .group-dashboard-strip .group-toolbar,
  .admin-body .group-dashboard-strip .qr-collapsible {
    grid-area: auto !important;
  }

  .admin-body .group-dashboard-strip .compact-card-head {
    grid-area: head !important;
  }

  .admin-body .group-dashboard-strip .compact-muted {
    grid-area: note !important;
  }

  .admin-body .group-dashboard-strip .group-create-row {
    grid-area: form !important;
  }

  .admin-body .group-dashboard-strip .group-toolbar {
    grid-area: toolbar !important;
  }

  .admin-body .group-dashboard-strip .qr-collapsible {
    grid-area: qr !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    justify-self: stretch !important;
    align-self: auto !important;
  }

  .admin-body .group-dashboard-strip .admin-group-qr {
    width: 100% !important;
    min-height: 260px !important;
    margin: 0 !important;
    padding: 14px !important;
  }

  .admin-body .group-dashboard-strip .admin-group-qr canvas,
  .admin-body .group-dashboard-strip .admin-group-qr img {
    max-width: 146px !important;
    max-height: 146px !important;
  }
}

/* ui83 final QR label layout */
.admin-body .group-dashboard-strip .group-qr-wrap {
  position: relative !important;
  display: grid !important;
  place-items: start center !important;
  width: 214px !important;
  min-height: 238px !important;
  padding: 10px 12px 36px !important;
  box-sizing: border-box !important;
}

.admin-body .group-dashboard-strip .group-qr-wrap canvas {
  display: block !important;
  width: 190px !important;
  height: 190px !important;
  max-width: 190px !important;
  max-height: 190px !important;
}

.admin-body .group-dashboard-strip .group-qr-wrap img {
  display: none !important;
}

.admin-body .group-dashboard-strip .group-qr-wrap .qr-center-label {
  position: absolute !important;
  left: 50% !important;
  top: 105px !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  max-width: 86px !important;
  padding: 5px 9px !important;
  border: 2px solid #fff !important;
  border-radius: 999px !important;
  background: #2563eb !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  text-align: center !important;
  box-shadow: 0 6px 16px rgba(37,99,235,.24) !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.admin-body .group-dashboard-strip .group-qr-wrap .qr-unit-label {
  position: absolute !important;
  left: 12px !important;
  right: 12px !important;
  top: auto !important;
  bottom: 10px !important;
  max-width: none !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #1e293b !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  transform: none !important;
  box-shadow: none !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.admin-body .group-dashboard-strip .group-qr-wrap:has(.qr-poster-canvas) {
  position: relative !important;
  display: block !important;
  width: min(100%, 360px) !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.admin-body .group-dashboard-strip .group-qr-wrap .qr-poster-canvas {
  display: block !important;
  width: 100% !important;
  max-width: 360px !important;
  max-height: none !important;
  height: auto !important;
}

/* ui95 final alignment fixes */
.admin-body .session-meta .authorization-meta {
  align-items: flex-start !important;
}

.admin-body .session-meta .authorization-ip-line {
  display: block !important;
  margin-top: 4px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: #475569 !important;
}

.admin-body .session-table-row .session-auth-ip {
  display: block !important;
  margin-top: 2px !important;
}

.admin-body .group-dashboard-strip .qr-collapsible {
  align-self: center !important;
  justify-self: center !important;
  max-width: 330px !important;
}

.admin-body .group-dashboard-strip .qr-collapsible[open] {
  overflow: visible !important;
}

.admin-body .group-dashboard-strip .admin-group-qr.compact-qr {
  width: min(100%, 318px) !important;
  min-height: 0 !important;
  padding: 10px !important;
  overflow: visible !important;
}

.admin-body .group-dashboard-strip .admin-group-qr.compact-qr .group-qr-wrap:has(.qr-poster-canvas) {
  width: min(100%, 292px) !important;
}

.admin-body .group-dashboard-strip .admin-group-qr.compact-qr .qr-poster-canvas {
  max-width: 292px !important;
}

.remote-page .remote-top-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.remote-page .remote-top-actions button {
  min-width: 78px !important;
  height: 34px !important;
  padding: 0 14px !important;
  border: 1px solid #cfe0f5 !important;
  border-radius: 8px !important;
  background: #f8fbff !important;
  color: #0f2a4a !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 12px rgba(15, 42, 74, .07) !important;
  cursor: pointer !important;
}

.remote-page .remote-top-actions button:hover {
  border-color: #9fc2f4 !important;
  background: #eef6ff !important;
}

.remote-page .remote-top-actions #remoteClose {
  border-color: #fecaca !important;
  background: #fff1f2 !important;
  color: #dc2626 !important;
}

.remote-page .remote-top-actions #remoteClose:hover {
  border-color: #fca5a5 !important;
  background: #fee2e2 !important;
}

.admin-body .privacy-dialog {
  width: min(420px, calc(100vw - 32px)) !important;
  padding: 22px !important;
  border: 0 !important;
  border-radius: 14px !important;
  box-shadow: 0 24px 70px rgba(15, 42, 74, .22) !important;
}

.admin-body .privacy-dialog::backdrop {
  background: rgba(15, 23, 42, .35) !important;
  backdrop-filter: blur(2px) !important;
}

.admin-body .privacy-dialog h3 {
  margin: 0 0 8px !important;
  color: #10233f !important;
  font-size: 18px !important;
}

.admin-body .privacy-dialog .dialog-note {
  margin: 0 0 12px !important;
  color: #475569 !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

.admin-body .privacy-dialog .dialog-input {
  width: 100% !important;
  height: 42px !important;
  margin: 0 !important;
}

.admin-body .privacy-dialog .form-error {
  min-height: 20px !important;
  margin: 8px 0 0 !important;
}

/* ui96 create-unit panel redesign */
.admin-body .group-dashboard-strip {
  display: grid !important;
  grid-template-columns: minmax(360px, 440px) minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 18px !important;
  min-height: 462px !important;
  padding: 18px !important;
  overflow: hidden !important;
}

.admin-body .group-dashboard-strip .customer-list-card,
.admin-body .group-dashboard-strip .group-config-card {
  align-self: start !important;
  margin: 0 !important;
}

.admin-body .group-dashboard-strip .customer-list-card {
  height: 426px !important;
  min-height: 426px !important;
}

.admin-body .group-dashboard-strip .group-config-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 318px !important;
  grid-template-areas:
    "head qr"
    "hint qr"
    "create qr"
    "actions qr" !important;
  align-content: start !important;
  align-items: start !important;
  gap: 12px 22px !important;
  min-height: 426px !important;
  padding: 22px 24px !important;
  border: 1px solid #e4edf8 !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
  box-shadow: 0 12px 34px rgba(15, 42, 74, .06) !important;
}

.admin-body .group-dashboard-strip .group-config-card .compact-card-head {
  grid-area: head !important;
  align-self: start !important;
  padding: 0 !important;
}

.admin-body .group-dashboard-strip .group-config-card .compact-card-head h2 {
  margin: 0 !important;
  font-size: 19px !important;
  line-height: 1.2 !important;
}

.admin-body .group-dashboard-strip .group-config-card > .muted {
  grid-area: hint !important;
  margin: 0 0 4px !important;
  color: #64748b !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
}

.admin-body .group-dashboard-strip .group-create-row {
  grid-area: create !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 10px !important;
  max-width: none !important;
  margin: 0 !important;
}

.admin-body .group-dashboard-strip .group-create-row input,
.admin-body .group-dashboard-strip .group-create-row select,
.admin-body .group-dashboard-strip .group-create-row button {
  width: 100% !important;
  height: 38px !important;
  min-height: 38px !important;
  border-radius: 8px !important;
}

.admin-body .group-dashboard-strip .group-create-row #organizationCode {
  grid-column: 1 !important;
}

.admin-body .group-dashboard-strip .group-create-row #createGroup {
  grid-column: 2 !important;
}

.admin-body .group-dashboard-strip .group-toolbar {
  grid-area: actions !important;
  display: grid !important;
  grid-template-columns: repeat(3, auto) !important;
  align-items: center !important;
  gap: 9px !important;
  margin: 4px 0 0 !important;
  padding: 14px !important;
  border: 1px dashed #d7e3f3 !important;
  border-radius: 12px !important;
  background: #f8fbff !important;
}

.admin-body .group-dashboard-strip .group-toolbar .filter {
  height: 36px !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

.admin-body .group-dashboard-strip .qr-collapsible {
  grid-area: qr !important;
  align-self: start !important;
  justify-self: stretch !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.admin-body .group-dashboard-strip .qr-collapsible summary {
  display: none !important;
}

.admin-body .group-dashboard-strip .admin-group-qr.compact-qr {
  width: 100% !important;
  min-height: 382px !important;
  padding: 16px !important;
  border-radius: 16px !important;
  border-color: #dce8f7 !important;
  background: #f8fbff !important;
}

.admin-body .group-dashboard-strip .admin-group-qr.compact-qr .group-qr-wrap:has(.qr-poster-canvas) {
  width: min(100%, 252px) !important;
}

.admin-body .group-dashboard-strip .admin-group-qr.compact-qr .qr-poster-canvas {
  max-width: 252px !important;
}

@media (max-width: 1180px) {
  .admin-body .group-dashboard-strip {
    grid-template-columns: 1fr !important;
  }

  .admin-body .group-dashboard-strip .customer-list-card {
    height: auto !important;
    min-height: 0 !important;
  }
}

@media (max-width: 900px) {
  .admin-body .group-dashboard-strip .group-config-card {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "head"
      "hint"
      "create"
      "actions"
      "qr" !important;
  }

  .admin-body .group-dashboard-strip .group-create-row,
  .admin-body .group-dashboard-strip .group-toolbar {
    grid-template-columns: 1fr !important;
  }

  .admin-body .group-dashboard-strip .group-create-row #organizationCode,
  .admin-body .group-dashboard-strip .group-create-row #createGroup {
    grid-column: auto !important;
  }
}

/* ui97 signature and dashboard proportion fixes */
.signature-shell.fullscreen {
  grid-template-columns: 92px minmax(0, 1fr) !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  gap: 10px !important;
  padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)) !important;
}

.signature-shell.fullscreen .signature-full-head {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

.signature-shell.fullscreen .signature-pad {
  grid-column: 2 !important;
  grid-row: 2 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
}

.signature-shell.fullscreen .signature-full-actions {
  grid-column: 1 !important;
  grid-row: 1 / 3 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-auto-rows: minmax(86px, auto) !important;
  align-content: center !important;
  gap: 12px !important;
  width: 82px !important;
  padding: 0 !important;
}

.signature-shell.fullscreen .signature-full-actions .button {
  width: 82px !important;
  min-width: 82px !important;
  min-height: 86px !important;
  padding: 8px 6px !important;
  border-radius: 16px !important;
  writing-mode: vertical-rl !important;
  text-orientation: mixed !important;
  letter-spacing: 0 !important;
  line-height: 1.1 !important;
}

.signature-shell.fullscreen .signature-full-actions .button span {
  display: inline-block !important;
  white-space: nowrap !important;
}

@media (orientation: landscape) {
  .signature-shell.fullscreen {
    grid-template-columns: 100px minmax(0, 1fr) !important;
  }

  .signature-shell.fullscreen .signature-full-actions {
    width: 90px !important;
  }

  .signature-shell.fullscreen .signature-full-actions .button {
    width: 90px !important;
    min-width: 90px !important;
  }
}

.admin-body .group-dashboard-strip {
  grid-template-columns: minmax(460px, 520px) minmax(0, 1fr) !important;
  min-height: 410px !important;
  padding: 14px 18px !important;
}

.admin-body .group-dashboard-strip .customer-list-card {
  height: 390px !important;
  min-height: 390px !important;
}

.admin-body .group-dashboard-strip .group-config-card {
  grid-template-columns: minmax(0, 1fr) 280px !important;
  min-height: 390px !important;
  padding: 20px 24px !important;
}

.admin-body .group-dashboard-strip .admin-group-qr.compact-qr {
  min-height: 338px !important;
}

.admin-body .group-dashboard-strip .admin-group-qr.compact-qr .group-qr-wrap:has(.qr-poster-canvas) {
  width: min(100%, 224px) !important;
}

.admin-body .group-dashboard-strip .admin-group-qr.compact-qr .qr-poster-canvas {
  max-width: 224px !important;
}

/* ui98 remote toolbar alignment */
.remote-page .remote-topbar {
  align-items: flex-start !important;
}

.remote-page .remote-topbar > div:first-child {
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

.remote-page #remoteStatus {
  display: block !important;
  max-width: min(1180px, calc(100vw - 470px)) !important;
  margin: 4px 0 0 !important;
  overflow: hidden !important;
  color: #475569 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.remote-page .remote-top-actions {
  flex: 0 0 auto !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
}

.remote-page .remote-top-actions button {
  min-width: 82px !important;
}

.remote-page .remote-top-actions #remoteClose {
  order: 4 !important;
}

/* ui99 session filter search controls */
.admin-body .session-panel-tools {
  grid-template-columns: 150px 150px 180px 240px minmax(360px, 1fr) !important;
}

.admin-body .session-panel-tools #sessionGroupFilter {
  min-width: 220px !important;
}

.admin-body .session-panel-tools .search-box {
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr) 72px !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 8px 0 10px !important;
}

.admin-body .session-panel-tools .search-box input {
  padding: 0 !important;
}

.admin-body .session-panel-tools .search-button {
  height: 30px !important;
  min-width: 64px !important;
  padding: 0 12px !important;
  border: 1px solid #cfe0f5 !important;
  border-radius: 7px !important;
  background: #f8fbff !important;
  color: #0f2a4a !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}

.admin-body .session-panel-tools .search-button:hover {
  border-color: #9fc2f4 !important;
  background: #eef6ff !important;
}

/* ui102 quick precreate card in session console */
.admin-body .group-dashboard-strip {
  grid-template-columns: minmax(340px, 420px) minmax(500px, 1fr) minmax(260px, 320px) !important;
  gap: 14px !important;
}

.admin-body .group-dashboard-strip .quick-precreate-card {
  align-self: start !important;
  display: grid !important;
  grid-template-rows: auto auto minmax(142px, 1fr) !important;
  gap: 12px !important;
  height: 390px !important;
  min-height: 390px !important;
  margin: 0 !important;
  padding: 18px 20px !important;
  border: 1px solid #e4edf8 !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
  box-shadow: 0 12px 34px rgba(15, 42, 74, .06) !important;
}

.admin-body .group-dashboard-strip .quick-precreate-card .compact-card-head {
  display: flex !important;
  min-height: 44px !important;
  align-items: flex-start !important;
  padding: 0 !important;
  text-align: left !important;
}

.admin-body .group-dashboard-strip .quick-precreate-card .eyebrow {
  display: block !important;
  margin: 0 0 4px !important;
}

.admin-body .group-dashboard-strip .quick-precreate-card h2 {
  margin: 0 !important;
  font-size: 17px !important;
  line-height: 1.25 !important;
}

.admin-body .group-dashboard-strip .quick-precreate-card .precreate-tools {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.admin-body .group-dashboard-strip .quick-precreate-card .precreate-tools .button {
  width: 100% !important;
  height: 42px !important;
  min-width: 0 !important;
  padding: 0 10px !important;
  white-space: normal !important;
  line-height: 1.2 !important;
}

.admin-body .group-dashboard-strip .quick-precreate-card .template-drop-zone {
  display: grid !important;
  width: 100% !important;
  min-height: 142px !important;
  margin: 0 !important;
  padding: 16px !important;
  place-items: center !important;
  align-content: center !important;
  gap: 8px !important;
  border: 1px dashed #b8cbe5 !important;
  border-radius: 14px !important;
  background: #f8fbff !important;
  text-align: center !important;
}

.admin-body .group-dashboard-strip .quick-precreate-card .template-drop-zone strong {
  color: #10233f !important;
  font-size: 15px !important;
}

.admin-body .group-dashboard-strip .quick-precreate-card .template-drop-zone span {
  color: #64748b !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

@media (max-width: 1380px) {
  .admin-body .group-dashboard-strip {
    grid-template-columns: minmax(320px, 390px) minmax(0, 1fr) !important;
  }

  .admin-body .group-dashboard-strip .quick-precreate-card {
    grid-column: 1 / -1 !important;
    height: auto !important;
    min-height: 220px !important;
  }

  .admin-body .group-dashboard-strip .quick-precreate-card .precreate-tools {
    grid-template-columns: repeat(2, minmax(160px, 1fr)) !important;
  }
}

/* ui105 quick precreate layout repair */
.admin-body .group-dashboard-strip .quick-precreate-card {
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) !important;
  align-content: start !important;
  gap: 12px !important;
  overflow: hidden !important;
  min-width: 0 !important;
}

.admin-body .group-dashboard-strip .quick-precreate-card .compact-card-head {
  grid-row: 1 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.admin-body .group-dashboard-strip .quick-precreate-card .compact-card-head > div:first-child {
  min-width: 0 !important;
  overflow: hidden !important;
}

.admin-body .group-dashboard-strip .quick-precreate-card .eyebrow,
.admin-body .group-dashboard-strip .quick-precreate-card h2 {
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  letter-spacing: 0 !important;
}

.admin-body .group-dashboard-strip .quick-precreate-card .precreate-tools {
  grid-row: 2 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(118px, 1fr)) !important;
  align-items: stretch !important;
  gap: 10px !important;
  min-width: 0 !important;
}

.admin-body .group-dashboard-strip .quick-precreate-card .precreate-tools .button {
  display: inline-flex !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 42px !important;
  min-height: 42px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 10px !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
}

.admin-body .group-dashboard-strip .quick-precreate-card .template-drop-zone {
  grid-row: 3 !important;
  min-width: 0 !important;
  min-height: 142px !important;
  height: 100% !important;
  overflow: hidden !important;
}

.admin-body .group-dashboard-strip .quick-precreate-card .template-drop-zone strong,
.admin-body .group-dashboard-strip .quick-precreate-card .template-drop-zone span {
  max-width: 100% !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  overflow-wrap: normal !important;
}

@media (max-width: 1380px) {
  .admin-body .group-dashboard-strip .quick-precreate-card {
    grid-template-columns: minmax(170px, .75fr) minmax(240px, 1.25fr) !important;
    grid-template-rows: auto minmax(118px, 1fr) !important;
    align-items: stretch !important;
  }

  .admin-body .group-dashboard-strip .quick-precreate-card .compact-card-head {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .admin-body .group-dashboard-strip .quick-precreate-card .precreate-tools {
    grid-column: 1 !important;
    grid-row: 2 !important;
    grid-template-columns: 1fr !important;
    align-content: start !important;
  }

  .admin-body .group-dashboard-strip .quick-precreate-card .template-drop-zone {
    grid-column: 2 !important;
    grid-row: 1 / 3 !important;
  }
}

@media (max-width: 900px) {
  .admin-body .group-dashboard-strip .quick-precreate-card {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto minmax(132px, 1fr) !important;
  }

  .admin-body .group-dashboard-strip .quick-precreate-card .compact-card-head,
  .admin-body .group-dashboard-strip .quick-precreate-card .precreate-tools,
  .admin-body .group-dashboard-strip .quick-precreate-card .template-drop-zone {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  .admin-body .group-dashboard-strip .quick-precreate-card .precreate-tools {
    grid-template-columns: repeat(2, minmax(118px, 1fr)) !important;
  }
}

/* ui105 customer picker and session table rhythm */
.admin-body .customer-list-select {
  width: 100% !important;
  min-width: 0 !important;
  height: 34px !important;
  margin-top: 10px !important;
  padding: 0 10px !important;
  border: 1px solid #d6e0ee !important;
  border-radius: 8px !important;
  background-color: #fff !important;
  color: #0f2a4a !important;
  font-size: 14px !important;
}

.admin-body .customer-export-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  margin-top: 10px !important;
}

.admin-body .customer-export-row .filter {
  min-height: 34px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

.admin-body .status-tabs {
  align-items: center !important;
  gap: 10px !important;
}

.admin-body .status-tabs .filter {
  min-height: 34px !important;
  padding: 0 15px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

.admin-body .session-panel .session-table-head,
.admin-body .session-panel .session-table-row {
  grid-template-columns: 46px minmax(230px, 1.25fr) 88px 118px 118px 100px minmax(420px, 1.7fr) !important;
  align-items: center !important;
  column-gap: 10px !important;
}

.admin-body .session-panel .session-table-head {
  min-height: 44px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.admin-body .session-panel .session-table-head > span {
  display: flex !important;
  min-height: 44px !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1.2 !important;
}

.admin-body .session-panel .session-table-head > span:nth-child(2),
.admin-body .session-panel .session-table-head > span:nth-child(3) {
  justify-content: flex-start !important;
}

.admin-body .session-panel .session-table-row {
  min-height: 94px !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

.admin-body .session-panel .session-table-row > * {
  align-self: center !important;
}

.admin-body .session-panel .session-user-cell {
  align-items: center !important;
}

.admin-body .session-panel .session-detail-cell {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

/* ui107 quick precreate: keep one stable vertical flow */
.admin-body .group-dashboard-strip .quick-precreate-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto auto minmax(150px, 1fr) !important;
  align-items: stretch !important;
  align-content: start !important;
  gap: 12px !important;
  overflow: hidden !important;
}

.admin-body .group-dashboard-strip .quick-precreate-card .compact-card-head,
.admin-body .group-dashboard-strip .quick-precreate-card .precreate-tools,
.admin-body .group-dashboard-strip .quick-precreate-card .template-drop-zone {
  grid-column: 1 !important;
}

.admin-body .group-dashboard-strip .quick-precreate-card .compact-card-head {
  grid-row: 1 !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

.admin-body .group-dashboard-strip .quick-precreate-card .compact-card-head > div:first-child {
  display: block !important;
  width: 100% !important;
}

.admin-body .group-dashboard-strip .quick-precreate-card .eyebrow,
.admin-body .group-dashboard-strip .quick-precreate-card h2 {
  display: block !important;
  max-width: 100% !important;
  text-align: left !important;
  writing-mode: horizontal-tb !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.admin-body .group-dashboard-strip .quick-precreate-card .precreate-tools {
  grid-row: 2 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
}

.admin-body .group-dashboard-strip .quick-precreate-card .precreate-tools .button {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 42px !important;
  padding: 0 8px !important;
  writing-mode: horizontal-tb !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: 14px !important;
}

.admin-body .group-dashboard-strip .quick-precreate-card .template-drop-zone {
  grid-row: 3 !important;
  width: 100% !important;
  height: auto !important;
  min-height: 150px !important;
  margin: 0 !important;
}

/* ui113 customer card scrolling root fix */
.admin-body .group-dashboard-strip .customer-list-card {
  display: flex !important;
  flex-direction: column !important;
  height: 390px !important;
  min-height: 390px !important;
  max-height: 390px !important;
  overflow: hidden !important;
}

.admin-body .group-dashboard-strip .customer-list-card > .compact-card-head,
.admin-body .group-dashboard-strip .customer-create-row,
.admin-body .group-dashboard-strip .customer-list-select,
.admin-body .group-dashboard-strip .customer-date-row,
.admin-body .group-dashboard-strip .customer-export-row {
  flex: 0 0 auto !important;
}

.admin-body .group-dashboard-strip .customer-list {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin-top: 12px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain !important;
  scrollbar-gutter: stable !important;
}

.admin-body .group-dashboard-strip .customer-item {
  min-width: 0 !important;
}

.admin-body .group-dashboard-strip .customer-units {
  max-height: none !important;
  overflow: visible !important;
}

/* ui115 admin layout root consolidation */
.admin-body {
  overflow-x: hidden !important;
}

.admin-body .admin-main {
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

.admin-body #sessionConsoleView,
.admin-body .console-grid {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

.admin-body .console-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  min-height: 0 !important;
}

.admin-body .panel {
  box-sizing: border-box !important;
}

.admin-body .group-dashboard-strip {
  display: grid !important;
  grid-template-columns: minmax(360px, 440px) minmax(520px, 1fr) minmax(280px, 320px) !important;
  gap: 16px !important;
  align-items: stretch !important;
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 16px !important;
  overflow: visible !important;
}

.admin-body .group-dashboard-strip .customer-list-card,
.admin-body .group-dashboard-strip .group-config-card,
.admin-body .group-dashboard-strip .quick-precreate-card {
  box-sizing: border-box !important;
  min-width: 0 !important;
  margin: 0 !important;
  border: 1px solid #e4edf8 !important;
  border-radius: 16px !important;
  background: #fff !important;
}

.admin-body .group-dashboard-strip .customer-list-card {
  display: flex !important;
  flex-direction: column !important;
  height: 430px !important;
  min-height: 430px !important;
  max-height: 430px !important;
  padding: 14px !important;
  overflow: hidden !important;
}

.admin-body .customer-create-row,
.admin-body .customer-date-row,
.admin-body .customer-export-row {
  display: grid !important;
  gap: 10px !important;
  align-items: center !important;
}

.admin-body .customer-create-row {
  grid-template-columns: minmax(0, 1fr) 96px !important;
}

.admin-body .customer-date-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 56px !important;
}

.admin-body .customer-export-row {
  grid-template-columns: 1fr 1fr !important;
}

.admin-body .customer-list-select {
  flex: 0 0 auto !important;
  width: 100% !important;
}

.admin-body .customer-list {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-right: 6px !important;
}

.admin-body .group-dashboard-strip .group-config-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 260px !important;
  grid-template-areas:
    "head qr"
    "hint qr"
    "create qr"
    "toolbar qr" !important;
  align-content: start !important;
  align-items: start !important;
  gap: 12px 16px !important;
  min-height: 430px !important;
  padding: 16px !important;
  overflow: hidden !important;
}

.admin-body .group-dashboard-strip .group-config-card > .compact-card-head {
  grid-area: head !important;
}

.admin-body .group-dashboard-strip .group-config-card > .compact-muted {
  grid-area: hint !important;
}

.admin-body .group-dashboard-strip .group-create-row {
  grid-area: create !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 10px !important;
}

.admin-body .group-dashboard-strip .group-create-row #customerSelect {
  grid-column: 1 !important;
}

.admin-body .group-dashboard-strip .group-create-row #unitName {
  grid-column: 2 !important;
}

.admin-body .group-dashboard-strip .group-create-row #organizationCode {
  grid-column: 1 !important;
}

.admin-body .group-dashboard-strip .group-create-row #createGroup {
  grid-column: 2 !important;
}

.admin-body .group-dashboard-strip .group-toolbar {
  grid-area: toolbar !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  width: 100% !important;
  overflow: visible !important;
}

.admin-body .group-dashboard-strip .group-filter-row,
.admin-body .group-dashboard-strip .group-action-row {
  display: grid !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
}

.admin-body .group-dashboard-strip .group-filter-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
}

.admin-body .group-dashboard-strip .group-action-row {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.admin-body .group-dashboard-strip .group-toolbar select,
.admin-body .group-dashboard-strip .group-toolbar button,
.admin-body .group-dashboard-strip .group-create-row select,
.admin-body .group-dashboard-strip .group-create-row input,
.admin-body .group-dashboard-strip .group-create-row button {
  width: 100% !important;
  min-width: 0 !important;
  height: 38px !important;
}

.admin-body .group-dashboard-strip .qr-collapsible {
  grid-area: qr !important;
  min-width: 0 !important;
  height: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
}

.admin-body .group-dashboard-strip .admin-group-qr.compact-qr {
  min-height: 0 !important;
  height: calc(100% - 42px) !important;
  overflow: auto !important;
}

.admin-body .group-dashboard-strip .quick-precreate-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto auto minmax(0, 1fr) !important;
  gap: 12px !important;
  height: 430px !important;
  min-height: 430px !important;
  max-height: 430px !important;
  padding: 16px !important;
  overflow: hidden !important;
}

.admin-body .group-dashboard-strip .quick-precreate-card .precreate-tools {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
}

.admin-body .group-dashboard-strip .quick-precreate-card .template-drop-zone {
  min-height: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
}

.admin-body .session-panel {
  display: flex !important;
  flex-direction: column !important;
  min-height: 520px !important;
  max-height: none !important;
  overflow: hidden !important;
  padding: 0 !important;
}

.admin-body .session-panel .panel-heading {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  padding: 18px 20px 14px !important;
  border-bottom: 1px solid #eef2f7 !important;
}

.admin-body .session-panel .panel-heading > div:first-child {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
}

.admin-body .session-panel-tools {
  display: grid !important;
  grid-template-columns: 150px 150px 180px 190px minmax(300px, 430px) !important;
  gap: 10px !important;
  justify-content: start !important;
  align-items: center !important;
  max-width: 1120px !important;
  width: 100% !important;
}

.admin-body .session-panel-tools > * {
  width: 100% !important;
  min-width: 0 !important;
  height: 38px !important;
  margin: 0 !important;
}

.admin-body .session-panel-tools .search-box {
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr) 84px !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 8px !important;
  position: static !important;
  inset: auto !important;
}

.admin-body .session-panel-tools .search-box > span,
.admin-body .session-panel-tools .search-box input,
.admin-body .session-panel-tools .search-box button {
  position: static !important;
  inset: auto !important;
  min-width: 0 !important;
}

.admin-body .status-tabs,
.admin-body .session-bulk-bar {
  flex: 0 0 auto !important;
}

.admin-body .session-list {
  flex: 1 1 auto !important;
  min-height: 300px !important;
  max-height: none !important;
  overflow: auto !important;
}

.admin-body .session-panel .session-table {
  min-width: 0 !important;
  width: 100% !important;
}

.admin-body .session-panel .session-table-head,
.admin-body .session-panel .session-table-row {
  grid-template-columns: 42px minmax(190px, 1.2fr) 92px minmax(90px, .8fr) 96px 88px minmax(260px, 1.4fr) !important;
  column-gap: 10px !important;
}

.admin-body .session-panel .session-row-actions {
  justify-content: flex-end !important;
  gap: 7px !important;
  min-width: 0 !important;
}

.admin-body .session-panel .session-row-actions .table-button,
.admin-body .session-panel .session-row-actions .table-link {
  flex: 0 1 auto !important;
  min-width: 58px !important;
  max-width: 86px !important;
  padding: 0 8px !important;
}

.admin-body .session-panel .session-row-actions small {
  width: 100% !important;
}

@media (max-width: 1500px) {
  .admin-body .group-dashboard-strip {
    grid-template-columns: minmax(340px, 420px) minmax(0, 1fr) !important;
  }

  .admin-body .group-dashboard-strip .quick-precreate-card {
    grid-column: 1 / -1 !important;
    height: 260px !important;
    min-height: 260px !important;
    max-height: 260px !important;
  }
}

@media (max-width: 1360px) {
  .admin-body .group-dashboard-strip .group-config-card {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "head"
      "hint"
      "create"
      "toolbar"
      "qr" !important;
  }

  .admin-body .group-dashboard-strip .qr-collapsible {
    height: auto !important;
  }

  .admin-body .group-dashboard-strip .admin-group-qr.compact-qr {
    height: auto !important;
    max-height: 260px !important;
  }
}

@media (max-width: 1120px) {
  .admin-body .group-dashboard-strip,
  .admin-body .session-panel-tools {
    grid-template-columns: 1fr !important;
  }

  .admin-body .group-dashboard-strip .customer-list-card,
  .admin-body .group-dashboard-strip .group-config-card,
  .admin-body .group-dashboard-strip .quick-precreate-card {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  .admin-body .group-dashboard-strip .customer-list {
    max-height: 360px !important;
  }

  .admin-body .session-panel-tools {
    max-width: none !important;
  }
}

/* ui117 authoritative admin filter layout */
.admin-body .session-panel-tools {
  grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr) minmax(170px, 1.1fr) minmax(180px, 1.1fr) !important;
  grid-auto-rows: 38px !important;
  gap: 10px !important;
}

.admin-body .session-panel-tools #sessionDateFrom {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

.admin-body .session-panel-tools #sessionDateTo {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

.admin-body .session-panel-tools #sessionCustomerFilter {
  grid-column: 3 !important;
  grid-row: 1 !important;
}

.admin-body .session-panel-tools #sessionGroupFilter {
  grid-column: 4 !important;
  grid-row: 1 !important;
}

.admin-body .session-panel-tools .search-box {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  max-width: none !important;
}

@media (min-width: 1501px) {
  .admin-body .session-panel-tools {
    grid-template-columns: 150px 150px 180px 190px minmax(300px, 430px) !important;
  }

  .admin-body .session-panel-tools .search-box {
    grid-column: 5 !important;
    grid-row: 1 !important;
  }
}

@media (max-width: 1120px) {
  .admin-body .session-panel-tools {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }

  .admin-body .session-panel-tools #sessionDateFrom,
  .admin-body .session-panel-tools #sessionCustomerFilter {
    grid-column: 1 !important;
  }

  .admin-body .session-panel-tools #sessionDateTo,
  .admin-body .session-panel-tools #sessionGroupFilter {
    grid-column: 2 !important;
  }

  .admin-body .session-panel-tools #sessionDateFrom,
  .admin-body .session-panel-tools #sessionDateTo {
    grid-row: 1 !important;
  }

  .admin-body .session-panel-tools #sessionCustomerFilter,
  .admin-body .session-panel-tools #sessionGroupFilter {
    grid-row: 2 !important;
  }

  .admin-body .session-panel-tools .search-box {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
  }
}

@media (max-width: 720px) {
  .admin-body .session-panel-tools {
    grid-template-columns: 1fr !important;
  }

  .admin-body .session-panel-tools #sessionDateFrom,
  .admin-body .session-panel-tools #sessionDateTo,
  .admin-body .session-panel-tools #sessionCustomerFilter,
  .admin-body .session-panel-tools #sessionGroupFilter,
  .admin-body .session-panel-tools .search-box {
    grid-column: 1 !important;
  }

  .admin-body .session-panel-tools #sessionDateFrom {
    grid-row: 1 !important;
  }

  .admin-body .session-panel-tools #sessionDateTo {
    grid-row: 2 !important;
  }

  .admin-body .session-panel-tools #sessionCustomerFilter {
    grid-row: 3 !important;
  }

  .admin-body .session-panel-tools #sessionGroupFilter {
    grid-row: 4 !important;
  }

  .admin-body .session-panel-tools .search-box {
    grid-row: 5 !important;
  }
}

/* ui119 final QR/card overflow authority */
.admin-body .group-dashboard-strip .group-config-card {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

.admin-body .group-dashboard-strip .qr-collapsible {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  align-self: start !important;
  justify-self: center !important;
}

.admin-body .group-dashboard-strip .admin-group-qr.compact-qr {
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 238px !important;
  max-height: none !important;
  padding: 12px !important;
  overflow: visible !important;
}

.admin-body .group-dashboard-strip .admin-group-qr.compact-qr .group-qr-wrap {
  width: min(100%, 238px) !important;
  height: auto !important;
  min-height: 238px !important;
  max-height: none !important;
  overflow: visible !important;
}

.admin-body .group-dashboard-strip .admin-group-qr.compact-qr .qr-poster-canvas,
.admin-body .group-dashboard-strip .admin-group-qr.compact-qr canvas,
.admin-body .group-dashboard-strip .admin-group-qr.compact-qr img {
  display: block !important;
  width: min(100%, 214px) !important;
  height: auto !important;
  max-width: 214px !important;
  max-height: none !important;
  object-fit: contain !important;
}

.admin-body .group-dashboard-strip .customer-list-card,
.admin-body .group-dashboard-strip .quick-precreate-card {
  overflow: hidden !important;
}

.admin-body .customer-create-row {
  grid-template-columns: minmax(0, 1fr) 112px !important;
}

.admin-body button,
.admin-body .button,
.admin-body .filter,
.admin-body .toolbar-button,
.admin-body .search-button {
  white-space: nowrap !important;
  word-break: keep-all !important;
}

.admin-body .search-box {
  box-sizing: border-box !important;
}

/* ui122 session table/search authority */
.admin-body .session-panel-tools .search-box {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 84px !important;
  grid-template-areas: "input button" !important;
  gap: 8px !important;
  height: 38px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}

.admin-body .session-panel-tools .search-input-wrap {
  grid-area: input !important;
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 8px !important;
  height: 38px !important;
  min-width: 0 !important;
  padding: 0 12px !important;
  border: 1px solid #cfd8e6 !important;
  border-radius: 7px !important;
  background: #fff !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.admin-body .session-panel-tools .search-input-wrap > span {
  position: static !important;
  position: relative !important;
  grid-column: 1 !important;
  width: 13px !important;
  height: 13px !important;
  border: 1.8px solid #8da1bf !important;
  border-radius: 50% !important;
  justify-self: center !important;
}

.admin-body .session-panel-tools .search-input-wrap > span::after {
  content: "" !important;
  position: absolute !important;
  width: 6px !important;
  height: 1.8px !important;
  background: #8da1bf !important;
  transform: translate(8px, 10px) rotate(45deg) !important;
}

.admin-body .session-panel-tools .search-input-wrap input {
  grid-column: 2 !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 34px !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
}

.admin-body .session-panel-tools .search-button {
  grid-area: button !important;
  width: 84px !important;
  min-width: 84px !important;
  height: 38px !important;
  min-height: 38px !important;
  justify-self: stretch !important;
}

.admin-body .session-panel {
  --session-table-columns: 42px minmax(220px, 1fr) 110px minmax(120px, .7fr) 110px 100px minmax(560px, 1.8fr);
}

.admin-body .session-panel .session-table {
  min-width: 1320px !important;
}

.admin-body .session-panel .session-table-head,
.admin-body .session-panel .session-table-row {
  grid-template-columns: var(--session-table-columns) !important;
  column-gap: 0 !important;
}

.admin-body .session-panel .session-table-head > span,
.admin-body .session-panel .session-table-row > * {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.admin-body .session-panel .session-user-cell {
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr) !important;
  justify-content: start !important;
  text-align: left !important;
}

.admin-body .session-panel .session-row-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  align-content: center !important;
  gap: 7px !important;
}

.admin-body .session-panel .session-row-actions .table-button,
.admin-body .session-panel .session-row-actions .table-link {
  flex: 0 0 auto !important;
  min-width: 58px !important;
  max-width: none !important;
  height: 30px !important;
  padding: 0 10px !important;
}

.admin-body .session-panel .session-row-actions .table-link {
  border: 1px solid #dbe7f5 !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #2563eb !important;
}

.admin-body .session-panel .session-row-actions small {
  flex: 0 0 100% !important;
  order: 99 !important;
  width: 100% !important;
  text-align: center !important;
}

/* ui124 admin security management */
.login-account-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin-bottom: 14px;
}

.login-account-grid input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  box-sizing: border-box;
}

.security-dashboard {
  max-width: 1180px;
  margin: 18px auto;
  padding: 22px;
}

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

.security-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #e4edf8;
  border-radius: 12px;
  background: #fff;
}

.security-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 16px;
}

.security-form {
  display: grid;
  gap: 10px;
}

.admin-account-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 112px;
}

.whitelist-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 96px;
}

.security-form input {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  box-sizing: border-box;
}

.security-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-weight: 800;
}

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

.security-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #edf2f7;
  border-radius: 9px;
  background: #f8fafc;
}

.security-row-meta {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.security-row-meta strong,
.security-row-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.security-row-actions {
  display: flex;
  gap: 8px;
}

@media (max-width: 980px) {
  .security-grid,
  .admin-account-form,
  .whitelist-form {
    grid-template-columns: 1fr;
  }
}

/* ui123 final placement and spacing */
.admin-body .daily-stats-section {
  margin-bottom: 8px !important;
  gap: 10px !important;
}

.admin-body #sessionConsoleView {
  margin-top: 0 !important;
}

.admin-body .console-grid {
  gap: 12px !important;
}

.admin-body .precreate-customer-create {
  display: grid !important;
  grid-template-columns: minmax(260px, 420px) 112px !important;
  gap: 10px !important;
  align-items: center !important;
  margin: 0 0 14px !important;
  max-width: 560px !important;
}

.admin-body .precreate-customer-create input,
.admin-body .precreate-customer-create button {
  width: 100% !important;
  min-width: 0 !important;
  height: 42px !important;
}

@media (max-width: 720px) {
  .admin-body .precreate-customer-create {
    grid-template-columns: 1fr !important;
    max-width: none !important;
  }
}

/* ui124 search input alignment repair */
.admin-body .session-panel-tools .search-box {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 84px !important;
  grid-template-areas: "input button" !important;
  align-items: center !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  gap: 8px !important;
}

.admin-body .session-panel-tools .search-input-wrap {
  grid-area: input !important;
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr) !important;
  align-items: center !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 12px !important;
  line-height: normal !important;
}

.admin-body .session-panel-tools .search-input-wrap > span {
  grid-column: 1 !important;
  align-self: center !important;
  justify-self: center !important;
  margin: 0 !important;
  line-height: 0 !important;
  transform: none !important;
}

.admin-body .session-panel-tools .search-input-wrap > span::after {
  transform: translate(8px, 10px) rotate(45deg) !important;
}

.admin-body .session-panel-tools .search-input-wrap input,
.admin-body .session-panel-tools #sessionSearch {
  grid-column: 2 !important;
  align-self: stretch !important;
  height: 36px !important;
  min-height: 0 !important;
  padding: 0 !important;
  line-height: normal !important;
  border: 0 !important;
  background: transparent !important;
}

.admin-body .session-panel-tools .search-button {
  grid-area: button !important;
  align-self: stretch !important;
}

/* ui124 customer list width and text rhythm */
.admin-body .group-dashboard-strip {
  grid-template-columns: minmax(400px, 500px) minmax(500px, 1fr) minmax(280px, 320px) !important;
}

.admin-body .customer-picker-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 62px !important;
  gap: 8px !important;
  align-items: center !important;
}

.admin-body .customer-picker-row .customer-list-select {
  width: 100% !important;
  min-width: 0 !important;
}

.admin-body .customer-delete-button {
  width: 62px !important;
  height: 38px !important;
  min-height: 38px !important;
  min-width: 0 !important;
  padding: 0 !important;
  border-radius: 8px !important;
  color: var(--danger) !important;
  background: var(--danger-soft) !important;
  border-color: #f1b8b1 !important;
  white-space: nowrap !important;
}

.admin-body .customer-delete-button:disabled {
  color: var(--muted) !important;
  background: #f8fafc !important;
  border-color: var(--line) !important;
  cursor: not-allowed !important;
}

.admin-body .customer-list-create {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 86px !important;
  gap: 8px !important;
  align-items: center !important;
  margin-top: 10px !important;
}

.admin-body .customer-list-create input,
.admin-body .customer-list-create button {
  width: 100% !important;
  min-width: 0 !important;
  height: 38px !important;
}

.admin-body .customer-list-create input {
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  padding: 0 10px !important;
}

.admin-body .precreate-template-panel {
  display: grid !important;
  gap: 10px !important;
  margin: 0 0 14px !important;
}

.admin-body .precreate-template-panel .precreate-tools {
  justify-content: flex-start !important;
}

/* ui124 security form compact repair */
.admin-body .security-form {
  align-items: center !important;
}

.admin-body .admin-account-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 112px !important;
}

.admin-body .whitelist-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 96px !important;
}

.admin-body .security-form input,
.admin-body .security-form .button {
  height: 40px !important;
  min-height: 40px !important;
  align-self: center !important;
}

.admin-body .security-form .button {
  width: 100% !important;
  padding: 0 12px !important;
  white-space: nowrap !important;
}

.admin-body .customer-item header {
  min-width: 0 !important;
}

.admin-body .customer-item header strong {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 14px !important;
  line-height: 1.25 !important;
}

.admin-body .customer-item header span {
  flex: 0 0 auto !important;
  font-size: 11px !important;
}

.admin-body .customer-stats small,
.admin-body .customer-unit-row small {
  font-size: 11px !important;
  white-space: nowrap !important;
}

.admin-body .customer-stats b {
  font-size: 15px !important;
}

.admin-body .customer-unit-row {
  min-width: 0 !important;
  gap: 8px !important;
}

.admin-body .customer-unit-row span {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 13px !important;
}

/* ui124 in-page image preview */
.admin-body .image-preview-dialog {
  width: min(920px, calc(100vw - 48px)) !important;
  max-width: 920px !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.admin-body .image-preview-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 14px 16px !important;
  border-bottom: 1px solid #e5edf7 !important;
}

.admin-body .image-preview-head h3 {
  margin: 0 !important;
}

.admin-body .image-preview-head .icon-button {
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  font-size: 22px !important;
  line-height: 1 !important;
}

.admin-body .image-preview-stage {
  display: grid !important;
  place-items: center !important;
  min-height: 320px !important;
  max-height: min(72vh, 720px) !important;
  padding: 16px !important;
  overflow: auto !important;
  background: #f8fafc !important;
}

.admin-body .image-preview-stage img {
  display: block !important;
  max-width: 100% !important;
  max-height: calc(72vh - 32px) !important;
  object-fit: contain !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .12) !important;
}

/* ui124 session table centered columns */
.admin-body .session-panel .session-table-head > span {
  justify-content: center !important;
  text-align: center !important;
}

.admin-body .session-panel .session-table-head > span:nth-child(2),
.admin-body .session-panel .session-table-head > span:nth-child(3) {
  justify-content: center !important;
}

.admin-body .session-panel .session-table-row > * {
  justify-content: center !important;
  text-align: center !important;
}

.admin-body .session-panel .session-user-cell {
  justify-content: center !important;
  text-align: left !important;
}

.admin-body .session-panel .session-detail-cell,
.admin-body .session-panel .session-row-actions {
  justify-content: center !important;
}

.admin-body .session-panel .session-row-actions {
  align-items: center !important;
}

/* ui124 durable session search control */
.admin-body .session-panel-tools .session-search-control {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 84px !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

.admin-body .session-panel-tools .session-search-input-wrap {
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 38px !important;
  padding: 0 12px !important;
  border: 1px solid #cfd8e6 !important;
  border-radius: 7px !important;
  background: #fff !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.admin-body .session-panel-tools .session-search-input-wrap > span {
  position: relative !important;
  grid-column: 1 !important;
  align-self: center !important;
  justify-self: center !important;
  width: 13px !important;
  height: 13px !important;
  margin: 0 !important;
  border: 1.8px solid #8da1bf !important;
  border-radius: 50% !important;
  font-size: 0 !important;
  line-height: 0 !important;
  box-sizing: border-box !important;
}

.admin-body .session-panel-tools .session-search-input-wrap > span::after {
  content: "" !important;
  position: absolute !important;
  width: 6px !important;
  height: 1.8px !important;
  background: #8da1bf !important;
  transform: translate(8px, 10px) rotate(45deg) !important;
}

.admin-body .session-panel-tools .session-search-input-wrap #sessionSearch {
  grid-column: 2 !important;
  grid-row: 1 !important;
  grid-area: auto !important;
  align-self: stretch !important;
  justify-self: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 36px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: #111827 !important;
  font-size: 14px !important;
  line-height: normal !important;
  box-sizing: border-box !important;
}

.admin-body .session-panel-tools .session-search-control .search-button {
  grid-column: 2 !important;
  grid-row: 1 !important;
  grid-area: auto !important;
  align-self: stretch !important;
  justify-self: stretch !important;
  width: 84px !important;
  min-width: 84px !important;
  height: 38px !important;
  min-height: 38px !important;
  margin: 0 !important;
}

@media (min-width: 1501px) {
  .admin-body .session-panel-tools .session-search-control {
    grid-column: 5 !important;
    grid-row: 1 !important;
  }
}

/* ui124 landscape signature action text */
.signature-shell.fullscreen {
  grid-template-columns: 168px minmax(0, 1fr) !important;
}

.signature-shell.fullscreen .signature-full-actions {
  gap: 12px !important;
  padding: 8px 6px !important;
}

.signature-shell.fullscreen .signature-full-actions .button {
  width: 138px !important;
  min-height: 58px !important;
  height: 58px !important;
  padding: 0 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  white-space: nowrap !important;
}

.signature-shell.fullscreen .signature-full-actions .button span {
  display: inline !important;
  min-width: 0 !important;
  transform: none !important;
  white-space: nowrap !important;
}

@media (max-width: 760px) and (orientation: landscape) {
  .signature-shell.fullscreen {
    grid-template-columns: 148px minmax(0, 1fr) !important;
  }

  .signature-shell.fullscreen .signature-full-actions .button {
    width: 122px !important;
    min-height: 52px !important;
    height: 52px !important;
    font-size: 14px !important;
  }
}

/* ui124 consent archive management */
.consent-archive-dashboard {
  max-width: 1280px;
  margin: 18px auto;
  padding: 22px;
}

.consent-archive-filters {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) minmax(140px, 1fr) 150px 150px 120px;
  gap: 10px;
  align-items: center;
  margin: 16px 0 12px;
}

.consent-archive-filters input,
.consent-archive-filters select {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  box-sizing: border-box;
}

.consent-archive-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.consent-archive-actions label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #334155;
  font-weight: 800;
}

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

.consent-archive-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e4edf8;
  border-radius: 10px;
  background: #fff;
}

.consent-archive-meta {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr 1fr 1fr;
  gap: 8px;
  min-width: 0;
  align-items: center;
}

.consent-archive-meta strong,
.consent-archive-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.consent-archive-meta strong {
  color: #0f172a;
  font-size: 14px;
}

.consent-archive-meta span {
  color: #475569;
  font-size: 12px;
}

.consent-archive-row-actions {
  display: flex;
  gap: 8px;
}

@media (max-width: 1180px) {
  .consent-archive-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

/* ui125 widen session unit filter */
@media (min-width: 1501px) {
  .admin-body .session-panel-tools {
    grid-template-columns: 150px 150px 180px 260px minmax(260px, 1fr) !important;
  }

  .admin-body .session-panel-tools #sessionGroupFilter {
    min-width: 260px !important;
  }
}

/* final unit QR toolbar width */
.admin-body .group-dashboard-strip .group-config-card {
  grid-template-columns: minmax(300px, 1fr) 260px !important;
  grid-template-areas:
    "head qr"
    "hint qr"
    "create qr"
    "toolbar qr" !important;
}

.admin-body .group-dashboard-strip .group-toolbar {
  grid-area: toolbar !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  width: 100% !important;
  min-width: 0 !important;
}

.admin-body .group-dashboard-strip .group-filter-row {
  display: grid !important;
  grid-template-columns: minmax(96px, .75fr) minmax(0, 1.55fr) !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
}

.admin-body .group-dashboard-strip .group-action-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
}

.admin-body .group-dashboard-strip #groupCustomerFilter,
.admin-body .group-dashboard-strip #groupFilter,
.admin-body .group-dashboard-strip #copyPortal,
.admin-body .group-dashboard-strip #deleteGroup,
.admin-body .group-dashboard-strip .group-action-row .filter {
  grid-column: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}

@media (max-width: 760px) {
  .admin-body .group-dashboard-strip .group-filter-row,
  .admin-body .group-dashboard-strip .group-action-row {
    grid-template-columns: 1fr !important;
  }
}
/* ui125 unified sidebar icons */
.admin-body .side-nav .nav-item,
.admin-body .sidebar-footer .nav-item {
  gap: 12px !important;
}

.admin-body .nav-item .nav-icon {
  display: inline-grid !important;
  place-items: center !important;
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  border-radius: 8px !important;
  color: #93c5fd !important;
  background: rgba(147, 197, 253, .12) !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-align: center !important;
}

.admin-body .nav-item .nav-icon svg {
  display: block !important;
  width: 17px !important;
  height: 17px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.9 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.admin-body .nav-item:hover .nav-icon,
.admin-body .nav-item.active .nav-icon {
  color: #ffffff !important;
  background: rgba(255, 255, 255, .16) !important;
}

@media (max-width: 980px) {
  .admin-body .nav-item .nav-icon {
    margin: 0 auto !important;
  }
}

/* ui125 query time and signature landscape actions */
.comprehensive-query-elapsed {
  display: inline-block;
  margin-left: 12px;
  color: #64748b;
}

.signature-shell.fullscreen .signature-full-actions {
  grid-column: 1 !important;
  grid-row: 1 / 3 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  align-content: center !important;
  justify-items: center !important;
  gap: 14px !important;
  min-width: 96px !important;
}

.signature-shell.fullscreen .signature-full-actions .button {
  width: 72px !important;
  min-width: 72px !important;
  max-width: 72px !important;
  height: 134px !important;
  min-height: 134px !important;
  padding: 12px 8px !important;
  display: grid !important;
  place-items: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

.signature-shell.fullscreen .signature-full-actions .button span {
  display: inline-block !important;
  transform: rotate(90deg) !important;
  transform-origin: center !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

.admin-body .session-duration-cell {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  color: #0f172a !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  white-space: normal !important;
}

.baidu-ocr-form,
.comprehensive-proxy-form {
  grid-template-columns: 1fr !important;
}

.baidu-ocr-form .select-control,
.baidu-ocr-form .button,
.comprehensive-proxy-form .button {
  width: 100% !important;
}

.signature-shell.fullscreen .signature-full-error {
  grid-column: 2 !important;
  grid-row: 2 !important;
  align-self: start !important;
  justify-self: center !important;
  z-index: 20 !important;
  max-width: min(92%, 560px) !important;
  margin-top: 14px !important;
  padding: 10px 14px !important;
  border: 1px solid #fecaca !important;
  border-radius: 12px !important;
  color: #991b1b !important;
  background: #fff1f2 !important;
  box-shadow: 0 12px 30px rgba(153, 27, 27, .14) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.45 !important;
  text-align: center !important;
  pointer-events: none !important;
}

.signature-shell.fullscreen .signature-full-error[hidden] {
  display: none !important;
}

.signature-full-error.shake {
  animation: signature-error-pulse .9s ease-in-out;
}

@keyframes signature-error-pulse {
  0%, 100% { box-shadow: 0 12px 30px rgba(153, 27, 27, .14); }
  45% { box-shadow: 0 0 0 6px rgba(220, 38, 38, .16), 0 16px 34px rgba(153, 27, 27, .18); }
}

.mobile-auth-body .toast {
  z-index: 5000 !important;
}

@media (max-width: 760px) {
  .comprehensive-query-elapsed {
    display: block;
    margin: 4px 0 0;
  }
}

/* ui125 maximize fullscreen signature writing area */
.signature-shell.fullscreen {
  grid-template-columns: clamp(68px, 17vw, 92px) minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) !important;
  gap: clamp(8px, 2vw, 14px) !important;
  padding:
    max(8px, env(safe-area-inset-top))
    max(8px, env(safe-area-inset-right))
    max(8px, env(safe-area-inset-bottom))
    max(8px, env(safe-area-inset-left)) !important;
}

.signature-shell.fullscreen .signature-full-head {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: start !important;
  justify-self: center !important;
  z-index: 12 !important;
  width: min(92%, 520px) !important;
  max-width: 520px !important;
  margin: 4px 0 0 !important;
  padding: 8px 12px !important;
  gap: 3px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: 0 8px 24px rgba(15, 35, 66, .08) !important;
}

.signature-shell.fullscreen .signature-full-head strong {
  font-size: clamp(16px, 4.4vw, 22px) !important;
  line-height: 1.2 !important;
}

.signature-shell.fullscreen .signature-full-head span {
  font-size: clamp(11px, 3.1vw, 14px) !important;
  line-height: 1.35 !important;
}

.signature-shell.fullscreen .signature-pad {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: stretch !important;
  justify-self: stretch !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: clamp(14px, 4vw, 22px) !important;
}

.signature-shell.fullscreen .signature-full-actions {
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-content: center !important;
  gap: clamp(9px, 2.8vh, 16px) !important;
  min-width: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.signature-shell.fullscreen .signature-full-actions .button {
  width: clamp(56px, 13.5vw, 72px) !important;
  min-width: 0 !important;
  max-width: 72px !important;
  height: clamp(108px, 24vh, 134px) !important;
  min-height: 0 !important;
  padding: 10px 6px !important;
  border-radius: 16px !important;
  font-size: clamp(14px, 3.8vw, 16px) !important;
}

.signature-shell.fullscreen .signature-full-error {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: center !important;
  justify-self: center !important;
  width: min(72vh, 460px) !important;
  max-width: min(72vh, 460px) !important;
  margin: 0 !important;
  transform: rotate(90deg) !important;
  transform-origin: center !important;
  pointer-events: none !important;
  transition: none !important;
}

body.signing-lock .toast,
.mobile-auth-body.signing-lock .toast {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

@media (max-width: 420px) {
  .signature-shell.fullscreen {
    grid-template-columns: 60px minmax(0, 1fr) !important;
    gap: 7px !important;
  }

  .signature-shell.fullscreen .signature-full-actions .button {
    width: 54px !important;
    height: clamp(102px, 22vh, 124px) !important;
  }

  .signature-shell.fullscreen .signature-full-head {
    width: min(94%, 480px) !important;
    padding: 7px 10px !important;
  }
}




/* ui126 admin semi redesign - clean office layer */
.admin-body {
  --ui-bg: #f4f7fb;
  --ui-panel: #ffffff;
  --ui-panel-soft: #f8fbff;
  --ui-line: #dbe5f1;
  --ui-line-strong: #c8d6e8;
  --ui-text: #142033;
  --ui-muted: #66758a;
  --ui-primary: #2563eb;
  --ui-primary-dark: #1d4ed8;
  --ui-primary-soft: #eaf2ff;
  --ui-danger: #dc2626;
  --ui-danger-soft: #fff1f2;
  background: var(--ui-bg) !important;
  color: var(--ui-text) !important;
}

.admin-body .admin-main {
  background:
    linear-gradient(180deg, rgba(255,255,255,.78), rgba(244,247,251,0) 220px),
    var(--ui-bg) !important;
}

.admin-body .panel,
.admin-body .redesign-card,
.admin-body .security-card,
.admin-body .consent-filter-card,
.admin-body .consent-result-card {
  border: 1px solid var(--ui-line) !important;
  border-radius: 10px !important;
  background: var(--ui-panel) !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .055) !important;
}

.admin-body .admin-redesign-surface {
  display: grid !important;
  gap: 16px !important;
  max-width: 1440px !important;
  margin: 18px auto !important;
  padding: 22px !important;
}

.admin-body .redesign-page-head,
.admin-body .precreate-head.redesign-page-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 18px !important;
  padding: 0 0 16px !important;
  margin: 0 !important;
  border-bottom: 1px solid #e8eef7 !important;
}

.admin-body .redesign-page-head h2 {
  margin: 2px 0 4px !important;
  color: #101827 !important;
  font-size: 24px !important;
  line-height: 1.25 !important;
}

.admin-body .redesign-page-head .muted {
  max-width: 760px !important;
  color: var(--ui-muted) !important;
  line-height: 1.6 !important;
}

.admin-body .redesign-card {
  display: grid !important;
  gap: 14px !important;
  padding: 18px !important;
}

.admin-body .redesign-card-head,
.admin-body .compact-card-head.redesign-card-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 14px !important;
  margin: 0 !important;
}

.admin-body .redesign-card-head h3 {
  margin: 2px 0 0 !important;
  color: #142033 !important;
  font-size: 17px !important;
  line-height: 1.25 !important;
}

.admin-body .card-kicker {
  display: block !important;
  margin-bottom: 2px !important;
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
}

.admin-body button,
.admin-body .button,
.admin-body .filter,
.admin-body .toolbar-button,
.admin-body .table-button,
.admin-body .search-button {
  min-height: 38px !important;
  border-radius: 8px !important;
  font-weight: 800 !important;
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease !important;
}

.admin-body .button.primary,
.admin-body .toolbar-button.primary,
.admin-body .primary-action,
.admin-body .remote-entry-button {
  border-color: var(--ui-primary) !important;
  color: #fff !important;
  background: var(--ui-primary) !important;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .18) !important;
}

.admin-body .button.primary:hover,
.admin-body .toolbar-button.primary:hover,
.admin-body .primary-action:hover,
.admin-body .remote-entry-button:hover {
  background: var(--ui-primary-dark) !important;
}

.admin-body .button.secondary,
.admin-body .filter,
.admin-body .toolbar-button,
.admin-body .table-button,
.admin-body .search-button {
  border: 1px solid #d8e3f0 !important;
  color: #33516f !important;
  background: #f8fafc !important;
}

.admin-body .button.secondary:hover,
.admin-body .filter:hover,
.admin-body .toolbar-button:hover,
.admin-body .table-button:hover,
.admin-body .search-button:hover {
  border-color: #b9cbe2 !important;
  color: #1d4ed8 !important;
  background: #eef5ff !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .08) !important;
}

.admin-body .danger,
.admin-body .danger-text,
.admin-body .toolbar-button.danger,
.admin-body .customer-delete-button {
  border-color: #fecaca !important;
  color: var(--ui-danger) !important;
  background: var(--ui-danger-soft) !important;
}

.admin-body .solid-danger,
.admin-body .toolbar-button.solid-danger {
  border-color: var(--ui-danger) !important;
  color: #fff !important;
  background: var(--ui-danger) !important;
}

.admin-body input,
.admin-body select,
.admin-body .select-control,
.admin-body .date-control,
.admin-body .toolbar-select {
  border: 1px solid var(--ui-line-strong) !important;
  border-radius: 8px !important;
  background-color: #fff !important;
  color: #142033 !important;
}

.admin-body input:focus,
.admin-body select:focus,
.admin-body .select-control:focus,
.admin-body .date-control:focus,
.admin-body .toolbar-select:focus {
  border-color: var(--ui-primary) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12) !important;
  outline: 0 !important;
}

.admin-body .sidebar {
  background: linear-gradient(180deg, #102033, #15283e) !important;
  border-right: 1px solid rgba(255,255,255,.08) !important;
}

.admin-body .nav-item {
  border-radius: 9px !important;
}

.admin-body .side-nav .nav-item:hover,
.admin-body .side-nav .nav-item.active,
.admin-body .sidebar-footer .nav-item:hover {
  background: rgba(255,255,255,.12) !important;
}

.admin-body .nav-item .nav-icon {
  border: 1px solid rgba(147, 197, 253, .18) !important;
}

.admin-body .admin-header {
  border: 1px solid #e5edf7 !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.82) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .05) !important;
}

.admin-body .stats-grid,
.admin-body .ops-dashboard {
  gap: 12px !important;
}

.admin-body .stat-card,
.admin-body .ops-metric,
.admin-body .ops-metrics span {
  border: 1px solid #e5edf7 !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .04) !important;
}

.admin-body .comprehensive-query-dashboard {
  max-width: 1460px !important;
}

.admin-body .comprehensive-layout-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px) !important;
  gap: 16px !important;
  align-items: start !important;
}

.admin-body .comprehensive-main-column {
  display: grid !important;
  gap: 16px !important;
  min-width: 0 !important;
}

.admin-body .redesign-upload-row,
.admin-body .comprehensive-upload-row.redesign-upload-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 260px) !important;
  gap: 14px !important;
  align-items: stretch !important;
}

.admin-body .comprehensive-drop-zone {
  min-height: 132px !important;
  border: 1px dashed #9bb8e8 !important;
  border-radius: 10px !important;
  background: #f8fbff !important;
}

.admin-body .comprehensive-drop-zone:hover,
.admin-body .comprehensive-empty-upload:hover {
  border-color: var(--ui-primary) !important;
  background: #f1f7ff !important;
}

.admin-body .comprehensive-query-options {
  display: grid !important;
  gap: 10px !important;
  align-content: start !important;
  padding: 12px !important;
  border: 1px solid #e7eef8 !important;
  border-radius: 10px !important;
  background: #fbfdff !important;
}

.admin-body .comprehensive-query-options label:first-child {
  display: grid !important;
  gap: 7px !important;
  color: #52637a !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.admin-body .comprehensive-switch {
  min-height: 40px !important;
  padding: 0 12px !important;
  border: 1px solid #dbeafe !important;
  border-radius: 9px !important;
  background: var(--ui-primary-soft) !important;
}

.admin-body .redesign-progress-card,
.admin-body .comprehensive-progress {
  padding: 13px !important;
  border: 1px solid #e7eef8 !important;
  border-radius: 10px !important;
  background: #fbfdff !important;
}

.admin-body .comprehensive-progress > div {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.admin-body .comprehensive-progress progress {
  height: 9px !important;
  overflow: hidden !important;
  border-radius: 999px !important;
}

.admin-body .comprehensive-result-card {
  overflow: hidden !important;
}

.admin-body .comprehensive-result-table {
  width: 100% !important;
  overflow-x: auto !important;
}

.admin-body .comprehensive-result-head,
.admin-body .comprehensive-result-row {
  min-width: 980px !important;
  border-radius: 0 !important;
}

.admin-body .comprehensive-result-head.with-into-gd,
.admin-body .comprehensive-result-row.with-into-gd {
  grid-template-columns: 58px 92px 156px minmax(180px, 1.35fr) minmax(150px, 1fr) 82px 82px 88px !important;
}

.admin-body .comprehensive-result-head {
  color: #52637a !important;
  background: #f7f9fc !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.admin-body .comprehensive-result-row {
  min-height: 44px !important;
  border-bottom: 1px solid #edf2f7 !important;
  background: #fff !important;
}

.admin-body .comprehensive-result-row:nth-child(odd) {
  background: #fbfdff !important;
}

.admin-body .comprehensive-history-card {
  position: sticky !important;
  top: 18px !important;
}

.admin-body .comprehensive-history-summary {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.admin-body .comprehensive-history-summary div {
  padding: 12px !important;
  border: 1px solid #e7eef8 !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
}

.admin-body .comprehensive-history-summary span {
  display: block !important;
  margin-bottom: 3px !important;
  color: var(--ui-muted) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.admin-body .comprehensive-history-summary strong {
  color: #142033 !important;
  font-size: 22px !important;
}

.admin-body .comprehensive-history-item {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 12px !important;
  border: 1px solid #e7eef8 !important;
  border-radius: 10px !important;
  background: #fff !important;
}

.admin-body .comprehensive-history-item strong,
.admin-body .comprehensive-history-item span {
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.admin-body .comprehensive-history-item span {
  margin-top: 4px !important;
  color: var(--ui-muted) !important;
  font-size: 12px !important;
}

.admin-body .comprehensive-history-actions {
  display: flex !important;
  gap: 8px !important;
}

.admin-body .security-dashboard {
  max-width: 1360px !important;
}

.admin-body .redesign-security-grid,
.admin-body .security-grid.redesign-security-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

.admin-body .redesign-inline-form {
  gap: 10px !important;
}

.admin-body .admin-account-form.redesign-inline-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 120px !important;
}

.admin-body .whitelist-form.redesign-inline-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 104px !important;
}

.admin-body .redesign-stack-form {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
}

.admin-body .redesign-button-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.admin-body .security-row {
  min-height: 54px !important;
  border-color: #e7eef8 !important;
  border-radius: 10px !important;
  background: #fbfdff !important;
}

.admin-body .security-row-actions .filter {
  min-width: 58px !important;
  padding: 0 12px !important;
}

.admin-body .consent-archive-dashboard {
  max-width: 1380px !important;
}

.admin-body .consent-archive-dashboard.admin-redesign-surface {
  gap: 16px !important;
}

.admin-body .consent-archive-filters {
  grid-template-columns: minmax(160px, 1fr) minmax(190px, 1.25fr) minmax(150px, .9fr) 150px 150px 124px !important;
  gap: 10px !important;
  margin: 0 !important;
}

.admin-body .consent-archive-actions {
  padding: 0 0 12px !important;
  margin: 0 !important;
  border-bottom: 1px solid #e8eef7 !important;
}

.admin-body .consent-archive-row {
  border-color: #e7eef8 !important;
  border-radius: 10px !important;
  background: #fff !important;
}

.admin-body .consent-archive-meta {
  grid-template-columns: 1fr 1fr 1.15fr 1.4fr 1.25fr 1fr !important;
}

/* Keep session list structure stable; only polish spacing, states, and button rhythm. */
.admin-body .session-panel {
  border-radius: 10px !important;
}

.admin-body .session-panel .panel-heading {
  gap: 14px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid #e8eef7 !important;
}

.admin-body .session-panel-tools {
  gap: 10px !important;
}

.admin-body .status-tabs,
.admin-body .session-bulk-bar {
  gap: 8px !important;
  padding: 10px !important;
  border: 1px solid #e7eef8 !important;
  border-radius: 10px !important;
  background: #fbfdff !important;
}

.admin-body .status-tabs .filter.active {
  border-color: var(--ui-primary) !important;
  color: #fff !important;
  background: var(--ui-primary) !important;
}

.admin-body .session-table {
  border: 1px solid #e1eaf5 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  background: #fff !important;
}

.admin-body .session-table-head {
  min-height: 42px !important;
  color: #52637a !important;
  background: #f7f9fc !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.admin-body .session-table-row {
  min-height: 78px !important;
  border-bottom: 1px solid #edf2f7 !important;
  background: #fff !important;
}

.admin-body .session-table-row:nth-child(odd) {
  background: #fbfdff !important;
}

.admin-body .session-table-row.active {
  background: #eef5ff !important;
  box-shadow: inset 3px 0 0 var(--ui-primary) !important;
}

.admin-body .session-row-actions {
  gap: 6px !important;
}

.admin-body .session-row-actions .table-button,
.admin-body .session-row-actions .table-link {
  min-height: 32px !important;
  padding: 0 9px !important;
  border-radius: 7px !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}

.admin-body .workspace,
.admin-body .group-dashboard-strip .customer-list-card,
.admin-body .group-dashboard-strip .group-config-card,
.admin-body .group-dashboard-strip .quick-precreate-card {
  border-color: var(--ui-line) !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05) !important;
}

@media (max-width: 1220px) {
  .admin-body .comprehensive-layout-grid,
  .admin-body .redesign-security-grid,
  .admin-body .security-grid.redesign-security-grid {
    grid-template-columns: 1fr !important;
  }

  .admin-body .comprehensive-history-card {
    position: static !important;
  }

  .admin-body .consent-archive-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 820px) {
  .admin-body .admin-redesign-surface {
    margin: 12px auto !important;
    padding: 14px !important;
  }

  .admin-body .redesign-page-head,
  .admin-body .precreate-head.redesign-page-head,
  .admin-body .redesign-card-head {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .admin-body .redesign-upload-row,
  .admin-body .comprehensive-upload-row.redesign-upload-row,
  .admin-body .admin-account-form.redesign-inline-form,
  .admin-body .whitelist-form.redesign-inline-form,
  .admin-body .consent-archive-filters,
  .admin-body .redesign-button-row {
    grid-template-columns: 1fr !important;
  }

  .admin-body .redesign-download-actions,
  .admin-body .comprehensive-download-actions {
    width: 100% !important;
  }
}

@media (max-width: 1420px) {
  .admin-body .comprehensive-layout-grid {
    grid-template-columns: 1fr !important;
  }

  .admin-body .comprehensive-history-card {
    position: static !important;
  }
}

/* ui127 mobile admin read-only dashboard */
.mobile-admin-dashboard {
  display: none;
}

@media (max-width: 860px) {
  html:has(.admin-body),
  body.admin-body {
    width: 100%;
    min-width: 0 !important;
    overflow-x: hidden !important;
    background: #f4f7fb !important;
  }

  .admin-body {
    display: block !important;
    min-height: 100vh !important;
  }

  .admin-body .sidebar,
  .admin-body .admin-header,
  .admin-body #sessionManagementView,
  .admin-body #sessionConsoleView,
  .admin-body #precreateManagementView,
  .admin-body #securityManagementView,
  .admin-body #comprehensiveQueryView,
  .admin-body #consentManagementView,
  .admin-body .daily-stats-section,
  .admin-body .ops-dashboard,
  .admin-body .console-grid,
  .admin-body .group-dashboard-strip,
  .admin-body .session-panel,
  .admin-body .workspace {
    display: none !important;
  }

  .admin-body .admin-main {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 100vh !important;
    padding: 0 0 82px !important;
    margin: 0 !important;
    background: #f4f7fb !important;
  }

  .mobile-admin-dashboard {
    display: grid;
    gap: 14px;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    padding: max(14px, env(safe-area-inset-top)) 14px max(92px, env(safe-area-inset-bottom));
  }

  .mobile-admin-dashboard[hidden] {
    display: none !important;
  }

  .mobile-admin-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border: 1px solid #dbe5f1;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
  }

  .mobile-admin-top h1 {
    margin: 2px 0 4px;
    color: #142033;
    font-size: 22px;
    line-height: 1.2;
  }

  .mobile-admin-top .muted {
    max-width: 260px;
    color: #66758a;
    font-size: 13px;
    line-height: 1.55;
  }

  .mobile-admin-tabs {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-width: 620px;
    margin: 0 auto;
    padding: 8px;
    border: 1px solid #dbe5f1;
    border-radius: 16px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 16px 38px rgba(15, 23, 42, .16);
    backdrop-filter: blur(10px);
  }

  .mobile-admin-tabs button {
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 8px !important;
    border: 0 !important;
    border-radius: 12px !important;
    color: #52637a !important;
    background: transparent !important;
    font-size: 14px !important;
    font-weight: 900 !important;
  }

  .mobile-admin-tabs button.active {
    color: #fff !important;
    background: #2563eb !important;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .22) !important;
  }

  .mobile-admin-panel {
    display: none;
    gap: 12px;
    padding: 16px;
    border: 1px solid #dbe5f1;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .055);
  }

  .mobile-admin-panel.active {
    display: grid;
  }

  .mobile-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }

  .mobile-panel-head h2 {
    margin: 0 0 4px;
    color: #142033;
    font-size: 19px;
    line-height: 1.25;
  }

  .mobile-panel-head .muted {
    color: #66758a;
    font-size: 13px;
    line-height: 1.45;
  }

  .mobile-panel-head .filter {
    flex: 0 0 auto;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 12px !important;
  }

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

  .mobile-date-row input {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #c8d6e8;
    border-radius: 10px;
    background: #fff;
    color: #142033;
    box-sizing: border-box;
  }

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

  .mobile-stats-grid article,
  .mobile-summary-strip,
  .mobile-customer-card,
  .mobile-history-card {
    border: 1px solid #e2eaf5;
    border-radius: 12px;
    background: #f8fbff;
  }

  .mobile-stats-grid article {
    min-height: 92px;
    padding: 13px;
  }

  .mobile-stats-grid article.wide {
    grid-column: 1 / -1;
  }

  .mobile-stats-grid span {
    display: block;
    margin-bottom: 8px;
    color: #66758a;
    font-size: 13px;
    font-weight: 800;
  }

  .mobile-stats-grid strong {
    color: #142033;
    font-size: 30px;
    line-height: 1;
  }

  .mobile-summary-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    color: #52637a;
    font-size: 12px;
    font-weight: 900;
  }

  .mobile-summary-strip span {
    padding: 6px 9px;
    border-radius: 999px;
    background: #fff;
  }

  .mobile-customer-list,
  .mobile-history-list {
    display: grid;
    gap: 10px;
  }

  .mobile-customer-card,
  .mobile-history-card {
    display: grid;
    gap: 12px;
    padding: 13px;
  }

  .mobile-customer-head,
  .mobile-history-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
  }

  .mobile-customer-head strong,
  .mobile-history-head strong {
    display: block;
    color: #142033;
    font-size: 15px;
    line-height: 1.35;
    word-break: break-word;
  }

  .mobile-customer-head span,
  .mobile-history-head span {
    display: block;
    margin-top: 3px;
    color: #66758a;
    font-size: 12px;
  }

  .mobile-customer-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .mobile-customer-stats span {
    padding: 10px 8px;
    border-radius: 10px;
    background: #fff;
    text-align: center;
  }

  .mobile-customer-stats small {
    display: block;
    color: #66758a;
    font-size: 11px;
    font-weight: 800;
  }

  .mobile-customer-stats b {
    display: block;
    margin-top: 5px;
    color: #142033;
    font-size: 20px;
  }

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

  .mobile-unit-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 10px;
    border-radius: 10px;
    background: #fff;
  }

  .mobile-unit-row strong {
    color: #142033;
    font-size: 13px;
    line-height: 1.4;
    white-space: normal;
    word-break: break-word;
  }

  .mobile-unit-row span {
    display: inline-flex;
    margin-right: 8px;
    color: #66758a;
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-history-time {
    flex: 0 0 auto;
    padding: 7px 9px;
    border-radius: 999px;
    color: #1d4ed8 !important;
    background: #eaf2ff;
    font-weight: 900;
  }

  .mobile-history-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .mobile-history-meta span {
    padding: 6px 9px;
    border-radius: 999px;
    color: #52637a;
    background: #fff;
    font-size: 12px;
    font-weight: 900;
  }

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

  .mobile-history-actions .filter,
  .mobile-customer-head .filter {
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 12px !important;
    white-space: nowrap;
  }
}

/* ui127 final mobile dashboard visibility guard */
@media (max-width: 860px) {
  body.admin-body .sidebar,
  body.admin-body .admin-header,
  body.admin-body #sessionManagementView,
  body.admin-body #sessionConsoleView,
  body.admin-body #precreateManagementView,
  body.admin-body #securityManagementView,
  body.admin-body #comprehensiveQueryView,
  body.admin-body #consentManagementView,
  body.admin-body .daily-stats-section,
  body.admin-body .ops-dashboard,
  body.admin-body .console-grid,
  body.admin-body .group-dashboard-strip,
  body.admin-body .session-panel,
  body.admin-body .workspace,
  body.admin-body .operation-log-panel {
    display: none !important;
    visibility: hidden !important;
  }

  body.admin-body #mobileAdminDashboard.mobile-admin-dashboard {
    display: grid !important;
    visibility: visible !important;
  }
}

/* ui127 hard mobile desktop-layout suppression */
@media (max-width: 860px) {
  html body.admin-body div#sessionManagementView.admin-view,
  html body.admin-body div#sessionConsoleView.admin-view,
  html body.admin-body div#precreateManagementView.admin-view,
  html body.admin-body div#securityManagementView.admin-view,
  html body.admin-body div#comprehensiveQueryView.admin-view,
  html body.admin-body div#consentManagementView.admin-view {
    position: absolute !important;
    left: -9999px !important;
    top: 0 !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }

  html body.admin-body section#mobileAdminDashboard.mobile-admin-dashboard {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
    pointer-events: auto !important;
    visibility: visible !important;
  }
}

/* ui128 session customer sidebar + card list */
body.admin-body #sessionConsoleView .console-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 16px !important;
}

body.admin-body .unit-tools-strip {
  grid-template-columns: minmax(600px, 1fr) minmax(280px, 340px) !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.admin-body .unit-tools-strip .group-config-card,
body.admin-body .unit-tools-strip .quick-precreate-card {
  min-height: 0 !important;
}

body.admin-body .session-workbench-grid {
  display: grid !important;
  grid-template-columns: minmax(290px, 340px) minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: start !important;
  min-width: 0 !important;
}

body.admin-body .session-customer-sidebar {
  position: sticky !important;
  top: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  height: calc(100vh - 120px) !important;
  min-height: 560px !important;
  max-height: 860px !important;
  padding: 16px !important;
  overflow: hidden !important;
}

body.admin-body .session-customer-sidebar .customer-list {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

body.admin-body .session-customer-sidebar .customer-item {
  border-radius: 10px !important;
}

body.admin-body .session-customer-sidebar .customer-unit-row {
  align-items: flex-start !important;
}

body.admin-body .session-customer-sidebar .customer-unit-row span {
  white-space: normal !important;
  word-break: break-word !important;
}

body.admin-body .session-panel {
  min-width: 0 !important;
  border-radius: 12px !important;
  overflow-x: hidden !important;
}

body.admin-body .session-panel .panel-heading {
  padding: 18px 20px 12px !important;
}

body.admin-body .session-panel-tools {
  max-width: none !important;
}

body.admin-body .session-panel .panel-heading,
body.admin-body .session-panel-tools,
body.admin-body .status-tabs,
body.admin-body .session-bulk-bar {
  min-width: 0 !important;
}

body.admin-body .session-panel-tools {
  grid-template-columns: repeat(2, minmax(130px, 1fr)) !important;
  grid-auto-rows: 38px !important;
}

body.admin-body .session-panel-tools .session-search-control {
  grid-column: 1 / -1 !important;
  min-width: 0 !important;
}

body.admin-body .status-tabs,
body.admin-body .session-bulk-bar {
  flex-wrap: wrap !important;
  overflow-x: hidden !important;
}

body.admin-body .session-bulk-bar .bulk-spacer {
  flex-basis: 100% !important;
  height: 0 !important;
}

body.admin-body .session-list {
  display: block !important;
  min-height: 420px !important;
  max-height: calc(100vh - 360px) !important;
  padding: 12px !important;
  background: #f7faff !important;
  overflow-x: hidden !important;
}

body.admin-body .session-card-list {
  display: grid !important;
  gap: 12px !important;
  min-width: 0 !important;
}

body.admin-body .session-card-row {
  display: grid !important;
  grid-template-columns: 34px minmax(230px, 1.2fr) minmax(230px, 1.1fr) minmax(210px, .9fr) minmax(280px, auto) !important;
  gap: 14px !important;
  align-items: center !important;
  min-width: 0 !important;
  padding: 14px 16px !important;
  border: 1px solid #dce9f8 !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .04) !important;
  cursor: pointer !important;
}

body.admin-body .session-card-row:hover {
  border-color: #bdd5f5 !important;
  box-shadow: 0 10px 26px rgba(37, 99, 235, .08) !important;
}

body.admin-body .session-card-row.active {
  border-color: #8db7f5 !important;
  background: #f4f8ff !important;
  box-shadow: inset 3px 0 0 var(--ui-primary), 0 10px 24px rgba(37, 99, 235, .08) !important;
}

body.admin-body .session-card-row .session-select-cell {
  align-self: stretch !important;
}

body.admin-body .session-card-row .session-select-cell input {
  width: 16px !important;
  height: 16px !important;
}

body.admin-body .session-card-row .session-user-cell {
  grid-template-columns: 56px minmax(0, 1fr) !important;
  gap: 12px !important;
}

body.admin-body .session-avatar-stack {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 6px !important;
  min-width: 0 !important;
}

body.admin-body .session-card-row .session-user-cell .avatar {
  width: 46px !important;
  height: 46px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #dbeafe, #eff6ff) !important;
  color: #2563eb !important;
  font-size: 18px !important;
}

body.admin-body .session-card-user-copy,
body.admin-body .session-card-info-cell,
body.admin-body .session-card-progress-cell {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  gap: 6px 10px !important;
  min-width: 0 !important;
}

body.admin-body .session-card-name-line {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

body.admin-body .session-card-name-line strong {
  margin: 0 !important;
  color: #142033 !important;
  font-size: 16px !important;
  line-height: 1.25 !important;
}

body.admin-body .session-card-link {
  min-height: 24px !important;
  height: 24px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #2563eb !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  align-self: center !important;
}

body.admin-body .session-card-inline-actions {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

body.admin-body .session-card-row .mini-status,
body.admin-body .session-card-row button.mini-status {
  min-height: 24px !important;
  height: 24px !important;
  padding: 0 7px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}

body.admin-body .session-card-row small {
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  margin-right: 8px !important;
  color: #607089 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

body.admin-body .session-card-user-copy {
  align-content: center !important;
  gap: 3px !important;
}

body.admin-body .session-card-name-line {
  min-height: 26px !important;
}

body.admin-body .session-card-user-copy small {
  display: block !important;
  margin: 0 !important;
}

body.admin-body .session-card-info-cell,
body.admin-body .session-card-progress-cell {
  align-content: center !important;
}

body.admin-body .session-card-info-cell .session-group-cell {
  display: block !important;
  overflow: visible !important;
  color: #1f2a3d !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  white-space: normal !important;
  word-break: break-word !important;
}

body.admin-body .session-card-progress-cell .table-status {
  justify-self: start !important;
  min-height: 26px !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  background: #eef2f7 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

body.admin-body .session-card-progress-cell > small {
  align-self: center !important;
}

body.admin-body .session-card-progress-cell .session-progress-track,
body.admin-body .session-card-progress-cell .session-progress-meta {
  grid-column: 1 / -1 !important;
}

body.admin-body .session-card-progress-cell .session-card-updated {
  justify-self: end !important;
  margin-right: 0 !important;
}

body.admin-body .session-card-progress-cell .table-status.online {
  color: #1d4ed8 !important;
  background: #dbeafe !important;
}

body.admin-body .session-card-progress-cell .table-status.waiting {
  color: #b45309 !important;
  background: #fef3c7 !important;
}

body.admin-body .session-card-progress-cell .table-status.error {
  color: #dc2626 !important;
  background: #fee2e2 !important;
}

body.admin-body .session-card-progress-cell .table-status.archived {
  color: #475569 !important;
  background: #e2e8f0 !important;
}

body.admin-body .session-progress-track {
  position: relative !important;
  height: 7px !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  background: #e8eef7 !important;
}

body.admin-body .session-progress-track i {
  display: block !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: #2f7df4 !important;
}

body.admin-body .session-progress-track.done i,
body.admin-body .session-progress-track.ready i {
  background: #2563eb !important;
}

body.admin-body .session-progress-track.partial i {
  background: #f59e0b !important;
}

body.admin-body .session-progress-track.error i {
  background: #dc2626 !important;
}

body.admin-body .session-progress-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  color: #52637a !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

body.admin-body .session-progress-meta b {
  color: #142033 !important;
}

body.admin-body .session-row-actions {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(76px, 1fr)) auto !important;
  gap: 8px !important;
  justify-content: end !important;
  min-width: 0 !important;
}

body.admin-body .session-card-action {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 34px !important;
  min-width: 0 !important;
  padding: 0 10px !important;
  border: 1px solid #cfe0f5 !important;
  border-radius: 8px !important;
  color: #1f3a5f !important;
  background: #f8fbff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

body.admin-body .session-card-action.primary {
  border-color: #2563eb !important;
  color: #fff !important;
  background: #2563eb !important;
}

body.admin-body .session-card-action.remote {
  border-color: #b7ccef !important;
  color: #174ea6 !important;
  background: #edf5ff !important;
}

body.admin-body .session-card-icon-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 7px !important;
}

body.admin-body .session-card-action.icon-only {
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
}

body.admin-body .session-card-action.icon-only svg {
  width: 16px !important;
  height: 16px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

body.admin-body .session-card-action.icon-only.danger {
  border-color: #f2c6c6 !important;
  color: #dc2626 !important;
  background: #fff7f7 !important;
}

body.admin-body .workspace {
  display: none !important;
}

body.admin-body .session-card-row {
  grid-template-columns: 34px minmax(190px, 250px) minmax(0, 1fr) !important;
}

@media (min-width: 1680px) {
  body.admin-body .session-card-row {
    grid-template-columns: 34px minmax(280px, 360px) minmax(0, 1fr) !important;
  }
}

@media (max-width: 1500px) {
  body.admin-body .session-card-row {
    grid-template-columns: 34px minmax(220px, 300px) minmax(0, 1fr) !important;
  }
}

/* ui129 session card final authority */
body.admin-body .session-card-row {
  align-items: start !important;
}

body.admin-body .session-card-row .session-user-cell {
  align-items: start !important;
}

body.admin-body .session-card-row .session-user-cell .avatar {
  margin-top: 2px !important;
}

body.admin-body .session-card-user-copy {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 3px !important;
  min-width: 0 !important;
}

body.admin-body .session-card-user-copy small {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  line-height: 1.35 !important;
}

body.admin-body .session-card-name-line {
  width: 100% !important;
  min-height: 24px !important;
}

body.admin-body .session-card-inline-actions {
  width: 100% !important;
  justify-content: flex-start !important;
  gap: 6px !important;
}

body.admin-body .session-card-progress-cell {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 6px !important;
}

body.admin-body .session-card-progress-cell .table-status {
  align-self: flex-start !important;
}

body.admin-body .session-card-progress-cell .session-progress-track {
  width: 100% !important;
}

body.admin-body .session-row-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
}

body.admin-body .session-card-icon-actions {
  margin-left: auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
}

body.admin-body .session-row-actions {
  align-items: flex-start !important;
}

body.admin-body .session-card-memory-state {
  display: block !important;
  width: 100% !important;
  margin-top: 6px !important;
  color: #64748b !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
  text-align: center !important;
}

/* ui144 final actions layout: icons on top, memory state below */
body.admin-body .session-row-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 6px !important;
}

body.admin-body .session-card-icon-actions {
  margin-left: 0 !important;
  justify-content: center !important;
}

body.admin-body .session-card-memory-state {
  margin-top: 0 !important;
}

body.admin-body .session-card-row {
  grid-template-columns: 34px minmax(190px, 250px) minmax(0, 1fr) !important;
  grid-template-areas:
    "select user progress"
    "select user actions" !important;
  align-items: start !important;
}

body.admin-body .session-card-row .session-select-cell {
  grid-area: select !important;
}

body.admin-body .session-card-row .session-user-cell {
  grid-area: user !important;
}

body.admin-body .session-card-progress-cell {
  grid-area: progress !important;
  width: 100% !important;
}

body.admin-body .session-row-actions {
  grid-area: actions !important;
  width: 100% !important;
  margin-top: 8px !important;
}

body.admin-body .session-panel .session-card-row .session-row-actions,
body.admin-body .session-row-actions {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(78px, 1fr)) !important;
  justify-content: start !important;
  align-items: center !important;
  gap: 8px !important;
}

body.admin-body .session-card-icon-actions {
  grid-column: 1 / -1 !important;
  margin-left: 0 !important;
  justify-content: flex-start !important;
  padding-top: 2px !important;
}

@media (min-width: 1680px) {
  body.admin-body .session-card-row {
    grid-template-columns: 34px minmax(240px, 300px) minmax(0, 1fr) !important;
  }
}

@media (max-width: 1280px) {
  body.admin-body .session-workbench-grid {
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr) !important;
  }

  body.admin-body .session-card-row {
    grid-template-columns: 34px minmax(220px, 1fr) minmax(220px, 1fr) !important;
  }

  body.admin-body .session-card-progress-cell,
  body.admin-body .session-row-actions {
    grid-column: 2 / -1 !important;
  }

  body.admin-body .session-row-actions {
    grid-template-columns: repeat(3, minmax(90px, 120px)) auto !important;
    justify-content: start !important;
  }
}

@media (max-width: 1100px) {
  body.admin-body .unit-tools-strip,
  body.admin-body .session-workbench-grid {
    grid-template-columns: 1fr !important;
  }

  body.admin-body .session-customer-sidebar {
    position: static !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  body.admin-body .session-card-row {
    grid-template-columns: 34px minmax(0, 1fr) !important;
  }

  body.admin-body .session-card-info-cell,
  body.admin-body .session-card-progress-cell,
  body.admin-body .session-row-actions {
    grid-column: 2 / -1 !important;
  }

  body.admin-body .session-panel .session-card-row .session-row-actions,
  body.admin-body .session-row-actions {
    grid-template-columns: repeat(3, minmax(86px, 1fr)) !important;
  }

  body.admin-body .session-card-icon-actions {
    grid-column: 1 / -1 !important;
  }
}

/* ui130+ consolidated admin layout authority */
body.admin-body .session-workbench-grid {
  display: grid !important;
  grid-template-columns: minmax(300px, 340px) minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: start !important;
  min-width: 0 !important;
}

@media (min-width: 1500px) {
  body.admin-body .session-workbench-grid {
    grid-template-columns: minmax(360px, 440px) minmax(0, 1fr) !important;
  }
}

@media (min-width: 1760px) {
  body.admin-body .session-workbench-grid {
    grid-template-columns: minmax(400px, 500px) minmax(0, 1fr) !important;
  }
}

body.admin-body .session-customer-sidebar {
  position: sticky !important;
  top: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  height: calc(100vh - 120px) !important;
  min-height: 560px !important;
  max-height: 860px !important;
  padding: 16px !important;
  overflow: hidden !important;
}

body.admin-body .session-customer-sidebar .customer-list {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  gap: 12px !important;
}

body.admin-body .session-customer-sidebar .customer-list-create {
  margin: 10px 0 10px !important;
}

body.admin-body .session-customer-sidebar .customer-list-create input,
body.admin-body .session-customer-sidebar .customer-picker-row .customer-list-select {
  min-width: 0 !important;
}

body.admin-body .session-customer-sidebar .customer-picker-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 62px !important;
  align-items: stretch !important;
  gap: 8px !important;
}

body.admin-body .session-customer-sidebar .customer-picker-row .customer-list-select,
body.admin-body .session-customer-sidebar .customer-picker-row .customer-delete-button {
  box-sizing: border-box !important;
  width: 100% !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  margin: 0 !important;
  line-height: 1 !important;
  align-self: stretch !important;
}

body.admin-body .session-customer-sidebar .customer-picker-row .customer-delete-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}

body.admin-body .session-customer-sidebar .customer-item {
  padding: 12px !important;
  border-radius: 10px !important;
}

body.admin-body .session-customer-sidebar .customer-item header {
  gap: 10px !important;
}

body.admin-body .session-customer-sidebar .customer-item header strong {
  font-size: 15px !important;
  line-height: 1.35 !important;
}

body.admin-body .session-customer-sidebar .customer-item header span {
  font-size: 13px !important;
  line-height: 1.3 !important;
}

body.admin-body .session-customer-sidebar .customer-stats {
  gap: 10px !important;
}

body.admin-body .session-customer-sidebar .customer-stats span {
  min-height: 64px !important;
  padding: 10px !important;
}

body.admin-body .session-customer-sidebar .customer-stats small,
body.admin-body .session-customer-sidebar .customer-unit-row small {
  font-size: 13px !important;
  line-height: 1.35 !important;
}

body.admin-body .session-customer-sidebar .customer-stats b {
  font-size: 18px !important;
  line-height: 1.25 !important;
}

body.admin-body .session-customer-sidebar .customer-unit-row {
  grid-template-columns: minmax(0, 1fr) auto auto auto !important;
  gap: 8px 12px !important;
  padding: 9px 10px !important;
}

body.admin-body .session-customer-sidebar .customer-unit-row span {
  font-size: 14px !important;
  line-height: 1.4 !important;
}

body.admin-body .session-panel {
  min-width: 0 !important;
  border-radius: 12px !important;
  overflow-x: hidden !important;
}

body.admin-body .session-panel .panel-heading {
  padding: 18px 20px 12px !important;
}

body.admin-body .session-panel,
body.admin-body .session-panel .panel-heading,
body.admin-body .session-panel-tools,
body.admin-body .status-tabs,
body.admin-body .session-bulk-bar {
  min-width: 0 !important;
}

body.admin-body .session-panel-tools {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  min-width: 0 !important;
  max-width: none !important;
}

body.admin-body .session-panel-tools > * {
  grid-column: auto !important;
  grid-row: auto !important;
}

body.admin-body .session-panel-tools #sessionDateFrom,
body.admin-body .session-panel-tools #sessionDateTo {
  box-sizing: border-box !important;
  flex: 0 0 158px !important;
  min-width: 158px !important;
  height: 38px !important;
  padding: 0 12px !important;
  font-size: 14px !important;
  line-height: 1 !important;
}

body.admin-body .session-panel-tools #sessionDateFrom::-webkit-calendar-picker-indicator,
body.admin-body .session-panel-tools #sessionDateTo::-webkit-calendar-picker-indicator {
  margin-left: 4px !important;
  opacity: .85 !important;
  cursor: pointer !important;
}

body.admin-body .session-panel-tools #sessionCustomerFilter {
  flex: 0 0 150px !important;
  min-width: 150px !important;
}

body.admin-body .session-panel-tools #sessionGroupFilter {
  flex: 0 1 300px !important;
  min-width: 240px !important;
  max-width: 360px !important;
}

body.admin-body .session-panel-tools .session-search-control {
  flex: 1 1 320px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 84px !important;
  gap: 8px !important;
  min-width: 280px !important;
  max-width: 420px !important;
}

body.admin-body .session-panel-tools .session-search-input-wrap {
  width: 100% !important;
  min-width: 0 !important;
}

body.admin-body .session-panel-tools #sessionSearch {
  width: 100% !important;
  min-width: 0 !important;
}

@media (max-width: 1500px) {
  body.admin-body .session-panel-tools .session-search-control {
    flex-basis: 100% !important;
    max-width: none !important;
  }
}

body.admin-body .status-tabs,
body.admin-body .session-bulk-bar {
  flex-wrap: wrap !important;
  overflow-x: hidden !important;
}

body.admin-body .session-bulk-bar .bulk-spacer {
  flex-basis: 100% !important;
  height: 0 !important;
}

body.admin-body .session-list {
  display: block !important;
  min-height: 420px !important;
  max-height: calc(100vh - 360px) !important;
  padding: 12px !important;
  background: #f7faff !important;
  overflow-x: hidden !important;
}

body.admin-body .session-card-list {
  display: grid !important;
  gap: 12px !important;
  min-width: 0 !important;
}

body.admin-body .session-card-row {
  display: grid !important;
  grid-template-columns: 34px minmax(240px, 1.05fr) minmax(220px, 1fr) minmax(210px, .92fr) minmax(260px, auto) !important;
  gap: 12px !important;
  align-items: center !important;
  min-width: 0 !important;
  padding: 14px 16px !important;
  border: 1px solid #dce9f8 !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .04) !important;
  cursor: pointer !important;
}

@media (min-width: 1680px) {
  body.admin-body .session-card-row {
    grid-template-columns: 34px minmax(280px, 360px) minmax(220px, 1fr) minmax(210px, .92fr) minmax(260px, auto) !important;
  }
}

@media (max-width: 1500px) {
  body.admin-body .session-card-row {
    grid-template-columns: 34px minmax(220px, 300px) minmax(0, 1fr) !important;
    grid-template-areas:
      "select user progress"
      "select user actions" !important;
    align-items: start !important;
  }
}

@media (max-width: 1280px) {
  body.admin-body .session-card-row {
    grid-template-columns: 34px minmax(240px, 1fr) minmax(280px, 1fr) !important;
    grid-template-areas:
      "select user progress"
      "select user actions" !important;
    align-items: start !important;
  }
}

@media (max-width: 1100px) {
  body.admin-body .session-card-row {
    grid-template-columns: 34px minmax(0, 1fr) !important;
    grid-template-areas:
      "select user"
      "select progress"
      "select actions" !important;
  }
}

body.admin-body .session-card-row:hover {
  border-color: #bdd5f5 !important;
  box-shadow: 0 10px 26px rgba(37, 99, 235, .08) !important;
}

body.admin-body .session-card-row.active {
  border-color: #8db7f5 !important;
  background: #f4f8ff !important;
  box-shadow: inset 3px 0 0 var(--ui-primary), 0 10px 24px rgba(37, 99, 235, .08) !important;
}

body.admin-body .session-card-row .session-select-cell {
  align-self: stretch !important;
}

body.admin-body .session-card-row .session-select-cell input {
  width: 16px !important;
  height: 16px !important;
}

body.admin-body .session-card-row .session-user-cell {
  grid-template-columns: 56px minmax(0, 1fr) !important;
  gap: 12px !important;
  min-width: 0 !important;
}

body.admin-body .session-avatar-stack {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 6px !important;
  min-width: 0 !important;
}

body.admin-body .session-card-row .session-user-cell .avatar {
  width: 46px !important;
  height: 46px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #dbeafe, #eff6ff) !important;
  color: #2563eb !important;
  font-size: 18px !important;
}

body.admin-body .session-card-user-copy,
body.admin-body .session-card-info-cell,
body.admin-body .session-card-progress-cell {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  gap: 6px 10px !important;
  min-width: 0 !important;
}

body.admin-body .session-card-user-copy {
  align-content: center !important;
  gap: 4px !important;
}

body.admin-body .session-card-name-line {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  min-height: 26px !important;
}

body.admin-body .session-card-name-line strong {
  margin: 0 !important;
  color: #142033 !important;
  font-size: 16px !important;
  line-height: 1.25 !important;
}

body.admin-body .session-card-link {
  min-height: 24px !important;
  height: 24px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #2563eb !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  align-self: center !important;
}

body.admin-body .session-card-inline-actions {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

body.admin-body .session-card-row .mini-status,
body.admin-body .session-card-row button.mini-status {
  min-height: 24px !important;
  height: 24px !important;
  padding: 0 7px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}

body.admin-body .session-card-row small {
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  margin-right: 8px !important;
  color: #607089 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

body.admin-body .session-card-user-copy small {
  display: block !important;
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.admin-body .session-card-info-cell,
body.admin-body .session-card-progress-cell {
  align-content: center !important;
}

body.admin-body .session-card-info-cell .session-group-cell {
  display: block !important;
  overflow: visible !important;
  color: #1f2a3d !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  white-space: normal !important;
  word-break: break-word !important;
}

body.admin-body .session-card-progress-cell .table-status {
  justify-self: start !important;
  min-height: 26px !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  background: #eef2f7 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

body.admin-body .session-card-progress-cell > small:not(.session-card-updated) {
  grid-column: 1 / -1 !important;
  margin: 0 !important;
  color: #52637a !important;
  font-size: 12px !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
}

body.admin-body .session-card-progress-cell .session-progress-track,
body.admin-body .session-card-progress-cell .session-progress-meta {
  grid-column: 1 / -1 !important;
}

body.admin-body .session-card-progress-cell .session-card-updated {
  justify-self: end !important;
  margin-right: 0 !important;
}

body.admin-body .session-card-progress-cell .table-status.online {
  color: #1d4ed8 !important;
  background: #dbeafe !important;
}

body.admin-body .session-card-progress-cell .table-status.waiting {
  color: #b45309 !important;
  background: #fef3c7 !important;
}

body.admin-body .session-card-progress-cell .table-status.error {
  color: #dc2626 !important;
  background: #fee2e2 !important;
}

body.admin-body .session-card-progress-cell .table-status.archived {
  color: #475569 !important;
  background: #e2e8f0 !important;
}

body.admin-body .session-progress-track {
  position: relative !important;
  height: 7px !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  background: #e8eef7 !important;
}

body.admin-body .session-progress-track i {
  display: block !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: #2f7df4 !important;
}

body.admin-body .session-progress-track.done i,
body.admin-body .session-progress-track.ready i {
  background: #2563eb !important;
}

body.admin-body .session-progress-track.partial i {
  background: #f59e0b !important;
}

body.admin-body .session-progress-track.error i {
  background: #dc2626 !important;
}

body.admin-body .session-progress-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  color: #52637a !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

body.admin-body .session-progress-meta b {
  color: #142033 !important;
}

body.admin-body .session-row-actions {
  grid-area: actions !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(76px, 1fr)) minmax(118px, auto) !important;
  gap: 8px !important;
  align-items: center !important;
  justify-content: end !important;
  min-width: 0 !important;
}

body.admin-body .session-card-action {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 34px !important;
  min-width: 0 !important;
  padding: 0 10px !important;
  border: 1px solid #cfe0f5 !important;
  border-radius: 8px !important;
  color: #1f3a5f !important;
  background: #f8fbff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

body.admin-body .session-card-action.primary {
  border-color: #2563eb !important;
  color: #fff !important;
  background: #2563eb !important;
}

body.admin-body .session-card-action.remote {
  border-color: #b7ccef !important;
  color: #174ea6 !important;
  background: #edf5ff !important;
}

body.admin-body .session-card-icon-stack {
  grid-column: 1 / -1 !important;
  justify-self: center !important;
  display: grid !important;
  justify-items: center !important;
  align-items: center !important;
  gap: 6px !important;
  width: max-content !important;
  max-width: 100% !important;
}

body.admin-body .session-card-icon-stack .session-card-icon-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  width: max-content !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.admin-body .session-card-icon-stack .session-card-memory-state {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  color: #64748b !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

body.admin-body .session-card-action.icon-only {
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
}

body.admin-body .session-card-action.icon-only svg {
  width: 16px !important;
  height: 16px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

body.admin-body .session-card-action.icon-only.danger {
  border-color: #f2c6c6 !important;
  color: #dc2626 !important;
  background: #fff7f7 !important;
}

body.admin-body .quick-precreate-card .precreate-tools {
  display: none !important;
}

body.admin-body .unit-tools-strip {
  align-items: start !important;
  grid-template-columns: minmax(520px, .95fr) minmax(300px, 1.05fr) !important;
}

body.admin-body .unit-tools-strip .group-config-card,
body.admin-body .unit-tools-strip .quick-precreate-card {
  align-self: start !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

body.admin-body .unit-tools-strip .group-config-card {
  align-content: start !important;
  overflow: visible !important;
}

body.admin-body .unit-tools-strip .group-config-card .qr-collapsible,
body.admin-body .unit-tools-strip .group-config-card .admin-group-qr.compact-qr {
  height: auto !important;
  min-height: 0 !important;
}

body.admin-body .unit-tools-strip .quick-precreate-card {
  display: flex !important;
  flex-direction: column !important;
}

body.admin-body .unit-tools-strip .quick-precreate-card .compact-card-head {
  flex: 0 0 auto !important;
}

body.admin-body .unit-tools-strip .quick-precreate-card .template-drop-zone {
  flex: 0 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 170px !important;
  height: 170px !important;
  margin-top: 12px !important;
}

@media (max-width: 1180px) {
  body.admin-body .unit-tools-strip,
  body.admin-body .session-workbench-grid {
    grid-template-columns: 1fr !important;
  }

  body.admin-body .session-customer-sidebar {
    position: static !important;
    height: auto !important;
    max-height: none !important;
  }
}

/* ui150: authoritative session card placement fix.
   The card has four DOM children: select, user, progress, actions. Older
   rules still described five columns and only assigned an area to actions,
   so browsers auto-placed the other children and left large blank bands. */
body.admin-body .session-card-row {
  display: grid !important;
  grid-template-columns: 34px minmax(300px, 1fr) minmax(220px, 260px) minmax(300px, 340px) !important;
  grid-template-areas: "select user progress actions" !important;
  gap: 14px !important;
  align-items: center !important;
}

body.admin-body .session-card-row .session-select-cell {
  grid-area: select !important;
}

body.admin-body .session-card-row .session-user-cell {
  grid-area: user !important;
}

body.admin-body .session-card-row .session-card-progress-cell {
  grid-area: progress !important;
}

body.admin-body .session-card-row .session-row-actions {
  grid-area: actions !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(80px, 94px)) !important;
  justify-content: center !important;
  align-content: center !important;
  gap: 8px !important;
}

body.admin-body .session-card-row .session-card-icon-stack {
  grid-column: 1 / -1 !important;
  justify-self: center !important;
}

@media (max-width: 1500px) {
  body.admin-body .session-card-row {
    grid-template-columns: 34px minmax(0, 1fr) !important;
    grid-template-areas:
      "select user"
      "select progress"
      "select actions" !important;
    align-items: center !important;
  }

  body.admin-body .session-card-row .session-user-cell,
  body.admin-body .session-card-row .session-card-progress-cell,
  body.admin-body .session-card-row .session-row-actions {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.admin-body .session-card-row .session-card-progress-cell {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 6px 10px !important;
  }

  body.admin-body .session-card-row .session-row-actions {
    grid-template-columns: repeat(3, minmax(78px, 1fr)) !important;
    justify-content: stretch !important;
  }
}

@media (max-width: 1180px) {
  body.admin-body .session-card-row {
    grid-template-columns: 34px minmax(0, 1fr) !important;
    grid-template-areas:
      "select user"
      "select progress"
      "select actions" !important;
  }

  body.admin-body .session-card-row .session-row-actions {
    justify-content: start !important;
  }
}

/* ui152: keep identity fields in a vertical stack. The shared card rule above
   uses a three-column grid for generic cells; applying that to user copy puts
   name, unit and trade on the same line and clips the unit prefix. */
body.admin-body .session-card-row .session-card-user-copy {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 4px !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

body.admin-body .session-card-row .session-card-name-line {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
}

body.admin-body .session-card-row .session-card-name-line strong {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.admin-body .session-card-row .session-card-user-copy small {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* ui153: remove nested scrollbars in customer and session panes. */
body.admin-body .session-customer-sidebar,
body.admin-body .session-customer-sidebar .customer-list,
body.admin-body .session-list {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

body.admin-body .session-panel .session-list,
body.admin-body #sessionList.session-list {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
