*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f5f4f0;
  --surface: #ffffff;
  --surface2: #f1efe8;
  --border: rgba(0,0,0,0.12);
  --border-strong: rgba(0,0,0,0.25);
  --text: #1a1a18;
  --text-muted: #5f5e5a;
  --text-hint: #888780;
  --green-bg: #EAF3DE;
  --green-text: #3B6D11;
  --green-dot: #639922;
  --red-bg: #FCEBEB;
  --red-text: #A32D2D;
  --red-dot: #E24B4A;
  --warn-bg: #FFF4DC;
  --warn-text: #7A5000;
  --warn-dot: #E8A000;
  --yellow-bg: #FFF8DC;
  --yellow-text: #7A5C00;
  --blue-bg: #E8F0FE;
  --blue-text: #1A56A0;
  --radius-md: 8px;
  --radius-lg: 12px;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1c1a;
    --surface: #252523;
    --surface2: #2c2c2a;
    --border: rgba(255,255,255,0.1);
    --border-strong: rgba(255,255,255,0.22);
    --text: #f0ede6;
    --text-muted: #b4b2a9;
    --text-hint: #888780;
    --green-bg: #173404;
    --green-text: #C0DD97;
    --green-dot: #97C459;
    --red-bg: #501313;
    --red-text: #F7C1C1;
    --red-dot: #F09595;
    --warn-bg: #2e2100;
    --warn-text: #e8b84a;
    --yellow-bg: #3a2e00;
    --yellow-text: #f0d060;
    --blue-bg: #0d1f3c;
    --blue-text: #90b8f8;
  }
}

html, body { height: 100%; }

body {
  margin: 0;
  height: 100%;
  overflow-x: hidden;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
}

.page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1rem 0.75rem;
}

header { text-align: center; margin-bottom: 1rem; width: 100%; max-width: 900px; }
header h1 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 6px; }
header p { font-size: 14px; color: var(--text-muted); }

.container { width: 100%; max-width: 900px; }

.back-link {
  align-self: flex-start;
  font-size: 13px;
  color: var(--text-hint);
  text-decoration: none;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s;
}
.back-link:hover { color: var(--text-muted); }

.card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  margin-bottom: 0.75rem;
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-hint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

#footer { width: 100%; }
#footer footer {
  text-align: center;
  font-size: 13px;
  color: var(--text-hint);
  line-height: 1.7;
  padding: 0.75rem 1rem 1rem;
}

@media (max-width: 480px) { header h1 { font-size: 20px; } }
@media (min-width: 1200px) { header h1 { font-size: 30px; } }
