:root {
  --page-bg: #e9f0fb;
  --page-bg-deep: #dce6f8;
  --card-bg: rgba(255, 255, 255, 0.92);
  --card-line: rgba(108, 145, 203, 0.16);
  --text-main: #1b2c4a;
  --text-soft: #6f7f99;
  --blue: #1f64d8;
  --blue-deep: #134ca8;
  --blue-soft: #e8f0ff;
  --blue-ghost: rgba(31, 100, 216, 0.08);
  --warn-bg: #f3f5f8;
  --warn-line: #6cb2ff;
  --shadow: 0 30px 80px rgba(73, 106, 158, 0.18);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text-main);
  font-family: "Avenir Next", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.65), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(210, 227, 255, 0.75), transparent 32%),
    linear-gradient(180deg, var(--page-bg) 0%, var(--page-bg-deep) 100%);
}

.front-page {
  --page-bg: #e7eef9;
  --page-bg-deep: #d8e3f5;
  --card-bg: rgba(255, 255, 255, 0.95);
  --card-line: rgba(96, 124, 179, 0.14);
  --text-main: #1f2b40;
  --text-soft: #71819b;
  --blue: #2e67cb;
  --blue-deep: #173f85;
  --blue-soft: #edf3ff;
  --blue-ghost: rgba(46, 103, 203, 0.08);
  --warn-bg: #f7f8fb;
  --warn-line: #86afe9;
  --shadow: 0 30px 78px rgba(67, 93, 142, 0.16);
}

body.modal-open {
  overflow: hidden;
}

.portal-stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.portal-card {
  width: min(100%, 580px);
  padding: 42px 34px 28px;
  border-radius: 22px;
  border: 1px solid var(--card-line);
  background: var(--card-bg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.front-page .portal-card {
  position: relative;
  overflow: visible;
}

.front-page .portal-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 4px;
  background: linear-gradient(90deg, #163c7d 0%, #2558b0 52%, #4f86dd 100%);
  border-radius: 999px;
}

.portal-header {
  text-align: center;
}

.portal-title-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.portal-title-row h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--blue-deep);
}

.portal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.portal-subtitle {
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.portal-description {
  margin: 8px auto 0;
  max-width: 380px;
  color: #7f8ca3;
  font-size: 13px;
  line-height: 1.7;
}

.portal-meta {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.portal-meta-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  flex-wrap: wrap;
}

.meta-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8b96ab;
  font-size: 13px;
}

.meta-icon {
  font-size: 14px;
}

.sync-mode-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(23, 63, 133, 0.1);
  background: rgba(23, 63, 133, 0.06);
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 700;
}

.sync-mode-badge.is-running {
  border-color: rgba(215, 153, 0, 0.18);
  background: rgba(255, 232, 163, 0.54);
  color: #866100;
}

.sync-mode-badge.is-auto {
  border-color: rgba(23, 63, 133, 0.12);
  background: rgba(23, 63, 133, 0.06);
  color: var(--blue-deep);
}

.sync-mode-badge.is-webhook {
  border-color: rgba(35, 114, 225, 0.16);
  background: rgba(40, 115, 230, 0.09);
  color: #1552b4;
}

.sync-mode-badge.is-idle {
  border-color: rgba(134, 148, 170, 0.14);
  background: rgba(134, 148, 170, 0.08);
  color: #6f7f99;
}

.sync-meta-note {
  margin: 0;
  color: #7d8ca4;
  font-size: 12px;
  line-height: 1.6;
}

.search-panel {
  margin-top: 26px;
}

.search-shell {
  display: grid;
  grid-template-columns: 1fr 118px;
  gap: 0;
  border: 1px solid rgba(126, 155, 205, 0.28);
  border-radius: 12px;
  overflow: hidden;
  background: white;
}

.front-page .search-shell {
  border-color: rgba(96, 124, 179, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

.search-shell input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 15px 16px;
  font-size: 15px;
  color: var(--text-main);
  outline: none;
  background: transparent;
}

.search-shell input::placeholder {
  color: #96a2b5;
}

.search-btn {
  border: 0;
  background: linear-gradient(180deg, #1f67e2 0%, #1a57be 100%);
  color: white;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.front-page .search-btn {
  background: linear-gradient(180deg, #214f9f 0%, #173f85 100%);
  letter-spacing: 0.02em;
}

.search-btn:hover {
  background: linear-gradient(180deg, #205fd0 0%, #184ca4 100%);
}

.front-page .search-btn:hover {
  background: linear-gradient(180deg, #1d4a94 0%, #153770 100%);
}

.search-support {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.support-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 13px;
}

.support-stats {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8d98aa;
  font-size: 12px;
}

.support-stats strong {
  color: var(--blue-deep);
}

.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #a8b9d4;
}

.notice-box {
  margin-top: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-left: 3px solid var(--warn-line);
  border-radius: 8px;
  background: var(--warn-bg);
}

.notice-icon {
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1;
}

.notice-box p {
  margin: 0;
  color: #748296;
  font-size: 12.5px;
  line-height: 1.55;
}

.notice-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.notice-title {
  margin: 0;
  color: #1b2c4a;
  font-size: 13px;
  font-weight: 800;
}

.notice-action {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--blue-deep);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
}

.notice-action:hover {
  color: var(--blue);
  text-decoration: underline;
}

.hint-trigger {
  margin-top: 10px;
  width: fit-content;
  max-width: 100%;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 2px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #907024;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.hint-trigger:hover {
  background: rgba(255, 241, 186, 0.28);
  color: #765910;
}

.hint-trigger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(196, 145, 18, 0.14);
  color: #9b7410;
  font-size: 11px;
  font-weight: 800;
}

.hint-trigger-copy {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hint-trigger-copy strong {
  font-size: 12.5px;
  font-weight: 700;
}

.hint-trigger-copy small {
  color: rgba(122, 97, 33, 0.72);
  font-size: 11.5px;
}

.hint-trigger-floating {
  position: absolute;
  top: 238px;
  right: -72px;
  margin-top: 0;
  width: 84px;
  padding: 12px 8px 10px 14px;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(226, 176, 44, 0.22);
  border-left: 0;
  border-radius: 0 18px 18px 0;
  background: linear-gradient(180deg, rgba(255, 248, 219, 0.96) 0%, rgba(255, 239, 190, 0.96) 100%);
  box-shadow: 0 14px 28px rgba(150, 121, 43, 0.12);
  color: #805f10;
}

.hint-trigger-floating:hover {
  background: linear-gradient(180deg, rgba(255, 244, 204, 0.98) 0%, rgba(255, 235, 174, 0.98) 100%);
}

.hint-trigger-floating::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 14px;
  height: 46px;
  border: 1px solid rgba(226, 176, 44, 0.18);
  border-right: 0;
  border-radius: 14px 0 0 14px;
  background: rgba(255, 244, 205, 0.9);
  transform: translateY(-50%);
}

.hint-trigger-floating .hint-trigger-icon {
  width: 22px;
  height: 22px;
  font-size: 11px;
}

.hint-trigger-floating .hint-trigger-copy {
  flex-direction: column;
  align-items: center;
  gap: 1px;
  text-align: center;
}

.hint-trigger-floating .hint-trigger-copy strong {
  font-size: 12px;
  line-height: 1.15;
}

.hint-trigger-floating .hint-trigger-copy small {
  font-size: 10.5px;
  line-height: 1.15;
}

.hint-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.hint-modal.is-open {
  display: block;
}

.hint-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 41, 76, 0.42);
  backdrop-filter: blur(8px);
}

.hint-modal-panel {
  position: relative;
  width: min(920px, calc(100% - 28px));
  max-height: min(82vh, 920px);
  margin: 5vh auto 0;
  border-radius: 24px;
  border: 1px solid rgba(96, 124, 179, 0.2);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 36px 90px rgba(46, 72, 117, 0.28);
  overflow: hidden;
}

.hint-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 24px 18px;
  border-bottom: 1px solid rgba(238, 193, 74, 0.24);
  background: linear-gradient(180deg, rgba(255, 248, 217, 0.96) 0%, rgba(255, 241, 186, 0.88) 100%);
}

.hint-modal-kicker {
  margin: 0;
  color: #b07a0d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hint-modal-head h2 {
  margin: 8px 0 0;
  color: #5a4313;
  font-size: 26px;
}

.hint-modal-copy {
  margin: 8px 0 0;
  color: #7b6a42;
  font-size: 13px;
  line-height: 1.6;
}

.hint-close-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: rgba(193, 143, 19, 0.12);
  color: #79570f;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.hint-close-btn:hover {
  background: rgba(193, 143, 19, 0.18);
}

.hint-modal-body {
  max-height: calc(82vh - 110px);
  overflow: auto;
  padding: 18px 24px 24px;
}

.hint-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hint-item {
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.96) 0%, rgba(241, 246, 255, 0.96) 100%);
  border: 1px solid rgba(96, 124, 179, 0.12);
}

.hint-item-wide {
  grid-column: span 2;
}

.hint-item h3 {
  margin: 0;
  color: var(--blue-deep);
  font-size: 15px;
}

.hint-note {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.6;
}

.hint-range-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.hint-range-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(233, 240, 251, 0.72);
}

.hint-range-row-accent {
  background: rgba(255, 241, 186, 0.82);
}

.hint-range-row span {
  color: var(--text-soft);
  font-size: 12px;
  white-space: nowrap;
}

.hint-range-row strong {
  color: var(--text-main);
  font-size: 13px;
  line-height: 1.4;
  text-align: right;
}

.results-panel {
  margin-top: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease, max-height 240ms ease, margin-top 180ms ease;
}

.results-panel.active {
  margin-top: 18px;
  max-height: 5200px;
  overflow: visible;
  opacity: 1;
  transform: translateY(0);
}

.results-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.results-head-copy {
  min-width: 0;
}

.results-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--blue-deep);
}

.results-summary {
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 12.5px;
  line-height: 1.6;
}

.results-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(23, 63, 133, 0.08);
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 700;
}

.empty-state {
  margin-top: 12px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(245, 248, 253, 0.9);
  border: 1px dashed rgba(108, 145, 203, 0.24);
  text-align: center;
}

.empty-state p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.empty-state small {
  display: block;
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-line;
}

.empty-state-detail {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  text-align: left;
}

.occupied-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.occupied-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.occupied-chip-project {
  background: rgba(35, 79, 157, 0.1);
  color: var(--blue-deep);
}

.occupied-chip-status {
  background: rgba(226, 176, 44, 0.18);
  color: #7b5d12;
}

.occupied-history-list {
  display: grid;
  gap: 10px;
}

.occupied-card {
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid rgba(226, 176, 44, 0.18);
  background: rgba(255, 255, 255, 0.82);
}

.occupied-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.occupied-card-head strong {
  color: var(--text-main);
  font-size: 13px;
}

.occupied-card-head span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(226, 176, 44, 0.16);
  color: #7b5d12;
  font-size: 11px;
  font-weight: 700;
}

.occupied-card-body {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.occupied-row {
  display: grid;
  gap: 3px;
}

.occupied-row span {
  color: var(--text-soft);
  font-size: 11px;
}

.occupied-row strong {
  color: var(--text-main);
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}

.occupied-more {
  color: #7b6942;
  font-size: 11.5px;
  line-height: 1.6;
}

.empty-state.available {
  border-style: solid;
  border-color: rgba(44, 124, 196, 0.18);
  background: linear-gradient(180deg, rgba(239, 247, 255, 0.96) 0%, rgba(233, 243, 255, 0.96) 100%);
}

.empty-state.available p {
  color: var(--blue-deep);
}

.empty-state.occupied {
  border-style: solid;
  border-color: rgba(226, 176, 44, 0.26);
  background: linear-gradient(180deg, rgba(255, 248, 224, 0.96) 0%, rgba(255, 244, 203, 0.96) 100%);
}

.empty-state.occupied p {
  color: #6a5117;
}

.empty-state.occupied small {
  color: #7b6942;
}

.results-list {
  margin-top: 12px;
  display: grid;
  gap: 14px;
}

.result-item {
  padding: 18px 18px 16px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(247, 250, 255, 0.98) 0%, rgba(239, 245, 255, 0.95) 100%);
  border: 1px solid rgba(108, 145, 203, 0.2);
  box-shadow: 0 12px 28px rgba(105, 131, 177, 0.08);
}

.front-page .result-item {
  position: relative;
}

.front-page .result-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 18px 0 0 18px;
  background: linear-gradient(180deg, #234f9d 0%, #5f88d2 100%);
}

.result-top {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 14px;
}

.result-order {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(35, 79, 157, 0.14) 0%, rgba(35, 79, 157, 0.08) 100%);
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.result-identity {
  display: flex;
  align-items: flex-start;
  width: 100%;
}

.identity-copy {
  min-width: 0;
  flex: 1;
}

.identity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.service-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(35, 79, 157, 0.08);
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 700;
}

.identity-main {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.alias-name {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  color: var(--blue-deep);
}

.resume-name {
  margin: 7px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.5;
}

.resume-name:empty {
  display: none;
}

.match-tag-list {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.match-tag-list:empty {
  display: none;
}

.match-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 214, 94, 0.22);
  color: #7a5600;
  font-size: 12px;
  font-weight: 700;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(27, 159, 103, 0.12);
  color: #16754b;
  font-size: 12px;
  font-weight: 700;
}

.status-pill.other {
  background: rgba(31, 100, 216, 0.1);
  color: var(--blue);
}

.code-strip {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.code-card {
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px solid rgba(108, 145, 203, 0.18);
  background: rgba(255, 255, 255, 0.84);
}

.code-card-primary {
  background: linear-gradient(180deg, rgba(31, 100, 216, 0.12) 0%, rgba(31, 100, 216, 0.07) 100%);
  border-color: rgba(31, 100, 216, 0.16);
}

.front-page .code-card-primary {
  background: linear-gradient(180deg, rgba(33, 79, 159, 0.12) 0%, rgba(33, 79, 159, 0.06) 100%);
  border-color: rgba(33, 79, 159, 0.14);
}

.code-card span {
  display: block;
  color: var(--text-soft);
  font-size: 12px;
}

.code-card strong {
  display: block;
  margin-top: 7px;
  color: var(--blue-deep);
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  word-break: break-word;
}

.result-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.result-field {
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(108, 145, 203, 0.14);
  background: rgba(255, 255, 255, 0.92);
}

.result-field span {
  display: block;
  margin-bottom: 6px;
  color: var(--text-soft);
  font-size: 12px;
}

.result-field strong {
  display: block;
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.result-field-wide {
  grid-column: span 2;
}

.match-highlight {
  padding: 0 3px;
  border-radius: 4px;
  background: rgba(255, 219, 109, 0.7);
  color: inherit;
}

.portal-footer {
  margin-top: 28px;
  text-align: center;
  color: #9aa5b8;
  font-size: 12px;
}

.account-float {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 10;
}

.account-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(108, 145, 203, 0.18);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 40px rgba(88, 112, 156, 0.12);
  backdrop-filter: blur(10px);
}

.front-page .account-card {
  border-color: rgba(96, 124, 179, 0.16);
  box-shadow: 0 20px 42px rgba(70, 95, 145, 0.12);
}

.admin-console-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(56, 106, 196, 0.18) 0, rgba(56, 106, 196, 0) 28%),
    radial-gradient(circle at bottom right, rgba(24, 73, 158, 0.12) 0, rgba(24, 73, 158, 0) 24%),
    linear-gradient(180deg, #eef4ff 0%, #e6eefc 100%);
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 22px;
  border-right: 1px solid rgba(83, 121, 190, 0.16);
  background: linear-gradient(180deg, rgba(19, 44, 92, 0.98) 0%, rgba(17, 37, 79, 0.96) 100%);
  color: rgba(255, 255, 255, 0.88);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(78, 130, 231, 0.92) 0%, rgba(54, 100, 199, 0.92) 100%);
  color: white;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.admin-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-brand-copy strong {
  font-size: 18px;
  color: white;
}

.admin-brand-copy span {
  color: rgba(215, 225, 246, 0.7);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-sidebar-nav {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  color: rgba(223, 233, 250, 0.82);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.admin-nav-link:hover,
.admin-nav-link.is-active {
  background: rgba(82, 126, 213, 0.2);
  color: white;
  transform: translateX(2px);
}

.admin-sidebar-account {
  margin-top: 28px;
}

.admin-sidebar .account-card {
  width: 100%;
  border-color: rgba(109, 148, 220, 0.18);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.admin-sidebar .account-copy strong,
.admin-sidebar .text-link,
.admin-sidebar .test-tag {
  color: white;
}

.admin-sidebar .account-copy span {
  color: rgba(224, 234, 252, 0.72);
}

.admin-sidebar-note {
  margin-top: 24px;
  padding: 18px 16px;
  border: 1px solid rgba(109, 148, 220, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.admin-sidebar-note span {
  display: block;
  color: rgba(188, 207, 243, 0.78);
  font-size: 12px;
}

.admin-sidebar-note strong {
  display: block;
  margin-top: 8px;
  color: white;
  font-size: 16px;
}

.admin-sidebar-note p {
  margin: 10px 0 0;
  color: rgba(220, 231, 249, 0.72);
  font-size: 13px;
  line-height: 1.7;
}

.admin-workspace {
  min-width: 0;
  padding: 28px 30px 36px;
}

.admin-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px;
  border: 1px solid rgba(108, 145, 203, 0.14);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 58px rgba(76, 100, 144, 0.14);
  backdrop-filter: blur(12px);
}

.admin-topbar-kicker {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.admin-topbar h1 {
  margin: 10px 0 8px;
  color: var(--blue-deep);
  font-size: clamp(30px, 4vw, 44px);
}

.admin-topbar p {
  margin: 0;
  max-width: 640px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.75;
}

.admin-topbar-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.admin-topbar-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-topbar-chips {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-top-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(31, 100, 216, 0.08);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.admin-overview-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.95fr);
  gap: 18px;
}

.admin-status-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.admin-status-card {
  padding: 20px 22px;
  border: 1px solid rgba(108, 145, 203, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 44px rgba(82, 105, 145, 0.1);
}

.admin-status-card span {
  display: block;
  color: var(--text-soft);
  font-size: 12px;
}

.admin-status-card strong {
  display: block;
  margin-top: 10px;
  color: var(--blue-deep);
  font-size: 24px;
  line-height: 1.2;
}

.admin-status-card small {
  display: block;
  margin-top: 8px;
  color: #7c8ba3;
  font-size: 12px;
  line-height: 1.6;
}

.account-avatar,
.account-avatar-fallback {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.account-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: white;
  font-size: 14px;
  font-weight: 700;
}

.account-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.account-copy strong {
  font-size: 13px;
}

.account-copy span {
  color: #8694aa;
  font-size: 12px;
}

.text-link,
.test-tag {
  margin-left: 4px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.test-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  height: 22px;
  border-radius: 999px;
  background: var(--blue-soft);
}

.login-card {
  text-align: center;
}

.login-header {
  margin-bottom: 20px;
}

.login-tip-line {
  margin-top: 12px;
  color: #8b96aa;
  font-size: 13px;
}

.google-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, #1f67e2 0%, #1a57be 100%);
  color: white;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}

.google-login-btn:hover {
  background: linear-gradient(180deg, #205fd0 0%, #184ca4 100%);
}

.google-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.google-mark svg {
  display: block;
  width: 18px;
  height: 18px;
}

.login-error {
  margin-bottom: 18px;
}

.login-access-help {
  margin-top: 16px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(226, 181, 82, 0.34);
  border-left: 3px solid #e2b552;
  background: linear-gradient(180deg, rgba(255, 248, 224, 0.92) 0%, rgba(255, 243, 206, 0.86) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.login-access-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(226, 181, 82, 0.18);
  font-size: 18px;
}

.login-access-copy {
  width: 100%;
  text-align: left;
}

.login-access-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.login-access-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(158, 112, 9, 0.1);
  color: #8a6100;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.login-access-text {
  color: #7d6b42 !important;
  font-size: 12.5px;
  line-height: 1.7;
}

.login-access-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.login-access-action {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(27, 63, 133, 0.08);
}

.login-access-action:hover {
  background: rgba(27, 63, 133, 0.12);
  text-decoration: none;
}

.login-access-hint {
  color: #9a8759;
  font-size: 11.5px;
}

.admin-access-notice {
  margin-top: 18px;
  border-left-color: #e2b552;
  background: rgba(255, 245, 212, 0.72);
}

.login-meta {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #8a96aa;
  font-size: 12px;
}

.admin-stage {
  min-height: 100vh;
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0 40px;
}

.admin-hero,
.admin-panel,
.metric-card {
  border: 1px solid var(--card-line);
  background: var(--card-bg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  scroll-margin-top: 26px;
}

.admin-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 32px;
  border-radius: 24px;
}

.admin-kicker {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.admin-hero h1 {
  margin: 12px 0 8px;
  font-size: clamp(30px, 4vw, 42px);
  color: var(--blue-deep);
}

.admin-hero p {
  margin: 0;
  max-width: 620px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.admin-hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.admin-meta-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #8190a6;
  font-size: 13px;
  text-align: right;
}

.admin-meta-block strong {
  color: var(--text-main);
  font-size: 18px;
}

.admin-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--blue);
  color: white;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.admin-link-btn:hover {
  background: var(--blue-deep);
}

.admin-metrics {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  padding: 22px;
  border-radius: 20px;
}

.metric-card span {
  display: block;
  color: var(--text-soft);
  font-size: 13px;
}

.metric-card strong {
  display: block;
  margin-top: 12px;
  color: var(--blue-deep);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
}

.admin-panel {
  margin-top: 18px;
  padding: 24px;
  border-radius: 22px;
}

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

.admin-panel-emphasis::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #1f67e2 0%, #2e7bf3 55%, #89b4ff 100%);
}

.admin-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(31, 100, 216, 0.08);
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.admin-panel-head h2 {
  margin: 10px 0 0;
  font-size: 20px;
  color: var(--blue-deep);
}

.admin-panel-head p {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 13px;
}

.admin-head-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(31, 100, 216, 0.08);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-filter-bar {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 180px 150px;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(108, 145, 203, 0.12);
  border-radius: 18px;
  background: rgba(245, 249, 255, 0.7);
}

.admin-filter-bar input,
.admin-filter-bar select {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(126, 155, 205, 0.24);
  border-radius: 12px;
  background: white;
  color: var(--text-main);
  font-size: 14px;
  outline: none;
}

.admin-filter-bar input::placeholder {
  color: #96a2b5;
}

.admin-filter-bar-log {
  grid-template-columns: minmax(180px, 1.1fr) minmax(180px, 1fr) repeat(3, minmax(150px, 0.8fr)) repeat(2, minmax(150px, 0.72fr)) minmax(260px, auto);
  align-items: stretch;
}

.admin-date-shortcuts {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-filter-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.admin-mini-btn,
.admin-ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(108, 145, 203, 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.admin-ghost-btn {
  min-width: 96px;
  height: 46px;
  border-radius: 12px;
}

.admin-mini-btn {
  min-width: 74px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 13px;
}

.admin-mini-btn:hover,
.admin-ghost-btn:hover {
  border-color: rgba(31, 100, 216, 0.28);
  background: rgba(237, 243, 255, 0.88);
}

.admin-message {
  margin-top: 14px;
  color: #748296;
  font-size: 13px;
}

.admin-inline-summary {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(108, 145, 203, 0.16);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.admin-summary-chip strong {
  color: var(--blue-deep);
  font-size: 13px;
}

.admin-summary-chip.is-good {
  background: rgba(27, 159, 103, 0.1);
  border-color: rgba(27, 159, 103, 0.14);
  color: #16754b;
}

.admin-summary-chip.is-danger {
  background: rgba(182, 72, 47, 0.1);
  border-color: rgba(182, 72, 47, 0.14);
  color: #b6482f;
}

.admin-summary-chip.is-muted {
  background: rgba(134, 148, 170, 0.12);
  border-color: rgba(134, 148, 170, 0.14);
  color: #6f7f99;
}

.admin-active-filters {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(31, 100, 216, 0.12);
  border-radius: 999px;
  background: rgba(237, 243, 255, 0.88);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.admin-filter-chip::after {
  content: "×";
  font-size: 14px;
  line-height: 1;
}

.admin-table-toolbar {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-table-summary {
  color: var(--text-soft);
  font-size: 13px;
}

.admin-table-shell {
  margin-top: 14px;
  overflow: auto;
  border: 1px solid rgba(108, 145, 203, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.admin-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.admin-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(108, 145, 203, 0.16);
  background: rgba(237, 243, 255, 0.92);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: left;
}

.admin-table tbody td {
  padding: 15px 16px;
  border-bottom: 1px solid rgba(108, 145, 203, 0.12);
  color: var(--text-main);
  font-size: 13px;
  line-height: 1.6;
  vertical-align: top;
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-table tbody tr:nth-child(even) td {
  background: rgba(245, 248, 255, 0.48);
}

.admin-empty {
  color: var(--text-soft);
  text-align: center;
}

.admin-row-index {
  color: var(--text-soft);
  font-weight: 700;
  white-space: nowrap;
}

.admin-user-cell {
  min-width: 190px;
}

.admin-user-cell strong,
.admin-user-cell span,
.admin-user-cell small {
  display: block;
}

.admin-cell-link,
.admin-user-cell .admin-cell-link {
  width: fit-content;
  color: var(--blue);
  cursor: pointer;
  transition: color 160ms ease;
}

.admin-cell-link:hover,
.admin-user-cell .admin-cell-link:hover {
  color: var(--blue-deep);
  text-decoration: underline;
}

.admin-user-cell span {
  color: var(--text-soft);
}

.admin-user-cell small {
  margin-top: 4px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.admin-keyword-cell strong {
  display: block;
  color: var(--blue-deep);
  font-size: 14px;
  font-weight: 700;
  word-break: break-word;
}

.log-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(31, 100, 216, 0.08);
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.log-badge.scope {
  background: rgba(31, 100, 216, 0.1);
  color: var(--blue);
}

.log-badge.scope-alt {
  background: rgba(130, 147, 178, 0.12);
  color: #64748b;
}

.log-badge.hit {
  background: rgba(27, 159, 103, 0.12);
  color: #16754b;
}

.log-badge.no-hit {
  background: rgba(182, 72, 47, 0.12);
  color: #b6482f;
}

.log-badge.local {
  background: rgba(255, 210, 92, 0.2);
  color: #9c6910;
}

.log-badge.oauth {
  background: rgba(31, 100, 216, 0.08);
  color: var(--blue);
}

.log-badge.muted {
  background: rgba(134, 148, 170, 0.12);
  color: #6f7f99;
}

.log-record-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.log-record-chip,
.log-record-empty {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(31, 100, 216, 0.08);
  color: var(--blue-deep);
  font-size: 12px;
}

.log-record-empty {
  background: rgba(134, 148, 170, 0.12);
  color: #6f7f99;
}

.admin-pagination {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-pagination-meta {
  color: var(--text-soft);
  font-size: 13px;
}

.admin-pagination-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-pagination-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-page-btn {
  min-width: 40px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(108, 145, 203, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.admin-page-btn:hover:not(:disabled) {
  border-color: rgba(31, 100, 216, 0.22);
  color: var(--blue);
}

.admin-page-btn.active {
  border-color: rgba(31, 100, 216, 0.18);
  background: rgba(31, 100, 216, 0.1);
  color: var(--blue);
}

.admin-page-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.admin-jump-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 13px;
}

.admin-jump-form input {
  width: 84px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(108, 145, 203, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-main);
  font-size: 13px;
}

.access-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.access-badge.allow {
  background: rgba(27, 159, 103, 0.12);
  color: #16754b;
}

.access-badge.deny {
  background: rgba(182, 72, 47, 0.12);
  color: #b6482f;
}

.access-badge.admin {
  background: rgba(31, 100, 216, 0.14);
  color: #1b4fb3;
}

.access-badge.env_allow,
.access-badge.domain_allow {
  background: rgba(58, 119, 219, 0.1);
  color: #215dbf;
}

.access-badge.unconfigured {
  background: rgba(134, 148, 170, 0.12);
  color: #6f7f99;
}

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

.table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: rgba(31, 100, 216, 0.1);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.table-action.danger {
  background: rgba(182, 72, 47, 0.1);
  color: #b6482f;
}

.table-action.ghost {
  background: rgba(31, 100, 216, 0.08);
  color: var(--blue-deep);
}

.table-action.muted {
  background: rgba(134, 148, 170, 0.12);
  color: #6f7f99;
}

@media (max-width: 680px) {
  .portal-card {
    padding: 30px 18px 22px;
  }

  .search-shell {
    grid-template-columns: 1fr;
  }

  .search-btn {
    min-height: 46px;
  }

  .search-support,
  .portal-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-filter-bar,
  .admin-filter-bar-log {
    grid-template-columns: 1fr;
  }

  .admin-filter-actions {
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .admin-date-shortcuts {
    width: 100%;
  }

  .admin-filter-actions .search-btn,
  .admin-ghost-btn,
  .admin-mini-btn,
  .admin-jump-form input {
    width: 100%;
  }

  .admin-panel-head,
  .admin-pagination {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-pagination-controls,
  .admin-jump-form {
    width: 100%;
    justify-content: stretch;
  }

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

  .results-count {
    align-self: flex-start;
  }

  .hint-trigger-floating {
    position: static;
    width: fit-content;
    margin-top: 10px;
    padding: 4px 2px;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
  }

  .hint-trigger-floating::before {
    display: none;
  }

  .hint-trigger-floating .hint-trigger-icon {
    width: 18px;
    height: 18px;
    font-size: 11px;
  }

  .hint-trigger-floating .hint-trigger-copy {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    text-align: left;
  }

  .hint-modal-panel {
    width: min(100%, calc(100% - 16px));
    margin-top: 2vh;
    max-height: 96vh;
  }

  .hint-modal-head,
  .hint-modal-body {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .hint-item-wide {
    grid-column: auto;
  }

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

  .result-field-wide {
    grid-column: auto;
  }

  .result-top {
    gap: 12px;
  }

  .result-order {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .code-strip {
    grid-template-columns: 1fr;
  }

  .account-float {
    position: static;
    padding: 18px 18px 0;
  }

  .account-card {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 1180px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-workspace {
    padding-top: 22px;
  }

  .admin-overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .admin-topbar {
    flex-direction: column;
  }

  .admin-topbar-actions {
    width: 100%;
    align-items: flex-start;
  }

  .admin-topbar-chips {
    justify-content: flex-start;
  }

  .admin-topbar-tools {
    width: 100%;
    justify-content: flex-start;
  }

  .admin-sidebar {
    padding: 22px 18px;
  }

  .admin-workspace {
    padding: 20px 16px 28px;
  }
}

@media (max-width: 1080px) {
  .admin-stage {
    width: min(100%, calc(100% - 24px));
    padding-top: 86px;
  }

  .admin-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-hero-meta {
    width: 100%;
    align-items: flex-start;
  }

  .admin-meta-block {
    text-align: left;
  }

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

  .admin-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .admin-stage {
    width: min(100%, calc(100% - 20px));
    padding-top: 22px;
  }

  .admin-hero,
  .admin-panel,
  .metric-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .admin-metrics {
    grid-template-columns: 1fr;
  }

  .admin-filter-bar {
    grid-template-columns: 1fr;
  }
}
