:root{color-scheme:light;--bg:#f7f2e9;--grid:#e5d9c8;--ink:#423a33;--muted:#8f8378;--paper:#fffefa;--paper2:#f5ede3;--accent:#8d5a49;--line:#e8ddd1;--frame:#706e71;--soft:#f2e9de;--good:#477255;--badge:#f6e6d7}
body[data-theme="strawberry"]{--bg:#fff5f7;--grid:#f3d7e0;--ink:#553940;--muted:#9b7380;--paper:#fffefe;--paper2:#fff0f4;--accent:#d97c96;--line:#efd3dc;--frame:#8e7a81;--soft:#fceaf0;--good:#527c63;--badge:#fce1e9}
body[data-theme="mint"]{--bg:#f4fff9;--grid:#d8efe3;--ink:#314840;--muted:#6e9186;--paper:#fff;--paper2:#edf8f2;--accent:#69b490;--line:#d3eadf;--frame:#798786;--soft:#e5f6ee;--good:#47896b;--badge:#e1f4e8}
body[data-theme="fog"]{--bg:#f1f1f3;--grid:#d8d8df;--ink:#303036;--muted:#7b7b86;--paper:#fff;--paper2:#f3f3f6;--accent:#6a6b76;--line:#dddde5;--frame:#6b6b73;--soft:#ececf1;--good:#527b75;--badge:#e4e4ed}
body[data-theme="brownsugar"]{--bg:#fbf5ef;--grid:#ebddcd;--ink:#4b362b;--muted:#8a6f5e;--paper:#fffefa;--paper2:#f7eee6;--accent:#b77c56;--line:#ecdccf;--frame:#75655e;--soft:#f5e8dc;--good:#57755e;--badge:#f7dfc5}
body[data-theme="blueberry"]{--bg:#f0f7ff;--grid:#d8e5f5;--ink:#304763;--muted:#71839e;--paper:#fff;--paper2:#edf4ff;--accent:#5d87b9;--line:#d9e5f3;--frame:#7189a7;--soft:#e9f2fe;--good:#4b8a73;--badge:#e1edfc}
body[data-theme="grape"]{--bg:#f9f5ff;--grid:#e8ddf5;--ink:#4d3b62;--muted:#88779e;--paper:#fff;--paper2:#f3edfc;--accent:#9070b8;--line:#e9dcf5;--frame:#83738f;--soft:#efe6fb;--good:#5e8c72;--badge:#e9dff6}
body[data-theme="midnight"]{color-scheme:dark;--bg:#0f1115;--grid:#20242d;--ink:#e8eaed;--muted:#9ea6b5;--paper:#1a1d24;--paper2:#161920;--accent:#7aa2f7;--line:#2b313d;--frame:#14161b;--soft:#202632;--good:#7fd1a7;--badge:#24324c}
body[data-theme="ocean"]{color-scheme:dark;--bg:#0b1220;--grid:#1a2537;--ink:#e6edf7;--muted:#9fb2cc;--paper:#131c2e;--paper2:#10192a;--accent:#80aaff;--line:#263552;--frame:#111827;--soft:#16233a;--good:#2ee6a8;--badge:#20345e}
body[data-theme="plum"]{color-scheme:dark;--bg:#140f17;--grid:#2a2231;--ink:#efe6f2;--muted:#b9a8c1;--paper:#1f1824;--paper2:#19131f;--accent:#c77dff;--line:#362a40;--frame:#17121d;--soft:#261d2e;--good:#8fd0b8;--badge:#362742}
body[data-theme="graphite"]{color-scheme:dark;--bg:#111214;--grid:#23252a;--ink:#ececec;--muted:#b0b0b3;--paper:#1c1d20;--paper2:#17181b;--accent:#f5a524;--line:#303238;--frame:#17181a;--soft:#222429;--good:#8dcfba;--badge:#3d3020}
body[data-theme="forest"]{color-scheme:dark;--bg:#0e1411;--grid:#1d2a23;--ink:#e4ede6;--muted:#a5b8ab;--paper:#18211c;--paper2:#141c18;--accent:#5fd08a;--line:#2a3a31;--frame:#131b16;--soft:#1d2a23;--good:#8de0b0;--badge:#243c2a}
body[data-theme="espresso"]{color-scheme:dark;--bg:#15100d;--grid:#2a221d;--ink:#f3e9dd;--muted:#c7b9a8;--paper:#211915;--paper2:#1b1511;--accent:#e09f5a;--line:#3a2d24;--frame:#1a1411;--soft:#271d18;--good:#9ec49d;--badge:#3b291d}
*{box-sizing:border-box}html,body{min-height:100%}body{margin:0;background:var(--bg);background-image:linear-gradient(to right,var(--grid) 1px,transparent 1px),linear-gradient(to bottom,var(--grid) 1px,transparent 1px);background-size:28px 28px;color:var(--ink);font:15px/1.55 'Microsoft JhengHei','Noto Sans TC',system-ui,sans-serif}
.site-wrap{max-width:1100px;margin:22px auto;padding:0 16px}.site-frame{background:var(--frame);border-radius:24px;padding:12px;box-shadow:0 12px 35px #0002}.topbar{display:flex;align-items:center;gap:14px;padding:8px 16px 16px;color:#fff}.brand{font-size:18px;font-weight:800}.subbrand{font-family:Georgia,serif;font-size:12px;opacity:.86}.paper{border-radius:18px;background:var(--paper);padding:32px 35px}.hero{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}.eyebrow{font-size:12px;letter-spacing:2px;color:var(--muted)}h1{font-size:clamp(27px,5vw,40px);line-height:1.1;font-weight:900;margin:12px 0 10px;letter-spacing:.3px}.star{color:var(--accent)}.summary{color:var(--muted);margin:0;line-height:1.85}.tools{display:flex;gap:12px;justify-content:space-between;align-items:center;margin:24px 0 14px}.search{display:flex;align-items:center;gap:9px;flex:1;max-width:660px;border:1px solid var(--line);border-radius:12px;background:var(--paper2);padding:0 14px;color:var(--accent)}.search input{width:100%;background:transparent;color:var(--ink);padding:13px 2px;border:0;outline:0;font:inherit}.refresh-label{font-size:12px;color:var(--muted);white-space:nowrap}.button{background:var(--accent);border:1px solid var(--accent);border-radius:10px;color:var(--paper);padding:9px 14px;font:inherit;cursor:pointer}.button.outline{background:var(--paper);color:var(--ink);border-color:var(--line)}.button:hover{filter:brightness(.95)}
.list{display:grid;gap:11px}.queue-row{background:var(--paper2);padding:15px 17px;border:1px solid var(--line);border-radius:13px;display:grid;grid-template-columns:56px 1fr auto;gap:14px;align-items:center}.rank{font:800 27px Georgia,serif;color:var(--accent)}.info{min-width:0}.info h3{margin:0 0 3px;font-size:16px}.info p{margin:0;font-size:12px;color:var(--muted)}.status{border-radius:99px;padding:5px 12px;background:var(--badge);color:var(--ink);white-space:nowrap;font-size:12px;font-weight:700}.status.finished{color:var(--good)}.empty{padding:36px 12px;text-align:center;color:var(--muted)}
.partners{margin-top:32px;border-top:1px dashed var(--line);padding-top:20px}.partners h2{margin:0 0 8px;font-size:21px}.section-lead{font-size:13px;color:var(--muted);margin:0 0 18px}.partner-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.partner-card{background:var(--paper2);padding:18px;border:1px solid var(--line);border-radius:14px}.partner-card h3{margin:0 0 6px;font-size:17px}.partner-card p{color:var(--muted);font-size:13px;margin:0}.partner-card details{margin-top:8px}.partner-card summary{color:var(--accent);cursor:pointer;font-size:13px}.video-row{display:flex;gap:12px;justify-content:space-between;align-items:center;border-bottom:1px dashed var(--line);padding:9px 0;font-size:13px}.video-row:last-child{border-bottom:0}.video-title{font-weight:600}.video-date{color:var(--muted);font-size:12px}.balance{font-weight:800;color:var(--accent)}
.record-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:25px 0}.record-stat{background:var(--paper2);padding:14px;border:1px solid var(--line);border-radius:12px}.record-stat span{display:block;color:var(--muted);font-size:12px}.record-stat strong{font-family:Georgia,serif;font-size:24px}.records{margin-top:26px}.records h2{font-size:20px;margin:0 0 10px}.record-line{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:12px 2px;border-bottom:1px dashed var(--line)}.record-line small{display:block;color:var(--muted)}.record-line b{white-space:nowrap}.notice-text{white-space:pre-wrap;line-height:1.8}footer{text-align:center;color:var(--muted);font-size:12px;margin-top:34px}
#status.error{color:#c75d5d;margin-bottom:14px}dialog{max-width:min(600px,calc(100vw - 32px));border:1px solid var(--line);border-radius:18px;background:var(--paper);color:var(--ink);padding:22px;box-shadow:0 20px 60px #0005}dialog::backdrop{background:#0009}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:18px}.dialog-head h2{font-size:20px}
@media(max-width:700px){.site-wrap{margin:9px auto;padding:0 8px}.paper{padding:20px 17px}.topbar{padding:7px 8px 12px}.subbrand{font-size:10px}.queue-row{grid-template-columns:39px 1fr;gap:8px;padding:13px}.queue-row .status{grid-column:2;justify-self:start}.rank{font-size:22px}.partner-grid{grid-template-columns:1fr}.record-stats{grid-template-columns:1fr}.refresh-label{display:none}.record-line{align-items:flex-start}.record-line b{white-space:normal;text-align:right}}


/* Paper Atelier v15 patch #12: public queue information hierarchy and safe notice CSS. */
.site-wrap{max-width:1160px}
.site-frame{box-shadow:0 14px 36px #0002}
.paper{padding:clamp(20px,3.2vw,38px)}
.hero{align-items:flex-start}
.hero h1{margin:10px 0 13px}
.summary{display:inline-flex;align-items:center;gap:8px;color:var(--good);font-weight:700;background:var(--soft);padding:5px 11px;border-radius:100px}
.summary::before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:currentColor}
.summary.closed{color:var(--accent)}
.counts{color:var(--muted);font-size:13px;margin:10px 0 0}
.tools{margin:19px 0 11px;flex-wrap:wrap;gap:10px}
.search{max-width:none;min-width:180px}
.search:focus-within{border-color:var(--accent);outline:2px solid color-mix(in srgb,var(--accent) 27%,transparent);outline-offset:1px}
.tool-actions{display:flex;align-items:center;gap:8px}
.filter-bar{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 17px}
.filter-pill{appearance:none;border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:99px;padding:6px 12px;font:inherit;font-size:12px;cursor:pointer}
.filter-pill.is-active{background:var(--accent);border-color:var(--accent);color:var(--paper)}
.result-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 9px;color:var(--muted);font-size:12px}
#loadMore{display:block;margin:15px auto 3px;min-width:140px}
#loadMore[hidden],#queueFilters[hidden],#queueResult[hidden],#noticeCard[hidden]{display:none!important}
.notice-card{display:flex;align-items:flex-start;gap:13px;width:100%;text-align:left;padding:15px 17px;border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:13px;background:var(--paper2);color:var(--ink);cursor:pointer;margin:7px 0 20px;transition:transform .15s ease,box-shadow .15s ease}
.notice-card:hover{box-shadow:0 4px 15px #0001;transform:translateY(-1px)}
.notice-symbol{font:800 20px Georgia,serif;color:var(--accent)}
.notice-info{min-width:0;flex:1}
.notice-info strong{display:block;font-size:14px;margin-bottom:4px}
.notice-info span{color:var(--muted);font-size:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-line;overflow-wrap:anywhere}
.notice-arrow{font-size:12px;color:var(--accent);white-space:nowrap;align-self:center}
.queue-row{transition:border-color .15s ease,background-color .15s ease}
.queue-row:hover{border-color:var(--accent)}
.queue-row .info h3{overflow-wrap:anywhere}
.record-line{overflow-wrap:anywhere}
.status{background:var(--badge)}
.notice-text{white-space:pre-wrap;background:var(--paper2);border:1px solid var(--line);border-radius:12px;padding:19px 20px;line-height:1.8;overflow-wrap:anywhere;max-height:60vh;overflow:auto}
#noticeDialog{width:min(620px,calc(100vw - 28px))}
#status.is-visible{padding:11px 14px;border:1px solid var(--line);border-radius:10px;background:var(--paper2);margin:6px 0 14px}
#status.is-visible.error{background:var(--badge);color:var(--ink);border-color:var(--accent)}
.button:focus-visible,.filter-pill:focus-visible,.notice-card:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
@media(max-width:700px){.site-wrap{padding:0 7px;margin:8px auto}.site-frame{border-radius:17px;padding:8px}.paper{padding:20px 16px}.hero{gap:12px}.hero h1{margin:9px 0}.tools{align-items:stretch;margin-top:14px}.search{width:100%;flex-basis:100%}.tool-actions{width:100%;justify-content:space-between}.filter-bar{gap:6px}.filter-pill{padding:5px 10px}.notice-card{gap:9px;padding:12px}.notice-arrow{display:none}.queue-row{gap:9px}.queue-row .status{margin-left:0}.record-line{gap:9px}.record-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.record-stat{padding:10px 7px}.record-stat strong{font-size:16px}.record-stat span{font-size:11px}}
@media(prefers-reduced-motion:reduce){.notice-card,.queue-row{transition:none}.notice-card:hover{transform:none}}

/* Paper Atelier #13: compact queue, right-aligned search, Markdown notice */
body{font-size:14px}
.site-wrap{max-width:1060px;margin:15px auto;padding:0 12px}
.site-frame{padding:10px;border-radius:20px}
.paper{padding:23px 26px}
.hero{display:flex;gap:16px;align-items:flex-start}
.hero h1{font-size:clamp(26px,3.7vw,34px);margin:8px 0}
.hero-tools{margin-left:auto;display:flex;gap:8px;align-items:center;flex:0 1 420px;min-width:0;justify-content:flex-end}
.hero-tools .search{min-width:125px;max-width:300px;flex:1 1 240px}
.hero-tools .search input{padding:8px 2px;font-size:13px}
.hero-tools .button{flex-shrink:0;white-space:nowrap;padding:8px 11px;font-size:13px}
.tools{display:flex;justify-content:flex-end;margin:5px 0 10px;gap:10px}
.queue-row{padding:10px 12px;gap:10px;grid-template-columns:43px minmax(0,1fr) auto}
.rank{font-size:23px}
.info h3{font-size:14px}
.list{gap:8px}
.filter-bar{gap:7px;margin:9px 0}
.filter-pill{padding:6px 12px}
.record-stats{margin:14px 0;gap:9px}
.record-stat{padding:10px}
.record-stat strong{font-size:21px}
.records{margin-top:18px}
.progress-text{color:var(--accent)!important}
.notice-text{white-space:normal;line-height:1.7;overflow-wrap:anywhere}
.notice-text p{margin:6px 0 9px}
.notice-text h2,.notice-text h3,.notice-text h4,.notice-text h5{line-height:1.4;margin:17px 0 8px}
.notice-text h2{font-size:19px}.notice-text h3{font-size:17px}.notice-text h4,.notice-text h5{font-size:15px}
.notice-text ul,.notice-text ol{padding-left:22px;margin:7px 0 13px}
.notice-text blockquote{border-left:3px solid var(--accent);padding:6px 13px;background:var(--paper2);margin:12px 0}
.notice-text code{background:var(--soft);border-radius:4px;padding:1px 5px}
.notice-text pre{overflow-x:auto;padding:11px;background:var(--paper2);border-radius:8px}
.notice-text a{color:var(--accent);text-decoration:underline}
.notice-text hr{border:0;border-top:1px dashed var(--line)}
@media(max-width:700px){.site-wrap{margin:6px auto;padding:0 5px}.site-frame{padding:7px}.paper{padding:17px 13px}.hero{gap:10px}.hero-tools{margin-left:0;flex-basis:100%;width:100%;justify-content:flex-end}.hero-tools .search{max-width:none}.hero h1{font-size:28px}.queue-row{padding:9px}.record-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.record-stat{padding:7px}.record-stat strong{font-size:17px}}
@media(max-width:390px){.record-stats{grid-template-columns:1fr 1fr}.hero-tools .button{font-size:12px}}

/* PAPER_ATELIER_PATCH_14_PUBLIC_CSS: one-line equal-height filters + refresh */
.queue-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:18px 0 10px;flex-wrap:wrap}
.queue-controls .filter-bar{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:0;min-width:0}
.queue-controls .tools{display:flex;align-items:center;gap:8px;margin:0 0 0 auto;flex-wrap:nowrap;justify-content:flex-end}
.queue-controls .filter-pill,.queue-controls #refreshNow{display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;height:36px;min-height:36px;padding:0 13px;border-radius:10px;font-size:12.5px;line-height:1;font-weight:600;white-space:nowrap}
.queue-controls .filter-pill.is-active{color:var(--paper)}
.queue-controls .refresh-label{font-size:11px;color:var(--muted)}
.queue-row .queue-title{font-size:15px;line-height:1.45;margin:0 0 3px;font-weight:800;overflow-wrap:anywhere}
.queue-row .queue-client{font-size:12.5px;color:var(--ink);line-height:1.5;overflow-wrap:anywhere}
.queue-row .queue-category{font-size:11.5px;color:var(--muted);margin-top:1px}
@media(max-width:650px){.queue-controls{gap:8px;margin:15px 0 10px}.queue-controls .tools{margin-left:auto}.queue-controls .filter-bar{gap:6px}.queue-controls .filter-pill,.queue-controls #refreshNow{padding:0 10px;height:34px;min-height:34px;font-size:12px}.queue-controls .refresh-label{display:none}.queue-row .queue-title{font-size:14px}}

/* PAPER_ATELIER_PATCH_15_CSS: clean two-part public queue layout */
.queue-row{display:grid;grid-template-columns:minmax(150px,0.92fr) minmax(0,1.48fr) auto;gap:18px;align-items:center;padding:13px 17px;min-height:73px}
.queue-identity{display:flex;align-items:center;column-gap:9px;row-gap:4px;flex-wrap:wrap;min-width:0}
.queue-rank{font:700 12px Georgia,serif;color:var(--muted);min-width:20px;letter-spacing:.3px}
.queue-person{font-size:20px;line-height:1.32;overflow-wrap:anywhere;color:var(--ink);font-weight:800}
.queue-partner-tag{font-size:10px;color:var(--muted);background:var(--soft);border:1px solid var(--line);padding:2px 5px;border-radius:6px;white-space:nowrap}
.queue-details{min-width:0;overflow-wrap:anywhere}
.queue-details .queue-project{font-size:14px;font-weight:750;line-height:1.5;margin:0;color:var(--ink)}
.queue-details .queue-date{font-size:12px;line-height:1.5;margin:4px 0 0;color:var(--muted)}
.queue-details .progress-text{font-size:12px;margin-top:4px}
.queue-row>.status{justify-self:end}
@media(max-width:700px){.queue-row{grid-template-columns:minmax(0,1fr) auto;gap:5px 10px;padding:11px 12px;min-height:0}.queue-identity{grid-column:1;grid-row:1}.queue-person{font-size:17px}.queue-details{grid-column:1;grid-row:2}.queue-details .queue-project{font-size:13px}.queue-row>.status{grid-column:2;grid-row:1 / span 2;align-self:center;justify-self:end}}
