.pixel-hub-view { min-height: 0; height: 100%; color: var(--text-primary, #eceef1); background: var(--surface-main, #101113); }
.pixel-hub-topbar { display:flex; align-items:center; gap:18px; min-height:58px; padding:10px clamp(18px,4vw,52px); border-bottom:1px solid var(--border-subtle,rgba(255,255,255,.07)); }
.pixel-hub-topbar-label { color:var(--text-muted,#858b95); font-size:11px; letter-spacing:.08em; }
.pixel-hub-back,.pixel-hub-quiet,.pixel-hub-primary,.pixel-hub-icon-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:36px; padding:0 12px; border:1px solid var(--border-subtle,rgba(255,255,255,.1)); border-radius:10px; color:var(--text-primary,#e8e9ec); background:var(--surface-raised,rgba(255,255,255,.035)); cursor:pointer; transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease; }
.pixel-hub-back:hover,.pixel-hub-quiet:hover { border-color:rgba(212,175,55,.26); color:var(--gold-bright,#e6c75e); background:rgba(212,175,55,.07); }
.pixel-hub-primary { border-color:rgba(212,175,55,.42); color:#17150e; background:linear-gradient(140deg,#ebd17b,#c6a343); font-weight:700; box-shadow:0 4px 14px rgba(0,0,0,.18); }
.pixel-hub-primary:hover { transform:translateY(-1px); box-shadow:0 7px 20px rgba(0,0,0,.23); }
.pixel-hub-scroll { height:calc(100% - 58px); overflow:auto; scrollbar-width:thin; }
.pixel-hub-content { width:min(980px,calc(100% - 48px)); margin:0 auto; padding:48px 0 70px; }
.pixel-hub-intro { margin-bottom:30px; }
.pixel-hub-intro h1 { margin:7px 0 8px; color:var(--text-primary,#f1f1f3); font-size:clamp(30px,4vw,42px); line-height:1.1; letter-spacing:-.045em; }
.pixel-hub-intro>p:last-child { max-width:650px; margin:0; color:var(--text-muted,#969ba4); font-size:14px; line-height:1.7; }
.pixel-hub-eyebrow { margin:0; color:#c7a64a; font-size:9px; font-weight:750; letter-spacing:.18em; text-transform:uppercase; }
.pixel-hub-section-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:14px; }
.pixel-hub-section-heading h2 { margin:5px 0 0; font-size:18px; letter-spacing:-.02em; }
.pixel-hub-count { display:grid; min-width:28px; height:28px; place-items:center; border:1px solid var(--border-subtle,rgba(255,255,255,.09)); border-radius:9px; color:var(--text-muted,#9ca1aa); font-size:11px; }
.pixel-hub-status { min-height:20px; margin:14px 0 8px; color:var(--text-muted,#8f949d); font-size:11px; }
.knowledge-ask-card,.knowledge-answer-card,.task-capture-card { padding:20px; border:1px solid var(--border-subtle,rgba(255,255,255,.085)); border-radius:16px; background:linear-gradient(145deg,rgba(255,255,255,.045),rgba(255,255,255,.018)); box-shadow:0 12px 34px rgba(0,0,0,.12); }
.knowledge-ask-card { margin-bottom:34px; }
.knowledge-ask-card>label { display:block; margin-bottom:12px; color:var(--text-primary,#eceef1); font-size:13px; font-weight:650; }
.knowledge-ask-row { display:flex; gap:10px; }
.knowledge-ask-row input,.knowledge-search input,.pixel-hub-dialog input,.pixel-hub-dialog textarea,.pixel-hub-dialog select,.pixel-hub-filter select { min-width:0; width:100%; border:1px solid var(--border-subtle,rgba(255,255,255,.12)); border-radius:10px; color:var(--text-primary,#eceef1); background:var(--surface-input,#151619); outline:none; }
.knowledge-ask-row input { min-height:42px; padding:0 13px; font-size:13px; }
.knowledge-ask-card small { display:block; margin-top:10px; color:var(--text-muted,#858a93); font-size:10px; }
.knowledge-ask-row input:focus,.knowledge-search:focus-within,.pixel-hub-dialog :is(input,textarea,select):focus,.pixel-hub-filter select:focus { border-color:rgba(212,175,55,.48); box-shadow:0 0 0 3px rgba(212,175,55,.08); }
.knowledge-answer-card { margin:0 0 34px; border-color:rgba(212,175,55,.22); }
.knowledge-answer-heading { display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.knowledge-answer-heading>div>span { display:block; margin-top:4px; color:var(--text-muted,#8f949d); font-size:10px; }
.knowledge-answer-mark { display:grid; width:34px; height:34px; place-items:center; border-radius:11px; color:#e2c464; background:rgba(212,175,55,.11); }
.knowledge-answer-text { color:var(--text-primary,#e6e7e9); font-size:13px; line-height:1.75; overflow-wrap:anywhere; }
.knowledge-answer-text p { margin:0 0 10px; }
.knowledge-answer-sources { display:grid; gap:7px; margin-top:18px; padding-top:14px; border-top:1px solid var(--border-subtle,rgba(255,255,255,.08)); }
.knowledge-source-link { display:grid; grid-template-columns:24px minmax(0,1fr) auto; align-items:center; gap:9px; width:100%; padding:8px 10px; border:1px solid transparent; border-radius:9px; color:inherit; text-align:left; background:transparent; cursor:pointer; }
.knowledge-source-link:hover { border-color:var(--border-subtle,rgba(255,255,255,.1)); background:rgba(255,255,255,.035); }
.knowledge-source-link>span:first-child { color:#c7a64a; font-size:10px; font-weight:700; }
.knowledge-source-link strong { overflow:hidden; color:var(--text-primary,#e5e6e9); font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.knowledge-source-link small { color:var(--text-muted,#888e97); font-size:9px; }
.knowledge-search-row { display:flex; gap:10px; }
.knowledge-search { display:flex; min-height:42px; flex:1; align-items:center; gap:10px; padding:0 12px; border:1px solid var(--border-subtle,rgba(255,255,255,.1)); border-radius:11px; color:#c7a64a; background:var(--surface-input,#151619); transition:border-color .18s ease,box-shadow .18s ease; }
.knowledge-search input { padding:0; border:0; background:transparent; font-size:12px; }
.knowledge-search input:focus { box-shadow:none; }
.pixel-hub-filter { display:flex; align-items:center; gap:8px; color:var(--text-muted,#8e939c); font-size:10px; }
.pixel-hub-filter select { min-height:39px; width:auto; padding:0 28px 0 10px; font-size:11px; }
.knowledge-results { display:grid; gap:9px; }
.knowledge-result { display:grid; grid-template-columns:38px minmax(0,1fr) auto; gap:13px; align-items:start; padding:14px; border:1px solid var(--border-subtle,rgba(255,255,255,.07)); border-radius:13px; background:var(--surface-raised,rgba(255,255,255,.025)); transition:border-color .18s ease,background .18s ease,transform .18s ease; }
.knowledge-result:hover { transform:translateY(-1px); border-color:rgba(212,175,55,.22); background:rgba(255,255,255,.045); }
.knowledge-result-icon { display:grid; width:36px; height:36px; place-items:center; border-radius:11px; color:#c9aa4f; background:rgba(212,175,55,.085); }
.knowledge-result-copy { min-width:0; }
.knowledge-result-copy strong { display:block; overflow:hidden; color:var(--text-primary,#e8e9ec); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.knowledge-result-copy small { display:block; margin-top:5px; color:var(--text-muted,#878d96); font-size:9px; }
.knowledge-result-copy p { display:-webkit-box; overflow:hidden; margin:8px 0 0; color:var(--text-secondary,#b0b4bc); font-size:11px; line-height:1.55; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.knowledge-result-open { align-self:center; min-height:30px; padding:0 9px; border:1px solid var(--border-subtle,rgba(255,255,255,.08)); border-radius:8px; color:var(--text-secondary,#b6bac1); background:transparent; cursor:pointer; font-size:10px; }
.knowledge-result-open:hover { color:#e2c464; border-color:rgba(212,175,55,.3); }
.pixel-hub-empty { padding:35px 18px; border:1px dashed var(--border-subtle,rgba(255,255,255,.12)); border-radius:13px; color:var(--text-muted,#8b9099); text-align:center; font-size:12px; line-height:1.6; }
.pixel-hub-intro-row { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.task-capture-card { display:flex; align-items:center; gap:14px; margin:24px 0 18px; }
.task-capture-icon { display:grid; width:40px; height:40px; flex:none; place-items:center; border-radius:12px; color:#c9aa4f; background:rgba(212,175,55,.09); }
.task-capture-card>div { min-width:0; flex:1; }
.task-capture-card strong { font-size:12px; }
.task-capture-card p { margin:5px 0 0; color:var(--text-muted,#90959e); font-size:10px; line-height:1.5; }
.task-summary-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-bottom:25px; }
.task-summary-grid article { display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border:1px solid var(--border-subtle,rgba(255,255,255,.075)); border-radius:12px; background:rgba(255,255,255,.022); }
.task-summary-grid span { color:var(--text-muted,#8e939c); font-size:10px; }
.task-summary-grid strong { color:var(--text-primary,#e7e8eb); font-size:20px; font-weight:650; }
.task-toolbar { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:10px; }
.task-filters { display:flex; flex-wrap:wrap; gap:4px; padding:3px; border:1px solid var(--border-subtle,rgba(255,255,255,.07)); border-radius:10px; background:rgba(255,255,255,.025); }
.task-filters button { min-height:29px; padding:0 11px; border:0; border-radius:7px; color:var(--text-muted,#969ba4); background:transparent; cursor:pointer; font-size:10px; }
.task-filters button[aria-pressed=true] { color:var(--text-primary,#e8e9ec); background:rgba(212,175,55,.13); box-shadow:inset 0 0 0 1px rgba(212,175,55,.15); }
.task-list { display:grid; gap:8px; }
.task-card { display:grid; grid-template-columns:24px minmax(0,1fr) auto; align-items:start; gap:12px; padding:14px; border:1px solid var(--border-subtle,rgba(255,255,255,.07)); border-radius:12px; background:var(--surface-raised,rgba(255,255,255,.025)); }
.task-complete { width:20px; height:20px; margin-top:1px; border:1px solid rgba(255,255,255,.22); border-radius:6px; color:#15140f; background:transparent; cursor:pointer; }
.task-complete[aria-pressed=true] { border-color:#c8a84c; background:#c8a84c; }
.task-card.is-done .task-card-title { color:var(--text-muted,#8c9199); text-decoration:line-through; }
.task-card-title { color:var(--text-primary,#e5e6e9); font-size:12px; font-weight:650; }
.task-card-description { margin:6px 0 0; color:var(--text-secondary,#a9aeb6); font-size:10px; line-height:1.55; white-space:pre-wrap; }
.task-card-meta { display:flex; flex-wrap:wrap; gap:6px; margin-top:9px; }
.task-chip { padding:4px 7px; border:1px solid var(--border-subtle,rgba(255,255,255,.075)); border-radius:6px; color:var(--text-muted,#91969e); font-size:8px; }
.task-chip[data-priority=high] { border-color:rgba(217,133,113,.25); color:#df9b89; }
.task-card-actions { display:flex; gap:5px; }
.task-card-actions button { width:29px; height:29px; border:1px solid transparent; border-radius:8px; color:var(--text-muted,#9297a0); background:transparent; cursor:pointer; }
.task-card-actions button:hover { border-color:var(--border-subtle,rgba(255,255,255,.1)); color:#e2c464; background:rgba(255,255,255,.04); }
.task-source-preview { padding:10px 12px; border-left:2px solid #c9aa4f; border-radius:0 8px 8px 0; color:var(--text-muted,#999ea6); background:rgba(212,175,55,.055); font-size:10px; line-height:1.5; }
.pixel-hub-dialog { width:min(540px,calc(100% - 28px)); max-height:min(88vh,760px); padding:0; overflow:auto; border:1px solid var(--border-subtle,rgba(255,255,255,.13)); border-radius:18px; color:var(--text-primary,#eceef1); background:var(--surface-modal,#17181b); box-shadow:0 28px 90px rgba(0,0,0,.55); }
.pixel-hub-dialog::backdrop { background:rgba(5,6,8,.72); backdrop-filter:blur(5px); }
.pixel-hub-dialog form { display:grid; gap:14px; padding:22px; }
.pixel-hub-dialog-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:3px; }
.pixel-hub-dialog-heading h2 { margin:5px 0 0; font-size:20px; }
.pixel-hub-icon-btn { width:34px; min-height:34px; padding:0; }
.pixel-hub-dialog label { display:grid; gap:7px; color:var(--text-secondary,#c5c8ce); font-size:11px; font-weight:600; }
.pixel-hub-dialog input,.pixel-hub-dialog select { min-height:39px; padding:0 10px; font-size:12px; }
.pixel-hub-dialog textarea { resize:vertical; min-height:88px; padding:10px; font:inherit; font-size:12px; }
.pixel-hub-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.pixel-hub-optional { color:var(--text-muted,#858a93); font-size:9px; font-weight:400; }
.pixel-hub-dialog-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:4px; }
body.light-mode .pixel-hub-view { color:#262722; background:#f4f2ec; }
body.light-mode .pixel-hub-intro h1,body.light-mode .knowledge-ask-card>label,body.light-mode .knowledge-result-copy strong,body.light-mode .knowledge-answer-text,body.light-mode .task-card-title { color:#272820; }
body.light-mode :is(.knowledge-ask-card,.knowledge-answer-card,.task-capture-card,.knowledge-result,.task-card,.task-summary-grid article) { border-color:rgba(47,44,33,.1); background:linear-gradient(145deg,#fffefa,#f2f0e9); box-shadow:0 8px 24px rgba(58,53,36,.045); }
body.light-mode :is(.knowledge-ask-row input,.knowledge-search,.knowledge-search input,.pixel-hub-dialog,.pixel-hub-dialog input,.pixel-hub-dialog textarea,.pixel-hub-dialog select,.pixel-hub-filter select) { color:#292a25; background:#fffefa; }
body.light-mode .knowledge-result-copy p,body.light-mode .task-card-description { color:#606158; }
body.light-mode .pixel-hub-back,body.light-mode .pixel-hub-quiet,body.light-mode .knowledge-result-open,body.light-mode .task-filters { border-color:rgba(44,42,33,.11); color:#55564e; background:linear-gradient(145deg,#fffefa,#f2f0e9); }
@media (max-width:700px) {
    .pixel-hub-content { width:calc(100% - 30px); padding:30px 0 48px; }
    .pixel-hub-intro-row { align-items:flex-start; }
    .pixel-hub-intro-row>.pixel-hub-primary { flex:none; }
    .knowledge-search-row,.task-toolbar { align-items:stretch; flex-direction:column; }
    .knowledge-search-row>.pixel-hub-filter,.task-toolbar>.pixel-hub-filter { justify-content:space-between; }
    .knowledge-search-row>.pixel-hub-filter select,.task-toolbar>.pixel-hub-filter select { flex:1; }
    .task-capture-card { align-items:flex-start; flex-wrap:wrap; }
    .task-capture-card>div { width:calc(100% - 60px); flex:auto; }
    .task-capture-card>.pixel-hub-quiet { margin-left:54px; }
    .task-filters { overflow:auto; flex-wrap:nowrap; }
    .task-filters button { flex:none; }
    .knowledge-result { grid-template-columns:34px minmax(0,1fr); gap:10px; }
    .knowledge-result-open { grid-column:2; justify-self:start; }
}
@media (prefers-reduced-motion:reduce) {
    .pixel-hub-view *, .pixel-hub-view *::before, .pixel-hub-view *::after { scroll-behavior:auto !important; transition:none !important; animation:none !important; }
}
