body[data-section="tasks"] #utility-page{
 --tb-grid:rgba(130,175,205,.055);
 background-color:#eef7fc;
 background-image:radial-gradient(ellipse at 20% 10%,white,transparent 50%),
  linear-gradient(90deg,var(--tb-grid) 1px,transparent 1px),
  linear-gradient(var(--tb-grid) 1px,transparent 1px);
 background-size:auto,28px 28px,28px 28px;
}
body[data-section="tasks"] .utility-header{
 position:static;display:flex;align-items:center;justify-content:space-between;
 max-width:1400px;margin:auto;padding:32px 28px 0;background:transparent;border:0;
}
body[data-section="tasks"] #utility-title{order:-1;flex:0 1 auto;font-size:30px;line-height:1.4;color:#294568}
body[data-section="tasks"] #utility-title::after{content:"✧";margin-inline-start:8px;font-size:.72em;color:#7facce}
body[data-section="tasks"] .utility-header .demo-state{display:none}
body[data-section="tasks"] #utility-content{max-width:1400px;padding-top:6px}
#task-board-page{--tb-ink:#294568;--tb-muted:#536e88;--tb-rule:#d5e6f1;--tb-accent:#24577d;--tb-paper:#fff;--tb-tape:#d9edf9;--tb-fold:#e1eef7;color:var(--tb-ink)}
#task-board-page [hidden]{display:none!important}
#task-board-page :is(button,input,select,textarea){font:inherit}
#task-board-page button{cursor:pointer}
#task-board-page button:focus-visible{outline:2px solid var(--brand-600);outline-offset:3px}
#task-board-page button:disabled{cursor:wait;opacity:.65}
.tb-header,.tb-note-head,.tb-note-foot,.tb-dialog>header,.tb-entry{display:flex;justify-content:space-between;align-items:center;gap:10px}
.tb-header{flex-wrap:wrap}
.tb-header p,.tb-form p,.tb-record p{color:var(--tb-muted);font-size:13px;line-height:1.7;margin:6px 0}
.tb-wallet{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:5px 12px;border:1px solid var(--tb-rule);border-radius:10px;background:var(--bg-tint);color:var(--tb-muted);font-size:13px}
.tb-wallet strong{font-size:20px;color:var(--tb-ink)}
.tb-toolbar,.tb-actions,.tb-rules,.tb-note-foot{display:flex;flex-wrap:wrap;gap:8px}
.tb-toolbar{align-items:center;margin:12px 0 26px}
#task-board-page .tb-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:600;background:var(--bg-base);color:var(--brand-700);border:1px solid var(--brand-300);border-radius:8px;padding:8px 14px;line-height:1.5;font-size:14px}
#task-board-page .tb-button:hover{background:var(--bg-tint);border-color:var(--brand-500)}
#task-board-page .tb-primary{background:var(--brand-600);color:white;border-color:var(--brand-600)}
#task-board-page .tb-primary:hover{background:var(--brand-700);color:white}
.tb-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) clamp(140px,13vw,178px);gap:clamp(18px,2vw,28px);align-items:start}
.tb-column{min-width:0}
.tb-column-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:10px;margin-bottom:20px;border-bottom:1px solid var(--tb-rule)}
.tb-column-head h2{font-size:17px;font-weight:700;letter-spacing:.04em;color:var(--tb-ink)}
.tb-column-head [data-tb-count]{min-width:26px;padding:1px 7px;border-radius:20px;text-align:center;color:var(--tb-muted);background:#e2eff7;font-size:12px;font-variant-numeric:tabular-nums}
.tb-notes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px clamp(12px,1.2vw,18px);align-items:start;padding:3px}
.tb-notes>:is(.tb-empty,.tb-more){grid-column:1/-1}
#task-board-page .tb-note{
 display:grid;gap:9px;position:relative;width:calc(100% - var(--tb-inset,0px));min-width:0;padding:18px clamp(10px,1vw,16px) 15px;
 border:0;border-radius:3px 3px 12px 3px;background:var(--tb-paper);box-shadow:0 8px 24px rgb(69 104 130 / 9%);
 text-align:left;color:var(--tb-ink);overflow-wrap:anywhere;transform:rotate(var(--tb-tilt,-.8deg));
 transition:transform .18s,box-shadow .18s;
}
.tb-notes[data-tb-group="templates"] .tb-note:nth-child(even){--tb-tilt:.65deg;--tb-inset:3px;margin-left:3px}
.tb-notes[data-tb-group="active"] .tb-note:nth-child(odd){--tb-tilt:.75deg}
.tb-notes[data-tb-group="active"] .tb-note:nth-child(even){--tb-tilt:-.65deg;--tb-inset:6px;margin-left:3px}
@media(hover:hover){#task-board-page .tb-note:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgb(69 104 130 / 13%)}}
.tb-note::before{content:"";position:absolute;top:-8px;left:50%;width:65px;height:16px;background:var(--tb-tape);opacity:.8;transform:translateX(-50%) rotate(-4deg);pointer-events:none}
.tb-note::after{content:"";position:absolute;bottom:0;right:0;border:8px solid transparent;border-bottom-color:var(--tb-fold);border-right-color:var(--tb-fold);border-radius:0 0 10px 0;pointer-events:none}
.tb-note-head,.tb-note-foot,.tb-rules{font-size:12px;color:var(--tb-muted)}
.tb-note-head{flex-wrap:wrap;gap:4px 8px}
.tb-note-head>span:first-child{display:inline-flex;align-items:center;gap:5px}
.tb-note-head>span:first-child::before{content:"";width:5px;height:5px;flex:none;border-radius:50%;background:var(--tb-dot,#4385b6)}
.tb-note-head>span:last-child{color:var(--tb-accent)}
.tb-note-title{font-size:17px;font-weight:700;line-height:1.55}
.tb-description,.tb-body-text{white-space:pre-line;overflow-wrap:anywhere;line-height:1.75}
.tb-description{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;color:var(--tb-muted);font-size:13px}
.tb-rules span{border:1px solid var(--tb-rule);padding:1px 6px;border-radius:3px}
.tb-note-foot{margin-top:6px;padding-top:11px;border-top:1px solid var(--tb-rule)}
.tb-note-foot strong{font-size:14px;font-weight:600;color:var(--tb-accent)}
.tb-note[data-source="memo"]{--tb-paper:#fff6d8;--tb-tape:#ead7a0;--tb-fold:#f2e5b9;--tb-rule:#e8d9af;--tb-ink:#6a583a;--tb-muted:#756346;--tb-accent:#756346;--tb-dot:#a7833c}
.tb-note[data-source="exchange"]{--tb-paper:#f2fbf8;--tb-tape:#c6e6dc;--tb-fold:#d3ece3;--tb-rule:#cde2d9;--tb-accent:#356456;--tb-dot:#558e7c}
.tb-note:is([data-source="admiral"],[data-source="governor"]){--tb-paper:linear-gradient(135deg,white,#e2eff7)}
.tb-note:is([data-source="admiral"],[data-source="governor"]) .tb-note-head>span:first-child::before{border-radius:0;transform:rotate(45deg)}
.tb-empty{display:grid;place-items:center;min-height:76px;padding:12px 8px;border:1px dashed var(--brand-300);border-radius:8px;color:var(--tb-muted);font-size:13px;text-align:center;margin:0;background:var(--bg-base)}
.tb-archive{padding:70px 7px 0}
#task-board-page .tb-folder{
 display:block;width:100%;max-width:190px;margin:auto;padding:19px 5px 12px;
 border:0;border-radius:8px;background:transparent;color:#294d6c;text-align:left;
}
.tb-folder-back{
 position:relative;display:block;aspect-ratio:1.65;min-height:80px;border-radius:4px 8px 7px 7px;
 background:linear-gradient(160deg,#afd5e9,#83b1cf);transform:rotate(-3deg);
}
.tb-folder-back::before{
 content:"";position:absolute;bottom:96%;left:0;width:48%;height:14px;
 border-radius:6px 9px 0 0;background:#afd5e9;clip-path:polygon(0 0,82% 0,100% 100%,0 100%);
}
.tb-folder-sheet{
 position:absolute;inset:-4% 7% 12%;border:1px solid #ccdfe9;border-radius:3px;
 background:linear-gradient(#e1ecf1 1px,transparent 1px) 10px 10px / 58% 6px no-repeat,#fff;
 box-shadow:-3px -4px 0 -1px #f3f8fb,1px -7px 0 -2px #ddeaf3;transform:rotate(2deg);
}
.tb-folder-sheet::after{
 content:"";position:absolute;top:-6px;right:9%;width:5px;height:14px;border:1.5px solid #bd90a9;
 border-radius:5px;transform:rotate(8deg);box-shadow:1px 1px 1px #62799325;
}
.tb-folder-front{
 position:absolute;inset:19% -2px -2px;display:flex;align-items:center;justify-content:space-between;gap:4px;
 padding:8px clamp(6px,1vw,13px);border:1px solid #99c1da;border-radius:5px 5px 8px 8px;
 background:linear-gradient(155deg,#e4f3fb,#c6e2f3 64%,#b9d9ec);
 box-shadow:inset 0 2px 0 #ffffffad,inset 0 -3px 0 #a8cde04d,0 8px 14px #42678b25;
 transform:perspective(260px) rotateX(-8deg);transform-origin:center bottom;
}
.tb-folder-label{
 display:grid;gap:2px;padding:4px 7px;border:1px solid #c4d8e2;border-radius:2px;
 background:#f9fcfd;box-shadow:0 1px 2px #42678b12;
}
.tb-folder-label strong{font-size:15px;font-weight:600;line-height:1.45;white-space:nowrap}
.tb-folder-label small{font-size:11px;color:#506d84;font-variant-numeric:tabular-nums;line-height:1.4}
.tb-folder-arrow{flex:none;width:8px;height:8px;margin-right:2px;border:solid currentColor;border-width:1.5px 1.5px 0 0;transform:rotate(45deg)}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
 .tb-folder-sheet,.tb-folder-front{transition:transform .2s ease-out}
 .tb-folder:is(:hover,:focus-visible) .tb-folder-sheet{transform:translateY(-4px) rotate(1deg)}
 .tb-folder:is(:hover,:focus-visible) .tb-folder-front{transform:perspective(260px) rotateX(-17deg)}
}
.tb-dialog{position:fixed;inset:0;margin:auto;width:min(490px,calc(100% - 24px));max-height:84dvh;overflow-y:auto;overscroll-behavior:contain;padding:clamp(16px,3vw,26px);border:1px solid var(--brand-300);border-radius:14px;color:var(--tb-ink);background:var(--bg-base);box-shadow:0 20px 70px #112d4530}
.tb-dialog::backdrop{background:#233e5766}
.tb-dialog>header{border-bottom:1px solid var(--tb-rule);padding-bottom:12px;margin-bottom:14px}
.tb-dialog>header h2{margin:0;font-size:20px;font-weight:700;overflow-wrap:anywhere}
.tb-dialog>header .tb-button{flex:none}
.tb-facts{display:grid;grid-template-columns:auto minmax(0,1fr);gap:9px 16px;font-size:14px}
.tb-facts dt,.tb-record small{color:var(--tb-muted)}
.tb-facts dd{margin:0;overflow-wrap:anywhere;white-space:pre-line}
.tb-actions{margin-top:18px;align-items:center;justify-content:flex-end}
.tb-records{display:grid;gap:12px}
.tb-record{border:1px solid var(--tb-rule);padding:14px;border-radius:8px;background:white;overflow-wrap:anywhere}
.tb-record h3{font-size:16px;margin:0}.tb-record h3 small{font-size:12px;font-weight:400}
.tb-entry small{display:block}.tb-entry b{white-space:nowrap}
.tb-form{display:grid;gap:14px}
.tb-form label{display:grid;gap:6px;color:var(--tb-ink);font-size:13px;font-weight:600}
.tb-form :is(input,select,textarea){max-width:100%;min-width:0;padding:8px;border:1px solid var(--brand-300);border-radius:8px;background:var(--bg-base);color:var(--tb-ink)}
.tb-form textarea{resize:vertical;line-height:1.6}
.tb-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.tb-form label:is(.tb-check,.tb-choice){display:flex;gap:8px;align-items:baseline}
.tb-form :is([type=radio],[type=checkbox]){width:16px;min-width:16px;height:16px;margin:0}
.tb-choice{padding:12px;border:1px solid var(--tb-rule);background:white;border-radius:8px}
.tb-feedback{color:#985123;margin:12px 0 0;font-size:13px}
.tb-feedback:empty{display:none}
.tb-exchange-quote{display:flex;justify-content:space-between;align-items:baseline;gap:6px 16px;flex-wrap:wrap;padding:11px 13px;background:var(--bg-tint);border-radius:8px;font-size:13px;color:var(--tb-muted)}
.tb-exchange-quote strong{color:var(--tb-ink);margin-inline-start:4px;font-size:16px;font-variant-numeric:tabular-nums}
.tb-exchange-form [data-filth-hint]:empty{display:none}
.tb-exchange-form [data-filth-hint]{margin:0;color:#82532d}
.tb-exchange-form button{justify-self:end}
#task-board-page .tb-exchange-form button:disabled{cursor:not-allowed}
.tb-feedback [data-tb-action="reload-exchange"]{display:block;margin-top:8px}
@media(max-width:960px){
 .tb-columns{grid-template-columns:minmax(0,1fr);row-gap:28px}
 .tb-archive{grid-column:1/-1;justify-self:center;width:145px;padding:8px}
}
@media(max-width:600px){
 body[data-section="tasks"] .utility-header{padding:20px 18px 0}
 body[data-section="tasks"] #utility-title{font-size:24px}
 .tb-columns{row-gap:24px}
 .tb-archive{justify-self:start}
 .tb-column-head{gap:4px;margin-bottom:14px}
 .tb-column-head h2{font-size:16px}
 .tb-notes{gap:17px 12px;padding:2px}
 #task-board-page .tb-note{padding:14px 9px 12px;gap:6px}
 .tb-note::before{width:42px;height:11px;top:-6px}
 .tb-note-title{font-size:16px}
 .tb-note-foot,.tb-rules{gap:4px}
 .tb-empty{padding:10px 4px}
 .tb-header{gap:6px}
 .tb-header p{margin-bottom:2px}
 .tb-toolbar{margin:12px 0 16px}
 #task-board-page .tb-button{padding:7px 10px;font-size:13px}
 .tb-form-grid{grid-template-columns:1fr 1fr}
 .tb-form .tb-actions{margin-top:4px}
}
@media(prefers-reduced-motion:reduce){#task-board-page :is(.tb-note,.tb-folder){transition:none}}
