@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;450;500;550;600;650;700&display=swap');
:root {
    color-scheme: light;
    --bg:#f0f4f9; --panel:#fff; --text:#202124; --muted:#68717d; --border:#e2e7ed;
    --primary:#0b57d0; --primary-text:#fff; --hover:#e9eef6; --danger:#b3261e; --today:#edf3ff;
    --accent:#d3e3fd; --accent-text:#0842a0; --soft:#f8fafd; --shadow:0 2px 8px #20324d08;
    --surface:var(--panel); --surface-2:var(--soft); --line:var(--border); --accent-soft:var(--accent);
}
:root[data-theme=dark] {
    color-scheme:dark;
    --bg:#0b0d10; --panel:#15181d; --text:#e8eaed; --muted:#9aa2ad; --border:#292e36;
    --primary:#8ab4f8; --primary-text:#101a2b; --hover:#20252c; --danger:#f28b82; --today:#182338;
    --accent:#202d42; --accent-text:#c6d8f3; --soft:#101318; --shadow:0 8px 28px #0005;
    --sidebar-bg:#090b0e; --sidebar-border:#20242b; --sidebar-hover:#171a20;
}
* { box-sizing:border-box; }
html,body { margin:0; min-height:100%; }
body { background:var(--bg); color:var(--text); font:14px/1.5 'Inter','Segoe UI',sans-serif; -webkit-font-smoothing:antialiased; }
button,input,select,textarea { font:inherit; color:inherit; }
button,a,input,textarea,select { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
a { color:var(--primary); text-decoration:none; }
a:hover { text-decoration:underline; }
[hidden] { display:none!important; }
.muted { color:var(--muted); }
.center { text-align:center; }
.pad { padding:20px; }
.spacer { flex:1; }
:focus-visible { outline:2px solid var(--primary); outline-offset:3px; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:40px; background:var(--panel); border:1px solid var(--border); border-radius:24px; padding:9px 20px; font-weight:550; white-space:nowrap; transition:background .15s,box-shadow .15s; }
.btn:hover { background:var(--hover); box-shadow:var(--shadow); }
.btn.primary { background:var(--primary); border-color:var(--primary); color:var(--primary-text); }
.btn.primary:hover { filter:brightness(.95); }
.btn.danger { color:var(--danger); }
.btn.small { min-height:32px; padding:5px 14px; font-size:12px; }
.btn.block { width:100%; margin-top:12px; min-height:46px; }
.icon-btn { display:inline-flex; align-items:center; justify-content:center; background:transparent; border:0; border-radius:50%; width:36px; height:36px; flex-shrink:0; color:var(--muted); font-size:22px; }
.icon-btn:hover { background:var(--hover); color:var(--text); }
.theme-toggle { width:44px; height:44px; border:1px solid var(--border); }
.theme-toggle svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
label { display:block; margin-bottom:18px; color:var(--muted); font-size:12px; font-weight:500; }
label>input,label>select,label>textarea { display:block; width:100%; margin-top:7px; }
input:not([type=checkbox]):not([type=color]),select,textarea { background:var(--panel); border:1px solid var(--border); border-radius:12px; padding:12px 14px; color:var(--text); min-width:0; }
input::placeholder,textarea::placeholder { color:var(--muted); opacity:1; }
input:focus,select:focus,textarea:focus { outline:2px solid var(--primary); outline-offset:-1px; }
textarea { resize:vertical; }
input[type=color] { width:64px; height:40px; padding:4px; border:1px solid var(--border); border-radius:10px; background:var(--panel); }
.layout { display:grid; grid-template-columns:260px minmax(0,1fr); column-gap:26px; height:100dvh; min-height:640px; }
.sidebar { margin:14px 0 14px 14px; padding:22px 12px 14px; display:flex; flex-direction:column; gap:4px; overflow-y:auto; background:var(--panel); border:1px solid var(--border); border-radius:20px; }
.brand { display:flex; align-items:center; gap:11px; padding:0 10px 18px; color:var(--text); font-size:22px; font-weight:500; letter-spacing:-1px; }
.brand:hover { text-decoration:none; }
.brand-mark { display:inline-flex; align-items:center; justify-content:center; width:35px; height:35px; border-radius:11px; background:#4285f4; color:#fff; font-size:26px; font-weight:600; box-shadow:inset -5px -5px 0 #0b57d0; }
.create-btn { align-self:flex-start; margin:0 0 10px 4px; padding:11px 21px 11px 16px; min-height:48px; background:var(--accent); color:var(--accent-text); border:0; border-radius:15px; box-shadow:none; font-size:14px; }
.create-btn>span { font-size:28px; font-weight:400; line-height:1; }
.sidebar nav { display:flex; flex-direction:column; gap:3px; }
.sidebar nav button,.cat-row>button:first-child { display:flex; align-items:center; gap:10px; width:100%; text-align:left; background:none; border:0; padding:9px 12px; min-height:40px; border-radius:14px; font-size:12px; }
.sidebar nav button>span { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sidebar nav button:hover,.cat-row:hover { background:var(--hover); }
.sidebar nav button.active,.cat-row.active { background:var(--accent); color:var(--accent-text); font-weight:600; }
.nav-icon { width:19px; height:19px; flex:none; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.sidebar small { color:var(--muted); font-size:11px; }
.cat-row { display:flex; align-items:center; border-radius:24px; }
.sidebar .cat-row>.icon-btn { width:32px; padding:0; margin-right:5px; justify-content:center; opacity:0; }
.cat-row:hover .icon-btn,.cat-row:focus-within .icon-btn { opacity:1; }
.extra-nav { margin-top:8px; padding-top:8px; border-top:1px solid var(--border); }
.sidebar #catList { gap:2px; }
.sidebar .side-head:not(:first-of-type) { margin-top:18px; }
.dot { width:9px; height:9px; border-radius:50%; flex:none; margin:0 5px; }
.side-head { display:flex; justify-content:space-between; align-items:center; margin:14px 0 6px; padding:0 12px; color:var(--muted); font-size:10px; font-weight:650; letter-spacing:.09em; text-transform:uppercase; }
.sidebar-note { display:none; }
.note-symbol { display:block; color:var(--primary); font-size:24px; margin-bottom:7px; }
.sidebar-note strong { font-size:12px; font-weight:550; }
.sidebar-note p { font-size:11px; color:var(--muted); margin:5px 0 0; line-height:1.7; }
.side-foot { margin-top:auto; display:flex; align-items:center; flex-wrap:wrap; gap:9px; padding:16px 4px 0; border-top:1px solid var(--border); }
.google-cal-btn { order:3; width:100%; justify-content:center; }
.google-cal-status { margin:14px 0; padding:12px 14px; border-radius:12px; background:var(--soft); border:1px solid var(--border); font-size:13px; line-height:1.55; }
#googleCalDlg .dlg-actions { flex-wrap:wrap; }
.account-avatar { display:grid; place-items:center; width:32px; height:32px; border-radius:50%; background:var(--accent); color:var(--accent-text); flex:none; text-transform:uppercase; }
.account-name { min-width:0; flex:1; font-size:12px; overflow-wrap:anywhere; }
.account-name small { display:block; font-size:10px; margin-top:2px; }
.side-foot form { margin:0; }
.side-foot .btn { padding:5px 9px; font-size:10px; }
.main { display:flex; flex-direction:column; min-width:0; height:100%; overflow:hidden; padding:20px 28px 24px 0; }
.topbar { display:flex; align-items:center; gap:16px; flex-shrink:0; }
.quick { display:flex; align-items:center; flex:1; gap:8px; background:var(--panel); border-radius:32px; padding:6px 8px 6px 18px; min-width:0; }
.quick-symbol { color:var(--muted); font-size:25px; }
.quick input:not([type=checkbox]) { flex:1; width:100%; background:transparent; border:0; padding:10px; border-radius:20px; }
.quick .btn { background:var(--soft); border:0; color:var(--primary); padding:8px 18px; }
.quick select { width:145px; max-width:28%; border:0; border-left:1px solid var(--border); border-radius:0; background:transparent; padding:8px; font-size:11px; }
.menu-btn { display:none; }
.workspace-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:29px 5px 18px; flex-shrink:0; }
.eyebrow { margin:0 0 6px; font-size:9px; font-weight:600; letter-spacing:1.6px; color:var(--muted); }
h1 { font-size:30px; font-weight:450; letter-spacing:-1px; margin:0; }
.workspace-heading .muted { margin:6px 0 0; font-size:12px; }
.seg { display:inline-flex; border:1px solid var(--border); padding:4px; border-radius:25px; flex:none; }
.seg button { border:0; background:transparent; border-radius:20px; padding:8px 20px; font-size:12px; color:var(--muted); }
.seg button.active { background:var(--accent); color:var(--accent-text); font-weight:600; }
.quick-hint { font-size:10px; padding:0 5px 17px; }
.cal-wrap { display:grid; grid-template-columns:minmax(0,1fr) 275px; gap:18px; flex:1; min-height:0; }
.cal-main { display:flex; flex-direction:column; min-height:0; background:var(--panel); border-radius:22px; overflow:hidden; padding:20px 0 0; box-shadow:var(--shadow); }
.cal-head { display:flex; align-items:center; gap:7px; padding:0 22px 20px; }
.cal-head h2 { flex:1; margin:0; font-size:21px; font-weight:500; letter-spacing:-.5px; }
.cal-head .icon-btn { font-size:28px; }
.cal-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); }
.cal-dow div { text-align:center; color:var(--muted); font-size:10px; font-weight:550; padding:0 0 13px; }
#calGrid { flex:1; grid-template-rows:repeat(6,minmax(0,1fr)); min-height:0; }
.cell { position:relative; border-top:1px solid var(--border); border-right:1px solid var(--border); padding:7px 5px; overflow:hidden; cursor:pointer; min-height:0; transition:background .15s; }
.cell:nth-child(7n) { border-right:0; }
.cell:hover { background:var(--soft); }
.cell:hover::after, .cell:focus-visible::after { content:'+'; position:absolute; right:5px; top:5px; display:grid; place-items:center; width:19px; height:19px; border-radius:50%; background:var(--primary); color:var(--primary-text); font-size:15px; line-height:1; pointer-events:none; }
.cell.other .num { color:var(--muted); opacity:.55; }
.cell.today { background:var(--soft); }
.cell.selected { background:var(--today); }
.cell.drop { background:var(--accent); }
.num { display:grid; place-items:center; width:25px; height:25px; border-radius:50%; margin:0 auto 5px; font-size:11px; font-weight:500; }
.cell.today .num { background:var(--primary); color:var(--primary-text); }
.cell.selected:not(.today) .num { background:var(--accent); color:var(--accent-text); }
.chip { font-size:10px; line-height:1.5; padding:3px 6px; margin-bottom:3px; border-radius:5px; border-left:3px solid var(--c); background:color-mix(in srgb,var(--c) 16%,var(--panel)); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; cursor:grab; }
.chip.p3 { font-weight:600; }
.chip.done { text-decoration:line-through; opacity:.55; }
.more { font-size:10px; color:var(--muted); padding-left:5px; }
.day-panel { background:var(--panel); border-radius:22px; overflow-y:auto; padding:22px 16px; box-shadow:var(--shadow); }
.agenda-label { display:flex; align-items:center; gap:7px; font-size:10px; color:var(--muted); margin-bottom:14px; }
.agenda-dot { width:6px; height:6px; background:#34a853; border-radius:50%; }
.day-head { display:flex; align-items:flex-start; justify-content:space-between; gap:6px; padding-bottom:20px; border-bottom:1px solid var(--border); }
.day-head h3 { margin:0; font-size:16px; font-weight:500; line-height:1.6; }
.day-head .btn { background:var(--soft); color:var(--primary); border:0; }
.list-wrap { padding:24px; overflow-y:auto; flex:1; background:var(--panel); border-radius:22px; }
.list-tools { margin-bottom:22px; }
.list-tools input { width:100%; max-width:480px; }
.group { margin:24px 0 10px; font-size:12px; font-weight:550; color:var(--muted); }
.group small { margin-left:8px; padding:2px 7px; background:var(--hover); border-radius:10px; }
.group.late { color:var(--danger); }
.task { display:flex; gap:13px; align-items:flex-start; padding:16px; background:var(--panel); border:1px solid var(--border); border-radius:14px; margin-bottom:8px; cursor:pointer; }
.day-panel .task { border:0; border-bottom:1px solid var(--border); border-radius:0; padding:18px 0; margin:0; }
.task:hover { background:var(--soft); }
.task input[type=checkbox] { margin:3px 0 0; width:18px; height:18px; cursor:pointer; flex:none; accent-color:var(--primary); }
.task-body { min-width:0; flex:1; }
.task-title { overflow-wrap:anywhere; font-size:13px; }
.task.done .task-title { text-decoration:line-through; color:var(--muted); }
.task-meta { display:flex; gap:7px; flex-wrap:wrap; font-size:10px; color:var(--muted); margin-top:8px; }
.task-meta .late { color:var(--danger); }
.tag { padding:1px 7px; border-radius:5px; color:var(--text); background:color-mix(in srgb,var(--c) 17%,var(--panel)); }
.prio.p3 { color:var(--danger); font-weight:600; }
.empty-state { text-align:center; padding:48px 10px; }
.empty-symbol { display:grid; place-items:center; width:62px; height:62px; background:var(--soft); color:var(--primary); border-radius:22px; font-size:27px; margin:0 auto 18px; }
.empty-state strong { display:block; font-size:13px; font-weight:500; }
.empty-state p { font-size:11px; line-height:1.8; color:var(--muted); max-width:240px; margin:8px auto 0; }
dialog { border:0; border-radius:28px; padding:28px; width:min(480px,calc(100% - 32px)); max-height:calc(100dvh - 32px); overflow-y:auto; background:var(--panel); color:var(--text); box-shadow:0 20px 80px #0003; }
dialog::backdrop { background:#11182766; backdrop-filter:blur(4px); }
dialog h3 { margin:0 0 24px; font-size:23px; font-weight:500; letter-spacing:-.5px; }
.row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.dlg-actions { display:flex; gap:8px; align-items:center; }
.alert,.form-error { color:var(--danger); }
.alert { background:color-mix(in srgb,var(--danger) 10%,var(--panel)); padding:12px 16px; border-radius:12px; margin:18px 0; font-size:12px; }
.form-error { min-height:18px; margin-bottom:12px; font-size:12px; }
.backdrop { position:fixed; inset:0; background:#11182766; z-index:9; }
.auth-body { display:grid; place-items:center; min-height:100dvh; padding:36px 20px; }
.auth-theme { position:fixed; top:24px; right:24px; }
.auth-card { width:100%; max-width:460px; background:var(--panel); border-radius:28px; padding:40px; box-shadow:var(--shadow); }
.auth-card .brand { padding:0 0 30px; font-size:20px; }
.auth-card h1 { font-size:28px; }
.auth-card>p { margin:8px 0 28px; font-size:13px; }
.auth-card .center { margin:24px 0 0; font-size:12px; }
.auth-card a:not(.brand) { font-weight:550; }
.auth-divider { display:flex; align-items:center; gap:12px; margin:18px 0 4px; color:var(--muted); font-size:12px; }
.auth-divider::before,.auth-divider::after { content:""; flex:1; height:1px; background:var(--border); }
.btn.google { background:var(--panel); border:1px solid var(--border); color:var(--text); font-weight:600; text-decoration:none; }
.btn.google:hover { background:var(--hover); text-decoration:none; box-shadow:var(--shadow); }
.btn.google .google-g { width:18px; height:18px; flex-shrink:0; }
@media(min-width:1600px) { .main { padding-right:32px; } .cal-wrap { grid-template-columns:minmax(0,1fr) 320px; } .chip { font-size:11px; } }
@media(max-width:1150px) { .layout { grid-template-columns:232px minmax(0,1fr); column-gap:22px; } .sidebar { padding-left:10px; padding-right:10px; } .cal-wrap { grid-template-columns:minmax(0,1fr) 230px; gap:12px; } .main { padding-right:16px; } .day-head { flex-wrap:wrap; } }
@media(max-width:900px) {
    .layout { grid-template-columns:1fr; column-gap:0; height:auto; min-height:100dvh; }
    .sidebar { position:fixed; inset:0 auto 0 0; width:270px; margin:0; padding:24px 14px 16px; background:var(--panel); border-radius:0 20px 20px 0; z-index:10; transform:translateX(-100%); transition:transform .2s; }
    .sidebar.open { transform:none; box-shadow:0 0 50px #0003; }
    .menu-btn { display:inline-flex; }
    .main { overflow:visible; height:auto; min-height:100dvh; padding:16px; }
    .topbar { gap:10px; }
    .cal-wrap { grid-template-columns:minmax(0,1fr); flex:none; }
    #calGrid { grid-template-rows:repeat(6,minmax(75px,1fr)); min-height:450px; }
    .day-head { flex-wrap:nowrap; }
    .sidebar-note { margin-top:22px; }
    .sidebar .cat-row>.icon-btn { opacity:1; }
}
@media(max-width:560px) {
    .main { padding:12px; }
    .topbar { gap:6px; }
    .quick { padding-left:9px; gap:0; }
    .quick-symbol { display:none; }
    .quick input:not([type=checkbox]) { font-size:12px; padding:10px 8px; }
    .quick .btn { padding:8px 10px; font-size:11px; }
    .quick .btn span { display:none; }
    .theme-toggle { width:36px; height:36px; }
    .workspace-heading { padding:25px 3px 15px; align-items:flex-start; flex-direction:column; gap:16px; }
    h1 { font-size:27px; }
    .eyebrow { font-size:8px; letter-spacing:1.2px; }
    .quick-hint { line-height:1.7; font-size:9px; }
    .cal-main { border-radius:18px; padding-top:16px; }
    .cal-head { padding:0 12px 18px; gap:3px; }
    .cal-head h2 { font-size:18px; }
    .cell { padding:5px 2px; }
    #calGrid { grid-template-rows:repeat(6,66px); min-height:396px; }
    .chip { font-size:0; padding:0; height:6px; width:6px; border:0; border-radius:50%; display:inline-block; margin:2px; background:var(--c); }
    .chip b { display:none; }
    .more { font-size:8px; }
    .list-wrap { padding:18px 12px; }
    .auth-card { padding:28px; }
    .auth-theme { top:12px; right:12px; }
    dialog { padding:24px 18px; }
    .dlg-actions .btn { padding:8px 14px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none!important; scroll-behavior:auto!important; } }

/* Task completion */
.task input.task-check[type=checkbox] { appearance:none; -webkit-appearance:none; width:22px; height:22px; border:2px solid var(--muted); border-radius:50%; background:transparent; display:grid; place-content:center; margin-top:1px; transition:background .18s,border-color .18s,box-shadow .18s; }
.task input.task-check[type=checkbox]::before { content:''; width:10px; height:6px; border-left:2px solid var(--primary-text); border-bottom:2px solid var(--primary-text); transform:rotate(-45deg) scale(0); margin-top:-3px; transition:transform .15s; }
.task input.task-check[type=checkbox]:hover { border-color:var(--primary); box-shadow:0 0 0 5px color-mix(in srgb,var(--primary) 10%,transparent); }
.task input.task-check[type=checkbox]:checked { background:var(--primary); border-color:var(--primary); }
.task input.task-check[type=checkbox]:checked::before { transform:rotate(-45deg) scale(1); }
button:disabled { cursor:wait; opacity:.55; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.ai-open-btn { background:var(--accent); color:var(--accent-text); border:0; gap:8px; }
.ai-open-btn>span:first-child { font-size:20px; }
.ai-backdrop { position:fixed; inset:0; background:#11182755; z-index:19; }
.ai-panel { position:fixed; top:16px; bottom:16px; right:16px; width:min(440px,calc(100% - 32px)); background:var(--panel); border:1px solid var(--border); border-radius:24px; box-shadow:0 16px 60px #0003; z-index:20; display:flex; flex-direction:column; overflow:hidden; }
.ai-header { display:flex; align-items:center; gap:12px; padding:22px 20px 18px; }
.ai-avatar { display:grid; place-items:center; width:42px; height:42px; border-radius:15px; background:var(--accent); color:var(--accent-text); font-size:27px; }
.ai-header>div { flex:1; }
.ai-header strong { display:block; font-weight:600; font-size:17px; }
.ai-header small { display:block; color:var(--muted); font-size:10px; margin-top:3px; }
.ai-toolbar { display:flex; align-items:center; gap:8px; padding:12px 16px; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.ai-toolbar>span { flex:1; font-size:10px; color:var(--muted); }
.ai-toolbar>span.connected { color:var(--primary); }
.ai-messages { flex:1; min-height:0; overflow-y:auto; padding:20px; overscroll-behavior:contain; }
.ai-welcome { padding:35px 5px; text-align:center; }
.ai-welcome>span { display:grid; place-items:center; width:68px; height:68px; background:var(--soft); color:var(--primary); border-radius:24px; font-size:38px; margin:0 auto 22px; }
.ai-welcome h3 { margin:0 0 10px; font-size:22px; font-weight:500; letter-spacing:-.5px; }
.ai-welcome p { color:var(--muted); font-size:12px; line-height:1.8; }
.ai-example { margin-top:20px; padding:15px; text-align:left; border:1px solid var(--border); background:var(--soft); border-radius:16px; color:var(--primary); font-size:12px; }
.ai-message { padding:14px 16px; background:var(--soft); border-radius:18px 18px 18px 4px; margin:0 20px 16px 0; overflow-wrap:anywhere; }
.ai-message.user { margin-left:30px; margin-right:0; background:var(--accent); color:var(--accent-text); border-radius:18px 18px 4px 18px; }
.ai-message>small { font-size:10px; color:var(--muted); }
.ai-message>p { margin:6px 0 0; font-size:13px; line-height:1.8; white-space:pre-wrap; }
.ai-task-card { display:block; width:100%; text-align:left; background:var(--panel); color:var(--text); border:1px solid var(--border); border-radius:12px; padding:12px; margin-top:12px; }
.ai-task-card:hover { border-color:var(--primary); }
.ai-task-card strong { display:block; font-size:12px; font-weight:550; }
.ai-task-card small { display:block; color:var(--muted); font-size:10px; margin-top:5px; }
.ai-typing { font-size:12px; color:var(--muted); padding:8px 4px; }
.ai-compose { display:flex; align-items:flex-end; gap:10px; padding:16px 16px 6px; border-top:1px solid var(--border); }
.ai-compose textarea { flex:1; resize:none; padding:12px; background:var(--soft); font-size:12px; }
.ai-compose .btn { width:42px; height:42px; padding:0; font-size:22px; flex:none; }
.ai-footnote { text-align:center; font-size:9px; color:var(--muted); margin:4px 0 14px; }
.ai-error { color:var(--danger); font-size:12px; padding:12px 20px; background:color-mix(in srgb,var(--danger) 8%,var(--panel)); }
.ai-key-hint { font-size:11px; line-height:1.8; }
#aiSettingsDlg .dlg-actions { flex-wrap:wrap; }
#aiSettingsDlg .dlg-actions .btn { padding:8px 12px; font-size:12px; }
@media(max-width:560px) { .ai-open-btn { width:36px; height:36px; min-height:36px; padding:0; } .ai-open-btn>span:last-child { display:none; } .ai-panel { inset:0; width:100%; border-radius:0; } }

/* Notes: a separate, quiet space */
.topbar-note-label { flex:1; display:flex; align-items:center; gap:12px; padding:14px 18px; color:var(--muted); font-size:13px; }
.topbar-note-label>span { font-size:24px; color:var(--primary); }
.notes-nav { margin-top:10px; border-top:1px solid var(--border); padding-top:10px; }
.notes-wrap { flex:1; min-height:0; overflow-y:auto; padding:4px 4px 20px; }
.notes-tools { display:flex; gap:10px; align-items:center; margin:0 0 20px; }
.notes-tools input { flex:1; max-width:420px; }
.notes-tools .btn.primary { margin-left:auto; }
.notes-filters { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-bottom:24px; }
.notes-filters button { background:transparent; border:1px solid var(--border); color:var(--muted); border-radius:20px; padding:7px 13px; font-size:11px; }
.notes-filters button.active { background:var(--accent); color:var(--accent-text); border-color:transparent; }
.notes-filters>span { margin-left:auto; font-size:10px; }
.notes-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(235px,1fr)); gap:18px; align-items:start; }
.notes-grid>.empty-state { grid-column:1/-1; padding:90px 20px; }
.note-sand,.note-swatch.sand { --note-bg:#fff1b8; --note-line:#dacb89; }
.note-peach,.note-swatch.peach { --note-bg:#ffe0c4; --note-line:#dfb88f; }
.note-sage,.note-swatch.sage { --note-bg:#dbeddb; --note-line:#a7c4a7; }
.note-sky,.note-swatch.sky { --note-bg:#dbeafc; --note-line:#aec6e0; }
.note-lilac,.note-swatch.lilac { --note-bg:#e7dffa; --note-line:#c4b7df; }
.note-rose,.note-swatch.rose { --note-bg:#f8dfe5; --note-line:#dfb1bd; }
:root[data-theme=dark] .note-sand { --note-bg:#413b26; --note-line:#635b3e; }
:root[data-theme=dark] .note-peach { --note-bg:#493728; --note-line:#69503b; }
:root[data-theme=dark] .note-sage { --note-bg:#2d4034; --note-line:#465f4f; }
:root[data-theme=dark] .note-sky { --note-bg:#2b3b50; --note-line:#435a76; }
:root[data-theme=dark] .note-lilac { --note-bg:#3b334d; --note-line:#594d70; }
:root[data-theme=dark] .note-rose { --note-bg:#4a323b; --note-line:#6d4a58; }
.note-card { position:relative; min-height:240px; display:flex; flex-direction:column; background:var(--note-bg); border:1px solid var(--note-line); border-radius:8px 8px 24px 8px; padding:16px 20px 20px; cursor:pointer; box-shadow:0 5px 12px #20324d08; transition:transform .15s,box-shadow .15s; }
.note-card:hover { transform:translateY(-3px); box-shadow:0 8px 20px #20324d12; }
.note-card::after { content:''; position:absolute; bottom:0; right:0; width:22px; height:22px; background:color-mix(in srgb,var(--note-line) 45%,transparent); border-radius:8px 0 24px 0; }
.note-card-top { display:flex; align-items:center; justify-content:space-between; min-height:32px; }
.note-type-label { color:var(--muted); font-size:9px; font-weight:600; letter-spacing:1.2px; }
.note-pin { width:30px; height:30px; font-size:24px; opacity:.6; }
.note-pin.pinned { color:var(--primary); opacity:1; background:color-mix(in srgb,var(--primary) 12%,transparent); }
.note-card h3 { margin:14px 0 12px; font-size:17px; font-weight:550; letter-spacing:-.4px; overflow-wrap:anywhere; }
.note-content { font-size:12px; color:var(--text); white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.9; margin:0 0 24px; display:-webkit-box; -webkit-line-clamp:7; -webkit-box-orient:vertical; overflow:hidden; }
.note-card-foot { margin-top:auto; padding-top:12px; border-top:1px solid var(--note-line); }
.note-reminder,.note-date { font-size:10px; color:var(--muted); }
.note-reminder.due { color:var(--danger); font-weight:600; }
.notes-grid.notes-list { grid-template-columns:1fr; gap:10px; }
.notes-list .note-card { min-height:0; display:grid; grid-template-columns:46px minmax(0,1fr) 190px; gap:0 16px; border-radius:14px; padding:16px 20px; }
.notes-list .note-card::after { display:none; }
.notes-list .note-card-top { grid-row:1/3; flex-direction:column; align-self:center; }
.notes-list .note-card h3 { grid-column:2; margin:0 0 5px; font-size:14px; }
.notes-list .note-content { grid-column:2; margin:0; -webkit-line-clamp:2; }
.notes-list .note-card-foot { grid-column:3; grid-row:1/3; align-self:center; margin:0; border:0; padding:0; }
.note-dialog-heading { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
#noteDlg { width:min(560px,calc(100% - 24px)); }
.note-colors { border:0; padding:0; margin:8px 0 18px; display:flex; gap:10px; }
.note-colors legend { font-size:11px; color:var(--muted); margin-bottom:10px; }
.note-colors label { position:relative; margin:0; cursor:pointer; }
.note-colors input { position:absolute; opacity:0; width:30px; height:30px; margin:0; }
.note-swatch { display:block; width:30px; height:30px; border-radius:50%; background:var(--note-bg); border:1px solid var(--note-line); }
.note-colors input:checked+span { outline:2px solid var(--primary); outline-offset:3px; }
.note-colors input:focus-visible+span { outline:3px solid var(--primary); outline-offset:3px; }
.note-pin-label { display:flex; align-items:center; gap:9px; color:var(--text); }
.note-pin-label input { accent-color:var(--primary); width:17px; height:17px; margin:0; }
.note-reminder-form { background:var(--soft); border:1px solid var(--border); border-radius:16px; padding:16px; margin:20px 0; }
.note-reminder-form strong { font-size:12px; font-weight:550; }
.note-reminder-form p { font-size:10px; color:var(--muted); margin:5px 0 16px; }
.note-reminder-form label { margin-bottom:0; }
.reminder-stack { position:fixed; right:24px; bottom:24px; width:min(450px,calc(100% - 32px)); z-index:18; display:flex; flex-direction:column; gap:10px; }
.note-reminder-toast { display:flex; align-items:center; gap:12px; padding:18px; border-radius:18px; background:var(--panel); border:1px solid var(--border); box-shadow:0 8px 40px #0002; }
.reminder-icon { font-size:25px; color:var(--primary); }
.note-reminder-toast>div { flex:1; min-width:0; }
.note-reminder-toast small { display:block; font-size:8px; letter-spacing:.4px; color:var(--primary); }
.note-reminder-toast button[data-reminder-open] { background:none; border:0; padding:0; font-size:13px; font-weight:550; text-align:left; margin-top:6px; overflow-wrap:anywhere; }
.note-reminder-toast p { font-size:10px; margin:4px 0 0; color:var(--muted); overflow-wrap:anywhere; }
@media(max-width:560px) {
    .notes-tools { flex-wrap:wrap; }.notes-tools input { flex-basis:100%; }.notes-tools .btn { font-size:11px; padding:8px 13px; }
    .notes-filters>span { margin:7px 0 0; width:100%; }.notes-grid { grid-template-columns:1fr 1fr; gap:10px; }
    .note-card { padding:12px; min-height:220px; }.note-card h3 { font-size:14px; }.note-content { font-size:11px; }.note-reminder { font-size:9px; }
    .notes-list .note-card { grid-template-columns:30px minmax(0,1fr); padding:12px; gap:0 10px; }.notes-list .note-card-foot { grid-column:2;grid-row:3;margin-top:8px; }
    .reminder-stack { right:16px;bottom:16px; }.topbar-note-label { font-size:11px;padding:12px 4px; }
}

.note-card-foot { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; }
.note-complete-btn { display:inline-flex; align-items:center; justify-content:center; gap:5px; padding:5px 9px; border:1px solid var(--note-line); border-radius:16px; background:color-mix(in srgb,var(--panel) 40%,transparent); font-size:10px; color:var(--text); }
.note-complete-btn:hover { background:color-mix(in srgb,var(--panel) 75%,transparent); border-color:var(--primary); }
.note-complete-btn span { color:var(--primary); font-size:13px; }
.note-done h3 { text-decoration:line-through; text-decoration-color:var(--muted); }
.note-done .note-content { color:var(--muted); }
.note-complete-dialog { margin:-8px 0 20px; background:var(--soft); color:var(--primary); font-size:12px; min-height:34px; }
.notes-list .note-card-foot { display:flex; flex-direction:column; align-items:flex-start; gap:8px; }
@media(max-width:560px) { .note-complete-btn { padding:5px 8px; font-size:9px; } }
/* Planning, linked task notes and archive states */
.task-inline-note{background:var(--soft)}.task-subtasks{border-left-color:var(--border)}.habit-card,.weekly-chart,.weekly-habits,.weekly-stats article{background:var(--panel);border-color:var(--border)}.habit-mark{background:var(--accent);color:var(--accent-text)}.habit-day{border-color:var(--border);background:var(--soft)}.habit-day.checked{background:var(--primary);border-color:var(--primary);color:var(--primary-text)}.habit-day.checked span{color:inherit}.habit-progress{background:var(--hover)}.habit-progress i,.week-bars i{background:var(--primary)}.weekly-stats span,.weekly-habit,.section-toolbar p{color:var(--muted)}.note-reminder-toast{background:var(--panel);border-color:var(--border)}
.habit-actions{display:flex;gap:.5rem;flex-wrap:wrap}.habit-day:disabled{opacity:.4;cursor:not-allowed}
.task-description{color:var(--muted);font-size:.88rem;margin-top:.25rem}.task-inline-note{margin-top:.45rem;padding:.5rem .65rem;border-left:2px solid var(--accent);background:var(--surface-2);border-radius:0 .5rem .5rem 0;color:var(--muted);font-size:.86rem;white-space:pre-wrap}.task-subtasks{margin:.65rem 0 0 1rem;padding-left:.65rem;border-left:1px solid var(--line)}.task-subtasks .task{padding:.55rem 0;border:0;box-shadow:none}.task-tags,.note-tags{display:flex;flex-wrap:wrap;gap:.3rem;margin:.45rem 0}.task-tag{font-size:.75rem}.task-note-link{border:0;cursor:pointer}.section-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:1rem 0 1.4rem}.section-toolbar h2{margin:.2rem 0}.section-toolbar p{margin:.25rem 0;color:var(--muted)}.habits-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1rem}.habit-card,.weekly-chart,.weekly-habits{background:var(--surface);border:1px solid var(--line);border-radius:1rem;padding:1rem}.habit-card-head{display:flex;align-items:center;gap:.75rem}.habit-card-head>div{flex:1}.habit-card h3,.habit-card p{margin:.15rem 0}.habit-card p{color:var(--muted);font-size:.86rem}.habit-mark{width:2.5rem;height:2.5rem;display:grid;place-items:center;border-radius:.85rem;background:var(--accent-soft);color:var(--accent)}.habit-week{display:flex;justify-content:space-between;gap:.35rem;margin:1rem 0}.habit-day{border:1px solid var(--line);background:var(--surface-2);border-radius:.75rem;min-width:2.3rem;padding:.45rem .25rem;color:var(--text);cursor:pointer}.habit-day span,.habit-day b{display:block}.habit-day span{font-size:.7rem;color:var(--muted)}.habit-day.checked{background:var(--accent);border-color:var(--accent);color:#fff}.habit-day.checked span{color:#fff}.habit-progress{height:.4rem;background:var(--surface-2);border-radius:2rem;overflow:hidden}.habit-progress i{display:block;height:100%;background:var(--accent);border-radius:inherit}.weekly-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin:1rem 0}.weekly-stats article{padding:1.2rem;background:var(--surface);border:1px solid var(--line);border-radius:1rem}.weekly-stats strong,.weekly-stats span{display:block}.weekly-stats strong{font-size:1.7rem}.weekly-stats span,.weekly-habit{color:var(--muted)}.week-bars{height:180px;display:flex;align-items:end;justify-content:space-around;gap:.8rem;padding:1rem 0 .25rem}.week-bars>div{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:end;gap:.3rem;flex:1}.week-bars i{width:min(42px,70%);background:var(--accent);border-radius:.55rem .55rem .2rem .2rem;min-height:4px}.week-bars small,.week-bars span{color:var(--muted);font-size:.78rem}.weekly-habits{margin-top:1rem}.weekly-habit{display:grid;grid-template-columns:1fr auto;gap:.5rem;padding:.65rem 0}.weekly-habit .habit-progress{grid-column:1/-1}.habits-privacy{margin-top:1rem}.note-card-foot{flex-wrap:wrap}.note-card[role=button]{cursor:pointer}.note-card button{position:relative;z-index:1}.notes-tools #noteSearch{flex:1}.notes-filters{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem}.notes-filters .muted{margin-left:auto}.reminder-stack{position:fixed;right:1rem;bottom:1rem;z-index:30;display:grid;gap:.6rem;max-width:min(440px,calc(100vw - 2rem))}.note-reminder-toast{display:flex;gap:.7rem;align-items:center;padding:.85rem;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:1rem}.note-reminder-toast>div{flex:1;min-width:0}.note-reminder-toast p{margin:.2rem 0;font-size:.85rem;color:var(--muted)}.note-reminder-toast button[data-reminder-open]{display:block;border:0;background:none;color:var(--text);font-weight:650;text-align:left;cursor:pointer}.note-reminder-toast small{color:var(--muted)}@media(max-width:700px){.weekly-stats{grid-template-columns:1fr}.section-toolbar{align-items:flex-start;flex-direction:column}.notes-filters .muted{width:100%;margin:0}}

/* Sidebar refresh */
.sidebar { background:color-mix(in srgb,var(--panel) 70%,var(--bg)); border-color:var(--border); box-shadow:0 10px 30px #14243a0a; }
.sidebar { overflow:hidden; background:var(--sidebar-bg,var(--soft)); border-color:var(--sidebar-border,var(--border)); scrollbar-width:thin; scrollbar-color:color-mix(in srgb,var(--muted) 22%,transparent) transparent; }
.sidebar-scroll { scrollbar-width:thin; scrollbar-color:color-mix(in srgb,var(--muted) 22%,transparent) transparent; scrollbar-gutter:stable; }
.sidebar::-webkit-scrollbar,.sidebar-scroll::-webkit-scrollbar { width:6px; }
.sidebar::-webkit-scrollbar-track,.sidebar-scroll::-webkit-scrollbar-track { background:transparent; }
.sidebar::-webkit-scrollbar-thumb,.sidebar-scroll::-webkit-scrollbar-thumb { background:color-mix(in srgb,var(--muted) 20%,transparent); border:1px solid transparent; border-radius:10px; background-clip:padding-box; }
.sidebar::-webkit-scrollbar-thumb:hover,.sidebar-scroll::-webkit-scrollbar-thumb:hover { background:color-mix(in srgb,var(--muted) 42%,transparent); background-clip:padding-box; }
.sidebar nav button:hover,.sidebar .cat-row:hover { background:var(--sidebar-hover,var(--hover)); }
.sidebar .side-foot { border-color:var(--sidebar-border,var(--border)); }
.sidebar-scroll { flex:1; min-height:0; overflow-y:auto; padding:0 3px; }
.side-group { margin:0 0 13px; }
.side-head { min-height:28px; margin:8px 0 5px!important; padding:0 10px; color:var(--muted); font-size:9px; letter-spacing:.13em; }
.sidebar nav { gap:2px; }
.sidebar nav button,.sidebar .cat-row>button:first-child { position:relative; min-height:38px; padding:8px 10px; gap:10px; border-radius:11px; color:var(--muted); font-size:12px; transition:background .14s,color .14s,transform .14s; }
.sidebar nav button:hover,.sidebar .cat-row:hover { background:var(--hover); }
.sidebar nav button.active,.sidebar .cat-row.active>button:first-child { background:color-mix(in srgb,var(--primary) 13%,var(--sidebar-bg,var(--panel))); color:var(--primary); font-weight:650; }
.sidebar nav button.active::before,.sidebar .cat-row.active>button:first-child::before { content:''; position:absolute; left:0; top:9px; bottom:9px; width:3px; border-radius:4px; background:var(--primary); }
.sidebar .nav-icon { width:17px; height:17px; color:currentColor; }
.sidebar nav button small,.sidebar .cat-row small { margin-left:auto; min-width:22px; padding:2px 6px; border-radius:10px; background:color-mix(in srgb,var(--muted) 10%,transparent); color:var(--muted); text-align:center; font-size:10px; }
.sidebar .notes-nav { margin:0; padding:0; border:0; }
.sidebar .extra-nav { margin:0; padding:0; border:0; }
.sidebar .categories-group { margin-top:10px; padding-top:9px; border-top:1px solid var(--border); }
.sidebar .side-head .icon-btn { width:26px; height:26px; margin-right:0; border-radius:8px; background:var(--panel); border:1px solid var(--border); font-size:17px; }
.sidebar .cat-row { border-radius:11px; }
.sidebar .cat-row>.icon-btn { width:28px; height:28px; margin-right:2px; opacity:0; }
.sidebar .cat-row:hover .icon-btn,.sidebar .cat-row:focus-within .icon-btn { opacity:1; }
.sidebar #catList>button[data-cat] { color:var(--muted); }
.sidebar #catList>button[data-cat].active { background:color-mix(in srgb,var(--primary) 13%,var(--sidebar-bg,var(--panel))); color:var(--primary); font-weight:650; }
.sidebar #catList>button[data-cat]>span { flex:1; }
.sidebar .brand { padding:2px 8px 17px; font-size:20px; letter-spacing:-.6px; }
.sidebar .brand-mark { width:34px; height:34px; border-radius:12px; box-shadow:none; }
.sidebar .create-btn { align-self:stretch; justify-content:flex-start; margin:0 4px 13px; min-height:45px; padding:8px 15px; border-radius:12px; background:var(--primary); color:var(--primary-text); font-size:13px; font-weight:650; box-shadow:0 4px 12px color-mix(in srgb,var(--primary) 22%,transparent); }
.sidebar .create-btn>span { font-size:23px; }
.sidebar .side-foot { gap:8px; padding:13px 2px 0; border-color:var(--border); }
.sidebar .account-avatar { width:34px; height:34px; background:var(--accent); color:var(--accent-text); }
.sidebar .account-name { font-size:11px; }
.sidebar .side-foot .btn { border-radius:9px; background:transparent; }
.sidebar .side-foot .btn:hover { background:var(--hover); }
@media(max-width:900px) { .sidebar { width:284px; padding:22px 14px 15px; border-radius:0 18px 18px 0; } .sidebar .cat-row>.icon-btn { opacity:1; } }

.ai-quick-actions { display:grid; gap:8px; margin-top:16px; }
.ai-quick-actions .ai-example { width:100%; margin:0; padding:11px 13px; text-align:left; }
.ai-welcome>[data-ai-quick] { width:100%; }
.task-wizard-dialog { width:min(560px,calc(100% - 28px)); padding:30px; }
.wizard-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.wizard-top .eyebrow { margin:0; color:var(--primary); }
.wizard-progress { height:5px; overflow:hidden; border-radius:9px; background:var(--hover); margin-bottom:22px; }
.wizard-progress i { display:block; height:100%; width:25%; background:var(--primary); border-radius:inherit; transition:width .2s ease; }
.task-wizard-dialog h3 { margin:0 0 5px; }
.task-wizard-dialog #wizardHint { margin:0 0 22px; font-size:12px; }
.wizard-step { min-height:190px; }
.wizard-step[hidden] { display:none!important; }
.wizard-date-choice { display:flex; align-items:center; gap:12px; padding:14px; margin-bottom:18px; border:1px solid var(--border); border-radius:14px; background:var(--soft); }
.wizard-calendar-icon { display:grid; place-items:center; width:38px; height:38px; border-radius:12px; background:var(--accent); color:var(--accent-text); font-size:19px; }
.wizard-date-choice strong,.wizard-date-choice small { display:block; }
.wizard-date-choice small { margin-top:2px; color:var(--muted); font-size:11px; }
.wizard-review-card { padding:20px; border:1px solid var(--border); border-radius:16px; background:var(--soft); }
.wizard-review-card>span { display:block; margin-bottom:12px; color:var(--muted); font-size:9px; font-weight:650; letter-spacing:.12em; }
.wizard-review-card strong { display:block; font-size:18px; }
.wizard-review-card p { margin:8px 0 0; color:var(--muted); white-space:pre-wrap; }
.wizard-actions { margin-top:12px; }
.note-task-btn { display:inline-flex; align-items:center; justify-content:center; min-height:32px; padding:5px 10px; border:1px solid var(--note-line); border-radius:16px; background:color-mix(in srgb,var(--panel) 40%,transparent); color:var(--text); font-size:10px; font-weight:600; }
.note-task-btn:hover { border-color:var(--primary); background:color-mix(in srgb,var(--primary) 10%,var(--note-bg)); }
.ai-shortcuts { display:flex; gap:7px; padding:8px 18px 0; overflow-x:auto; }
.ai-shortcuts button { flex:none; padding:6px 10px; border:1px solid var(--border); border-radius:16px; background:var(--soft); color:var(--muted); font-size:10px; }
.ai-shortcuts button:hover { border-color:var(--primary); color:var(--primary); }
@media(max-width:560px) { .task-wizard-dialog { padding:22px 17px; } .wizard-step { min-height:0; } .wizard-actions { gap:6px; flex-wrap:wrap; } #taskDlg .dlg-actions { flex-wrap:wrap; } .ai-shortcuts { padding-inline:12px; } }

/* Bug list */
.bug-shortcut { margin:0 4px 12px; }
.bug-shortcut button { display:flex; align-items:center; gap:10px; width:100%; min-height:40px; padding:8px 11px; border:1px solid var(--border); border-radius:11px; background:var(--panel); color:var(--muted); text-align:left; font-size:12px; }
.bug-shortcut button:hover { color:var(--text); background:var(--hover); }
.bug-shortcut button.active { color:var(--primary); border-color:color-mix(in srgb,var(--primary) 35%,var(--border)); background:color-mix(in srgb,var(--primary) 10%,var(--panel)); }
.bug-shortcut button>span { flex:1; }
.bug-shortcut small { min-width:22px; padding:2px 6px; border-radius:10px; background:var(--soft); text-align:center; font-size:10px; }
.bugs-wrap { flex:1; min-height:0; overflow:auto; padding:4px 4px 28px; }
.bugs-wrap>.section-toolbar { margin:6px 0 20px; }
.bug-form { max-width:900px; margin:0 0 26px; padding:20px; border:1px solid var(--border); border-radius:18px; background:var(--panel); box-shadow:var(--shadow); }
.bug-form-fields { display:grid; grid-template-columns:minmax(0,1fr) 170px 140px; gap:16px; }
.bug-form label,.bug-edit-form label { margin-bottom:14px; }
.bug-form-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.bug-list-head { max-width:900px; display:flex; justify-content:space-between; align-items:center; gap:14px; margin-bottom:12px; }
.bug-list-head h3 { margin:0; font-size:15px; }
.bug-list-head .muted { font-size:11px; }
.bug-filters { display:flex; flex-wrap:wrap; gap:5px; }
.bug-filters button { padding:6px 10px; border:1px solid var(--border); border-radius:20px; background:var(--panel); color:var(--muted); font-size:11px; }
.bug-filters button.active { color:var(--primary); border-color:var(--primary); background:color-mix(in srgb,var(--primary) 9%,var(--panel)); }
.bug-filter-groups { display:grid; justify-items:end; gap:6px; }
.bug-tools { display:flex; max-width:900px; gap:10px; margin-bottom:14px; }
.bug-tools input { flex:1; }
.bug-tools select { width:220px; }
.bug-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,360px),1fr)); gap:12px; max-width:1100px; }
.bug-card { min-width:0; padding:16px; border:1px solid var(--border); border-radius:16px; background:var(--panel); box-shadow:var(--shadow); }
.bug-card-head { display:flex; align-items:center; gap:8px; }
.bug-id { color:var(--muted); font-family:ui-monospace,monospace; font-size:11px; font-weight:700; }
.bug-type { padding:4px 9px; border-radius:20px; background:var(--soft); font-size:10px; font-weight:650; }
.bug-type.type-bug { color:#d93025; background:color-mix(in srgb,#d93025 10%,var(--panel)); }
.bug-type.type-support { color:#b06000; background:color-mix(in srgb,#f9ab00 13%,var(--panel)); }
.bug-type.type-product { color:#137333; background:color-mix(in srgb,#188038 11%,var(--panel)); }
.bug-priority { padding:4px 8px; border-radius:20px; background:var(--soft); color:var(--muted); font-size:10px; font-weight:650; }
.bug-priority.priority-3 { color:var(--danger); background:color-mix(in srgb,var(--danger) 10%,var(--panel)); }
:root[data-theme=dark] .bug-type.type-bug { color:#f28b82; }
:root[data-theme=dark] .bug-type.type-support { color:#fdd663; }
:root[data-theme=dark] .bug-type.type-product { color:#81c995; }
.bug-card-head time { margin-left:auto; color:var(--muted); font-size:10px; }
.bug-card-body { min-height:76px; padding:12px 0 8px; }
.bug-card-body h3 { margin:0; font-size:14px; overflow-wrap:anywhere; }
.bug-card-body p { margin:7px 0 0; color:var(--muted); font-size:12px; white-space:pre-wrap; overflow-wrap:anywhere; }
.bug-card-actions { display:flex; justify-content:flex-end; gap:7px; border-top:1px solid var(--border); padding-top:11px; }
.bug-status-control { display:flex; align-items:center; gap:6px; margin:0 auto 0 0; font-size:10px; }
.bug-status-control select { padding:6px 9px; border-radius:9px; font-size:10px; }
.bug-edit-form { margin-top:12px; padding-top:14px; border-top:1px solid var(--border); }
.bug-edit-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.bug-edit-foot { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.bug-empty { grid-column:1/-1; display:grid; justify-items:center; padding:45px 20px; border:1px dashed var(--border); border-radius:18px; color:var(--muted); text-align:center; }
.bug-empty>span { display:grid; place-items:center; width:42px; height:42px; margin-bottom:12px; border-radius:50%; background:var(--soft); color:var(--primary); font-size:20px; }
.bug-empty strong { color:var(--text); }
.bug-empty p { margin:5px 0 0; font-size:12px; }
@media(max-width:720px) { .bug-form { padding:15px; }.bug-form-fields,.bug-edit-fields { grid-template-columns:1fr; gap:0; }.bug-list-head { align-items:flex-start; flex-direction:column; }.bug-filter-groups { justify-items:start; }.bug-tools { flex-direction:column; }.bug-tools select { width:100%; }.bug-shortcut { margin-top:-7px; } }
.wizard-shortcut { margin:-7px 4px 8px; }
.wizard-shortcut button { display:flex; align-items:center; width:100%; min-height:40px; padding:8px 15px; border:1px solid var(--primary); border-radius:12px; background:var(--primary); color:var(--primary-text); text-align:left; font-size:12px; font-weight:650; }
.wizard-shortcut button:hover { filter:brightness(.95); }
.schedule-summary { margin:-3px 0 16px; padding:10px 12px; border-radius:10px; background:var(--accent); color:var(--accent-text); font-size:12px; }
.schedule-end { margin:0 0 16px; color:var(--muted); font-size:11px; }
.schedule-end summary { cursor:pointer; padding:3px 0; }
.schedule-end label { margin:10px 0 0; }
#wizardReviewWhen { white-space:pre-line; }
@media(max-width:640px) { .topbar { flex-wrap:wrap; }.topbar .quick { order:3; flex-basis:100%; }.quick select { width:130px; max-width:36%; }.topbar .theme-toggle { margin-left:auto; } }


/* Günün Planı */
.dayplan-wrap { display:flex; flex-direction:column; gap:18px; padding-bottom:20px; }
.dayplan-hero { display:flex; justify-content:space-between; align-items:flex-end; gap:16px; flex-wrap:wrap; }
.dayplan-hero h2 { margin:0; font-size:1.65rem; }
.dayplan-actions { display:flex; gap:8px; flex-wrap:wrap; }
.dayplan-progress-wrap { background:var(--panel); border:1px solid var(--border); border-radius:16px; padding:14px 16px; }
.dayplan-progress-label { display:flex; gap:8px; align-items:baseline; margin-bottom:8px; font-size:13px; font-weight:600; }
.dayplan-progress { height:10px; background:var(--soft); border-radius:99px; overflow:hidden; }
.dayplan-progress i { display:block; height:100%; width:0; background:var(--primary); border-radius:99px; transition:width .25s ease; }
.dayplan-section-head { display:flex; align-items:baseline; gap:12px; margin:18px 0 10px; flex-wrap:wrap; }
.dayplan-section-head h3 { margin:0; font-size:1.05rem; }
.dayplan-section-head h3.late { color:var(--danger); }
.dayplan-overdue-list { display:flex; flex-direction:column; gap:8px; margin-bottom:8px; }
.dayplan-timeline { display:flex; flex-direction:column; gap:2px; background:var(--panel); border:1px solid var(--border); border-radius:16px; padding:8px 10px; }
.plan-hour { display:grid; grid-template-columns:72px 1fr; gap:10px; min-height:46px; padding:6px 8px; border-radius:10px; }
.plan-hour.now { background:var(--soft); }
.plan-hour-label { font-size:12px; color:var(--muted); font-variant-numeric:tabular-nums; padding-top:8px; }
.plan-hour-label small { display:block; font-size:9px; color:var(--primary); letter-spacing:.4px; text-transform:uppercase; }
.plan-hour-slots { display:flex; flex-direction:column; gap:6px; min-width:0; }
.plan-empty-slot { min-height:28px; border:1px dashed var(--border); border-radius:8px; opacity:.55; }
.plan-time-chip { display:inline-block; margin-left:6px; padding:1px 8px; border-radius:99px; background:var(--soft); border:1px solid var(--border); font-size:11px; color:var(--primary); font-weight:600; }
.plan-time-set { display:inline-flex; align-items:center; gap:6px; font-size:11px; color:var(--muted); margin:0; }
.plan-time-set select { padding:4px 8px; border-radius:8px; border:1px solid var(--border); background:var(--panel); font-size:12px; }
.dayplan-unplanned { margin-top:8px; }
@media(max-width:640px){ .plan-hour { grid-template-columns:52px 1fr; } .dayplan-hero { align-items:flex-start; } }