#planner-dialog{width:min(96vw,1500px);height:min(94dvh,1000px);max-width:none;max-height:none;padding:0;border:1px solid #31485e;border-radius:16px;background:#0d1b2a;color:#f0f8ff;overflow:hidden}
#planner-dialog::backdrop{background:#000b}
#planner-dialog[open]{display:flex;flex-direction:column}
.pl-top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;border-bottom:1px solid #31485e}
.pl-top h2{font-size:23px;margin:0}.pl-top p{margin:4px 0 0;color:#b8c7d9;font-size:14px}
.pl-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px 20px;background:#13243a}
.pl-button,#planner-board{font:inherit;font-size:14px;font-weight:600;color:#edf6ff;border:1px solid #486782;background:#1b3954;border-radius:8px;padding:9px 12px;cursor:pointer}
.pl-button:hover{background:#315c79}.pl-button:focus-visible,#planner-board:focus-visible{outline:3px solid #8fd1ff;outline-offset:2px}
#planner-board{max-width:260px;min-width:140px}.pl-scroll{flex:1;min-height:0;overflow:auto;background:#0b1623}
#planner-canvas{position:relative;min-width:680px;min-height:650px;background-image:radial-gradient(#35465b 1px,transparent 1px);background-size:20px 20px}
.pl-card{position:absolute;width:300px;padding:12px;border:1px solid #52728b;border-radius:12px;background:#182d41;box-shadow:0 5px 20px #0004;display:flex;flex-direction:column;gap:10px;box-sizing:border-box}
.pl-card.note{background:#353123;border-color:#967b3b}.pl-card.task{background:#173b3b;border-color:#50958f}.pl-card.file{background:#1c324f}
.pl-card-head{display:flex;gap:5px;align-items:center}.pl-card-head .pl-button{font-size:12px;padding:6px;white-space:nowrap}.pl-grip{flex:1;text-align:left;cursor:grab;touch-action:none}.pl-grip:active{cursor:grabbing}
.pl-card input:not([type=checkbox]),.pl-card textarea{width:100%;box-sizing:border-box;color:#fff;background:#0c1926aa;border:1px solid #66798e;border-radius:7px;padding:9px;font:inherit;font-size:15px}
.pl-card textarea{min-height:110px;resize:vertical}.pl-card img{width:100%;max-height:225px;object-fit:contain;background:#0b1523;border-radius:6px}.pl-card small{overflow-wrap:anywhere;color:#c1d3e5}.pl-empty{padding:40px;color:#b8c7d9}.pl-footer{padding:10px 20px;border-top:1px solid #31485e;color:#c4d9ea;font-size:14px}
@media(max-width:640px){#planner-dialog{width:100vw;height:100dvh;border-radius:0}.pl-top{padding:12px}.pl-tools{padding:10px}.pl-card{width:300px}.pl-top h2{font-size:20px}}

.pl-list-card{background:#153248!important;border-color:#4e8398!important}
.pl-list{display:flex;flex-direction:column;gap:7px}.pl-list-tools{display:flex;flex-wrap:wrap;gap:4px}.pl-list-tools .pl-button{font-size:11px;padding:5px 7px}
.pl-list-scroll{max-height:180px;overflow:auto;border:1px solid #52728b;border-radius:6px}.pl-list table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:11px}.pl-list th{position:sticky;top:0;background:#213d53;color:#dcecff;text-align:left;padding:5px 3px;z-index:1}.pl-list td{padding:2px;border-bottom:1px solid #416078}.pl-list th:nth-child(1){width:37%}.pl-list th:nth-child(2){width:35%}.pl-list th:nth-child(3){width:16%}.pl-list th:nth-child(4){width:12%}.pl-list td input:not([type=checkbox]){font-size:12px;padding:5px 3px;min-width:0}.pl-list td input[type=checkbox]{accent-color:#7edbc6}.pl-list td .pl-button{padding:2px 5px;font-size:12px}.pl-list textarea{min-height:40px;max-height:64px;font-size:11px;resize:vertical}

.pl-edges{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:0}.pl-connection{pointer-events:stroke;cursor:pointer}.pl-connection:hover{stroke:#fff;stroke-width:5}.pl-card{z-index:1;overflow:auto;min-width:260px;min-height:160px;padding-bottom:24px}.pl-card-head{flex-shrink:0;flex-wrap:wrap}.pl-grip{min-width:55px}.pl-card .pl-resize{position:absolute;bottom:2px;right:2px;padding:2px 7px;font-size:16px;cursor:nwse-resize;touch-action:none;z-index:3}.pl-card.pl-link-selected{outline:3px solid #84d9ff;outline-offset:2px}.pl-connecting .pl-card-head button:nth-child(2){background:#28617f}.pl-card .pl-list-scroll{max-height:180px;min-height:60px;overflow:auto}.pl-card[style*="height"] .pl-list{min-height:0;flex:1}.pl-card[style*="height"] .pl-list-scroll{flex:1;max-height:none}.pl-card[style*="height"] textarea{min-height:40px}.pl-card[style*="height"]>.pl-card-head+input+textarea{flex:1}
