:root { color-scheme: dark; --bg:#090a0d; --panel:#111318; --panel2:#171a20; --line:#292d36; --text:#f3f1eb; --muted:#979ca8; --acid:#d8ff57; --violet:#9979ff; --danger:#ff8ba0; --radius:18px; font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
* { box-sizing:border-box; }
body { margin:0; background:radial-gradient(circle at 70% -20%,#202335 0,transparent 35%),var(--bg); color:var(--text); min-height:100vh; }
button,input,textarea,select { font:inherit; }
button,a { -webkit-tap-highlight-color:transparent; }
h1,h2,h3,p { margin-top:0; }
h1,h2 { font-family:Inter,ui-sans-serif,system-ui,sans-serif; letter-spacing:-.04em; }
h1 { font-size:clamp(2rem,4vw,4.2rem); line-height:1.02; }
a { color:inherit; text-decoration:none; }
.topbar { height:68px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; padding:0 26px; position:sticky; top:0; z-index:20; background:rgba(9,10,13,.88); backdrop-filter:blur(18px); }
.brand,.top-actions { display:flex; align-items:center; gap:11px; }
.brand { font-weight:700; }
.brand b { color:var(--acid); }
.brand-mark { width:48px; height:48px; border-radius:15px; display:grid; place-items:center; color:#0a0c08; background:var(--acid); font-weight:800; box-shadow:0 12px 35px rgba(216,255,87,.18); }
.brand-mark.small { width:34px; height:34px; border-radius:10px; }
.top-actions { color:var(--muted); font-size:.84rem; }
.live-dot { width:7px; height:7px; border-radius:50%; background:var(--acid); box-shadow:0 0 14px var(--acid); }
.shell { display:grid; grid-template-columns:250px minmax(0,1fr); min-height:calc(100vh - 68px); }
.sidebar { border-right:1px solid var(--line); padding:22px 14px; }
.side-heading { color:#6e7480; text-transform:uppercase; font-weight:700; font-size:.68rem; letter-spacing:.16em; margin:28px 10px 10px; }
.project-list { display:grid; gap:5px; }
.project-link { border:0; background:transparent; color:var(--muted); border-radius:11px; padding:11px; text-align:left; cursor:pointer; display:grid; gap:3px; }
.project-link:hover,.project-link.active { color:var(--text); background:var(--panel2); }
.project-link small { font-size:.72rem; text-transform:uppercase; color:#6f7580; }
.workspace { padding:clamp(24px,4vw,58px); min-width:0; }
.empty-state { min-height:65vh; display:flex; flex-direction:column; justify-content:center; align-items:flex-start; max-width:840px; }
.empty-state p:not(.eyebrow) { color:var(--muted); max-width:620px; font-size:1.12rem; line-height:1.65; }
.eyebrow { text-transform:uppercase; letter-spacing:.14em; color:var(--acid); font-weight:700; font-size:.72rem; margin-bottom:14px; }
.muted { color:var(--muted); }
.primary,.ghost { border:1px solid transparent; border-radius:12px; padding:12px 18px; font-weight:700; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; }
.primary { background:var(--acid); color:#10120b; }
.primary:hover { background:#e5ff86; transform:translateY(-1px); }
.ghost { border-color:var(--line); background:var(--panel); color:var(--text); }
.ghost:hover { border-color:#4c5260; }
.compact { padding:7px 10px; font-size:.76rem; }
.wide { width:100%; }
.project-header { display:flex; justify-content:space-between; align-items:flex-end; gap:20px; margin-bottom:30px; }
.project-header h1 { font-size:clamp(2rem,3.6vw,3.6rem); margin-bottom:10px; }
.toolbar { border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:14px 0; display:flex; align-items:center; justify-content:space-between; gap:16px; position:sticky; top:68px; background:rgba(9,10,13,.92); backdrop-filter:blur(14px); z-index:10; }
.tabs { display:flex; overflow:auto; gap:6px; scrollbar-width:none; }
.tab { white-space:nowrap; border:0; background:transparent; color:var(--muted); padding:9px 12px; border-radius:9px; cursor:pointer; }
.tab.active { background:var(--text); color:var(--bg); }
.filters { display:flex; gap:8px; }
select,input,textarea { color:var(--text); background:#0d0f13; border:1px solid var(--line); border-radius:11px; padding:11px 12px; outline:none; width:100%; }
select:focus,input:focus,textarea:focus { border-color:var(--violet); box-shadow:0 0 0 3px rgba(153,121,255,.12); }
.section-context { display:grid; grid-template-columns:minmax(180px,.8fr) minmax(280px,1.2fr); gap:24px; padding:28px 0; }
.section-context blockquote { margin:0; color:#c3c6ce; font-size:1.06rem; line-height:1.6; border-left:2px solid var(--violet); padding-left:18px; }
.section-context h3 { margin-bottom:8px; }
.gallery { columns:4 270px; column-gap:14px; }
.image-card { break-inside:avoid; display:inline-block; width:100%; margin:0 0 14px; background:var(--panel); border:1px solid var(--line); border-radius:16px; overflow:hidden; transition:.2s ease; }
.image-card:hover { border-color:#454b58; transform:translateY(-2px); }
.image-card.selected { border-color:var(--acid); box-shadow:0 0 0 1px var(--acid); }
.image-wrap { position:relative; background:#1b1e25; min-height:160px; }
.image-wrap img { width:100%; display:block; min-height:160px; object-fit:cover; }
.source-pill { position:absolute; top:10px; left:10px; padding:5px 8px; border-radius:8px; background:rgba(8,9,11,.82); backdrop-filter:blur(8px); font-size:.65rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; }
.select-button { position:absolute; top:9px; right:9px; width:32px; height:32px; border-radius:50%; border:1px solid rgba(255,255,255,.25); background:rgba(8,9,11,.75); color:white; cursor:pointer; }
.selected .select-button { background:var(--acid); color:#10120b; border-color:var(--acid); }
.card-body { padding:14px; }
.card-body h3 { font-size:.96rem; line-height:1.35; margin-bottom:8px; }
.rationale { color:var(--muted); font-size:.79rem; line-height:1.45; }
.search-query { color:#c7baff; font-size:.7rem; line-height:1.4; margin-bottom:8px; }
.search-query b { color:var(--acid); text-transform:uppercase; letter-spacing:.07em; margin-right:5px; }
.metadata { display:flex; flex-wrap:wrap; gap:5px; margin:10px 0; }
.metadata span { background:#20232b; border-radius:6px; padding:4px 6px; color:#afb4be; font-size:.65rem; }
.metadata .license-ok { color:var(--acid); }
.rating { display:flex; gap:2px; margin:12px 0; }
.star { background:none; border:0; color:#505661; cursor:pointer; padding:2px; font-size:1.12rem; }
.star.active { color:var(--acid); }
.note { min-height:58px; resize:vertical; font-size:.77rem; margin-bottom:9px; }
.source-link { font-size:.73rem; color:#c7baff; }
.progress,.notice { border:1px solid var(--line); background:var(--panel); border-radius:13px; padding:13px 16px; margin-bottom:20px; }
.progress { position:relative; overflow:hidden; }
.progress span { position:absolute; inset:0 auto 0 0; width:32%; background:linear-gradient(90deg,transparent,rgba(216,255,87,.12),transparent); animation:scan 1.5s linear infinite; }
.progress p { margin:0; position:relative; }
.notice { color:#ffc2cc; border-color:#5b303a; }
@keyframes scan { from { transform:translateX(-100%); } to { transform:translateX(400%); } }
dialog { border:0; padding:0; background:transparent; color:var(--text); width:min(760px,calc(100% - 24px)); }
dialog::backdrop { background:rgba(0,0,0,.78); backdrop-filter:blur(7px); }
.dialog-card,.login-card { background:#12151a; border:1px solid var(--line); border-radius:22px; padding:clamp(22px,4vw,38px); box-shadow:0 30px 90px rgba(0,0,0,.45); }
.dialog-card { display:grid; gap:17px; position:relative; }
.dialog-card h2 { font-size:2rem; margin:0; }
label { display:grid; gap:7px; color:#c9cbd1; font-size:.84rem; font-weight:600; }
.dialog-close { position:absolute; right:18px; top:16px; border:0; background:none; color:var(--muted); font-size:1.8rem; cursor:pointer; }
.file-label { border:1px dashed #3a3f49; border-radius:12px; padding:11px; color:var(--muted); }
.file-label input { border:0; padding:0; background:transparent; }
.error { color:var(--danger); margin:0; font-size:.82rem; }
.login-page { display:grid; min-height:100vh; place-items:center; padding:20px; }
.login-card { width:min(500px,100%); }
.login-card h1 { font-size:2.5rem; margin-top:24px; }
.stack { display:grid; gap:16px; margin-top:28px; }
@media (max-width:800px) { .shell { display:block; } .sidebar { border:0; border-bottom:1px solid var(--line); } .project-list { display:flex; overflow:auto; } .project-link { min-width:180px; } .workspace { padding:24px 16px; } .top-actions span:not(.live-dot) { display:none; } .project-header,.toolbar { align-items:flex-start; } .toolbar { flex-direction:column; } .filters { width:100%; } .section-context { grid-template-columns:1fr; } }
