:root {
  color-scheme: light;
  --canvas: #f2f4f8;
  --workspace: #f7f8fa;
  --surface: #fff;
  --text: #253043;
  --muted: #728097;
  --border: #e4e9f1;
  --blue: #2468e8;
  --selected: #edf3ff;
  --danger: #c34545;
  --radius: 9px;
  --card-radius: 13px;
  font-family:
    "Microsoft YaHei UI",
    "PingFang SC",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--canvas);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
a {
  color: var(--blue);
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 600;
}
input,
textarea {
  min-width: 0;
  color: var(--text);
}
input::placeholder,
textarea::placeholder {
  color: #929bae;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #b4ccff;
  outline-offset: 3px;
}
input:focus,
textarea:focus {
  outline: none;
}
code {
  font-family: Consolas, monospace;
  font-size: 0.93em;
  overflow-wrap: anywhere;
}
.icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[hidden] {
  display: none !important;
}
.surface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
}
.muted {
  color: var(--muted);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  min-width: 0;
}
.brand img {
  flex: none;
}
.brand span {
  overflow-wrap: anywhere;
}
.icon-btn {
  border: 0;
  background: transparent;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  color: #667389;
  flex: none;
  padding: 0;
}
.icon-btn:hover {
  background: #f0f3f8;
  color: var(--text);
}
.icon-btn .icon {
  width: 17px;
  height: 17px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 30px;
  border: 1px solid #dce2eb;
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  white-space: normal;
}
.btn:hover {
  background: #f6f8fc;
  border-color: #c8d1e0;
}
.btn.primary {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}
.btn.primary:hover {
  background: #1958cf;
}
.btn.danger {
  background: #fff4f4;
  border-color: #f0d0d0;
  color: var(--danger);
}
.btn.quiet {
  border-color: transparent;
  background: transparent;
  color: #627188;
}
.btn.quiet:hover {
  background: #edf1f7;
}
.btn .icon {
  width: 15px;
  height: 15px;
}
.action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.field-label {
  display: block;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 7px;
}
.input-shell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid #dce3ed;
  background: #fff;
  border-radius: var(--radius);
  padding: 0 10px;
}
.input-shell:focus-within {
  border-color: #729fef;
  box-shadow: 0 0 0 3px #2468e80b;
}
.input-shell > input {
  width: 100%;
  border: 0;
  box-shadow: none;
  background: transparent;
  appearance: none;
  line-height: 1.5;
  padding: 8px 0;
  margin: 0;
  min-width: 0;
}
.input-shell > input::-ms-reveal {
  display: none;
}
.input-shell > .icon {
  color: #8490a3;
}
.input-shell > .icon-btn {
  margin-right: -4px;
}
.field-help {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 6px;
}
.form-error {
  color: var(--danger);
  font-size: 13px;
  line-height: 1.6;
  min-height: 22px;
  margin-top: 8px;
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.8;
  color: #7b6b4d;
  background: #faf8f2;
  padding: 10px 12px;
  border-radius: 9px;
}
.notice .icon {
  margin-top: 3px;
}
.toast {
  position: fixed;
  z-index: 100;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  background: #283449;
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 24px #18263a15;
  font-size: 13px;
  line-height: 1.5;
}
.spinner {
  width: 14px;
  height: 14px;
  display: inline-block;
  border: 1.6px solid #cedcf2;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex: none;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes in {
  from {
    opacity: 0.5;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.enter-view {
  animation: in 0.16s ease-out;
}
.receiver-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.public-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 504px;
  width: 100%;
  margin: 0 auto;
  padding: 25px 12px;
}
.public-header .brand {
  font-size: 17px;
}
.header-caption {
  color: var(--muted);
  font-size: 13px;
}
.receiver-layout {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 504px;
  padding: 16px 12px 24px;
  margin: 0 auto;
  align-items: stretch;
}
.receive-card {
  padding: 24px;
}
.session-expired {
  padding: 24px;
}
.session-expired-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 10px;
  color: #b05c5c;
  background: #fcf1f1;
}
.session-expired-icon .icon {
  width: 22px;
  height: 22px;
}
.session-expired h1 {
  font-size: 20px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.session-expired-summary {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.session-expired-note {
  margin-top: 20px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  font-size: 13px;
  line-height: 1.8;
}
.session-expired-note strong {
  font-weight: 600;
}
.session-expired-note p {
  margin-top: 5px;
  color: var(--muted);
}
.session-expired-help {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
@media (max-width: 760px) {
  .session-expired {
    padding: 20px 16px;
  }
  .session-expired h1 {
    font-size: 18px;
  }
}
.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
.card-heading h1 {
  font-size: 22px;
  letter-spacing: 0;
  line-height: 1.5;
}
.card-heading p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 5px;
}
.account-phone {
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.heading-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f0f3f8;
  color: #65748b;
  flex: none;
}
.heading-icon .icon {
  width: 20px;
  height: 20px;
}
.inline-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.8;
  color: #6a7a90;
  margin: 20px 0 18px;
  min-height: 24px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9ca9ba;
  flex: none;
}
.inline-status.is-error {
  color: var(--danger);
}
.inline-status.is-error .status-dot {
  background: var(--danger);
}
.inline-status.is-success {
  color: #348163;
}
.inline-status.is-success .status-dot {
  background: #348163;
}
.result-fields {
  display: grid;
  gap: 16px;
}
.code-field {
  min-height: 52px;
  background: #f9fbff;
}
.code-field > input {
  font-family: Consolas, monospace;
  letter-spacing: 0;
  font-weight: 600;
  font-size: 26px;
  line-height: 1.35;
}
.code-field > input::placeholder {
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0;
  font-weight: 400;
}
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding-top: 14px;
}
.freeze-section {
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding-top: 15px;
}
.freeze-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.freeze-heading h2 {
  font-size: 13px;
  font-weight: 500;
}
.freeze-dates {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.8;
}
.freeze-dates > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 10px;
}
.freeze-dates dt,
.freeze-checked {
  color: var(--muted);
}
.freeze-dates dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.freeze-checked {
  font-size: 11px;
  line-height: 1.8;
  margin-top: 9px;
}
.freeze-checked:empty {
  display: none;
}
.related-links a {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
}
.related-links .icon {
  width: 12px;
  height: 12px;
}
.boot-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 32px;
  color: var(--muted);
  font-size: 13px;
}
.control-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.control-heading h2 {
  font-size: 15px;
  line-height: 1.6;
}
.control-heading p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
}
.configuration-view {
  max-width: 880px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}
.configuration-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 12px;
  padding-bottom: 16px;
}
.configuration-group {
  border-top: 1px solid var(--border);
}
.configuration-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
  padding: 15px 0;
}
.configuration-group summary::-webkit-details-marker {
  display: none;
}
.configuration-group[open] summary > .icon {
  transform: rotate(180deg);
}
.configuration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
  padding: 0 0 18px;
}
.configuration-field {
  min-width: 0;
}
.configuration-field .input-shell {
  min-height: 38px;
}
.configuration-textarea {
  display: block;
  width: 100%;
  min-height: 80px;
  resize: vertical;
  border: 1px solid #dce3ed;
  background: #fff;
  border-radius: 9px;
  padding: 9px 10px;
  line-height: 1.8;
}
.configuration-textarea:focus {
  border-color: #729fef;
  box-shadow: 0 0 0 3px #2468e80b;
}
.switch-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.configuration-save {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.configuration-field [aria-pressed="true"] {
  color: var(--danger);
  background: #fff4f4;
}
.security-view {
  max-width: 440px;
}
.security-view > .field-label {
  margin-top: 16px;
}
.setup-card {
  width: 400px;
}
.setup-card .field-label {
  margin-top: 15px;
}
.robot-view,
.installation-view {
  max-width: 900px;
}
.robot-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: #fff;
  border-block: 1px solid var(--border);
  padding: 14px 16px;
}
.robot-state {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  min-width: 0;
}
.robot-state strong {
  font-weight: 500;
  overflow-wrap: anywhere;
}
.runtime-tools {
  margin: 10px 0;
}
.runtime-log-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 15px 0 10px;
}
.runtime-log-heading h3,
.installation-checks h3 {
  font-size: 13px;
}
.runtime-log-heading span {
  font-size: 11px;
}
.runtime-log {
  padding: 14px;
  margin: 0;
  min-height: 110px;
  max-height: 270px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  color: #566478;
  font-family: Consolas, monospace;
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.8;
}
.installation-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}
.installation-steps li {
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.installation-steps h3 {
  font-size: 14px;
  margin-bottom: 8px;
}
.installation-steps p {
  font-size: 13px;
  line-height: 1.9;
  color: #67758c;
  margin-bottom: 10px;
}
.installation-command {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: #edf1f7;
  border-radius: 8px;
  margin: 10px 0;
}
.installation-command code {
  flex: 1;
  font-size: 12px;
  white-space: pre-wrap;
}
.installation-checks {
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.dependency-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 18px;
  padding: 14px 0;
}
.dependency-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 10px;
  font-size: 12px;
  padding-block: 5px;
}
@media (max-width: 760px) {
  .control-heading {
    gap: 10px;
    flex-wrap: wrap;
  }
  .configuration-view {
    padding: 16px;
  }
  .configuration-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .configuration-field input,
  .configuration-textarea {
    font-size: 16px;
  }
  .configuration-group summary {
    min-height: 48px;
  }
  .configuration-links {
    gap: 8px 14px;
    line-height: 2;
  }
  .robot-status-bar {
    padding: 12px;
    gap: 10px;
  }
  .robot-status-bar .action-row {
    gap: 8px;
  }
  .dependency-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 12px;
  }
  .dependency-row {
    flex-wrap: wrap;
  }
  .installation-steps p {
    font-size: 13px;
  }
  .runtime-log {
    font-size: 12px;
  }
}
.login-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
.login-card {
  width: 360px;
  max-width: 100%;
  padding: 28px;
}
.login-card h1 {
  font-size: 20px;
  margin-top: 26px;
}
.login-card > .muted {
  font-size: 13px;
  line-height: 1.8;
  margin: 8px 0 22px;
}
.login-card .input-shell {
  min-height: 40px;
}
.login-submit {
  width: 100%;
  min-height: 36px;
  margin-top: 7px;
}
.text-link {
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 22px;
}
.text-link .icon {
  width: 13px;
  height: 13px;
}
.notice-text {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 16px;
}
.admin-shell {
  display: flex;
  min-height: 100dvh;
}
.admin-sidebar {
  width: 184px;
  flex: none;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100dvh;
  background: #f0f3f8;
  border-right: 1px solid var(--border);
}
.sidebar-brand {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
}
.sidebar-brand .brand {
  flex: 1;
  gap: 8px;
  font-size: 15px;
}
.sidebar-brand .icon-btn {
  width: 26px;
  height: 28px;
}
.main-nav {
  padding: 12px 9px;
  display: grid;
  gap: 5px;
}
.main-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 37px;
  padding: 8px 11px;
  border-radius: 9px;
  color: #647087;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.main-nav a:hover {
  background: #e9eef6;
}
.main-nav a[aria-current="page"] {
  color: #245ccb;
  background: #e4ecfb;
}
.main-nav .icon {
  width: 17px;
  height: 17px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 12px 16px;
}
.sidebar-bottom a[aria-current="page"] {
  color: var(--blue);
  background: var(--selected);
}
.admin-main {
  flex: 1;
  min-width: 0;
  min-height: 100dvh;
  background: var(--workspace);
}
.workbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 22px;
  border-bottom: 1px solid var(--border);
  background: #ffffffd9;
}
.workbar h1 {
  font-size: 16px;
  font-weight: 600;
  min-width: 0;
  line-height: 1.6;
}
.workbar-label {
  font-size: 12px;
  color: #9ba4b3;
}
.workbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: none;
}
.workbar-actions > .btn {
  font-size: 12px;
}
.workbar #mobile-menu {
  display: none;
}
.request-status {
  min-height: 25px;
  padding: 3px 22px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}
.request-status.is-error {
  color: var(--danger);
}
.view-content {
  padding: 0 22px 24px;
  max-width: 1550px;
  margin: auto;
}
.view-intro {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 15px;
}
.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 17px 0;
  margin-bottom: 18px;
}
.metric {
  padding: 0 22px;
  border-right: 1px solid var(--border);
  min-width: 0;
}
.metric:last-child {
  border: 0;
}
.metric-label {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.metric-number {
  font-size: 24px;
  line-height: 1.5;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}
.metric-note {
  font-size: 11px;
  color: #8490a3;
  margin-top: 3px;
  line-height: 1.6;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
  gap: 14px;
  align-items: start;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.section-head h2 {
  font-size: 13px;
}
.section-head a {
  font-size: 12px;
}
.section-content {
  padding: 15px 16px;
}
.config-list {
  display: grid;
  gap: 14px;
}
.config-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}
.status-tag {
  justify-self: start;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1.65;
  padding: 2px 7px;
  border-radius: 5px;
  color: #6d7c90;
  background: #f1f4f8;
}
.status-tag.good {
  color: #378569;
  background: #eef7f2;
}
.status-tag.bad {
  color: #b05c5c;
  background: #fcf1f1;
}
.status-tag.neutral {
  color: #756b51;
  background: #f7f5ef;
}
.status-tag .tiny-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.guide-note {
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  line-height: 1.85;
  color: var(--muted);
}
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}
.panel-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.search-field {
  width: 260px;
  min-height: 30px;
  padding: 0 9px;
  gap: 8px;
  border-radius: 8px;
}
.search-field > input {
  padding: 5px 0;
  font-size: 12px;
  line-height: 18px;
}
.search-field > .icon {
  width: 16px;
  height: 16px;
}
.toolbar-end {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}
.dropdown {
  position: relative;
}
.dropdown-trigger {
  min-width: 100px;
  justify-content: space-between;
}
.dropdown-trigger .icon {
  width: 13px;
  height: 13px;
}
.dropdown-list {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  z-index: 10;
  min-width: 140px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 5px;
  border-radius: 12px;
  box-shadow: 0 6px 24px #26344c10;
  animation: in 0.14s ease-out;
}
.dropdown-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  background: transparent;
  width: 100%;
  border-radius: 7px;
  text-align: left;
  color: var(--text);
  padding: 8px 9px;
  font-size: 12px;
}
.dropdown-list button[aria-selected="true"] {
  background: var(--selected);
  color: var(--blue);
}
.dropdown-list button:hover {
  background: #f4f7fc;
}
.table-head,
.data-row {
  display: grid;
  gap: 12px;
  align-items: center;
  padding: 0 16px;
}
.table-head {
  min-height: 35px;
  color: #8490a2;
  background: #fbfcfe;
  font-size: 11px;
  border-bottom: 1px solid var(--border);
}
.data-row {
  min-height: 62px;
  border-bottom: 1px solid #edf0f5;
  font-size: 12px;
  line-height: 1.6;
}
.data-row:last-child {
  border-bottom: 0;
}
.links-table .table-head,
.links-table .data-row {
  grid-template-columns:
    minmax(180px, 1.8fr) minmax(95px, 0.9fr) minmax(120px, 1fr)
    103px;
}
.row-main {
  min-width: 0;
}
.clipboard-helper {
  position: fixed;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  inset: 0 auto auto 0;
}
.row-primary {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  overflow-wrap: anywhere;
}
.row-secondary {
  font-size: 11px;
  color: #8591a5;
  margin-top: 3px;
  overflow-wrap: anywhere;
}
.link-id {
  font-size: 11px;
}
.row-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: flex-end;
}
.row-actions .btn {
  min-height: 26px;
  font-size: 11px;
  padding: 4px 8px;
}
.users-table .table-head,
.users-table .data-row {
  grid-template-columns: minmax(150px, 1.6fr) minmax(100px, 1fr) 100px 56px;
}
.user-name {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.avatar {
  height: 28px;
  width: 28px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  color: #65738b;
  background: #eef2f8;
  font-size: 11px;
}
.logs-table .table-head,
.logs-table .data-row {
  grid-template-columns:
    minmax(120px, 1.1fr) minmax(130px, 1.4fr) minmax(80px, 1fr)
    70px;
}
.logs-table .data-row {
  min-height: 47px;
}
.empty-state {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
}
.empty-state .icon {
  width: 22px;
  height: 22px;
  margin: 0 auto 12px;
  color: #96a4b8;
}
.empty-state strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #68778c;
  margin-bottom: 5px;
}
.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding: 10px 14px;
  font-size: 11px;
  color: var(--muted);
}
.pagination .btn {
  font-size: 11px;
  min-height: 26px;
}
.form-panel {
  max-width: 760px;
  padding: 20px;
}
.form-panel h2 {
  font-size: 14px;
  margin-bottom: 6px;
}
.form-panel .view-intro {
  margin-bottom: 19px;
}
.form-section {
  padding-top: 17px;
  margin-top: 20px;
  border-top: 1px solid var(--border);
}
.form-section h3 {
  font-size: 13px;
  margin-bottom: 14px;
}
.settings-form .input-shell {
  max-width: 440px;
  min-height: 36px;
}
.ads-row {
  display: grid;
  grid-template-columns: minmax(100px, 0.65fr) minmax(0, 1.35fr);
  gap: 10px;
  margin-bottom: 11px;
}
.ads-row .input-shell {
  max-width: none;
}
.ads-row .field-label {
  font-size: 12px;
  color: #738096;
}
.save-row {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.save-note {
  font-size: 12px;
  color: var(--muted);
}
.proxy-textarea {
  width: 100%;
  min-height: 190px;
  padding: 12px;
  resize: vertical;
  border: 1px solid #dce3ed;
  border-radius: 9px;
  font-family: Consolas, monospace;
  font-size: 13px;
  line-height: 1.9;
  background: #fafcff;
}
.proxy-textarea:focus {
  border-color: #729fef;
  box-shadow: 0 0 0 3px #2468e80b;
}
.features-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 17px 18px;
  border-bottom: 1px solid var(--border);
  min-width: 0;
}
.feature-item:nth-child(odd) {
  border-right: 1px solid var(--border);
}
.feature-number {
  font-size: 11px;
  color: #9aa6b7;
  line-height: 22px;
  font-variant-numeric: tabular-nums;
  flex: none;
  width: 18px;
}
.feature-item h2 {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
}
.feature-item p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.75;
}
.feature-item code {
  display: block;
  font-size: 10px;
  color: #9aa5b7;
  margin-top: 7px;
}
.entity-dialog {
  border: 1px solid var(--border);
  padding: 0;
  background: #fff;
  color: var(--text);
  border-radius: 16px;
  max-width: calc(100% - 32px);
  width: 440px;
  max-height: calc(100dvh - 36px);
  box-shadow: 0 16px 60px #24345020;
  overflow: auto;
}
.entity-dialog::backdrop {
  background: #28375035;
}
.entity-dialog[open] {
  animation: in 0.16s ease-out;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
}
.dialog-heading h2 {
  font-size: 15px;
}
#dialog-body {
  padding: 18px;
  font-size: 13px;
  line-height: 1.8;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
}
.account-login-form,
.account-login-result {
  display: grid;
  gap: 12px;
}
.captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px 44px;
  align-items: center;
  gap: 8px;
}
.login-screen>.login-card {
  width: min(360px, 100%);
  min-width: 0;
}
.captcha-row>.input-shell {
  min-width: 0;
}
#login-form>.field-label:not(:first-child) {
  margin-top: 12px;
}
.captcha-row img {
  width: 130px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
}
.history-summary,
.account-history li {
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.history-heading,
.history-event {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.history-heading { margin-top: 20px; font-size: 12px; }
.history-heading h3 { font-size: 13px; }
.history-heading span,
.history-event time { color: var(--muted); font-size: 11px; }
.account-history { list-style: none; margin: 10px 0 0; padding: 0; }
.account-history li { border-top: 1px solid var(--border); padding: 12px 0; }
.checkpoint-history { margin-top: 0; }
.checkpoint-history>li:first-child { border-top: 0; padding-top: 0; }
.checkpoint-history>li:last-child { padding-bottom: 0; }
.history-event { margin-bottom: 6px; }
.history-counts { display: grid; gap: 4px; margin: 8px 0 0; }
.history-counts>div { display: grid; grid-template-columns: 58px minmax(0,1fr); gap: 8px; }
.history-counts dt { color: var(--muted); }
.history-counts dd { margin: 0; }
.support-create { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 16px; }
.support-create .input-shell { width: 220px; }
.support-create .form-error { flex-basis: 100%; }
.support-link-row { display: grid; grid-template-columns: minmax(100px,1fr) minmax(180px,2fr) auto; align-items: center; gap: 12px; border-top: 1px solid var(--border); padding: 14px 0; }
.support-link-row strong { font-size: 13px; }
.support-header { display: flex; justify-content: space-between; align-items: center; height: 56px; padding: 0 20px; border-bottom: 1px solid var(--border); background: #fff; }
.support-main { max-width: 1100px; margin: 0 auto; padding: 16px; }
.support-page .panel-toolbar { padding-left: 0; padding-right: 0; }
.support-account { display: grid; grid-template-columns: 160px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--border); }
.support-account h2 { font-size: 13px; }
.support-account p { font-size: 12px; line-height: 1.8; }
.support-account span { font-size: 12px; }
.support-dialog-body { padding: 16px 18px; }
@media (max-width:760px) {
  .support-link-row { grid-template-columns: minmax(0,1fr) auto; }
  .support-link-row>.input-shell { grid-column: 1 / -1; grid-row: 2; }
  .support-main { padding: 10px 12px; }
  .support-account { grid-template-columns: minmax(0,1fr) auto; gap: 6px 10px; }
  .support-account-status { grid-row: 2; grid-column: 1 / -1; }
  .support-account>button { grid-row: 1; grid-column: 2; }
  .captcha-row { grid-template-columns: minmax(0,1fr) 100px 44px; gap: 6px; }
  .captcha-row img { width: 100px; }
  .login-screen>.login-card { padding: 22px 16px; }
}
.account-login-form .field-help,
.account-login-result .field-help {
  margin: 0;
}
.account-login-form .form-error:empty {
  display: none;
}
.account-login-form .input-shell,
.account-login-result .input-shell {
  min-height: 38px;
}
@media (max-width: 760px) {
  .account-login-form .input-shell > input,
  .account-login-result .input-shell > input {
    font-size: 16px;
  }
  .links-table [data-add-account] {
    white-space: nowrap;
  }
}
.detail-list {
  display: grid;
  gap: 12px;
}
.detail-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  font-size: 12px;
}
.detail-row dt {
  color: var(--muted);
}
.detail-row dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.dialog-link {
  margin-top: 18px;
}
.dialog-link .input-shell {
  gap: 5px;
  font-size: 12px;
}
.dialog-link input {
  font-size: 12px;
}
.switch {
  width: 36px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  background: #c3ccda;
  padding: 0;
  position: relative;
  flex: none;
  box-shadow: none;
}
.switch::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.14s ease;
}
.switch[aria-checked="true"] {
  background: var(--blue);
}
.switch[aria-checked="true"]::after {
  transform: translateX(16px);
}
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  margin-top: 18px;
  padding-top: 16px;
  gap: 16px;
}
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: #28375035;
}
.admin-shell.is-collapsed .admin-sidebar {
  width: 64px;
}
.admin-shell.is-collapsed .sidebar-brand {
  padding: 10px;
  justify-content: center;
}
.admin-shell.is-collapsed .sidebar-brand .brand {
  display: none;
}
.admin-shell.is-collapsed .main-nav a {
  justify-content: center;
  padding: 10px;
}
.admin-shell.is-collapsed .main-nav a span {
  display: none;
}
.admin-shell.is-collapsed .sidebar-bottom {
  padding: 12px 17px;
}
@media (max-width: 1100px) {
  .workbar {
    padding-inline: 16px;
  }
  .view-content {
    padding-inline: 16px;
  }
  .request-status {
    padding-inline: 16px;
  }
  .overview-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(230px, 1fr);
  }
  .metric {
    padding-inline: 16px;
  }
  .links-table .table-head,
  .links-table .data-row {
    grid-template-columns: minmax(120px, 1.5fr) 83px minmax(88px, 1fr) 97px;
    gap: 8px;
    padding-inline: 12px;
  }
}
@media (max-width: 760px) {
  .public-header {
    padding: 18px 16px;
  }
  .receiver-layout {
    padding: 12px 16px 20px;
    gap: 12px;
    max-width: 504px;
  }
  .receive-card {
    padding: 18px 16px;
  }
  .card-heading {
    margin-bottom: 18px;
  }
  .card-heading h1 {
    font-size: 20px;
  }
  .receiver-page .input-shell > input {
    font-size: 16px;
  }
  .code-field > input {
    font-size: 27px !important;
  }
  .admin-sidebar,
  .admin-shell.is-collapsed .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 184px;
    z-index: 30;
    transform: translateX(-100%);
    transition: transform 0.16s ease-out;
    height: 100dvh;
  }
  .admin-shell.nav-open .admin-sidebar {
    transform: translateX(0);
  }
  .admin-shell.is-collapsed .sidebar-brand .brand {
    display: flex;
  }
  .admin-shell.is-collapsed .main-nav a {
    justify-content: flex-start;
    padding: 8px 11px;
  }
  .admin-shell.is-collapsed .main-nav a span {
    display: inline;
  }
  .admin-shell.is-collapsed .sidebar-bottom {
    padding: 12px 16px;
  }
  .sidebar-brand,
  .admin-shell.is-collapsed .sidebar-brand {
    padding: 10px 12px;
  }
  .sidebar-brand .icon-btn {
    width: 32px;
    height: 32px;
  }
  .main-nav a {
    min-height: 44px;
  }
  .sidebar-bottom .icon-btn {
    width: 44px;
    height: 44px;
  }
  .admin-main {
    width: 100%;
  }
  .workbar {
    padding: 5px 12px;
    gap: 8px;
    min-height: 50px;
  }
  .workbar h1 {
    font-size: 15px;
  }
  .workbar-label {
    display: none;
  }
  .workbar #mobile-menu {
    display: grid;
  }
  .workbar-actions {
    gap: 3px;
  }
  .workbar-actions .btn {
    font-size: 11px;
    padding-inline: 6px;
  }
  .workbar-actions .btn .icon {
    width: 13px;
    height: 13px;
  }
  .request-status {
    padding-inline: 16px;
    min-height: 25px;
  }
  .view-content {
    padding: 0 16px 20px;
  }
  .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
    margin-bottom: 12px;
  }
  .metric {
    padding: 12px 15px;
  }
  .metric:nth-child(2) {
    border-right: 0;
  }
  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }
  .metric-number {
    font-size: 21px;
    margin-top: 2px;
  }
  .metric-note {
    font-size: 11px;
  }
  .overview-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .overview-grid .logs-table .table-head,
  .overview-grid .logs-table .data-row {
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }
  .overview-grid .logs-table .data-row > :nth-child(4) {
    display: none;
  }
  .overview-grid .logs-table .data-row {
    padding: 9px 14px;
  }
  .overview-grid .logs-table .table-head > :nth-child(3),
  .overview-grid .logs-table .table-head > :nth-child(4) {
    display: none;
  }
  .panel-toolbar {
    padding: 7px 10px;
    gap: 4px 10px;
  }
  .search-field {
    width: auto;
    flex: 1;
    min-width: 150px;
    min-height: 34px;
  }
  .search-field > input {
    font-size: 16px;
    line-height: 20px;
  }
  .toolbar-end {
    font-size: 11px;
  }
  .dropdown-list {
    right: 0;
    left: auto;
  }
  .dropdown-list button {
    min-height: 44px;
  }
  .table-head {
    display: none;
  }
  .links-table .data-row {
    grid-template-columns: minmax(0, 1fr) 93px;
    padding: 12px;
    gap: 5px 10px;
  }
  .links-table .data-row .row-main {
    grid-column: 1;
    grid-row: 1/3;
  }
  .links-table .data-row .link-status {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }
  .links-table .data-row .created-cell {
    grid-column: 1;
    font-size: 11px;
    color: var(--muted);
  }
  .links-table .data-row .row-actions {
    grid-column: 2;
    grid-row: 2/4;
  }
  .users-table .data-row {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 5px 10px;
    padding: 10px 12px;
  }
  .users-table .data-row .user-name {
    grid-column: 1;
    grid-row: 1/3;
  }
  .users-table .data-row .username-cell {
    grid-column: 1;
    grid-row: 3;
    padding-left: 38px;
    font-size: 11px;
    color: var(--muted);
  }
  .users-table .data-row .language-cell {
    grid-column: 1;
    grid-row: 4;
    padding-left: 38px;
    font-size: 11px;
    color: var(--muted);
  }
  .users-table .data-row .row-actions {
    grid-column: 2;
    grid-row: 1/5;
  }
  .logs-table .data-row {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px 12px;
    gap: 5px;
  }
  .logs-table .data-row > :nth-child(2) {
    grid-column: 1;
    grid-row: 2;
    font-size: 11px;
    overflow-wrap: anywhere;
  }
  .logs-table .data-row > :nth-child(3) {
    grid-column: 2;
    grid-row: 1;
  }
  .logs-table .data-row > :nth-child(4) {
    grid-column: 2;
    grid-row: 2;
    font-size: 11px;
  }
  .form-panel {
    padding: 16px;
  }
  .ads-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
  }
  .form-panel .input-shell > input {
    font-size: 16px;
  }
  .features-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature-item {
    padding: 14px;
  }
  .feature-item:nth-child(odd) {
    border-right: 0;
  }
  .feature-item h2 {
    font-size: 14px;
  }
  .feature-item p {
    font-size: 13px;
  }
  .feature-item code {
    font-size: 11px;
  }
  .form-panel .proxy-textarea {
    font-size: 16px;
  }
  .entity-dialog {
    width: 400px;
  }
  .dialog-actions {
    gap: 10px;
  }
  .dialog-actions .btn {
    min-height: 36px;
  }
  .icon-btn {
    width: 44px;
    height: 44px;
    position: relative;
    background: transparent;
    border-radius: 10px;
  }
  .icon-btn:hover {
    background: transparent;
  }
  .input-shell > .icon-btn {
    width: 40px;
    height: 40px;
  }
  .receiver-page .input-shell {
    min-height: 42px;
  }
  .admin-page .btn {
    min-height: 36px;
  }
  .admin-page .row-actions .btn {
    min-height: 34px;
    padding-inline: 8px;
  }
  .btn {
    position: relative;
    margin-top: 4px;
    margin-bottom: 4px;
  }
  .btn::after {
    content: "";
    position: absolute;
    inset: -4px 0;
  }
  .workbar .btn {
    margin-block: 0;
  }
  .sidebar-brand .icon-btn {
    width: 44px;
    height: 44px;
  }
  .dropdown-trigger {
    min-width: 94px;
  }
  .switch {
    margin: 12px 0;
  }
  .switch::before {
    content: "";
    position: absolute;
    inset: -12px -4px;
  }
  .pagination {
    gap: 8px;
  }
  .pagination .btn {
    min-height: 32px;
  }
  .search-field {
    align-self: center;
  }
  .row-actions .icon-btn {
    width: 44px;
    height: 44px;
  }
}
@media (max-width: 350px) {
  .receiver-layout {
    padding-inline: 12px;
  }
  .receive-card {
    padding-inline: 13px;
  }
  .public-header {
    padding-inline: 12px;
  }
  .view-content {
    padding-inline: 12px;
  }
  .workbar {
    padding-inline: 8px;
    gap: 4px;
  }
  .workbar-actions .btn {
    max-width: 78px;
  }
  .heading-icon {
    width: 30px;
    height: 30px;
  }
  .panel-toolbar .toolbar-end {
    margin-left: 0;
  }
  .panel-toolbar .search-field {
    width: 100%;
    flex-basis: 100%;
  }
  .dialog-actions {
    padding-inline: 12px;
  }
  #dialog-body {
    padding: 14px;
  }
  .detail-row {
    grid-template-columns: 70px minmax(0, 1fr);
  }
}
@supports (backdrop-filter: blur(8px)) {
  .workbar {
    backdrop-filter: blur(8px);
  }
  .entity-dialog::backdrop {
    backdrop-filter: blur(2px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
    border-top-color: var(--blue);
  }
  .enter-view,
  .entity-dialog[open],
  .dropdown-list {
    animation: none;
  }
  .admin-sidebar,
  .switch::after {
    transition: none;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .workbar {
    background: #fff;
    backdrop-filter: none;
  }
  .entity-dialog::backdrop {
    backdrop-filter: none;
  }
}
