/* NOVA UI System v2.0 — Blacklink Education
 * Dark-first design system with amber accent.
 *
 * This file is maintained for backwards compatibility.
 * The system is now modular and located in /new-nova/src/.
 *
 * For new projects, import via:
 *   <link rel="stylesheet" href="https://nova.blacklink.net/nova-main.css" />
 *   <script type="module" src="https://cdn.blacklink.net/nova/nova.js"></script>
 */

/* ===== Design Tokens ===== */
:root {
  --bg:             #08080f;
  --surface:        #0f0f1a;
  --sur2:           #141420;
  --sur3:           #191928;
  --surface-2:      rgba(19, 21, 35, 0.92);
  --surface-3:      rgba(24, 27, 44, 0.9);
  --border:         #1e1e30;
  --border2:        #252538;
  --border-strong:  rgba(255, 176, 32, 0.28);
  --border-danger:  rgba(255, 132, 146, 0.26);
  --text:           #e8e8f0;
  --muted:          #555570;
  --muted-strong:   #c7cae0;
  --accent:         #ffb020;
  --accent-d:       #cc8c10;
  --accent-soft:    rgba(255, 176, 32, 0.12);
  --accent-glow:    rgba(255, 176, 32, 0.08);
  --blue:           #55b5ff;
  --success:        #65db93;
  --success-soft:   rgba(101, 219, 147, 0.12);
  --success-border: rgba(101, 219, 147, 0.25);
  --danger:         #ff6f71;
  --danger-soft:    rgba(255, 111, 113, 0.12);
  --shadow:         0 28px 70px rgba(0, 0, 0, 0.34);
  --card-shadow:    0 24px 60px rgba(0, 0, 0, 0.5);
  --radius:         13px;
  --font-display:   'Syne', system-ui, sans-serif;
  --font-mono:      'DM Mono', monospace;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-x: hidden;
}

/* ===== Background Effects ===== */
.bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.3;
}
.bg-glow {
  position: fixed; pointer-events: none; z-index: 0;
  width: 600px; height: 600px;
  top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  background: radial-gradient(ellipse, rgba(255,176,32,0.08) 0%, transparent 65%);
}
.bg-glow-2 {
  position: fixed; pointer-events: none; z-index: 0;
  width: 400px; height: 400px;
  bottom: -100px; right: -100px;
  background: radial-gradient(ellipse, rgba(101,219,147,0.04) 0%, transparent 65%);
}

/* ===== Layout ===== */
.page-wrap { width: min(1240px, 100%); margin: 0 auto; position: relative; z-index: 1; }
.wrap { width: min(1240px, 100%); margin: 0 auto; position: relative; z-index: 1; }
.page-shell {
  position: relative; z-index: 1;
  width: min(960px, 100%); min-height: calc(100vh - 56px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
}
.page { width: 100%; max-width: 420px; padding: 20px; }
.layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; align-items: start; }
.rail-stack { display: grid; gap: 16px; }

/* ===== Typography ===== */
.hero-title { font-size: 26px; font-weight: 800; letter-spacing: -0.8px; color: var(--text); line-height: 1; }
.section-title { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 6px; color: var(--text); }
.subsection-title { font-size: 18px; font-weight: 700; letter-spacing: -0.03em; color: var(--text); }
.stat-title { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; color: var(--text); }
.modal-title { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 10px; color: var(--text); }
.card-title { font-size: 16px; font-weight: 800; letter-spacing: -0.3px; margin-bottom: 6px; color: var(--text); }
.body-primary { font-size: 14px; font-weight: 700; color: var(--text); }
.body-secondary { font-size: 13px; font-weight: 400; line-height: 1.65; color: var(--text); }
.caption { font-family: var(--font-mono); font-size: 12px; font-weight: 400; line-height: 1.6; color: var(--muted); }
.micro { font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tiny { font-family: var(--font-mono); font-size: 9px; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); opacity: 0.6; }
.section-kicker {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px;
  color: var(--accent); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
}
.section-kicker::before {
  content: ''; width: 18px; height: 1px;
  background: rgba(255, 176, 32, 0.65); box-shadow: 0 0 12px rgba(255, 176, 32, 0.2);
}
.section-copy { font-family: var(--font-mono); font-size: 12px; color: var(--muted); line-height: 1.6; margin-bottom: 18px; }
.text-mono { font-family: var(--font-mono); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }

/* ===== Buttons ===== */
.btn {
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03);
  color: var(--text); border-radius: 12px; padding: 11px 14px;
  font-family: var(--font-mono); font-size: 12px;
  text-decoration: none; cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease, color 160ms ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; line-height: 1;
}
.btn:hover { border-color: rgba(255, 255, 255, 0.18); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary, .btn-primary { background: var(--accent); border-color: var(--accent); color: #1f1400; font-weight: 700; }
.btn.primary:hover, .btn-primary:hover { background: #ffc04d; border-color: #ffc04d; }
.btn.subtle, .btn-subtle { background: var(--sur2); border-color: var(--border); color: var(--muted); font-size: 11px; padding: 10px 12px; }
.btn.subtle:hover, .btn-subtle:hover { color: var(--text); border-color: var(--border); }
.btn.danger, .btn-danger { border-color: var(--border-danger); background: var(--danger-soft); color: #ffd2d8; }
.btn.danger:hover, .btn-danger:hover { border-color: var(--danger); background: rgba(255, 111, 113, 0.2); }
.btn.disabled, .btn[aria-disabled="true"], .btn:disabled { background: var(--sur2); border-color: var(--border); color: var(--muted); cursor: not-allowed; pointer-events: none; filter: grayscale(1); }
.btn-primary-lg {
  margin-top: 10px; width: 100%; padding: 12px;
  background: var(--accent); color: #08080f; border: none;
  border-radius: 9px; font-size: 14px; font-weight: 700;
  font-family: 'Syne', sans-serif; cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(255, 176, 32, 0.25);
}
.btn-primary-lg:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255, 176, 32, 0.35); }
.btn-primary-lg:active { transform: translateY(0); opacity: 1; }
.btn-primary-lg:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-secondary { padding: 9px; background: transparent; border: 1px solid var(--border); border-radius: 9px; font-size: 11px; font-family: var(--font-mono); color: var(--muted); cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.btn-secondary:hover { border-color: var(--border2); color: var(--text); }
.btn-launch { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 10px; background: var(--sur3); border: 1px solid var(--border2); border-radius: 9px; font-size: 13px; font-weight: 700; font-family: 'Syne', sans-serif; color: var(--text); text-decoration: none; transition: background .2s, border-color .2s, color .2s, transform .15s; }
.btn-launch:hover { background: var(--accent); border-color: var(--accent); color: #08080f; transform: translateY(-1px); }
.btn-passkey { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; padding: 11px; background: rgba(255, 176, 32, 0.08); border: 1px solid rgba(255, 176, 32, 0.2); border-radius: 9px; font-size: 13px; font-family: var(--font-mono); color: var(--text); cursor: pointer; transition: background 0.2s, border-color 0.2s, opacity 0.2s; }
.btn-passkey:hover { background: rgba(255, 176, 32, 0.12); border-color: rgba(255, 176, 32, 0.34); }
.btn-passkey:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-logout { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; background: transparent; border: 1px solid var(--border); border-radius: 10px; font-size: 12px; font-family: var(--font-mono); color: var(--muted); cursor: pointer; transition: border-color .2s, color .2s; white-space: nowrap; }
.btn-logout:hover { border-color: var(--danger); color: var(--danger); }
.provider-btn { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; padding: 11px; background: var(--sur2); border: 1px solid var(--border2); border-radius: 9px; font-size: 13px; font-family: var(--font-mono); color: var(--muted); text-decoration: none; transition: border-color 0.2s, color 0.2s, background 0.2s; }
.provider-btn:hover { border-color: var(--border2); color: var(--text); background: #16162a; }
.provider-btn.is-disabled { background: #12121b; color: #59596f; border-color: #202034; cursor: not-allowed; pointer-events: none; filter: grayscale(1); }
.icon-btn { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; border: 1px solid var(--border2); background: var(--sur3); color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s, background .2s; display: flex; align-items: center; justify-content: center; }
.icon-btn:hover, .icon-btn.is-active { color: var(--accent); border-color: rgba(255, 176, 32, .34); background: rgba(255, 176, 32, .08); }
.btn-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn .fa-solid, .btn .fa-brands, .btn-primary .fa-solid { margin-right: 8px; }

/* ===== Cards ===== */
.card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 100%), var(--surface);
  border: 1px solid var(--border); border-radius: 22px; padding: 22px;
  box-shadow: var(--shadow);
}
.card::before {
  content: ''; position: absolute; inset: 0 auto auto 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, rgba(255, 176, 32, 0.6), rgba(85, 181, 255, 0.28), transparent);
}
.auth-card { background: var(--surface); border: 1px solid var(--border2); border-radius: 18px; padding: 32px 30px 28px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03) inset; }
.app-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px 18px 16px; display: flex; flex-direction: column; gap: 0; transition: border-color .2s, background .2s, transform .18s, box-shadow .2s; cursor: default; }
.app-card:hover { border-color: rgba(255, 176, 32, .28); background: var(--sur2); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3); }
.app-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.app-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--sur3); border: 1px solid var(--border2); display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 14px; flex-shrink: 0; }
.app-icon i { color: var(--accent); font-size: 17px; }
.app-icon img { height: 26px; width: auto; display: block; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .25)); }
.app-meta { font-size: 9px; font-family: var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.app-card h2 { font-size: 16px; font-weight: 800; letter-spacing: -.3px; margin-bottom: 6px; color: var(--text); }
.app-description { font-size: 12px; font-family: var(--font-mono); color: var(--muted); line-height: 1.6; flex: 1; margin-bottom: 14px; }
.app-route { font-size: 9px; font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); opacity: .6; margin-bottom: 12px; }
.app-section-title { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin: 10px 2px 2px; color: var(--text); font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.app-section-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255, 176, 32, 0.3), rgba(255, 176, 32, 0.02)); }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 24px; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; max-width: 740px; width: 100%; }
.empty-icon { font-size: 28px; color: var(--muted); }
.empty-title { font-size: 15px; font-weight: 700; }
.empty-sub { font-size: 12px; font-family: var(--font-mono); color: var(--muted); line-height: 1.6; }

/* ===== Forms ===== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--border); border-radius: 14px; background: var(--sur2); color: var(--text); font-family: var(--font-mono); font-size: 13px; padding: 12px 13px; outline: none; }
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 176, 32, 0.14); }
.field input::placeholder { color: var(--muted); }
.field input[type="file"] { padding: 10px; border-style: dashed; background: linear-gradient(180deg, rgba(255, 176, 32, 0.05), rgba(255, 255, 255, 0.02)), var(--sur2); color: var(--muted-strong); cursor: pointer; }
.field input[type="file"]:hover { border-color: rgba(255, 176, 32, 0.28); background: linear-gradient(180deg, rgba(255, 176, 32, 0.08), rgba(255, 255, 255, 0.03)), var(--sur3); }
.field input[type="file"]::file-selector-button { margin-right: 12px; border: 1px solid rgba(255, 176, 32, 0.24); border-radius: 10px; background: rgba(255, 176, 32, 0.12); color: var(--text); padding: 10px 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; transition: border-color 160ms ease, background 160ms ease, transform 160ms ease; }
.field input[type="file"]::file-selector-button:hover { border-color: rgba(255, 176, 32, 0.42); background: rgba(255, 176, 32, 0.18); transform: translateY(-1px); }
.field .hint { font-family: var(--font-mono); font-size: 11px; color: var(--muted); line-height: 1.5; }
.field-group-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

/* ===== Toggles ===== */
.toggle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.toggle-item { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 14px; background: var(--sur2); padding: 12px 13px; font-family: var(--font-mono); font-size: 12px; color: var(--text); }
.toggle-item input[type="checkbox"] { width: 14px; height: 14px; padding: 0; margin: 0; accent-color: var(--accent); }

/* ===== Navigation ===== */
.top-nav-shell { position: sticky; top: 14px; z-index: 3; margin-bottom: 18px; }
.top-nav { display: flex; gap: 10px; overflow-x: auto; padding: 10px; border: 1px solid var(--border); border-radius: 18px; background: rgba(8, 9, 16, 0.84); backdrop-filter: blur(14px); box-shadow: var(--shadow); scrollbar-width: none; }
.top-nav::-webkit-scrollbar { display: none; }
.top-nav-link { display: inline-flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03); color: var(--text); text-decoration: none; white-space: nowrap; transition: transform 160ms ease, border-color 160ms ease, background 160ms ease; }
.top-nav-link .fa-solid { color: var(--accent); font-size: 12px; width: 14px; text-align: center; flex-shrink: 0; }
.top-nav-link:hover { transform: translateY(-1px); border-color: var(--border-strong); background: var(--sur3); }
.top-nav-step { color: var(--accent); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.top-nav-label { font-size: 13px; font-weight: 700; letter-spacing: -0.02em; }
.sidebar-link { flex: 1 1 180px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; font-size: 12px; font-family: var(--font-mono); color: var(--muted); text-decoration: none; transition: border-color .2s, color .2s; }
.sidebar-link:hover { border-color: var(--border2); color: var(--text); }
.sidebar-links { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; transition: opacity 0.2s; }
.inline-link:hover { opacity: 0.85; }
.section-anchor { scroll-margin-top: 120px; }
.tab-nav { display: grid; grid-template-columns: 1fr 1fr; background: var(--sur2); border: 1px solid var(--border); border-radius: 10px; padding: 3px; gap: 3px; margin-bottom: 22px; }
.tab-nav-item { padding: 8px; border: none; border-radius: 8px; background: transparent; font-size: 12px; font-family: var(--font-mono); font-weight: 500; color: var(--muted); cursor: pointer; transition: background 0.15s, color 0.15s; }
.tab-nav-item.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
.tab-nav-item:not(.active):hover { color: var(--text); }

/* ===== Modals ===== */
.modal-backdrop { position: fixed; inset: 0; background: rgba(8, 8, 15, 0.72); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 30; }
.modal-backdrop.is-open { display: flex; }
.modal { width: min(460px, 100%); background: var(--surface); border: 1px solid var(--border2); border-radius: 18px; padding: 22px 20px 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); animation: fadeUp .24s ease both; }
.modal-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 176, 32, 0.08); border: 1px solid rgba(255, 176, 32, 0.2); color: #ffd58a; font-size: 10px; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.modal h2 { font-size: 22px; letter-spacing: -.03em; margin-bottom: 10px; }
.modal p { font-size: 13px; font-family: var(--font-mono); line-height: 1.7; color: var(--muted); margin-bottom: 16px; }
.modal-status { min-height: 18px; font-size: 11px; font-family: var(--font-mono); color: var(--muted); margin-bottom: 14px; }
.modal-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.modal-btn { flex: 1 1 160px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--border2); background: var(--sur3); color: var(--text); font-size: 12px; font-family: var(--font-mono); cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.modal-btn:hover { border-color: rgba(255, 176, 32, .28); background: var(--sur2); }
.modal-btn.primary { background: var(--accent); border-color: var(--accent); color: #08080f; font-weight: 700; }
.modal-btn.primary:hover { background: #ffc04d; border-color: #ffc04d; }
.modal-btn:disabled { opacity: .55; cursor: not-allowed; }

/* ===== Badges & Chips ===== */
.badge-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.badge-pill.accent { background: rgba(255, 176, 32, 0.08); border: 1px solid rgba(255, 176, 32, 0.2); color: #ffd58a; }
.badge-pill.default { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); color: var(--muted); }
.badge-pill.success { background: rgba(101, 219, 147, 0.15); border: 1px solid var(--success-border); color: var(--success); }
.badge-pill.danger { background: var(--danger-soft); border: 1px solid var(--border-danger); color: #ffd2d8; }
.badge-pill.info { background: rgba(85, 181, 255, 0.12); border: 1px solid rgba(85, 181, 255, 0.24); color: var(--blue); }
.chip { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--border); font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); background: rgba(255, 255, 255, 0.04); white-space: nowrap; }
.chip.current, .chip.success { color: var(--success); }
.chip.danger { color: var(--danger); }
.provider-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03); color: var(--muted-strong); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.chip-group { display: flex; gap: 6px; flex-wrap: wrap; }

/* ===== Lists ===== */
.item-list { display: grid; gap: 8px; }
.list-item { border: 1px solid var(--border); border-radius: 14px; background: var(--sur2); padding: 12px; }
.list-item-title { font-size: 14px; margin-bottom: 4px; }
.list-item-meta { font-family: var(--font-mono); font-size: 11px; color: var(--muted); line-height: 1.6; }
.list-item-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.list-item-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.list-item-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.linked-item { border: 1px solid var(--border); border-radius: 14px; background: var(--sur2); padding: 12px 13px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.linked-item-provider { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); }
.notif-item { border: 1px solid var(--border); border-radius: 14px; background: rgba(255, 255, 255, 0.03); padding: 12px; }
.notif-item.unread { border-color: rgba(255, 176, 32, 0.28); background: linear-gradient(180deg, var(--accent-soft), transparent 120%), rgba(255, 255, 255, 0.03); }
.notif-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.notif-title { font-size: 14px; color: var(--text); }
.notif-body { font-family: var(--font-mono); font-size: 11px; color: var(--muted-strong); line-height: 1.6; }
.notif-meta { font-family: var(--font-mono); font-size: 11px; color: var(--muted); line-height: 1.6; }
.rc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; margin-top: 10px; }
.rc-code { border: 1px dashed var(--border); border-radius: 12px; padding: 10px; color: var(--text); background: rgba(255, 255, 255, 0.02); font-family: var(--font-mono); font-size: 11px; }

/* ===== Avatars ===== */
.avatar-lg { width: 96px; height: 96px; border-radius: 24px; object-fit: cover; border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255, 176, 32, 0.12), rgba(85, 181, 255, 0.08)), var(--sur2); box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26); }
.avatar-md { width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--border2); object-fit: cover; background: var(--sur2); }
.avatar-sm { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border2); object-fit: cover; background: var(--sur2); }
.identity-strip { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--surface); border: 1px solid var(--border2); border-radius: 10px; width: 100%; }
.identity-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.identity-name { font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.identity-school { min-height: 16px; font-size: 11px; font-family: var(--font-mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== Special Components ===== */
.brand { display: flex; align-items: center; gap: 13px; margin-bottom: 24px; }
.brand img { height: 36px; width: auto; border-radius: 9px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); }
.brand-kicker { font-size: 10px; font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.brand h1 { font-size: 17px; font-weight: 800; letter-spacing: -0.3px; color: var(--text); line-height: 1; }
.product-alert { width: 100%; margin-bottom: 18px; padding: 14px 16px; border: 1px solid rgba(255, 176, 32, 0.35); border-radius: 12px; background: linear-gradient(180deg, rgba(255, 176, 32, 0.12), rgba(255, 176, 32, 0.05)), var(--surface); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24); }
.product-alert-copy { font-size: 13px; line-height: 1.65; color: var(--text); }
.product-alert-copy a { color: var(--accent); text-decoration: none; font-weight: 700; }
.product-alert-copy a:hover { text-decoration: underline; }
.suggestion-widget { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; background: linear-gradient(180deg, rgba(255, 176, 32, 0.08), rgba(255, 176, 32, 0.03)); border: 1px solid rgba(255, 176, 32, 0.25); border-radius: 12px; width: 100%; position: relative; }
.suggestion-icon { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 176, 32, 0.14); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 15px; }
.suggestion-body { flex: 1; min-width: 0; }
.suggestion-title { font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.suggestion-text { font-size: 11px; font-family: var(--font-mono); color: var(--muted); line-height: 1.6; }
.suggestion-close { position: absolute; top: 6px; right: 8px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 6px; color: rgba(255, 255, 255, 0.5); font-size: 14px; cursor: pointer; padding: 2px 6px; transition: all .15s; line-height: 1; }
.suggestion-close:hover { background: rgba(255, 255, 255, 0.12); color: #e8e8f0; }
.status { margin-top: 14px; font-size: 12px; font-family: var(--font-mono); min-height: 18px; text-align: center; color: var(--muted); transition: color 0.2s; }
.status.error { color: var(--danger); }
.status.success { color: var(--success); }
.global-status { border: 1px solid var(--border); border-radius: 16px; background: rgba(255, 255, 255, 0.03); padding: 14px 16px; box-shadow: var(--shadow); }
.global-status .status { margin: 0; text-align: left; }
.progress-bar { width: 100%; height: 10px; border-radius: 999px; background: var(--sur2); border: 1px solid var(--border); overflow: hidden; }
.progress-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #45d2ff, #ffb020); transition: width 200ms ease; }
.progress-bar-sm { height: 3px; border-radius: 2px; background: var(--border); overflow: hidden; }
.progress-bar-sm-fill { height: 100%; border-radius: 2px; transition: width .2s, background .2s; }
.sec-panel { border: 1px solid var(--border); border-radius: 16px; background: var(--sur2); padding: 14px; }
.sec-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.sec-panel-title { font-size: 14px; margin-bottom: 4px; }
.sec-panel-copy { font-family: var(--font-mono); font-size: 11px; color: var(--muted); line-height: 1.6; }
.sec-stack { display: grid; gap: 14px; margin-top: 14px; }
.provider-divider { display: flex; align-items: center; gap: 10px; margin: 12px 0; font-size: 11px; font-family: var(--font-mono); color: var(--muted); }
.provider-divider::before, .provider-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.section-divider { margin: 18px 0 14px; border: 0; border-top: 1px solid var(--border); }
.gradient-divider { height: 1px; background: linear-gradient(90deg, rgba(255, 176, 32, 0.34), rgba(85, 181, 255, 0.16), transparent); margin: 18px 0; }
.page-header { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 36px; }
.page-logo { height: 52px; width: auto; border-radius: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); margin-bottom: 14px; }
.page-title { font-size: 26px; font-weight: 800; letter-spacing: -0.8px; color: var(--text); line-height: 1; }
.page-title span { color: var(--accent); }
.page-title-tm { font-size: 11px; vertical-align: super; color: var(--muted); font-weight: 500; }
.toolbar { display: flex; gap: 10px; align-items: center; width: 100%; margin-bottom: 14px; }
.ql-shell { position: relative; z-index: 1; width: min(740px, 100%); display: flex; flex-direction: column; align-items: center; gap: 0; }
.ql-sidebar, .ql-main { width: 100%; display: flex; flex-direction: column; align-items: center; }
.progression-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 5px rgba(255, 176, 32, 0.12); }
.profile-stack { display: grid; gap: 14px; }
.profile-head { display: flex; gap: 14px; align-items: center; }
.profile-name { font-size: 20px; letter-spacing: -0.03em; margin-bottom: 4px; }
.email { font-family: var(--font-mono); font-size: 11px; color: var(--muted); line-height: 1.6; }
.profile-note { color: var(--muted); font-family: var(--font-mono); font-size: 11px; line-height: 1.7; }
.profile-actions { display: grid; gap: 10px; margin-top: 18px; }
.overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.overview-card { border: 1px solid var(--border); border-radius: 14px; background: rgba(255, 255, 255, 0.03); padding: 12px; }
.overview-label { display: block; margin-bottom: 4px; font-family: var(--font-mono); font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.overview-value { font-size: 18px; color: var(--text); }
.sec-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sec-stat { border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(180deg, rgba(255, 176, 32, 0.08), transparent 90%), var(--sur2); padding: 14px; }
.sec-stat-label { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 5px; }
.sec-stat-value { font-family: 'Syne', system-ui, sans-serif; font-size: 20px; letter-spacing: -0.03em; color: var(--text); }
.storage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.storage-stat-label { display: block; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 4px; }
.storage-stat-value { display: block; font-family: 'Syne', system-ui, sans-serif; font-size: 22px; letter-spacing: -0.03em; color: var(--text); }
.storage-meta { font-family: var(--font-mono); font-size: 11px; color: var(--muted); line-height: 1.5; }
.org-connection { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px; border-radius: 16px; border: 1px solid var(--border); background: var(--sur2); }
.org-connection-logo { height: 44px; width: auto; border-radius: 12px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04); padding: 6px; }
.org-connection-label { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.org-connection-copy { color: var(--text); font-size: 14px; letter-spacing: -0.02em; line-height: 1.4; }
.org-connection-meta { margin-top: 4px; color: var(--muted); font-family: var(--font-mono); font-size: 11px; line-height: 1.5; }
.skel-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px 18px 16px; animation: fadeUp .4s ease both; }
.skel { background: var(--sur2); border-radius: 6px; animation: shimmer 1.4s ease-in-out infinite; }
.skel-icon  { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 14px; }
.skel-label { height: 9px; width: 60px; margin-bottom: 8px; }
.skel-title { height: 18px; width: 110px; margin-bottom: 8px; }
.skel-desc  { height: 10px; width: 100%; margin-bottom: 5px; }
.skel-desc2 { height: 10px; width: 75%; margin-bottom: 16px; }
.skel-btn   { height: 38px; width: 100%; border-radius: 9px; }
.advanced-card { border: 1px solid var(--border); border-radius: 14px; background: var(--sur2); padding: 12px; }
.advanced-title { font-size: 14px; margin-bottom: 4px; }
.advanced-copy { font-family: var(--font-mono); font-size: 11px; color: var(--muted); line-height: 1.6; }
.advanced-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tool-card { border: 1px solid var(--border); border-radius: 14px; background: var(--sur2); padding: 12px; }
.tool-title { font-size: 14px; margin-bottom: 4px; }
.tool-copy { font-family: var(--font-mono); font-size: 11px; color: var(--muted); line-height: 1.6; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* ===== Footer ===== */
.bl-global-footer {
  width: 100%;
  margin: 40px auto 0;
  padding: 18px 0 6px;
  text-align: center;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}
.bl-global-footer-copy { font-family: var(--font-mono); font-size: 11px; line-height: 1.5; color: var(--text); opacity: 0.82; }
.bl-global-footer-made { font-family: var(--font-mono); font-size: 10px; line-height: 1.5; color: var(--muted); opacity: 0.9; }

/* ===== Animations ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { 0%, 100% { opacity: .4; } 50% { opacity: .7; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.animate-fade-up { animation: fadeUp 0.45s ease both; }
.animate-fade-in { animation: fadeIn 0.3s ease both; }
.animate-shimmer { animation: shimmer 1.4s ease-in-out infinite; }
.animate-spin { animation: spin 1s linear infinite; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }

/* ===== Spacing Helpers ===== */
.gap-xs { gap: 8px; }
.gap-sm { gap: 12px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.gap-xl { gap: 32px; }
.stack-xs { display: grid; gap: 8px; }
.stack-sm { display: grid; gap: 12px; }
.stack-md { display: grid; gap: 16px; }
.stack-lg { display: grid; gap: 24px; }
.flex-row { display: flex; flex-wrap: wrap; align-items: center; }
.flex-row.gap-sm { gap: 12px; }
.flex-row.gap-md { gap: 16px; }

/* ===== Responsive ===== */
@media (max-width: 460px) {
  .auth-card { padding: 24px 20px 22px; border-radius: 14px; }
}
@media (max-width: 500px) {
  body { padding: 36px 14px 60px; }
  .app-grid { grid-template-columns: 1fr; }
  .page-title { font-size: 22px; }
}
@media (max-width: 780px) {
  body { padding: 16px; }
  .top-nav { padding: 8px; }
  .top-nav-link { padding: 10px 12px; }
  .layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .sec-stat-grid { grid-template-columns: 1fr; }
  .storage-grid { grid-template-columns: 1fr; }
  .toggle-grid { grid-template-columns: 1fr; }
  .profile-head { align-items: flex-start; }
  .avatar-lg { width: 82px; height: 82px; }
}
@media (max-width: 1040px) {
  .top-nav-shell { top: 10px; }
  .layout { grid-template-columns: 1fr; }
  .left-column { position: static; }
}
@media (min-width: 920px) {
  body[data-quicklaunch-layout="sidebar"] .page-header { width: min(1180px, 100%); align-items: flex-start; text-align: left; margin-bottom: 24px; padding-left: 4px; }
  body[data-quicklaunch-layout="sidebar"] .ql-shell { width: min(1180px, 100%); display: grid; grid-template-columns: minmax(280px, 320px) minmax(0, 1fr); gap: 18px; align-items: start; }
  body[data-quicklaunch-layout="sidebar"] .ql-sidebar { position: sticky; top: 28px; align-items: stretch; }
  body[data-quicklaunch-layout="sidebar"] .ql-main { align-items: stretch; min-width: 0; }
}
.nav-scroll-x { overflow-x: auto; scrollbar-width: none; }
.nav-scroll-x::-webkit-scrollbar { display: none; }

/* ===== Docs Site ===== */
.docs-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 0; }

.docs-sidebar {
  position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto;
  display: grid; gap: 2px; align-content: start;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
  padding-right: 4px;
}
.docs-sidebar::-webkit-scrollbar { width: 4px; }
.docs-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }

.docs-sidebar-brand {
  padding: 14px 10px; margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.docs-sidebar-brand .page-logo-wrap { margin-bottom: 0; }
.docs-sidebar-brand .page-logo-wrap img { height: 32px; width: auto; }
.docs-sidebar-brand .page-logo-wrap h1 { font-size: 15px; }
.docs-sidebar-brand .page-logo-kicker { font-size: 9px; }

.docs-sidebar-group { margin-bottom: 2px; }
.docs-sidebar-label {
  font-size: 9px; font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); padding: 10px 10px 4px; opacity: 0.7;
}
.docs-sidebar-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 8px;
  font-size: 12px; color: var(--muted); text-decoration: none;
  transition: background .15s, color .15s;
}
.docs-sidebar-item:hover { background: var(--sur3); color: var(--text); }
.docs-sidebar-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.docs-sidebar-item .fa-solid, .docs-sidebar-item .badge-indicator { width: 14px; text-align: center; font-size: 10px; flex-shrink: 0; }

/* ===== Code Blocks ===== */
.code-block {
  background: #0a0a14; border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; margin: 14px 0;
}
.code-block-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 12px; background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
}
.code-block-lang {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
.code-copy-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: transparent; border: none; color: var(--muted);
  font-family: var(--font-mono); font-size: 10px; cursor: pointer;
  padding: 4px 8px; border-radius: 6px; transition: color .15s, background .15s;
}
.code-copy-btn:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.code-copy-btn.copied { color: var(--success); }
.code-block pre {
  padding: 14px 16px; overflow-x: auto; margin: 0;
  font-family: var(--font-mono); font-size: 12px; line-height: 1.7;
  color: #d4d4e8; tab-size: 2;
}
.code-block code { font-family: inherit; }

/* ===== Inline Copy Tokens ===== */
.copy-token {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 11px;
  background: var(--sur3); border: 1px solid var(--border);
  padding: 2px 9px; border-radius: 6px; color: var(--accent);
  cursor: pointer; transition: border-color .15s, background .15s;
  white-space: nowrap; user-select: all;
}
.copy-token:hover { border-color: var(--accent); background: var(--accent-soft); }
.copy-token .fa-regular, .copy-token .fa-solid { font-size: 9px; color: var(--muted); }
.copy-token.copied { border-color: var(--success); color: var(--success); }
.copy-token.copied .fa-regular, .copy-token.copied .fa-solid { color: var(--success); }

.inline-code {
  font-family: var(--font-mono); font-size: 12px;
  background: var(--sur3); padding: 2px 6px; border-radius: 4px;
  color: var(--accent);
}

/* ===== Token Tables ===== */
.token-table {
  width: 100%; border-collapse: collapse;
  font-family: var(--font-mono); font-size: 11px;
  margin: 14px 0; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border);
}
.token-table th {
  text-align: left; padding: 8px 14px;
  color: var(--muted); font-weight: 500; font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
}
.token-table td {
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  color: var(--text); vertical-align: middle;
}
.token-table tr:last-child td { border-bottom: none; }
.token-table tr:hover td { background: rgba(255,255,255,0.02); }
.token-table td:last-child { color: var(--muted); font-size: 10px; }

/* ===== Section Layout ===== */
.docs-section { scroll-margin-top: 80px; }
.docs-section-header { margin-bottom: 18px; }
.docs-section-header .section-kicker { margin-bottom: 6px; }
.docs-section-header .section-title { margin-bottom: 0; }
.docs-section-desc { font-family: var(--font-mono); font-size: 12px; color: var(--muted); line-height: 1.6; margin-bottom: 18px; }

/* ===== Docs Component Patterns ===== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.product-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px 14px 14px; text-align: center; transition: border-color .2s, background .2s, transform .18s; cursor: default; }
.product-item:hover { border-color: rgba(255,176,32,.28); background: var(--sur2); transform: translateY(-2px); }
.product-name { font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.product-desc { font-size: 9.5px; font-family: var(--font-mono); color: var(--muted); line-height: 1.5; }

.color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.color-swatch { color: #fff; }

.type-demo { display: flex; flex-direction: column; gap: 0; background: var(--sur2); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.type-row { padding: 16px 18px; transition: background .15s; }
.type-row + .type-row { border-top: 1px solid var(--border); }
.type-row:hover { background: var(--sur3); }
.type-label { font-family: var(--font-mono); font-size: 10px; color: var(--muted); margin-top: 4px; letter-spacing: 0.02em; }

.spacing-list { display: grid; gap: 8px; }
.spacing-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--sur2); border: 1px solid var(--border); border-radius: 12px; }
.spacing-name { font-size: 13px; font-weight: 700; }
.spacing-value { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

.guideline-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.guideline-card { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--sur2); }
.guideline-sample { padding: 24px 20px; display: flex; align-items: center; justify-content: center; min-height: 80px; position: relative; }
.guideline-do { border-bottom: 2px solid var(--success); }
.guideline-dont { border-bottom: 2px solid var(--danger); }
.guideline-tag { position: absolute; top: 8px; right: 8px; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; font-weight: 700; }
.guideline-do .guideline-tag { background: var(--success); color: #08080f; }
.guideline-dont .guideline-tag { background: var(--danger); color: #fff; }
.guideline-text { padding: 14px 16px; font-size: 11px; font-family: var(--font-mono); color: var(--muted); line-height: 1.65; }

.download-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }

.shelf { background: var(--sur2); border: 1px solid var(--border); border-radius: 16px; padding: 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.shelf-label { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; width: 100%; margin-bottom: -2px; }
.shelf-vertical { flex-direction: column; align-items: stretch; }
.demo-hstack { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.demo-stack { display: grid; gap: 14px; }

.info-box { border: 1px solid var(--border); border-radius: 14px; background: var(--sur2); padding: 14px; }
.info-box.success { border-color: var(--success-border); background: rgba(101,219,147,0.04); }
.info-box-title { font-size: 13px; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.info-box-content { font-size: 11px; font-family: var(--font-mono); color: var(--muted); line-height: 1.7; }

@media (max-width: 780px) {
  .color-grid { grid-template-columns: repeat(auto-fill, minmax(85px, 1fr)); }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}
@media (max-width: 500px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
  .color-grid { grid-template-columns: 1fr 1fr; }
  .guideline-grid { grid-template-columns: 1fr; }
}

/* ===== Component Preview ===== */
.comp-preview {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 20px; background: var(--sur2);
  border: 1px solid var(--border); border-radius: 14px;
  margin-bottom: 0;
}
.comp-preview-vertical { flex-direction: column; align-items: stretch; }

/* ===== Copy Toast ===== */
.copy-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  padding: 10px 18px; background: var(--accent); color: #08080f;
  border-radius: 10px; font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
  opacity: 0; transition: opacity .2s; z-index: 100; pointer-events: none;
}
.copy-toast.show { opacity: 1; }

/* ===== Right Rail ===== */
.docs-right { display: none; }
.docs-right-inner { position: sticky; top: 20px; }
.docs-right-label { font-size: 9px; font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.docs-right-item {
  display: block; padding: 3px 0 3px 10px;
  font-size: 11px; color: var(--muted); text-decoration: none;
  border-left: 1px solid var(--border);
  transition: color .15s, border-color .15s;
}
.docs-right-item:hover { color: var(--text); }
.docs-right-item.active { color: var(--accent); border-left-color: var(--accent); }

/* ===== Responsive Docs ===== */
@media (min-width: 1220px) {
  .docs-layout { grid-template-columns: 230px minmax(0, 1fr) 160px; }
  .docs-right { display: block; }
}
@media (max-width: 860px) {
  .docs-layout { grid-template-columns: 1fr; gap: 0; }
  .docs-sidebar { display: none; }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
