:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #192a3a;
  --muted: #586978;
  --panel: #f3f6f8;
  --panel-strong: #ffffff;
  --accent: #005bbb;
  --line: #d9e2e9;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #151c24;
  --ink: #e3ebf3;
  --muted: #a5b5c5;
  --panel: #10171e;
  --panel-strong: #1e2833;
  --accent: #7cbaff;
  --line: #344453;
}
* { box-sizing: border-box; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Yu Gothic UI', Meiryo, sans-serif;
}
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: max(16px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 16px max(20px, env(safe-area-inset-left));
}
.brand { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: .06em; line-height: 1.2; }
.brand span { display: block; color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: .04em; }
.page-content {
  flex: 1;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 24px max(20px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}
.card {
  width: min(480px, 100%);
  min-width: 0;
  padding: clamp(24px, 5vw, 40px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow-wrap: anywhere;
}
h1 { margin: 0 0 16px; font-size: clamp(24px, 4vw, 30px); line-height: 1.4; font-weight: 600; letter-spacing: -.02em; }
.maintenance-message, .maintenance-detail { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.divider { margin: 24px 0; border: 0; border-top: 1px solid var(--line); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #151c24;
    --ink: #e3ebf3;
    --muted: #a5b5c5;
    --panel: #10171e;
    --panel-strong: #1e2833;
    --accent: #7cbaff;
    --line: #344453;
  }
}
