:root {
  --ink: #eef4f1;
  --muted: #8b9b98;
  --muted-2: #657572;
  --bg: #0f1719;
  --panel: #172225;
  --panel-2: #1c2a2e;
  --line: rgba(222, 240, 235, 0.11);
  --line-strong: rgba(222, 240, 235, 0.19);
  --mint: #90e5c2;
  --mint-2: #54d8a6;
  --orange: #f2a65a;
  --red: #f27e73;
  --blue: #73b7f2;
  --sidebar-bg: #111c1e;
  --topbar-bg: rgba(15,23,25,.87);
  --input-bg: #111b1d;
  --hero-surface: #172529;
  --cover-bg: #1a292b;
  --toast-bg: #1e2d2f;
  --button-ink: #10211b;
  --button-hover: #b0f1d6;
  --badge-ink: #eef4f1;
  --placeholder: #526361;
  --sidebar: 246px;
  --radius: 7px;
}

:root[data-theme="light"] {
  --ink: #172522;
  --muted: #536661;
  --muted-2: #768681;
  --bg: #f3f7f5;
  --panel: #ffffff;
  --panel-2: #edf3f0;
  --line: rgba(29, 63, 54, .13);
  --line-strong: rgba(29, 63, 54, .24);
  --mint: #168363;
  --mint-2: #0ca873;
  --orange: #b96b26;
  --red: #c6554c;
  --blue: #2c78ad;
  --sidebar-bg: #ffffff;
  --topbar-bg: rgba(255,255,255,.9);
  --input-bg: #f8fbfa;
  --hero-surface: #e2ece8;
  --cover-bg: #e2ebe8;
  --toast-bg: #ffffff;
  --button-ink: #ffffff;
  --button-hover: #0f6f54;
  --badge-ink: #ffffff;
  --placeholder: #9aa9a4;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font-family: Manrope, "Microsoft YaHei", sans-serif; }
body { overflow-x: hidden; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: var(--sidebar); background: var(--sidebar-bg); border-right: 1px solid var(--line); display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; z-index: 20; }
.brand-block { display: flex; align-items: center; gap: 12px; padding: 28px 25px 18px; }
.brand-logo { width: 42px; height: 30px; display: grid; place-items: center; flex: 0 0 42px; }
.brand-logo img { display: block; width: 42px; height: auto; max-height: 30px; object-fit: contain; }
.brand-mark { width: 34px; height: 34px; position: relative; display: grid; place-items: center; border: 1px solid var(--mint); color: var(--mint); font-weight: 800; font-size: 16px; letter-spacing: 0; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; background: var(--mint); }
.brand-mark::before { width: 5px; height: 1px; top: -4px; right: 5px; }
.brand-mark::after { height: 5px; width: 1px; bottom: -4px; left: 5px; }
.brand-mark i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); top: 5px; right: 5px; }
.brand-name { font-size: 17px; font-weight: 800; letter-spacing: .12em; }
.brand-caption { color: var(--muted-2); font: 500 9px/1.3 "IBM Plex Mono", monospace; letter-spacing: .15em; margin-top: 3px; }
.sidebar-host { display: flex; align-items: center; gap: 7px; color: var(--muted-2); font: 400 10px "IBM Plex Mono", monospace; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 13px 25px; }
.host-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--mint-2); box-shadow: 0 0 0 3px rgba(84,216,166,.1); }
.primary-nav { padding: 19px 12px; display: flex; flex-direction: column; gap: 4px; }
.nav-item { background: transparent; border: 0; display: flex; gap: 12px; align-items: center; padding: 12px 13px; border-radius: 5px; color: var(--muted); cursor: pointer; text-align: left; font-size: 13px; transition: background .18s, color .18s; }
.nav-item svg { width: 16px; height: 16px; stroke-width: 1.7; }
.nav-item:hover { background: rgba(144,229,194,.05); color: var(--ink); }
.nav-item.active { background: rgba(144,229,194,.11); color: var(--mint); }
.nav-item b { margin-left: auto; color: var(--muted-2); font: 500 10px "IBM Plex Mono", monospace; }
.nav-item.active b { color: var(--mint); }
.live-count { color: var(--orange) !important; }
.sidebar-foot { margin-top: auto; padding: 0 20px 22px; }
.signal-line { display: flex; gap: 3px; align-items: center; height: 18px; margin-bottom: 19px; white-space: nowrap; }
.signal-line span { flex: 0 0 4px; height: 4px; background: var(--mint-2); border-radius: 2px; opacity: .85; }
.signal-line span:nth-child(2) { opacity: .6; height: 8px; }
.signal-line span:nth-child(3) { opacity: .45; height: 12px; }
.signal-line span:nth-child(4) { opacity: .3; height: 8px; }
.signal-line span:nth-child(5) { opacity: .2; }
.signal-line small { color: var(--muted-2); font-size: 10px; margin-left: 6px; white-space: nowrap; }
.signal-line strong { color: var(--mint); font-size: 10px; font-weight: 500; margin-left: auto; white-space: nowrap; }
.admin-entry { width: 100%; display: flex; gap: 9px; align-items: center; border: 1px solid var(--line-strong); background: transparent; border-radius: 5px; padding: 11px 12px; cursor: pointer; color: var(--muted); font-size: 11px; text-decoration: none; }
.admin-entry:hover { color: var(--mint); border-color: rgba(144,229,194,.4); }
.admin-entry svg { width: 14px; height: 14px; }
.admin-entry svg:last-child { margin-left: auto; width: 12px; }

.main-content { flex: 1; min-width: 0; margin-left: var(--sidebar); }
.topbar { height: 70px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 38px; background: var(--topbar-bg); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); }
.breadcrumb { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted-2); }
.breadcrumb svg { width: 12px; height: 12px; }
.breadcrumb strong { color: var(--ink); font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.icon-button { width: 29px; height: 29px; display: grid; place-items: center; background: transparent; border: 0; cursor: pointer; color: var(--muted); position: relative; }
.icon-button svg { width: 16px; height: 16px; }
.notification-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--orange); position: absolute; top: 3px; right: 4px; }
.topbar-divider { width: 1px; height: 20px; background: var(--line); }
.operator-chip { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 11px; }
.operator-chip svg { width: 12px; height: 12px; }
.operator-avatar { width: 26px; height: 26px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: 50%; color: var(--mint); font: 600 11px "IBM Plex Mono", monospace; }
.mobile-menu { display: none; background: transparent; border: 0; color: var(--muted); }
.view-root { max-width: 1440px; margin: 0 auto; padding: 0 38px 48px; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 30px; align-items: stretch; padding: 42px 0 34px; border-bottom: 1px solid var(--line); }
.hero-copy { padding: 9px 0 0 3px; }
.eyebrow { color: var(--mint); font: 500 10px "IBM Plex Mono", monospace; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 17px; }
.hero h1 { font-size: 50px; line-height: 1.05; letter-spacing: 0; max-width: 640px; margin: 0 0 17px; font-weight: 700; }
.hero h1 em { color: var(--mint); font-style: normal; }
.hero-lede { color: var(--muted); line-height: 1.75; max-width: 500px; font-size: 14px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 10px; align-items: center; }
.button-primary, .button-ghost, .button-soft { display: inline-flex; gap: 8px; align-items: center; justify-content: center; border-radius: 4px; border: 1px solid transparent; cursor: pointer; font-size: 12px; padding: 10px 15px; transition: all .18s; text-decoration: none; }
.button-primary { background: var(--mint); color: var(--button-ink); font-weight: 700; }
.button-primary:hover { background: var(--button-hover); transform: translateY(-1px); }
.button-primary svg, .button-ghost svg, .button-soft svg { width: 14px; height: 14px; }
.button-ghost { background: transparent; color: var(--muted); border-color: var(--line-strong); }
.button-ghost:hover { border-color: rgba(144,229,194,.45); color: var(--ink); }
.button-soft { background: rgba(144,229,194,.1); color: var(--mint); }
.button-soft:hover { background: rgba(144,229,194,.16); }
.hero-stats { display: flex; gap: 31px; margin-top: 35px; }
.hero-stat { display: flex; flex-direction: column; gap: 5px; }
.hero-stat strong { font-size: 22px; font-weight: 700; }
.hero-stat span { color: var(--muted-2); font: 10px "IBM Plex Mono", monospace; letter-spacing: .08em; }
.hero-visual { min-height: 260px; border: 1px solid rgba(144,229,194,.24); border-radius: 6px; overflow: hidden; position: relative; background: var(--hero-surface) url('https://images.unsplash.com/photo-1558655146-9f40138edfeb?auto=format&fit=crop&w=560&q=55') center/cover; }
.hero-visual::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10,28,31,.86), rgba(10,28,31,.2) 55%, rgba(9,15,18,.67)); }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(164,236,210,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(164,236,210,.09) 1px, transparent 1px); background-size: 25px 25px; mask-image: linear-gradient(135deg, black 5%, transparent 85%); }
.hero-visual-label { position: absolute; left: 20px; bottom: 18px; font: 10px "IBM Plex Mono", monospace; color: var(--mint); letter-spacing: .11em; }
.hero-visual-label::before { content: ""; width: 18px; height: 1px; background: var(--mint); display: inline-block; vertical-align: middle; margin-right: 7px; }
.hero-pulse { position: absolute; width: 106px; height: 106px; right: 32px; top: 33px; border: 1px solid rgba(144,229,194,.57); border-radius: 50%; box-shadow: 0 0 0 15px rgba(144,229,194,.04), 0 0 0 30px rgba(144,229,194,.025); }
.hero-pulse::after { content: ""; position: absolute; width: 6px; height: 6px; top: 11px; right: 18px; background: var(--orange); border-radius: 50%; box-shadow: 0 0 0 5px rgba(242,166,90,.16); }
.hero-scan { position: absolute; left: 18px; top: 31px; width: 138px; height: 50px; border-left: 1px solid var(--mint); border-top: 1px solid var(--mint); opacity: .7; }
.hero-scan::after { content: ""; position: absolute; width: 72px; height: 1px; background: var(--mint); bottom: 0; left: 0; transform: rotate(-22deg); transform-origin: left; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 31px 0 18px; }
.section-head h2 { font-size: 18px; margin: 0 0 5px; font-weight: 700; }
.section-head p { margin: 0; color: var(--muted-2); font-size: 11px; }
.section-head-actions { display: flex; gap: 8px; align-items: center; }
.search-field { height: 34px; min-width: 215px; display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 0 10px; }
.search-field svg { width: 14px; height: 14px; color: var(--muted-2); }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; }
.search-field input::placeholder { color: var(--muted-2); }
.filter-select { height: 34px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 4px; font-size: 11px; padding: 0 9px; }
.category-tabs { display: flex; gap: 6px; margin-bottom: 19px; overflow-x: auto; }
.category-tab { border: 1px solid var(--line); color: var(--muted); background: transparent; padding: 7px 12px; font-size: 11px; border-radius: 4px; cursor: pointer; white-space: nowrap; }
.category-tab.active, .category-tab:hover { color: var(--mint); border-color: rgba(144,229,194,.4); background: rgba(144,229,194,.08); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.project-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.project-card:hover { border-color: rgba(144,229,194,.4); transform: translateY(-3px); box-shadow: 0 13px 35px rgba(0,0,0,.22); }
.project-cover { height: 166px; position: relative; overflow: hidden; background: var(--cover-bg); }
.project-cover-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.project-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 37%, rgba(11,18,20,.74)); }
.project-badges { position: absolute; z-index: 1; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; }
.badge { padding: 4px 7px; border-radius: 3px; font: 500 9px "IBM Plex Mono", monospace; letter-spacing: .03em; }
.badge-live { color: #082217; background: var(--mint); }
.badge-private { color: #231b10; background: var(--orange); }
.badge-type { color: var(--badge-ink); background: rgba(10,20,22,.72); border: 1px solid rgba(255,255,255,.18); }
.project-index { position: absolute; z-index: 1; left: 13px; bottom: 11px; color: rgba(238,244,241,.67); font: 10px "IBM Plex Mono", monospace; }
.project-body { padding: 15px 15px 14px; }
.project-title-row { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; }
.project-title { font-size: 15px; margin: 0; font-weight: 700; }
.project-version { color: var(--muted-2); font: 10px "IBM Plex Mono", monospace; }
.project-summary { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 7px 0 13px; min-height: 36px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 5px; min-height: 22px; }
.project-tag { color: var(--muted-2); border: 1px solid var(--line); padding: 3px 6px; border-radius: 3px; font-size: 9px; }
.project-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); margin: 14px -15px -14px; padding: 11px 15px; }
.project-meta { color: var(--muted-2); font: 10px "IBM Plex Mono", monospace; }
.text-button { border: 0; background: transparent; color: var(--mint); display: inline-flex; gap: 5px; align-items: center; cursor: pointer; font-size: 11px; padding: 0; }
.text-button svg { width: 13px; height: 13px; }

.empty-state { border: 1px dashed var(--line-strong); padding: 48px 20px; text-align: center; color: var(--muted); grid-column: 1/-1; }
.empty-state svg { width: 30px; height: 30px; color: var(--muted-2); margin-bottom: 12px; }

.detail-layout { padding: 38px 0 20px; }
.detail-back { margin-bottom: 22px; }
.detail-top { display: grid; grid-template-columns: 1.1fr .9fr; gap: 31px; }
.detail-media { display: grid; grid-template-columns: 1.25fr .75fr; grid-template-rows: 1fr 1fr; gap: 8px; min-height: 340px; }
.detail-media figure { margin: 0; background-size: cover; background-position: center; border-radius: 5px; border: 1px solid var(--line); overflow: hidden; position: relative; }
.detail-media figure:first-child { grid-row: 1/3; }
.detail-media figure::after { content: ""; inset: 0; position: absolute; background: linear-gradient(180deg, transparent 50%, rgba(8,15,17,.5)); }
.detail-info .eyebrow { margin-bottom: 13px; }
.detail-info h1 { font-size: 34px; line-height: 1.12; margin: 0 0 10px; }
.detail-info .detail-summary { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0 0 20px; }
.detail-meta-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.detail-meta-item { padding: 12px 0; }
.detail-meta-item:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 15px; }
.detail-meta-item:nth-child(even) { padding-left: 15px; }
.detail-meta-item small { display: block; color: var(--muted-2); font: 9px "IBM Plex Mono", monospace; margin-bottom: 5px; }
.detail-meta-item span { font-size: 11px; color: var(--ink); }
.detail-tags { display: flex; gap: 5px; flex-wrap: wrap; margin: 0 0 24px; }
.detail-section { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 32px; }
.detail-section h3 { margin: 0 0 11px; font-size: 15px; }
.detail-section p { color: var(--muted); font-size: 12px; line-height: 1.8; max-width: 780px; }
.scenario-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.scenario-cell { border: 1px solid var(--line); padding: 13px; background: rgba(255,255,255,.015); }
.scenario-cell svg { width: 15px; height: 15px; color: var(--mint); margin-bottom: 12px; }
.scenario-cell strong { display: block; font-size: 11px; margin-bottom: 5px; }
.scenario-cell span { display: block; color: var(--muted-2); font-size: 10px; line-height: 1.5; }

.page-title-block { padding: 36px 0 22px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.page-title-block h1 { font-size: 28px; margin: 0 0 6px; }
.page-title-block p { margin: 0; color: var(--muted); font-size: 12px; }
.admin-overview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-bottom: 28px; }
.kpi { background: var(--panel); border: 1px solid var(--line); padding: 16px; border-radius: 5px; position: relative; overflow: hidden; }
.kpi::after { content: ""; position: absolute; width: 70px; height: 1px; right: -12px; bottom: 18px; background: var(--mint); opacity: .3; transform: rotate(-40deg); }
.kpi-label { color: var(--muted-2); font: 10px "IBM Plex Mono", monospace; }
.kpi-value { margin-top: 10px; display: flex; gap: 9px; align-items: baseline; }
.kpi-value strong { font-size: 25px; }
.kpi-value span { color: var(--mint); font: 10px "IBM Plex Mono", monospace; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 16px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 5px; }
.panel-head { padding: 15px 17px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-size: 13px; }
.panel-head span { color: var(--muted-2); font: 10px "IBM Plex Mono", monospace; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { color: var(--muted-2); text-align: left; font: 9px "IBM Plex Mono", monospace; letter-spacing: .04em; padding: 10px 17px; border-bottom: 1px solid var(--line); font-weight: 400; }
.admin-table td { padding: 14px 17px; border-bottom: 1px solid var(--line); font-size: 11px; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.table-project { display: flex; align-items: center; gap: 9px; min-width: 180px; }
.table-thumb { width: 33px; height: 27px; background-size: cover; background-position: center; border-radius: 3px; border: 1px solid var(--line-strong); }
.table-project strong { font-size: 11px; display: block; }
.table-project small { color: var(--muted-2); font: 9px "IBM Plex Mono", monospace; display: block; margin-top: 3px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.status-live { background: var(--mint-2); box-shadow: 0 0 0 3px rgba(84,216,166,.1); }
.status-draft { background: var(--orange); }
.status-offline { background: var(--muted-2); }
.table-actions { display: flex; gap: 9px; justify-content: flex-end; }
.table-action { border: 0; background: transparent; color: var(--muted-2); cursor: pointer; padding: 3px; }
.table-action:hover { color: var(--mint); }
.table-action svg { width: 14px; height: 14px; }
.activity-list { padding: 5px 16px 11px; }
.activity-item { display: grid; grid-template-columns: 20px 1fr; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.activity-item:last-child { border-bottom: 0; }
.activity-icon { width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--mint); }
.activity-icon svg { width: 10px; height: 10px; }
.activity-item p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.activity-item p strong { color: var(--ink); font-weight: 600; }
.activity-item time { display: block; color: var(--muted-2); font: 9px "IBM Plex Mono", monospace; margin-top: 4px; }

.login-shell { min-height: calc(100vh - 70px); display: grid; place-items: center; padding: 50px 15px 70px; }
.login-card { width: min(420px, 100%); background: var(--panel); border: 1px solid var(--line-strong); border-radius: 7px; padding: 30px; box-shadow: 0 20px 60px rgba(0,0,0,.28); }
.login-icon { width: 40px; height: 40px; display: grid; place-items: center; color: var(--mint); border: 1px solid rgba(144,229,194,.46); border-radius: 6px; margin-bottom: 22px; }
.login-icon svg { width: 19px; height: 19px; }
.login-card h1 { margin: 0 0 7px; font-size: 23px; }
.login-card .login-subtitle { color: var(--muted); margin: 0 0 25px; font-size: 11px; line-height: 1.7; }
.host-pill { display: inline-flex; align-items: center; gap: 6px; color: var(--mint); border: 1px solid rgba(144,229,194,.22); background: rgba(144,229,194,.05); padding: 5px 8px; border-radius: 3px; font: 10px "IBM Plex Mono", monospace; margin-bottom: 18px; }
.host-pill svg { width: 12px; height: 12px; }
.form-field { display: block; margin-bottom: 15px; }
.form-field label { color: var(--muted); display: block; font-size: 10px; margin-bottom: 7px; }
.form-field input, .form-field textarea, .form-field select { width: 100%; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--input-bg); color: var(--ink); padding: 10px 11px; outline: 0; font-size: 12px; }
.form-field textarea { resize: vertical; min-height: 90px; line-height: 1.55; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--placeholder); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: rgba(144,229,194,.6); }
.form-note { color: var(--muted-2); font: 9px/1.6 "IBM Plex Mono", monospace; margin: -5px 0 18px; }
.login-submit { width: 100%; margin-top: 5px; }
.login-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; color: var(--muted-2); font-size: 10px; }

.modal-layer { position: fixed; z-index: 50; inset: 0; display: none; background: rgba(5,11,12,.72); backdrop-filter: blur(8px); padding: 30px; overflow-y: auto; }
.modal-layer.open { display: flex; align-items: center; justify-content: center; }
.modal-card { width: min(850px, 100%); max-height: calc(100vh - 60px); overflow: auto; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 7px; box-shadow: 0 28px 90px rgba(0,0,0,.45); }
.modal-card.wide { width: min(990px, 100%); }
.idea-welcome-modal { padding: 27px 29px 0; overflow: hidden; }
.idea-welcome-visual { height: 150px; margin: -27px -29px 26px; position: relative; overflow: hidden; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.idea-welcome-visual::before, .idea-welcome-visual::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--line-strong); animation: idea-scan 4s ease-in-out infinite; }
.idea-welcome-visual::before { top: 35%; }
.idea-welcome-visual::after { top: 68%; animation-delay: -1.8s; }
.idea-welcome-frame { position: absolute; border: 1px solid var(--line-strong); transform: rotate(45deg); animation: idea-frame 7s ease-in-out infinite; }
.idea-welcome-frame.frame-a { width: 112px; height: 112px; left: calc(50% - 56px); top: 19px; border-color: rgba(144,229,194,.42); }
.idea-welcome-frame.frame-b { width: 78px; height: 78px; left: calc(50% - 39px); top: 36px; border-color: rgba(242,166,90,.45); animation-direction: reverse; animation-duration: 9s; }
.idea-welcome-signal { position: absolute; width: 75px; height: 1px; background: var(--mint); opacity: .7; animation: idea-signal 3.6s ease-in-out infinite; }
.idea-welcome-signal::after { content: ""; position: absolute; width: 17px; height: 1px; right: -4px; top: -4px; background: var(--orange); transform: rotate(90deg); }
.idea-welcome-signal.signal-a { left: calc(50% - 172px); top: 58px; transform: rotate(18deg); }
.idea-welcome-signal.signal-b { right: calc(50% - 172px); top: 93px; transform: rotate(198deg); animation-delay: -1.2s; }
.idea-welcome-mark { position: absolute; left: calc(50% - 28px); top: 47px; width: 56px; height: 56px; display: grid; place-items: center; background: var(--mint); color: var(--button-ink); border: 1px solid var(--mint); box-shadow: 0 0 0 7px rgba(144,229,194,.1); animation: idea-breathe 2.8s ease-in-out infinite; }
.idea-welcome-mark svg { width: 25px; height: 25px; stroke-width: 1.6; }
.idea-welcome-beam { position: absolute; left: 18%; right: 18%; bottom: 19px; height: 1px; background: var(--line-strong); overflow: hidden; }
.idea-welcome-beam::after { content: ""; position: absolute; width: 38px; height: 1px; left: -38px; background: var(--mint); animation: idea-beam 2.7s linear infinite; }
.idea-welcome-node { position: absolute; width: 5px; height: 5px; background: var(--orange); animation: idea-node 2.4s ease-in-out infinite; }
.idea-welcome-node.node-a { left: 20%; top: 27px; }
.idea-welcome-node.node-b { right: 21%; bottom: 28px; animation-delay: -1.2s; }
.idea-welcome-modal h2 { margin: 0 0 12px; font-size: 24px; line-height: 1.25; }
.idea-welcome-copy { max-width: 650px; color: var(--muted); font-size: 13px; line-height: 1.85; margin: 0; }
.idea-welcome-quote { display: flex; align-items: flex-start; gap: 8px; margin: 21px 0 27px; padding: 11px 12px; color: var(--muted-2); background: rgba(144,229,194,.055); border-left: 2px solid var(--mint); font-size: 11px; line-height: 1.6; }
.idea-welcome-quote svg { flex: 0 0 auto; width: 14px; height: 14px; color: var(--mint); margin-top: 1px; }
.idea-welcome-modal .modal-actions { margin: 0 -29px; padding: 15px 29px; }
@keyframes idea-scan { 0%, 100% { opacity: .2; transform: translateY(-13px); } 50% { opacity: .85; transform: translateY(13px); } }
@keyframes idea-frame { 0%, 100% { transform: rotate(45deg) scale(.92); opacity: .45; } 50% { transform: rotate(135deg) scale(1.05); opacity: .95; } }
@keyframes idea-signal { 0%, 100% { opacity: .2; transform: translateX(-9px) rotate(18deg); } 50% { opacity: .95; transform: translateX(9px) rotate(18deg); } }
@keyframes idea-breathe { 0%, 100% { transform: scale(.96); box-shadow: 0 0 0 7px rgba(144,229,194,.08); } 50% { transform: scale(1.04); box-shadow: 0 0 0 12px rgba(144,229,194,.16); } }
@keyframes idea-beam { from { transform: translateX(0); } to { transform: translateX(680px); } }
@keyframes idea-node { 0%, 100% { opacity: .25; transform: translateY(4px); } 50% { opacity: 1; transform: translateY(-4px); } }
.modal-head { padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 15px; }
.modal-close { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 3px; }
.modal-close:hover { color: var(--ink); }
.modal-close svg { width: 17px; height: 17px; }
.modal-body { padding: 20px; }
.modal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 16px; }
.modal-grid .full { grid-column: 1/-1; }
.upload-field { position: relative; overflow: hidden; border: 1px dashed var(--line-strong); background: var(--input-bg); border-radius: 4px; padding: 13px; color: var(--muted-2); font-size: 10px; display: flex; align-items: center; gap: 9px; cursor: pointer; }
.upload-field:hover { border-color: rgba(144,229,194,.5); color: var(--mint); }
.upload-field svg { width: 15px; height: 15px; }
.upload-field input { position: absolute; inset: 0; z-index: 2; display: block; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.toggle-row { display: flex; gap: 9px; flex-wrap: wrap; margin: 3px 0 17px; }
.toggle-label { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; cursor: pointer; }
.toggle-label input { accent-color: var(--mint-2); }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); margin: 5px -20px -20px; padding: 15px 20px; }
.version-list { display: grid; gap: 8px; }
.version-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); padding: 12px; background: rgba(255,255,255,.012); }
.version-main strong { font-size: 11px; display: block; }
.version-main small { color: var(--muted-2); font: 9px "IBM Plex Mono", monospace; display: block; margin-top: 4px; }
.version-actions { display: flex; align-items: center; gap: 9px; }
.version-current { color: var(--mint); font: 9px "IBM Plex Mono", monospace; }

.category-page { padding-top: 5px; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.category-card { border: 1px solid var(--line); background: var(--panel); padding: 18px; border-radius: 5px; }
.category-card .category-symbol { width: 30px; height: 30px; display: grid; place-items: center; color: var(--mint); border: 1px solid rgba(144,229,194,.3); margin-bottom: 17px; }
.category-card svg { width: 15px; height: 15px; }
.category-card h3 { margin: 0 0 5px; font-size: 14px; }
.category-card p { color: var(--muted); font-size: 10px; line-height: 1.6; margin: 0 0 15px; }
.category-card footer { display: flex; justify-content: space-between; color: var(--muted-2); font: 9px "IBM Plex Mono", monospace; }

.activity-page { padding-top: 5px; }
.activity-timeline { border-left: 1px solid var(--line-strong); margin: 3px 0 0 10px; padding-left: 28px; }
.timeline-entry { position: relative; padding: 0 0 25px; }
.timeline-entry::before { content: ""; width: 7px; height: 7px; position: absolute; left: -33px; top: 3px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(144,229,194,.09); }
.timeline-entry h3 { margin: 0 0 6px; font-size: 12px; }
.timeline-entry p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.timeline-entry time { display: block; color: var(--muted-2); margin-top: 6px; font: 9px "IBM Plex Mono", monospace; }

.toast-stack { position: fixed; right: 22px; bottom: 22px; z-index: 80; display: grid; gap: 8px; }
.toast { min-width: 240px; max-width: 340px; background: var(--toast-bg); border: 1px solid var(--line-strong); padding: 11px 13px; border-radius: 4px; box-shadow: 0 9px 24px rgba(0,0,0,.28); display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 11px; animation: toast-in .23s ease-out; }
.toast svg { width: 14px; height: 14px; color: var(--mint); }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1120px) {
  .hero h1 { font-size: 44px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 1fr) 300px; }
  .admin-grid { grid-template-columns: 1fr; }
  .activity-panel { display: none; }
}
@media (max-width: 800px) {
  :root { --sidebar: 246px; }
  .sidebar { transform: translateX(-100%); transition: transform .22s; box-shadow: 8px 0 30px rgba(0,0,0,.3); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .topbar { padding: 0 18px; }
  .mobile-menu { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 9px; }
  .breadcrumb { margin-right: auto; }
  .operator-chip span:not(.operator-avatar), .operator-chip > svg { display: none; }
  .view-root { padding: 0 18px 38px; }
  .hero { grid-template-columns: 1fr; gap: 22px; padding-top: 29px; }
  .hero-visual { min-height: 180px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .section-head-actions { width: 100%; }
  .search-field { flex: 1; min-width: 0; }
  .project-grid { grid-template-columns: 1fr; }
  .detail-top { grid-template-columns: 1fr; }
  .detail-media { min-height: 275px; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .admin-overview { grid-template-columns: 1fr 1fr; }
  .admin-table-wrap { overflow-x: auto; }
  .admin-table { min-width: 700px; }
  .modal-layer { padding: 13px; }
  .modal-card { max-height: calc(100vh - 26px); }
}
@media (max-width: 520px) {
  .hero h1 { font-size: 33px; }
  .hero-stats { gap: 20px; }
  .hero-stat strong { font-size: 19px; }
  .category-grid { grid-template-columns: 1fr; }
  .admin-overview { grid-template-columns: 1fr 1fr; gap: 7px; }
  .kpi { padding: 12px; }
  .kpi-value strong { font-size: 20px; }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-grid .full { grid-column: auto; }
  .scenario-grid { grid-template-columns: 1fr; }
  .idea-welcome-modal { padding: 22px 18px 0; }
  .idea-welcome-visual { margin: -22px -18px 22px; }
  .idea-welcome-modal .modal-actions { margin: 0 -18px; padding-left: 18px; padding-right: 18px; }
  .idea-welcome-modal h2 { font-size: 21px; }
  .idea-welcome-copy { font-size: 12px; }
  .idea-welcome-signal.signal-a { left: 8%; }
  .idea-welcome-signal.signal-b { right: 8%; }
}

@media (prefers-reduced-motion: reduce) {
  .idea-welcome-visual::before, .idea-welcome-visual::after, .idea-welcome-frame, .idea-welcome-signal, .idea-welcome-mark, .idea-welcome-beam::after, .idea-welcome-node { animation: none; }
}
