:root {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #eceef1;
    background: #08090b;
    color-scheme: dark;
    font-synthesis: none;
    --muted: #9a9fa9;
    --border: #272a30;
    --surface: #111316;
}

.workspace-pages { display: flex; gap: 6px; margin-bottom: 18px; }
.workspace-pages button { font-size: 13px; padding: 7px 14px; border-color: transparent; }
.workspace-pages button[aria-current="page"] { color: #ede4ff; background: #30273e; }
.knowledge-page { max-width: none; margin: 0; }
.knowledge-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; }
.knowledge-tools button, .knowledge-tools select { font-size: 13px; }
.knowledge-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; }
.knowledge-index { display: flex; flex-direction: column; gap: 5px; }
.knowledge-index button { text-align: left; white-space: normal; overflow-wrap: anywhere; border-color: transparent; }
.knowledge-index button[aria-current="page"] { background: #24202e; border-color: #51465f; }
.knowledge-index small { margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 400; }
.knowledge-index button { display: flex; align-items: flex-start; gap: 10px; }
.knowledge-entry-label { min-width: 0; }
.knowledge-index { align-self: stretch; padding-right: 14px; border-right: 1px solid var(--border); }
.knowledge-index button { width: 100%; min-height: 30px; padding: 5px 7px; background: transparent; color: #d7dbe2; font-size: 13px; font-weight: 400; }
.knowledge-index button:hover { background: #1c222d; }
.knowledge-tree-children { margin-left: 10px; padding-left: 9px; border-left: 1px solid #303541; }
.knowledge-tree-entry > span:last-child { overflow-wrap: anywhere; }
.knowledge-tree-entry .knowledge-icon { width: 16px; height: 18px; }
.knowledge-tree-entry .knowledge-icon svg, .knowledge-tree-entry .knowledge-icon img { width: 14px; height: 14px; }
.knowledge-tree-entry .knowledge-icon img { inset: 2px 1px; }
.knowledge-folder-row { display: flex; align-items: flex-start; }
.knowledge-folder-row > button > span { min-width: 0; overflow-wrap: anywhere; }
.knowledge-folder-row > button:last-child { flex: 1; min-width: 0; }
.knowledge-index .knowledge-folder-toggle { flex: 0 0 22px; width: 22px; padding: 5px 3px; color: #83a5d9; }
.knowledge-index .knowledge-new-collection button { width: auto; }
.knowledge-nav-heading, .knowledge-page-row { display: flex; align-items: flex-start; min-width: 0; position: relative; }
.knowledge-nav-heading > button:first-child, .knowledge-page-row > .knowledge-tree-entry { flex: 1; min-width: 0; }
.knowledge-nav-heading > button:last-child { width: 30px; flex: 0 0 30px; }
.knowledge-page-menu { flex: 0 0 26px; color: #a9b5c8; }
.knowledge-page-menu summary { cursor: pointer; list-style: none; padding: 4px; min-height: 30px; text-align: center; }
.knowledge-page-menu summary::-webkit-details-marker { display: none; }
.knowledge-page-menu[open] { position: absolute; right: 0; top: 0; width: 130px; z-index: 5; padding: 3px; border: 1px solid #465065; border-radius: 6px; background: #141a23; box-shadow: 0 5px 15px #0008; }
.knowledge-page-menu[open] summary { text-align: right; }
.knowledge-document .knowledge-text-action { padding: 0; min-height: 24px; border: 0; border-radius: 0; background: transparent; color: #9fb9d9; font-size: 12px; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
.knowledge-document .knowledge-text-action:hover { color: #d5e8ff; }
.knowledge-edit-title, .knowledge-edit-body { outline: none; white-space: pre-wrap; overflow-wrap: anywhere; }
.knowledge-edit-title:focus-visible, .knowledge-edit-body:focus-visible { outline: 1px solid #1b222c; outline-offset: 2px; border-radius: 3px; }
.knowledge-edit-title:empty::before, .knowledge-edit-body:empty::before { content: attr(data-placeholder); color: #788596; pointer-events: none; }
.knowledge-edit-title { min-width: 1ch; }
.knowledge-edit-body { min-height: 55svh; padding: 0; margin: 24px 0; line-height: 1.7; font-size: inherit; }
.knowledge-new-collection { display: flex; gap: 4px; margin-top: 10px; }
.knowledge-new-collection input { min-width: 0; width: 100%; font-size: 12px; padding: 6px; }
.knowledge-new-collection button { padding: 4px 8px; }
.knowledge-index .knowledge-drop { background: #30273e; border-color: #a387dd; }
.knowledge-library-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 4px; border: 0; border-bottom: 1px solid #252d38; border-radius: 0; background: transparent; text-align: left; color: inherit; font-size: 13px; }
.knowledge-library-row:hover { background: #171e28; }
.knowledge-library-row .knowledge-entry-label { flex: 1; }
.knowledge-library-row strong, .knowledge-library-row .knowledge-entry-label small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.knowledge-library-row small { color: var(--muted); font-size: 11px; font-weight: 400; margin-top: 3px; }
.knowledge-updated { flex-shrink: 0; }
.knowledge-pdf { width: 100%; height: 70svh; border: 1px solid var(--border); border-radius: 6px; }
.knowledge-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex-shrink: 0; color: #bca8d7; }
.knowledge-icon svg, .knowledge-icon img { width: 18px; height: 18px; }
.knowledge-icon img { position: absolute; inset: 3px; object-fit: contain; }
.knowledge-icon-pdf { font-size: 9px; font-weight: 700; color: #efa2b3; border: 1px solid #885266; border-radius: 3px; }
.knowledge-heading { display: flex; align-items: center; gap: 12px; }
.knowledge-heading > .knowledge-text-action { flex-shrink: 0; }
.knowledge-document { min-width: 0; max-width: 900px; padding: 8px 0 30px; }
.knowledge-document h1 { font-size: 26px; overflow-wrap: anywhere; }
.knowledge-document a { color: #bfa8e3; overflow-wrap: anywhere; }
.knowledge-markdown { line-height: 1.7; overflow-wrap: anywhere; margin: 24px 0; }
.knowledge-markdown h1, .knowledge-markdown h2, .knowledge-markdown h3 { color: #a6c8eb; margin: 1.2em 0 .5em; }
.knowledge-markdown p { margin: 0 0 1em; }
.knowledge-markdown ul, .knowledge-markdown ol { padding-left: 24px; }
.knowledge-markdown blockquote { margin-left: 0; padding-left: 16px; border-left: 3px solid #566b89; color: var(--muted); }
.knowledge-markdown pre { padding: 14px; background: #10141c; border-radius: 6px; overflow-x: auto; white-space: pre; }
.knowledge-markdown code { background: #171d28; padding: 2px 4px; border-radius: 3px; font-size: 13px; }
.knowledge-markdown pre code { padding: 0; background: transparent; }
.knowledge-files { border-top: 1px solid var(--border); padding-top: 16px; }
.knowledge-files h2 { font-size: 14px; }
.knowledge-files .muted { font-size: 12px; }
.knowledge-files button { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 650px) {
    .knowledge-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .knowledge-index { border-right: 0; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
}

.page-shell { min-height: 100svh; }
.workspace-bar { display: flex; align-items: center; gap: 20px; padding: 12px 24px; border-bottom: 1px solid var(--border); background: #0d0f12; }
.workspace-bar .brand { font-size: 19px; padding: 0; }
.workspace-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.workspace-actions a, .workspace-actions button { font-size: 13px; white-space: nowrap; }
.workspace-actions button { min-height: 34px; padding: 6px 10px; border: 0; }
.workspace-controls { display: flex; align-items: center; gap: 12px; min-width: 0; }
.workspace-controls #list-index { display: block; width: 220px; max-width: 35vw; color: inherit; background: #171a20; border: 1px solid var(--border); border-radius: 6px; padding: 8px; }
.workspace-controls details { position: relative; }
.workspace-controls summary { font-size: 13px; cursor: pointer; list-style: none; white-space: nowrap; }
.workspace-controls .new-list-form { position: absolute; z-index: 10; top: 22px; left: 0; width: 250px; padding: 14px; background: #171a20; border: 1px solid var(--border); border-radius: 8px; }
.page-shell .workspace { padding: 18px 24px; }
.page-shell .page-editor { padding: 0; }
.workspace-document .document-brief { margin-bottom: 12px; }
.document-brief summary { color: var(--muted); cursor: pointer; font-size: 12px; padding: 6px 0; }
.document-brief .item-field { font-size: 12px; color: var(--muted); }
.document-brief textarea { height: 62px; min-height: 40px; border-color: transparent; background: transparent; padding: 6px 0; font-size: 14px; }
.card-image { display: block; max-width: 100%; max-height: 260px; object-fit: contain; margin: 10px auto; }
.card-file { display: block; width: 100%; font-size: 12px; }
#settings-dialog #workspace-cog { margin-bottom: 16px; }
#workspace-drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(420px, 100vw); max-width: 100vw; height: 100svh; max-height: 100svh; border: 0; border-left: 1px solid var(--border); padding: 24px; background: #111418; color: inherit; }
#workspace-drawer[open] { animation: drawer-in .2s ease-out; }
#workspace-drawer::backdrop { background: rgb(0 0 0 / 45%); }
#workspace-drawer > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
#workspace-drawer .list-editor-header { display: grid; gap: 14px; }
#workspace-drawer .page-title { width: 100%; font-size: 20px; border-color: var(--border); }
#workspace-drawer .document-brief textarea { height: auto; border: 1px solid var(--border); padding: 10px; font-size: 16px; }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { #workspace-drawer[open] { animation: none; } }
.card-checklist { margin-top: 4px; }
.checklist-line, .checklist-add { display: flex; align-items: center; gap: 4px; min-height: 28px; }
.checklist-line { align-items: flex-start; }
.checklist-line input[type="checkbox"] { width: 14px; min-height: 14px; height: 14px; margin: 7px 4px 0; flex-shrink: 0; accent-color: #b8c4d9; }
.checklist-line .checklist-text, .checklist-add input { flex: 1; min-width: 0; padding: 4px 2px; min-height: 28px; border: 0; border-radius: 3px; background: transparent; font-size: 13px; }
.checklist-line .checklist-text { resize: none; overflow: hidden; line-height: 20px; white-space: pre-wrap; overflow-wrap: anywhere; }
.checklist-done .checklist-text { color: #777d87; text-decoration: line-through; }
.checklist-remove { padding: 0; width: 24px; min-height: 28px; border: 0; color: var(--muted); }
.completed-toggle { display: block; width: auto; min-height: 24px; padding: 2px 4px; margin-top: 4px; border: 0; background: transparent; color: var(--muted); font-size: 11px; }
.checklist-add input::placeholder { color: #797f89; }
@media (pointer: coarse) {
    .checklist-line, .checklist-add { min-height: 40px; }
    .checklist-line .checklist-text, .checklist-add input { min-height: 40px; font-size: 16px; }
    .checklist-remove { min-height: 40px; width: 32px; }
}
.workspace-document .add-item-form { margin-bottom: 12px; gap: 8px; }
@media (max-width: 700px) {
    .workspace-bar { flex-wrap: wrap; padding: 10px 14px; gap: 10px; }
    .workspace-controls { order: 3; width: 100%; }
    .workspace-controls #list-index { max-width: none; flex: 1; width: 0; }
    .workspace-controls .new-list-form { left: auto; right: 0; }
    .page-shell .workspace { padding: 14px; }
    .task-section-header { flex-wrap: wrap; }
    .workspace-document .add-item-form { flex-wrap: wrap; }
    .workspace-document .add-item-form > input { flex: 1; width: 0; }
}

.workspace-home { position: fixed; top: 14px; left: 14px; z-index: 20; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #353b45; border-radius: 8px; background: #171b21; color: #dce1e8; }
.workspace-home:hover { background: #202733; }
.header-menu { position: fixed; top: 14px; left: 62px; z-index: 20; }
.header-menu > summary, .workspace-add-tools > summary { display: grid; place-items: center; width: 40px; height: 40px; list-style: none; cursor: pointer; border: 1px solid #353b45; border-radius: 8px; background: #171b21; color: #dce1e8; font-size: 20px; box-shadow: 0 4px 16px #0004; }
.header-menu > summary::-webkit-details-marker, .workspace-add-tools > summary::-webkit-details-marker { display: none; }
.header-menu .workspace-bar { position: absolute; top: 48px; left: 0; width: max-content; max-width: calc(100vw - 28px); max-height: calc(100svh - 90px); overflow-y: auto; display: flex; flex-direction: column; align-items: stretch; padding: 8px; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 40px #0008; }
.header-menu .workspace-actions { margin: 0; display: grid; gap: 4px; }
.header-menu .workspace-actions a, .header-menu .workspace-actions button { display: block; width: 100%; padding: 9px 10px; text-align: left; border-radius: 5px; }
.page-shell:not(:has(#vault-content)) .workspace { padding-top: 76px; }
.page-shell:has(#vault-content) > .workspace { padding: 0; }
.page-shell:has(#vault-content) #vault { margin: 80px auto 24px; width: min(560px, calc(100% - 32px)); }
.page-shell:has(#vault-content) .workspace-welcome { padding: 100px 24px; margin: auto; }
#vault-content #list-status { position: fixed; bottom: 14px; left: 14px; z-index: 10; }
.archive-card { display: block; width: 100%; min-height: 32px; margin-top: 8px; padding: 6px 10px; border: 1px solid #b68ae8; border-radius: 5px; color: #f8f1ff; background: #7542a3; font-size: 12px; }
.archive-card:hover { background: #9254c8; }
.workspace-archive { margin-top: 24px; }
.workspace-archive summary { cursor: pointer; color: var(--muted); font-size: 14px; padding: 10px 0; }
.archive-entry { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.archive-entry span { min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.workspace-status { position: fixed; bottom: 14px; left: 14px; z-index: 10; display: flex; align-items: center; gap: 8px; }
#vault-content .workspace-status > #list-status { position: static; max-width: none; }
.workspace-status button { min-height: 24px; padding: 2px 6px; font-size: 11px; background: #18151e; color: #c4b1e0; border: 1px solid #494052; }
#task-log { width: min(700px, calc(100vw - 24px)); max-height: 85svh; padding: 20px; background: #111418; color: #eee; border: 1px solid #494052; border-radius: 10px; }
#task-log header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#task-log select { width: 100%; min-height: 38px; background: #20202a; color: inherit; border: 1px solid #494052; border-radius: 5px; }
.audit-row { display: grid; grid-template-columns: 105px minmax(0, 1fr) 52px; align-items: start; gap: 8px; padding: 8px 0; border-bottom: 1px solid #29303b; font-size: 12px; }
.audit-row time { font-size: 11px; color: var(--muted); padding-top: 3px; }
.audit-description { display: grid; gap: 2px; overflow-wrap: anywhere; }
.audit-description strong { font-weight: 500; }
.audit-description span { font-size: 11px; color: var(--muted); }
.audit-row .small-button { min-height: 26px; padding: 3px 6px; font-size: 11px; }
.audit-row button:disabled { cursor: default; opacity: .3; }
@media (max-width: 500px) { .audit-row { grid-template-columns: 72px minmax(0, 1fr) 44px; gap: 6px; } }
.item-details input[type="color"] { padding: 3px; height: 34px; }
.item-details select { width: 100%; min-height: 34px; color: inherit; background: #111418; border: 1px solid var(--border); border-radius: 4px; }
.main-card .item-top .item-text { font-size: 18px; font-weight: 600; line-height: 24px; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, input { min-height: 46px; border-radius: 8px; }
input, textarea { width: 100%; padding: 12px 14px; border: 1px solid #353942; background: #0a0c0f; color: inherit; font-size: 16px; }
textarea { border-radius: 8px; resize: vertical; overflow-wrap: anywhere; }
input::placeholder { color: #969ca6; }
button { cursor: pointer; padding: 12px 20px; border: 1px solid #e1e5eb; background: #e1e5eb; color: #111316; font-weight: 600; }
button:hover { background: #303846; color: #e4eaf2; }
button:disabled { opacity: .6; cursor: wait; }
.secondary { background: transparent; color: #d7dbe2; border-color: #353942; white-space: nowrap; }
.secondary:hover { background: #22262d; }
:focus-visible { outline: 3px solid #9ab5f1; outline-offset: 3px; }
h1 { margin: 0; font-size: 30px; font-weight: 600; letter-spacing: -.8px; }
h2 { margin: 0; font-size: 18px; font-weight: 550; }
.muted { color: var(--muted); line-height: 1.6; margin: 0; overflow-wrap: anywhere; }
.form-error { font-size: 14px; line-height: 1.5; color: #ff9e9e; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.login-page { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 24px; }
.login-box { display: grid; gap: 14px; width: min(100%, 360px); padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.mobile-login-qr { display: block; width: min(100%, 320px); height: auto; }
.qr-camera { display: block; width: 100%; border-radius: 8px; background: #000; }
.settings-grid.device-pairing { display: block; max-width: 520px; margin: 0 auto; }
.device-pairing > :not(#devices) { display: none; }
.device-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.device-row span { min-width: 0; overflow-wrap: anywhere; }

.app-shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 32px 20px 24px; display: flex; flex-direction: column; gap: 40px; border-right: 1px solid var(--border); background: #0d0f12; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 12px; font-size: 23px; font-weight: 650; letter-spacing: -.7px; }
.brand-dot { width: 7px; height: 7px; border-radius: 50%; background: #b8c4d9; }
.nav-links { display: grid; gap: 8px; }
.nav-links a { padding: 13px 14px; border-radius: 8px; color: var(--muted); }
.nav-links a:hover { background: #171a20; color: #fff; }
.nav-links a[aria-current="page"] { background: #242830; color: #fff; }
.sidebar-account { margin-top: auto; display: grid; gap: 18px; }
.account-email { font-size: 13px; padding: 0 4px; }
.sidebar-account button { width: 100%; }
.workspace { min-width: 0; padding: 38px clamp(24px, 3vw, 64px); }
.page-header { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--border); }
.card { min-width: 0; padding: 28px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.count { font-size: 40px; font-weight: 500; margin: 20px 0 0; }
.vault { margin-bottom: 24px; }
.vault-form { display: grid; gap: 14px; max-width: 560px; margin: 12px auto; }
.vault-form label, .settings-form label { font-size: 14px; }
.sidebar-vault button { min-height: 36px; padding: 8px 12px; text-align: left; font-size: 13px; color: var(--muted); border: 0; }
#vault-status { text-align: center; line-height: 1.6; }
#recovery-output { font-family: monospace; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
.section-description { margin: 12px 0 26px; font-size: 14px; }
.settings-form { display: grid; gap: 12px; }
.settings-form button { margin-top: 12px; justify-self: start; }
.settings-form select { min-height: 44px; padding: 10px 12px; border: 1px solid #353942; border-radius: 8px; background: #0a0c0f; color: inherit; }
#settings-dialog { width: min(1100px, calc(100% - 24px)); max-height: calc(100svh - 24px); padding: 20px; border: 1px solid var(--border); border-radius: 12px; background: #08090b; color: inherit; }
#settings-dialog::backdrop { background: rgb(0 0 0 / 75%); }
#settings-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
th { color: var(--muted); font-weight: 500; }
td, th { padding: 14px 12px; border-bottom: 1px solid var(--border); }
td:first-child, th:first-child { padding-left: 0; }
td { vertical-align: top; }
.ip-address { font-family: monospace; overflow-wrap: anywhere; }
.sidebar:has(.sidebar-lists) { gap: 24px; }
.sidebar-lists { min-height: 0; overflow-y: auto; }
.sidebar-lists summary { cursor: pointer; padding: 8px 12px; color: var(--muted); font-size: 13px; list-style: none; }
.sidebar-lists summary::-webkit-details-marker { display: none; }
.sidebar-lists summary:hover { color: #eceef1; }
.sidebar-lists .list-choice { border: 0; border-left: 2px solid transparent; border-radius: 0; min-height: 34px; font-size: 14px; font-weight: 400; padding: 7px 12px; color: var(--muted); }
.sidebar-lists .list-choice[aria-current] { border-left-color: #b8c4d9; color: #eceef1; background: #171a20; }
.sidebar-lists .list-choice span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-lists .muted { font-size: 12px; }
.new-list-form { display: grid; gap: 8px; margin: 12px 0; }
#add-list-panel { width: min(380px, calc(100vw - 32px)); padding: 18px; border: 1px solid var(--border); border-radius: 10px; background: #111418; color: inherit; }
#add-list-panel::backdrop { background: #0009; }
#add-list-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#add-list-panel h2 { margin: 0; font-size: 18px; }
.new-list-form input, .new-list-form button { min-height: 36px; padding: 7px 10px; }
#list-index { display: grid; gap: 2px; }
.list-choice { display: grid; gap: 2px; text-align: left; background: transparent; color: inherit; border: 1px solid var(--border); padding: 8px 10px; overflow-wrap: anywhere; }
.list-choice:hover, .list-choice[aria-current] { background: #242830; }
.list-choice small { font-weight: 400; }
#vault-content { position: relative; }
#list-status { position: absolute; bottom: 12px; left: 12px; z-index: 6; max-width: min(60%, 560px); font-size: 11px; line-height: 1.4; color: var(--muted); margin: 0; padding: 3px 6px; border-radius: 4px; background: #0c0e11e8; pointer-events: none; }
#list-status:empty { display: none; }
.page-editor { min-width: 0; padding: 4px 12px; }
.nav-section-label, .eyebrow { color: var(--muted); font-size: 10px; letter-spacing: 1.2px; font-weight: 600; }
.nav-section-label { padding: 0 14px; margin: 0 0 10px; }
.project-tasks { min-width: 0; }
.task-section-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.task-section-header h2 { font-size: 14px; }
.task-section-header .muted { font-size: 12px; }
.workspace-welcome { padding: 48px 0; max-width: 520px; }
.workspace-welcome h2 { font-size: 30px; margin: 14px 0; }
.welcome-workspaces { display: grid; gap: 8px; margin-top: 8px; }
.welcome-workspaces button { width: 100%; text-align: left; overflow-wrap: anywhere; }
.welcome-workspace-row { display: flex; align-items: center; gap: 12px; padding-left: 12px; border: 1px solid #292f39; border-radius: 7px; background: #11161d; }
.welcome-workspace-row > input { width: 16px; height: 16px; min-height: 16px; flex-shrink: 0; margin: 0; accent-color: #a58bd5; }
.welcome-workspace-row > button { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; padding: 12px; border: 0; text-align: left; }
.welcome-workspace-name { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.welcome-workspace-row .urgent-count { margin-left: auto; flex-shrink: 0; }
.welcome-urgent { margin-top: 20px; }
.welcome-urgent > button { color: #ed9aaf; }
.urgent-count, .workspace-view-bar .urgent-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 4px; margin-left: 7px; border-radius: 999px; background: #9e586f; color: #fff; font-size: 10px; font-weight: 600; vertical-align: middle; line-height: 1; }
.welcome-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.welcome-actions a { color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.welcome-actions a:hover, .welcome-actions a:focus-visible { color: #eceef1; }
.workspace-view-bar { position: fixed; z-index: 12; top: 14px; left: 110px; right: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none; }
.workspace-view-bar span { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-view-bar button { pointer-events: auto; min-height: 36px; white-space: nowrap; }
.workspace-tabs { display: flex; flex: 1; min-width: 0; gap: 4px; overflow-x: auto; pointer-events: auto; }
.workspace-tab { flex-shrink: 0; padding: 6px 10px; border: 1px solid transparent; border-radius: 6px; background: #11161d; color: #98a6b9; font-size: 13px; touch-action: pan-y; user-select: none; }
.workspace-tab.tab-dragging { opacity: .6; cursor: grabbing; }
.workspace-tab.tab-drop-before { box-shadow: inset 3px 0 #b899ed; }
.workspace-tab.tab-drop-after { box-shadow: inset -3px 0 #b899ed; }
.workspace-tab[aria-current="page"] { border-color: #526786; background: #243247; color: #edf2fa; }
.workspace-urgent-tab { color: #ed9aaf; }
.workspace-urgent-tab[aria-current="page"] { background: #38202d; border-color: #9e586f; }
.all-urgent { min-height: 100svh; padding: 82px 24px 64px; background: #090c10; }
.all-urgent .workspace-view-bar, .workspace-index-bar { left: 110px; }
.all-urgent h1 { font-size: 22px; margin: 0 0 24px; }
.urgent-workspace { max-width: 1100px; margin-bottom: 28px; }
.urgent-workspace h2 { color: #c7a6b7; font-size: 14px; margin: 0 0 8px; }
.urgent-workspace-heading { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.urgent-workspace-heading h2 { margin: 0; }
.urgent-workspace-heading > .task-drag { opacity: .7; }
.all-urgent-task { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid #29303b; }
.all-urgent-task > input { width: 16px; height: 16px; min-height: 16px; flex-shrink: 0; accent-color: #c788a1; }
.all-urgent-task > div { flex: 1; min-width: 0; }
.all-urgent-task p { margin: 3px 0 0; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.urgent-context { color: #929bab; font-size: 11px; overflow-wrap: anywhere; }
.all-urgent-children { margin: 0 0 12px 24px; padding-left: 12px; border-left: 1px solid #344050; }
.all-urgent-subtask { display: flex; align-items: flex-start; gap: 10px; padding: 7px 4px; font-size: 13px; }
.all-urgent-subtask input { flex-shrink: 0; width: 16px; height: 16px; min-height: 16px; accent-color: #c788a1; }
.all-urgent-subtask span { white-space: pre-wrap; overflow-wrap: anywhere; min-width: 0; }
.all-urgent-subtask.is-urgent { color: #eda6b8; }
.all-urgent-subtask.checklist-done span { text-decoration: line-through; color: #777d87; }
.all-urgent-task.checklist-done p { text-decoration: line-through; color: #777d87; }
.urgent-add { max-width: 600px; }
.urgent-page { padding: 74px 18px 60px; }
.urgent-page h1 { font-size: 15px; margin-bottom: 12px; }
.urgent-lane { min-height: 90px; padding: 12px; margin-bottom: 18px; border: 1px solid #30232c; border-radius: 7px; }
.working-lane { min-height: 0; background: #101a27; border-color: #304d70; }
.working-lane > h1 { color: #9fc8fb; }
.calendar-section { padding: 12px; margin-bottom: 18px; border: 1px solid #654b70; border-radius: 7px; background: #211927; }
.telegram-sharing-dot { display: block; flex: 0 0 8px; margin: 9px 4px 0; }
.telegram-sharing-dot::before { content: ''; display: block; width: 8px; height: 8px; background: #229ed9; border-radius: 50%; }
.board-project.board-folded .telegram-sharing-dot { display: block; width: 8px; margin: 8px auto 0; padding: 0; }
.calendar-section h1, .calendar-section h2 { color: #dfb6ed; font-size: 14px; margin: 0 0 12px; }
.calendar-section h2 { margin-top: 20px; font-size: 12px; }
.calendar-section > p { font-size: 12px; }
.calendar-row { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; font-size: 13px; }
.calendar-row > .telegram-sharing-dot { margin: 4px 0 0; }
.calendar-row > input, .calendar-show-done input { width: 14px; height: 14px; min-height: 14px; flex-shrink: 0; accent-color: #c394d7; }
.calendar-time { flex: 0 0 52px; color: #dfb6ed; }
.calendar-row-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.calendar-item-open { text-align: left; padding: 0; min-height: 0; border: 0; background: transparent; color: inherit; font-size: inherit; font-weight: inherit; white-space: normal; }
.calendar-item-open:hover { background: transparent; color: #dfb6ed; }
.calendar-row:has(.calendar-row-edit:not([hidden])) { flex-wrap: wrap; }
.calendar-row-edit:not([hidden]) { flex-basis: 100%; padding-left: 24px; }
.calendar-date-open { text-align: left; background: transparent; border: 0; min-height: 0; padding-top: 2px; padding-bottom: 2px; font-weight: normal; }
.checklist-calendar-edit { flex-basis: 100%; padding-left: 38px; }
.calendar-row-text small { display: block; color: var(--muted); font-size: 11px; margin-bottom: 3px; }
.calendar-row.checklist-done .calendar-row-text > span { text-decoration: line-through; color: var(--muted); }
.calendar-show-done { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.calendar-row-edit summary { cursor: pointer; color: #d8b0e7; font-size: 12px; }
.calendar-fields { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.calendar-fields input, .calendar-fields select { width: auto !important; flex: 1 1 110px !important; min-width: 0; font-size: 12px; padding: 6px; }
.calendar-choices { display: flex; flex-wrap: wrap; gap: 4px; width: 100%; }
.calendar-choices button { font-size: 12px; }
.calendar-edit { display: grid; gap: 6px; padding: 8px 0; max-width: 280px; }
.calendar-edit button { padding: 6px; font-size: 12px; }
.checklist-add, .urgent-add { flex-wrap: wrap; }
.task-date { color: #d7a9e7; font-size: 11px; flex-basis: 100%; padding-left: 38px; }
.checklist-line:has(.task-date) { flex-wrap: wrap; }
.workspace-view-bar .calendar-button { flex-shrink: 0; width: 36px; padding: 0; font-size: 24px; }
.today-count { color: #dfb6ed; font-size: 13px; }
@media (max-width: 600px) {
    .calendar-row { flex-wrap: wrap; }
    .calendar-row-edit { margin-left: 24px; }
}
.working-lane > h1:only-child { margin: 0; }
.urgent-page .working-lane .urgent-workspace { background: #142133; border-left-color: #578dcc; }
.urgent-page .working-lane .urgent-workspace h2 { color: #9fc8fb; }
.urgent-page .working-lane .all-urgent-children { border-color: #345276; }
.working-lane input[type="checkbox"] { accent-color: #82b3ed; }
.urgent-lane.task-drop-inside { outline: 2px solid #82b3ed; outline-offset: 2px; background: #182b43 !important; }
.urgent-lane.task-drop-inside::after { background: #82b3ed; }
.urgent-page .urgent-workspace { margin-bottom: 14px; padding: 8px 12px; border-left: 2px solid #96566a; background: #171319; }
.urgent-page .urgent-workspace h2 { font-size: 13px; margin-bottom: 4px; color: #fa8d9d; }
.urgent-page .all-urgent-task { gap: 6px; padding: 2px 0; border-bottom: 0; min-height: 30px; }
.urgent-page .all-urgent-task > div { padding: 4px 0; font-size: 13px; line-height: 20px; }
.urgent-page .all-urgent-task p { display: inline; margin: 0; font-size: inherit; }
.urgent-page .urgent-context { font-size: inherit; }
.urgent-page .urgent-context:not(:empty)::after { content: ' – '; }
.urgent-page .all-urgent-task > input, .urgent-page .all-urgent-subtask input { width: 14px; height: 14px; min-height: 14px; margin: 6px 2px 0; }
.urgent-page .all-urgent-task > .small-button { min-height: 26px; padding: 3px 6px; font-size: 11px; background: transparent; }
.urgent-page .all-urgent-children { margin: 0 0 4px 22px; padding-left: 10px; border-color: #51303d; }
.urgent-page .all-urgent-subtask { gap: 6px; padding: 0; margin: 0; min-height: 26px; line-height: 20px; }
.urgent-page .all-urgent-subtask span { padding-top: 3px; }
.urgent-page .urgent-add { margin: 2px 0 4px; }
.urgent-page .urgent-add input, .urgent-page .urgent-add button { min-height: 26px; padding: 3px 6px; font-size: 13px; border-color: transparent; background: transparent; }
.urgent-page .urgent-add:focus-within input { border-color: #51303d; }
.workspace-view-bar .cleanup-clock { flex-shrink: 0; width: 36px; padding: 0; font-size: 25px; line-height: 1; }
.workspace-view-bar .history-button { flex-shrink: 0; width: 36px; padding: 0; font-size: 24px; line-height: 1; }
.audit-row.audit-readonly { grid-template-columns: 105px minmax(0, 1fr); }
.completion-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid #29303b; font-size: 12px; }
.completion-row > span { flex: 1; min-width: min(230px, 100%); overflow-wrap: anywhere; }
.completion-row time { color: var(--muted); font-size: 11px; }
@media (max-width: 500px) { .audit-row.audit-readonly { grid-template-columns: 72px minmax(0, 1fr); } }
.cleanup-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.cleanup-filters select { min-height: 36px; padding: 6px 10px; color: inherit; background: #141a22; border: 1px solid #344050; border-radius: 6px; }
.cleanup-filters span, .cleanup-help { font-size: 12px; }
.cleanup-help { margin-bottom: 24px; }
.cleanup-task { flex-wrap: wrap; }
.cleanup-task > .cleanup-actions { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 6px; }
.cleanup-task > div:first-child { min-width: min(230px, 100%); }
.cleanup-actions button { padding: 5px 9px; font-size: 12px; }
.task-drag { flex-shrink: 0; width: 18px; min-height: 26px; padding: 0; border: 0; background: transparent; color: #6c7c90; font-size: 16px; cursor: grab; touch-action: none; }
.task-dragging { opacity: .65; }
.task-drop-before { box-shadow: inset 0 2px #ad8fdf; }
.task-drop-after { box-shadow: inset 0 -2px #ad8fdf; }
.task-drop-inside { position: relative; outline: 2px solid #b69ae5; background: #211c2e !important; }
.task-drop-inside::after { content: attr(data-drop-label); position: absolute; left: 0; bottom: 100%; z-index: 20; max-width: 100%; padding: 4px 7px; border-radius: 4px; background: #b69ae5; color: #161020; font-size: 11px; pointer-events: none; }
.task-tools { display: inline-flex; flex-shrink: 0; }
.task-tools-trigger { width: 26px; min-height: 26px; padding: 0; background: transparent; border: 0; color: #a9b5c8; font-size: 18px; }
.task-tools-menu { position: fixed; inset: auto; margin: 0; width: 210px; padding: 6px; border: 1px solid #465065; border-radius: 8px; background: #141a23; color: #dbe5f3; box-shadow: 0 8px 24px #0008; }
.task-tools-menu:popover-open { display: grid; gap: 4px; }
.task-tools-menu button { min-height: 32px; padding: 5px 8px; border: 0; text-align: left; font-size: 12px; background: transparent; }
.task-tools-menu button:hover { background: #283144; }
.task-menu-label { padding: 4px 8px 0; font-size: 11px; color: var(--muted); }
.task-menu-priorities { display: flex; gap: 2px; }
.task-menu-priorities button { flex: 1; text-align: center; }
.task-menu-priorities button[aria-pressed="true"] { background: #353047; color: #dfc8ff; }
.task-tools-menu .danger { border-top: 1px solid #303744; border-radius: 0; }
.board-frame, .knowledge-frame { background: #090c10; }
.card-frozen-items { margin: 0 12px 10px; }
.card-frozen-items ul { margin: 6px 0 0; padding-left: 18px; color: #a5bacb; font-size: 12px; overflow-wrap: anywhere; }
.card-frozen-items li { display: flex; align-items: flex-start; gap: 8px; padding: 3px 0; }
.card-frozen-items li > span { flex: 1; min-width: 0; }
.frozen-item-thaw { flex-shrink: 0; min-height: 0; padding: 0; border: 0; background: transparent; color: #8dc8f0; font-size: 11px; font-weight: 400; }
.frozen-item-thaw:hover { background: transparent; color: #c3e6ff; text-decoration: underline; }
.board-folded > .card-frozen-items { display: none; }
.frozen-items-link { cursor: pointer; padding: 4px 0; color: #8dc8f0; font-size: 12px; font-weight: 400; }
.frozen-items-link:hover { background: transparent; color: #c3e6ff; text-decoration: underline; }
#vault-content .board-frame { position: relative; min-height: 100svh; }
.board-frame > .workspace-view-bar, .board-frame > .workspace-add-tools { position: fixed; }
.project-board, .knowledge-frame { min-height: 100svh; display: flex; flex-direction: column; padding: 74px 18px 60px; }
.knowledge-page { width: 100%; }
.board-columns { display: flex; gap: 14px; flex: 1; min-height: 160px; overflow-x: auto; align-items: flex-start; padding-bottom: 8px; }
.board-project { flex: 0 0 min(360px, calc(100vw - 32px)); margin: 0; border: 1px solid #303744; border-radius: 8px; background: #11161d; }
.board-project-header { position: sticky; top: 0; z-index: 2; padding: 10px 12px 10px 32px; border-bottom: 1px solid #262e39; background: #141a22; }
.project-column-move { position: absolute; top: 13px; left: 8px; width: 20px; min-height: 26px; padding: 0; border: 0; background: transparent; color: #66778d; font-size: 18px; cursor: grab; touch-action: none; }
.column-dragging { outline: 2px solid #a387dd; opacity: .8; }
.column-drop-before { border-left: 3px solid #c4a4ff; }
.column-drop-after { border-right: 3px solid #c4a4ff; }
.project-board > .board-urgent { flex-shrink: 0; }
.urgent-entry { display: flex; align-items: flex-start; }
.urgent-check { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 13px; }
.urgent-check input { width: 14px; height: 14px; min-height: 14px; margin: 5px; accent-color: #ce8197; }
.urgent-check.checklist-done span { text-decoration: line-through; color: #857681; }
.urgent-subitems { margin-left: 22px; padding-left: 10px; border-left: 1px solid #51303d; }
.urgent-subitems:empty { display: none; }
.board-project.board-folded { flex-basis: 64px; height: 100%; min-height: 220px; overflow: hidden; }
.board-project.board-folded .board-project-header { position: relative; padding: 40px 8px 8px; border-bottom: 0; }
.board-project.board-folded .project-column-move { left: 20px; top: 10px; }
.board-project.board-folded .item-top { display: block; }
.board-project.board-folded .item-action { display: none; }
.board-project.board-folded .task-tools { display: none; }
.board-project.board-folded .board-title { writing-mode: vertical-rl; text-orientation: mixed; min-height: 140px; max-height: 40vh; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-board > .board-add { flex-shrink: 0; }
.board-project-header h2 { font-size: 18px; margin: 0; }
.board-project-header .card-checklist:not(:has(.checklist-line)) { display: none; }
.board-project-header .item-top .item-text { font-size: 18px; font-weight: 600; }
.board-title { flex: 1; min-width: 0; padding: 4px; border: 0; background: transparent; color: inherit; text-align: left; font-size: 14px; min-height: 30px; white-space: pre-wrap; overflow-wrap: anywhere; }
.collapsed-urgent-dot { flex-basis: 100%; padding: 0 0 4px 28px; }
.collapsed-urgent-dot::before { content: ''; display: block; width: 8px; height: 8px; border-radius: 50%; background: #f06b7d; }
.board-project.board-folded .collapsed-urgent-dot { display: block; width: 8px; margin: 8px auto 0; padding: 0; }
.board-project-header .board-title { font-size: 15px; font-weight: 600; }
.board-folded > .board-add, .board-folded > .board-lanes, .board-folded > .board-subitems, .board-folded > .list-item > :not(.item-top), .board-folded > .board-project-header .list-item > :not(.item-top) { display: none !important; }
.board-urgent { padding: 8px 12px; margin-bottom: 10px; border: 0; border-left: 2px solid #96566a; border-radius: 0; background: #171319; }
.board-urgent h2 { margin: 0 0 8px; color: #fa8d9d; font-size: 13px; }
.urgent-task { display: block; width: 100%; min-height: 30px; padding: 5px; text-align: left; font-size: 13px; color: #e4d6dd; border: 0; background: transparent; overflow-wrap: anywhere; }
.board-lanes { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
.board-lane { min-width: 0; padding: 12px 10px 4px; border-bottom: 0; }
.board-lane:last-child { border-right: 0; }
.board-lane > h3 { margin: 0 0 6px; font-size: 10px; letter-spacing: .5px; text-transform: uppercase; opacity: .8; }
.priority-urgent > h3 { color: #fa8d9d; }
.priority-normal > h3 { color: #95b8f3; }
.priority-low > h3 { color: #94b7a3; }
.board-branch { margin-bottom: 8px; }
.project-board .list-item { border: 0; border-bottom: 1px solid #232d3a; border-radius: 3px; padding: 3px; background: transparent; }
.board-project-header .list-item { border: 0; padding: 0; background: transparent; }
.project-board .item-top { gap: 2px; flex-wrap: wrap; }
.project-board .item-top .item-text { font-size: 14px; min-height: 30px; padding: 3px; flex-basis: 55%; }
.project-board .item-action { width: 24px; min-height: 26px; }
.project-board .checklist-line { gap: 3px; }
.all-urgent-subtask > span:not(.task-tools) { flex: 1; }
.project-board .checklist-line[data-priority="low"] .checklist-text, .project-board .board-subitems .list-item[data-priority="low"] > .item-top .board-title { color: #82918b; }
.project-board .checklist-line[data-priority="urgent"], .project-board .board-subitems .list-item[data-priority="urgent"] { background-color: #351c25; border-color: #75404e; }
.project-board .checklist-line[data-priority="urgent"] .checklist-text, .project-board .board-subitems .list-item[data-priority="urgent"] > .item-top .board-title { color: #f2a7b4; }
.board-subitems { margin: 8px 0 0 18px; padding-left: 12px; border-left: 2px solid #394c66; }
.project-board .card-checklist { margin-left: 20px; padding-left: 8px; border-left: 1px solid #394c66; }
.project-board .checklist-add { opacity: 0; }
.project-board .list-item:hover .checklist-add, .project-board .list-item:focus-within .checklist-add { opacity: 1; }
.board-new-project { position: relative; flex-shrink: 0; margin: 0 0 12px; font-size: 12px; color: #a2b0c4; }
.board-group-tools { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.board-group-tools .board-new-project { margin-bottom: 0; }
.board-collapse-all { min-height: 0; padding: 4px; border: 0; background: transparent; color: #a2b0c4; font-size: 12px; font-weight: 400; }
.board-collapse-all:hover { background: #202733; }
.board-new-project > summary { cursor: pointer; list-style: none; padding: 4px; width: fit-content; }
.board-new-project .board-add { width: min(360px, calc(100vw - 32px)); }
.board-project > .board-add { margin: 8px 12px 12px; }
@media (hover: none) { .project-board .checklist-add { opacity: 1; } }
.board-add { display: flex; gap: 5px; margin: 8px 0; }
.board-add input { flex: 1; width: 0; min-width: 0; min-height: 32px; padding: 5px 8px; font-size: 13px; background: #0e141c; border: 1px solid #303c4d; }
.board-add button { min-height: 32px; padding: 3px 10px; background: #233146; color: #c6d7ed; border: 1px solid #3a4a62; }
.project-board > .board-add { max-width: 440px; margin: 0 0 14px; }
.project-board .card-image { max-width: 100%; max-height: 160px; object-fit: contain; }
@media (max-width: 760px) {
    .project-board, .knowledge-frame { padding: 72px 8px 65px; }
    .board-lanes { grid-template-columns: minmax(0, 1fr); }
    .board-lane { border-right: 0; border-bottom: 1px solid #303744; }
    .project-board .item-top .item-text, .board-add input { font-size: 16px; }
    .workspace-view-bar span { max-width: 35vw; }
}
.list-editor-header { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.list-editor-header .page-title { flex: 1; min-width: 0; font-size: 28px; font-weight: 600; padding: 4px 6px; border-color: transparent; background: transparent; }
.list-editor-header .page-title:focus { outline: none; border-color: #606c80; }
.list-editor-header button, .list-editor-header input { min-height: 36px; padding: 7px 10px; }
.list-editor-header button { font-size: 12px; }
.list-editor-header .item-field { flex: 1; min-width: 180px; }
.item-field { display: grid; gap: 8px; font-size: 14px; }
.list-items { display: grid; }
.list-item { min-width: 0; }
.item-top { display: flex; align-items: flex-start; gap: 4px; min-height: 36px; }
.item-top .item-text { flex: 1; min-width: 0; min-height: 34px; padding: 6px; border: 1px solid transparent; background: transparent; border-radius: 4px; font-size: 15px; line-height: 22px; resize: none; overflow: hidden; }
.item-top .item-text:focus { background: #0a0c0f; border-color: #606c80; outline: none; }
.item-top input[type="checkbox"] { width: 16px; height: 16px; min-height: 16px; margin: 6px 6px 0; flex-shrink: 0; accent-color: #b8c4d9; }
.item-action { flex-shrink: 0; width: 32px; min-height: 32px; padding: 0; border: 0; border-radius: 4px; font-size: 20px; font-weight: 400; color: var(--muted); }
.item-action.has-details { color: #b9cdff; background: #1e2737; }
.is-done .item-text { text-decoration: line-through; color: #777d87; }
.item-top > .item-action { opacity: 0; }
.item-top:hover > .item-action, .item-top:focus-within > .item-action, .item-top > .has-details { opacity: 1; }
.list-editor-header > button { border: 0; background: transparent; color: var(--muted); }
.item-details select, .add-item-form select { color: var(--muted); background: transparent; border: 1px solid var(--border); border-radius: 4px; padding: 6px; }
.add-item-form select { border-color: transparent; font-size: 13px; max-width: 90px; }
.item-details { padding: 0 8px 14px 32px; }
.item-details .item-field { margin-top: 10px; gap: 4px; }
.item-details input { min-height: 36px; padding: 8px 10px; }
.project-board .item-details { margin-top: 6px; padding: 10px; border: 1px solid #303744; border-radius: 6px; background: #0c1118; }
.item-details > .item-field:first-child { margin-top: 0; }
.item-details .item-text { width: 100%; min-height: 36px; padding: 6px 8px; resize: none; overflow: hidden; font: inherit; line-height: 22px; }
.card-detail-section { margin-top: 10px; padding-top: 8px; border-top: 1px solid #29303b; }
.card-detail-section summary { cursor: pointer; color: #b9c7da; font-size: 12px; padding: 3px 0; }
.card-detail-section .item-field { font-size: 12px; }
.card-detail-section select, .card-detail-section input { min-width: 0; width: 100%; }
.card-detail-section .attachment-list { margin: 8px 0; gap: 4px; }
.card-detail-section .attachment-download { font-size: 12px; overflow-wrap: anywhere; }
.card-detail-hint { margin: 6px 0; color: var(--muted); font-size: 11px; }
.card-detail-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #29303b; }
.card-detail-actions .danger { margin-left: auto; }
.card-detail-actions .small-button { min-height: 32px; padding: 5px 8px; font-size: 12px; }
.small-button { min-height: 36px; padding: 8px 10px; font-size: 13px; }
.danger { color: #ffadad; }
.attachment-list { padding: 0; list-style: none; display: grid; gap: 10px; }
.attachment-list li { display: flex; gap: 12px; align-items: center; }
.attachment-download { background: transparent; border: 0; color: #b9cdff; text-align: left; font-weight: 400; padding: 4px 0; overflow-wrap: anywhere; flex: 1; min-width: 0; }
.attachment-download:hover { background: transparent; text-decoration: underline; }
.add-item-form { display: flex; gap: 0; align-items: center; margin-top: 2px; }
.add-item-form input { min-width: 0; min-height: 36px; padding: 6px; border-color: transparent; background: transparent; font-size: 14px; }
.add-item-form input:focus { outline: none; border-color: #606c80; }
.add-item-form button { white-space: nowrap; }
@media (hover: none) { .item-top > .item-action { opacity: 1; } }
input[type="file"] { font-size: 13px; padding: 10px; }
@media (max-width: 500px) {
    .item-top { min-height: 44px; }
    .item-top .item-text, .add-item-form input { font-size: 16px; min-height: 44px; }
    .item-details .item-text { font-size: 16px; }
    .item-action { width: 40px; min-height: 44px; }
    .page-editor { padding: 4px 0; }
    .list-editor-header .page-title { font-size: 24px; }
}
@media (max-width: 1100px) {
    .settings-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
    .app-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
    .sidebar { position: static; height: auto; padding: 20px; gap: 20px; border-right: 0; border-bottom: 1px solid var(--border); }
    .sidebar-lists { max-height: 240px; }
    .brand { padding: 0; }
    .nav-links { display: flex; gap: 8px; }
    .nav-links a { flex: 1; text-align: center; }
    .sidebar-account { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
    .sidebar-account:has(.sidebar-vault) { flex-wrap: wrap; gap: 6px 12px; }
    .sidebar-account:has(.sidebar-vault) .account-email { flex-basis: 100%; order: -1; }
    .sidebar-vault { flex: 1; }
    .sidebar-account form { flex-shrink: 0; }
    .account-email { padding: 0; }
    .workspace { padding: 28px 20px; }
    h1 { font-size: 26px; }
    .page-header { margin-bottom: 20px; padding-bottom: 20px; }
    .card { padding: 22px; }
    .overview, .settings-grid { gap: 16px; }
    .vault-form { margin: 0; }
    .app-shell:has(#vault-content) .sidebar { padding: 12px 20px; gap: 10px; }
    .app-shell:has(#vault-content) .brand { display: none; }
    .app-shell:has(#vault-content) .nav-links a { padding: 8px; }
    .app-shell:has(#vault-content) .sidebar-account button { min-height: 34px; padding: 6px 12px; }
    .workspace:has(#vault-content) { padding-top: 16px; }
    .workspace:has(#vault-content) .page-header { margin-bottom: 12px; padding-bottom: 12px; }
}
