.board {
 position:fixed;
 inset:0;
 z-index:5;
 display:flex;
 flex-direction:column;
 background:#f3f7f2;
 color:#15382c;
}
.board-bar {
 display:flex;
 align-items:center;
 gap:13px;
 padding:10px 16px;
 min-height:60px;
 background:#fbfdfb;
 border-bottom:1px solid #dce7dd;
 z-index:1;
}
.board-bar h1 {margin:0;font-size:18px;white-space:nowrap}
.board-bar > button {font-size:20px;line-height:1;padding:7px 11px}
.board-tools {display:flex;align-items:center;gap:7px;margin-left:auto}
.board-tools button {padding:7px 11px;line-height:1.5;white-space:nowrap}
.board-tools button:disabled {cursor:default}
.board-space {
 position:relative;
 flex:1;
 overflow:hidden;
 touch-action:none;
 user-select:none;
 background-image:radial-gradient(circle,#b5c7bd 1px,transparent 1px);
 background-size:24px 24px;
 cursor:grab;
}
.board-space:active {cursor:grabbing}
.board-plane {position:absolute;top:0;left:0;transform-origin:0 0}
.board-empty {
 position:absolute;
 left:50%;
 top:44%;
 transform:translate(-50%,-50%);
 display:grid;
 gap:8px;
 text-align:center;
 width:min(320px,88vw);
 color:#48665a;
 background:#f5f8f3ed;
 padding:20px;
 border-radius:14px;
 pointer-events:none;
}
.board-empty strong {font-size:18px;color:#183c2e}
.board-empty span {font-size:13px}
.board-mark {
 position:absolute;
 inset:0 auto auto 0;
 pointer-events:none;
 font-size:22px;
 color:#0b8d61;
 line-height:1;
 margin:-11px 0 0 -7px;
 z-index:2;
}
.board-card {
 position:absolute;
 top:0;
 left:0;
 display:flex;
 flex-direction:column;
 align-items:stretch;
 width:max-content;
 min-width:84px;
 max-width:320px;
 border:1px solid #d4e3d8;
 border-radius:10px;
 background:white;
 box-shadow:0 3px 10px #234f3815;
 overflow:hidden;
}
.board-card:hover,.board-card:focus-within {z-index:1;border-color:#89b8a0}
.board-card.board-highlight {z-index:2;box-shadow:0 0 0 3px #15966980,0 4px 15px #234f3820}
.board-handle {
 display:grid;
 place-items:center;
 width:100%;
 height:22px;
 background:#edf5ef;
 border-bottom:1px solid #e0ebe2;
 cursor:grab;
 color:#527a65;
 font-size:15px;
 line-height:1;
}
.board-handle:active {cursor:grabbing}
.board-card .board-preview {
 display:block;
 min-width:0;
 border:0;
 border-radius:0;
 background:transparent;
 padding:8px 11px;
 text-align:left;
 color:inherit;
}
.board-card .board-preview:hover {background:#f7faf7}
.board-text-preview {
 display:-webkit-box;
 -webkit-box-orient:vertical;
 -webkit-line-clamp:5;
 overflow:hidden;
 white-space:pre-wrap;
 overflow-wrap:anywhere;
 tab-size:4;
 line-height:1.5;
 font-size:13px;
}
.board-card-image {max-width:302px}
.board-card-image img {display:block;max-width:280px;max-height:200px;width:auto;height:auto;object-fit:contain}
.board-card-file {width:220px}
.board-card-file strong,.board-card-file small {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.board-card-file small {margin-top:3px;color:#526e60}
.board-download {display:inline-block;color:#087c55;font-weight:600;text-decoration:none;padding:7px 10px;border-radius:7px}
.board-card-file .board-download {align-self:flex-start;margin:0 3px 3px;font-size:12px}
.board-download:hover {background:#e9f5ee}
.board-zoom {
 position:absolute;
 right:14px;
 bottom:max(14px,env(safe-area-inset-bottom));
 display:flex;
 background:#fbfdfb;
 border:1px solid #d5e3d9;
 border-radius:10px;
 box-shadow:0 2px 8px #234f3817;
}
.board-zoom button {border:0;background:transparent;padding:8px 10px;line-height:1.5;min-width:40px}
.board-zoom button:hover {background:#e9f5ee}
.board-detail {
 width:min(660px,calc(100vw - 24px));
 max-height:min(88vh,740px);
 overflow:hidden;
}
.board-detail[open] {display:flex;flex-direction:column}
.board-detail-head,.board-detail-actions {
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:10px;
 padding:12px 16px;
}
.board-detail-head {border-bottom:1px solid #e2ebe4}
.board-detail-head h2 {font-size:16px;margin:0;overflow-wrap:anywhere}
.board-detail-head button {line-height:1;font-size:20px;padding:5px 10px}
.board-detail-body {overflow:auto;padding:16px;flex:1;min-height:0}
.board-detail-body pre {
 margin:0;
 padding:0;
 border:0;
 background:none;
 overflow:visible;
 white-space:pre;
 tab-size:4;
 font:13px/1.55 Consolas,monospace;
}
.board-detail-body img {display:block;max-width:100%;max-height:65vh;object-fit:contain;margin:auto}
.board-detail-actions {justify-content:flex-end;border-top:1px solid #e2ebe4}
.board-paste-field {display:block;width:100%;min-height:160px;resize:vertical}
@media(max-width:600px) {
 .board-bar {min-height:54px;padding:7px 8px;gap:7px}
 .board-bar h1 {font-size:15px}
 .board-bar > button {padding:7px 8px}
 .board-tools {gap:4px}
 .board-tools button {padding:7px 6px;font-size:12px}
 .board-detail {position:fixed;inset:0;margin:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;border:0;border-radius:0}
 .board-detail-actions {padding-bottom:max(12px,env(safe-area-inset-bottom))}
}
