:root {
  --ink: #071426;
  --ink-2: #0a1a2e;
  --panel: #0d2038;
  --panel-2: #112b49;
  --panel-3: #16395d;
  --line: rgba(171, 198, 224, .16);
  --line-gold: rgba(231, 184, 91, .28);
  --gold: #e7b85b;
  --gold-2: #ffd986;
  --cream: #f5f1e8;
  --text: #e8eef5;
  --muted: #91a5bb;
  --success: #63d29b;
  --warning: #ffbf69;
  --danger: #ff7e85;
  --shadow: 0 22px 70px rgba(0, 0, 0, .24);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 80% -10%, rgba(28, 82, 127, .42), transparent 34rem),
    radial-gradient(circle at 0% 36%, rgba(231, 184, 91, .07), transparent 28rem),
    var(--ink);
  color: var(--text);
  font: 14px/1.55 Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--gold-2); }
.app-shell { min-height: 100vh; display: flex; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 20; width: 278px; padding: 24px 16px 16px;
  display: flex; flex-direction: column; background: rgba(7, 20, 38, .93); border-right: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand-lockup { display: flex; gap: 12px; align-items: center; padding: 0 9px 25px; }
.brand-mark {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px;
  background: linear-gradient(145deg, var(--gold-2), var(--gold)); color: var(--ink); font-weight: 900; letter-spacing: .04em;
  box-shadow: 0 8px 22px rgba(231, 184, 91, .18);
}
.brand-name { font: 800 1.45rem/1 Fraunces, Georgia, serif; letter-spacing: -.03em; }
.brand-subtitle { margin-top: 4px; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.sidebar-nav { overflow-y: auto; padding-right: 4px; }
.nav-label { padding: 17px 12px 7px; color: #68809a; font-size: .67rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.nav-btn {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid transparent;
  border-radius: 10px; color: var(--muted); background: transparent; text-align: left; transition: .18s ease;
}
.nav-btn span { width: 18px; color: #7894af; text-align: center; font-size: 1rem; }
.nav-btn:hover { color: var(--text); background: rgba(22, 57, 93, .45); }
.nav-btn.active { color: var(--gold-2); background: linear-gradient(90deg, rgba(231, 184, 91, .15), rgba(231, 184, 91, .03)); border-color: var(--line-gold); }
.nav-btn.active span { color: var(--gold); }
.nav-btn.atlas-nav {
  margin-top: 6px;
  color: var(--gold-2);
  border-color: var(--line-gold);
  background: linear-gradient(90deg, rgba(231, 184, 91, .13), rgba(231, 184, 91, .025));
  text-decoration: none;
}
.nav-btn.atlas-nav:hover { border-color: var(--gold); background: rgba(231, 184, 91, .16); }
.nav-btn.atlas-nav b {
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--gold);
  font-size: .55rem;
  letter-spacing: .08em;
}
.sidebar-footer { margin-top: auto; padding: 18px 9px 3px; border-top: 1px solid var(--line); }
.server-pill, .status-chip, .tag, .mini-chip {
  display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; border: 1px solid var(--line-gold);
  color: var(--gold-2); background: rgba(231, 184, 91, .08); padding: 5px 9px; font-size: .7rem; font-weight: 800; letter-spacing: .03em;
}
.sidebar-note { margin-top: 11px; color: #6f879f; font-size: .75rem; line-height: 1.55; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(99, 210, 155, .12); }
.content-shell { width: calc(100% - 278px); margin-left: 278px; min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 12; height: 72px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: rgba(7, 20, 38, .78); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px);
}
.breadcrumb { color: var(--muted); font-size: .86rem; }
.breadcrumb span { padding: 0 7px; color: #58738e; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.global-search { display: flex; align-items: center; gap: 8px; min-width: 230px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; background: rgba(14, 34, 58, .74); color: #6e88a2; }
.global-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: .82rem; }
.global-search input::placeholder { color: #6e88a2; }
.avatar-btn { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-gold); border-radius: 50%; color: var(--ink); background: var(--gold); font-weight: 900; text-decoration: none; }
.atlas-toplink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid var(--line-gold);
  border-radius: 9px;
  color: var(--gold-2);
  background: rgba(231, 184, 91, .08);
  font-size: .76rem;
  font-weight: 800;
  text-decoration: none;
}
.atlas-toplink:hover { border-color: var(--gold); background: rgba(231, 184, 91, .14); }
.mobile-menu { display: none; border: 0; background: transparent; color: var(--text); font-size: 1.3rem; }
.page-wrap { width: min(1440px, calc(100% - 64px)); margin: 0 auto; padding: 42px 0 70px; }
.eyebrow, .kicker { color: var(--gold); font-size: .72rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
h1, h2, h3, h4 { margin: 0; color: var(--cream); font-family: Fraunces, Georgia, serif; font-weight: 700; letter-spacing: -.025em; }
h1 { font-size: clamp(2.4rem, 5vw, 5.4rem); line-height: .98; }
h2 { font-size: clamp(1.55rem, 3vw, 2.5rem); line-height: 1.05; }
h3 { font-size: 1.3rem; line-height: 1.12; }
h4 { font-size: 1rem; }
p { color: var(--muted); }
.hero {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .55fr); align-items: center; gap: 34px;
  min-height: 310px; padding: 30px; border: 1px solid var(--line); border-radius: 20px;
  background: radial-gradient(circle at 0 0, rgba(28, 82, 127, .3), transparent 45rem), linear-gradient(125deg, rgba(17, 43, 73, .94), rgba(7, 20, 38, .78));
  box-shadow: 0 20px 55px rgba(0, 0, 0, .16); overflow: hidden;
}
.hero h1 { max-width: 920px; margin-top: 10px; font-size: clamp(2.25rem, 4vw, 4.35rem); }
.hero-copy { max-width: 630px; margin: 20px 0 0; font-size: 1.02rem; }
.hero-context { margin-top: 10px; color: #7894af; font-size: .74rem; font-weight: 700; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 25px; }
.command-path-card { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; padding: 19px; border: 1px solid var(--line); border-radius: 15px; background: rgba(5, 16, 29, .48); }
.command-path-card h3 { margin: 9px 0 18px; font-family: Manrope, ui-sans-serif, sans-serif; font-size: 1.05rem; line-height: 1.35; }
.command-path-progress { display: flex; align-items: center; gap: 13px; margin: auto 0 18px; }
.command-path-progress > div:last-child { min-width: 0; }
.command-path-progress strong, .command-path-progress small { display: block; }
.command-path-progress strong { color: var(--text); font-size: .78rem; }
.command-path-progress small { margin-top: 4px; color: var(--muted); font-size: .68rem; }
.progress-ring { --progress: 0%; position: relative; width: 54px; height: 54px; flex: 0 0 54px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--gold) var(--progress), rgba(171, 198, 224, .12) 0); }
.progress-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #0b1a2e; }
.progress-ring span { position: relative; color: var(--cream); font-size: .7rem; font-weight: 900; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 9px; padding: 10px 14px; color: var(--text); background: rgba(22, 57, 93, .75); text-decoration: none; transition: .18s ease; }
.button:hover { border-color: var(--gold); color: var(--gold-2); transform: translateY(-1px); }
.button.primary { color: var(--ink); border-color: var(--gold); background: var(--gold); font-weight: 800; }
.button.secondary { color: var(--gold-2); border-color: var(--line-gold); background: rgba(231, 184, 91, .08); }
.button.app-install-cta { color: var(--gold-2); border-color: var(--line-gold); background: rgba(231, 184, 91, .07); font-weight: 800; }
.button.danger { color: #ffadb2; border-color: rgba(255, 126, 133, .35); background: rgba(255, 126, 133, .08); }
.button.small { padding: 7px 9px; font-size: .78rem; }
.button.full { width: 100%; }
.button:disabled { opacity: .5; pointer-events: none; }
.section-bar { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 28px 0 14px; }
.section-bar p { margin: 7px 0 0; }
.text-link { border: 0; padding: 0; color: var(--gold-2); background: transparent; font-weight: 800; }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.panel, .card, .metric-card, .feature-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(17, 43, 73, .82), rgba(10, 26, 46, .78)); box-shadow: 0 10px 35px rgba(0, 0, 0, .12);
}
.panel { padding: 20px; }
.card, .feature-card { padding: 18px; }
.panel-header, .card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.panel-header { padding-bottom: 15px; margin-bottom: 15px; border-bottom: 1px solid var(--line); }
.panel-header p, .card-header p { margin: 6px 0 0; font-size: .82rem; }
.metric-card { padding: 17px; min-height: 112px; }
.metric-label { color: var(--muted); font-size: .73rem; text-transform: uppercase; letter-spacing: .11em; }
.metric-value { display: block; margin-top: 10px; color: var(--cream); font: 800 2rem/1 Fraunces, Georgia, serif; }
.metric-value.gold { color: var(--gold-2); }
.metric-foot { margin-top: 9px; color: #6f879f; font-size: .74rem; }
.feature-card { min-height: 168px; position: relative; overflow: hidden; }
.feature-card::after { content: ""; position: absolute; right: -35px; bottom: -58px; width: 130px; height: 130px; border: 1px solid rgba(231, 184, 91, .22); border-radius: 50%; }
.feature-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 17px; border: 1px solid var(--line-gold); border-radius: 10px; color: var(--gold-2); background: rgba(231, 184, 91, .1); font-size: 1.15rem; }
.feature-card h3 { font-size: 1.18rem; }
.feature-card p { margin: 8px 0 0; font-size: .82rem; }
.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stat-strip .metric-card { background: rgba(14, 34, 58, .57); }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.guide-card { position: relative; min-height: 250px; display: flex; flex-direction: column; padding: 19px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(150deg, rgba(17, 43, 73, .9), rgba(8, 24, 42, .8)); overflow: hidden; }
.guide-card:hover { border-color: var(--line-gold); }
.guide-card .guide-icon { font-size: 1.5rem; }
.guide-card h3 { margin-top: 15px; font-size: 1.35rem; }
.guide-card p { flex: 1; margin: 9px 0 15px; font-size: .82rem; }
.guide-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.tag { padding: 4px 8px; border-color: var(--line); color: #a9bdd2; background: rgba(7, 20, 38, .45); font-size: .64rem; }
.tag.gold { color: var(--gold-2); border-color: var(--line-gold); background: rgba(231, 184, 91, .08); }
.legacy-ribbon { position: absolute; top: 13px; right: 13px; color: #86a6c2; font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(13, 32, 56, .65); }
.field { display: grid; gap: 6px; }
.field label, .field-label { color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.field input, .field select, .field textarea, .filters select, .filters input {
  width: 100%; min-height: 39px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: var(--text); background: rgba(7, 20, 38, .72);
}
.field input:focus, .field select:focus, .field textarea:focus, .filters select:focus, .filters input:focus { border-color: var(--gold); }
.field textarea { min-height: 95px; resize: vertical; }
.field select option, .filters select option { background: var(--ink-2); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.empty { padding: 28px; text-align: center; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); }
.notice { padding: 12px 14px; border: 1px solid var(--line-gold); border-radius: 10px; color: #ddcfb3; background: rgba(231, 184, 91, .07); font-size: .82rem; }
.notice strong { color: var(--gold-2); }
.progress-line { height: 8px; margin-top: 10px; overflow: hidden; border-radius: 999px; background: rgba(7, 20, 38, .8); }
.progress-line > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width .25s ease; }
.progress-row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .78rem; }
.progress-row strong { color: var(--gold-2); }
.guide-hero { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 20px; align-items: stretch; }
.guide-hero-main { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(17, 43, 73, .9), rgba(8, 24, 42, .84)); }
.guide-hero-main h1 { margin-top: 10px; font-size: clamp(2rem, 4vw, 3.7rem); }
.guide-hero-main p { max-width: 840px; margin: 15px 0 0; font-size: .95rem; }
.guide-hero-side { display: grid; align-content: space-between; padding: 19px; border: 1px solid var(--line-gold); border-radius: var(--radius); background: rgba(231, 184, 91, .06); }
.route-selector { scroll-margin-top: 90px; margin: 22px 0; padding: 22px; border: 1px solid var(--line-gold); border-radius: var(--radius); background: linear-gradient(145deg, rgba(17, 43, 73, .76), rgba(8, 24, 42, .82)); }
.route-selector .section-bar { margin: 0 0 18px; }
.route-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.route-card { display: flex; min-width: 0; flex-direction: column; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: rgba(7, 21, 37, .72); transition: transform .16s ease, border-color .16s ease; }
.route-card:hover { transform: translateY(-2px); border-color: rgba(231, 184, 91, .42); }
.route-card.selected { border-color: var(--gold); background: linear-gradient(160deg, rgba(231, 184, 91, .13), rgba(13, 32, 56, .86)); box-shadow: inset 0 0 0 1px rgba(231, 184, 91, .13); }
.route-card-head { display: flex; min-height: 24px; flex-wrap: wrap; gap: 5px; }
.route-card h3 { margin: 12px 0 7px; font-size: 1rem; }
.route-card > p { min-height: 62px; margin: 0 0 12px; font-size: .72rem; line-height: 1.5; }
.route-card dl { display: grid; gap: 9px; flex: 1; margin: 0 0 14px; }
.route-card dl > div { padding-top: 8px; border-top: 1px solid rgba(171, 198, 224, .1); }
.route-card dt { color: var(--gold-2); font-size: .61rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.route-card dd { margin: 3px 0 0; color: var(--muted); font-size: .66rem; line-height: 1.42; }
.guide-score { color: var(--gold-2); font: 800 3rem/1 Fraunces, Georgia, serif; }
.guide-score-label { color: var(--muted); font-size: .78rem; }
.guide-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; margin-top: 19px; align-items: start; }
.guide-rail { position: sticky; top: 91px; max-height: calc(100vh - 110px); overflow: auto; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: rgba(13, 32, 56, .68); }
.guide-rail a { display: block; padding: 8px 9px; border-radius: 7px; color: var(--muted); text-decoration: none; font-size: .74rem; line-height: 1.3; }
.guide-rail a:hover { color: var(--gold-2); background: rgba(231, 184, 91, .08); }
.guide-step { scroll-margin-top: 90px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 13px; background: rgba(13, 32, 56, .72); overflow: hidden; }
.guide-step summary { display: flex; align-items: flex-start; gap: 13px; padding: 17px; cursor: pointer; list-style: none; }
.guide-step summary::-webkit-details-marker { display: none; }
.step-number { display: grid; place-items: center; flex: 0 0 auto; width: 31px; height: 31px; border-radius: 9px; color: var(--ink); background: var(--gold); font-weight: 900; }
.guide-step summary h3 { margin-top: 3px; font-size: 1.07rem; }
.step-body { padding: 0 17px 17px 61px; }
.step-body p { margin: 0 0 13px; font-size: .86rem; }
.check-items { display: grid; gap: 7px; }
.check-item { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; align-items: start; padding: 9px 10px; border: 1px solid rgba(171, 198, 224, .1); border-radius: 8px; background: rgba(7, 20, 38, .5); color: #c9d5e1; font-size: .8rem; cursor: pointer; }
.check-item input { margin-top: 3px; accent-color: var(--gold); }
.check-item.done { color: #789687; text-decoration: line-through; text-decoration-color: rgba(99, 210, 155, .55); }
.checklist-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.checklist-card { padding: 15px; border: 1px solid var(--line-gold); border-radius: 12px; background: rgba(231, 184, 91, .045); }
.checklist-card h4 { color: var(--gold-2); font-size: 1rem; }
.checklist-card .check-item { margin-top: 7px; background: rgba(7, 20, 38, .36); }
.resource-list { display: grid; gap: 7px; }
.resource-list a { overflow-wrap: anywhere; color: #9fc4e7; font-size: .78rem; }
.tool-tabs { display: flex; gap: 7px; flex-wrap: wrap; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.tool-tab { border: 1px solid var(--line); border-radius: 999px; padding: 8px 11px; color: var(--muted); background: rgba(7, 20, 38, .45); font-size: .76rem; }
.tool-tab.active { color: var(--ink); border-color: var(--gold); background: var(--gold); font-weight: 800; }
.tool-output { margin-top: 16px; padding: 15px; border: 1px solid var(--line-gold); border-radius: 11px; background: rgba(231, 184, 91, .06); }
.tool-output .big { display: block; color: var(--gold-2); font: 800 2.5rem/1 Fraunces, Georgia, serif; }
.tool-output .muted { color: var(--muted); font-size: .78rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 11px; }
table { width: 100%; border-collapse: collapse; min-width: 580px; }
th, td { padding: 10px 11px; border-bottom: 1px solid rgba(171, 198, 224, .1); text-align: left; font-size: .78rem; }
th { color: #86a2bd; background: rgba(7, 20, 38, .52); font-size: .67rem; text-transform: uppercase; letter-spacing: .08em; }
td { color: #cad7e4; }
tr:last-child td { border-bottom: 0; }
.table-number { color: var(--gold-2); font-weight: 800; }
.dashboard-hero { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 21px; }
.dashboard-hero p { max-width: 650px; margin: 9px 0 0; }
.avatar-large { display: grid; place-items: center; width: 65px; height: 65px; border: 1px solid var(--line-gold); border-radius: 18px; color: var(--ink); background: var(--gold); font: 800 1.8rem/1 Fraunces, Georgia, serif; }
.member-list { display: grid; gap: 8px; }
.member-row { display: flex; align-items: center; gap: 11px; padding: 10px; border: 1px solid rgba(171, 198, 224, .1); border-radius: 9px; background: rgba(7, 20, 38, .42); }
.member-initial { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; color: var(--gold-2); background: rgba(231, 184, 91, .12); font-weight: 900; }
.member-name { flex: 1; color: var(--text); font-weight: 800; }
.member-role { color: var(--muted); font-size: .74rem; }
.activity-list { display: grid; gap: 8px; }
.activity-row { padding: 10px 0; border-bottom: 1px solid rgba(171, 198, 224, .1); color: var(--muted); font-size: .78rem; }
.activity-row:last-child { border-bottom: 0; }
.activity-row strong { color: var(--text); }
.split-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 15px; }
.subscription-banner { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 21px; border: 1px solid var(--line-gold); border-radius: var(--radius); background: radial-gradient(circle at 95% 0, rgba(231, 184, 91, .13), transparent 38%), rgba(13, 32, 56, .74); }
.subscription-banner h3 { margin-top: 10px; }
.subscription-banner p { max-width: 760px; margin: 7px 0 0; }
.subscription-price { min-width: 205px; padding-left: 20px; border-left: 1px solid var(--line-gold); text-align: right; }
.subscription-price strong, .subscription-price span { display: block; }
.subscription-price strong { color: var(--gold-2); font: 700 1.1rem Fraunces, Georgia, serif; }
.subscription-price span { margin-top: 4px; color: var(--muted); font-size: .7rem; }
.alliance-emblem { display: grid; place-items: center; width: 82px; height: 82px; overflow: hidden; border: 1px solid var(--line-gold); border-radius: 20px; background: rgba(231, 184, 91, .08); color: var(--gold-2); font: 800 1.5rem Fraunces, Georgia, serif; }
.alliance-emblem img { width: 100%; height: 100%; object-fit: cover; }
.privacy-choice { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 9px; margin-top: 9px; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: rgba(7, 20, 38, .43); cursor: pointer; }
.privacy-choice input { margin-top: 4px; accent-color: var(--gold); }
.privacy-choice strong, .privacy-choice small { display: block; }
.privacy-choice small { margin-top: 3px; color: var(--muted); line-height: 1.45; }
.troop-entry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.troop-entry > label { display: block; margin-bottom: 6px; color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.quantity-control { display: grid; grid-template-columns: auto minmax(90px, 1fr) auto; gap: 6px; align-items: stretch; }
.quantity-control input { width: 100%; min-height: 42px; border: 1px solid var(--line-gold); border-radius: 8px; color: var(--text); background: rgba(7, 20, 38, .72); text-align: center; }
.quantity-steps { display: flex; gap: 4px; }
.quantity-steps button { min-width: 49px; border: 1px solid var(--line); border-radius: 7px; color: var(--gold-2); background: rgba(22, 57, 93, .6); font-size: .7rem; font-weight: 800; touch-action: none; user-select: none; }
.milestone-section { scroll-margin-top: 90px; }
.milestone-list { display: grid; gap: 14px; }
.milestone-card { padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: rgba(13, 32, 56, .7); }
.milestone-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.milestone-head h3 { margin-top: 6px; }
.milestone-head p { margin: 7px 0 0; }
.target-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 15px 0; }
.target-chip { padding: 9px; border: 1px solid rgba(171, 198, 224, .12); border-radius: 8px; background: rgba(7, 20, 38, .45); }
.target-chip span, .target-chip strong { display: block; }
.target-chip span { color: var(--muted); font-size: .64rem; }
.target-chip strong { margin-top: 4px; color: var(--cream); }
.readiness-badge { min-width: 78px; padding: 8px; border: 1px solid currentColor; border-radius: 9px; text-align: center; }
.readiness-badge strong, .readiness-badge span { display: block; }
.readiness-badge span { font-size: .63rem; text-transform: uppercase; }
.snapshot-drawer { border-top: 1px solid var(--line); padding-top: 12px; }
.snapshot-drawer summary { color: var(--gold-2); cursor: pointer; font-weight: 800; }
.snapshot-drawer form { margin-top: 13px; }
.snapshot-result { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-top: 13px; padding: 10px; border-radius: 8px; background: rgba(7, 20, 38, .5); }
.snapshot-result small { color: var(--muted); text-align: right; }
.invite-list { display: grid; gap: 8px; }
.invite-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; }
.invite-row strong, .invite-row small { display: block; }
.invite-row small { margin-top: 4px; color: var(--muted); }
.permission-list { display: grid; gap: 8px; }
.permission-list > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 11px; padding-bottom: 8px; border-bottom: 1px solid rgba(171, 198, 224, .1); }
.permission-list strong { color: var(--text); font-size: .76rem; }
.permission-list span { color: var(--muted); font-size: .7rem; line-height: 1.45; }
.member-role-select { max-width: 190px; padding: 6px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: var(--ink-2); }
.privacy-lock { color: #7188a0; font-size: .7rem; font-style: italic; }
.workspace-state { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -4px 0 14px; }
.alliance-tabs { display: flex; gap: 7px; overflow-x: auto; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: rgba(7, 20, 38, .58); scrollbar-width: thin; }
.alliance-tabs button { flex: 0 0 auto; min-height: 38px; padding: 8px 13px; border: 1px solid transparent; border-radius: 8px; color: var(--muted); background: transparent; font-weight: 800; }
.alliance-tabs button:hover { color: var(--gold-2); border-color: var(--line); }
.alliance-tabs button.active { color: var(--ink); border-color: var(--gold); background: var(--gold); }
.tab-count { display: inline-grid; place-items: center; min-width: 19px; height: 19px; margin-left: 5px; padding: 0 5px; border-radius: 999px; color: var(--cream); background: rgba(7, 20, 38, .78); font-size: .65rem; }
.alliance-tab-panel { margin-top: 16px; }
.status-pill { display: inline-flex; margin-top: 4px; padding: 3px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .65rem; font-weight: 800; }
.status-pill.success { color: var(--success); border-color: rgba(99, 210, 155, .3); background: rgba(99, 210, 155, .07); }
.status-pill.warning { color: var(--warning); border-color: rgba(255, 190, 92, .3); background: rgba(255, 190, 92, .07); }
.status-pill.danger { color: var(--danger); border-color: rgba(255, 126, 133, .3); background: rgba(255, 126, 133, .07); }
.member-actions { display: flex; min-width: 190px; flex-wrap: wrap; gap: 5px; }
.success-button { color: var(--success); border-color: rgba(99, 210, 155, .3); background: rgba(99, 210, 155, .08); }
.field-wide { grid-column: 1 / -1; }
.field small { color: var(--muted); font-size: .68rem; line-height: 1.4; }
.pipeline-list { display: grid; gap: 10px; }
.pipeline-list > div { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px; border: 1px solid rgba(171, 198, 224, .1); border-radius: 9px; background: rgba(7, 20, 38, .4); }
.pipeline-list strong { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--ink); background: var(--gold); }
.pipeline-list span { color: var(--muted); font-size: .78rem; line-height: 1.45; }
.world-status { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px; border: 1px solid var(--line-gold); border-radius: var(--radius); background: radial-gradient(circle at 92% 0, rgba(231, 184, 91, .13), transparent 38%), rgba(13, 32, 56, .72); }
.world-status h3 { margin-top: 9px; }
.world-status p { margin: 5px 0 0; }
.world-status.error { border-color: rgba(255, 126, 133, .42); }
.world-status.current { border-color: rgba(99, 210, 155, .38); }
.danger-notice { border-color: rgba(255, 126, 133, .32); color: #ffc4c8; background: rgba(255, 126, 133, .07); }
.member-name small { display: block; margin-top: 3px; color: var(--muted); font-size: .66rem; font-weight: 500; }
code { color: var(--gold-2); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.join-shell { width: min(680px, 100%); margin: 6vh auto; padding: 34px; border: 1px solid var(--line-gold); border-radius: 20px; background: radial-gradient(circle at 100% 0, rgba(231, 184, 91, .13), transparent 32%), rgba(10, 26, 46, .92); box-shadow: var(--shadow); }
.join-shell .brand-mark { margin-bottom: 24px; }
.join-shell h1 { margin-top: 12px; font-size: clamp(2.2rem, 7vw, 4.2rem); }
.join-shell p { font-size: 1rem; line-height: 1.7; }
.atlas-tool-card p { min-height: 50px; }
.muted { color: var(--muted); }
.mt-20 { margin-top: 20px; }
.mb-0 { margin-bottom: 0; }
.coach-result { padding: 14px; border-left: 3px solid var(--gold); border-radius: 8px; background: rgba(231, 184, 91, .07); }
.coach-result strong { color: var(--gold-2); }
.coach-meter { display: flex; align-items: center; gap: 10px; margin-top: 11px; }
.coach-meter > div { flex: 1; height: 9px; overflow: hidden; border-radius: 999px; background: rgba(7, 20, 38, .7); }
.coach-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--danger), var(--warning), var(--success)); }
.upload-zone { padding: 18px; border: 1px dashed var(--line-gold); border-radius: 12px; text-align: center; background: rgba(231, 184, 91, .04); }
.upload-zone input { max-width: 100%; margin-top: 10px; color: var(--muted); }
.code-box { max-height: 310px; overflow: auto; padding: 13px; border: 1px solid var(--line); border-radius: 9px; color: #b9cad9; background: #05101d; font: .74rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 50; max-width: 350px; padding: 12px 15px; border: 1px solid var(--line-gold); border-radius: 10px; color: var(--cream); background: rgba(13, 32, 56, .96); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(10px); transition: .22s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.muted { color: var(--muted); }
.gold { color: var(--gold-2); }
.success { color: var(--success); }
.warning { color: var(--warning); }
.danger { color: var(--danger); }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-28 { margin-top: 28px; }
.mb-0 { margin-bottom: 0; }
.nowrap { white-space: nowrap; }

@media (max-width: 1120px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .target-grid, .route-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 1fr) 280px; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow); }
  .sidebar.open { transform: translateX(0); }
  .content-shell { width: 100%; margin-left: 0; }
  .mobile-menu { display: block; }
  .topbar { padding: 0 18px; gap: 10px; }
  .breadcrumb { flex: 1; }
  .global-search { min-width: 0; width: 35px; padding: 8px; }
  .global-search input { display: none; }
  .status-chip { display: none; }
  .atlas-toplink { padding: 7px 9px; font-size: 0; }
  .atlas-toplink span { font-size: 1rem; }
  .page-wrap { width: min(100% - 36px, 720px); }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .command-path-card { min-height: 220px; }
  .split-layout, .guide-hero, .guide-layout { grid-template-columns: 1fr; }
  .subscription-banner { align-items: flex-start; flex-direction: column; }
  .subscription-price { padding: 15px 0 0; border-top: 1px solid var(--line-gold); border-left: 0; text-align: left; }
  .snapshot-result { grid-template-columns: 1fr; }
  .snapshot-result small { text-align: left; }
  .guide-rail { position: static; max-height: none; }
  .guide-rail a { display: inline-block; margin: 2px 3px 2px 0; background: rgba(22, 57, 93, .35); }
  .nav-scrim:not([hidden]) { display: block; }
}
@media (max-width: 620px) {
  .page-wrap { width: calc(100% - 24px); padding-top: 18px; }
  .topbar { height: 62px; }
  .topbar-actions { gap: 6px; }
  .avatar-btn { width: 31px; height: 31px; }
  .grid-2, .grid-3, .grid-4, .guide-grid, .checklist-grid, .form-grid, .form-grid.three { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-bar, .dashboard-hero { align-items: flex-start; flex-direction: column; }
  .hero { padding: 19px; }
  .hero h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .hero-copy { font-size: .92rem; }
  .command-path-card { min-height: 0; }
  .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-actions .button { min-height: 44px; text-align: center; }
  .guide-hero-main { padding: 18px; }
  .guide-hero-main h1 { font-size: 2.35rem; }
  .step-body { padding-left: 17px; }
  .step-number { width: 27px; height: 27px; font-size: .8rem; }
  .guide-step summary { gap: 9px; }
  .global-search { display: none; }
  .button { padding: 9px 11px; }
  .target-grid, .troop-entry-grid, .route-grid { grid-template-columns: 1fr; }
  .quantity-control { grid-template-columns: 1fr; }
  .quantity-control input { grid-row: 1; }
  .quantity-steps { justify-content: stretch; }
  .quantity-steps button { flex: 1; }
  .milestone-head, .invite-row { align-items: flex-start; flex-direction: column; }
  .permission-list > div { grid-template-columns: 1fr; }
  .route-selector { padding: 15px; }
  .route-card > p { min-height: 0; }
  .workspace-state, .world-status { align-items: flex-start; flex-direction: column; }
  .alliance-tabs { margin-inline: -2px; }
  .alliance-tabs button { padding-inline: 10px; }
  .member-actions { min-width: 160px; }
}

@media (max-width: 390px) {
  .stat-strip, .hero-actions { grid-template-columns: 1fr; }
}
