:root {
  --bg: #17110e;
  --peach: #e5a56b;
  --cream: #f0d7b1;
  --black: #000;

  --muted: rgba(240, 215, 177, .58);
  --muted-strong: rgba(240, 215, 177, .76);
  --line: rgba(229, 165, 107, .2);
  --panel: rgba(229, 165, 107, .055);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 17px;

  --content-width: 1120px;

  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--cream);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; min-height: 100%; }
body { min-height: 100vh; margin: 0; position: relative; overflow-x: hidden; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.ambient { position: fixed; z-index: -1; width: 440px; height: 440px; border-radius: 50%; filter: blur(115px); opacity: .07; pointer-events: none; }
.ambient-one { top: -250px; left: 8%; background: var(--peach); }
.ambient-two { right: -260px; bottom: -240px; background: #9c572e; }
.topbar { width: min(calc(100% - 64px), var(--content-width)); height: 82px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--cream); font-size: 20px; font-weight: 700; letter-spacing: -1px; }
.brand-accent { color: var(--peach); }
.brand-mark { color: var(--peach); font-size: 27px; }
.topbar-right { display: flex; align-items: center; gap: 27px; color: var(--muted); font-size: 12px; }
.connection-indicator { display: inline-flex; align-items: center; gap: 8px; }
.status-dot { width: 7px; height: 7px; background: var(--peach); border-radius: 50%; box-shadow: 0 0 12px rgba(212,151,92,.5); }
.text-link { transition: color .2s ease; }
.text-link:hover { color: var(--cream); }
.page-shell { width: min(calc(100% - 64px), var(--content-width)); min-height: calc(100vh - 146px); margin: 0 auto; padding: 72px 0 82px; }
.login-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; align-items: center; gap: clamp(55px, 9vw, 122px); max-width: 1040px; margin: 10px auto 0; }
.eyebrow, .card-kicker { display: flex; align-items: center; gap: 10px; color: var(--peach); font-size: 10px; font-weight: 700; letter-spacing: 2px; }
.eyebrow-line { display: inline-block; width: 25px; height: 1px; background: var(--peach); }
h1 { margin: 27px 0 20px; max-width: 620px; font-size: clamp(52px, 6.3vw, 78px); line-height: 1.03; letter-spacing: -5px; font-weight: 600; }
h1 span { color: var(--peach); }
.hero-description { max-width: 490px; color: var(--muted-strong); font-size: 15px; line-height: 1.85; }
.feature-list { display: grid; gap: 12px; margin-top: 31px; }
.feature-item { display: flex; align-items: center; gap: 13px; color: var(--muted-strong); font-size: 13px; }
.feature-icon { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid var(--line); border-radius: 9px; color: var(--peach); font-size: 16px; }
.login-card { padding: 33px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.login-card .card-kicker { font-size: 9px; }
.login-symbol { width: 46px; height: 46px; display: grid; place-items: center; margin: 27px 0 20px; color: var(--bg); background: var(--peach); border-radius: 13px; font-size: 24px; }
.login-card h2 { margin: 0; font-size: 23px; letter-spacing: -.8px; }
.card-description { margin: 10px 0 29px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.login-card label { display: block; margin-bottom: 9px; color: var(--muted-strong); font-size: 11px; font-weight: 600; }
.input-wrap { height: 48px; display: flex; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(0,0,0,.18); transition: border-color .2s ease; }
.input-wrap:focus-within, .search-wrap:focus-within { border-color: var(--peach); }
.input-prefix { color: var(--peach); font-size: 14px; }
.input-wrap input, .search-wrap input { min-width: 0; width: 100%; border: 0; outline: 0; color: var(--cream); background: transparent; font-size: 13px; }
.input-wrap input::placeholder, .search-wrap input::placeholder { color: rgba(232,194,138,.35); }
.button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--radius-sm); cursor: pointer; font-size: 12px; font-weight: 700; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button-primary { color: var(--bg); background: var(--peach); }
.button-primary:hover { background: var(--cream); }
.button-full { width: 100%; margin-top: 13px; }
.button-secondary { color: var(--cream); background: var(--panel); border-color: var(--line); }
.button-secondary:hover { border-color: var(--peach); background: rgba(212,151,92,.1); }
.fine-print { margin: 18px 0 0; color: rgba(232,194,138,.42); font-size: 10px; line-height: 1.7; text-align: center; }
.form-error, .dashboard-error { color: #ef9a83; font-size: 12px; line-height: 1.6; }
.form-error { margin: 12px 0 0; }

.dashboard-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 25px; margin-bottom: 43px; }
.dashboard-heading h1 { margin-bottom: 13px; font-size: clamp(48px, 6vw, 66px); }
.dashboard-heading .hero-description { margin: 0; }
.account-chip { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.avatar { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 11px; background: rgba(212,151,92,.17); color: var(--peach); font-weight: 700; }
.account-details { display: grid; gap: 3px; min-width: 0; }
.account-details strong { max-width: 170px; overflow: hidden; color: var(--cream); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.account-details span { color: var(--muted); font-size: 10px; }
.icon-button { width: 31px; height: 31px; margin-left: 5px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted-strong); background: transparent; cursor: pointer; }
.icon-button:hover { color: var(--cream); border-color: var(--peach); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat-card { min-height: 143px; padding: 20px 21px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--panel); }
.stat-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }
.stat-icon { color: var(--peach); font-size: 17px; }
.stat-card > strong { display: block; margin-top: 15px; color: var(--cream); font-size: 31px; line-height: 1; letter-spacing: -1px; }
.stat-card p { margin: 8px 0 0; color: var(--muted); font-size: 10px; }
.repositories-section { margin-top: 53px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-heading h2 { display: flex; align-items: center; gap: 11px; margin: 9px 0 0; font-size: 25px; letter-spacing: -.9px; }
.count-pill { min-width: 25px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 20px; color: var(--peach); font-size: 10px; text-align: center; letter-spacing: 0; }
.refresh-symbol { font-size: 16px; }
.repository-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin: 23px 0 13px; }
.search-wrap { width: min(100%, 340px); height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(0,0,0,.13); color: var(--peach); transition: border-color .2s ease; }
.search-wrap input { font-size: 11px; }
.last-updated { color: rgba(232,194,138,.4); font-size: 10px; }
.repository-list { display: grid; gap: 9px; }
.repo-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-width: 0; padding: 17px 19px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(212,151,92,.035); transition: border-color .2s ease, background .2s ease; }
.repo-card:hover { border-color: rgba(212,151,92,.42); background: var(--panel); }
.repo-main { display: flex; align-items: center; gap: 13px; min-width: 0; }
.repo-icon { flex: 0 0 37px; width: 37px; height: 37px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--peach); font-size: 16px; }
.repo-copy { min-width: 0; }
.repo-copy h3 { overflow: hidden; margin: 0; color: var(--cream); font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.repo-copy p { overflow: hidden; margin: 5px 0 0; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.repo-link { flex: 0 0 auto; color: var(--peach); font-size: 11px; }
.repo-link:hover { color: var(--cream); }
.loading-state, .loading-screen { display: flex; align-items: center; justify-content: center; gap: 11px; color: var(--muted); font-size: 12px; }
.loading-state { min-height: 110px; border: 1px dashed var(--line); border-radius: var(--radius-md); }
.loading-screen { min-height: 300px; }
.spinner { width: 16px; height: 16px; display: inline-block; border: 2px solid var(--line); border-top-color: var(--peach); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { padding: 43px 20px; border: 1px dashed var(--line); border-radius: var(--radius-md); text-align: center; }
.empty-icon { color: var(--peach); font-size: 24px; }
.empty-state h3 { margin: 12px 0 6px; font-size: 15px; }
.empty-state p { max-width: 360px; margin: 0 auto; color: var(--muted); font-size: 11px; line-height: 1.7; }
.empty-state.compact { padding: 27px 20px; }
.empty-state.compact h3 { margin-top: 0; }
.dashboard-error { margin-top: 20px; padding: 12px 14px; border: 1px solid rgba(239,154,131,.25); border-radius: var(--radius-sm); background: rgba(239,154,131,.06); }
.footer { width: min(calc(100% - 64px), var(--content-width)); min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 0 auto; border-top: 1px solid var(--line); color: rgba(232,194,138,.42); font-size: 10px; }
.footer-star { color: var(--peach); }

@media (max-width: 900px) {
  .login-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; max-width: 560px; }
  .login-card { padding: 32px; }
  .login-copy h1 { font-size: clamp(52px, 8vw, 68px); }
}
@media (max-width: 680px) {
  .topbar, .page-shell, .footer { width: min(calc(100% - 36px), var(--content-width)); }
  .topbar { height: 68px; }
  .topbar-right { gap: 14px; }
  .topbar-right .text-link { display: none; }
  .page-shell { min-height: calc(100vh - 132px); padding: 53px 0 65px; }
  .login-layout { grid-template-columns: 1fr; gap: 35px; margin-top: 0; }
  h1 { margin-top: 18px; font-size: clamp(57px, 15vw, 76px); letter-spacing: -4px; }
  .hero-description { font-size: 13px; }
  .feature-list { grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
  .login-card { padding: 25px; }
  .dashboard-heading { align-items: flex-start; flex-direction: column; margin-bottom: 29px; }
  .dashboard-heading h1 { font-size: 55px; }
  .account-chip { width: 100%; }
  .account-details strong { max-width: none; }
  .stats-grid { grid-template-columns: 1fr; gap: 9px; }
  .stat-card { min-height: 115px; padding: 16px 18px; }
  .stat-card > strong { margin-top: 10px; font-size: 27px; }
  .repositories-section { margin-top: 40px; }
  .section-heading h2 { font-size: 22px; }
  .repository-toolbar { align-items: flex-start; flex-direction: column; }
  .search-wrap { width: 100%; }
  .last-updated { align-self: flex-end; }
  .repo-card { padding: 14px; }
  .repo-link { font-size: 10px; }
  .footer { min-height: 64px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
