/* ── CSS custom properties ─────────────────────────────────────────────── */
:root {
  --c-bg:           #0A1626;
  --c-surface:      #0E1621;
  --c-border:       #1C2A3A;
  --c-border-muted: #152030;
  --c-text:         #E6EDF3;
  --c-text-muted:   #9BA7B4;
  --c-text-link:    #FF9E3D;
  --c-primary:      #FF8C2A;
  --c-primary-bg:   rgba(255,140,42,0.12);
  --c-primary-hover:#FFA94D;
  --c-success:      #3DB87A;
  --c-success-bg:   rgba(61,184,122,0.12);
  --c-danger:       #FF5C5C;
  --c-danger-bg:    rgba(255,92,92,0.12);
  --c-warn:         #FFB347;
  --c-warn-bg:      rgba(255,179,71,0.12);
  --c-sidebar:      #080F19;
  --c-code-bg:      #080F19;
  --c-diff-add:     rgba(61,184,122,0.15);
  --c-diff-del:     rgba(255,92,92,0.15);
  --radius:         6px;
  --shadow-sm:      0 1px 0 rgba(0,0,0,0.3);
  --shadow-md:      0 4px 16px rgba(0,0,0,0.6);
  --font-mono:      'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  --header-h:       52px;
  --orange-glow:    0 0 12px rgba(255,140,60,0.45);
}

/* ── reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 14px; line-height: 1.5;
  color: var(--c-text);
  background: #050A12;
}
a { color: var(--c-text-link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font: inherit; }
input, textarea, select { font: inherit; }

/* ── header ─────────────────────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(10, 16, 24, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #1C2A3A;
  display: flex; align-items: center;
}
.header-inner {
  width: 100%; padding: 0 20px;
  display: flex; align-items: center; gap: 14px;
}
.header-brand {
  display: flex; align-items: center; gap: 10px;
  color: #E6EDF3; text-decoration: none; flex-shrink: 0;
}
.header-brand:hover { text-decoration: none; opacity: .85; }
.header-logo { height: calc(var(--header-h) - 10px); width: auto; }
.header-brand-name { font-size: 16px; font-weight: 600; color: #E6EDF3; white-space: nowrap; }
.header-spacer { flex: 1; }
.header-nav { display: flex; align-items: center; gap: 8px; }
.header-user-name { color: #9BA7B4; font-size: 13px; }
.header-menu { position: relative; }
.header-hamburger {
  background: none; border: 1px solid #1C2A3A; border-radius: var(--radius);
  color: #9BA7B4; padding: 4px 10px; font-size: 16px; line-height: 1;
  transition: border-color .15s, background .15s;
}
.header-hamburger:hover { border-color: var(--c-primary); background: rgba(255,140,42,0.08); }
.header-dropdown {
  display: none; position: absolute; right: 0; top: calc(100% + 6px);
  background: #0E1621; border: 1px solid #1C2A3A;
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  min-width: 160px; overflow: hidden; z-index: 200;
}
.header-dropdown.open { display: block; }
.header-dropdown a, .header-dropdown button {
  display: block; width: 100%; padding: 8px 16px; color: var(--c-text);
  background: none; border: none; text-align: left; font-size: 13px;
}
.header-dropdown a:hover, .header-dropdown button:hover {
  background: #152030; text-decoration: none;
}
.header-dropdown .dropdown-divider { height: 1px; background: #1C2A3A; margin: 4px 0; }

/* ── sign-in button (header) ────────────────────────────────────────────── */
.btn-signin {
  background: linear-gradient(180deg, #FFA94D 0%, #FF8C2A 100%);
  color: #1A0F05;
  border: none; border-radius: 10px;
  padding: 7px 16px; font-size: 13px; font-weight: 600;
  transition: opacity .15s, box-shadow .15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-signin:hover { opacity: .9; text-decoration: none; box-shadow: 0 2px 12px rgba(255,140,60,0.5); }

/* ── layout ──────────────────────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.page-content { padding: 20px 0; }

/* ── landing page ────────────────────────────────────────────────────────── */
.landing-hero {
  text-align: center;
  padding: max(16px, calc(33vh - min(210px, 45vw) - 130px)) 24px 32px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 65%, rgba(13,27,42,1) 0%, rgba(5,10,18,1) 70%),
    #050A12;
  min-height: calc(100vh - var(--header-h));
  display: flex; flex-direction: column; align-items: center;
  justify-content: flex-start;
}

.landing-title {
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #FFB357 0%, #FF9C3D 50%, #E86E1F 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 16px rgba(255,140,60,0.5));
}

/* chest scene */
.landing-chest-scene {
  position: relative;
  width: min(420px, 90vw);
  height: min(420px, 90vw);
  margin: 0 auto 24px;
}
.landing-fire-glow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 60% 50% at 50% 65%,
      rgba(255,158,61,0.38) 0%,
      rgba(255,122,28,0.22) 35%,
      rgba(255,140,60,0.08) 60%,
      transparent 80%);
  filter: blur(24px);
  pointer-events: none;
  z-index: 0;
}
.landing-chest-scene canvas {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  display: block;
}

/* main CTA button */
.landing-signin-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, #1B2430 0%, #0E131A 100%);
  color: #E6EDF3;
  border: 1.5px solid #FF8C2A;
  border-radius: 40px;
  padding: 13px 32px;
  font-size: 16px; font-weight: 500;
  text-decoration: none;
  box-shadow: 0 0 16px rgba(255,140,60,0.35), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: box-shadow .2s, transform .15s;
  margin-bottom: 48px;
}
.landing-signin-btn:hover {
  text-decoration: none;
  box-shadow: 0 0 28px rgba(255,140,60,0.55), inset 0 1px 0 rgba(255,255,255,0.06);
  transform: translateY(-1px);
}

/* feature cards */
.landing-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  max-width: 740px; margin: 0 auto;
  padding: 0 20px 48px;
}
.feature-card {
  background: linear-gradient(180deg, #101C29 0%, #0B141F 100%);
  border: 1.5px solid #FF8C2A;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 0 10px rgba(255,140,60,0.18);
}
.feature-card-icon { font-size: 20px; margin-bottom: 8px; }
.feature-card h3 {
  font-size: 15px; font-weight: 700; margin-bottom: 8px;
  background: linear-gradient(90deg, #FFB357, #FF8C2A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.feature-card p { color: #B6C2CF; font-size: 13px; line-height: 1.65; }

/* landing footer */
.landing-footer {
  border-top: 1px solid #1C2A3A;
  text-align: center; padding: 24px 20px;
  color: #9BA7B4; font-size: 12px;
}
.landing-footer a { color: #9BA7B4; }

/* landing section (getting started etc) */
.landing-section { max-width: 800px; margin: 0 auto; padding: 32px 24px; }
.landing-section h2 { font-size: 22px; font-weight: 600; margin-bottom: 10px; color: var(--c-text); }
.landing-section p { color: var(--c-text-muted); margin-bottom: 12px; line-height: 1.7; }
.landing-section a { color: var(--c-primary); }

/* ── dashboard ───────────────────────────────────────────────────────────── */
.dashboard-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.dashboard-title { font-size: 18px; font-weight: 600; }
.repo-list { display: flex; flex-direction: column; gap: 1px; }
.repo-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 10px 16px;
  display: flex; align-items: flex-start; justify-content: space-between;
  transition: border-color .15s;
}
.repo-card:hover { border-color: var(--c-primary); }
.repo-card-main { flex: 1; min-width: 0; }
.repo-card-name { font-size: 14px; font-weight: 600; color: var(--c-text-link); }
.repo-card-desc { color: var(--c-text-muted); font-size: 12px; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.repo-card-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.repo-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--c-text-muted);
  border: 1px solid var(--c-border); border-radius: 20px; padding: 1px 6px;
}
.repo-empty { text-align: center; padding: 40px 20px; color: var(--c-text-muted); }
.repo-empty p { margin-bottom: 12px; }

/* ── buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: var(--radius);
  font-size: 13px; font-weight: 500; line-height: 20px;
  border: 1px solid; cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--c-primary); color: #1A0F05;
  border-color: rgba(255,140,42,0.5);
  font-weight: 600;
}
.btn-primary:hover { background: var(--c-primary-hover); box-shadow: 0 0 8px rgba(255,140,60,0.4); }
.btn-secondary {
  background: #1E2A38; color: #D7DEE5;
  border-color: #FF8A2B;
}
.btn-secondary:hover { background: #253346; box-shadow: 0 0 6px rgba(255,140,60,0.25); }
.btn-danger {
  background: var(--c-danger); color: #fff;
  border-color: rgba(255,92,92,0.4);
}
.btn-danger:hover { background: #e03c3c; }
.btn-sm { padding: 3px 10px; font-size: 12px; }

/* ── modal ───────────────────────────────────────────────────────────────── */
.modal-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.7); z-index: 300;
  align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #0E1621; border-radius: var(--radius);
  border: 1px solid #1C2A3A; box-shadow: var(--shadow-md);
  width: 480px; max-width: 95vw; max-width: 95vw; padding: 16px;
}
.modal-title { font-size: 16px; font-weight: 600; margin-bottom: 14px; color: var(--c-text); }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

/* ── form elements ───────────────────────────────────────────────────────── */
.form-group { margin-bottom: 10px; }
.form-label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 4px; color: #9BA7B4; }
.form-input {
  width: 100%; padding: 7px 10px; font-size: 13px;
  border: 1px solid #1C2A3A; border-radius: var(--radius);
  background: #080F19; color: var(--c-text);
  transition: border-color .15s, box-shadow .15s;
}
.form-input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(255,140,42,0.2); }
.form-hint { font-size: 12px; color: var(--c-text-muted); margin-top: 3px; }
.form-check { display: flex; align-items: flex-start; gap: 8px; margin-top: 6px; }
.form-check input[type=checkbox], .form-check input[type=radio] {
  width: 15px; height: 15px; margin-top: 2px; flex-shrink:0;
  accent-color: var(--c-primary);
}

/* ── repo page ───────────────────────────────────────────────────────────── */
.repo-header { padding: 20px 0 0; border-bottom: 1px solid var(--c-border-muted); }
.repo-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 18px; font-weight: 400; margin-bottom: 16px;
}
.repo-breadcrumb .repo-owner { color: var(--c-text-muted); }
.repo-breadcrumb .sep { color: var(--c-text-muted); }
.repo-breadcrumb .repo-name { font-weight: 700; }
.repo-tabs { display: flex; gap: 0; margin: 0; border-bottom: none; }
.repo-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; font-size: 14px; color: var(--c-text-muted);
  border: 1px solid transparent; border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  cursor: pointer; background: none; text-decoration: none;
  margin-bottom: -1px; transition: color .15s;
}
.repo-tab:hover { color: var(--c-text); text-decoration: none; }
.repo-tab.active {
  color: var(--c-text); background: var(--c-surface);
  border-color: var(--c-border); border-bottom-color: var(--c-surface);
}

/* ── repo toolbar ─────────────────────────────────────────────────────────── */
.repo-toolbar {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 0; flex-wrap: wrap;
}
.branch-select {
  padding: 5px 10px; border: 1px solid var(--c-border);
  border-radius: var(--radius); background: var(--c-surface); font-size: 13px;
  color: var(--c-text); cursor: pointer;
}
.clone-url {
  flex: 1; display: flex; align-items: center;
  background: var(--c-code-bg); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 5px 10px; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; color: var(--c-text-muted);
  min-width: 0;
}
.clone-url code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--c-text); }
.clone-copy {
  flex-shrink: 0; background: none; border: none; color: var(--c-text-muted);
  padding: 2px 4px; border-radius: 4px;
}
.clone-copy:hover { background: var(--c-border-muted); }

/* ── explorer layout ─────────────────────────────────────────────────────── */
.explorer {
  display: grid; grid-template-columns: 260px 1fr;
  gap: 0; border: 1px solid var(--c-border);
  border-radius: var(--radius); background: var(--c-surface);
  overflow: hidden; min-height: 500px;
}
.file-tree {
  border-right: 1px solid var(--c-border);
  overflow-y: auto; background: var(--c-sidebar);
}
.file-tree-header {
  padding: 10px 14px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  color: var(--c-text-muted); border-bottom: 1px solid var(--c-border-muted);
}
.tree-item {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 14px; font-size: 13px; cursor: pointer;
  color: var(--c-text); border: none; background: none;
  width: 100%; text-align: left;
}
.tree-item:hover { background: rgba(255,255,255,0.04); }
.tree-item.selected { background: var(--c-primary-bg); color: var(--c-primary); }
.tree-item.dir { font-weight: 500; }
.tree-item-icon { font-size: 13px; flex-shrink: 0; }
.tree-item-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-indent { display: inline-block; width: 16px; flex-shrink: 0; }
.file-viewer { overflow: auto; display: flex; flex-direction: column; }
.file-viewer-header {
  padding: 10px 16px; border-bottom: 1px solid var(--c-border-muted);
  font-size: 12px; color: var(--c-text-muted); font-family: var(--font-mono);
  background: var(--c-surface); flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.file-viewer-actions { display: flex; gap: 6px; flex-shrink: 0; }
.file-viewer-empty {
  flex: 1; display: flex; align-items: center; justify-content: center;
  color: var(--c-text-muted); font-size: 13px;
}
.image-preview {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 24px; overflow: auto;
}
.image-preview img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.markdown-body { padding: 24px 32px; font-size: 14px; line-height: 1.7; overflow: auto; flex: 1; }
.markdown-body h1, .markdown-body h2, .markdown-body h3 { margin: 24px 0 12px; font-weight: 600; }
.markdown-body h1 { font-size: 22px; border-bottom: 1px solid var(--c-border-muted); padding-bottom: 8px; }
.markdown-body h2 { font-size: 18px; }
.markdown-body h3 { font-size: 15px; }
.markdown-body p { margin: 8px 0; }
.markdown-body code {
  font-family: var(--font-mono); font-size: 12px; background: var(--c-code-bg);
  padding: 2px 6px; border-radius: 3px;
}
.markdown-body pre { background: var(--c-code-bg); padding: 12px 16px; border-radius: var(--radius);
  overflow-x: auto; margin: 12px 0; }
.markdown-body pre code { background: none; padding: 0; }
.markdown-body ul, .markdown-body ol { padding-left: 24px; margin: 8px 0; }
.markdown-body li { margin: 4px 0; }
.markdown-body blockquote { border-left: 3px solid var(--c-border-muted); padding-left: 16px;
  color: var(--c-text-muted); margin: 12px 0; }
.markdown-body table { border-collapse: collapse; margin: 12px 0; }
.markdown-body th, .markdown-body td { border: 1px solid var(--c-border-muted); padding: 6px 12px; }
.markdown-body th { background: var(--c-code-bg); font-weight: 600; }
.markdown-body img { max-width: 100%; }
.markdown-body a { color: var(--c-text-link); }
.code-view { flex: 1; overflow: auto; }
.code-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 12px; line-height: 1.6; }
.code-table td { padding: 0; vertical-align: top; }
.code-ln { width: 1%; white-space: nowrap; padding: 0 12px 0 16px;
  color: var(--c-text-muted); background: var(--c-code-bg); user-select: none;
  border-right: 1px solid var(--c-border-muted); text-align: right; }
.code-line { padding: 0 16px; white-space: pre; }
.code-table tr:hover .code-ln, .code-table tr:hover .code-line { background: var(--c-primary-bg); }

/* ── history ──────────────────────────────────────────────────────────────── */
.history-list {
  border: 1px solid var(--c-border); border-radius: var(--radius);
  background: var(--c-surface); overflow: hidden;
}
.commit-row { border-bottom: 1px solid var(--c-border-muted); cursor: pointer; transition: background .12s; }
.commit-row:last-child { border-bottom: none; }
.commit-row:hover { background: rgba(255,255,255,0.03); }
.commit-row.expanded { background: rgba(255,255,255,0.03); }
.commit-row-main {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 7px 12px;
}
.commit-row-msg { font-size: 13px; font-weight: 500; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.commit-row-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  font-size: 11px; color: var(--c-text-muted); }
.commit-row-time { white-space: nowrap; }
.commit-row-detail { padding: 0 12px 8px; }
.commit-detail-files { display: flex; flex-direction: column; gap: 2px; margin-bottom: 4px; }
.commit-detail-file {
  display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 3px;
  font-size: 12px; cursor: pointer; transition: background .12s;
}
.commit-detail-file:hover { background: rgba(255,255,255,0.05); }
.commit-detail-file.selected { background: var(--c-primary-bg); }
.commit-detail-empty { padding: 8px; font-size: 12px; color: var(--c-text-muted); }
.commit-diff-inline { margin-top: 4px; border-top: 1px solid var(--c-border-muted); padding-top: 8px; }
.change-badge { font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 3px; flex-shrink: 0; }
.change-added   { background: var(--c-success-bg); color: var(--c-success); }
.change-modified{ background: var(--c-warn-bg);    color: var(--c-warn); }
.change-deleted { background: var(--c-danger-bg);  color: var(--c-danger); }
.diff-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 12px; line-height: 1.6; }
.diff-header { background: var(--c-code-bg); color: var(--c-text-muted); padding: 2px 12px; font-style: italic; }
.diff-add    { background: var(--c-diff-add); }
.diff-del    { background: var(--c-diff-del); }
.diff-td     { padding: 0 12px; white-space: pre; }
.diff-gutter { width: 1%; white-space: nowrap; padding: 0 8px;
  user-select: none; color: var(--c-text-muted); text-align: right; }

/* ── insights ─────────────────────────────────────────────────────────────── */
.insights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 14px; text-align: center;
}
.stat-number { font-size: 30px; font-weight: 700; color: var(--c-primary); }
.stat-label  { font-size: 12px; color: var(--c-text-muted); margin-top: 2px; }
.activity-chart {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 14px; margin-bottom: 16px;
}
.activity-chart h3 { font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.chart-bars { display: flex; align-items: flex-end; gap: 2px; height: 64px; }
.chart-bar { flex: 1; background: var(--c-primary); border-radius: 2px 2px 0 0; min-width: 3px; opacity: .7; }
.chart-bar:hover { opacity: 1; }
.contributors { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 14px; }
.contributors h3 { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.contributor { display: flex; align-items: center; gap: 10px; padding: 6px 0;
  border-bottom: 1px solid var(--c-border-muted); }
.contributor:last-child { border-bottom: none; }
.contributor-name { flex: 1; font-size: 13px; }
.contributor-count { font-size: 12px; color: var(--c-text-muted); }

/* ── settings ─────────────────────────────────────────────────────────────── */
.settings-section {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 14px; margin-bottom: 14px;
}
.settings-section h3 { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.collab-row { display: flex; align-items: center; gap: 10px; padding: 6px 0;
  border-bottom: 1px solid var(--c-border-muted); }
.collab-row:last-child { border-bottom: none; }
.collab-email { flex: 1; font-size: 13px; }
.collab-perms { font-size: 12px; color: var(--c-text-muted); }
.danger-zone { border-color: rgba(255,92,92,0.4) !important; }
.danger-zone h3 { color: var(--c-danger); }
.visibility-toggle { display: flex; align-items: center; gap: 12px; }

/* ── notice / flash ──────────────────────────────────────────────────────── */
.notice {
  padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px;
  font-size: 13px; border: 1px solid;
}
.notice-success { background: var(--c-success-bg); border-color: rgba(61,184,122,0.4); color: var(--c-success); }
.notice-error   { background: var(--c-danger-bg);  border-color: rgba(255,92,92,0.4);  color: var(--c-danger); }

/* ── spinner ──────────────────────────────────────────────────────────────── */
.spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid #1C2A3A; border-top-color: var(--c-primary);
  border-radius: 50%; animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 40px; color: var(--c-text-muted); }

/* ── CLI instructions box ─────────────────────────────────────────────────── */
.cli-cmd-wrap {
  display: flex; align-items: center; gap: 8px;
  background: var(--c-code-bg); border: 1px solid var(--c-border-muted);
  border-radius: var(--radius); padding: 6px 12px;
}
.cli-cmd { font-family: var(--font-mono); font-size: 13px; color: var(--c-text); white-space: nowrap; }
.cli-copy {
  flex-shrink: 0; background: none; border: none; cursor: pointer;
  color: var(--c-text-muted); padding: 0 2px; line-height: 1; font-size: 13px;
  border-radius: 3px;
}
.cli-copy:hover { color: var(--c-text); background: rgba(255,255,255,0.08); }

/* ── utility ──────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.text-muted { color: var(--c-text-muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.flex { display: flex; }
.gap-2 { gap: 8px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.font-mono { font-family: var(--font-mono); }
