@charset "UTF-8";
@font-face {
  font-family: "RSU";
  src: url("fonts/RSU_light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "RSU";
  src: url("fonts/RSU_Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "RSU";
  src: url("fonts/RSU_BOLD.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #111522;
  --card: #1b2440;
  --card-raised: #222e4b;
  --line: #ffffff10;
  --text: #f2f6ff;
  --muted: #a5b3d0;
  --cyan: #11d2e9;
  --blue: #098bff;
  --success: #62e2b6;
  --danger: #ff9eab;
  --warning: #ffc66d;
  --radius: 24px;
  --font: "RSU", Tahoma, Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at 3% 0%, #4b3f852f, transparent 45%),
    radial-gradient(ellipse at 100% 0%, #ad385b21, transparent 35%);
  background-attachment: fixed;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #6fdcff;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.3;
  letter-spacing: -0.6px;
}
h2 {
  font-size: 21px;
  line-height: 1.5;
}
h3 {
  font-size: 18px;
}
small,
.small {
  font-size: 14px;
}
.muted {
  color: var(--muted);
}
.mono {
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
  font-variant-numeric: tabular-nums;
}
.hidden,
[hidden] {
  display: none !important;
}
.icon {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #71c7ff;
  margin-bottom: 8px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  justify-content: space-between;
}
.stack {
  display: grid;
  gap: 20px;
}
.gap-sm {
  gap: 10px;
}
.wrap {
  flex-wrap: wrap;
}
.grow {
  flex: 1;
  min-width: 0;
}
.mt {
  margin-top: 20px;
}
.mt-sm {
  margin-top: 10px;
}
.mb {
  margin-bottom: 20px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 500;
  background: var(--cyan);
  padding: 12px;
  color: #071726;
  border-radius: 10px;
}
.skip-link:focus {
  top: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 23px;
  letter-spacing: -0.6px;
  font-weight: 800;
}
.brand-mark {
  width: 37px;
  height: 40px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #047aff, #18ddeb);
  border-radius: 12px;
  box-shadow: 0 5px 22px #0099ff25;
  color: #071b38;
}
.brand-dot {
  color: var(--cyan);
}
.sidebar {
  overflow-y: auto;
  position: fixed;
  inset: 20px auto 20px 20px;
  width: 224px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(150deg, #192138, #1b2541 85%);
  padding: 28px 18px 16px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px #0002;
}
.sidebar .brand {
  padding: 0 9px;
  margin-bottom: 39px;
}
.btn.drawer-close {
  display: none;
}
.nav-heading {
  font-size: 12px;
  color: #7d8eae;
  letter-spacing: 1.8px;
  margin: 18px 15px 10px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 49px;
  padding: 12px 14px;
  margin: 6px 0;
  border-radius: 14px;
  color: #afbbd4;
  font-size: 16px;
  transition:
    background 0.18s,
    color 0.18s;
}
.nav-link:hover {
  background: #ffffff08;
  color: #fff;
}
.nav-link.active {
  background: linear-gradient(105deg, #078cff, #00c9e7);
  color: #051f38;
  font-weight: 800;
  box-shadow: 0 7px 20px #028fff20;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 25px;
}
.account {
  border-top: 1px solid var(--line);
  padding: 18px 7px 7px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid #27cbdf5c;
  border-radius: 50%;
  color: #99edff;
  background: #163a50;
  font-size: 15px;
  font-weight: 700;
}
.account-name {
  font-size: 14px;
  max-width: 143px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-role {
  font-size: 12px;
  color: var(--muted);
}
.logout {
  background: none;
  border: 0;
  color: var(--muted);
  width: 100%;
  text-align: left;
  margin: 10px 0 0;
  padding: 12px 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.logout:hover {
  color: var(--danger);
}
.app-main {
  margin-left: 264px;
  padding: 37px 38px 40px;
  min-width: 0;
}
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.page-header .muted {
  font-size: 15px;
  margin-top: 8px;
}
.header-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1e284040;
  border: 1px solid var(--line);
  border-radius: 40px;
  padding: 9px 15px;
  color: #b5c2db;
  font-size: 14px;
  margin-top: 8px;
  white-space: nowrap;
}
.header-chip .icon {
  width: 16px;
  color: var(--cyan);
}
.content {
  max-width: 1260px;
  margin: auto;
}
.page-footer {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: #7f90ae;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.mobile-bar,
.drawer-backdrop {
  display: none;
}
.panel {
  background: linear-gradient(120deg, #1e2945, #19223a);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 14px 35px #00000012;
  min-width: 0;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}
.panel-head .muted {
  font-size: 14px;
  margin-top: 3px;
}
.panel-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: #0cbfff14;
  border: 1px solid #1cbfff20;
  border-radius: 13px;
  color: #40d5ee;
  flex-shrink: 0;
}
.stat-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.stat {
  padding: 24px;
  position: relative;
  overflow: hidden;
  min-height: 154px;
}
.stat .eyebrow {
  margin-bottom: 16px;
  color: #b8c7e0;
  letter-spacing: 1.2px;
  font-size: 12px;
}
.stat-value {
  font-size: 37px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.stat-unit {
  font-size: 14px;
  margin-left: 7px;
  letter-spacing: 0;
  font-weight: 400;
}
.stat .small {
  margin-top: 10px;
  color: var(--muted);
}
.stat.accent {
  background: linear-gradient(115deg, #078cff, #00c1df);
  border-color: #41dcff33;
  color: #071c32;
  box-shadow: 0 10px 35px #009dff16;
}
.stat.accent .eyebrow,
.stat.accent .small {
  color: #062039;
}
.stat.accent:after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border: 25px solid #ffffff15;
  border-radius: 50%;
  right: -67px;
  top: 12px;
  pointer-events: none;
}
.stat-symbol {
  position: absolute;
  right: 24px;
  top: 25px;
  opacity: 0.7;
}
.stat-symbol .icon {
  width: 25px;
  height: 25px;
}
.split {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  gap: 24px;
  align-items: start;
}
.split-wide {
  grid-template-columns: 1.3fr 0.8fr;
}
.form-grid {
  display: grid;
  gap: 20px;
}
.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}
label,
.label {
  font-size: 15px;
  font-weight: 600;
  color: #dce7fc;
}
.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.label-row span {
  font-size: 12px;
  letter-spacing: 1.4px;
  color: #8c9cbc;
  font-weight: 400;
}
.input-wrap {
  position: relative;
}
.input-wrap > .icon {
  position: absolute;
  left: 16px;
  top: 16px;
  color: #7189ad;
}
.input-wrap > input {
  padding-left: 49px;
}
.field-hint {
  font-size: 14px;
  color: var(--muted);
  min-height: 19px;
}
input,
select,
textarea {
  width: 100%;
  min-height: 49px;
  border-radius: 12px;
  border: 1px solid #6279a32e;
  padding: 12px 15px;
  background: #121b30;
  color: var(--text);
  transition: border-color 0.18s;
  outline: none;
  min-width: 0;
}
input:hover,
select:hover,
textarea:hover {
  border-color: #617ca66b;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #18c4ec;
}
input::placeholder,
textarea::placeholder {
  color: #7184a5;
}
input[type="number"] {
  font-variant-numeric: tabular-nums;
}
select {
  padding-right: 28px;
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border-radius: 12px;
  padding: 11px 18px;
  background: #ffffff04;
  border: 1px solid #6a83af45;
  color: #cddaf0;
  font-weight: 600;
  font-size: 15px;
  transition:
    background 0.18s,
    transform 0.18s,
    border-color 0.18s;
  text-align: center;
  white-space: nowrap;
}
.btn:hover {
  background: #ffffff09;
  border-color: #688cbb;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: linear-gradient(110deg, #078cff, #08cee6);
  border-color: #26cdff77;
  color: #062039;
  box-shadow: 0 7px 25px #019dff14;
}
.btn-primary:hover {
  background: linear-gradient(110deg, #39a4ff, #39d6eb);
  border-color: #77eaff;
}
.btn-ghost {
  border-color: #25cbe25e;
  color: #74dffa;
  background: #10bfd805;
}
.btn-danger {
  color: #ffa4b0;
  border-color: #fc768940;
  background: #ed607008;
}
.btn-success {
  color: var(--success);
  border-color: #53d8ab38;
  background: #53d8ab0a;
}
.btn-sm {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 14px;
  border-radius: 9px;
}
.btn-icon {
  width: 42px;
  padding: 9px;
  flex-shrink: 0;
}
.full {
  width: 100%;
}
.notice {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #10b8eb09;
  border: 1px solid #1cbcee18;
  color: #a8c6e1;
  font-size: 14px;
  line-height: 1.8;
}
.notice > .icon {
  width: 17px;
  height: 17px;
  color: #6cbedd;
  margin-top: 3px;
}
.message {
  font-size: 15px;
  min-height: 22px;
  overflow-wrap: anywhere;
  margin-top: 10px;
}
.message.error {
  color: var(--danger);
}
.message.success {
  color: var(--success);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 7px;
  padding: 4px 9px;
  white-space: nowrap;
  font-size: 13px;
  background: #8097c013;
  color: #b4c7e5;
  border: 1px solid #91b0d520;
}
.badge.success {
  color: var(--success);
  background: #5bcfaf10;
  border-color: #5bcfaf25;
}
.badge.warning {
  color: var(--warning);
  background: #ffa92810;
  border-color: #ffa92825;
}
.badge.error {
  color: var(--danger);
  background: #ed647410;
  border-color: #ed647425;
}
.badge.info {
  color: #6eddff;
  background: #0abcff12;
  border-color: #0abcff27;
}
.live-dot {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  display: inline-block;
}
.result-panel {
  min-height: 430px;
}
.result-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 20px 10px 27px;
  gap: 12px;
}
.device-orbit {
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  position: relative;
  margin: 14px 0 10px;
  border-radius: 50%;
  border: 1px solid #36cfff17;
  background: radial-gradient(circle, #078bff11, transparent 70%);
}
.device-orbit:before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px dashed #289edb35;
}
.device-orbit:after {
  content: "";
  position: absolute;
  right: 6px;
  top: 39px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 17px #11d2e9aa;
}
.phone-shape {
  width: 53px;
  height: 87px;
  display: grid;
  place-items: center;
  border: 2px solid #369ac2;
  border-radius: 13px;
  background: linear-gradient(150deg, #123859, #182746);
  box-shadow: 0 12px 25px #0003;
  transform: rotate(-10deg);
}
.phone-shape .icon {
  color: #46d3ee;
  width: 24px;
  height: 24px;
}
.result-empty .muted {
  max-width: 230px;
  font-size: 14px;
}
.steps {
  display: flex;
  justify-content: space-around;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 13px;
  color: #9aaecf;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  background: #6cb8e814;
  border-radius: 50%;
  color: #66d8ef;
  margin-right: 4px;
}
.device-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 17px 0;
  padding: 12px;
  background: #0e172b;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.result-text {
  line-height: 1.5;
  color: #c3d0e7;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.lc-result-alert {
  border: 2px solid #f28393;
  background: linear-gradient(125deg, #692b411f, #b8415112);
  border-radius: 13px;
  padding: 10px 12px;
  margin: 10px 0;
  color: #ffd3da;
  line-height: 1.5;
}
.lc-result-alert b {
  color: #ffa6b5;
  display: inline-block;
  margin-bottom: 2px;
}
.lc-result-alert-success {
  border-color: #4ddba2;
  background: linear-gradient(125deg, #145d3e40, #15734720);
  color: #c2f9df;
}
.lc-result-alert-success b {
  color: #86efb7;
}
.lc-result-paid {
  color: #86efb7;
  font-size: 20px;
  font-weight: 800;
}
.lc-result-alert-loaning {
  border-color: #fb923c;
  background: linear-gradient(125deg, #9a481f40, #7c351a20);
  color: #ffddbd;
}
.lc-result-alert-loaning b {
  color: #fdba74;
}
.lc-result-loaning {
  color: #fdba74;
  font-size: 20px;
  font-weight: 800;
}
.result-actions {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.queue-progress {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 18px;
  border: 1px solid #24c8eb55;
  border-radius: 14px;
  background: #06adcf0d;
}
.queue-progress strong {
  color: #7de6fa;
  font-size: 22px;
}
.queue-progress .spinner {
  flex-shrink: 0;
}
.btn.check-busy:disabled {
  opacity: 1;
  cursor: wait;
  color: #a8eeff;
  border-color: #28c5e866;
  background: linear-gradient(110deg, #104273, #115469);
  box-shadow: none;
  transform: none;
}
.btn.check-busy .spinner {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  border-top-color: currentColor;
}
.check-wait {
  padding: 26px 18px 20px;
  border: 1px solid #24c8eb40;
  border-radius: 18px;
  background: radial-gradient(ellipse at 50% 15%, #0cbcdf17, transparent 65%), #06adcf05;
  text-align: center;
}
.check-wait-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  margin: 0 auto 22px;
}
.check-wait-ring {
  position: absolute;
  inset: 0;
  border: 2px solid #2dccf11c;
  border-top-color: #30dcf3;
  border-right-color: #148fff;
  border-radius: 50%;
  animation: spin 2s linear infinite;
}
.check-wait-device {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px solid #40cde338;
  border-radius: 22px;
  background: #0d263f;
  box-shadow: 0 0 30px #00c9ff12;
  overflow: hidden;
  color: #80e5fa;
}
.check-wait-device .icon { width: 38px; height: 38px; }
.check-wait-scan {
  position: absolute;
  top: 16px;
  left: 13px;
  right: 13px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #63f2ff, transparent);
  box-shadow: 0 0 12px #2fdfff;
  animation: check-scan 2.2s ease-in-out infinite alternate;
}
.check-wait-title {
  color: #a3edff;
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 7px;
}
.check-wait-dots { display: inline-flex; gap: 4px; margin-left: 8px; }
.check-wait-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #51d9f4;
  animation: check-dot 1.4s ease-in-out infinite;
}
.check-wait-dots i:nth-child(2) { animation-delay: 0.16s; }
.check-wait-dots i:nth-child(3) { animation-delay: 0.32s; }
.check-wait-track {
  height: 3px;
  margin: 23px 0;
  border-radius: 4px;
  background: #46a6d81c;
  overflow: hidden;
}
.check-wait-track > span {
  display: block;
  width: 35%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #128bff, #2df0ef);
  animation: check-track 2.4s ease-in-out infinite;
}
.check-wait-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.check-wait-steps li { display: grid; justify-items: center; gap: 7px; }
.check-wait-steps li > span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid #7790b02b;
  border-radius: 50%;
  font-size: 13px;
}
.check-wait-steps .is-current { color: #92e9ff; font-weight: 600; }
.check-wait-steps .is-current > span { background: #149fcd25; border-color: #32c7ed88; }
.check-wait-steps .is-done { color: #79dfbe; }
.check-wait-steps .is-done > span { background: #35b79614; border-color: #49cbab50; }
.check-wait-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  color: #b4d6e7;
  font-size: 14px;
}
.check-wait-hint .icon { flex: 0 0 17px; }
@keyframes check-scan { to { transform: translateY(41px); } }
@keyframes check-dot { 50% { opacity: 0.25; transform: translateY(-3px); } }
@keyframes check-track { from { transform: translateX(-110%); } to { transform: translateX(390%); } }
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 180px;
  color: #a6cce6;
}
.spinner {
  width: 22px;
  height: 22px;
  border: 2px solid #76d5ff25;
  border-top-color: #48d7f6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.table-panel {
  padding: 0;
  overflow: hidden;
}
.table-panel > .panel-head {
  padding: 24px 26px 0;
}
.table-scroll {
  overflow: auto;
  width: 100%;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
  font-size: 16px;
  line-height: 1.45;
}
th {
  padding: 8px 14px;
  color: #95a6c5;
  font-size: 14px;
  letter-spacing: 0.5px;
  font-weight: 500;
  background: #0e172a55;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 6px 14px;
  border-bottom: 1px solid var(--line);
  color: #ccdaed;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #ffffff02;
}
td .muted {
  font-size: 13px;
}
td:first-child,
th:first-child {
  padding-left: 26px;
}
td:last-child,
th:last-child {
  padding-right: 26px;
}
td.actions {
  vertical-align: middle;
}
td.actions .btn + .btn {
  margin-left: 6px;
}
td input {
  min-width: 180px;
}
.empty-cell {
  text-align: center;
  padding: 55px 20px !important;
  color: var(--muted);
}
.empty-cell .icon {
  width: 30px;
  height: 30px;
  display: block;
  margin: 0 auto 12px;
  color: #51b7d1;
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.page-size, .page-actions { display: inline-flex; align-items: center; gap: 8px; }
.page-size { white-space: nowrap; }
.page-size select { width: 78px; min-height: 38px; padding: 6px 24px 6px 10px; font-size: 14px; }
.page-info { flex: 1 1 150px; text-align: center; font-variant-numeric: tabular-nums; }
.page-actions { flex-wrap: wrap; }
.table-loading { display: inline-flex; align-items: center; gap: 10px; }
.table-note {
  padding: 15px 26px;
  font-size: 13px;
  color: #879bbd;
  border-top: 1px solid var(--line);
}
.two-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.profile-avatar {
  width: 62px;
  height: 62px;
  font-size: 25px;
  border-width: 2px;
  margin-bottom: 16px;
}
.profile-list {
  display: grid;
  gap: 0;
  margin-top: 20px;
}
.profile-list > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 15px 0;
  font-size: 15px;
}
.profile-list dt {
  color: var(--muted);
}
.profile-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.user-summary {
  background: #102036;
  padding: 16px;
  border: 1px solid #40c9df26;
  border-radius: 14px;
  margin-top: 17px;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.inline-form {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}
.inline-form > .field {
  flex: 1;
  min-width: 130px;
}
.catalog-form-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(200px, 2fr);
  gap: 18px;
}
.catalog-toolbar {
  display: flex;
  align-items: end;
  gap: 16px;
  margin-bottom: 20px;
}
.catalog-toolbar .field {
  flex: 1;
}
.catalog-list {
  display: grid;
  gap: 4px;
}
.catalog-row {
  display: grid;
  grid-template-columns: minmax(110px, .7fr) minmax(160px, 1.8fr) minmax(150px, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #111b2f65;
  font-size: 15px;
}
.catalog-row > *, .catalog-row-name { min-width: 0; overflow-wrap: anywhere; }
.catalog-row h3 { font-size: 16px; font-weight: 600; }
.catalog-row-projects { display: grid; gap: 2px; }
.catalog-toolbar .catalog-sort { flex: 0 0 140px; }
.setting-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.setting-message { grid-column: 1 / -1; margin: 0; }
.setting-message:empty { display: none; }
.setting-row input[readonly] { border-color: transparent; background: #0b122033; color: var(--muted); }
[data-page="admin-models"] .panel-head { flex-wrap: wrap; gap: 14px; }
@media (max-width: 900px) {
  .catalog-row { grid-template-columns: minmax(90px, .7fr) minmax(120px, 1fr) auto; }
  .catalog-row-projects { grid-column: 1 / 3; grid-row: 2; }
  .catalog-row > button { grid-column: 3; grid-row: 1 / 3; }
}
@media (max-width: 550px) {
  .catalog-row { grid-template-columns: minmax(0, 1fr) auto; padding: 8px 12px; gap: 2px 10px; }
  .catalog-row-name { grid-column: 1; }
  .catalog-row-projects { grid-column: 1; grid-row: 3; }
  .catalog-row > button { grid-column: 2; grid-row: 1 / 4; }
  .catalog-toolbar .catalog-sort { flex: auto; width: 100%; }
}
.catalog-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #111b2f65;
}
.catalog-card-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 15px;
}
.catalog-card-head > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.catalog-card-head h3 {
  font-size: 19px;
}
.catalog-card-head .eyebrow {
  margin-bottom: 4px;
}
.project-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.project-chip {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 9px;
  background: #0ac9e812;
  border: 1px solid #2bbdd533;
  color: #9ceaff;
  font-size: 15px;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.project-preview {
  display: grid;
  gap: 9px;
  font-size: 14px;
  color: var(--muted);
}
.catalog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.catalog-actions .btn:last-child {
  margin-left: auto;
}
.catalog-warning {
  color: var(--warning);
  margin-top: 12px;
}
.catalog-empty {
  text-align: center;
  padding: 35px 16px;
  color: var(--muted);
}
.catalog-empty .icon {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
}
.project-manager-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.setting-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(120px, 1.25fr) auto;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
}
.setting-row:last-child {
  border: 0;
}
.setting-row .small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.reason-cell {
  white-space: normal;
  min-width: 160px;
  max-width: 260px;
  overflow-wrap: anywhere;
}
.positive {
  color: var(--success);
}
.negative {
  color: var(--danger);
}
.help-list {
  display: grid;
  gap: 20px;
  margin-top: 22px;
}
.help-item {
  display: flex;
  gap: 14px;
  align-items: start;
}
.help-item p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}
.help-item .panel-icon {
  width: 35px;
  height: 35px;
  border-radius: 11px;
}
.dialog {
  border: 1px solid #6e89b43d;
  border-radius: 24px;
  background: linear-gradient(140deg, #202d48, #182139);
  color: var(--text);
  width: min(600px, calc(100vw - 32px));
  max-height: 85dvh;
  padding: 0;
  box-shadow: 0 35px 100px #0009;
  overflow: auto;
}
.dialog::backdrop {
  background: #070d1cc9;
  backdrop-filter: blur(6px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 25px;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
.dialog-head h2 {
  font-size: 20px;
}
.dialog-body {
  padding: 24px;
}
.dialog-body .result-text {
  font-size: 15px;
}
.toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 150;
  padding: 15px 22px;
  border: 1px solid #37d0cd44;
  background: #172f42;
  color: #ccfff8;
  border-radius: 14px;
  box-shadow: 0 12px 30px #0004;
  max-width: calc(100vw - 40px);
  font-size: 15px;
}
.toast.error {
  color: #ffd1d9;
  background: #402738;
  border-color: #ed708c55;
}
.auth-page {
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px;
}
.auth-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 90px;
  align-items: center;
  width: min(100%, 1020px);
}
.auth-story .brand {
  margin-bottom: 70px;
}
.auth-title {
  font-size: clamp(32px, 4.4vw, 51px);
  line-height: 1.38;
  letter-spacing: -1.5px;
}
.gradient-text {
  background: linear-gradient(95deg, #5ab4ff, #13d9e5);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auth-intro {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
  margin-top: 22px;
  max-width: 340px;
}
.auth-illustration {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 37px;
}
.auth-illustration .device-orbit {
  flex-shrink: 0;
}
.auth-features {
  display: grid;
  gap: 15px;
  font-size: 14px;
  color: #b6c8e2;
}
.auth-features > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-features .icon {
  color: #25cfed;
  width: 17px;
}
.auth-card {
  padding: 38px;
  position: relative;
}
.auth-card:before {
  content: "";
  position: absolute;
  left: 38px;
  right: 38px;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #24bcf4, transparent);
}
.auth-card h1 {
  font-size: 28px;
  margin: 10px 0;
}
.auth-card .form-grid {
  margin-top: 28px;
  gap: 18px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #7c90af;
  font-size: 13px;
  margin: 17px 0;
}
.auth-divider:before,
.auth-divider:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
.auth-foot {
  font-size: 13px;
  text-align: center;
  color: #8da1bd;
  margin-top: 22px;
}
.auth-brand-mobile {
  display: none;
}
.auth-actions {
  display: grid;
  gap: 12px;
}
.input-wrap > span {
  position: absolute;
  left: 16px;
  top: 15px;
  display: flex;
  color: #7189ad;
  pointer-events: none;
}
@media (min-width: 1600px) {
  .app-main {
    padding-left: 60px;
    padding-right: 60px;
  }
}
@media (max-width: 1100px) {
  .app-main {
    padding: 30px 24px;
    margin-left: 248px;
  }
  .sidebar {
    width: 214px;
    left: 16px;
  }
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .stat-grid {
    gap: 14px;
  }
  .stat {
    padding: 20px;
  }
  .stat-value {
    font-size: 32px;
  }
  .panel {
    padding: 22px;
  }
  .table-panel {
    padding: 0;
  }
  .auth-layout {
    gap: 45px;
  }
}
@media (max-width: 1023px) {
  .btn.drawer-close {
    display: inline-flex;
    position: absolute;
    right: 8px;
    top: 23px;
    width: 36px;
    min-height: 36px;
  }
  .mobile-bar {
    display: flex;
    position: sticky;
    top: 0;
    align-items: center;
    justify-content: space-between;
    padding: 13px 24px;
    background: #111a2ce8;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--line);
    z-index: 50;
  }
  .mobile-bar .brand {
    font-size: 21px;
  }
  .mobile-bar .brand-mark {
    width: 31px;
    height: 34px;
    border-radius: 10px;
  }
  .sidebar {
    inset: 0 auto 0 0;
    width: 260px;
    max-width: 85vw;
    border-radius: 0 25px 25px 0;
    transform: translateX(-105%);
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar .brand {
    margin-bottom: 22px;
  }
  .drawer-backdrop.open {
    display: block;
    position: fixed;
    inset: 0;
    background: #080e1cab;
    backdrop-filter: blur(4px);
    border: 0;
    z-index: 55;
  }
  .app-main {
    margin-left: 0;
    padding: 26px 24px 35px;
  }
  .header-chip {
    display: none;
  }
  .auth-layout {
    gap: 30px;
  }
  .auth-card {
    padding: 30px;
  }
  .auth-title {
    font-size: 39px;
  }
  .auth-illustration {
    gap: 8px;
  }
  .auth-illustration .device-orbit {
    width: 120px;
    height: 120px;
  }
}
@media (max-width: 767px) {
  .catalog-form-row {
    grid-template-columns: 1fr;
  }
  .catalog-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .catalog-card {
    padding: 17px;
  }
  .catalog-card-head {
    flex-wrap: wrap;
    gap: 10px;
  }
  .catalog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .catalog-actions .btn:last-child {
    margin-left: 0;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .stat-grid > .stat:first-child {
    grid-column: 1/-1;
    min-height: 135px;
  }
  .stat {
    min-height: 125px;
    padding: 20px;
  }
  .stat .eyebrow {
    margin-bottom: 13px;
  }
  .stat-value {
    font-size: 30px;
  }
  .stat-unit {
    font-size: 13px;
  }
  .stat-symbol {
    right: 20px;
    top: 22px;
  }
  .stat:not(.accent) .stat-symbol {
    display: none;
  }
  .stat.accent .stat-value {
    font-size: 40px;
  }
  .stat.accent:after {
    right: -20px;
    top: -23px;
    width: 200px;
    height: 200px;
  }
  .split,
  .split-wide,
  .two-cards {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .app-main {
    padding: 25px 16px;
  }
  .mobile-bar {
    padding: 12px 16px;
  }
  .page-header {
    margin-bottom: 24px;
  }
  .page-header h1 {
    font-size: 29px;
  }
  .page-header .muted {
    font-size: 14px;
  }
  .panel {
    border-radius: 20px;
    padding: 21px;
  }
  .table-panel {
    padding: 0;
  }
  .panel-head {
    margin-bottom: 21px;
  }
  .table-panel > .panel-head {
    padding: 22px 20px 0;
  }
  .result-panel {
    min-height: 350px;
  }
  .result-empty {
    padding: 5px 0 22px;
  }
  .result-empty .device-orbit {
    width: 125px;
    height: 125px;
  }
  .page-footer {
    font-size: 12px;
    flex-wrap: wrap;
  }
  .setting-row {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .setting-row > label {
    grid-column: 1/-1;
  }
  .dialog-head,
  .dialog-body {
    padding: 20px;
  }
  .pagination {
    padding: 16px;
    gap: 8px;
  }
  .pagination .btn {
    min-height: 40px;
    padding: 9px 12px;
  }
  .pagination .page-info { text-align: right; flex-basis: 120px; }
  .pagination .page-actions { width: 100%; justify-content: flex-end; }
  .auth-page {
    padding: 26px 18px;
  }
  .auth-layout {
    display: block;
    max-width: 440px;
  }
  .auth-story {
    display: none;
  }
  .auth-brand-mobile {
    display: flex;
    justify-content: center;
    margin-bottom: 35px;
  }
  .auth-card {
    padding: 28px 24px;
  }
  .auth-card h1 {
    font-size: 27px;
  }
  .auth-card .eyebrow {
    margin-top: 6px;
  }
  .toast {
    bottom: 18px;
    right: 18px;
  }
  .form-actions {
    display: grid;
    gap: 10px;
  }
  .user-summary .row {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

.model-picker { width:100%; text-align:left; min-height:48px; padding:12px 16px; border:1px solid var(--line); border-radius:12px; background:var(--card); color:var(--text); cursor:pointer; font:inherit; }
.model-picker::after { content:'⌕'; float:right; margin-left:12px; color:var(--cyan); }
.model-picker:disabled { opacity:.55; cursor:default; }
.model-options { display:grid; gap:8px; max-height:50vh; overflow-y:auto; margin-top:12px; }
.model-option { display:flex; flex-direction:column; gap:4px; width:100%; padding:12px 16px; text-align:left; border:1px solid var(--line); border-radius:12px; background:transparent; color:var(--text); font:inherit; cursor:pointer; overflow-wrap:anywhere; }
.model-option span { color:var(--muted); font-size: 15px; }
.model-option:hover, .model-option.selected { border-color:#00bfff; background:rgba(0,191,255,.08); }
.model-option:focus-visible, .model-picker:focus-visible { outline:2px solid #00bfff; outline-offset:2px; }
#model-search { margin-top:8px; }

.lc-result-not-found {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0;
  padding: 12px 14px;
  border: 1px solid #19bfff;
  border-radius: 18px;
  background: linear-gradient(135deg, #098bff1c, #11d2e909);
  box-shadow: inset 0 0 24px #098bff08;
  color: #d9f2ff;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.lc-result-not-found > div { min-width: 0; flex: 1; }
.lc-result-info-icon {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  height: 34px;
  border: 1px solid #11d2e966;
  border-radius: 50%;
  color: #62dfff;
  background: #098bff1f;
  font-size: 22px;
  font-weight: 700;
}
.lc-result-not-found-title { display: block; color: #66dfff; font-size: 22px; line-height: 1.5; }
.lc-result-thanks { margin: 2px 0 0; color: #c0def1; }
.lc-result-caution { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid #19bfff33; color: #b8d4ec; font-size: 16px; }
@media (max-width: 480px) {
  .lc-result-not-found { padding: 12px; gap: 10px; }
  .lc-result-not-found-title { font-size: 20px; }
}

/* Compact rows retain readable text and usable actions. */
td .btn, .catalog-row > .btn { min-height: 34px; padding: 5px 10px; line-height: 1.3; }
td input, td select { min-height: 34px; padding-top: 5px; padding-bottom: 5px; }
@media (pointer: coarse) { td .btn, .catalog-row > .btn { min-height: 44px; } }

/* Compact result spacing on both the check page and history dialogs. */
.result-panel .device-line, .dialog-body .device-line { margin: 10px 0; padding: 8px 10px; }
.result-panel:has(.result-text) > .panel-head { margin-bottom: 10px; }

/* Original Flaticon keyhole silhouette; mask follows each component's color. */
.keyhole-icon {
  display: inline-block;
  background-color: currentColor;
  -webkit-mask: url("/web/assets/keyhole-717058.png") center / contain no-repeat;
  mask: url("/web/assets/keyhole-717058.png") center / contain no-repeat;
}
.brand-mark .keyhole-icon { width: 27px; height: 27px; }
.mobile-bar .brand-mark .keyhole-icon { width: 23px; height: 23px; }
.page-footer { flex-wrap: wrap; }
.icon-credit { font-size: 13px; color: #9aabc6; }
.icon-credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.auth-icon-credit { text-align: center; margin: 8px 0 0; }

/* Keep the full domain on one line in the navigation. */
.brand > span:last-child { white-space: nowrap; }
.brand-mark { flex-shrink: 0; }
.sidebar > .brand { font-size: 20px; gap: 8px; }

/* Login-only aurora: soft light ribbons behind the opaque, readable form. */
.auth-aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse at 24% 38%, #12385a38, transparent 65%);
}
.auth-aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #11152208, #11152220 55%, #11152285),
    linear-gradient(0deg, #11152299, transparent 45%);
}
.aurora-ribbon {
  position: absolute;
  width: 95vw;
  height: 48vh;
  border-radius: 48% 52% 64% 36% / 65% 35% 65% 35%;
  filter: blur(48px);
  transform-origin: center;
  will-change: transform;
  animation: aurora-drift 20s ease-in-out infinite alternate;
}
.aurora-cyan {
  top: 7%;
  left: -27%;
  background: radial-gradient(ellipse, #19d8e64f 0%, #13bacc26 36%, transparent 70%);
  transform: rotate(-24deg) scaleY(.7);
}
.aurora-blue {
  top: 39%;
  left: -18%;
  background: radial-gradient(ellipse, #197dff59 0%, #235ee52b 38%, transparent 70%);
  animation-name: aurora-swell;
  animation-duration: 24s;
  animation-delay: -9s;
}
.aurora-violet {
  top: -21%;
  left: 23%;
  background: radial-gradient(ellipse, #a365ed54 0%, #7053d32e 36%, transparent 70%);
  animation-duration: 26s;
  animation-delay: -14s;
}
@keyframes aurora-drift {
  from { transform: translate3d(-3%, -5%, 0) rotate(-24deg) scale(1, .7); }
  to { transform: translate3d(12%, 15%, 0) rotate(-9deg) scale(1.12, 1); }
}
@keyframes aurora-swell {
  from { transform: translate3d(0, 10%, 0) rotate(18deg) scale(1, .65); }
  to { transform: translate3d(11%, -14%, 0) rotate(-6deg) scale(1.1, .95); }
}
@media (max-width: 767px) {
  .aurora-ribbon { width: 150vw; height: 48vh; filter: blur(32px); opacity: .8; }
  .aurora-cyan { left: -65%; top: -5%; }
  .aurora-blue { left: -55%; top: 48%; }
  .aurora-violet { left: 5%; top: -18%; }
}
@media (prefers-reduced-motion: reduce) {
  .aurora-ribbon { animation: none; will-change: auto; }
}
