:root {
  --bg: #071110;
  --bg-elevated: #0c1917;
  --panel: #10221e;
  --panel-strong: #142b25;
  --line: rgba(194, 255, 222, 0.12);
  --line-strong: rgba(194, 255, 222, 0.2);
  --text: #e8f3ed;
  --muted: #86a399;
  --faint: #527268;
  --mint: #7dffbd;
  --cyan: #7be7ff;
  --amber: #ffd18a;
  --violet: #c9a9ff;
  --red: #ff8f88;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --sidebar-width: 254px;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}

:root.light-theme {
  --bg: #edf5f0;
  --bg-elevated: #f6fbf8;
  --panel: #ffffff;
  --panel-strong: #eff9f2;
  --line: rgba(17, 66, 46, 0.12);
  --line-strong: rgba(17, 66, 46, 0.22);
  --text: #12251c;
  --muted: #547066;
  --faint: #829b90;
  --mint: #008d58;
  --cyan: #087d9b;
  --amber: #ae6900;
  --violet: #7650b4;
  --red: #c34c44;
  --shadow: 0 24px 80px rgba(17, 66, 46, 0.12);
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; }
body { min-height: 100vh; background: var(--bg); overflow: hidden; }
button, a { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

.shell { display: flex; min-height: 100vh; height: 100vh; overflow: hidden; background: radial-gradient(circle at 80% -10%, rgba(125, 255, 189, 0.08), transparent 32%), var(--bg); }
.sidebar { width: var(--sidebar-width); flex: 0 0 var(--sidebar-width); border-right: 1px solid var(--line); background: rgba(12, 25, 23, 0.86); backdrop-filter: blur(18px); display: flex; flex-direction: column; transition: width .3s ease, transform .3s ease; position: relative; z-index: 10; }
.light-theme .sidebar { background: rgba(246, 251, 248, 0.9); }
.sidebar.collapsed { width: 72px; flex-basis: 72px; }
.sidebar.collapsed .brand-copy, .sidebar.collapsed .nav-label, .sidebar.collapsed .nav-item > span:not(.nav-icon), .sidebar.collapsed .nav-item kbd, .sidebar.collapsed .sidebar-footer { display: none; }
.sidebar.collapsed .sidebar-header { justify-content: center; padding-inline: 10px; }
.sidebar.collapsed .brand { justify-content: center; }
.sidebar.collapsed .nav-item { justify-content: center; padding-inline: 0; }
.sidebar.collapsed .sidebar-toggle { position: absolute; right: -14px; top: 24px; }
.sidebar-header { min-height: 88px; padding: 22px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark { display: grid; grid-template-columns: repeat(3, 5px); align-items: end; gap: 3px; width: 22px; height: 22px; padding: 3px; border: 1px solid var(--mint); transform: rotate(45deg); flex-shrink: 0; }
.brand-mark span { display: block; background: var(--mint); height: 6px; }
.brand-mark span:nth-child(2) { height: 11px; background: var(--cyan); }.brand-mark span:nth-child(3) { height: 15px; background: var(--violet); }
.brand-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }.brand-copy strong { font-size: 13px; letter-spacing: .16em; }.brand-copy small, .eyebrow, .section-kicker, .stat-label, .nav-label, .footer-meta, .hero-kicker, .system-status, .workspace-meta { font: 500 10px "DM Mono", monospace; letter-spacing: .1em; color: var(--muted); }
.brand-copy small { font-size: 8px; color: var(--faint); }
.icon-button { width: 35px; height: 35px; padding: 0; border: 1px solid var(--line-strong); border-radius: 7px; display: inline-grid; place-items: center; background: rgba(125, 255, 189, .05); cursor: pointer; transition: background .2s, border-color .2s, transform .2s; font-size: 18px; line-height: 1; }
.icon-button:hover { background: rgba(125, 255, 189, .14); border-color: rgba(125, 255, 189, .5); transform: translateY(-1px); }.icon-button:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.sidebar-toggle { border: 0; background: transparent; color: var(--muted); font-size: 26px; }.sidebar-toggle:hover { color: var(--mint); background: transparent; border: 0; }
.nav-scroll { flex: 1; overflow-y: auto; padding: 18px 10px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }.nav-group { margin-bottom: 25px; }.nav-label { padding: 0 11px; margin: 0 0 9px; font-size: 9px; color: var(--faint); text-transform: uppercase; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 8px 11px; border: 1px solid transparent; border-radius: 7px; background: transparent; text-align: left; cursor: pointer; font-size: 12px; color: var(--muted); text-decoration: none; transition: .2s; }
.nav-item:hover { color: var(--text); background: rgba(125, 255, 189, .08); border-color: var(--line); }.nav-item.is-active { color: var(--mint); background: rgba(125, 255, 189, .11); border-color: rgba(125, 255, 189, .23); }.nav-item-muted { color: var(--faint); }.nav-icon { width: 18px; text-align: center; color: var(--mint); font: 500 17px "DM Mono", monospace; flex-shrink: 0; }.nav-item kbd { margin-left: auto; padding: 2px 5px; border: 1px solid var(--line); border-radius: 3px; font: 9px "DM Mono", monospace; color: var(--faint); }
.nav-app-icon { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; color: var(--bg); font: 700 10px "DM Mono", monospace; flex-shrink: 0; }.nav-app-icon.mint { background: var(--mint); }.nav-app-icon.cyan { background: var(--cyan); }.nav-app-icon.amber { background: var(--amber); }.nav-app-icon.violet { background: var(--violet); }.nav-app-icon.blue { background: #82aaff; }
.sidebar-footer { border-top: 1px solid var(--line); padding: 16px 18px 18px; }.footer-status { display: flex; align-items: center; gap: 7px; font-size: 10px; color: var(--muted); margin-bottom: 8px; }.footer-meta { font-size: 8px; color: var(--faint); }
.pulse-dot, .live-dot { width: 7px; height: 7px; display: inline-block; border-radius: 100%; background: var(--mint); box-shadow: 0 0 0 4px rgba(125, 255, 189, .1); animation: pulse 2.4s infinite; }.live-dot { width: 6px; height: 6px; margin-right: 6px; }
.sidebar-backdrop { display: none; }
.main { min-width: 0; flex: 1; display: flex; flex-direction: column; }.topbar { height: 88px; flex: 0 0 88px; padding: 0 30px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); background: rgba(7, 17, 16, .45); backdrop-filter: blur(18px); }.light-theme .topbar { background: rgba(237, 245, 240, .72); }
.topbar-left, .topbar-actions { display: flex; align-items: center; }.topbar-left { gap: 16px; }.breadcrumb { display: flex; flex-direction: column; gap: 5px; }.eyebrow { font-size: 9px; color: var(--faint); }.breadcrumb h1 { margin: 0; font-size: 16px; letter-spacing: -.02em; font-weight: 600; }.topbar-actions { gap: 9px; }.system-status { display: flex; align-items: center; gap: 8px; height: 35px; padding: 0 12px; border: 1px solid var(--line); border-radius: 7px; font-size: 9px; color: var(--muted); }
.content { min-height: 0; flex: 1; overflow: auto; }.overview { max-width: 1440px; margin: 0 auto; padding: 30px; }.hero { min-height: 320px; position: relative; overflow: hidden; display: flex; align-items: center; padding: 43px 47px; border: 1px solid var(--line-strong); border-radius: 11px; background: linear-gradient(115deg, rgba(20, 43, 37, .96), rgba(9, 26, 23, .88)); box-shadow: var(--shadow); }.light-theme .hero { background: linear-gradient(115deg, #dff3e7, #f2fbf6); }.hero-grid { position: absolute; inset: 0; opacity: .25; background-image: linear-gradient(rgba(125, 255, 189, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(125, 255, 189, .12) 1px, transparent 1px); background-size: 35px 35px; mask-image: linear-gradient(90deg, black, transparent 76%); }.hero-copy { max-width: 610px; position: relative; z-index: 1; }.hero-kicker { color: var(--mint); font-size: 9px; margin: 0 0 18px; }.hero h2 { margin: 0; font-size: clamp(38px, 5vw, 65px); line-height: .96; letter-spacing: -.065em; font-weight: 600; }.hero h2 em { color: var(--mint); font-style: normal; }.hero-description { max-width: 530px; margin: 22px 0 25px; color: var(--muted); font-size: 13px; line-height: 1.7; }.hero-actions { display: flex; align-items: center; gap: 18px; }.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 42px; padding: 0 15px; border: 1px solid var(--mint); border-radius: 6px; background: var(--mint); color: #071110; cursor: pointer; font-size: 11px; font-weight: 600; transition: .2s; }.primary-button:hover { background: #b7ffd5; transform: translateY(-2px); box-shadow: 0 9px 25px rgba(125, 255, 189, .16); }.text-button { padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; }.text-button:hover { color: var(--mint); }.hero-orbit { position: absolute; right: 10%; top: 50%; width: 240px; height: 240px; transform: translateY(-50%); opacity: .9; }.orbit-ring { position: absolute; border: 1px solid rgba(125, 255, 189, .26); border-radius: 50%; inset: 10px; transform: rotate(-35deg) skewX(18deg); }.ring-two { inset: 32px; transform: rotate(45deg) skewX(-18deg); border-color: rgba(123, 231, 255, .27); }.orbit-core { position: absolute; inset: 78px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(125, 255, 189, .5); border-radius: 50%; background: rgba(7, 17, 16, .65); box-shadow: 0 0 50px rgba(125, 255, 189, .16); font: 600 20px "DM Mono", monospace; color: var(--mint); }.orbit-core small { font-size: 8px; color: var(--muted); letter-spacing: .2em; }.hero-index { position: absolute; bottom: 19px; right: 23px; font: 10px "DM Mono", monospace; color: var(--faint); }.hero-index span { color: var(--mint); padding: 0 4px; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); margin: 18px 0 38px; border: 1px solid var(--line); border-radius: 9px; background: rgba(16, 34, 30, .5); }.light-theme .stats-row { background: rgba(255,255,255,.65); }.stat { min-height: 91px; padding: 16px 21px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; gap: 2px; }.stat:last-child { border-right: 0; }.stat-label { text-transform: uppercase; font-size: 8px; color: var(--faint); }.stat strong { font: 500 24px "DM Mono", monospace; color: var(--text); letter-spacing: -.06em; }.stat-note { font-size: 9px; color: var(--muted); }.success-text { color: var(--mint) !important; font-size: 20px !important; }
.registry-section { margin-bottom: 24px; }.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 16px; }.section-kicker { color: var(--mint); font-size: 9px; margin: 0 0 8px; }.section-heading h2 { margin: 0; font-size: 22px; letter-spacing: -.04em; }.filter-button { border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 8px 11px; border-radius: 5px; font-size: 10px; cursor: pointer; }.filter-button:hover { border-color: var(--line-strong); color: var(--text); }.filter-button span { color: var(--mint); padding-left: 9px; }
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }.app-card { position: relative; min-height: 180px; padding: 20px; border: 1px solid var(--line); border-radius: 9px; background: linear-gradient(130deg, rgba(16, 34, 30, .88), rgba(10, 24, 21, .64)); overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }.light-theme .app-card { background: rgba(255,255,255,.8); }.app-card:hover { transform: translateY(-3px); border-color: var(--card-accent); box-shadow: 0 16px 35px rgba(0,0,0,.13); }.app-card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -70px; bottom: -90px; border-radius: 50%; background: var(--card-accent); opacity: .08; filter: blur(2px); }.app-card-head, .app-card-title-row, .app-card-actions { display: flex; align-items: center; }.app-card-head { justify-content: space-between; margin-bottom: 19px; }.app-badge { width: 29px; height: 29px; border-radius: 7px; display: grid; place-items: center; color: var(--bg); background: var(--card-accent); font: 700 11px "DM Mono", monospace; }.app-category { font: 9px "DM Mono", monospace; color: var(--muted); letter-spacing: .1em; }.app-card-title-row { gap: 10px; }.app-card h3 { margin: 0; font-size: 18px; letter-spacing: -.04em; }.app-card p { max-width: 430px; min-height: 38px; margin: 9px 0 16px; color: var(--muted); font-size: 11px; line-height: 1.55; }.app-tags { display: flex; flex-wrap: wrap; gap: 5px; }.app-tag { padding: 4px 7px; border: 1px solid var(--line); border-radius: 4px; color: var(--faint); font: 8px "DM Mono", monospace; letter-spacing: .06em; }.app-card-actions { position: absolute; right: 19px; bottom: 18px; gap: 10px; }.launch-button { display: inline-flex; align-items: center; border: 0; padding: 0; background: transparent; color: var(--card-accent); cursor: pointer; font: 500 10px "DM Mono", monospace; text-decoration: none; }.launch-button:hover { text-decoration: underline; }.more-button { width: 25px; height: 25px; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 5px; cursor: pointer; }.more-button:hover { border-color: var(--card-accent); color: var(--card-accent); }
.boundary-banner { display: flex; align-items: center; gap: 13px; padding: 14px 16px; border: 1px solid rgba(255, 209, 138, .18); border-radius: 7px; background: rgba(255, 209, 138, .05); }.boundary-icon { width: 22px; height: 22px; border: 1px solid var(--amber); border-radius: 50%; display: grid; place-items: center; color: var(--amber); font: 11px "DM Mono", monospace; flex-shrink: 0; }.boundary-banner strong { display: block; color: var(--amber); font-size: 11px; margin-bottom: 3px; }.boundary-banner p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }.boundary-banner .text-button { margin-left: auto; white-space: nowrap; }
.workspace-view { height: 100%; display: flex; flex-direction: column; }.workspace-head { min-height: 49px; padding: 7px 20px 0; display: flex; align-items: end; justify-content: space-between; border-bottom: 1px solid var(--line); }.tab-strip { display: flex; align-items: end; gap: 4px; min-width: 0; overflow-x: auto; }.tab { display: flex; align-items: center; gap: 8px; max-width: 230px; min-width: 145px; height: 41px; padding: 0 9px 0 12px; border: 1px solid var(--line); border-bottom: 0; border-radius: 7px 7px 0 0; color: var(--muted); background: rgba(16, 34, 30, .62); cursor: pointer; font-size: 10px; }.light-theme .tab { background: rgba(255,255,255,.7); }.tab.is-active { color: var(--mint); background: var(--panel); border-color: rgba(125,255,189,.38); }.tab-icon { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 4px; color: var(--bg); background: var(--tab-accent); font: 700 8px "DM Mono", monospace; flex-shrink: 0; }.tab-label { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex: 1; }.tab-close { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: inherit; cursor: pointer; }.tab-close:hover { background: rgba(255, 143, 136, .15); color: var(--red); }.workspace-meta { display: flex; align-items: center; gap: 7px; padding: 0 4px 13px 15px; white-space: nowrap; font-size: 9px; }.frame-wrap { min-height: 0; flex: 1; position: relative; background: var(--bg-elevated); }.frame-wrap iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }.frame-loading, .frame-error { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; background: var(--bg-elevated); color: var(--muted); font-size: 12px; }.frame-loading.is-hidden { display: none; }.loader { width: 22px; height: 22px; border: 2px solid var(--line-strong); border-top-color: var(--mint); border-radius: 50%; animation: spin .8s linear infinite; }.frame-error { color: var(--red); text-align: center; }.frame-error h2 { color: var(--text); font-size: 20px; margin: 0; }.frame-error p { max-width: 340px; color: var(--muted); font-size: 12px; line-height: 1.6; }.error-mark { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid var(--red); border-radius: 50%; font: 500 18px "DM Mono", monospace; }.secondary-button { color: var(--text); border-color: var(--line-strong); background: var(--panel-strong); }.secondary-button:hover { border-color: var(--mint); }
.notes-dialog { width: min(620px, calc(100vw - 30px)); border: 1px solid var(--line-strong); border-radius: 10px; padding: 25px; color: var(--text); background: var(--panel); box-shadow: var(--shadow); }.notes-dialog::backdrop { background: rgba(0,0,0,.65); backdrop-filter: blur(5px); }.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; }.dialog-head h2 { margin: 0; font-size: 22px; }.notes-list { margin: 27px 0 22px; border-top: 1px solid var(--line); }.note-row { display: grid; grid-template-columns: 35px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }.note-number { color: var(--mint); font: 11px "DM Mono", monospace; }.note-row strong { font-size: 12px; }.note-row p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }.dialog-link { color: var(--mint); font: 10px "DM Mono", monospace; text-decoration: none; }.dialog-link:hover { text-decoration: underline; }
.entry-dialog { width: min(560px, calc(100vw - 30px)); border: 1px solid var(--line-strong); border-radius: 10px; padding: 25px; color: var(--text); background: var(--panel); box-shadow: var(--shadow); }.entry-dialog::backdrop { background: rgba(0,0,0,.65); backdrop-filter: blur(5px); }.entry-options { display: grid; gap: 8px; margin-top: 22px; }.entry-option { width: 100%; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: transparent; text-align: left; cursor: pointer; text-decoration: none; }.entry-option:hover { border-color: var(--mint); background: rgba(125,255,189,.06); }.entry-option-index { color: var(--mint); font: 10px "DM Mono", monospace; }.entry-option strong, .entry-option small { display: block; }.entry-option strong { font-size: 11px; }.entry-option small { margin-top: 3px; color: var(--muted); font: 9px "DM Mono", monospace; }.entry-option > span:last-child { color: var(--mint); }
.mobile-menu { display: none; }
[hidden] { display: none !important; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 960px) { .hero-orbit { right: 3%; transform: translateY(-50%) scale(.75); }.hero-copy { max-width: 68%; }.app-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { body { overflow: auto; }.shell { min-height: 100dvh; height: auto; overflow: visible; }.sidebar { position: fixed; inset: 0 auto 0 0; transform: translateX(-100%); width: 280px; flex-basis: 280px; box-shadow: 20px 0 60px rgba(0,0,0,.35); }.sidebar.is-open { transform: translateX(0); }.sidebar.collapsed { width: 280px; flex-basis: 280px; }.sidebar.collapsed .brand-copy, .sidebar.collapsed .nav-label, .sidebar.collapsed .nav-item > span:not(.nav-icon), .sidebar.collapsed .nav-item kbd, .sidebar.collapsed .sidebar-footer { display: initial; }.sidebar.collapsed .sidebar-header { justify-content: space-between; padding-inline: 18px; }.sidebar.collapsed .brand { justify-content: flex-start; }.sidebar.collapsed .nav-item { justify-content: flex-start; padding-inline: 11px; }.sidebar.collapsed .sidebar-toggle { position: static; }.sidebar-backdrop { position: fixed; inset: 0; z-index: 9; border: 0; background: rgba(0,0,0,.5); }.sidebar.is-open + .sidebar-backdrop { display: block; }.main { min-height: 100dvh; width: 100%; }.topbar { height: 72px; flex-basis: 72px; padding: 0 15px; }.mobile-menu { display: inline-grid; }.topbar-actions { gap: 5px; }.system-status { display: none; }.overview { padding: 15px; }.hero { min-height: 470px; padding: 29px 23px; align-items: flex-start; }.hero-copy { max-width: 100%; }.hero h2 { font-size: 47px; }.hero-description { font-size: 12px; }.hero-orbit { top: auto; right: 3%; bottom: -38px; transform: scale(.63); transform-origin: bottom right; }.hero-index { right: 18px; bottom: 17px; }.stats-row { grid-template-columns: repeat(2, 1fr); margin-bottom: 29px; }.stat:nth-child(2) { border-right: 0; }.stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }.section-heading { align-items: flex-start; gap: 10px; }.section-heading h2 { font-size: 20px; }.boundary-banner { align-items: flex-start; flex-wrap: wrap; }.boundary-banner .text-button { margin-left: 35px; }.workspace-head { padding-inline: 8px; }.workspace-meta { display: none; }.tab { min-width: 135px; }.frame-wrap { min-height: calc(100dvh - 121px); } }
@media (max-width: 420px) { .topbar { padding-inline: 10px; }.breadcrumb h1 { font-size: 14px; }.topbar-actions .icon-button { width: 32px; height: 32px; }.hero h2 { font-size: 39px; }.hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }.app-card { min-height: 202px; } }
@media (max-width: 700px) {
  .sidebar[aria-hidden="true"] { visibility: hidden; pointer-events: none; }
  .workspace-view { min-height: calc(100dvh - 121px); }
  .tab-close, .more-button { min-width: 32px; min-height: 32px; }
  .launch-button, .filter-button, .text-button { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}