.artifact-relations{border-top:1px solid #e4e9dd;margin-top:28px;padding-top:22px}.relation-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.relation-heading h3,.relation-group h3,.editor-relations h3{font-size:15px;color:#34452c;font-weight:600}.relation-heading h3{display:flex;align-items:center;gap:8px}.artifact-relations h4{font-size:13px;font-weight:500;color:#617153;margin:18px 0 8px}.artifact-relations>.inline-note{margin-top:12px}.relation-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:15px}.relation-row{border-bottom:1px solid #edf0e8}.relation-open{width:100%;display:flex;text-align:left;align-items:center;gap:9px;padding:11px 0;color:#405335;font-size:14px}.relation-open>span{flex:1}.relation-open small{font-size:11px;color:#79856f}.relation-project{font-size:12px;color:#6c7b61;margin-bottom:19px}.relation-status{display:flex;align-items:center;gap:8px;font-size:14px;margin:15px 0}.relation-status input{accent-color:#7b9b4c;width:17px;height:17px}.relation-task-drawer .field textarea{width:100%;resize:vertical;font:inherit;line-height:1.7;border:1px solid #dfe5d8;border-radius:8px;padding:11px;color:#304229}.relation-group{padding-top:21px;margin-top:20px;border-top:1px solid #e5eadd}.relation-group h3{margin-bottom:11px}.relation-group>.inline-note{margin:10px 0 12px}.relation-file{display:flex;align-items:center;flex-wrap:wrap;border:1px solid #e4eadc;border-radius:8px;padding:8px 10px;margin:8px 0;background:#fafbf8;gap:6px}.relation-file>button:first-child{flex:1;display:flex;align-items:center;text-align:left;gap:8px;font-size:13px;color:#3a5130;min-width:0}.relation-file>button:first-child>span{flex:1;overflow-wrap:anywhere}.relation-file small{display:block;font-size:10px;color:#7c896f;margin-top:4px}.relation-file blockquote{width:100%;font-size:12px;line-height:1.7;margin:5px 0 0;padding:8px;border-left:2px solid #b8cf94;color:#65755b;white-space:pre-wrap}.relation-task-title:hover{text-decoration:underline}.relation-task-drawer .modal-footer .text-link{margin-right:auto}.relation-task-drawer form{display:flex;flex-direction:column;min-height:0;flex:1}.relation-task-drawer .modal-body{flex:1}.modal-backdrop:has(.relation-task-drawer){justify-content:flex-end;padding:0}.modal.relation-task-drawer{width:min(470px,100%);height:100dvh;max-height:100dvh;border-radius:15px 0 0 15px}.relation-quote{padding:13px;font-size:13px;border-left:3px solid #afc980;line-height:1.8;white-space:pre-wrap;background:#f6f9f0}.relation-picker-list{display:grid;max-height:430px;overflow:auto;margin-top:14px}.relation-picker-item{display:flex;align-items:center;text-align:left;gap:12px;padding:14px 8px;border-bottom:1px solid #e8eddf;font-size:14px;color:#3f5333}.relation-picker-item:hover{background:#f3f7ec}.relation-picker-item>span{flex:1}.relation-picker-item small{font-size:11px;color:#77856a}.relation-picker-item[hidden]{display:none}.relation-search{width:100%;font:inherit;font-size:14px;padding:10px 12px;border:1px solid #dce4d3;border-radius:7px}.artifact-relation-count{display:flex;gap:5px;align-items:center;color:#5c7448;font-size:11px;text-align:left;margin-top:9px;padding-top:8px;border-top:1px solid #eef1e8}.selection-task-button{position:sticky;top:0;z-index:2;padding:8px 12px;border:1px solid #b5c992;background:#f1f7e5;border-radius:7px;color:#405d2d;font-size:12px;box-shadow:0 4px 16px #32442612}.selection-task-button[hidden]{display:none}.editor-relations{border-top:1px solid #dfe6d7;padding-top:17px;margin-top:20px}.editor-relations .inline-note{margin:10px 0}.editor-relations .btn{white-space:normal}
.knowledge-content{max-width:none;padding:22px 24px!important}.knowledge-page{background:#1c1c1f;color:#dedee5;border:1px solid #323237;border-radius:13px;overflow:hidden;min-height:640px}.knowledge-page:fullscreen{border-radius:0;width:100%;height:100%;display:flex;flex-direction:column}.graph-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:19px 22px;border-bottom:1px solid #38383d}.graph-header h1{font-size:17px;font-weight:600;color:#ebebef;margin:0 0 5px}.graph-header p{font-size:11px;color:#a6a6b2}.graph-header-controls{display:flex;gap:10px;align-items:center;min-width:0}.graph-header select,.graph-header button{background:transparent;border:1px solid #44444b;border-radius:7px;color:#c7c7d0;padding:9px 11px;font-size:12px;max-width:190px}.graph-header select option{background:#25252a;color:#eee}.graph-search{display:flex;align-items:center;gap:8px;border:1px solid #424249;border-radius:8px;padding:9px 11px;color:#a6a6b1}.graph-search input{min-width:0;width:185px;background:transparent;border:0;color:#e8e8ef;font:inherit;font-size:12px;outline:none}.graph-search input::placeholder{color:#9494a1}.graph-workspace{display:grid;grid-template-columns:minmax(0,1fr) 285px;min-height:570px;height:calc(100dvh - 248px);max-height:1040px}.graph-canvas-wrap{position:relative;min-height:460px;overflow:hidden}.graph-canvas-wrap canvas{width:100%;height:100%;display:block;touch-action:none;cursor:grab;outline-offset:-4px}.graph-detail{border-left:1px solid #39393f;padding:22px 19px;overflow:auto;min-width:0;background:#202024}.graph-detail-empty{padding:14px 0;color:#92929f}.graph-detail-empty>svg{color:#838393;margin-bottom:17px}.graph-detail-empty h3{font-size:15px;color:#d4d4dd;font-weight:500;margin-bottom:15px}.graph-detail-empty p{font-size:12px;line-height:1.9;margin:14px 0}.graph-detail-title>span{font-size:11px;color:#a6a6b0;display:flex;align-items:center;gap:7px}.graph-detail-title h3{font-size:16px;color:#e9e9ef;line-height:1.7;margin:9px 0 16px;overflow-wrap:anywhere}.graph-task-status{font-size:11px;color:#e8b958}.graph-detail-group{padding:19px 0 5px;border-top:1px solid #3b3b42;margin-top:18px}.graph-detail-group h4{font-size:12px;color:#bcbcc6;font-weight:500;margin:0 0 11px}.graph-detail-group h4 small{font-size:10px;color:#8e8e9a;margin-left:4px}.graph-detail-group>button{display:flex;align-items:baseline;width:100%;gap:8px;text-align:left;color:#d0d0d9;font-size:12px;line-height:1.8;padding:7px 0}.graph-detail-group>button>span{flex:1;overflow-wrap:anywhere}.graph-detail-group>button>small{font-size:9px;color:#a1a1ac}.graph-detail-group>button:hover{color:#fff}.graph-detail-actions{display:grid;gap:9px;margin-top:22px}.graph-detail-actions button{border:1px solid #484850;color:#d4d4df;border-radius:7px;padding:10px 12px;font-size:12px;display:flex;gap:8px;align-items:center;justify-content:center}.graph-detail-actions button:hover{background:#303038}.graph-detail-actions button[aria-pressed="true"]{border-color:#8171bc;color:#beacff}.graph-dot{display:inline-block;width:8px;height:8px;border-radius:50%;flex:none;background:#469cff}.graph-dot.project{background:#40c7d5}.graph-dot.task{background:#f5aa31}.graph-dot.tag{background:#a18bfa}.graph-dot.file{background:#c88b43}.graph-legend{position:absolute;bottom:18px;left:18px;right:70px;display:flex;align-items:center;flex-wrap:wrap;gap:13px;pointer-events:none;font-size:10px;color:#8d8d9a}.graph-legend button{display:flex;align-items:center;gap:6px;color:#b4b4bf;font-size:11px;padding:3px 0;pointer-events:auto}.graph-legend button[aria-pressed="false"]{opacity:.35}.graph-legend>span{width:100%;font-size:10px}.graph-tools{position:absolute;bottom:17px;right:17px;display:grid;border:1px solid #45454d;border-radius:9px;background:#202024ed;overflow:hidden}.graph-tools button{width:34px;height:32px;color:#babac6;font-size:18px;border-bottom:1px solid #3a3a42;display:grid;place-items:center}.graph-tools button:hover{background:#363640;color:#fff}.graph-tools small{font-size:9px;color:#9999a8;text-align:center;padding:5px 0}.graph-help{position:absolute;left:18px;top:16px;font-size:10px;color:#72727f;pointer-events:none}.graph-search-status{position:absolute;top:39px;left:18px;font-size:11px;color:#b2a2e8}.graph-node-list{border-top:1px solid #37373e;padding:11px 20px;color:#9f9fab;font-size:11px}.graph-node-list summary{cursor:pointer}.graph-node-list>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-height:180px;overflow:auto;margin-top:13px;gap:5px 16px}.graph-node-list button{font-size:12px;color:#c3c3ce;text-align:left;padding:7px;line-height:1.5;border-radius:4px}.graph-node-list button:hover,.graph-node-list button[aria-pressed="true"]{background:#34343d;color:#f0f0f7}.knowledge-page:fullscreen .graph-workspace{flex:1;max-height:none;height:auto}.knowledge-page:fullscreen .graph-node-list{flex:none}.knowledge-page button:focus-visible,.knowledge-page input:focus-visible,.knowledge-page select:focus-visible{outline:2px solid #9e89df;outline-offset:2px}
@media(max-width:1200px){.graph-header{flex-wrap:wrap}.graph-workspace{grid-template-columns:minmax(0,1fr) 240px}.graph-header-controls{width:100%}.graph-search{flex:1}.graph-search input{width:100%}}
@media(max-width:760px){.knowledge-content{padding:12px!important}.knowledge-page{border-radius:10px}.graph-header{padding:16px}.graph-header-controls{flex-wrap:wrap;gap:8px}.graph-header select{max-width:100%;flex:1}.graph-header-controls>button{padding:9px}.graph-search{flex-basis:100%;order:3}.graph-workspace{grid-template-columns:1fr;height:auto;max-height:none}.graph-canvas-wrap{height:460px;min-height:380px}.graph-detail{border-left:0;border-top:1px solid #3b3b42;max-height:330px}.graph-detail-empty{padding:0}.graph-detail-empty>svg{display:none}.graph-detail-empty p{margin:6px 0}.graph-node-list>div{grid-template-columns:1fr 1fr}.graph-header h1{font-size:16px}.relation-heading{align-items:flex-start;flex-wrap:wrap}.modal.relation-task-drawer{border-radius:0}}
@media(prefers-reduced-motion:reduce){.knowledge-page *{scroll-behavior:auto!important}}
.modal.relation-task-drawer{width:min(570px,100%)}
.relation-task-drawer .modal-body{padding:22px 28px 28px}.relation-task-drawer .modal-header{padding:22px 28px}.relation-project{display:flex;align-items:center;gap:7px;color:#65715c;margin-bottom:20px}.relation-task-drawer .field{display:block;margin-bottom:18px}.relation-task-drawer .field-label{display:flex;gap:7px;align-items:center;font-size:12px;font-weight:600;color:#425039;margin-bottom:8px}.relation-task-drawer .field-label small{font-size:10px;font-weight:400;color:#829074}.relation-task-drawer .task-title-field textarea{font-size:20px;font-weight:600;line-height:1.5;padding:10px 0;border:0;border-radius:0;resize:vertical;background:transparent;color:#26351f}.relation-task-drawer .task-title-field{margin-bottom:10px}.relation-task-drawer textarea{background:#fbfcf9}.relation-task-drawer textarea::placeholder{color:#8a9580;font-weight:400}.task-properties{background:#f5f7f1;border:1px solid #e4e9dd;border-radius:10px;padding:16px 16px 0;margin-bottom:23px}.task-properties .field-row{gap:15px}.task-properties select,.task-properties input{width:100%;min-width:0;border:1px solid #d9e1cf;border-radius:7px;background:#fff;padding:9px 10px;font:inherit;font-size:13px;color:#33432a;min-height:39px}.task-properties .field{min-width:0;flex:1;margin-bottom:15px}.task-checklist{margin-top:24px}.task-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}.task-section-title h3{font-size:14px;font-weight:600;color:#3a4b30}.task-section-title h3 small{font-size:11px;font-weight:400;color:#6a7b5b;margin-left:6px}.task-check-item{display:flex;align-items:center;gap:10px;border-bottom:1px solid #e9ede2;padding:7px 0}.task-check-item>input[type=checkbox]{width:16px;height:16px;flex:none;accent-color:#769641}.task-check-text{min-width:0;flex:1;border:0;background:transparent;outline:none;font:inherit;font-size:13px;color:#34452a;padding:6px 0;line-height:1.6}.task-check-text:focus{box-shadow:0 1px #9cb871}.task-check-item:has(input:checked) .task-check-text{text-decoration:line-through;color:#7e8a72}.task-check-item .icon-btn{width:24px;height:27px;color:#8a967f}.task-check-empty{font-size:12px;margin:8px 0 2px}.task-check-empty[hidden]{display:none}.task-timestamps{font-size:10px;color:#78866d;line-height:1.9;margin-top:26px}.task-create-note{margin-top:23px;font-size:11px}.task-footer-hint{margin-right:auto;font-size:11px;color:#7a896c}.relation-task-drawer .modal-footer{padding:16px 24px;border-top:1px solid #e3e8db;flex-shrink:0}.relation-task-drawer .form-error{margin-top:15px}.relation-task-content{min-width:0;flex:1}.relation-task-content .task-name{width:100%;text-align:left;line-height:1.6;overflow-wrap:anywhere}.task-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px 9px;margin-top:6px;font-size:10px;font-weight:400;line-height:1.6;color:#68775c}.task-meta>span{display:inline-flex;align-items:center;gap:3px}.task-status-badge{border-radius:4px;background:#eef1e9;padding:1px 5px;color:#66725b}.task-status-badge.doing{background:#e8f1fb;color:#3f6897}.task-status-badge.blocked{background:#fff0db;color:#9e611e}.task-status-badge.done{background:#edf3e4;color:#5a763d}.task-priority.high{color:#9e691e}.task-priority.urgent{color:#b1483e;font-weight:600}.task-priority.low{color:#7b8770}.task-due.overdue{color:#b34a3f;font-weight:500}.task-due.due-today{color:#956216}.task-panel .focus-item{align-items:flex-start;padding:13px 0}.task-panel .task-checkbox{margin-top:4px}.task-detail-add{margin:2px 0 9px;padding:4px 0;color:#5e7848!important;font-size:12px!important;min-height:27px}.relation-open>span{min-width:0}.relation-open strong{font-weight:500;line-height:1.7}.task-meta-dark{color:#b8b8c4;gap:8px 11px}.task-meta-dark .task-status-badge{background:#36363d;color:#c9c9d3}.task-meta-dark .task-status-badge.doing{background:#263b51;color:#94c2f7}.task-meta-dark .task-status-badge.blocked{background:#4a3924;color:#f0bc72}.task-meta-dark .task-status-badge.done{background:#34402d;color:#b0ce94}.task-meta-dark .task-priority.high{color:#e6b468}.task-meta-dark .task-priority.urgent,.task-meta-dark .task-due.overdue{color:#f28e82}.task-meta-dark .task-due.due-today{color:#e6bf76}.graph-task-description{font-size:12px;color:#b2b2be;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:17px}.relation-task-drawer input:focus-visible,.relation-task-drawer textarea:focus-visible,.relation-task-drawer select:focus-visible{outline:2px solid #a2bd78;outline-offset:2px}
@media(max-width:600px){.relation-task-drawer .modal-body{padding:18px 20px 24px}.relation-task-drawer .modal-header{padding:18px 20px}.relation-task-drawer .modal-footer{padding:14px 17px;gap:9px}.task-footer-hint{display:none}.task-properties{padding:13px 12px 0}.task-properties .field-row{display:flex;gap:11px}.relation-task-drawer .task-title-field textarea{font-size:19px}.task-meta{gap:5px 8px}.task-properties input[type=date]{padding:9px 4px;font-size:12px}}
/* Task reminders keep FIELDNOTE's quiet paper palette, with a stronger ink
   hierarchy around the information people need to act on. */
.task-reminder-chip{color:#3d6330;background:#edf5df;border-radius:4px;padding:1px 5px;font-weight:550}
.task-reminder-panel{margin:0 0 23px;padding:16px;border:1px solid #dbe5d1;border-radius:11px;background:linear-gradient(145deg,#f7f9f3 0%,#eef4e7 100%);box-shadow:inset 0 1px #ffffffb8}
.task-reminder-head{display:flex;align-items:center;justify-content:space-between;gap:14px}
.task-reminder-title{display:flex;align-items:center;gap:10px;color:#365026}
.task-reminder-title>svg{width:32px;height:32px;padding:7px;border-radius:8px;background:#dfecc9;color:#4d7035}
.task-reminder-title>span{display:grid;gap:3px}.task-reminder-title strong{font-size:14px;line-height:1.35;color:#2e4523}.task-reminder-title small{font-size:10px;line-height:1.45;color:#748469}
.reminder-switch{position:relative;display:inline-flex;align-items:center;flex:none;cursor:pointer}.reminder-switch input{position:absolute;opacity:0;pointer-events:none}.reminder-switch>span{display:block;width:38px;height:22px;border-radius:99px;background:#cbd3c3;transition:.18s;box-shadow:inset 0 1px 2px #23371c1c}.reminder-switch>span:after{content:'';display:block;width:16px;height:16px;border-radius:50%;background:#fff;margin:3px;box-shadow:0 1px 4px #1d2e172e;transition:.18s}.reminder-switch input:checked+span{background:#6f914c}.reminder-switch input:checked+span:after{transform:translateX(16px)}.reminder-switch input:focus-visible+span{outline:2px solid #8eab69;outline-offset:2px}.reminder-switch input:disabled+span{opacity:.55;cursor:not-allowed}
.task-reminder-controls{margin-top:14px;padding-top:13px;border-top:1px solid #dde6d5}.task-reminder-controls[hidden]{display:none}.reminder-quick-times{display:flex;flex-wrap:wrap;gap:6px}.reminder-quick-times button{padding:6px 8px;border:1px solid #d5e0cb;border-radius:6px;background:#fbfcf9;color:#536a44;font-size:10px;font-weight:550}.reminder-quick-times button:hover{border-color:#afc494;background:#f3f8ed;color:#375127}.task-reminder-time{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;margin-top:10px}.task-reminder-time>span{font-size:11px;font-weight:600;color:#4d6041}.task-reminder-time input{width:100%;min-width:0;height:37px;padding:7px 9px;border:1px solid #d3dec8;border-radius:7px;background:#fff;color:#2d3f25;font:inherit;font-size:12px;color-scheme:light}
.task-reminder-state{display:flex;align-items:flex-start;gap:7px;margin-top:12px;font-size:10px;line-height:1.55;color:#67775c}.task-reminder-state i{width:7px;height:7px;margin-top:5px;border-radius:50%;flex:none;background:#96a88a}.task-reminder-state.queued i{background:#c38b34;box-shadow:0 0 0 3px #f4e6cd}.task-reminder-state.sending i{background:#4e83b5;box-shadow:0 0 0 3px #dceaf7;animation:reminderPulse 1.2s infinite}.task-reminder-state.sent{color:#3f6530}.task-reminder-state.sent i{background:#68a34c;box-shadow:0 0 0 3px #dcebcf}.task-reminder-state.failed{color:#a44337}.task-reminder-state.failed i{background:#c25448;box-shadow:0 0 0 3px #f6ddd9}.task-reminder-state.off,.task-reminder-state.done{color:#7a8671}
.task-reminder-bridge{display:flex;align-items:flex-start;gap:7px;margin-top:8px;color:#78866e;font-size:10px;line-height:1.55}.task-reminder-bridge>span{display:flex;gap:6px;align-items:flex-start}.reminder-loading svg{animation:reminderPulse 1.4s infinite}.reminder-bridge-dot{width:6px;height:6px;margin-top:5px;border-radius:50%;flex:none;background:#a6afa0}.reminder-bridge-dot.ready{background:#65a04b}.reminder-bridge-dot.warning{background:#c18c37}.reminder-bridge-dot.offline{background:#a9aaa4}.reminder-test{display:inline-flex;align-items:center;gap:6px;margin-top:11px;padding:0;color:#516b40;font-size:10px;font-weight:600}.reminder-test:hover{color:#2e4b20;text-decoration:underline}.relation-task-drawer .task-reminder-panel input:focus-visible{outline:2px solid #98b471;outline-offset:2px}
@keyframes reminderPulse{0%,100%{opacity:1}50%{opacity:.35}}
@media(prefers-reduced-motion:reduce){.task-reminder-state.sending i,.reminder-loading svg{animation:none}}
@media(max-width:600px){.task-reminder-panel{padding:14px 13px;margin-bottom:19px}.task-reminder-title small{max-width:190px}.task-reminder-time{grid-template-columns:1fr;gap:6px}.reminder-quick-times button{flex:1;min-width:96px}}
