:root {
  color-scheme: dark;
  --bg: #060a12;
  --sidebar: rgba(8, 14, 25, .92);
  --surface: rgba(14, 23, 38, .76);
  --surface-strong: rgba(17, 29, 47, .94);
  --surface-soft: rgba(255, 255, 255, .035);
  --line: rgba(148, 174, 204, .13);
  --line-bright: rgba(94, 234, 212, .26);
  --text: #f3f7fb;
  --muted: #8290a5;
  --muted-2: #526075;
  --accent: #59efd0;
  --accent-2: #40aaff;
  --accent-3: #876cff;
  --danger: #ff647c;
  --warning: #ffc55b;
  --success: #5ef0ae;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow: 0 28px 80px rgba(0, 0, 0, .32);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; overscroll-behavior-x: none; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 52% -16%, rgba(38, 101, 126, .19), transparent 35%),
    linear-gradient(145deg, #070b13 0%, #050911 48%, #07101a 100%);
  font-family: Inter, "SF Pro Display", "Segoe UI", "Microsoft YaHei UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button { color: inherit; }
button, .nav-item, .result-row { -webkit-tap-highlight-color: transparent; }

button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid rgba(89, 239, 208, .85);
  outline-offset: 2px;
}

svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

.ambient {
  position: fixed;
  z-index: 0;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .11;
  pointer-events: none;
  animation: ambient-drift 16s ease-in-out infinite alternate;
}

.ambient-one { top: 4%; left: 27%; background: #26e6cb; }
.ambient-two { right: -7%; bottom: 5%; background: #376fff; animation-delay: -8s; }

.app-shell { position: relative; z-index: 1; display: flex; min-height: 100vh; min-height: 100dvh; isolation: isolate; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: 268px;
  padding: 30px 20px 24px;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--sidebar);
  box-shadow: 24px 0 80px rgba(0, 0, 0, .16);
  backdrop-filter: blur(26px);
}

.brand { display: flex; align-items: center; gap: 13px; margin: 0 10px 46px; color: var(--text); text-decoration: none; }
.brand-logo {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(83,105,220,.2);
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg,#536bd9,#8750c5);
  box-shadow: 0 8px 20px rgba(62,69,159,.17);
  isolation: isolate;
}
.brand-logo > span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 17px; font-weight: 850; line-height: 1; }
.brand-logo img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; padding: 2px; border-radius: inherit; background: #eef8ff; object-fit: contain; }
.brand-logo img.is-unavailable { display: none; }
.brand b { display: block; font-size: 17px; letter-spacing: .24em; line-height: 1; }
.brand small { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .28em; }

.nav-caption { margin: 0 12px 14px; color: var(--muted-2); font-size: 10px; font-weight: 800; letter-spacing: .2em; }
.nav-list { display: grid; gap: 7px; }
.nav-item {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 68px;
  padding: 10px 10px 10px 12px;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 11px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 15px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.nav-item::before {
  position: absolute;
  inset: 9px auto 9px 0;
  width: 2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  content: "";
  opacity: 0;
  transform: scaleY(.35);
  transition: .25s ease;
}
.nav-item:hover { background: rgba(255, 255, 255, .035); transform: translateX(2px); }
.nav-item.active { border-color: rgba(89, 239, 208, .12); background: linear-gradient(90deg, rgba(54, 211, 188, .13), rgba(56, 137, 189, .035)); }
.nav-item.active::before { opacity: 1; transform: scaleY(1); }
.nav-icon { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: rgba(255, 255, 255, .025); transition: .25s ease; }
.nav-icon svg { width: 20px; height: 20px; }
.nav-item.active .nav-icon { color: var(--accent); border-color: rgba(89, 239, 208, .22); background: rgba(89, 239, 208, .08); box-shadow: inset 0 0 20px rgba(89, 239, 208, .06); }
.nav-item b { display: block; color: #dbe5ee; font-size: 13px; font-weight: 650; }
.nav-item small { display: block; margin-top: 5px; color: var(--muted-2); font-size: 10px; }
.nav-item em { min-width: 30px; padding: 4px 6px; border-radius: 7px; color: var(--muted); background: rgba(255,255,255,.04); font-size: 9px; font-style: normal; text-align: center; }
.nav-item.active em { color: var(--accent); background: rgba(89,239,208,.08); }

.pulse-dot { position: relative; display: inline-block; width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--success); box-shadow: 0 0 12px rgba(94, 240, 174, .75); }
.pulse-dot::after { position: absolute; inset: -5px; border: 1px solid rgba(94, 240, 174, .42); border-radius: 50%; content: ""; animation: pulse 2s ease-out infinite; }

.main { width: calc(100% - 268px); min-width: 0; margin-left: 268px; }
.topbar { position: sticky; z-index: 15; top: 0; display: flex; height: 84px; padding: 0 42px; align-items: center; justify-content: flex-start; border-bottom: 1px solid var(--line); background: rgba(6, 11, 19, .76); backdrop-filter: blur(24px); }
.online-pill { display: flex; height: 40px; padding: 0 13px; flex: 0 0 auto; align-items: center; gap: 6px; border: 1px solid rgba(94, 240, 174, .15); border-radius: 12px; color: #b9d7cc; background: rgba(94, 240, 174, .055); transition: border-color .25s, color .25s, background .25s; }
.online-dot { position: relative; width: 7px; height: 7px; margin-right: 2px; flex: 0 0 auto; border-radius: 50%; background: var(--success); box-shadow: 0 0 11px rgba(94,240,174,.68); }
.online-dot::after { position: absolute; inset: -4px; border: 1px solid rgba(94,240,174,.34); border-radius: 50%; content: ""; animation: pulse 2s ease-out infinite; }
.online-pill span, .online-pill small { font-size: 9px; font-weight: 650; white-space: nowrap; }
.online-pill strong { min-width: 10px; color: var(--success); font-family: "SFMono-Regular", Consolas, monospace; font-size: 13px; text-align: center; }
.online-pill.loading .online-dot { animation: online-breathe 1s ease-in-out infinite alternate; }
.online-pill.stale { color: #d9c98e; border-color: rgba(244,202,90,.18); background: rgba(244,202,90,.06); }
.online-pill.stale .online-dot { background: #e0b94f; box-shadow: 0 0 11px rgba(224,185,79,.55); }
.online-pill.stale .online-dot::after { border-color: rgba(224,185,79,.32); }
.online-pill.stale strong { color: #e0b94f; }
.online-pill.unavailable { color: #ffc0c9; border-color: rgba(255,100,124,.18); background: rgba(255,100,124,.06); }
.online-pill.unavailable .online-dot { background: var(--danger); box-shadow: none; }
.online-pill.unavailable .online-dot::after { display: none; }
.online-pill.unavailable strong { color: var(--danger); }
.breadcrumb { display: flex; margin-left: 18px; align-items: center; gap: 12px; }
.breadcrumb span { color: var(--muted-2); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.breadcrumb i { width: 4px; height: 4px; border-radius: 50%; background: var(--muted-2); }
.breadcrumb b { color: #d6e1eb; font-size: 11px; font-weight: 650; }
.top-actions { display: flex; margin-left: auto; align-items: center; gap: 14px; }
.status-pill { display: flex; height: 40px; padding: 0 15px; align-items: center; gap: 10px; border: 1px solid rgba(94, 240, 174, .13); border-radius: 12px; color: #b9d7cc; background: rgba(94, 240, 174, .045); }
.status-pill b { font-size: 10px; font-weight: 650; }
.status-pill.error { color: #ffc0c9; border-color: rgba(255, 100, 124, .18); background: rgba(255, 100, 124, .06); }
.status-pill.error .pulse-dot { background: var(--danger); box-shadow: 0 0 12px rgba(255,100,124,.7); }
.status-pill.error .pulse-dot::after { border-color: rgba(255,100,124,.35); }
.uid-field { display: flex; height: 48px; padding: 6px 8px 6px 13px; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, .025); transition: border-color .25s, box-shadow .25s; }
.uid-field:focus-within { border-color: rgba(89, 239, 208, .35); box-shadow: 0 0 0 3px rgba(89, 239, 208, .05); }
.uid-field span { color: var(--muted-2); font-size: 8px; font-weight: 800; letter-spacing: .15em; white-space: nowrap; }
.uid-field input { width: 116px; height: 34px; padding: 0 10px; border: 0; border-radius: 8px; outline: 0; color: var(--text); background: rgba(255, 255, 255, .05); font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; }
.uid-field input::placeholder { color: #4e5a69; }
.mobile-menu { display: none; }

.content { width: min(1280px, 100%); margin: 0 auto; padding: 52px 44px 70px; }
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.eyebrow, .panel-head span { display: block; margin-bottom: 12px; color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .22em; }
.intro h1 { margin: 0; font-size: clamp(30px, 3.4vw, 48px); font-weight: 650; letter-spacing: -.045em; }
.intro p { max-width: 600px; margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.command-card {
  position: relative;
  min-height: 0;
  margin-bottom: 24px;
  padding: 27px 30px 25px;
  overflow: hidden;
  border: 1px solid rgba(89, 239, 208, .19);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(120deg, rgba(15, 32, 47, .97), rgba(9, 21, 34, .93)),
    var(--surface-strong);
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, .035);
}
.command-card::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px); background-size: 36px 36px; content: ""; opacity: .4; mask-image: linear-gradient(to right, black, transparent 85%); }
.command-glow { position: absolute; top: -180px; right: -50px; width: 420px; height: 420px; border-radius: 50%; background: rgba(35, 210, 192, .13); filter: blur(65px); pointer-events: none; }
.command-head, .command-line, .command-footer { position: relative; z-index: 1; }
.command-head, .command-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.live-chip { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; color: var(--accent); font-size: 8px; font-weight: 800; letter-spacing: .18em; }
.live-chip i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 9px var(--accent); }
.command-head h2 { margin: 0; color: #bdcad6; font-size: 12px; font-weight: 600; }
.icon-button { display: grid; width: 39px; height: 39px; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: rgba(255,255,255,.025); cursor: pointer; transition: .2s ease; }
.icon-button:hover { color: var(--accent); border-color: var(--line-bright); background: rgba(89,239,208,.06); transform: translateY(-2px); }
.icon-button svg { width: 17px; height: 17px; }
.command-line { display: flex; height: 68px; margin: 24px 0 23px; padding: 0 20px; align-items: center; gap: 13px; border: 1px solid rgba(89, 239, 208, .12); border-radius: 15px; background: rgba(2, 9, 15, .64); box-shadow: inset 0 0 30px rgba(0,0,0,.14); }
.prompt { color: var(--accent); font-family: Consolas, monospace; font-size: 25px; }
.command-line code { min-width: 0; overflow: hidden; color: #e6fff9; font-family: "SFMono-Regular", Consolas, monospace; font-size: clamp(12px, 1.6vw, 16px); letter-spacing: .025em; text-overflow: ellipsis; white-space: nowrap; }
.command-line code[data-empty="true"] { color: #4f6070; }
.caret { width: 7px; height: 19px; flex: 0 0 auto; background: var(--accent); box-shadow: 0 0 9px rgba(89,239,208,.55); animation: blink 1s steps(1) infinite; }
.selection-summary { display: flex; min-width: 0; align-items: center; gap: 12px; }
.selection-summary > span { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--accent); background: rgba(89,239,208,.05); }
.selection-summary small { display: block; color: var(--muted-2); font-size: 8px; font-weight: 700; letter-spacing: .08em; }
.selection-summary b { display: block; max-width: 280px; margin-top: 4px; overflow: hidden; color: #c5d0db; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.selection-summary em { padding: 5px 8px; border-radius: 7px; color: var(--muted); background: rgba(255,255,255,.04); font-family: Consolas, monospace; font-size: 9px; font-style: normal; }
.send-button { position: relative; width: 178px; height: 48px; flex: 0 0 auto; overflow: hidden; border: 0; border-radius: 13px; color: #04100e; background: linear-gradient(120deg, #61f2d3, #57c8e9); box-shadow: 0 9px 30px rgba(63, 220, 195, .17); font-size: 11px; font-weight: 800; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, filter .25s ease; }
.send-button:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(63, 220, 195, .26); filter: brightness(1.06); }
.send-button:disabled { color: #657078; background: #263039; box-shadow: none; cursor: not-allowed; }
.send-label, .send-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; transition: transform .25s ease, opacity .25s ease; }
.send-label svg { width: 16px; height: 16px; }
.send-loading { opacity: 0; transform: translateY(12px); }
.send-loading i { width: 13px; height: 13px; border: 2px solid rgba(4,16,14,.28); border-top-color: #04100e; border-radius: 50%; animation: spin .7s linear infinite; }
.send-button.loading .send-label { opacity: 0; transform: translateY(-12px); }
.send-button.loading .send-loading { opacity: 1; transform: translateY(0); }

.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 18px 60px rgba(0,0,0,.13), inset 0 1px rgba(255,255,255,.025); backdrop-filter: blur(18px); }
.search-panel { min-height: 620px; padding: 25px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.panel-head span { margin-bottom: 7px; color: #4c7f88; }
.panel-head h3 { margin: 0; font-size: 14px; font-weight: 650; }
.panel-head > small { margin-top: 17px; color: var(--muted-2); font-size: 9px; }
.safe-chip { padding: 5px 8px; border: 1px solid rgba(94,240,174,.12); border-radius: 7px; color: var(--success) !important; background: rgba(94,240,174,.05); font-size: 8px !important; letter-spacing: .05em !important; }

.search-box { display: flex; height: 49px; margin: 22px 0 17px; padding: 0 13px; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 13px; background: rgba(2, 8, 15, .47); transition: border-color .2s ease, box-shadow .2s ease; }
.search-box:focus-within { border-color: rgba(89, 239, 208, .3); box-shadow: 0 0 0 3px rgba(89,239,208,.045); }
.search-box svg { width: 17px; height: 17px; color: var(--muted-2); }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; color: #dce6ef; background: transparent; font-size: 11px; }
.search-box input::placeholder { color: #445162; }
.search-box kbd { padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; color: #556274; background: rgba(255,255,255,.025); font-family: inherit; font-size: 8px; }
.result-list { display: grid; min-height: 424px; align-content: start; gap: 7px; }
.result-row { display: grid; width: 100%; min-height: 56px; padding: 8px 12px 8px 10px; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 11px; border: 1px solid transparent; border-radius: 12px; background: rgba(255,255,255,.018); text-align: left; cursor: pointer; animation: row-in .3s both; transition: .2s ease; }
.result-row:hover { border-color: rgba(148,174,204,.12); background: rgba(255,255,255,.038); transform: translateX(3px); }
.result-row.selected { border-color: rgba(89,239,208,.2); background: linear-gradient(90deg, rgba(89,239,208,.1), rgba(89,239,208,.025)); }
.result-avatar { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: #6f8091; background: rgba(255,255,255,.025); font-size: 13px; font-weight: 650; transition: .2s ease; }
.result-row.selected .result-avatar, .result-row:hover .result-avatar { color: var(--accent); border-color: rgba(89,239,208,.18); background: rgba(89,239,208,.06); }
.result-info { min-width: 0; }
.result-info b { display: block; overflow: hidden; color: #cbd5df; font-size: 11px; font-weight: 560; text-overflow: ellipsis; white-space: nowrap; }
.result-info span { display: block; margin-top: 5px; color: var(--muted-2); font-family: Consolas, monospace; font-size: 8px; }
.result-info mark { color: var(--accent); background: transparent; }
.hidden-tag { padding: 3px 6px; border-radius: 5px; color: #b78b9a; background: rgba(255,100,124,.05); font-size: 7px; }
.row-arrow { color: #425061; font-size: 13px; transition: .2s ease; }
.result-row:hover .row-arrow, .result-row.selected .row-arrow { color: var(--accent); transform: translateX(2px); }
.empty-results { display: grid; min-height: 350px; place-items: center; color: var(--muted-2); text-align: center; }
.empty-results span { display: block; margin-bottom: 9px; font-size: 25px; }
.empty-results p { margin: 0; font-size: 11px; }
.skeleton-row { display: grid; height: 56px; padding: 9px; grid-template-columns: 38px 1fr; align-items: center; gap: 11px; border-radius: 12px; background: rgba(255,255,255,.015); }
.skeleton-row i, .skeleton-row span { position: relative; overflow: hidden; border-radius: 8px; background: rgba(255,255,255,.04); }
.skeleton-row i { width: 38px; height: 38px; }
.skeleton-row span { width: 65%; height: 11px; }
.skeleton-row i::after, .skeleton-row span::after { position: absolute; inset: 0; background: linear-gradient(100deg, transparent, rgba(255,255,255,.06), transparent); content: ""; transform: translateX(-100%); animation: shimmer 1.3s infinite; }
.pagination { display: flex; margin-top: 17px; align-items: center; justify-content: center; gap: 13px; }
.pagination button { padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: rgba(255,255,255,.02); font-size: 9px; cursor: pointer; transition: .2s ease; }
.pagination button:not(:disabled):hover { color: var(--accent); border-color: var(--line-bright); }
.pagination button:disabled { opacity: .35; cursor: not-allowed; }
.pagination span { min-width: 58px; color: var(--muted-2); font-family: Consolas, monospace; font-size: 9px; text-align: center; }

.selected-card { display: flex; min-height: 104px; margin: 22px 0 21px; padding: 17px; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(135deg, rgba(89,239,208,.055), rgba(49,105,139,.025)); }
.selected-orbit { position: relative; display: grid; width: 58px; height: 58px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(89,239,208,.18); border-radius: 50%; color: var(--accent); background: rgba(89,239,208,.04); }
.selected-orbit::before { position: absolute; inset: 6px; border: 1px dashed rgba(89,239,208,.2); border-radius: 50%; content: ""; animation: orbit 10s linear infinite; }
.selected-orbit i { position: absolute; top: 3px; left: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); transform: translateX(-50%); }
.selected-orbit i:nth-child(2) { top: auto; right: 3px; bottom: 10px; left: auto; background: var(--accent-2); }
.selected-orbit span { position: relative; z-index: 1; font-family: Consolas, monospace; font-size: 15px; font-weight: 800; }
.selected-card > div:last-child { min-width: 0; }
.selected-card small { color: var(--muted-2); font-size: 7px; font-weight: 800; letter-spacing: .13em; }
.selected-card h4 { margin: 6px 0 5px; overflow: hidden; color: #d3dee8; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.selected-card p { margin: 0; color: var(--muted); font-family: Consolas, monospace; font-size: 9px; }
.option-fields { display: grid; gap: 13px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.control { display: grid; gap: 8px; }
.control > span { color: var(--muted); font-size: 9px; font-weight: 600; }
.control small { color: var(--muted-2); font-size: 8px; line-height: 1.5; }
.control input, .control select { width: 100%; height: 45px; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; outline: 0; color: #d6e1eb; background: rgba(2,8,15,.46); font-family: Consolas, monospace; font-size: 11px; transition: .2s ease; }
.control select { font-family: inherit; cursor: pointer; }
.control input:focus, .control select:focus { border-color: rgba(89,239,208,.3); box-shadow: 0 0 0 3px rgba(89,239,208,.04); }
.command-footer { display: grid; grid-template-columns: minmax(0,1fr) 178px; align-items: end; }
.command-config { display: grid; min-width: 0; grid-template-columns: minmax(150px,.7fr) minmax(280px,1.3fr); align-items: end; gap: 14px; }
.command-config .selection-summary { min-width: 0; }
.preview-option-fields { display: grid; min-width: 0; align-items: end; gap: 8px; }
.preview-option-fields .control { min-width: 0; gap: 5px; }
.preview-option-fields .control > span { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.preview-option-fields .control small { display: none; }
.preview-option-fields .control input, .preview-option-fields .control select { height: 40px; padding-inline: 10px; }
.command-card[data-view="item"] .preview-option-fields,
.command-card[data-view="avatar"] .preview-option-fields,
.command-card[data-view="quest"] .preview-option-fields { grid-template-columns: minmax(150px,1fr); }
.command-card[data-view="item"] .command-footer { grid-template-columns: minmax(180px,240px) 112px; justify-content: space-between; gap: 12px; }
.command-card[data-view="item"] .command-config { display: block; }
.command-card[data-view="item"] .selection-summary { display: none; }
.command-card[data-view="item"] .preview-option-fields { width: 100%; }
.command-card[data-view="item"] .preview-option-fields .control { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 7px; }
.command-card[data-view="item"] .preview-option-fields .control > span { font-size: 8px; }
.command-card[data-view="item"] .preview-option-fields .control input { height: 38px; }
.command-card[data-view="item"] .send-button { width: 112px; }
.command-card[data-view="weapon"] .preview-option-fields { grid-template-columns: minmax(210px,1.4fr) minmax(125px,.8fr); }
.command-card[data-view="weapon"] .preview-option-fields > .field-row { min-width: 0; }
.legacy-option-contract { display: none !important; }
.hint-card { display: flex; margin-top: 21px; padding: 13px 14px; gap: 10px; border: 1px solid rgba(65, 151, 194, .12); border-radius: 12px; background: rgba(51,125,167,.04); }
.hint-card svg { width: 15px; height: 15px; flex: 0 0 auto; color: #5ba9ca; }
.hint-card p { margin: 0; color: #65788a; font-size: 8px; line-height: 1.7; }
.hint-card code { color: #71a9ba; font-family: Consolas, monospace; }

.toast-stack { position: fixed; z-index: 100; right: 24px; bottom: 24px; display: grid; width: min(370px, calc(100vw - 32px)); gap: 10px; pointer-events: none; }
.toast { position: relative; display: grid; min-height: 68px; padding: 13px 15px; grid-template-columns: 34px 1fr; align-items: center; gap: 11px; overflow: hidden; border: 1px solid rgba(94,240,174,.18); border-radius: 14px; background: rgba(10, 22, 31, .96); box-shadow: 0 24px 60px rgba(0,0,0,.34); backdrop-filter: blur(22px); animation: toast-in .35s both; pointer-events: auto; }
.toast.error { border-color: rgba(255,100,124,.22); }
.toast.info { border-color: rgba(126,145,164,.28); }
.toast-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: var(--success); background: rgba(94,240,174,.07); }
.toast.error .toast-icon { color: var(--danger); background: rgba(255,100,124,.07); }
.toast.info .toast-icon { color: var(--muted); background: rgba(126,145,164,.12); }
.toast b { display: block; color: #dbe5ee; font-size: 10px; }
.toast p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.toast::after { position: absolute; inset: auto 0 0; height: 2px; background: var(--success); content: ""; animation: toast-life 4.2s linear forwards; transform-origin: left; }
.toast.error::after { background: var(--danger); }
.toast.info::after { background: var(--muted); }
.toast.leaving { animation: toast-out .25s both; }

.reveal { animation: reveal .55s cubic-bezier(.22,.78,.29,1) both; }
.delay-1 { animation-delay: .06s; }
.delay-2 { animation-delay: .12s; }
.delay-3 { animation-delay: .18s; }

@keyframes ambient-drift { to { transform: translate3d(40px, -30px, 0) scale(1.12); } }
@keyframes pulse { 0% { opacity: .75; transform: scale(.55); } 80%,100% { opacity: 0; transform: scale(1.45); } }
@keyframes blink { 0%,46% { opacity: 1; } 47%,100% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes reveal { from { opacity: 0; transform: translateY(13px); } to { opacity: 1; transform: translateY(0); } }
@keyframes row-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toast-in { from { opacity: 0; transform: translateX(18px) scale(.97); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(18px) scale(.97); } }
@keyframes toast-life { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes online-breathe { from { opacity: .4; } to { opacity: 1; } }

@media (max-width: 1080px) {
  .workspace-grid { grid-template-columns: 1fr; }
  .command-footer { grid-template-columns: minmax(0,1fr); }
  .command-config { grid-template-columns: minmax(145px,.55fr) minmax(280px,1.45fr); }
  .send-button { justify-self: end; }
  .content { padding-inline: 30px; }
  .topbar { padding-inline: 30px; }
}

@media (max-width: 820px) {
  body.menu-open { overflow: hidden; }
  .sidebar {
    width: min(82vw, 300px);
    max-width: calc(100vw - 52px);
    padding: calc(22px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom));
    overflow-y: auto;
    background: #08101c;
    transform: translateX(-102%);
    transition: transform .3s cubic-bezier(.2,.8,.2,1);
    backdrop-filter: none;
    will-change: transform;
  }
  body.menu-open .sidebar { transform: translateX(0); }
  .sidebar-overlay {
    position: fixed;
    z-index: 18;
    inset: 0;
    visibility: hidden;
    background: rgba(1, 6, 12, .74);
    opacity: 0;
    pointer-events: none;
    transition: visibility .3s, opacity .3s ease;
  }
  body.menu-open .sidebar-overlay { visibility: visible; opacity: 1; pointer-events: auto; }
  .main { width: 100%; margin-left: 0; }
  .mobile-menu { display: grid; width: 44px; height: 44px; padding: 11px; flex: 0 0 auto; place-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.035); }
  .mobile-menu span { display: block; width: 18px; height: 1px; background: #aab6c2; transition: transform .2s ease, opacity .2s ease; }
  body.menu-open .mobile-menu span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.menu-open .mobile-menu span:nth-child(2) { opacity: 0; }
  body.menu-open .mobile-menu span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .breadcrumb { margin-right: auto; margin-left: 12px; }
  .breadcrumb span, .breadcrumb i { display: none; }
  .topbar {
    height: auto;
    min-height: calc(70px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
    background: rgba(7, 13, 23, .96);
    backdrop-filter: none;
  }
  .top-actions { min-width: 0; margin-left: 8px; }
  .status-pill { display: none; }
  .content { padding: 32px max(18px, env(safe-area-inset-right)) calc(50px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); }
  .command-card { padding: 24px 21px; }
  .command-config { grid-template-columns: minmax(130px,.5fr) minmax(270px,1.5fr); }
  .workspace-grid { gap: 18px; }
  .panel { background: rgba(13, 23, 38, .96); backdrop-filter: none; }
  .nav-item { min-height: 64px; }
}

@media (max-width: 580px) {
  :root {
    color-scheme: light;
    --bg: #78bdf0;
    --surface: rgba(235, 247, 255, .82);
    --surface-strong: rgba(236, 248, 255, .94);
    --surface-soft: rgba(255, 255, 255, .35);
    --line: rgba(54, 92, 153, .20);
    --line-bright: rgba(69, 81, 207, .38);
    --text: #162746;
    --muted: #526985;
    --muted-2: #7288a3;
    --accent: #5369dc;
    --accent-2: #278edc;
    --accent-3: #934bcd;
    --success: #19a878;
    --danger: #d74465;
    --radius-xl: 18px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --shadow: 0 14px 34px rgba(43, 93, 150, .16);
  }

  html { min-width: 280px; background: #78bdf0; }
  body {
    color: var(--text);
    background:
      radial-gradient(circle at 15% 4%, rgba(255,255,255,.82), transparent 28%),
      radial-gradient(circle at 92% 34%, rgba(157,215,255,.78), transparent 31%),
      linear-gradient(155deg, #c8e9ff 0%, #91ccf5 38%, #5ba8e8 100%);
  }
  body.menu-open { overflow: auto; }
  .app-shell { display: block; }
  .ambient { width: 220px; height: 220px; filter: blur(76px); opacity: .15; }
  .ambient-one { background: #ffffff; }
  .ambient-two { background: #4e6ddb; }

  .sidebar {
    inset: auto 0 0;
    z-index: 30;
    display: block;
    width: 100%;
    max-width: none;
    height: calc(72px + env(safe-area-inset-bottom));
    padding: 7px max(8px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px, env(safe-area-inset-left));
    overflow: hidden;
    border: 0;
    border-top: 1px solid rgba(255,255,255,.12);
    background: rgba(25, 43, 78, .97);
    box-shadow: 0 -12px 34px rgba(19, 53, 100, .24);
    transform: none !important;
    backdrop-filter: blur(18px);
  }
  .brand, .nav-caption, .sidebar-overlay { display: none !important; }
  .nav-list { display: grid; height: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  .nav-item {
    display: flex;
    min-height: 58px;
    padding: 5px 2px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    border: 0;
    border-radius: 15px;
    color: #aebbd1;
    text-align: center;
    transform: none !important;
  }
  .nav-item::before, .nav-item small, .nav-item em { display: none; }
  .nav-item:hover { background: rgba(255,255,255,.05); }
  .nav-item.active { border: 0; background: linear-gradient(135deg, #536bd9, #8748bf); box-shadow: 0 8px 18px rgba(31, 37, 96, .3); }
  .nav-icon { width: 27px; height: 27px; border: 0; border-radius: 9px; color: inherit; background: transparent; }
  .nav-icon svg { width: 20px; height: 20px; }
  .nav-item.active .nav-icon { border: 0; color: #fff; background: transparent; box-shadow: none; }
  .nav-item b { color: inherit; font-size: 10px; font-weight: 650; }
  .nav-item.active b { color: #fff; }

  .main { width: 100%; margin-left: 0; }
  .mobile-menu { display: none; }
  .topbar {
    min-height: calc(62px + env(safe-area-inset-top));
    height: auto;
    gap: 7px;
    padding: env(safe-area-inset-top) max(10px, env(safe-area-inset-right)) 0 max(10px, env(safe-area-inset-left));
    border-color: rgba(54, 92, 153, .16);
    background: rgba(225, 243, 255, .88);
    box-shadow: 0 8px 25px rgba(40, 96, 152, .10);
    backdrop-filter: blur(18px);
  }
  .online-pill { height: 40px; padding: 0 9px; gap: 5px; border-color: rgba(25,168,120,.18); color: #177958; background: rgba(255,255,255,.48); }
  .online-pill strong { color: #16845f; font-size: 12px; }
  .online-pill.stale { color: #806614; border-color: rgba(174,136,32,.22); background: rgba(255,248,214,.55); }
  .online-pill.unavailable { color: #ad3150; border-color: rgba(190,57,91,.20); background: rgba(255,235,240,.55); }
  .breadcrumb { min-width: 0; margin: 0 auto 0 7px; }
  .breadcrumb b { display: block; max-width: 64px; overflow: hidden; color: #1d3153; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
  .top-actions { min-width: 0; gap: 6px; margin-left: 0; }
  .status-pill { display: none; }
  .status-pill b { font-size: 9px; white-space: nowrap; }
  .pulse-dot { width: 6px; height: 6px; }
  .uid-field { height: 42px; min-width: 0; padding: 3px; border-color: rgba(54,92,153,.18); background: rgba(255,255,255,.5); }
  .uid-field span { display: none; }
  .uid-field input { width: min(29vw, 106px); min-width: 86px; height: 34px; color: #1d3153; background: rgba(255,255,255,.5); font-size: 16px; }
  .uid-field input::placeholder { color: #8293a9; }

  @media (max-width: 360px) {
    .breadcrumb { display: none; }
    .top-actions { margin-left: auto; }
  }

  .content { padding: 16px max(9px, env(safe-area-inset-right)) calc(88px + env(safe-area-inset-bottom)) max(9px, env(safe-area-inset-left)); }
  .intro { display: block; margin-bottom: 12px; }
  .eyebrow { margin-bottom: 5px; color: #4a62c8; font-size: 7px; }
  .intro h1 { color: #182b4b; font-size: clamp(22px, 7.7vw, 29px); letter-spacing: -.035em; }
  .intro p { display: none; }
  .command-card {
    min-height: 0;
    margin-bottom: 10px;
    padding: 12px;
    border-color: rgba(77, 89, 199, .23);
    border-radius: var(--radius-xl);
    background: linear-gradient(145deg, rgba(242,250,255,.93), rgba(209,235,253,.9));
    box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.78);
  }
  .command-card::before { opacity: .12; }
  .command-glow { top: -190px; right: -140px; background: rgba(91,105,220,.22); }
  .command-head { gap: 8px; }
  .live-chip { margin: 0; color: #4a62c8; }
  .command-head h2 { display: none; }
  .icon-button { width: 32px; height: 32px; border-color: rgba(54,92,153,.18); border-radius: 10px; color: #506684; background: rgba(255,255,255,.44); }
  .command-line { height: 44px; margin: 9px 0; padding: 0 11px; gap: 8px; border-color: rgba(54,92,153,.16); border-radius: 11px; background: rgba(246,252,255,.76); box-shadow: inset 0 1px 5px rgba(38,82,125,.06); }
  .prompt { color: #5268d8; font-size: 19px; }
  .command-line code { color: #243959; font-size: 11px; }
  .command-line code[data-empty="true"] { color: #8798ad; }
  .caret { width: 5px; height: 15px; background: #5369dc; box-shadow: none; }
  .command-footer { display: grid; grid-template-columns: minmax(0,1fr) 109px; align-items: end; gap: 7px; }
  .command-config { display: contents; }
  .preview-option-fields { grid-column: 1 / -1; grid-row: 1; width: 100%; gap: 7px; }
  .selection-summary { width: auto; min-width: 0; grid-column: 1; grid-row: 2; gap: 7px; overflow: hidden; }
  .selection-summary > span { width: 29px; height: 29px; flex: 0 0 auto; border-color: rgba(54,92,153,.17); border-radius: 9px; color: #5268d8; background: rgba(255,255,255,.38); }
  .selection-summary small, .selection-summary em { display: none; }
  .selection-summary b { max-width: 25vw; margin: 0; color: #314967; font-size: 10px; }
  .send-button { width: 109px; height: 40px; grid-column: 2; grid-row: 2; justify-self: stretch; border-radius: 11px; color: #fff; background: linear-gradient(120deg, #4d6cdb, #8d4fc9); box-shadow: 0 8px 18px rgba(75,78,173,.22); }
  .send-button:disabled { color: #8390a5; background: rgba(91,111,139,.16); }

  .workspace-grid { gap: 10px; }
  .panel { border-color: rgba(54,92,153,.18); background: rgba(233,247,255,.82); box-shadow: 0 12px 30px rgba(44,94,147,.12), inset 0 1px rgba(255,255,255,.72); }
  .search-panel { padding: 12px; }
  .search-panel { min-height: 0; }
  .panel-head { gap: 8px; }
  .panel-head span { margin-bottom: 4px; color: #4e64bd; font-size: 7px; }
  .panel-head h3 { color: #233856; font-size: 12px; }
  .panel-head > small { max-width: 47%; margin-top: 12px; color: #768ba5; font-size: 8px; line-height: 1.3; text-align: right; }
  .safe-chip { display: none !important; }
  .search-box { height: 42px; margin: 10px 0 9px; border-color: rgba(54,92,153,.16); border-radius: 11px; background: rgba(249,253,255,.64); }
  .search-box svg { color: #6c819d; }
  .search-box input, .control input, .control select { color: #233856; font-size: 16px; }
  .search-box input::placeholder { color: #8294aa; }
  .search-box kbd { display: none; }
  .result-list { min-height: 0; gap: 5px; }
  .result-row { min-height: 49px; padding: 6px 9px 6px 7px; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; border-color: rgba(54,92,153,.07); border-radius: 11px; background: rgba(255,255,255,.32); }
  .result-row:hover { border-color: rgba(77,89,199,.18); background: rgba(255,255,255,.52); }
  .result-row.selected { border-color: rgba(77,89,199,.28); background: linear-gradient(90deg, rgba(99,116,225,.17), rgba(255,255,255,.38)); }
  .result-avatar { width: 34px; height: 34px; border-color: rgba(54,92,153,.15); border-radius: 9px; color: #617895; background: rgba(255,255,255,.34); }
  .result-row.selected .result-avatar, .result-row:hover .result-avatar { color: #5369dc; border-color: rgba(77,89,199,.24); background: rgba(255,255,255,.5); }
  .result-info b { color: #283d5d; font-size: 11px; }
  .result-info span { margin-top: 3px; color: #7890aa; }
  .row-arrow { color: #7287a1; }
  .pagination { margin-top: 9px; justify-content: space-between; }
  .pagination button { min-width: 70px; min-height: 36px; padding: 6px 9px; border-color: rgba(54,92,153,.16); color: #4f6683; background: rgba(255,255,255,.3); }
  .pagination span { color: #6f849f; }
  .skeleton-row { height: 49px; background: rgba(255,255,255,.24); }
  .empty-results { min-height: 230px; }

  .selected-card { display: none; }
  .option-fields { gap: 9px; }
  .preview-option-fields { gap: 7px; }
  .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .control { gap: 6px; }
  .control > span { color: #526985; }
  .control small { color: #7187a1; }
  .control input, .control select { height: 42px; border-color: rgba(54,92,153,.16); border-radius: 10px; background: rgba(249,253,255,.6); }
  .preview-option-fields .control input, .preview-option-fields .control select { height: 38px; padding-inline: 8px; }
  .command-card[data-view="item"] .command-footer { grid-template-columns: minmax(118px,160px) 84px; justify-content: start; gap: 6px; }
  .command-card[data-view="item"] .command-config { display: contents; }
  .command-card[data-view="item"] .selection-summary { display: none; }
  .command-card[data-view="item"] .preview-option-fields { width: auto; grid-column: 1; grid-row: 1; }
  .command-card[data-view="item"] .preview-option-fields .control { gap: 5px; }
  .command-card[data-view="item"] .preview-option-fields .control input { height: 36px; min-width: 0; }
  .command-card[data-view="item"] .send-button { width: 84px; height: 36px; grid-column: 2; grid-row: 1; font-size: 8px; }
  .command-card[data-view="item"] .send-label { gap: 0; white-space: nowrap; }
  .command-card[data-view="item"] .send-label svg { display: none; }
  .command-card[data-view="weapon"] .preview-option-fields { grid-template-columns: minmax(0,1.55fr) minmax(92px,.8fr); }
  .hint-card { margin-top: 10px; padding: 9px 10px; border-color: rgba(54,92,153,.13); background: rgba(255,255,255,.26); }
  .hint-card p { color: #657b97; }
  .hint-card code { color: #435bb3; }

  .toast-stack { right: max(9px, env(safe-area-inset-right)); bottom: calc(81px + env(safe-area-inset-bottom)); width: calc(100vw - max(18px, env(safe-area-inset-left) + env(safe-area-inset-right))); }
  .toast { border-color: rgba(77,89,199,.24); color: #233856; background: rgba(239,248,255,.97); box-shadow: 0 16px 38px rgba(31,68,113,.24); }
  .toast b { color: #233856; }
  .toast p { color: #617691; }
}

/* 登录与账号绑定 */
body.auth-pending .app-shell,
body.auth-mode .app-shell { display: none; }
body.app-mode:not(.auth-open) .auth-screen { display: none; }
body.settings-open { overflow: hidden; }

.auth-screen {
  position: relative;
  z-index: 50;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 42px;
  place-items: center;
  overflow: hidden;
}
.auth-screen::before {
  position: absolute;
  width: min(72vw, 940px);
  aspect-ratio: 1;
  border: 1px solid rgba(89,239,208,.06);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 82px, rgba(89,239,208,.025) 83px 84px);
  content: "";
  animation: auth-drift 18s linear infinite;
}
.auth-card {
  position: relative;
  z-index: 2;
  width: min(100%, 440px);
  padding: 34px 36px 30px;
  border: 1px solid rgba(135,169,202,.17);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(17,29,47,.96), rgba(8,15,26,.97));
  box-shadow: 0 36px 100px rgba(0,0,0,.46), inset 0 1px rgba(255,255,255,.045);
  backdrop-filter: blur(30px);
  animation: auth-card-in .7s cubic-bezier(.2,.82,.2,1) both;
}
.auth-card::before { position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 85% 4%, rgba(64,170,255,.13), transparent 34%), radial-gradient(circle at 5% 100%, rgba(89,239,208,.08), transparent 32%); content: ""; pointer-events: none; }
.auth-card > * { position: relative; z-index: 1; }
.auth-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 34px; }
.auth-brand .brand-logo { width: 34px; height: 34px; border-radius: 10px; }
.auth-brand .brand-logo > span { font-size: 14px; }
.auth-brand b { display: block; font-size: 13px; letter-spacing: .18em; }
.auth-brand small { display: block; margin-top: 5px; color: var(--muted-2); font-size: 7px; font-weight: 800; letter-spacing: .2em; }
.auth-copy > span { color: var(--accent); font-size: 8px; font-weight: 800; letter-spacing: .23em; }
.auth-copy h1 { margin: 9px 0 8px; font-size: 32px; font-weight: 650; letter-spacing: -.045em; }
.auth-copy p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.auth-tabs { display: grid; height: 45px; margin: 25px 0 20px; padding: 4px; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 13px; background: rgba(0,0,0,.18); }
.auth-tabs button { border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 700; cursor: pointer; transition: .25s ease; }
.auth-tabs button.active { color: #061310; background: linear-gradient(120deg, #61efd2, #58c9e8); box-shadow: 0 7px 20px rgba(65,214,193,.16); }
.auth-form { display: grid; gap: 15px; }
.auth-form label > span, .setting-control > span { display: block; margin: 0 0 7px 2px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .05em; }
.auth-input { display: flex; height: 49px; padding: 0 12px; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); transition: .25s ease; }
.auth-input:focus-within { border-color: rgba(89,239,208,.36); background: rgba(89,239,208,.035); box-shadow: 0 0 0 3px rgba(89,239,208,.045); }
.auth-input > svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--muted-2); }
.auth-input input { width: 100%; min-width: 0; height: 100%; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 13px; }
.auth-input input::placeholder { color: #445166; }
.auth-email-field[hidden], .auth-email-code-field[hidden] { display: none; }
.auth-field-hint { display: block; margin: 7px 2px 0; color: var(--muted-2); font-size: 8px; line-height: 1.45; }
.auth-email-code-row { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.auth-email-code-row > .auth-input { min-width: 0; }
.auth-code-input { font-family: "SFMono-Regular", Consolas, monospace; letter-spacing: .26em; text-indent: .26em; }
.auth-code-send { min-width: 108px; height: 49px; padding: 0 12px; border: 1px solid rgba(89,239,208,.18); border-radius: 13px; color: var(--accent); background: rgba(89,239,208,.07); font-size: 10px; font-weight: 750; white-space: nowrap; cursor: pointer; transition: .2s ease; }
.auth-code-send:hover:not(:disabled) { border-color: rgba(89,239,208,.34); background: rgba(89,239,208,.13); transform: translateY(-1px); }
.auth-code-send:disabled { color: var(--muted-2); border-color: var(--line); background: rgba(255,255,255,.02); cursor: not-allowed; transform: none; }
.auth-code-status { min-height: 16px; margin: 7px 2px -3px; color: var(--muted-2); font-size: 9px; line-height: 1.45; }
.auth-code-status.success { color: var(--success); }
.auth-code-status.error { color: #ff899b; }
.password-toggle { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border: 0; border-radius: 8px; color: var(--muted-2); background: transparent; cursor: pointer; }
.password-toggle:hover { color: var(--accent); background: rgba(89,239,208,.06); }
.password-toggle svg { width: 17px; height: 17px; }
.confirm-password[hidden] { display: none; }
.auth-error { min-height: 16px; margin: -3px 2px -4px; color: #ff899b; font-size: 10px; line-height: 1.5; }
.auth-submit { position: relative; display: flex; height: 52px; margin-top: 1px; padding: 0 20px; align-items: center; justify-content: center; gap: 10px; overflow: hidden; border: 0; border-radius: 14px; color: #061410; background: linear-gradient(120deg, #61f0d2, #5bc7e9); box-shadow: 0 12px 30px rgba(65,214,193,.17); font-size: 11px; font-weight: 850; cursor: pointer; transition: .25s ease; }
.auth-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(65,214,193,.23); }
.auth-submit:disabled { cursor: wait; filter: saturate(.4); transform: none; }
.auth-submit svg { width: 17px; height: 17px; }
.auth-submit i { display: none; width: 15px; height: 15px; border: 2px solid rgba(5,20,16,.2); border-top-color: #061410; border-radius: 50%; animation: spin .8s linear infinite; }
.auth-submit.loading i { display: block; }
.auth-submit.loading svg { display: none; }
.auth-note { display: flex; margin-top: 21px; align-items: center; justify-content: center; gap: 7px; color: var(--muted-2); font-size: 8px; }
.auth-note i { width: 5px; height: 5px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px rgba(94,240,174,.6); }
.auth-visual { position: fixed; z-index: 1; top: 50%; left: calc(50% - 420px); display: grid; width: 310px; height: 310px; place-items: center; transform: translate(-50%,-50%); opacity: .42; }
.auth-visual > i { position: absolute; inset: 0; border: 1px solid rgba(89,239,208,.24); border-radius: 42% 58% 62% 38%; animation: orbit-shape 14s linear infinite; }
.auth-visual > i:nth-child(2) { inset: 38px; border-color: rgba(64,170,255,.3); animation-duration: 10s; animation-direction: reverse; }
.auth-visual > i:nth-child(3) { inset: 75px; border-color: rgba(135,108,255,.3); animation-duration: 7s; }
.auth-core { display: grid; width: 74px; height: 74px; place-items: center; border: 1px solid rgba(89,239,208,.4); border-radius: 24px; color: var(--accent); background: rgba(89,239,208,.08); box-shadow: 0 0 55px rgba(89,239,208,.15); font-size: 24px; transform: rotate(30deg); }
.auth-core b { transform: rotate(-30deg); }

.uid-field { border-style: solid; color: inherit; cursor: pointer; }
.uid-field:hover { border-color: rgba(89,239,208,.3); background: rgba(89,239,208,.045); }
.uid-field strong { min-width: 94px; color: #dce7f0; font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; font-weight: 600; text-align: right; }
.settings-gear { width: 18px; height: 18px; flex: 0 0 auto; color: var(--muted); transition: color .25s, transform .45s cubic-bezier(.2,.8,.2,1); }
.uid-field:hover .settings-gear { color: var(--accent); transform: rotate(90deg); }
.uid-field.clicked .settings-gear { animation: gear-click .55s ease; }

.settings-overlay { position: fixed; z-index: 100; inset: 0; display: grid; padding: 24px; place-items: center; background: rgba(2,7,13,.68); backdrop-filter: blur(16px); animation: fade-in .24s ease both; }
.settings-overlay[hidden] { display: none; }
.settings-sheet { position: relative; width: min(100%, 480px); max-height: calc(100dvh - 48px); padding: 29px; overflow: auto; border: 1px solid rgba(137,168,201,.18); border-radius: 28px; background: linear-gradient(145deg, rgba(17,29,47,.99), rgba(8,15,26,.99)); box-shadow: 0 34px 100px rgba(0,0,0,.5); animation: sheet-in .38s cubic-bezier(.18,.86,.3,1.08) both; }
.settings-handle { display: none; }
.settings-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.settings-head span { color: var(--accent); font-size: 8px; font-weight: 800; letter-spacing: .2em; }
.settings-head h2 { margin: 7px 0 0; font-size: 25px; font-weight: 650; letter-spacing: -.035em; }
.settings-close { display: grid; width: 37px; height: 37px; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: rgba(255,255,255,.025); cursor: pointer; }
.settings-close:hover { color: var(--accent); border-color: var(--line-bright); }
.settings-close svg { width: 17px; height: 17px; }
.account-card { display: flex; min-height: 66px; margin: 23px 0 16px; padding: 11px 13px; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); }
.account-avatar { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid rgba(89,239,208,.22); border-radius: 12px; color: var(--accent); background: rgba(89,239,208,.07); font-weight: 750; }
.account-card div { flex: 1; min-width: 0; }
.account-card small { display: block; color: var(--muted-2); font-size: 8px; }
.account-card b { display: block; margin-top: 4px; overflow: hidden; color: #dce6ef; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.account-state { padding: 5px 8px; border-radius: 8px; color: var(--success); background: rgba(94,240,174,.07); font-size: 8px; }
.binding-intro { display: flex; padding: 15px; align-items: center; gap: 12px; border: 1px solid rgba(64,170,255,.12); border-radius: 16px; background: rgba(64,170,255,.04); }
.mail-icon { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border-radius: 12px; color: var(--accent-2); background: rgba(64,170,255,.08); }
.mail-icon svg { width: 20px; height: 20px; }
.binding-intro b { color: #dce6ef; font-size: 11px; }
.binding-intro p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.setting-control { display: block; margin-top: 16px; }
.binding-input-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.setting-control input { width: 100%; min-width: 0; height: 46px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; outline: 0; color: var(--text); background: rgba(255,255,255,.025); font-family: "SFMono-Regular", Consolas, monospace; font-size: 13px; transition: .2s ease; }
.setting-control input:focus { border-color: rgba(89,239,208,.32); box-shadow: 0 0 0 3px rgba(89,239,208,.04); }
.binding-input-row button { min-width: 103px; padding: 0 13px; border: 1px solid rgba(89,239,208,.18); border-radius: 12px; color: var(--accent); background: rgba(89,239,208,.07); font-size: 10px; font-weight: 750; cursor: pointer; }
.binding-input-row button:disabled { color: var(--muted-2); border-color: var(--line); background: rgba(255,255,255,.02); cursor: not-allowed; }
.setting-control > small { display: block; margin: 7px 2px 0; color: var(--muted-2); font-size: 8px; }
.code-input { text-align: center; font-size: 20px !important; font-weight: 700; letter-spacing: .52em; text-indent: .52em; }
.code-status { min-height: 18px; margin: 9px 2px 8px; color: var(--muted); font-size: 9px; text-align: center; }
.code-status.success { color: var(--success); }
.code-status.error { color: #ff899b; }
.verify-button { display: flex; width: 100%; height: 48px; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 13px; color: #061410; background: linear-gradient(120deg,#61efd2,#5ac7e8); font-size: 10px; font-weight: 850; cursor: pointer; }
.verify-button svg { width: 17px; height: 17px; }
.verify-button:disabled { color: #667281; background: rgba(255,255,255,.06); cursor: not-allowed; }
.binding-warning { margin: 11px 2px 0; color: #9c8c67; font-size: 8px; line-height: 1.5; text-align: center; }
.binding-success { min-height: 126px; padding: 16px; border: 1px solid rgba(94,240,174,.18); border-radius: 19px; background: linear-gradient(120deg,rgba(94,240,174,.08),rgba(64,170,255,.035)); }
.binding-success[hidden] { display: none; }
.bound-list-head { display: flex; align-items: center; gap: 13px; }
.success-ring { display: grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(94,240,174,.34); border-radius: 50%; color: var(--success); background: rgba(94,240,174,.08); box-shadow: 0 0 30px rgba(94,240,174,.1); }
.success-ring svg { width: 21px; height: 21px; stroke-width: 2.2; }
.bound-list-copy { min-width: 0; }
.bound-list-copy small { color: var(--success); font-size: 8px; font-weight: 800; letter-spacing: .17em; }
.bound-list-copy b { display: block; margin-top: 4px; color: #e7f8f2; font-size: 12px; }
.bound-list-copy p { margin: 4px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.uid-choice-list { display: grid; max-height: 168px; margin-top: 13px; padding-right: 3px; gap: 7px; overflow: auto; overscroll-behavior: contain; }
.uid-choice { display: grid; min-height: 42px; padding: 0 11px; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: rgba(255,255,255,.025); cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.uid-choice:hover { border-color: rgba(89,239,208,.24); background: rgba(89,239,208,.05); transform: translateY(-1px); }
.uid-choice i { width: 7px; height: 7px; border: 1px solid var(--muted-2); border-radius: 50%; }
.uid-choice strong { font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; font-weight: 650; text-align: left; }
.uid-choice small { color: var(--muted-2); font-size: 8px; }
.uid-choice.active { border-color: rgba(94,240,174,.32); background: linear-gradient(90deg,rgba(94,240,174,.11),rgba(64,170,255,.045)); box-shadow: inset 3px 0 var(--success); }
.uid-choice.active i { border-color: var(--success); background: var(--success); box-shadow: 0 0 9px rgba(94,240,174,.75); }
.uid-choice.active small { color: var(--success); }
.logout-button { display: flex; width: 100%; height: 43px; margin-top: 17px; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(255,100,124,.13); border-radius: 12px; color: #d98593; background: rgba(255,100,124,.035); font-size: 9px; cursor: pointer; }
.logout-button:hover { color: #ff9dab; border-color: rgba(255,100,124,.25); background: rgba(255,100,124,.07); }
.logout-button svg { width: 16px; height: 16px; }

@keyframes auth-card-in { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes auth-drift { to { transform: rotate(360deg); } }
@keyframes orbit-shape { to { transform: rotate(360deg); } }
@keyframes gear-click { 50% { transform: rotate(180deg) scale(1.16); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .auth-visual { display: none; }
}

@media (max-width: 580px) {
  .auth-screen { padding: max(18px, env(safe-area-inset-top)) max(15px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(15px, env(safe-area-inset-left)); background: linear-gradient(155deg,#b8def7 0%,#86c8f4 46%,#589de1 100%); }
  .auth-screen::before { width: 150vw; border-color: rgba(255,255,255,.17); background: repeating-radial-gradient(circle,transparent 0 58px,rgba(255,255,255,.09) 59px 60px); opacity: .65; }
  .auth-card { padding: 27px 22px 23px; border-color: rgba(255,255,255,.52); border-radius: 27px; color: #1c3152; background: linear-gradient(145deg,rgba(239,249,255,.92),rgba(207,234,252,.9)); box-shadow: 0 25px 65px rgba(35,82,137,.26),inset 0 1px rgba(255,255,255,.92); }
  .auth-card::before { background: radial-gradient(circle at 90% 0,rgba(101,85,211,.12),transparent 31%),radial-gradient(circle at 0 100%,rgba(31,168,198,.12),transparent 30%); }
  .auth-brand { margin-bottom: 27px; }
  .auth-brand small { color: #7085a2; }
  .auth-copy > span { color: #5265c6; }
  .auth-copy h1 { color: #1b3051; font-size: 29px; }
  .auth-copy p { color: #647a97; }
  .auth-tabs { border-color: rgba(60,91,143,.15); background: rgba(255,255,255,.3); }
  .auth-tabs button { color: #657a98; }
  .auth-tabs button.active { color: #fff; background: linear-gradient(120deg,#4e6ed9,#8750c5); box-shadow: 0 7px 18px rgba(65,72,161,.22); }
  .auth-form label > span { color: #536b88; }
  .auth-input { border-color: rgba(55,88,139,.17); background: rgba(255,255,255,.43); }
  .auth-input:focus-within { border-color: rgba(73,96,202,.4); background: rgba(255,255,255,.62); box-shadow: 0 0 0 3px rgba(73,96,202,.07); }
  .auth-input > svg, .password-toggle { color: #6d829e; }
  .auth-input input { color: #1f3555; font-size: 16px; }
  .auth-input input::placeholder { color: #8798ad; }
  .auth-field-hint { color: #71859f; }
  .auth-code-input { font-size: 14px !important; letter-spacing: .18em; text-indent: .18em; }
  .auth-code-send { color: #5367c8; border-color: rgba(77,89,199,.19); background: rgba(255,255,255,.44); }
  .auth-code-send:hover:not(:disabled) { border-color: rgba(77,89,199,.35); background: rgba(255,255,255,.64); }
  .auth-code-send:disabled { color: #8795a8; border-color: rgba(54,92,153,.11); background: rgba(255,255,255,.22); }
  .auth-code-status { color: #71859f; }
  .auth-code-status.success { color: #17825d; }
  .auth-code-status.error { color: #b73e5b; }
  .auth-submit { color: #fff; background: linear-gradient(120deg,#4d6ddd,#8a4fc5); box-shadow: 0 11px 26px rgba(69,72,165,.24); }
  .auth-submit i { border-color: rgba(255,255,255,.3); border-top-color: #fff; }
  .auth-note { color: #6f84a0; }

  .uid-field { height: 42px; min-width: 115px; padding: 3px 6px 3px 10px; border-color: rgba(54,92,153,.18); background: rgba(255,255,255,.5); }
  .uid-field strong { min-width: 0; max-width: 91px; overflow: hidden; color: #1d3153; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
  .settings-gear { width: 17px; height: 17px; color: #607693; }

  .settings-overlay { padding: 0; place-items: end center; background: rgba(29,61,101,.35); backdrop-filter: blur(12px); }
  .settings-sheet { width: 100%; max-height: calc(93dvh - env(safe-area-inset-top)); padding: 13px 18px calc(18px + env(safe-area-inset-bottom)); border: 1px solid rgba(255,255,255,.64); border-bottom: 0; border-radius: 27px 27px 0 0; color: #1e3454; background: linear-gradient(155deg,rgba(239,249,255,.98),rgba(207,234,252,.98)); box-shadow: 0 -20px 60px rgba(39,82,133,.25); animation-name: mobile-sheet-in; }
  .settings-handle { display: block; width: 43px; height: 4px; margin: 0 auto 14px; border-radius: 4px; background: rgba(56,83,122,.24); }
  .settings-head span { color: #5365c5; }
  .settings-head h2 { color: #1d3152; }
  .settings-close { border-color: rgba(54,92,153,.16); color: #617793; background: rgba(255,255,255,.38); }
  .account-card { border-color: rgba(54,92,153,.16); background: rgba(255,255,255,.38); }
  .account-avatar { color: #5267d1; border-color: rgba(77,89,199,.22); background: rgba(255,255,255,.4); }
  .account-card small { color: #71859f; }
  .account-card b { color: #253b5b; }
  .account-state { color: #17825d; background: rgba(28,158,112,.08); }
  .binding-intro { border-color: rgba(67,92,190,.15); background: rgba(255,255,255,.28); }
  .mail-icon { color: #5369d2; background: rgba(255,255,255,.42); }
  .binding-intro b { color: #263c5d; }
  .binding-intro p { color: #667c98; }
  .setting-control > span { color: #536b88; }
  .setting-control input { border-color: rgba(54,92,153,.17); color: #223958; background: rgba(255,255,255,.48); font-size: 16px; }
  .binding-input-row button { color: #5367c8; border-color: rgba(77,89,199,.19); background: rgba(255,255,255,.44); }
  .binding-input-row button:disabled { color: #8795a8; border-color: rgba(54,92,153,.11); background: rgba(255,255,255,.22); }
  .setting-control > small, .code-status { color: #71859f; }
  .code-status.success { color: #17825d; }
  .code-status.error { color: #b73e5b; }
  .verify-button { color: #fff; background: linear-gradient(120deg,#4e6dda,#8950c5); }
  .verify-button:disabled { color: #8391a5; background: rgba(80,101,130,.13); }
  .binding-warning { color: #846d46; }
  .binding-success { border-color: rgba(26,147,104,.19); background: rgba(255,255,255,.35); }
  .success-ring { color: #16936a; border-color: rgba(26,147,104,.25); background: rgba(255,255,255,.42); }
  .bound-list-copy small { color: #16825e; }
  .bound-list-copy b { color: #223958; }
  .bound-list-copy p { color: #687d97; }
  .uid-choice { border-color: rgba(54,92,153,.15); color: #243a5a; background: rgba(255,255,255,.38); }
  .uid-choice:hover { border-color: rgba(77,89,199,.23); background: rgba(255,255,255,.54); }
  .uid-choice strong { font-size: 14px; }
  .uid-choice small { color: #71859f; }
  .uid-choice.active { border-color: rgba(26,147,104,.28); background: linear-gradient(90deg,rgba(75,196,157,.16),rgba(255,255,255,.42)); box-shadow: inset 3px 0 #16936a; }
  .uid-choice.active i { border-color: #16936a; background: #16936a; box-shadow: 0 0 8px rgba(22,147,106,.4); }
  .uid-choice.active small { color: #16825e; }
  .logout-button { color: #a9415c; border-color: rgba(183,62,91,.17); background: rgba(255,255,255,.25); }
  @keyframes mobile-sheet-in { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: none; } }
}

/* 电脑端与手机端共用同一套浅蓝视觉语言；大屏只调整信息密度与排版。 */
@media (min-width: 581px) {
  :root {
    color-scheme: light;
    --bg: #78bdf0;
    --sidebar: rgba(232, 247, 255, .90);
    --surface: rgba(235, 247, 255, .84);
    --surface-strong: rgba(238, 249, 255, .95);
    --surface-soft: rgba(255, 255, 255, .38);
    --line: rgba(54, 92, 153, .18);
    --line-bright: rgba(75, 89, 205, .38);
    --text: #162746;
    --muted: #526985;
    --muted-2: #7288a3;
    --accent: #5369dc;
    --accent-2: #278edc;
    --accent-3: #934bcd;
    --success: #19a878;
    --danger: #d74465;
    --shadow: 0 20px 55px rgba(43, 93, 150, .16);
  }

  html { background: #78bdf0; }
  body {
    color: var(--text);
    background:
      radial-gradient(circle at 13% 5%, rgba(255,255,255,.88), transparent 27%),
      radial-gradient(circle at 91% 29%, rgba(166,218,255,.75), transparent 30%),
      linear-gradient(155deg, #cceaff 0%, #98d0f5 43%, #62ace8 100%);
  }
  button:focus-visible, input:focus-visible, select:focus-visible {
    outline-color: rgba(79, 99, 211, .78);
  }
  .ambient { opacity: .17; filter: blur(100px); }
  .ambient-one { background: #ffffff; }
  .ambient-two { background: #5a70da; }

  .sidebar {
    border-color: rgba(54,92,153,.14);
    color: #203654;
    background: linear-gradient(160deg, rgba(244,251,255,.94), rgba(216,238,253,.91));
    box-shadow: 18px 0 52px rgba(39,84,133,.13);
  }
  .brand { color: #1c3151; }
  .brand small, .nav-caption { color: #6e829d; }
  .nav-item { color: #2c4261; }
  .nav-item:hover { background: rgba(255,255,255,.48); }
  .nav-item.active {
    border-color: rgba(83,105,220,.16);
    background: linear-gradient(125deg, #536bd9, #8750c5);
    box-shadow: 0 12px 28px rgba(62,69,159,.22);
  }
  .nav-item::before { background: #fff; box-shadow: 0 0 12px rgba(255,255,255,.9); }
  .nav-icon { color: #647b98; border-color: rgba(54,92,153,.15); background: rgba(255,255,255,.38); }
  .nav-item.active .nav-icon { color: #fff; border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.14); box-shadow: none; }
  .nav-item b { color: #293e5d; }
  .nav-item small { color: #7489a3; }
  .nav-item em { color: #607793; background: rgba(255,255,255,.42); }
  .nav-item.active b, .nav-item.active small, .nav-item.active em { color: #fff; }
  .nav-item.active em { background: rgba(255,255,255,.14); }

  .topbar {
    border-color: rgba(54,92,153,.14);
    background: rgba(229,245,255,.86);
    box-shadow: 0 8px 28px rgba(40,96,152,.09);
    backdrop-filter: blur(22px);
  }
  .mobile-menu { border-color: rgba(54,92,153,.17); background: rgba(255,255,255,.44); }
  .mobile-menu span { background: #657b98; }
  .online-pill { border-color: rgba(25,168,120,.19); color: #177958; background: rgba(255,255,255,.48); }
  .online-pill strong { color: #16845f; }
  .online-pill.stale { color: #806614; border-color: rgba(174,136,32,.22); background: rgba(255,248,214,.58); }
  .online-pill.unavailable { color: #ad3150; border-color: rgba(190,57,91,.20); background: rgba(255,235,240,.58); }
  .breadcrumb span { color: #7589a3; }
  .breadcrumb i { background: #8798ad; }
  .breadcrumb b { color: #263b5a; }
  .status-pill { color: #177958; border-color: rgba(25,168,120,.16); background: rgba(255,255,255,.40); }
  .status-pill.error { color: #ad3150; border-color: rgba(190,57,91,.20); background: rgba(255,235,240,.58); }
  .uid-field { border-color: rgba(54,92,153,.18); background: rgba(255,255,255,.52); }
  .uid-field:hover { border-color: rgba(77,89,199,.32); background: rgba(255,255,255,.68); }
  .uid-field span { color: #7186a0; }
  .uid-field strong { color: #1d3153; }
  .settings-gear { color: #607693; }
  .uid-field:hover .settings-gear { color: #5369dc; }

  .eyebrow { color: #4a62c8; }
  .intro h1 { color: #182b4b; }
  .intro p { color: #526985; }
  .command-card {
    border-color: rgba(77,89,199,.22);
    background: linear-gradient(145deg, rgba(244,251,255,.94), rgba(211,236,253,.92));
    box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.82);
  }
  .command-card::before { opacity: .15; }
  .command-glow { background: rgba(91,105,220,.20); }
  .live-chip { color: #4a62c8; }
  .command-head h2 { color: #536985; }
  .icon-button { color: #506684; border-color: rgba(54,92,153,.17); background: rgba(255,255,255,.46); }
  .icon-button:hover { color: #5369dc; border-color: rgba(77,89,199,.28); background: rgba(255,255,255,.7); }
  .command-line { border-color: rgba(54,92,153,.15); background: rgba(248,253,255,.77); box-shadow: inset 0 1px 7px rgba(38,82,125,.06); }
  .prompt { color: #5268d8; }
  .command-line code { color: #243959; }
  .command-line code[data-empty="true"] { color: #8798ad; }
  .caret { background: #5369dc; box-shadow: 0 0 8px rgba(83,105,220,.32); }
  .selection-summary > span { color: #5268d8; border-color: rgba(54,92,153,.17); background: rgba(255,255,255,.42); }
  .selection-summary small { color: #758aa4; }
  .selection-summary b { color: #314967; }
  .selection-summary em { color: #607793; background: rgba(255,255,255,.46); }
  .send-button { color: #fff; background: linear-gradient(120deg,#4d6cdb,#8d4fc9); box-shadow: 0 10px 24px rgba(75,78,173,.23); }
  .send-button:not(:disabled):hover { box-shadow: 0 15px 32px rgba(75,78,173,.29); }
  .send-button:disabled { color: #8390a5; background: rgba(91,111,139,.16); }

  .panel { border-color: rgba(54,92,153,.17); background: rgba(236,248,255,.84); box-shadow: 0 16px 42px rgba(44,94,147,.13), inset 0 1px rgba(255,255,255,.76); }
  .panel-head span { color: #4e64bd; }
  .panel-head h3 { color: #233856; }
  .panel-head > small { color: #768ba5; }
  .safe-chip { color: #17825d !important; border-color: rgba(26,147,104,.18); background: rgba(255,255,255,.38); }
  .search-box { border-color: rgba(54,92,153,.15); background: rgba(249,253,255,.68); }
  .search-box:focus-within { border-color: rgba(77,89,199,.32); box-shadow: 0 0 0 3px rgba(77,89,199,.06); }
  .search-box svg { color: #6c819d; }
  .search-box input, .control input, .control select { color: #233856; }
  .search-box input::placeholder { color: #8294aa; }
  .search-box kbd { color: #617792; border-color: rgba(54,92,153,.15); background: rgba(255,255,255,.43); }
  .result-row { border-color: rgba(54,92,153,.06); background: rgba(255,255,255,.34); }
  .result-row:hover { border-color: rgba(77,89,199,.18); background: rgba(255,255,255,.57); }
  .result-row.selected { border-color: rgba(77,89,199,.28); background: linear-gradient(90deg,rgba(99,116,225,.17),rgba(255,255,255,.39)); }
  .result-avatar { color: #617895; border-color: rgba(54,92,153,.15); background: rgba(255,255,255,.38); }
  .result-row.selected .result-avatar, .result-row:hover .result-avatar { color: #5369dc; border-color: rgba(77,89,199,.24); background: rgba(255,255,255,.58); }
  .result-info b { color: #283d5d; }
  .result-info span { color: #7890aa; }
  .result-info mark { color: #5369dc; }
  .row-arrow { color: #7287a1; }
  .result-row:hover .row-arrow, .result-row.selected .row-arrow { color: #5369dc; }
  .skeleton-row { background: rgba(255,255,255,.24); }
  .skeleton-row i, .skeleton-row span { background: rgba(83,105,160,.09); }
  .empty-results { color: #7288a3; }
  .pagination button { color: #4f6683; border-color: rgba(54,92,153,.16); background: rgba(255,255,255,.34); }
  .pagination button:not(:disabled):hover { color: #5369dc; border-color: rgba(77,89,199,.28); }
  .pagination span { color: #6f849f; }

  .selected-card { border-color: rgba(54,92,153,.15); background: linear-gradient(135deg,rgba(99,116,225,.10),rgba(255,255,255,.34)); }
  .selected-orbit { color: #5369dc; border-color: rgba(77,89,199,.22); background: rgba(255,255,255,.38); }
  .selected-orbit::before { border-color: rgba(77,89,199,.25); }
  .selected-orbit i { background: #5369dc; box-shadow: 0 0 8px rgba(83,105,220,.5); }
  .selected-card small { color: #7186a0; }
  .selected-card h4 { color: #293e5d; }
  .selected-card p, .control > span { color: #526985; }
  .control small { color: #7187a1; }
  .control input, .control select { border-color: rgba(54,92,153,.15); background: rgba(249,253,255,.66); }
  .control input:focus, .control select:focus { border-color: rgba(77,89,199,.30); box-shadow: 0 0 0 3px rgba(77,89,199,.05); }
  .hint-card { border-color: rgba(54,92,153,.13); background: rgba(255,255,255,.28); }
  .hint-card svg { color: #5369dc; }
  .hint-card p { color: #657b97; }
  .hint-card code { color: #435bb3; }

  .toast { border-color: rgba(77,89,199,.24); color: #233856; background: rgba(239,248,255,.97); box-shadow: 0 16px 38px rgba(31,68,113,.24); }
  .toast b { color: #233856; }
  .toast p { color: #617691; }

  .auth-screen { background: linear-gradient(155deg,#c8e9ff 0%,#91ccf5 42%,#5ba8e8 100%); }
  .auth-screen::before { border-color: rgba(255,255,255,.17); background: repeating-radial-gradient(circle,transparent 0 72px,rgba(255,255,255,.09) 73px 74px); opacity: .7; }
  .auth-card { border-color: rgba(255,255,255,.56); color: #1c3152; background: linear-gradient(145deg,rgba(243,251,255,.94),rgba(211,236,252,.92)); box-shadow: 0 28px 76px rgba(35,82,137,.25),inset 0 1px rgba(255,255,255,.94); }
  .auth-card::before { background: radial-gradient(circle at 90% 0,rgba(101,85,211,.12),transparent 31%),radial-gradient(circle at 0 100%,rgba(31,168,198,.12),transparent 30%); }
  .auth-brand small, .auth-copy p, .auth-note { color: #6f84a0; }
  .auth-copy > span { color: #5265c6; }
  .auth-copy h1 { color: #1b3051; }
  .auth-tabs { border-color: rgba(60,91,143,.15); background: rgba(255,255,255,.30); }
  .auth-tabs button { color: #657a98; }
  .auth-tabs button.active { color: #fff; background: linear-gradient(120deg,#4e6ed9,#8750c5); box-shadow: 0 7px 18px rgba(65,72,161,.22); }
  .auth-form label > span { color: #536b88; }
  .auth-input { border-color: rgba(55,88,139,.17); background: rgba(255,255,255,.45); }
  .auth-input:focus-within { border-color: rgba(73,96,202,.40); background: rgba(255,255,255,.63); box-shadow: 0 0 0 3px rgba(73,96,202,.07); }
  .auth-input > svg, .password-toggle { color: #6d829e; }
  .auth-input input { color: #1f3555; }
  .auth-input input::placeholder { color: #8798ad; }
  .auth-submit { color: #fff; background: linear-gradient(120deg,#4d6ddd,#8a4fc5); box-shadow: 0 11px 26px rgba(69,72,165,.24); }
  .auth-submit i { border-color: rgba(255,255,255,.3); border-top-color: #fff; }
  .auth-visual > i { border-color: rgba(77,89,199,.30); }
  .auth-visual > i:nth-child(2) { border-color: rgba(39,142,220,.34); }
  .auth-visual > i:nth-child(3) { border-color: rgba(147,75,205,.34); }
  .auth-core { color: #5369dc; border-color: rgba(77,89,199,.38); background: rgba(255,255,255,.30); box-shadow: 0 0 55px rgba(77,89,199,.16); }

  .settings-overlay { background: rgba(29,61,101,.34); backdrop-filter: blur(14px); }
  .settings-sheet { width: min(100%,540px); border-color: rgba(255,255,255,.65); color: #1e3454; background: linear-gradient(155deg,rgba(243,251,255,.99),rgba(211,236,252,.99)); box-shadow: 0 30px 80px rgba(39,82,133,.27); }
  .settings-head span { color: #5365c5; }
  .settings-head h2 { color: #1d3152; }
  .settings-close { border-color: rgba(54,92,153,.16); color: #617793; background: rgba(255,255,255,.42); }
  .account-card { border-color: rgba(54,92,153,.16); background: rgba(255,255,255,.40); }
  .account-avatar { color: #5267d1; border-color: rgba(77,89,199,.22); background: rgba(255,255,255,.44); }
  .account-card small { color: #71859f; }
  .account-card b { color: #253b5b; }
  .account-state { color: #17825d; background: rgba(28,158,112,.08); }
  .binding-intro { border-color: rgba(67,92,190,.15); background: rgba(255,255,255,.30); }
  .mail-icon { color: #5369d2; background: rgba(255,255,255,.45); }
  .binding-intro b { color: #263c5d; }
  .binding-intro p { color: #667c98; }
  .setting-control > span { color: #536b88; }
  .setting-control input { border-color: rgba(54,92,153,.17); color: #223958; background: rgba(255,255,255,.52); }
  .binding-input-row button { color: #5367c8; border-color: rgba(77,89,199,.19); background: rgba(255,255,255,.47); }
  .binding-input-row button:disabled { color: #8795a8; border-color: rgba(54,92,153,.11); background: rgba(255,255,255,.24); }
  .setting-control > small, .code-status { color: #71859f; }
  .verify-button { color: #fff; background: linear-gradient(120deg,#4e6dda,#8950c5); }
  .verify-button:disabled { color: #8391a5; background: rgba(80,101,130,.13); }
  .binding-warning { color: #846d46; }
  .binding-success { border-color: rgba(26,147,104,.19); background: rgba(255,255,255,.38); }
  .success-ring { color: #16936a; border-color: rgba(26,147,104,.25); background: rgba(255,255,255,.45); }
  .bound-list-copy small { color: #16825e; }
  .bound-list-copy b { color: #223958; }
  .bound-list-copy p { color: #687d97; }
  .uid-choice { border-color: rgba(54,92,153,.15); color: #243a5a; background: rgba(255,255,255,.40); }
  .uid-choice:hover { border-color: rgba(77,89,199,.23); background: rgba(255,255,255,.57); }
  .uid-choice.active { border-color: rgba(26,147,104,.28); background: linear-gradient(90deg,rgba(75,196,157,.16),rgba(255,255,255,.45)); box-shadow: inset 3px 0 #16936a; }
  .uid-choice.active i { border-color: #16936a; background: #16936a; box-shadow: 0 0 8px rgba(22,147,106,.4); }
  .uid-choice.active small { color: #16825e; }
  .logout-button { color: #a9415c; border-color: rgba(183,62,91,.17); background: rgba(255,255,255,.28); }
}

@media (min-width: 821px) {
  .sidebar { width: 250px; }
  .main { width: calc(100% - 250px); margin-left: 250px; }
  .content { width: min(1240px,100%); padding-top: 36px; }
}

/* 服务引导页与问题反馈 */
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.guide-screen, .feedback-screen { position: relative; z-index: 2; display: none; min-height: 100vh; min-height: 100dvh; }
body.guide-mode .guide-screen { display: block; }
body.feedback-mode .feedback-screen { display: block; }
body.guide-mode .app-shell, body.feedback-mode .app-shell,
body.app-mode .guide-screen, body.app-mode .feedback-screen,
body.auth-pending .guide-screen, body.auth-pending .feedback-screen { display: none; }
body.feedback-mode, body.guide-mode { overflow-x: hidden; }

.portal-header, .feedback-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  width: 100%;
  min-height: 78px;
  padding: 0 max(30px, env(safe-area-inset-right)) 0 max(30px, env(safe-area-inset-left));
  align-items: center;
  border-bottom: 1px solid rgba(54,92,153,.14);
  background: rgba(229,245,255,.82);
  box-shadow: 0 8px 28px rgba(40,96,152,.08);
  backdrop-filter: blur(22px);
}
.portal-brand { display: flex; min-width: 0; align-items: center; gap: 12px; color: #1c3151; text-decoration: none; }
.portal-brand .brand-logo { width: 38px; height: 38px; border-radius: 12px; }
.portal-brand b { display: block; font-size: 15px; letter-spacing: .13em; line-height: 1; }
.portal-brand small { display: block; margin-top: 6px; color: #7186a0; font-size: 8px; font-weight: 800; letter-spacing: .2em; }
.portal-header-actions, .feedback-header-actions { display: flex; min-width: 0; margin-left: auto; align-items: center; gap: 12px; }
.portal-online { display: flex; height: 40px; min-width: 0; padding: 0 12px; flex: 0 0 auto; align-items: center; gap: 6px; white-space: nowrap; border: 1px solid rgba(25,168,120,.18); border-radius: 12px; color: #177958; background: rgba(255,255,255,.48); }
.portal-online > i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #19a878; box-shadow: 0 0 10px rgba(25,168,120,.45); }
.portal-online > i::after { position: absolute; inset: -4px; border: 1px solid rgba(25,168,120,.28); border-radius: 50%; content: ""; animation: pulse 2s ease-out infinite; }
.portal-online span, .portal-online small { font-size: 9px; font-weight: 700; }
.portal-online strong { color: #16845f; font-family: "SFMono-Regular", Consolas, monospace; font-size: 13px; }
.portal-online.loading > i { animation: online-breathe 1s ease-in-out infinite alternate; }
.portal-online.unavailable { color: #ad3150; border-color: rgba(190,57,91,.2); background: rgba(255,235,240,.58); }
.portal-online.unavailable > i { background: #d74465; box-shadow: none; }
.portal-online.unavailable > i::after { display: none; }
.portal-online.unavailable strong { color: #ad3150; }
.portal-online.stale { color: #806614; border-color: rgba(174,136,32,.22); background: rgba(255,248,214,.58); }
.portal-online.stale > i { background: #c69a25; box-shadow: none; }
.portal-online.stale strong { color: #806614; }

.portal-auth-actions { display: flex; align-items: center; gap: 8px; }
.portal-auth-actions[hidden], .portal-user[hidden] { display: none !important; }
.portal-auth-actions button { height: 40px; padding: 0 16px; border-radius: 12px; font-size: 10px; font-weight: 800; cursor: pointer; }
.portal-login { border: 1px solid rgba(54,92,153,.17); color: #425978; background: rgba(255,255,255,.42); }
.portal-register { border: 0; color: #fff; background: linear-gradient(120deg,#4d6ddd,#8a4fc5); box-shadow: 0 8px 20px rgba(69,72,165,.2); }
.portal-user { display: flex; min-width: 150px; max-width: 260px; height: 46px; padding: 5px 6px 5px 8px; align-items: center; gap: 9px; border: 1px solid rgba(54,92,153,.17); border-radius: 14px; background: rgba(255,255,255,.46); }
.portal-user > span { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: #5267d1; background: rgba(83,105,220,.1); font-weight: 800; }
.portal-user div { min-width: 0; flex: 1; }
.portal-user small { display: block; color: #7a8da5; font-size: 7px; }
.portal-user b { display: block; max-width: 120px; margin-top: 2px; overflow: hidden; color: #283e5d; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.portal-user button { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border: 0; border-radius: 9px; color: #a9415c; background: rgba(215,68,101,.06); cursor: pointer; }
.portal-user svg { width: 15px; height: 15px; }

.portal-main { width: min(1500px, 100%); margin: 0 auto; padding: clamp(26px,3.4vw,44px) 28px 28px; }
.portal-hero { max-width: 760px; margin: 0 auto 22px; text-align: center; }
.portal-kicker { display: flex; align-items: center; justify-content: center; gap: 8px; color: #4c63c7; font-size: 9px; font-weight: 850; letter-spacing: .23em; }
.portal-kicker i { width: 6px; height: 6px; border-radius: 50%; background: #5369dc; box-shadow: 0 0 12px rgba(83,105,220,.55); }
.portal-hero h1 { margin: 8px 0 7px; color: #172b4a; font-size: clamp(28px,3.4vw,44px); font-weight: 700; letter-spacing: -.055em; }
.portal-hero > p { max-width: 650px; margin: 0 auto; color: #536b87; font-size: 11px; line-height: 1.55; }
.portal-session { display: inline-flex; min-height: 34px; margin-top: 12px; padding: 0 11px; align-items: center; gap: 7px; border: 1px solid rgba(54,92,153,.14); border-radius: 11px; background: rgba(255,255,255,.34); }
.portal-session-dot { width: 7px; height: 7px; border-radius: 50%; background: #8898aa; }
.portal-session strong { color: #3e5573; font-size: 9px; }
.portal-session small { color: #7489a3; font-size: 8px; }
.portal-session.logged-in .portal-session-dot { background: #19a878; box-shadow: 0 0 9px rgba(25,168,120,.45); }
.portal-session.logged-in strong { color: #16805d; }

.portal-modules { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.portal-module { position: relative; display: grid; min-width: 0; min-height: 152px; padding: 15px; grid-template-columns: 40px minmax(0,1fr) 28px; grid-template-rows: minmax(0,1fr) auto; align-items: start; gap: 9px; overflow: hidden; border: 1px solid rgba(54,92,153,.17); border-radius: 18px; color: #1e3454; background: linear-gradient(145deg,rgba(244,251,255,.94),rgba(211,236,253,.91)); box-shadow: 0 12px 28px rgba(43,93,150,.11),inset 0 1px rgba(255,255,255,.86); text-align: left; cursor: pointer; transition: transform .28s ease,border-color .28s ease,box-shadow .28s ease; }
.portal-module::before { position: absolute; inset: 0; background: radial-gradient(circle at 95% 0,rgba(83,105,220,.17),transparent 38%); content: ""; pointer-events: none; }
.portal-module.feedback-module::before { background: radial-gradient(circle at 95% 0,rgba(147,75,205,.15),transparent 38%); }
.portal-module::after { position: absolute; right: -54px; bottom: -72px; width: 170px; height: 170px; border: 1px solid rgba(83,105,220,.12); border-radius: 50%; content: ""; transition: transform .45s ease; }
.portal-module:hover { border-color: rgba(77,89,199,.33); box-shadow: 0 20px 42px rgba(43,93,150,.18),inset 0 1px #fff; transform: translateY(-4px); }
.portal-module:hover::after { transform: scale(1.12) translate(-8px,-8px); }
.module-number { position: absolute; top: 12px; right: 13px; color: rgba(55,84,126,.28); font-family: Consolas,monospace; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.module-icon { position: relative; z-index: 1; display: grid; width: 40px; height: 40px; grid-row: 1 / 3; place-items: center; border: 1px solid rgba(77,89,199,.2); border-radius: 12px; color: #5369dc; background: rgba(255,255,255,.48); box-shadow: 0 8px 18px rgba(70,85,164,.09); }
.feedback-module .module-icon { color: #8a4fc5; }
.module-icon svg { width: 20px; height: 20px; }
.module-copy { position: relative; z-index: 1; display: block; min-width: 0; grid-column: 2 / 4; align-self: center; }
.module-copy small { display: block; overflow: hidden; color: #5369dc; font-size: 7px; font-weight: 850; letter-spacing: .14em; text-overflow: ellipsis; white-space: nowrap; }
.feedback-module .module-copy small { color: #8651b5; }
.module-copy b { display: block; margin-top: 6px; overflow-wrap: anywhere; color: #1b3151; font-size: clamp(15px,1.35vw,18px); line-height: 1.2; letter-spacing: -.03em; }
.feedback-module .module-copy b { font-size: clamp(14px,1.25vw,17px); line-height: 1.24; }
.module-copy em { display: -webkit-box; margin-top: 5px; overflow: hidden; color: #617793; font-size: 8px; font-style: normal; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.module-access { position: relative; z-index: 1; align-self: end; justify-self: start; grid-column: 2; padding: 5px 7px; border-radius: 7px; color: #5367c8; background: rgba(83,105,220,.08); font-size: 7px; font-weight: 800; }
.module-access.public { color: #16805d; background: rgba(25,168,120,.08); }
.module-arrow { position: relative; z-index: 1; align-self: end; justify-self: end; grid-column: 3; display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(54,92,153,.15); border-radius: 9px; color: #5369dc; background: rgba(255,255,255,.42); font-size: 14px; transition: transform .28s ease; }
.portal-module:hover .module-arrow { transform: translate(3px,-3px); }
.portal-footer { display: flex; margin-top: 19px; padding: 0 4px; align-items: center; justify-content: space-between; gap: 20px; color: #657b97; font-size: 8px; }
.portal-footer span:first-child { display: flex; align-items: center; gap: 7px; }
.portal-footer i { width: 6px; height: 6px; border-radius: 50%; background: #19a878; }

/* 登录改为引导页上方弹层 */
.auth-screen { position: fixed; z-index: 120; inset: 0; min-height: 0; padding: 28px; background: rgba(36,72,115,.34) !important; backdrop-filter: blur(18px); }
.auth-screen[hidden] { display: none !important; }
.auth-screen::before { display: none; }
.auth-visual { display: none; }
.auth-card { max-height: calc(100dvh - 56px); overflow: auto; }
.auth-close { position: absolute; z-index: 4; top: 18px; right: 18px; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(54,92,153,.16); border-radius: 11px; color: #617793; background: rgba(255,255,255,.4); cursor: pointer; }
.auth-close svg { width: 16px; height: 16px; }
body.auth-open { overflow: hidden; }

/* GitHub Issues 风格反馈模块 */
.feedback-header { min-height: 72px; }
.feedback-breadcrumb { display: flex; margin-left: 26px; align-items: center; gap: 10px; }
.feedback-breadcrumb button { padding: 0; border: 0; color: #6a809c; background: transparent; font-size: 9px; cursor: pointer; }
.feedback-breadcrumb i { width: 4px; height: 4px; border-radius: 50%; background: #8a9aab; }
.feedback-breadcrumb b { color: #2d4361; font-size: 10px; }
.feedback-account { display: flex; height: 42px; padding: 4px 11px 4px 5px; align-items: center; gap: 8px; border: 1px solid rgba(54,92,153,.17); border-radius: 12px; color: #314967; background: rgba(255,255,255,.46); cursor: pointer; }
.feedback-account span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; color: #5369dc; background: rgba(83,105,220,.1); font-size: 10px; font-weight: 850; }
.feedback-account b { max-width: 110px; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.feedback-main { width: min(1280px,100%); margin: 0 auto; padding: 46px 34px 70px; }
.feedback-hero { display: flex; margin-bottom: 27px; align-items: flex-end; justify-content: space-between; gap: 24px; }
.feedback-hero h1 { max-width: 850px; margin: 0; color: #172b4a; font-size: clamp(28px,3.4vw,44px); line-height: 1.18; letter-spacing: -.045em; }
.feedback-hero p { margin: 12px 0 0; color: #536b87; font-size: 11px; line-height: 1.7; }
.new-issue-button { display: flex; height: 48px; padding: 0 19px; flex: 0 0 auto; align-items: center; gap: 9px; border: 0; border-radius: 14px; color: #fff; background: linear-gradient(120deg,#4d6ddd,#8a4fc5); box-shadow: 0 10px 24px rgba(69,72,165,.22); font-size: 10px; font-weight: 850; cursor: pointer; }
.new-issue-button svg { width: 17px; height: 17px; }
.feedback-board { overflow: hidden; border: 1px solid rgba(54,92,153,.17); border-radius: 24px; background: rgba(239,249,255,.82); box-shadow: 0 20px 55px rgba(43,93,150,.14),inset 0 1px rgba(255,255,255,.8); }
.issue-toolbar { display: flex; min-height: 69px; padding: 11px 15px; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid rgba(54,92,153,.14); background: rgba(255,255,255,.27); }
.issue-state-tabs { display: flex; min-width: 0; padding: 4px; gap: 3px; border: 1px solid rgba(54,92,153,.14); border-radius: 13px; background: rgba(255,255,255,.34); }
.issue-state-tabs button { display: flex; height: 38px; padding: 0 13px; align-items: center; gap: 7px; border: 0; border-radius: 9px; color: #617793; background: transparent; font-size: 9px; font-weight: 750; cursor: pointer; }
.issue-state-tabs button.active { color: #273d5d; background: rgba(255,255,255,.86); box-shadow: 0 5px 16px rgba(55,92,140,.11); }
.issue-state-tabs i { width: 9px; height: 9px; border: 2px solid currentColor; border-radius: 50%; }
.issue-state-tabs i.open { color: #19a878; }
.issue-state-tabs i.closed { color: #8750c5; }
.issue-state-tabs span { min-width: 19px; padding: 3px 5px; border-radius: 6px; color: #667c98; background: rgba(54,92,153,.07); font-family: Consolas,monospace; font-size: 8px; text-align: center; }
.issue-type-filter { min-width: 0; }
.issue-type-filter select { height: 44px; padding: 0 34px 0 13px; border: 1px solid rgba(54,92,153,.15); border-radius: 12px; outline: 0; color: #405674; background: rgba(255,255,255,.48); font-size: 10px; cursor: pointer; }
.issue-type-filter select { min-width: 118px; }
.feedback-layout { display: block; min-height: 610px; }
.issue-list-pane { min-width: 0; }
.feedback-layout.detail-open .issue-list-pane { display: none; }
.issue-list-head { display: flex; min-height: 65px; padding: 13px 17px; align-items: center; justify-content: space-between; }
.issue-list-head small { display: block; color: #5369dc; font-size: 7px; font-weight: 850; letter-spacing: .2em; }
.issue-list-head b { display: block; margin-top: 5px; color: #2b4160; font-size: 11px; }
.issue-list-head button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(54,92,153,.14); border-radius: 10px; color: #657b97; background: rgba(255,255,255,.38); cursor: pointer; }
.issue-list-head button.loading svg { animation: spin .75s linear infinite; }
.issue-list-head svg { width: 15px; height: 15px; }
.issue-list { display: grid; padding: 0 12px; align-content: start; gap: 6px; }
.issue-row { display: grid; width: 100%; min-height: 96px; padding: 14px 16px; grid-template-columns: 72px minmax(0,1fr); align-items: center; gap: 13px; border: 1px solid rgba(54,92,153,.08); border-radius: 13px; color: #273d5d; background: rgba(255,255,255,.28); text-align: left; cursor: pointer; transition: .2s ease; }
.issue-row:hover, .issue-row.selected { border-color: rgba(77,89,199,.23); background: rgba(255,255,255,.58); transform: translateX(2px); }
.issue-row.selected { box-shadow: inset 3px 0 #5369dc; }
.issue-row-status { display: inline-flex; align-items: center; color: #16805d; font-size: 8px; font-weight: 850; white-space: nowrap; }
.issue-row-status.closed { color: #6550a8; }
.issue-row-main { display: grid; min-width: 0; gap: 7px; }
.issue-row-title-line { display: flex; min-width: 0; align-items: center; gap: 8px; }
.issue-row-heading { min-width: 0; flex: 1; overflow: hidden; color: #263c5c; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.issue-row-tags { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 6px; }
.issue-row-meta { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 6px 13px; color: #71859f; font-size: 8px; }
.issue-row-meta span, .issue-row-meta time { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.issue-label, .issue-section-label, .issue-resolution { display: inline-flex; padding: 4px 7px; align-items: center; border-radius: 999px; font-size: 7px; font-weight: 850; letter-spacing: .03em; white-space: nowrap; }
.issue-label.bug { color: #b72246; border: 1px solid rgba(215,45,81,.18); background: rgba(225,45,82,.12); }
.issue-label.other { color: #526985; border: 1px solid rgba(82,105,133,.13); background: rgba(82,105,133,.08); }
.issue-section-label { color: #405bb8; border: 1px solid rgba(83,105,220,.14); background: rgba(83,105,220,.08); }
.issue-resolution { color: #147a58; border: 1px solid rgba(25,168,120,.16); background: rgba(25,168,120,.1); }
.issue-skeleton { height: 96px; border-radius: 13px; background: linear-gradient(90deg,rgba(255,255,255,.26),rgba(255,255,255,.55),rgba(255,255,255,.26)); background-size: 220% 100%; animation: feedback-shimmer 1.2s linear infinite; }
.issue-list-empty { display: grid; min-height: 330px; padding: 30px; place-items: center; color: #7187a1; text-align: center; }
.issue-list-empty b { display: block; color: #425978; font-size: 11px; }
.issue-list-empty p { margin: 7px 0 0; font-size: 9px; line-height: 1.6; }
.issue-pagination { display: flex; min-height: 64px; padding: 12px 17px; align-items: center; justify-content: space-between; }
.issue-pagination button { min-width: 74px; height: 36px; border: 1px solid rgba(54,92,153,.14); border-radius: 10px; color: #526985; background: rgba(255,255,255,.34); font-size: 8px; cursor: pointer; }
.issue-pagination button:disabled { opacity: .42; cursor: not-allowed; }
.issue-pagination span { color: #7287a1; font-family: Consolas,monospace; font-size: 8px; }
.issue-detail-pane { display: none; min-width: 0; padding: 27px; overflow: hidden; }
.feedback-layout.detail-open .issue-detail-pane { display: block; }
.issue-detail-empty { display: grid; min-height: 540px; place-content: center; justify-items: center; color: #7086a0; text-align: center; }
.issue-detail-empty[hidden] { display: none !important; }
.issue-detail-empty > span { display: grid; width: 58px; height: 58px; margin-bottom: 15px; place-items: center; border: 1px solid rgba(77,89,199,.18); border-radius: 18px; color: #5369dc; background: rgba(255,255,255,.38); }
.issue-detail-empty svg { width: 25px; height: 25px; }
.issue-detail-empty b { color: #354b69; font-size: 12px; }
.issue-detail-empty p { margin: 7px 0 0; font-size: 9px; }
.issue-detail-content[hidden] { display: none; }
.issue-mobile-back { display: inline-flex; margin: 0 0 16px; padding: 0; border: 0; color: #5369dc; background: transparent; font-size: 9px; font-weight: 800; cursor: pointer; }
.issue-detail-labels { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.issue-state { display: inline-flex; padding: 5px 9px; align-items: center; gap: 5px; border-radius: 999px; color: #16805d; background: rgba(25,168,120,.1); font-size: 8px; font-weight: 850; }
.issue-state.closed { color: #6550a8; background: rgba(135,80,197,.1); }
.issue-detail-title-line { display: flex; min-width: 0; margin: 14px 0 8px; align-items: center; flex-wrap: wrap; gap: 8px; }
.issue-detail-header h2 { min-width: 0; margin: 0; overflow-wrap: anywhere; color: #1f3555; font-size: clamp(22px,3vw,32px); letter-spacing: -.035em; }
.issue-detail-meta { display: flex; margin-top: 10px; align-items: center; flex-wrap: wrap; gap: 7px 14px; color: #7186a0; font-size: 8px; }
.issue-detail-meta span { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.issue-detail-meta b { color: #435a78; font-weight: 800; }
.issue-body-card { display: grid; margin-top: 22px; padding: 17px; grid-template-columns: 38px minmax(0,1fr); gap: 12px; border: 1px solid rgba(54,92,153,.14); border-radius: 16px; background: rgba(255,255,255,.36); }
.issue-body-card > :last-child, .comment-card > :last-child { min-width: 0; }
.issue-author-avatar { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; color: #5369dc; background: rgba(83,105,220,.1); font-size: 11px; font-weight: 850; }
.issue-body-meta { display: flex; align-items: center; gap: 7px; }
.issue-body-meta b { color: #304765; font-size: 9px; }
.issue-body-meta span { padding: 3px 6px; border-radius: 6px; color: #71859f; background: rgba(54,92,153,.07); font-size: 7px; }
.issue-body-card p, .comment-card p { margin: 11px 0 0; color: #405775; font-size: 10px; line-height: 1.8; overflow-wrap: anywhere; white-space: pre-wrap; }
.issue-comments { display: grid; margin-top: 14px; gap: 10px; }
.comment-card { display: grid; padding: 14px 16px; grid-template-columns: 32px minmax(0,1fr); gap: 11px; border: 1px solid rgba(54,92,153,.12); border-radius: 14px; background: rgba(255,255,255,.25); }
.comment-card .issue-author-avatar { width: 32px; height: 32px; border-radius: 9px; font-size: 9px; }
.comment-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.comment-meta b { color: #304765; font-size: 9px; }
.comment-meta time { color: #7a8ea6; font-size: 7px; }
.comment-card p { margin-top: 7px; }
.issue-content-image { display: block; width: fit-content; max-width: 100%; margin-top: 13px; overflow: hidden; border: 1px solid rgba(54,92,153,.16); border-radius: 13px; background: rgba(255,255,255,.45); box-shadow: 0 8px 24px rgba(42,86,139,.1); }
.issue-content-image img { display: block; width: auto; max-width: 100%; max-height: 620px; object-fit: contain; }
.comment-content-image img { max-height: 440px; }
.comment-form { display: grid; margin-top: 18px; padding-top: 18px; gap: 9px; border-top: 1px solid rgba(54,92,153,.13); }
.comment-form > label { color: #405775; font-size: 9px; font-weight: 800; }
.comment-form textarea, .issue-editor-field input, .issue-editor-field select, .issue-editor-field textarea { width: 100%; padding: 12px 14px; border: 1px solid rgba(54,92,153,.16); border-radius: 12px; outline: 0; resize: vertical; color: #263c5c; background: rgba(255,255,255,.48); font-size: 11px; line-height: 1.6; }
.comment-form textarea { min-height: 100px; }
.comment-form textarea:focus, .issue-editor-field input:focus, .issue-editor-field select:focus, .issue-editor-field textarea:focus { border-color: rgba(77,89,199,.35); box-shadow: 0 0 0 3px rgba(77,89,199,.06); }
.comment-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.comment-form small { color: #71859f; font-size: 8px; }
.comment-form-actions button { height: 38px; padding: 0 15px; border: 0; border-radius: 10px; color: #fff; background: linear-gradient(120deg,#4d6ddd,#8a4fc5); font-size: 9px; font-weight: 800; cursor: pointer; }
.comment-form-actions button:disabled { opacity: .5; cursor: wait; }
.issue-admin-actions { display: flex; margin-top: 13px; align-items: center; flex-wrap: wrap; gap: 8px; }
.issue-admin-actions[hidden] { display: none; }
.issue-admin-actions button { min-height: 38px; padding: 0 14px; border-radius: 10px; font-size: 8px; font-weight: 800; cursor: pointer; }
.issue-admin-actions button:disabled { opacity: .55; cursor: wait; }
.issue-fixed-action { border: 1px solid rgba(25,168,120,.2); color: #147a58; background: rgba(25,168,120,.08); }
.issue-state-action { border: 1px solid rgba(135,80,197,.2); color: #6550a8; background: rgba(135,80,197,.06); }

.issue-editor-overlay { position: fixed; z-index: 130; inset: 0; display: grid; padding: 24px; place-items: center; background: rgba(36,72,115,.36); backdrop-filter: blur(16px); }
.issue-editor-overlay[hidden] { display: none; }
.issue-editor { width: min(100%,560px); max-height: calc(100dvh - 48px); padding: 27px; overflow: auto; border: 1px solid rgba(255,255,255,.65); border-radius: 26px; color: #1e3454; background: linear-gradient(155deg,rgba(243,251,255,.99),rgba(211,236,252,.99)); box-shadow: 0 30px 80px rgba(39,82,133,.28); animation: sheet-in .34s cubic-bezier(.18,.86,.3,1.08) both; }
.issue-editor > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.issue-editor > header span { color: #5365c5; font-size: 8px; font-weight: 850; letter-spacing: .2em; }
.issue-editor > header h2 { margin: 7px 0 0; color: #1d3152; font-size: 25px; }
.issue-editor > header button { display: grid; width: 37px; height: 37px; place-items: center; border: 1px solid rgba(54,92,153,.16); border-radius: 11px; color: #617793; background: rgba(255,255,255,.42); cursor: pointer; }
.issue-editor > header svg { width: 17px; height: 17px; }
#issue-editor-form { display: grid; margin-top: 22px; gap: 16px; }
.issue-editor-section { display: grid; padding: 12px 14px; gap: 4px; border: 1px solid rgba(83,105,220,.16); border-radius: 13px; background: rgba(83,105,220,.06); }
.issue-editor-section > span { color: #5365c5; font-size: 8px; font-weight: 850; letter-spacing: .12em; }
.issue-editor-section > b { overflow-wrap: anywhere; color: #2c4364; font-size: 11px; }
.issue-editor-section > small { color: #7388a2; font-size: 8px; }
.issue-type-choice { display: grid; margin: 0; padding: 0; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; border: 0; }
.issue-type-choice legend { margin-bottom: 8px; color: #526985; font-size: 9px; font-weight: 800; }
.issue-type-choice label { position: relative; display: block; }
.issue-type-choice input { position: absolute; opacity: 0; pointer-events: none; }
.issue-type-choice label > span { display: block; min-height: 68px; padding: 13px; border: 1px solid rgba(54,92,153,.15); border-radius: 13px; background: rgba(255,255,255,.38); cursor: pointer; transition: .2s ease; }
.issue-type-choice input:checked + span { border-color: rgba(77,89,199,.35); background: rgba(255,255,255,.68); box-shadow: inset 3px 0 #5369dc; }
.issue-type-choice input:focus-visible + span { outline: 2px solid rgba(79,99,211,.78); outline-offset: 2px; }
.issue-type-choice b { display: block; color: #304765; font-size: 10px; }
.issue-type-choice small { display: block; margin-top: 6px; color: #71859f; font-size: 8px; }
.issue-editor-field { display: grid; gap: 7px; }
.issue-editor-field > span { color: #526985; font-size: 9px; font-weight: 800; }
.issue-editor-field input, .issue-editor-field select { height: 47px; }
.issue-editor-field textarea { min-height: 150px; }
.feedback-image-field { display: grid; min-width: 0; gap: 8px; }
.feedback-image-heading { display: flex; min-width: 0; align-items: baseline; justify-content: space-between; gap: 12px; }
.feedback-image-heading span { color: #526985; font-size: 9px; font-weight: 800; }
.feedback-image-heading small { color: #7489a3; font-size: 8px; text-align: right; }
.feedback-image-picker { position: relative; display: flex; min-width: 0; min-height: 62px; padding: 11px 13px; align-items: center; gap: 11px; border: 1px dashed rgba(83,105,220,.28); border-radius: 13px; color: #5168c9; background: rgba(255,255,255,.3); cursor: pointer; transition: .2s ease; }
.feedback-image-picker:hover { border-color: rgba(83,105,220,.48); background: rgba(255,255,255,.55); }
.feedback-image-picker.disabled { opacity: .5; cursor: not-allowed; }
.feedback-image-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.feedback-image-input:focus-visible + svg { outline: 2px solid rgba(79,99,211,.78); outline-offset: 3px; }
.feedback-image-picker svg { width: 24px; height: 24px; flex: 0 0 auto; }
.feedback-image-picker span { min-width: 0; }
.feedback-image-picker b { display: block; color: #385174; font-size: 9px; }
.feedback-image-picker small { display: block; margin-top: 4px; overflow-wrap: anywhere; color: #71859f; font-size: 8px; }
.feedback-image-preview { display: grid; min-width: 0; padding: 8px; grid-template-columns: 68px minmax(0,1fr) 32px; align-items: center; gap: 10px; border: 1px solid rgba(54,92,153,.14); border-radius: 13px; background: rgba(255,255,255,.42); }
.feedback-image-preview > img { display: block; width: 68px; height: 58px; border-radius: 9px; object-fit: cover; background: rgba(54,92,153,.07); }
.feedback-image-preview > span { min-width: 0; }
.feedback-image-preview b { display: block; overflow: hidden; color: #354d6d; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.feedback-image-preview small { display: block; margin-top: 5px; color: #7489a3; font-size: 8px; }
.feedback-image-preview button, .comment-form .feedback-image-preview button { display: grid; width: 32px; height: 32px; padding: 0; place-items: center; border: 1px solid rgba(184,59,91,.14); border-radius: 9px; color: #b43b59; background: rgba(215,68,101,.07); font-size: 18px; cursor: pointer; }
.comment-image-field .feedback-image-picker { min-height: 52px; padding-block: 8px; }
.comment-image-field .feedback-image-picker svg { width: 21px; height: 21px; }
.issue-editor-error { min-height: 15px; margin: -4px 2px; color: #b73e5b; font-size: 9px; }
.issue-editor-actions { display: flex; justify-content: flex-end; gap: 9px; }
.issue-editor-actions button { height: 42px; padding: 0 17px; border-radius: 11px; font-size: 9px; font-weight: 800; cursor: pointer; }
#issue-editor-cancel { border: 1px solid rgba(54,92,153,.15); color: #526985; background: rgba(255,255,255,.34); }
#issue-editor-submit { border: 0; color: #fff; background: linear-gradient(120deg,#4d6ddd,#8a4fc5); }
#issue-editor-submit:disabled { opacity: .55; cursor: wait; }
body.editor-open { overflow: hidden; }
@keyframes feedback-shimmer { to { background-position: -120% 0; } }

@media (max-width: 900px) {
  .feedback-layout { grid-template-columns: minmax(300px,370px) minmax(0,1fr); }
  .issue-detail-pane { padding: 20px; }
}

@media (max-width: 700px) {
  .portal-header, .feedback-header { min-height: calc(64px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(12px,env(safe-area-inset-right)) 0 max(12px,env(safe-area-inset-left)); }
  .portal-header { min-height: calc(52px + env(safe-area-inset-top)); padding-inline: max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-left)); }
  .portal-brand { flex: 0 1 auto; gap: 6px; }
  .portal-brand .brand-logo { width: 30px; height: 30px; border-radius: 9px; }
  .portal-brand .brand-logo > span { font-size: 13px; }
  .portal-brand b { font-size: 11px; letter-spacing: .06em; }
  .portal-brand small { display: none; }
  .portal-header-actions { flex: 0 1 auto; gap: 5px; }
  .portal-online { height: 34px; padding: 0 6px; gap: 4px; }
  .portal-online span, .portal-online small { display: inline; font-size: 8px; }
  .portal-online strong { font-size: 11px; }
  .portal-auth-actions { min-width: 0; gap: 4px; }
  .portal-auth-actions button { height: 32px; padding: 0 7px; border-radius: 9px; font-size: 9px; white-space: nowrap; }
  .portal-user { min-width: 0; max-width: 140px; height: 36px; padding: 3px 4px; gap: 5px; }
  .portal-user > span { width: 28px; height: 28px; border-radius: 8px; font-size: 11px; }
  .portal-user div { display: block; min-width: 0; }
  .portal-user small { display: none; }
  .portal-user b { max-width: 62px; margin-top: 0; font-size: 9px; }
  .portal-user button { width: 28px; height: 28px; border-radius: 8px; }
  .portal-main { padding: 6px max(9px,env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(9px,env(safe-area-inset-left)); }
  .portal-hero { margin-bottom: 6px; }
  .portal-kicker, .portal-hero > p, .portal-session, .portal-footer { display: none; }
  .portal-hero h1 { margin: 0; font-size: clamp(21px,7vw,25px); line-height: 1.15; }
  .portal-modules { grid-template-columns: 1fr; gap: 4px; }
  .portal-module { width: 100%; min-height: 44px; height: 44px; padding: 4px 7px; grid-template-columns: 32px minmax(0,1fr) 26px; grid-template-rows: 1fr; align-items: center; gap: 7px; border-radius: 12px; box-shadow: 0 6px 15px rgba(43,93,150,.08),inset 0 1px rgba(255,255,255,.86); }
  .portal-module::after { display: none; }
  .module-number, .module-copy small, .module-copy em, .module-access { display: none; }
  .module-icon { width: 32px; height: 32px; grid-row: 1; align-self: center; border-radius: 9px; }
  .module-icon svg { width: 16px; height: 16px; }
  .module-copy { grid-column: 2; grid-row: 1; align-self: center; }
  .module-copy b, .feedback-module .module-copy b { margin: 0; overflow: hidden; font-size: 14px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
  .module-arrow { width: 26px; height: 26px; grid-column: 3; grid-row: 1; align-self: center; border-radius: 8px; font-size: 12px; }
  .auth-screen { padding: max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left)); }
  .auth-card { max-height: calc(100dvh - max(24px,env(safe-area-inset-top) + env(safe-area-inset-bottom))); }

  .feedback-breadcrumb { display: none; }
  .feedback-header .portal-online { display: none; }
  .feedback-account b { max-width: 72px; }
  .feedback-main { padding: 27px max(10px,env(safe-area-inset-right)) calc(30px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left)); }
  .feedback-hero { margin-bottom: 17px; align-items: center; }
  .feedback-hero h1 { min-width: 0; font-size: clamp(21px,7vw,28px); }
  .feedback-hero p { display: none; }
  .new-issue-button { width: 43px; height: 43px; padding: 0; justify-content: center; border-radius: 13px; font-size: 0; }
  .new-issue-button svg { width: 19px; height: 19px; }
  .feedback-board { border-radius: 18px; }
  .issue-toolbar { min-height: 0; padding: 9px; align-items: stretch; flex-direction: column; }
  .issue-state-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .issue-state-tabs button { padding: 0 7px; justify-content: center; }
  .issue-type-filter, .issue-type-filter select { width: 100%; min-width: 0; }
  .issue-type-filter select { height: 40px; }
  .feedback-layout { display: block; min-height: 520px; }
  .issue-list-pane { border-right: 0; }
  .issue-detail-pane { display: none; padding: 15px 12px 24px; }
  .feedback-layout.detail-open .issue-list-pane { display: none; }
  .feedback-layout.detail-open .issue-detail-pane { display: block; }
  .issue-mobile-back { display: inline-flex; margin: 0 0 16px; padding: 0; border: 0; color: #5369dc; background: transparent; font-size: 9px; font-weight: 800; }
  .issue-list { padding-inline: 8px; }
  .issue-row { min-height: 104px; padding: 12px; grid-template-columns: 64px minmax(0,1fr); gap: 10px; }
  .issue-row-title-line { align-items: center; flex-direction: row; gap: 6px; }
  .issue-row-heading { width: auto; font-size: 12px; }
  .issue-row-meta { gap: 5px 10px; font-size: 8px; }
  .issue-detail-empty { min-height: 420px; }
  .issue-detail-header h2 { font-size: 24px; }
  .issue-body-card { padding: 14px; grid-template-columns: 32px minmax(0,1fr); }
  .issue-author-avatar { width: 32px; height: 32px; }
  .issue-body-card p, .comment-card p { font-size: 11px; }
  .comment-form textarea, .issue-editor-field input, .issue-editor-field select, .issue-editor-field textarea { font-size: 16px; }
  .issue-editor-overlay { padding: 0; place-items: end center; }
  .issue-editor { width: 100%; max-height: calc(94dvh - env(safe-area-inset-top)); padding: 20px 17px calc(18px + env(safe-area-inset-bottom)); border-bottom: 0; border-radius: 26px 26px 0 0; animation-name: mobile-sheet-in; }
  .issue-type-choice { grid-template-columns: 1fr; }
  .feedback-image-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .feedback-image-heading small { text-align: left; }
  .feedback-image-preview { grid-template-columns: 56px minmax(0,1fr) 32px; gap: 8px; }
  .feedback-image-preview > img { width: 56px; height: 52px; }
  .issue-content-image img { max-height: 70dvh; }
  .comment-form-actions { align-items: flex-start; flex-direction: column; }
  .comment-form-actions button { width: 100%; }
}

@media (max-width: 360px) {
  .portal-header-actions { gap: 4px; }
  .portal-online { padding-inline: 5px; gap: 3px; }
  .portal-auth-actions { gap: 3px; }
  .portal-auth-actions button { padding-inline: 6px; }
  .portal-user { max-width: 132px; gap: 4px; }
  .portal-user b { max-width: 56px; }
  .portal-module { padding-inline: 7px; grid-template-columns: 32px minmax(0,1fr) 27px; gap: 7px; }
  .module-icon { width: 32px; height: 32px; }
  .module-copy b, .feedback-module .module-copy b { font-size: 13px; }
  .module-arrow { width: 27px; height: 27px; }
  .issue-state-tabs button { gap: 4px; font-size: 8px; }
  .issue-state-tabs i { width: 8px; height: 8px; }
  .auth-email-code-row { grid-template-columns: 1fr; }
  .auth-code-send { width: 100%; }
}

/* 反馈详情专注模式：只保留返回入口与主题内容。 */
body.feedback-detail-mode .feedback-header,
body.feedback-detail-mode .feedback-hero,
body.feedback-detail-mode .issue-toolbar { display: none !important; }
body.feedback-detail-mode .feedback-main { width: min(1040px,100%); padding: max(14px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) calc(48px + env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left)); }
body.feedback-detail-mode .feedback-board { max-width: 1000px; margin: 0 auto; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body.feedback-detail-mode .feedback-layout { min-height: 0; }
body.feedback-detail-mode .issue-list-pane { display: none !important; }
body.feedback-detail-mode .issue-detail-pane { display: block !important; padding: 0; overflow: visible; }
body.feedback-detail-mode .issue-detail-empty { min-height: 260px; }
body.feedback-detail-mode .issue-mobile-back { min-height: 38px; margin: 0 0 14px; padding: 0 13px; align-items: center; border: 1px solid rgba(54,92,153,.14); border-radius: 10px; color: #485fbe; background: rgba(255,255,255,.38); font-size: 9px; }
body.feedback-detail-mode .issue-detail-content { padding: 2px 0 0; }

@media (max-width: 700px) {
  body.feedback-detail-mode .feedback-main { padding: max(8px,env(safe-area-inset-top)) max(9px,env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(9px,env(safe-area-inset-left)); }
  body.feedback-detail-mode .issue-mobile-back { min-height: 34px; margin-bottom: 11px; padding-inline: 10px; }
  body.feedback-detail-mode .issue-detail-title-line { margin-top: 11px; gap: 6px; }
  body.feedback-detail-mode .issue-detail-header h2 { font-size: 23px; line-height: 1.22; }
  body.feedback-detail-mode .issue-detail-meta { gap: 7px 10px; font-size: 9px; }
  body.feedback-detail-mode .issue-detail-empty { min-height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Service drawer and secondary workspace panels. */
.workspace-view[hidden] { display: none !important; }
.sidebar-toolbar { display: flex; min-height: 37px; margin: -28px 0 14px; align-items: center; gap: 7px; }
.service-drawer-toggle, .sidebar-collapse-toggle, .top-service-menu { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.025); cursor: pointer; transition: .2s ease; }
.service-drawer-toggle { min-width: 0; height: 35px; padding: 0 10px; flex: 1; justify-content: flex-start; gap: 8px; border-radius: 10px; font-size: 9px; font-weight: 750; }
.service-drawer-toggle:hover, .sidebar-collapse-toggle:hover, .top-service-menu:hover { color: var(--accent); border-color: var(--line-bright); background: rgba(89,239,208,.06); }
.service-drawer-toggle svg { width: 15px; height: 15px; flex: 0 0 auto; }
.service-drawer-toggle i { width: 6px; height: 6px; margin-left: auto; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
.service-drawer-toggle[aria-expanded="true"] i { transform: rotate(225deg) translate(-1px,-1px); }
.sidebar-collapse-toggle { width: 35px; height: 35px; flex: 0 0 auto; border-radius: 10px; }
.sidebar-collapse-toggle svg { width: 16px; height: 16px; transition: transform .25s ease; }
.service-drawer { display: block; margin: 0 0 18px; padding: 0 0 15px; border-bottom: 1px solid var(--line); }
.service-drawer-collapsed .service-drawer { display: none; }
.service-drawer .nav-caption { margin: 0 10px 8px; font-size: 8px; }
.service-nav-list { display: grid; gap: 4px; }
.service-nav-item { position: relative; display: grid; width: 100%; min-height: 48px; padding: 6px 8px; grid-template-columns: 31px minmax(0,1fr); align-items: center; gap: 9px; border: 1px solid transparent; border-radius: 11px; color: var(--muted); background: transparent; text-align: left; cursor: pointer; transition: .2s ease; }
.service-nav-item:hover { color: var(--text); border-color: var(--line); background: rgba(255,255,255,.035); transform: translateX(2px); }
.service-nav-item.active { color: var(--text); border-color: rgba(89,239,208,.15); background: linear-gradient(90deg,rgba(54,211,188,.12),rgba(56,137,189,.035)); box-shadow: inset 2px 0 var(--accent); }
.service-nav-icon { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid rgba(89,239,208,.15); border-radius: 9px; color: var(--accent); background: rgba(89,239,208,.06); }
.service-nav-icon svg { width: 16px; height: 16px; }
.service-nav-icon.invite { color: #66b8ff; border-color: rgba(64,170,255,.17); background: rgba(64,170,255,.07); }
.service-nav-icon.feedback { color: #b28bff; border-color: rgba(135,108,255,.18); background: rgba(135,108,255,.07); }
.service-nav-icon.cdk { color: #b27931; border-color: rgba(178,121,49,.2); background: rgba(255,225,170,.45); font-size: 20px; }
.service-nav-icon.settings { color: #c9b06a; border-color: rgba(201,176,106,.18); background: rgba(201,176,106,.07); }
.service-nav-icon.admin { color: #ff9b72; border-color: rgba(255,155,114,.18); background: rgba(255,155,114,.07); }
.service-nav-item > span:last-child { min-width: 0; }
.service-nav-item b { display: block; overflow: hidden; color: inherit; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.service-nav-item small { display: block; margin-top: 3px; overflow: hidden; color: var(--muted-2); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.top-service-menu { display: grid; width: 40px; height: 40px; padding: 9px; flex: 0 0 auto; place-items: center; border-radius: 11px; }
.top-service-menu svg { width: 18px; height: 18px; }
.sidebar-footer { display: flex; min-width: 0; margin-top: auto; align-items: center; gap: 6px; }
.sidebar-account-button { display: grid; min-width: 0; min-height: 45px; padding: 5px 7px; flex: 1; grid-template-columns: 29px minmax(0,1fr) 15px; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: rgba(255,255,255,.025); text-align: left; cursor: pointer; }
.sidebar-account-button:hover { color: var(--text); border-color: var(--line-bright); background: rgba(89,239,208,.05); }
.sidebar-account-avatar { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 8px; color: var(--accent); background: rgba(89,239,208,.08); font-size: 10px; font-weight: 800; }
.sidebar-account-button > span:nth-child(2) { min-width: 0; }
.sidebar-account-button small, .sidebar-account-button b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-account-button small { color: var(--muted-2); font-size: 7px; }
.sidebar-account-button b { margin-top: 2px; color: #dce6ef; font-size: 9px; font-weight: 650; }
.sidebar-account-button > svg { width: 14px; height: 14px; color: var(--muted-2); }
.sidebar-logout-button { display: grid; width: 35px; height: 35px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(255,100,124,.13); border-radius: 10px; color: #d98593; background: rgba(255,100,124,.035); cursor: pointer; }
.sidebar-logout-button:hover { color: #ff9aae; border-color: rgba(255,100,124,.3); }
.sidebar-logout-button svg { width: 15px; height: 15px; }
.sidebar-account-button[hidden], .sidebar-logout-button[hidden] { display: none !important; }
.sidebar-collapse-toggle[aria-expanded="false"] svg { transform: rotate(180deg); }
body.sidebar-collapsed .sidebar { width: 78px; padding-inline: 13px; }
body.sidebar-collapsed .main { width: calc(100% - 78px); margin-left: 78px; }
body.sidebar-collapsed .brand { margin-inline: 0; justify-content: center; }
body.sidebar-collapsed .brand > span:last-child, body.sidebar-collapsed .service-drawer, body.sidebar-collapsed .nav-caption, body.sidebar-collapsed .nav-item > span:not(.nav-icon), body.sidebar-collapsed .nav-item > em, body.sidebar-collapsed .sidebar-account-button > span:nth-child(2), body.sidebar-collapsed .sidebar-account-button > svg { display: none; }
body.sidebar-collapsed .nav-item { grid-template-columns: 1fr; padding-inline: 0; place-items: center; }
body.sidebar-collapsed .nav-item .nav-icon { grid-column: 1; }
body.sidebar-collapsed .sidebar-toolbar { justify-content: center; margin-inline: 0; }
body.sidebar-collapsed .service-drawer-toggle { width: 35px; min-width: 35px; padding: 0; flex: 0 0 auto; place-items: center; }
body.sidebar-collapsed .service-drawer-toggle span, body.sidebar-collapsed .service-drawer-toggle i { display: none; }
body.sidebar-collapsed .sidebar-account-button { display: grid; width: 35px; min-width: 35px; padding: 3px; grid-template-columns: 1fr; place-items: center; }
body.sidebar-collapsed .sidebar-account-avatar { width: 27px; height: 27px; }
body.sidebar-collapsed .sidebar-footer { justify-content: center; flex-wrap: wrap; }

.service-panel { width: min(1280px,100%); margin: 0 auto; }
.service-panel-head { display: flex; margin-bottom: 28px; align-items: flex-end; justify-content: space-between; gap: 22px; }
.service-panel-head h1 { margin: 0; color: var(--text); font-size: clamp(28px,3.4vw,46px); font-weight: 650; letter-spacing: -.045em; }
.service-panel-head p { max-width: 640px; margin: 11px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.service-panel-status { display: inline-flex; min-height: 34px; padding: 0 11px; flex: 0 0 auto; align-items: center; gap: 7px; border: 1px solid rgba(94,240,174,.16); border-radius: 10px; color: var(--success); background: rgba(94,240,174,.05); font-size: 9px; font-weight: 700; white-space: nowrap; }
.service-panel-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 9px currentColor; }
.service-panel-status.loading i { animation: online-breathe 1s ease-in-out infinite alternate; }
.service-panel-status.error { color: var(--danger); border-color: rgba(255,100,124,.18); background: rgba(255,100,124,.05); }
.service-panel-status.admin { color: #ffb778; border-color: rgba(255,183,120,.18); background: rgba(255,183,120,.05); }
.service-panel-status.admin.success { color: var(--success); border-color: rgba(94,240,174,.16); background: rgba(94,240,174,.05); }
.invite-layout { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(280px,.8fr); gap: 18px; align-items: stretch; }
.invite-code-card, .invite-history-card, .admin-users-card { min-width: 0; padding: 25px; }
.invite-code-display { display: grid; min-height: 112px; margin: 24px 0 19px; padding: 13px 18px; place-items: center; border: 1px dashed rgba(89,239,208,.28); border-radius: 16px; color: var(--accent); background: rgba(89,239,208,.045); font-family: "SFMono-Regular",Consolas,monospace; font-size: clamp(24px,4vw,38px); font-weight: 800; letter-spacing: .15em; text-align: center; }
.invite-code-display[data-empty="true"] { color: var(--muted-2); letter-spacing: .08em; }
.invite-code-state { padding: 4px 7px; border-radius: 7px; color: var(--muted); background: rgba(255,255,255,.04); font-size: 8px; white-space: nowrap; }
.invite-code-state.ready { color: var(--success); background: rgba(94,240,174,.07); }
.invite-code-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.primary-action, .secondary-action, .danger-action { display: inline-flex; min-height: 39px; padding: 0 13px; align-items: center; justify-content: center; gap: 7px; border-radius: 10px; font-size: 9px; font-weight: 750; cursor: pointer; transition: .2s ease; }
.primary-action { border: 0; color: #061410; background: linear-gradient(120deg,#61f2d3,#57c8e9); box-shadow: 0 8px 18px rgba(63,220,195,.14); }
.primary-action:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.05); }
.secondary-action { border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.025); }
.secondary-action:hover:not(:disabled) { color: var(--accent); border-color: var(--line-bright); background: rgba(89,239,208,.05); }
.danger-action { border: 1px solid rgba(255,100,124,.2); color: #ff9aae; background: rgba(255,100,124,.06); }
.danger-action:hover:not(:disabled) { border-color: rgba(255,100,124,.4); background: rgba(255,100,124,.1); }
.primary-action:disabled, .secondary-action:disabled, .danger-action:disabled { opacity: .48; cursor: wait; }
.primary-action svg, .secondary-action svg, .danger-action svg { width: 15px; height: 15px; }
.invite-code-hint { min-height: 16px; margin: 13px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.invite-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.stat-card { display: flex; min-width: 0; min-height: 136px; padding: 17px; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: 0 14px 40px rgba(0,0,0,.1),inset 0 1px rgba(255,255,255,.025); }
.stat-card span { color: var(--muted); font-size: 9px; }
.stat-card strong { display: block; overflow: hidden; color: var(--text); font-family: "SFMono-Regular",Consolas,monospace; font-size: clamp(17px,2.2vw,27px); text-overflow: ellipsis; white-space: nowrap; }
.stat-card small { color: var(--muted-2); font-size: 8px; line-height: 1.4; }
.invite-history-card { margin-top: 18px; }
.invite-history-list, .admin-user-list { display: grid; margin-top: 18px; gap: 7px; }
.service-empty { display: grid; min-height: 92px; place-items: center; color: var(--muted-2); font-size: 10px; text-align: center; }
.invite-history-row { display: grid; min-height: 58px; padding: 8px 10px; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 10px; border: 1px solid transparent; border-radius: 11px; background: rgba(255,255,255,.018); }
.invite-history-row:hover { border-color: var(--line); background: rgba(255,255,255,.035); }
.invite-history-icon { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; color: var(--accent); background: rgba(89,239,208,.07); font-size: 12px; font-weight: 800; }
.invite-history-icon.used { color: var(--success); background: rgba(94,240,174,.08); }
.invite-history-icon.expired { color: var(--danger); background: rgba(255,100,124,.08); }
.invite-history-main { min-width: 0; }
.invite-history-main b, .invite-history-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.invite-history-main b { color: var(--text); font-family: "SFMono-Regular",Consolas,monospace; font-size: 10px; letter-spacing: .08em; }
.invite-history-main small { margin-top: 4px; color: var(--muted-2); font-size: 8px; }
.invite-history-meta { color: var(--muted-2); font-size: 8px; white-space: nowrap; }
.admin-toolbar { display: flex; min-width: 0; margin-bottom: 18px; align-items: flex-end; justify-content: space-between; gap: 14px; }
.admin-email-ban-form { display: flex; min-width: 0; flex: 1; align-items: flex-end; justify-content: flex-end; gap: 8px; }
.admin-email-ban-form label { display: grid; min-width: 0; gap: 6px; }
.admin-email-ban-form label span { color: var(--muted); font-size: 8px; font-weight: 700; }
.admin-email-ban-form input { width: 155px; height: 39px; min-width: 0; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; outline: 0; color: var(--text); background: rgba(255,255,255,.025); font-size: 10px; }
.admin-email-ban-form input:focus { border-color: var(--line-bright); box-shadow: 0 0 0 3px rgba(89,239,208,.04); }
.admin-user-row { display: grid; min-height: 64px; padding: 8px 10px; grid-template-columns: 34px minmax(120px,1fr) auto minmax(90px,auto); align-items: center; gap: 10px; border: 1px solid transparent; border-radius: 11px; background: rgba(255,255,255,.018); }
.admin-user-row:hover { border-color: var(--line); background: rgba(255,255,255,.035); }
.admin-user-row.banned { border-color: rgba(255,100,124,.14); background: rgba(255,100,124,.035); }
.admin-user-avatar { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; color: var(--accent); background: rgba(89,239,208,.07); font-size: 10px; font-weight: 800; }
.admin-user-identity { min-width: 0; }
.admin-user-identity b, .admin-user-identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-identity b { color: var(--text); font-size: 10px; }
.admin-user-identity small { margin-top: 4px; color: var(--muted-2); font-size: 8px; }
.admin-user-status { padding: 4px 7px; border-radius: 7px; color: var(--success); background: rgba(94,240,174,.07); font-size: 8px; white-space: nowrap; }
.admin-user-row.banned .admin-user-status { color: #ff9aae; background: rgba(255,100,124,.08); }
.admin-user-actions button { min-height: 31px; padding: 0 9px; border-radius: 8px; font-size: 8px; cursor: pointer; }
.ban-action { border: 1px solid rgba(255,100,124,.18); color: #ff9aae; background: rgba(255,100,124,.05); }
.unban-action { border: 1px solid rgba(94,240,174,.18); color: var(--success); background: rgba(94,240,174,.05); }
.admin-user-actions button:disabled { opacity: .45; cursor: not-allowed; }
.admin-api-placeholder { margin: 13px 2px 0; padding: 11px 13px; border: 1px dashed rgba(255,183,120,.22); border-radius: 10px; color: #c9a67f; background: rgba(255,183,120,.04); font-size: 9px; line-height: 1.5; }
.admin-directory-tools { display: flex; min-width: min(430px,100%); align-items: flex-end; justify-content: flex-end; gap: 10px; }
.admin-directory-tools > small { margin-top: 17px; color: var(--muted-2); font-size: 9px; white-space: nowrap; }
.admin-search-box { display: flex; width: min(315px,100%); height: 36px; min-width: 0; padding: 0 8px 0 10px; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.018); transition: border-color .2s ease, box-shadow .2s ease; }
.admin-search-box:focus-within { border-color: var(--line-bright); box-shadow: 0 0 0 3px rgba(89,239,208,.04); }
.admin-search-box > svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--muted-2); }
.admin-search-box input { width: 100%; min-width: 0; height: 100%; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 9px; }
.admin-search-box input::placeholder { color: var(--muted-2); }
.admin-search-box input::-webkit-search-cancel-button { display: none; }
.admin-search-box button { display: grid; width: 22px; height: 22px; flex: 0 0 auto; place-items: center; border: 0; border-radius: 6px; color: var(--muted-2); background: transparent; cursor: pointer; }
.admin-search-box button:hover { color: var(--accent); background: rgba(89,239,208,.08); }
.admin-search-box button svg { width: 13px; height: 13px; }
.admin-search-box button[hidden] { display: none; }
.auth-invite-field[hidden] { display: none; }
.auth-invite-field .auth-input input { text-transform: none; letter-spacing: .1em; }
.top-auth-actions { display: flex; align-items: center; gap: 7px; }
.top-auth-actions[hidden] { display: none !important; }
.top-auth-actions button { min-height: 36px; padding: 0 11px; border-radius: 9px; font-size: 8px; font-weight: 750; cursor: pointer; }
.top-auth-login { border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.025); }
.top-auth-register { border: 1px solid rgba(89,239,208,.22); color: var(--accent); background: rgba(89,239,208,.07); }
.top-auth-actions button:hover { border-color: var(--line-bright); color: var(--text); }
.guest-access-banner { display: flex; min-width: 0; margin: -8px 0 18px; padding: 12px 14px; align-items: center; gap: 11px; border: 1px solid rgba(255,197,91,.22); border-radius: 12px; color: var(--warning); background: rgba(255,197,91,.055); }
.guest-access-banner[hidden] { display: none !important; }
.guest-access-icon { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: var(--warning); background: rgba(255,197,91,.09); }
.guest-access-icon svg { width: 16px; height: 16px; }
.guest-access-banner > div { min-width: 0; flex: 1; }
.guest-access-banner b, .guest-access-banner small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guest-access-banner b { color: #ffe0a0; font-size: 10px; }
.guest-access-banner small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.guest-access-actions { display: flex; flex: 0 0 auto; gap: 6px; }
.guest-access-actions button { min-height: 31px; padding: 0 9px; border-radius: 8px; font-size: 8px; font-weight: 750; cursor: pointer; }
.guest-access-actions button:first-child { border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.025); }
.guest-access-actions button:last-child { border: 1px solid rgba(89,239,208,.2); color: var(--accent); background: rgba(89,239,208,.07); }
.admin-inviter { color: #b9a6d8 !important; }
.admin-invite-details { min-width: 0; grid-column: 2 / -1; margin-top: 3px; border-top: 1px solid rgba(148,174,204,.09); }
.admin-invite-details summary { padding: 8px 0 5px; color: #a9c9d2; font-size: 8px; cursor: pointer; list-style-position: inside; }
.admin-invite-details summary:hover { color: var(--accent); }
.admin-invite-list { display: grid; min-width: 0; padding: 0 0 6px 15px; gap: 4px; }
.admin-invite-list span { display: block; min-width: 0; overflow: hidden; color: var(--muted-2); font-family: "SFMono-Regular",Consolas,monospace; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 820px) and (min-width: 581px) {
  .top-service-menu { display: grid; }
  .sidebar-toolbar { margin-top: -18px; }
  body.sidebar-collapsed .sidebar { width: min(82vw,300px); padding-inline: 16px; }
  body.sidebar-collapsed .main { width: 100%; margin-left: 0; }
  body.sidebar-collapsed .brand > span:last-child, body.sidebar-collapsed .service-drawer, body.sidebar-collapsed .nav-caption, body.sidebar-collapsed .nav-item > span:not(.nav-icon), body.sidebar-collapsed .nav-item > em, body.sidebar-collapsed .sidebar-account-button > span:nth-child(2), body.sidebar-collapsed .sidebar-account-button > svg { display: initial; }
  .service-panel-head { align-items: flex-start; flex-direction: column; }
  .invite-layout { grid-template-columns: 1fr; }
  .invite-stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .admin-toolbar { align-items: stretch; flex-direction: column; }
  .admin-email-ban-form { justify-content: flex-start; }
  .admin-directory-tools { width: 100%; min-width: 0; align-items: flex-end; }
  .admin-search-box { width: min(100%,360px); }
  .guest-access-banner { align-items: flex-start; }
}

@media (max-width: 580px) {
  .top-service-menu { display: grid; width: 38px; height: 38px; padding: 8px; }
  .sidebar-toolbar { display: none; }
  .service-drawer { position: fixed; z-index: 42; top: calc(62px + env(safe-area-inset-top)); left: 9px; display: none; width: min(320px,calc(100vw - 18px)); max-height: calc(100dvh - 145px); margin: 0; padding: 13px 10px; overflow: auto; border: 1px solid rgba(54,92,153,.18); border-radius: 15px; background: rgba(24,42,76,.98); box-shadow: 0 20px 48px rgba(18,49,95,.28); }
  body:not(.service-drawer-collapsed) .service-drawer { display: block; }
  .service-drawer .nav-caption { display: block; margin: 0 8px 8px; color: #aebbd1; }
  .service-nav-item { min-height: 48px; color: #b7c4d8; }
  .service-nav-item.active { color: #fff; border-color: rgba(255,255,255,.12); background: linear-gradient(90deg,rgba(83,105,220,.35),rgba(135,72,191,.18)); box-shadow: inset 2px 0 #91e9dd; }
  .service-nav-item b { color: inherit; }
  .service-nav-item small { color: #8192ad; }
  .main { position: relative; }
  .service-panel { width: 100%; }
  .service-panel-head { margin-bottom: 15px; align-items: flex-start; flex-direction: column; gap: 10px; }
  .service-panel-head h1 { font-size: clamp(24px,8vw,31px); }
  .service-panel-head p { margin-top: 7px; font-size: 10px; }
  .service-panel-status { min-height: 30px; font-size: 8px; }
  .invite-layout { grid-template-columns: 1fr; gap: 10px; }
  .invite-code-card, .invite-history-card, .admin-users-card { padding: 14px; border-radius: 14px; }
  .invite-code-display { min-height: 83px; margin: 15px 0 12px; font-size: 24px; letter-spacing: .1em; }
  .invite-code-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .primary-action, .secondary-action, .danger-action { min-height: 37px; padding-inline: 9px; font-size: 8px; }
  .invite-stats { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; }
  .stat-card { min-height: 94px; padding: 10px 8px; border-radius: 11px; }
  .stat-card span { font-size: 8px; }
  .stat-card strong { font-size: 16px; }
  .stat-card small { font-size: 7px; }
  .invite-history-card { margin-top: 10px; }
  .invite-history-list, .admin-user-list { margin-top: 11px; }
  .invite-history-row { min-height: 52px; grid-template-columns: 27px minmax(0,1fr) auto; gap: 7px; }
  .invite-history-icon { width: 25px; height: 25px; }
  .invite-history-main b { font-size: 9px; }
  .invite-history-main small, .invite-history-meta { font-size: 7px; }
  .admin-toolbar { align-items: stretch; flex-direction: column; }
  .admin-email-ban-form { display: grid; grid-template-columns: 1fr 1fr; justify-content: stretch; }
  .admin-email-ban-form input { width: 100%; }
  .admin-email-ban-form .danger-action { grid-column: 1 / -1; }
  .admin-user-row { min-height: 57px; padding-inline: 7px; grid-template-columns: 29px minmax(0,1fr) auto; gap: 7px; }
  .admin-user-avatar { width: 28px; height: 28px; }
  .admin-user-status { display: none; }
  .admin-user-actions button { min-height: 29px; padding-inline: 7px; font-size: 7px; }
  .admin-directory-tools { display: grid; width: 100%; min-width: 0; gap: 6px; }
  .admin-search-box { width: 100%; height: 38px; }
  .admin-directory-tools > small { margin-top: 0; justify-self: end; font-size: 8px; }
  .top-auth-actions button { min-height: 34px; padding-inline: 8px; font-size: 7px; }
  .guest-access-banner { align-items: flex-start; margin-top: -2px; padding: 10px; flex-wrap: wrap; }
  .guest-access-banner > div { flex-basis: calc(100% - 42px); }
  .guest-access-actions { width: 100%; margin-left: 41px; }
  .guest-access-actions button { flex: 1; }
  .admin-invite-details { grid-column: 2 / -1; }
  .admin-invite-list { padding-left: 5px; }
}
