/* Task hall — paper notices on a warm pinboard. */
body:has(.guild-board){--night:#151419;--blue:#0834bd;--acid:#e0fc05;--mint:#26c392;--rail:clamp(178px,15vw,224px);background:#faf9f5;color:var(--night);font-family:"Microsoft YaHei","PingFang SC",Arial,sans-serif}
.shell:has(.guild-board){margin:0;min-height:100dvh;display:grid;grid-template-columns:var(--rail) minmax(0,1fr);background:#faf9f5}
.shell:has(.guild-board) .sidebar{position:sticky;align-self:start;top:0;width:auto;height:100dvh;grid-column:1;grid-row:1;background:#fff;border:0;border-right:1px solid #e2dfd8;padding:26px 14px 16px}
.shell:has(.guild-board) .brand{padding:8px 7px 25px;border-bottom:1px solid #e6e4df}
.shell:has(.guild-board) .brandmark,.shell:has(.guild-board) .side-note,.shell:has(.guild-board) .topbar,.shell:has(.guild-board) .footer-note,.shell:has(.guild-board) .guide-nudge,.shell:has(.guild-board) .mobile-tools{display:none}
.shell:has(.guild-board) .brand strong{font-size:clamp(18px,1.5vw,24px);color:#171719}
.shell:has(.guild-board) .nav{gap:7px}
.shell:has(.guild-board) .nav a{color:#222126;border:0;border-radius:12px}
.shell:has(.guild-board) .sidebar .nav a[aria-current=page]{background:var(--blue);color:white;box-shadow:0 5px 13px #0834bd2b}
.shell:has(.guild-board) .workspace{grid-column:2;grid-row:1;min-width:0}
.shell:has(.guild-board) .content{max-width:none;margin:0;padding:0}
.guild-board{--pad:clamp(22px,3.3vw,72px);min-height:100dvh;padding:clamp(32px,5vh,75px) var(--pad) 64px;background:radial-gradient(circle,#dedbd0 1px,transparent 1.4px) 0 0/17px 17px,#faf9f5;color:var(--night)}
.g-head,.g-sub,.g-quick,.g-secondary,.g-meta{display:flex;align-items:center;flex-wrap:wrap}
.g-head{gap:clamp(12px,1.4vw,24px);position:relative}
.g-head h1{position:relative;isolation:isolate;margin:0;font-size:clamp(36px,4.2vw,76px);line-height:1.18;letter-spacing:-.085em;font-weight:950;color:var(--night)}
.g-head h1:before,.g-card.poster:after{content:"";position:absolute;pointer-events:none;background:var(--acid);clip-path:polygon(50% 0,56% 31%,82% 7%,70% 38%,100% 36%,77% 55%,98% 78%,66% 70%,63% 100%,46% 76%,22% 98%,30% 65%,0 65%,24% 46%,5% 23%,38% 30%)}
.g-head h1:before{z-index:-1;width:.65em;height:.65em;left:-.28em;top:-.15em}
.g-pot{background:var(--acid);padding:7px 13px;transform:rotate(6deg);border-radius:9px;display:grid;line-height:1.18;box-shadow:0 3px 9px #45452b12}
.g-pot span{font-size:13px}.g-pot strong{font:850 clamp(21px,1.8vw,34px)/1.1 Arial,sans-serif}
.g-quick{gap:8px;margin-left:auto}
.guild-board .btn{min-height:0;white-space:normal;font-family:inherit;line-height:1.3}
.guild-board .g-pill,.guild-board .g-post{background:#fff;color:var(--night);border:1px solid #deddd6;border-radius:99px;padding:9px 15px;font-size:clamp(14px,.98vw,17px);box-shadow:0 3px 8px #201d2210;font-weight:650}
.guild-board .g-pill[aria-pressed=true]{background:var(--night);color:white;border-color:var(--night)}
.guild-board .g-post{background:var(--acid);border-color:transparent;font-weight:850}
.g-sub{justify-content:space-between;gap:10px;margin:23px 0 clamp(34px,5vh,58px)}
.g-secondary,.g-meta{gap:9px}.g-meta{font-size:12px;color:#585661;font-variant-numeric:tabular-nums}
.guild-board .g-secondary .g-pill{padding:5px 10px;font-size:13px;box-shadow:none}
.g-wall{display:grid;grid-template-columns:minmax(0,1.23fr) repeat(2,minmax(0,1fr));gap:clamp(23px,2.25vw,44px);align-items:stretch}
.g-card{--angle:-1.5deg;--paper:var(--acid);--ink:var(--night);--action:var(--night);--action-ink:white;position:relative;display:flex;flex-direction:column;align-items:flex-start;min-width:0;min-height:clamp(195px,26vh,310px);padding:clamp(19px,1.9vw,34px);border:0;border-radius:20px 17px 24px 14px;background:var(--paper);color:var(--ink);box-shadow:0 5px 14px #25212614;transform:rotate(var(--angle));transition:transform .2s ease,box-shadow .2s ease}
.g-card:nth-child(3n){--angle:1.8deg}.g-card:nth-child(3n+1){--angle:1deg}
.g-card.blue{--paper:var(--blue);--ink:white;--action:white;--action-ink:var(--blue)}
.g-card.mint{--paper:var(--mint);--action:var(--blue);--action-ink:white}
.g-card.poster{--paper:var(--night);--ink:white;--angle:-.5deg;--action:var(--acid);--action-ink:var(--night);grid-row:span 2;justify-content:center;align-items:center;text-align:center;padding:clamp(29px,2.4vw,54px);min-height:clamp(365px,51vh,590px);box-shadow:0 10px 24px #211c2724}
.g-card.poster:after{width:26px;height:26px;top:17%;right:13%;transform:rotate(18deg)}
.g-stickers{position:absolute;inset:-13px 10px auto 13px;display:flex;align-items:flex-start;justify-content:space-between;gap:4px;pointer-events:none}
.g-stickers b,.g-time,.g-stamp,.g-source{border-radius:7px;padding:4px 9px;background:#fff;color:var(--night);box-shadow:0 2px 7px #18172217;font-size:clamp(12px,.95vw,16px);font-weight:750;line-height:1.2}
.g-stickers b{transform:rotate(-5deg)}.g-time,.g-stamp{transform:rotate(5deg);font-variant-numeric:tabular-nums}
.poster .g-stickers b{background:var(--acid);font-size:clamp(18px,1.5vw,28px);transform:rotate(-7deg);padding:6px 12px}
.g-time[data-urgent=true]{background:#ffdfaa;color:#762d09}.g-stamp.done{background:var(--blue);color:#fff}.g-stamp.expired{background:#39383e;color:#fff}
.g-value{font:900 clamp(48px,4.5vw,84px)/1 Arial,sans-serif;letter-spacing:-.065em;margin:7px 0 9px}
.g-value small{font:800 .42em/1 sans-serif;letter-spacing:0}
.poster .g-value{font-size:clamp(72px,6.6vw,132px);color:var(--acid);margin:15% 0 14px}
.g-card h2{margin:0 0 15px;line-height:1.24;font-size:clamp(19px,1.55vw,30px);overflow-wrap:anywhere;color:inherit}
.g-card.blue h2{font-size:clamp(18px,calc(1.55vw - 1px),29px);line-height:1.2}
.guild-board .g-title{padding:0;border:0;box-shadow:none;background:transparent;text-align:inherit;font-size:inherit;font-weight:850;line-height:inherit;color:inherit;letter-spacing:-.035em}
.poster h2{font-size:clamp(25px,2.35vw,45px);margin:6px 0 15px}
.g-source{background:#353439;color:white;border-radius:99px}
.g-action{margin-top:auto;padding-top:9px}
.g-action .btn{display:inline-flex;align-items:center;gap:4px;border:0;border-radius:99px;background:var(--action);color:var(--action-ink);font-weight:800;padding:8px 14px;box-shadow:none;font-size:clamp(14px,1.03vw,18px)}
.poster .g-action{width:100%;margin-top:auto}.poster .g-action .btn{width:100%;justify-content:center;padding:12px}
.g-action .g-limit{background:#ffffffde;color:#36353b}.poster .g-limit{background:#363439;color:#fff}
.guild-board .btn:focus-visible{outline:3px solid #fb751a;outline-offset:3px}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.g-card:hover,.g-card:focus-within{transform:translateY(-6px) rotate(0) scale(1.015);box-shadow:0 15px 28px #24212c22;z-index:2}.g-action .btn:active{transform:scale(.97)}}
.g-empty{grid-column:1/-1;padding:52px 24px;text-align:center;color:#54515b;background:#ffffffbf;border-radius:14px}
.g-feed{position:fixed;z-index:5;bottom:0;left:var(--rail);right:0;background:var(--night);color:white;display:flex;align-items:center;gap:13px;height:32px;padding:0 20px;font-size:12px}
.g-feed b,.g-feed strong{white-space:nowrap}.g-feed b{color:var(--acid)}.g-feed em{font-style:normal;font-weight:500}
.g-track{flex:1;min-width:0;overflow:hidden}.g-track>div{display:flex;width:max-content;animation:g-news 38s linear infinite}.g-track span{padding-right:38px}.g-track:hover>div{animation-play-state:paused}
@keyframes g-news{to{transform:translateX(-50%)}}
#modal .g-delivery-deadline{background:#eef3ff;color:#273956}
#modal #submit-form button[type=submit]{background:#0834bd;border-color:#141414;color:white}
#toast.guild-accepted{background:#151419;color:white}
@media(max-width:1150px){.g-quick{margin-left:0}.g-wall{gap:24px}.g-card{padding:20px}.g-meta{font-size:11px}}
@media(max-width:940px){.g-wall{grid-template-columns:repeat(2,minmax(0,1fr))}.g-card.poster{grid-row:span 2}.g-sub{gap:12px}}
@media(max-width:760px){.shell:has(.guild-board){display:block}.shell:has(.guild-board) .sidebar{position:fixed;inset:auto 0 0;width:100%;height:60px;padding:0 4px;border:0;border-top:1px solid #deddd6;z-index:20}.shell:has(.guild-board) .brand,.shell:has(.guild-board) .sidebar-bottom{display:none}.shell:has(.guild-board) .sidebar .nav{gap:0}.shell:has(.guild-board) .nav a{font-size:10px;padding:3px 0}.guild-board{padding:30px 20px 118px}.g-quick{width:100%;gap:6px;margin-top:10px}.guild-board .g-quick .btn{font-size:14px;padding:7px 11px}.g-sub{margin:15px 0 32px}.g-meta{gap:6px}.g-feed{left:0;bottom:60px;padding:0 9px;gap:6px}.g-feed strong{overflow:hidden;text-overflow:ellipsis;max-width:43%}}
@media(max-width:520px){.g-wall{grid-template-columns:1fr;gap:28px}.g-card{min-height:166px;--angle:-1deg}.g-card.poster{grid-row:auto;min-height:265px;padding:24px 32px}.poster .g-value{margin:5px 0}.poster .g-action{width:auto}.g-card h2{font-size:21px}.g-card.blue h2{font-size:20px}.poster h2{font-size:27px}}
@media(prefers-reduced-motion:reduce){.g-card{transition:none}.g-track>div{animation:none}}

.g-pot small {
  margin-top: 3px;
  color: #383a28;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

#modal[data-task-detail] {
  --accent: #0834bd;
  --ink: #191b23;
  --muted: #555c6a;
  --line: #dce0e8;
  --tint: #edf2ff;
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}
#modal[data-task-detail]::backdrop { background: rgb(20 23 32 / 36%); }
#modal[data-task-detail] .close-btn {
  background: #f1f2f5;
  color: #363943;
  border: 0;
  border-radius: 50%;
}
#modal[data-task-detail] .close-btn:hover { background: #e4e6ec; }
#modal[data-task-detail] :focus-visible { outline: 2px solid #536491; outline-offset: 2px; }
#modal[data-task-detail] .btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
#modal[data-task-detail] .btn.primary:hover { background: #062b9e; border-color: #062b9e; }
#modal[data-task-detail] .notice:not(.warn),
#modal[data-task-detail] .result-box { background: #f1f4fb; color: #303c56; }
#modal[data-task-detail] .chip { background: #f5f6f8; border-color: var(--line); color: #4e5563; }
#modal[data-task-detail] .chip.accent { background: #edf2ff; border-color: #d6e0fa; color: #183e9a; }
#modal[data-task-detail="sample"] {
  width: min(510px, calc(100vw - 30px));
  height: fit-content;
  min-height: 0;
  padding: 20px 22px;
}
#modal[data-task-detail="sample"] .dialog-head { margin-bottom: 10px; }
#modal[data-task-detail="sample"] .cast-parties { margin: 6px 0; }
#modal[data-task-detail="sample"] h3 { margin: 12px 0 6px; }
#modal[data-task-detail="sample"] p { margin: 6px 0; }
#modal[data-task-detail="sample"] > .btn { margin-top: 5px; }

/* Public bounty composer */
#modal:has(.bounty-compose){padding:0;color:#181b27;border-color:#d9deeb;background:white}
#modal[open]:has(.bounty-compose){display:flex;flex-direction:column;box-sizing:border-box;max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);overflow:hidden}
.bounty-compose{display:flex;flex-direction:column;min-height:0;margin:0}
#modal:has(.bounty-compose) .dialog-head{flex:none;margin:0;padding:18px 26px 14px;border-bottom:1px solid #e4e7ee;align-items:center}
#modal:has(.bounty-compose) .dialog-head h2{font-size:23px}
.bounty-compose .bounty-body{display:grid;min-height:0;overflow-y:auto;overscroll-behavior:contain;gap:16px;padding:20px 26px}
.bounty-compose fieldset,.bounty-compose .field{min-width:0;margin:0}
.bounty-compose fieldset{padding:0;border:0}
.bounty-compose legend,.bounty-compose label.field{color:#252a3a;font-size:14px;font-weight:650}
.bounty-compose legend{margin:0 0 8px;padding:0}
.bounty-compose .field{display:grid;align-content:start;gap:6px}
.bounty-compose .field :is(input,select,textarea){box-sizing:border-box;width:100%;min-width:0;margin:0;border:1px solid #cbd1de;border-radius:8px;background:white;color:#20263b;font:inherit;font-weight:400;padding:9px 11px}
.bounty-compose .field :is(input,select){height:42px}
.bounty-compose .field textarea{min-height:78px;resize:vertical;line-height:1.5}
.bounty-compose .field :focus-visible{outline:2px solid #1842dd;outline-offset:1px}
.bounty-choices,.bounty-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
.bounty-choices label,.bounty-grades label{cursor:pointer;display:flex;align-items:center;gap:8px;color:#25304b;border:1px solid #ced4e0;border-radius:9px;background:white}
.bounty-choices label{padding:10px 13px}
.bounty-choices label:has(:checked),.bounty-grades label:has(:checked){background:#eef2ff;border-color:#8ea5f0;color:#102eab}
.bounty-choices input,.bounty-grades input{flex:none;width:16px;height:16px;min-height:0;margin:0;accent-color:#1339c8}
.bounty-choices span{display:grid;gap:3px}
.bounty-choices b{font-size:15px}
.bounty-choices small,.bounty-grades legend small,.bounty-balance{font-size:12px;font-weight:400;color:#505b72}
.bounty-grades legend small{margin-left:8px}
.bounty-grades>div{display:flex;gap:7px;flex-wrap:wrap}
.bounty-grades label{font-size:13px;padding:7px 11px;border-radius:20px}
.bounty-helper{margin-top:-9px}
.bounty-compose .bounty-helper button{border:0;color:#1037b8;background:transparent;padding:3px 0;min-height:26px}
.bounty-budget{display:grid;grid-template-columns:minmax(105px,170px) 1fr;align-items:end;gap:8px 14px;background:#f4f6fd;border-radius:12px;padding:14px 16px}
.bounty-balance{padding-bottom:12px}
.bounty-budget p,.bounty-terms p{font-size:13px;line-height:1.65;color:#424d65;margin:0}
.bounty-budget p{grid-column:1/-1}
.bounty-compose [hidden]{display:none!important}
.bounty-terms summary{cursor:pointer;color:#36445f;font-size:13px}
.bounty-terms p{margin-top:6px}
.bounty-feedback:not(:empty){flex:none;margin:0;padding:8px 16px;color:#20366b;background:#edf2ff;font-size:14px;line-height:1.45;overflow-wrap:anywhere}
.bounty-feedback[data-bounty-error]:not(:empty){color:#842621;background:#fff1ed}
.bounty-feedback:empty{display:none}
.bounty-footer{flex:none;display:flex;justify-content:flex-end;gap:10px;padding:12px 26px;background:white;border-top:1px solid #e0e4ed}
.bounty-compose .bounty-footer .primary{background:#1438c4;border-color:#1438c4;color:white}
.bounty-compose .bounty-footer .primary:hover{background:#0e2b9d}
@media(max-width:600px){
 #modal:has(.bounty-compose) .dialog-head{padding:14px 16px 11px}
 .bounty-compose .bounty-body{gap:14px;padding:15px 16px}
 .bounty-pair,.bounty-choices{gap:8px}
 .bounty-choices label{padding:9px 7px;gap:5px}
 .bounty-choices small{font-size:11px}
 .bounty-grades label{padding:6px 8px;gap:5px}
 .bounty-footer{padding:10px 16px max(10px,env(safe-area-inset-bottom))}
 .bounty-footer .primary{flex:1}
 .bounty-single .bounty-pair{grid-template-columns:1fr}
}

.bounty-compose .field small,.bounty-channel-help,.bounty-raise p,.channel-lead{color:#525e75;font-size:13px;line-height:1.6}
.bounty-compose .field [data-file-status]:empty{display:none}
.bounty-compose .field input[type=file]{height:auto;padding:8px;line-height:1.4}
.bounty-compose input[type=file]::file-selector-button{border:0;border-radius:6px;background:#edf1ff;color:#1537ad;padding:6px 10px;margin-right:8px}
.bounty-channel-help{margin:0}
.bounty-raise{margin:14px 0;padding:12px 16px;background:#f2f5fc;border-radius:9px}
.bounty-raise summary{font-weight:700;color:#1836ad;cursor:pointer}
.bounty-raise form{display:grid;gap:10px;margin-top:12px}
.bounty-raise p,.channel-lead{margin:0}
.bounty-raise label input[type=checkbox]{width:16px;height:16px;vertical-align:middle}
.bounty-raise .btn{justify-self:start}
.bounty-files{padding-left:20px;overflow-wrap:anywhere}
.bounty-files a{color:#173cab;text-decoration:underline}
.market-channel{display:grid;gap:12px}
.channel-log{overflow-y:auto;height:min(42dvh,400px);background:#f4f6fc;border-radius:10px;padding:12px;overscroll-behavior:contain}
.channel-log article{background:white;border-radius:7px;margin:0 0 9px;padding:10px 12px}
.channel-log article>div,.channel-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}
.channel-log time{color:#5e6778;font-size:12px}
.channel-log p{margin:5px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.channel-log strong{color:#183dba}
.channel-actions label{display:flex;align-items:center;gap:6px;min-width:0}
.channel-actions select{width:auto;max-width:45vw}
.market-channel .primary,.bounty-raise .primary{background:#1536bb;color:#fff}

/* Public bounty details and the confirmed transaction receipt. */
#modal:has(.bounty-detail-actions) .dialog-head { margin-bottom: 12px; }
#modal .bounty-receipt {
  margin: 0 0 16px; padding: 12px 16px; border-radius: 10px;
  background: #eaf0ff; color: #1336ad; border-left: 5px solid #2045d8;
  font-weight: 750;
}
#modal .bounty-progress {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  color: #18245c; font-size: 1.15rem; margin: 18px 0 10px;
}
.bounty-progress strong {
  background: #effb79; color: #172243; border-radius: 20px;
  padding: 3px 12px; font-size: .96em; font-variant-numeric: tabular-nums;
}
.bounty-money { display: flex; flex-wrap: wrap; gap: 6px 14px; color: #4d586f; background: #f4f6fc; border-radius: 10px; padding: 9px 12px; font-size: .9rem; }
.bounty-money span { white-space: nowrap; }
.bounty-money b { color: #293958; font-weight: 650; }
.bounty-detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; padding-top: 16px; margin-top: 18px; border-top: 1px solid #dfe4ee; }
#modal .bounty-detail-actions .primary, #modal .bounty-keep { background: #153bc2; color: white; border-color: #153bc2; }
#modal .bounty-detail-actions .primary:hover, #modal .bounty-keep:hover { background: #102e9d; }
#modal .bounty-secondary-cancel { border-color: transparent; background: transparent; color: #93433d; font-weight: 500; box-shadow: none; }
#modal .bounty-secondary-cancel:hover { background: #fcf2ef; text-decoration: underline; }
.bounty-file-picker { position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1.5px dashed #8297da; border-radius: 10px; color: #193aa9; background: #f5f7ff; font-weight: 650; cursor: pointer; }
.bounty-file-picker:hover { background: #ebefff; }
.bounty-file-picker:focus-within { outline: 2px solid #193aa9; outline-offset: 2px; }
.bounty-compose .field .bounty-file-picker input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.bounty-upload [data-file-names] { overflow-wrap: anywhere; font-size: .9rem; }
.bounty-upload [data-file-names]:empty { display: none; }

.guild-board .g-examples{margin:20px 0;padding:14px 16px;background:#f5f6fa;border-radius:14px;color:#344057}.g-examples summary{cursor:pointer;font-weight:700}.g-examples[open] summary{margin-bottom:16px}.guild-board .g-examples .g-example{background:white;color:#27334a;transform:none}.guild-board .g-examples .g-value{font-size:1.35rem}.guild-board #guild-clock{background:transparent;color:#536078;font-weight:500}

#modal .dialog-actions:has(.bounty-keep) .bounty-keep{background:#fff;color:#183ba9;border:1px solid #b6c5eb}
#modal .published-receipt{background:#193ab4;color:white;border:0;font-size:17px;padding:16px}
.g-card.just-published{outline:3px solid #244dd8;outline-offset:2px}
.handoff-progress{padding:12px 14px;border-radius:12px;background:#eef3ff;margin:.75rem 0;color:#192744}
.handoff-progress ol{display:flex;list-style:none;padding:0;gap:6px;margin:0 0 8px}.handoff-progress li{flex:1;border-top:3px solid #c1cbe2;padding-top:4px;font-size:14px}.handoff-progress [aria-current=step]{border-color:#2144c3;color:#1539ae;font-weight:700}
@media(max-width:680px){#modal :is(.dialog-actions,.bounty-detail-actions):has(.btn.primary,.bounty-keep){display:flex;flex-wrap:wrap;align-items:stretch;gap:8px}#modal :is(.dialog-actions,.bounty-detail-actions)>.btn{min-height:44px}#modal :is(.dialog-actions,.bounty-detail-actions)>.btn.primary{order:1;background:#193ab4;color:white}#modal .dialog-actions:has(.bounty-keep)>button,#modal #sell-form .dialog-actions>button,#modal .pf-ask-form .dialog-actions>button{flex:1 1 0;min-width:0}}
