:root {
  --ink: #071219;
  --panel: #0d1c24;
  --panel-2: #122832;
  --line: rgba(225, 246, 238, .12);
  --text: #f3f8f5;
  --muted: #92a8a0;
  --mint: #6fffc8;
  --lime: #c7ff63;
  --orange: #ff9b5b;
  --danger: #ff6b6b;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--ink); color: var(--text); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
.eyebrow { margin: 0 0 6px; color: var(--mint); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.login-view { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 560px) 1fr; }
.login-card { padding: clamp(32px, 7vw, 90px); display: flex; flex-direction: column; justify-content: center; gap: 56px; background: #09171e; }
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-lockup div { display: grid; }
.brand-lockup strong { font-size: 17px; letter-spacing: -.02em; }
.brand-lockup span:not(.brand-mark) { color: var(--muted); font-size: 11px; }
.brand-mark { width: 42px; height: 42px; border-radius: 14px 14px 14px 4px; display: grid; place-items: center; background: linear-gradient(135deg, var(--mint), var(--lime)); color: var(--ink); font-weight: 950; box-shadow: 0 0 34px rgba(111, 255, 200, .18); }
.brand-lockup-login .brand-mark { width: 50px; height: 50px; }
.login-copy h1 { margin: 0; font-size: clamp(42px, 6vw, 74px); line-height: .96; letter-spacing: -.06em; max-width: 6ch; }
.login-copy > p:last-child { color: var(--muted); line-height: 1.7; max-width: 44ch; }
.stack-form { display: grid; gap: 16px; max-width: 410px; }
label { display: grid; gap: 7px; color: #c6d6d0; font-size: 13px; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 13px; background: #09151b; color: var(--text); padding: 13px 14px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(111, 255, 200, .1); }
.button { border: 0; border-radius: 13px; min-height: 43px; padding: 0 17px; font-weight: 850; cursor: pointer; }
.button-primary { background: linear-gradient(135deg, var(--mint), var(--lime)); color: #071219; box-shadow: 0 12px 30px rgba(111, 255, 200, .13); }
.button-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.button-ghost { background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.form-error { color: #ff9f9f; margin: 0; }
.login-visual { position: relative; overflow: hidden; background: radial-gradient(circle at 70% 35%, rgba(111, 255, 200, .18), transparent 28%), radial-gradient(circle at 35% 70%, rgba(255, 155, 91, .14), transparent 34%), #061016; }
.orbit { position: absolute; border: 1px solid rgba(111, 255, 200, .25); border-radius: 50%; }
.orbit-one { width: 620px; height: 620px; top: 10%; left: 18%; }
.orbit-two { width: 370px; height: 370px; top: 30%; left: 35%; border-style: dashed; }
.visual-metric { position: absolute; left: 12%; bottom: 12%; padding: 22px 26px; border: 1px solid var(--line); border-radius: 22px; background: rgba(9, 23, 30, .72); backdrop-filter: blur(16px); display: grid; gap: 5px; box-shadow: var(--shadow); }
.visual-metric span { color: var(--muted); font-size: 12px; }
.visual-metric strong { font-size: 24px; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 260px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 26px 20px; border-right: 1px solid var(--line); display: flex; flex-direction: column; background: #08161d; z-index: 20; }
.main-nav { display: grid; gap: 7px; margin-top: 44px; }
.main-nav button { border: 0; background: transparent; border-radius: 13px; padding: 12px 13px; text-align: left; display: flex; gap: 12px; align-items: center; color: var(--muted); font-weight: 750; cursor: pointer; }
.main-nav button span { color: var(--mint); }
.main-nav button:hover, .main-nav button.is-active { background: rgba(111, 255, 200, .08); color: var(--text); }
.sidebar-bottom { margin-top: auto; display: grid; gap: 14px; }
.signed-in { display: flex; gap: 11px; align-items: center; }
.signed-in > span { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--panel-2); color: var(--mint); font-weight: 900; }
.signed-in div { display: grid; min-width: 0; }
.signed-in strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.signed-in small { color: var(--muted); }
.workspace { min-width: 0; }
.topbar { min-height: 102px; padding: 24px clamp(22px, 4vw, 58px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 18px; justify-content: space-between; background: rgba(7, 18, 25, .84); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 10; }
.topbar h1 { margin: 0; font-size: 28px; letter-spacing: -.04em; }
.topbar-actions { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 13px; }
.icon-button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); cursor: pointer; }
.menu-button { display: none; }
.page-content { padding: clamp(22px, 4vw, 58px); outline: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); gap: 18px; }
.hero-panel { min-height: 290px; border-radius: 28px; padding: clamp(25px, 4vw, 48px); position: relative; overflow: hidden; background: linear-gradient(140deg, rgba(111, 255, 200, .13), rgba(255, 155, 91, .08)), var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-panel::after { content: ''; position: absolute; width: 310px; height: 310px; border-radius: 50%; right: -90px; top: -95px; background: radial-gradient(circle, rgba(199, 255, 99, .22), transparent 67%); }
.hero-panel h2 { margin: 0; font-size: clamp(34px, 5vw, 68px); max-width: 9ch; line-height: .95; letter-spacing: -.06em; }
.hero-panel p { color: var(--muted); max-width: 52ch; line-height: 1.65; }
.metric-stack { display: grid; gap: 12px; }
.metric-card, .surface { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); }
.metric-card { padding: 22px; display: grid; gap: 9px; }
.metric-card span { color: var(--muted); font-size: 12px; font-weight: 700; }
.metric-card strong { font-size: 27px; letter-spacing: -.04em; }
.metric-card small { color: var(--muted); }
.section { margin-top: 34px; }
.section-header { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 15px; }
.section-header h2 { margin: 0; font-size: 24px; letter-spacing: -.04em; }
.section-header p { color: var(--muted); margin: 5px 0 0; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.project-card { padding: 22px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(255,255,255,.02), transparent), var(--panel); }
.project-card header { display: flex; justify-content: space-between; gap: 16px; }
.project-card h3 { margin: 0; font-size: 20px; }
.project-card p { margin: 6px 0; color: var(--muted); }
.project-card footer { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 9px; font-size: 11px; font-weight: 800; background: rgba(111,255,200,.09); color: var(--mint); }
.status-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-attention { color: var(--orange); background: rgba(255,155,91,.1); }
.status-critical { color: var(--danger); background: rgba(255,107,107,.1); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { text-align: left; padding: 14px 15px; border-bottom: 1px solid var(--line); }
.data-table th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.data-table tr:last-child td { border-bottom: 0; }
.surface { overflow: hidden; }
.activity-list { display: grid; }
.activity-item { display: grid; grid-template-columns: 12px 1fr auto; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line); align-items: center; }
.activity-item:last-child { border-bottom: 0; }
.activity-dot { width: 8px; height: 8px; background: var(--mint); border-radius: 50%; }
.activity-item strong, .activity-item small { display: block; overflow-wrap: anywhere; }
.activity-item strong { margin-bottom: 3px; }
.activity-item small { color: var(--muted); }
.empty-state { padding: 44px 24px; text-align: center; color: var(--muted); }
.modal { border: 0; padding: 0; background: transparent; color: var(--text); max-width: min(680px, calc(100vw - 28px)); width: 100%; }
.modal::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(5px); }
.modal-card { border: 1px solid var(--line); background: #0d1c24; border-radius: 24px; padding: 22px; box-shadow: var(--shadow); }
.modal-card > header, .modal-card > footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.modal-card h2 { margin: 0; }
.modal-card > footer { justify-content: flex-end; margin-top: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 20px; }
.span-two { grid-column: 1 / -1; }
fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 13px; }
.check { display: flex; align-items: center; grid-template-columns: auto 1fr; margin-top: 8px; }
.check input { width: auto; }
.toast-host { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: grid; gap: 8px; }
.toast { opacity: 0; transform: translateY(8px); transition: .2s ease; background: #162a32; border: 1px solid var(--line); border-radius: 13px; padding: 13px 16px; box-shadow: var(--shadow); }
.toast.is-visible { opacity: 1; transform: none; }
.toast-error { border-color: rgba(255,107,107,.45); }
@media (max-width: 920px) {
  .login-view { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; transform: translateX(-105%); width: 270px; transition: transform .22s ease; box-shadow: var(--shadow); }
  .app-shell.menu-open .sidebar { transform: none; }
  .menu-button { display: inline-grid; place-items: center; }
  .hero-grid, .project-grid { grid-template-columns: 1fr; }
  .topbar { min-height: 84px; }
  #today-label { display: none; }
}
@media (max-width: 560px) {
  .login-card { padding: 26px 20px; gap: 38px; }
  .login-copy h1 { font-size: 48px; }
  .page-content { padding: 20px 14px 40px; }
  .topbar { padding: 16px 14px; }
  .topbar h1 { font-size: 23px; }
  .form-grid { grid-template-columns: 1fr; }
  .span-two { grid-column: auto; }
  .section-header { align-items: start; flex-direction: column; }
  .data-table { min-width: 650px; }
  .surface.table-wrap { overflow-x: auto; }
  .activity-item { grid-template-columns: 10px minmax(0, 1fr); gap: 8px 10px; align-items: start; }
  .activity-item > small { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
