.lex-pj,.pj-dialog{--pj-bg:#10212d;--pj-panel:#172d3a;--pj-raised:#1e3846;--pj-line:#38515e;--pj-text:#eff5f7;--pj-muted:#b2c4cb;--pj-gold:#e3b974;--pj-teal:#8ad4c1;color:var(--pj-text);font-family:inherit;line-height:1.5}
.lex-pj,.lex-pj *,.pj-dialog,.pj-dialog *{box-sizing:border-box}
.lex-pj{padding:clamp(14px,3vw,30px);border:1px solid var(--pj-line);border-radius:15px;background:var(--pj-bg);min-width:0;width:100%;text-align:start}
.lex-pj h2,.pj-dialog h2{font-size:clamp(25px,3vw,34px);line-height:1.2;margin:5px 0 14px}
.lex-pj h3,.pj-dialog h3{font-size:19px;line-height:1.35;margin:5px 0 12px}
.lex-pj p,.pj-dialog p{margin:8px 0 14px;white-space:pre-wrap;overflow-wrap:anywhere}
.lex-pj small,.pj-dialog small,.pj-muted{color:var(--pj-muted);font-size:.88rem}
.lex-pj button,.lex-pj input,.lex-pj textarea,.lex-pj select,.pj-dialog button,.pj-dialog input,.pj-dialog textarea,.pj-dialog select{font:inherit;max-width:100%;color:var(--pj-text);border-radius:8px;border:1px solid var(--pj-line);background:#142a36;padding:8px 12px;min-height:38px}
.lex-pj button,.pj-dialog button,.lex-pj summary,.pj-dialog summary{cursor:pointer}
.lex-pj button:hover,.pj-dialog button:hover{border-color:var(--pj-teal)}
.lex-pj :focus-visible,.pj-dialog :focus-visible{outline:3px solid var(--pj-teal);outline-offset:2px}
.lex-pj button:disabled,.pj-dialog button:disabled{opacity:.55;cursor:default}
.lex-pj button.pj-primary,.pj-dialog button.pj-primary,.lex-pj .pj-views [aria-pressed=true]{background:var(--pj-gold);color:#15242d;border-color:var(--pj-gold);font-weight:700}
.pj-dialog button.pj-danger{color:#ffd6cf;border-color:#bb766d}
.pj-head,.pj-line,.pj-actions,.pj-views,.pj-meta,.pj-toolbar,.pj-linked{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pj-head,.pj-linked{justify-content:space-between}.pj-head h3{margin:0}
.pj-toolbar{margin:18px 0 20px;padding-block:15px;border-block:1px solid var(--pj-line);align-items:end}
.pj-field{display:grid;gap:4px;font-size:.94rem;min-width:0}
.pj-field input,.pj-field textarea,.pj-field select{width:100%;min-width:0}.pj-field input[type=checkbox]{width:auto;justify-self:start}
.pj-views{margin-inline-start:auto}.pj-grid,.pj-fields,.pj-detail-grid{display:grid;gap:13px}
.pj-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr))}
.pj-grid>.pj-card{max-width:unset}
.pj-card,.pj-resume,.pj-panel,.pj-lane{border:1px solid var(--pj-line);border-radius:12px;background:var(--pj-panel);padding:16px;min-width:0}
.pj-card{display:flex;flex-direction:column;gap:9px}.pj-card h3,.pj-card p{margin:0}
.lex-pj .pj-card-name,.lex-pj .pj-task-title{font-weight:700;font-size:1.12rem;text-align:start;padding:0;background:transparent;border:0;color:white;overflow-wrap:anywhere}
.pj-badge,.pj-summary{font-size:.88rem}.pj-badge{border-radius:15px;padding:3px 12px;background:#324959;color:#e4f0f4}
.pj-active{background:#244f48;color:#c2f4dd}.pj-waiting{background:#51452d;color:#ffe5ac}.pj-done{background:#254561;color:#c7e4ff}
.pj-summary{border-top:1px solid var(--pj-line);padding-top:9px;color:var(--pj-teal)}
.pj-meta{color:var(--pj-muted);font-size:.88rem;gap:6px 16px;margin:6px 0}
.pj-excerpt,.pj-resume{background:#193a39;border-color:#3b7366}.pj-excerpt{padding:8px 12px;border-radius:8px}.pj-excerpt>*{display:block}
.pj-resume,.pj-detail-grid,.pj-links{margin-top:14px}.pj-resume h3{color:#b6efdb}
.pj-fields{grid-template-columns:repeat(auto-fit,minmax(min(155px,100%),1fr));margin:8px 0}.pj-fields>div{min-width:0}
.pj-detail-grid{grid-template-columns:minmax(0,1.4fr) minmax(220px,1fr)}
.pj-queue{padding-inline-start:22px}.pj-queue li,.pj-record,.pj-linked{border-bottom:1px solid var(--pj-line);padding:10px 0}
.pj-queue li[draggable=true],.pj-card[draggable=true]{cursor:grab}
.pj-queue li::marker{color:var(--pj-teal)}.pj-queue .pj-actions{margin-top:6px}.pj-queue .pj-actions button{font-size:.86rem}
.pj-record summary{overflow-wrap:anywhere}.pj-record summary small{margin-inline-end:8px}.pj-record summary span{vertical-align:top;display:inline-block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pj-record p{padding-inline-start:10px;border-inline-start:2px solid var(--pj-line)}
.pj-linked>div{min-width:0}.pj-linked small{display:block;overflow-wrap:anywhere}.pj-links a{display:block;color:var(--pj-teal);margin:8px 0;overflow-wrap:anywhere}
.pj-board,.pj-table-wrap{overflow-x:auto}.pj-board{display:flex;gap:12px}.pj-lane{min-width:225px;flex:1;background:#112531}.pj-lane h3{font-size:16px}.pj-lane .pj-card{margin-top:7px}
.lex-pj table{border-collapse:collapse;width:100%;text-align:start}.lex-pj td,.lex-pj th{padding:10px 8px;text-align:start;border-bottom:1px solid var(--pj-line)}.lex-pj th{color:var(--pj-muted);font-size:.92rem}.lex-pj td{white-space:nowrap}
.pj-back{margin-bottom:12px}.pj-more summary{color:var(--pj-muted)}.pj-more button{margin:6px}
.pj-dialog{color-scheme:dark;width:min(580px,94vw);max-height:90dvh;overflow:auto;border:1px solid var(--pj-line);border-radius:15px;background:var(--pj-bg);padding:clamp(15px,3vw,26px);text-align:start;z-index:1000}
.pj-dialog::backdrop{background:#071219b8}.pj-fieldset{margin:0;border:0;padding:0;min-width:0}
.pj-dialog form{display:grid;gap:12px}.pj-dialog .pj-line .pj-field{flex:1}.pj-dialog textarea{resize:vertical}
.pj-plan{border-block:1px solid var(--pj-line);padding-block:12px}.pj-plan ol{padding-inline-start:24px}.pj-plan li{margin:6px 0}.pj-plan details{font-size:.9rem;margin-top:4px}
.pj-error{color:#ffd3c8;padding:9px;border:1px solid #9e695a;border-radius:7px}
@media(max-width:850px){.pj-detail-grid{grid-template-columns:1fr}.pj-views{margin-inline-start:0}}
@media(max-width:570px){.lex-pj{padding:12px}.pj-panel,.pj-resume{padding:12px}.pj-toolbar{align-items:stretch}.pj-toolbar>.pj-field{flex:1 1 42%}.pj-views{width:100%}.pj-views button{flex:1}.pj-lane{min-width:77vw}.pj-dialog .pj-fields{grid-template-columns:1fr}.pj-head,.pj-linked{align-items:start}.pj-resume .pj-fields{grid-template-columns:1fr}}

.pj-topic-row{flex-wrap:wrap;gap:.4rem}
.pj-topic-row>strong,.pj-topic-edit{flex:1;overflow-wrap:anywhere}
.pj-topic-handle{touch-action:none;cursor:grab;user-select:none;min-width:42px}
.pj-topic-handle:active{cursor:grabbing}
.pj-drop-target{outline:2px solid #d8ad6a;outline-offset:-2px}
.pj-dialog .pj-topic-edit{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap}
.pj-topic-edit input{min-width:7em;flex:1}

.pj-quick-name{display:flex;align-items:center;gap:.25rem;flex-wrap:wrap}.pj-quick-name input{min-width:9em;max-width:100%}.pj-table-wrap select,.pj-table-wrap input[type=date]{width:auto;max-width:100%}

.lex-pj select.pj-state,.lex-pj .pj-kind{border:1px solid var(--accent);color:var(--accent);background-color:var(--tint);font-weight:600}
.pj-state{--accent:#b8cbff;--tint:#20304a}
.pj-state-active{--accent:#91e4bc;--tint:#15392e}
.pj-state-waiting{--accent:#ffd186;--tint:#453419}
.pj-state-done{--accent:#d6bcff;--tint:#362848}
.pj-state-archived{--accent:#c5cdd5;--tint:#303942}
.pj-kind{display:inline-block;margin-block:.25rem;padding:.08rem .5rem;border-radius:1rem;font-size:.79rem;white-space:nowrap}
.pj-ongoing{--accent:#8edee4;--tint:#163239}
.pj-finite{--accent:#efb8d4;--tint:#3c2934}

.task-priority-chip{display:inline-flex;align-items:center;justify-self:start;gap:.3em;padding:.15em .55em;border:1px solid currentColor;border-radius:1em;font-size:.85em;font-weight:600;white-space:nowrap}
.tp-urgent{color:#ffabba;background:#482030}.tp-high{color:#ffc095;background:#492f23}.tp-medium,.tp-normal{color:#f4db89;background:#3e341c}.tp-low{color:#a1d8f5;background:#19374b}.tp-none{color:#c1cbd3;background:#2a343e}

.pj-quick-filters{display:grid;gap:6px;margin-block:12px}
.pj-filter-row{display:flex;align-items:center;flex-wrap:wrap;gap:5px}
.pj-filter-row strong{min-width:6em;font-size:.86rem;color:var(--pj-muted)}
.lex-pj .pj-filter-row button{min-height:32px;padding:3px 12px;border-radius:18px}
.lex-pj .pj-filter-row [aria-pressed=true]{background:var(--pj-gold);color:#15242d;border-color:var(--pj-gold);font-weight:700}
.lex-pj .pj-board{gap:7px}
.lex-pj .pj-lane{padding:8px;display:flex;flex-direction:column;height:clamp(175px,46dvh,480px);min-width:165px}
.lex-pj .pj-lane>h3{margin:0 0 5px;flex:none}
.pj-lane-scroll{overflow-y:auto;flex:1;min-height:0;scrollbar-gutter:stable}
.pj-board-card{margin-bottom:5px;padding:6px 8px;background:var(--pj-panel);border:1px solid var(--pj-line);border-radius:7px;cursor:grab}
.pj-board-title,.pj-board-tools{display:flex;align-items:center;gap:5px;justify-content:space-between}
.pj-board-title{justify-content:start}
.lex-pj .pj-board-title button{padding:2px;min-height:26px;text-align:start;overflow-wrap:anywhere}
.lex-pj .pj-board-tools select{min-height:27px;padding:1px 4px;font-size:.8rem}
.pj-board-tools small{overflow-wrap:anywhere}
@media(max-width:570px){.lex-pj .pj-lane{min-width:62vw}.pj-filter-row strong{width:100%}}
