/* 独立 Server 页面映射 Hive 设计系统；没有客户端主题运行时依赖。 */
:root {
  color-scheme: light dark;
  --canvas: #fff;
  --surface: #f7f7f5;
  --hover: #efefed;
  --ink: #202020;
  --muted: #626262;
  --line: #d8d8d5;
  --control-line: #8a8a87;
  --danger: #b42318;
  --radius: 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  line-height: 22px;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
[hidden] { display: none !important; }
.shell {
  width: min(100%, 440px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: max(48px, env(safe-area-inset-top)) 24px max(48px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.mark { display: block; flex-shrink: 0; margin-bottom: 24px; }
h1 { font-size: 24px; line-height: 32px; font-weight: 500; margin: 0 0 12px; }
.status { min-height: 44px; max-width: 100%; margin: 0 0 24px; color: var(--muted); overflow-wrap: anywhere; }
.status[data-error='true'] { color: var(--danger); }
.actions { display: flex; flex-direction: column; width: min(100%, 280px); gap: 8px; }
button, a { font: inherit; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
.primary, .secondary, .quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  overflow-wrap: anywhere;
}
.primary { color: var(--canvas); background: var(--ink); }
.primary:hover { opacity: .86; }
.secondary { color: var(--ink); background: var(--canvas); border-color: var(--control-line); }
.secondary:hover, .quiet:hover { background: var(--hover); }
.quiet { color: var(--muted); background: transparent; margin-top: 24px; font-weight: 400; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
button:disabled { cursor: wait; opacity: .55; }
.devices { width: 100%; list-style: none; margin: 0; padding: 0; text-align: left; }
.device { padding: 16px 0; border-bottom: 1px solid var(--line); }
.device:first-child { border-top: 1px solid var(--line); }
.device-name { margin: 0 0 4px; font-weight: 500; overflow-wrap: anywhere; }
.device-detail { color: var(--muted); font-size: 13px; line-height: 20px; margin: 0; }
.device a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-underline-offset: 4px; }
@media (prefers-color-scheme: dark) {
  :root { --canvas: #141414; --surface: #222; --hover: #2c2c2c; --ink: #f7f7f5; --muted: #b5b5b5; --line: #494949; --control-line: #747474; --danger: #ffb4ab; }
  .mark { filter: invert(1); }
}
@media (max-width: 480px) { .shell { padding-inline: 24px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media (forced-colors: active) { .primary, .secondary { border-color: ButtonText; } }
