:root{font-family:system-ui,-apple-system,sans-serif;color:#202020;background:#f4f4f3;font-size:16px}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}header{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1.2rem max(1rem,calc((100vw - 1120px)/2));background:#fff;border-bottom:1px solid #dededc}a{color:#222222}.brand{font-size:1.25rem;font-weight:750;text-decoration:none}.brand span{font-size:.85rem;font-weight:400;margin-left:.5rem}main{max-width:1120px;margin:auto;padding:1.5rem 1rem 4rem}h1{font-size:1.8rem}h2{font-size:1.1rem}section{margin:1.5rem 0}.note,#entry-count{font-size:.88rem;color:#707070;line-height:1.7}label{display:flex;flex-direction:column;gap:.45rem;min-width:0;font-size:.9rem}input,select,textarea,button{font:inherit;border:1px solid #b0b0ad;border-radius:8px;padding:.7rem .9rem;min-height:44px;background:white;color:inherit;max-width:100%}input,select,textarea{width:100%}select{appearance:none;padding-right:2.6rem;background-image:linear-gradient(45deg,transparent 50%,#202020 50%),linear-gradient(135deg,#202020 50%,transparent 50%);background-size:5px 5px,5px 5px;background-repeat:no-repeat;background-position:right 20px center,right 15px center}button{cursor:pointer;background:#222222;color:white;border-color:#222222}button:disabled{cursor:default;opacity:.55}.secondary{background:white;color:#222222}.danger{background:#3d3d3d;border-color:#3d3d3d}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #4d4d4d;outline-offset:3px}.toolbar,.actions{display:flex;gap:.75rem;align-items:end;flex-wrap:wrap}.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.metrics article,#writer,#access-manager{background:white;border:1px solid #dededc;border-radius:12px;padding:1.25rem}.metrics h2{font-size:.9rem;font-weight:500}.metrics strong{font-size:1.45rem;overflow-wrap:anywhere}form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.full{grid-column:1/-1}.table-wrap{overflow:auto;border:1px solid #dededc;border-radius:8px;background:white}table{border-collapse:collapse;width:100%;font-size:.9rem;min-width:560px}th,td{padding:.85rem;text-align:left;border-bottom:1px solid #e7e7e5}td{max-width:250px;overflow-wrap:anywhere}th{background:#eeeeec}td button{font-size:.8rem;margin:.2rem;padding:.45rem .6rem}.over{color:#303030;font-weight:700}#error{padding:1rem;background:#eeeeec;border-left:3px solid #444444;white-space:pre-wrap}#saved-state{font-size:.85rem}fieldset{border:1px solid #b0b0ad;border-radius:8px;display:flex;flex-wrap:wrap;gap:1rem}fieldset label{flex-direction:row;align-items:center}fieldset input{width:18px;min-height:18px}#grants{padding-left:1rem;overflow-wrap:anywhere}#grants li{margin:1rem 0}dialog{border:1px solid #b0b0ad;border-radius:12px;max-width:760px;width:calc(100% - 2rem);max-height:85dvh;padding:1.5rem}dialog::backdrop{background:#0007}dialog article{border-bottom:1px solid #dededc;padding:1rem 0}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.82rem}@media(max-width:600px){.metrics{grid-template-columns:1fr}.metrics article{display:flex;justify-content:space-between;align-items:center;padding:.8rem 1rem}.metrics strong{font-size:1.2rem}form{grid-template-columns:1fr}.brand span{display:block;margin:0}.toolbar{align-items:center}}

.admin-nav{display:flex;flex-wrap:wrap;gap:.5rem;margin:1.5rem 0}.admin-nav button{background:white;color:#222222}.admin-nav button[aria-pressed=true]{background:#222222;color:white}.search-field{min-width:230px;flex:1}#order-detail dl{display:grid;grid-template-columns:120px minmax(0,1fr);gap:.65rem}#order-detail dt{font-weight:600}#order-detail dd{margin:0;overflow-wrap:anywhere}#order-detail p{line-height:1.7;font-size:.9rem}.metrics h3{font-size:.9rem;font-weight:500}#revenue-issues{overflow-wrap:anywhere}#revenue-issues button{margin-left:.5rem}#order-rows td:first-child,#member-rows td:first-child{min-width:200px}#orders-panel table,#members-panel table{min-width:840px}#orders-panel th,#members-panel th,#revenue-panel th,#orders-panel td:not(:first-child),#members-panel td:not(:first-child),#revenue-panel td{white-space:nowrap}@media(max-width:600px){#order-detail dl{grid-template-columns:1fr}#order-detail dd{margin-bottom:.5rem}.search-field{min-width:0;width:100%;flex-basis:100%}.admin-nav button{flex:1 0 auto}}

.refund-confirm{flex-direction:row;align-items:start;margin:1rem 0;line-height:1.6}.refund-confirm input{width:20px;min-height:20px;flex:none}#order-detail .actions{margin:1rem 0}#order-detail [role=status]{color:#3d3d3d}#order-detail p{overflow-wrap:anywhere}

#catalog-panel table{min-width:850px}#catalog-panel td,#catalog-panel th{white-space:nowrap}#catalog-panel .table-wrap{margin-top:1rem}#catalog-editor p{line-height:1.7;overflow-wrap:anywhere}

#generation-panel table{min-width:1150px}#generation-panel th,#generation-panel td:not(:last-child){white-space:nowrap}#generation-panel td:last-child{min-width:240px}#generation-editor p{overflow-wrap:anywhere;line-height:1.7}

.period-actions{margin:1rem 0}#period-history li{margin:1rem 0;overflow-wrap:anywhere}#closing-content p{overflow-wrap:anywhere;line-height:1.7}#closing-content table{min-width:850px}#closing-content th,#closing-content td{white-space:nowrap}#period-feedback{color:#3d3d3d}

.allocation-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;border:1px solid #dededc;border-radius:8px;padding:1rem}.check-label{flex-direction:row;align-items:center}.check-label input{width:20px;min-height:20px;flex:none}#allocation-totals{line-height:1.8;overflow-wrap:anywhere}@media(max-width:600px){.allocation-fields{grid-template-columns:1fr}}

#closing-content td:last-child{white-space:normal;min-width:240px}

.rate-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}#rate-editor{background:#fff;border:1px solid #dededc;border-radius:12px;padding:1.25rem}#rate-result p,#rate-current,#rate-feedback{overflow-wrap:anywhere;line-height:1.7}#rate-rows small{display:block;overflow-wrap:anywhere}#rates-panel table{min-width:950px}#rate-rows td:nth-child(2){white-space:nowrap}@media(max-width:600px){.rate-fields{grid-template-columns:1fr}}

#cost-writer{background:white;border:1px solid #dededc;border-radius:12px;padding:1.25rem}#cost-summary,#cost-quote,#cost-detail p{line-height:1.7;overflow-wrap:anywhere}#costs-panel table{min-width:900px}#cost-detail .actions{margin:1rem 0}#cost-detail label{margin:.7rem 0}

#cash-anchor-editor,#cash-entry-editor{background:#fff;border:1px solid #dededc;border-radius:12px;padding:1.25rem}#cash-panel table{min-width:950px}#cash-plans,#cash-feedback,#cash-review-content p{line-height:1.7;overflow-wrap:anywhere}#cash-review-content form{margin:1rem 0}

.scenario-channel{background:white;border:1px solid #dededc;border-radius:12px;padding:1rem}.scenario-channel h4{margin-top:0}.scenario-channel>button{margin-top:1rem}#scenario-result,#scenario-feedback{overflow-wrap:anywhere;line-height:1.7}#scenario-result table{min-width:1000px}#scenario-result .table-wrap{max-width:100%}
#scenario-form>*{min-width:0}#scenario-form{min-width:0}#scenario-result .table-wrap{width:100%}

#accounting-fields{min-width:0}#accounting-inputs{width:100%;min-width:0}#accounting-inputs label{flex-direction:column;align-items:stretch}#accounting-inputs input{width:100%;min-height:44px}#profit-review-form label:has(input[type=checkbox]){flex-direction:row;align-items:start;line-height:1.6}#profit-review-form input[type=checkbox]{width:20px;height:20px;min-height:20px;flex:none}#profit-panel table{min-width:850px}#profit-panel td{white-space:nowrap}#profit-panel p,#profit-panel li{overflow-wrap:anywhere;line-height:1.7}#profit-history li{margin:.8rem 0}#profit-review-form{margin:1.5rem 0}

#profit-trend-chart{margin:1rem 0}#profit-trend-chart svg{display:block;width:100%;min-width:720px;height:auto}#profit-trend-total{font-weight:700}#profit-trend-rows td{white-space:nowrap}

#acquisition-panel table{min-width:950px}#acquisition-form{margin-top:1.5rem}#acquisition-panel p{overflow-wrap:anywhere;line-height:1.7}#acquisition-rows a{display:inline-block;margin:.3rem}

#economics-panel table{min-width:1500px}#economics-panel td{white-space:pre-line;min-width:130px}#economics-panel p{line-height:1.7;overflow-wrap:anywhere}.economics-allocation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1rem 0;padding:1rem;background:#fff;border:1px solid #dededc;border-radius:8px}#economics-editor{min-width:0}#economics-allocation-fields>label{margin-top:1rem}@media(max-width:600px){.economics-allocation{grid-template-columns:1fr}}

.support-message{padding:16px 0;border-bottom:1px solid #ddd;overflow-wrap:anywhere}.support-message p{white-space:pre-wrap}#support-thread{margin:20px 0}#support-list button{white-space:normal;overflow-wrap:anywhere}#support-action textarea{width:100%;box-sizing:border-box;min-width:0;resize:vertical}

#catalog-content-dialog{width:min(920px,calc(100vw - 32px));max-height:90dvh;overflow:auto}#catalog-content-dialog p,#catalog-content-dialog h5{overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.7}#catalog-content-dialog details{margin:16px 0;padding:12px;border:1px solid #dededc;border-radius:8px}#catalog-content-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:400px;overflow:auto}#catalog-content-dialog .content-review-form{display:flex;flex-direction:column;gap:16px}#catalog-content-dialog textarea{width:100%;min-height:100px;box-sizing:border-box}#catalog-content-dialog label.check-label{flex-direction:row}#catalog-content-dialog select{max-width:100%}

.cohorts-table{min-width:1800px}.cohorts-table caption{text-align:left;padding:1rem;line-height:1.6}.cohorts-table td{min-width:125px}.cohorts-table small{display:block;color:#707070;font-size:.75rem}

#settlements-panel table{min-width:1100px}#settlements-panel td:first-child{min-width:220px;overflow-wrap:anywhere}#settlements-panel td:last-child{min-width:220px}#settlements-panel td:not(:first-child):not(:last-child){white-space:nowrap}#settlements-form{display:flex;flex-wrap:wrap}#settlements-rows button{display:block;margin-top:.5rem}

/* One permission-filtered navigation moves between the desktop rail and mobile dialog. */
:root{--admin-rail:244px;--admin-header:76px}
.admin-header{height:var(--admin-header);position:sticky;top:0;z-index:20;padding:12px 24px;gap:16px}
.admin-brand-group{display:flex;align-items:center;gap:12px;min-width:0}.admin-header-actions{display:flex;align-items:center;gap:12px;margin-left:auto}.admin-header-actions>a{white-space:nowrap;font-size:.9rem}.admin-header .brand{white-space:nowrap}.admin-header .brand span{display:block;margin:0;font-size:.75rem;color:#6a6a6a}
.admin-menu-toggle{width:44px;flex:none;padding:10px;display:grid;place-items:center}.hamburger{width:20px;display:grid;gap:4px}.hamburger i{height:2px;background:currentColor;border-radius:2px;display:block}
#admin-sidebar{position:fixed;left:0;top:var(--admin-header);bottom:0;width:var(--admin-rail);overflow-y:auto;overscroll-behavior:contain;background:#fff;border-right:1px solid #dededc;padding:20px 12px 28px;z-index:10}
.admin-menu-label{font-size:.75rem;font-weight:650;color:#727272;margin:0 12px 12px;letter-spacing:.04em}
.admin-nav{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:4px;margin:0}
.admin-nav button{flex:none!important;text-align:left;width:100%;border-color:transparent;border-radius:8px;padding:10px 12px;font-size:.9rem;min-height:44px;line-height:1.4;background:transparent;color:#4e4e4e;white-space:normal}
.admin-nav button:hover{background:#f0f0ee}.admin-nav button[aria-pressed=true]{background:#e9e9e7;color:#303030;font-weight:750;box-shadow:inset 3px 0 #222222}
body.admin-has-nav>main{max-width:1440px;margin-left:var(--admin-rail);margin-right:auto;min-width:0;padding:28px clamp(20px,3vw,48px) 64px}
#admin-content,#admin-page-title{scroll-margin-top:calc(var(--admin-header) + 20px)}#admin-page-title{margin-top:0}#admin-content:focus,#admin-page-title:focus{outline:none}
.admin-skip{position:fixed;left:16px;top:-100px;padding:12px;background:white;z-index:100}.admin-skip:focus{top:12px}
#admin-menu-dialog{inset:0 0 0 auto;margin:0;width:min(320px,calc(100vw - 48px));height:100dvh;max-height:100dvh;border:0;border-left:1px solid #dededc;border-radius:0;padding:0;background:#fff;overflow-y:auto;overscroll-behavior:contain}
#admin-menu-dialog::backdrop{background:rgba(24,24,24,.48)}.admin-drawer-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px;background:#fff;border-bottom:1px solid #e7e7e5;position:sticky;top:0;z-index:1}.admin-drawer-heading h2{margin:0}#admin-menu-mobile{padding:12px 12px 28px}body.admin-menu-open{overflow:hidden}
@media(max-width:900px){.admin-header{padding:12px 16px}body.admin-has-nav>main{margin:0;padding:24px 16px 48px;max-width:none}#admin-sidebar{display:none}}

.admin-section-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0 8px;padding-bottom:16px;border-bottom:1px solid #dededc}.admin-section-tabs button{background:#fff;color:#4e4e4e;border-color:#dededc;font-size:.88rem;padding:9px 14px;min-height:44px;flex:none}.admin-section-tabs button[aria-pressed=true]{background:#222222;border-color:#222222;color:#fff;font-weight:650}.admin-section-tabs button:hover{border-color:#222222}
.artwork-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(230px,100%),1fr));gap:18px;margin:24px 0}.artwork-grid article{border:1px solid #c4c4c0;padding:16px;border-radius:12px;min-width:0}.artwork-grid img{width:100%;height:260px;object-fit:cover;border-radius:8px}.artwork-form{max-width:800px;border:1px solid #c4c4c0;padding:20px;margin:20px 0}.artwork-form label,.artwork-review label{display:block;margin:12px 0}.artwork-form fieldset label,.artwork-review label:has([type=checkbox]){display:flex;gap:10px;align-items:center}.artwork-form input[type=checkbox],.artwork-review input[type=checkbox]{width:20px;min-height:20px}.artwork-previews{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.artwork-previews figure{margin:0;min-width:0}.artwork-previews img{width:100%;object-fit:cover}.artwork-preview-full{aspect-ratio:2/3;object-fit:contain!important}.artwork-preview-opening{aspect-ratio:4/5}.artwork-preview-mobile{height:280px;max-width:340px}.artwork-preview-conversation{aspect-ratio:142/190}.artwork-review{max-width:min(850px,94vw);max-height:92vh;overflow:auto}.artwork-review textarea{width:100%;min-height:80px}.artwork-review button{margin:8px}.artwork-form [type=file]{max-width:100%}@media(max-width:600px){.artwork-previews{grid-template-columns:1fr}.artwork-previews img{max-height:330px}.artwork-form{padding:12px}}

/* Preserve Korean words in admin prose; tables keep readable cells and scroll. */
body{word-break:keep-all;overflow-wrap:anywhere;text-wrap:pretty}
h1,h2,h3,button{text-wrap:balance}
#engagement-panel p,#engagement-panel li{line-height:1.65}
#engagement-panel th,#engagement-panel td{white-space:nowrap}
#engagement-panel table{min-width:620px}
#engagement-panel caption{text-align:left;padding:12px;line-height:1.6}

.worker-status-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px}.worker-status-card{padding:18px;border:1px solid var(--line,#cececb);border-radius:12px;min-width:0}.worker-status-card p{word-break:keep-all;overflow-wrap:anywhere;line-height:1.65}

.research-candidate-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:16px;margin:20px 0}.research-candidate{padding:18px;border:1px solid #c4c4c0;border-radius:12px;min-width:0}.research-candidate p{line-height:1.65}.research-candidate h4{margin-top:0}.research-candidate button{display:block;margin-top:16px}

#operator-contact-panel fieldset{border:1px solid #b0b0ad;border-radius:8px;padding:1rem;min-width:0}#operator-contact-panel p{line-height:1.7;word-break:keep-all;overflow-wrap:anywhere}#operator-contact-panel>a,#operator-contact-panel>button{display:inline-block;margin:.5rem .5rem .5rem 0}.operator-contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1rem 0}#operator-contact-panel [type=submit]{margin-top:1rem}@media(max-width:600px){.operator-contact-grid{grid-template-columns:minmax(0,1fr)}}

.purchase-notice{margin:1rem 0;min-width:0}.purchase-notice p,.purchase-notice li{line-height:1.7;word-break:keep-all;overflow-wrap:anywhere}.purchase-notice summary{cursor:pointer;line-height:1.6;padding:.65rem 0}.purchase-notice details{border-top:1px solid #b0b0ad}.purchase-notice section{margin:1rem 0}.purchase-notice h3{font-size:1rem}

.publishing-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:12px}.publishing-toolbar label{max-width:300px}.publishing-cards{display:grid;gap:20px;margin:20px 0}.publishing-card{min-width:0;padding:20px;border:1px solid var(--line,#eeeeec);border-radius:12px}.publishing-card h3,.publishing-card p,.publishing-card summary{word-break:keep-all;overflow-wrap:anywhere}.publishing-caption{white-space:pre-wrap}.publishing-card form{margin-top:18px}.publishing-card fieldset{min-width:0}.publishing-card input{max-width:100%;box-sizing:border-box}.publishing-card .check input{flex-shrink:0}@media(max-width:480px){.publishing-card{padding:14px}.publishing-toolbar{align-items:stretch;flex-direction:column}}
.publishing-card form{display:block}.publishing-card fieldset{display:grid;grid-template-columns:minmax(0,1fr);width:100%;padding:16px}.publishing-card fieldset label{flex-direction:column;align-items:stretch}.publishing-card input:not([type=checkbox]){width:100%;min-width:0;min-height:44px}.publishing-card label.check{flex-direction:row;align-items:start;line-height:1.6}.publishing-card input[type=checkbox]{width:20px;height:20px;min-height:20px;flex:none;padding:0}.publishing-card{scroll-margin-top:90px}#publishing-panel>button{margin-right:8px}

.publishing-card select,.publishing-card textarea{width:100%;min-width:0;max-width:100%;min-height:44px;box-sizing:border-box}.publishing-card textarea{resize:vertical}

.publishing-resolution-media{display:grid;gap:14px;min-width:0}

.channel-insights{margin-top:40px;border-top:1px solid var(--line,#eeeeec);padding-top:24px;min-width:0}.channel-insights-posts{display:grid;gap:12px;margin:20px 0}.channel-insights-post,.channel-insights-observation{padding:16px;border:1px solid var(--line,#eeeeec);border-radius:10px;margin-bottom:12px;min-width:0}.channel-insights :is(p,h3,h4,button,summary,dt,dd){word-break:keep-all;overflow-wrap:anywhere}.channel-insights button,.channel-insights summary{min-height:44px;box-sizing:border-box}.channel-insights button{white-space:normal;text-align:left;max-width:100%}.channel-insights summary{cursor:pointer;padding:8px 0;line-height:1.7}.channel-insights dl{display:grid;grid-template-columns:minmax(80px,1fr) minmax(0,2fr);gap:10px}.channel-insights dd{margin:0}.channel-insights h4{scroll-margin-top:90px}

.support-mail-status{margin-top:1rem;padding:.85rem;border:1px solid var(--line,#7a7a7a);border-radius:.65rem;overflow-wrap:anywhere;word-break:keep-all}.support-mail-status p{margin:.5rem 0;line-height:1.6}.support-mail-status button{display:block;margin-top:.75rem;max-width:100%;white-space:normal}

#threads-insights-jobs form{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;max-width:640px;margin:16px 0}#threads-insights-jobs label{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:0;word-break:keep-all;overflow-wrap:anywhere}#threads-insights-jobs input{width:100%;min-width:0;max-width:100%;box-sizing:border-box;min-height:44px}
.engagement-sample-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px}
.engagement-sample-cards article{border:1px solid #d5d5d2;border-radius:12px;padding:16px;min-width:0;max-width:520px}
.engagement-sample-cards h4{margin:0 0 12px}
.engagement-sample-cards p{overflow-wrap:anywhere;word-break:keep-all}
#engagement-sample-entry,#engagement-relationship-offers,#engagement-relationship-loop{scroll-margin-top:calc(var(--admin-header,76px) + 20px)}

.ops-thumb{width:100px;height:80px;object-fit:contain;background:#eee}.admin-sample-frame{width:100%;height:55dvh;border:1px solid #dededc}.ops-bars{display:grid;gap:8px;margin:20px 0}.ops-bar{display:grid;grid-template-columns:100px minmax(40px,1fr) 160px;gap:12px;align-items:center;font-size:12px}.ops-bar>span:nth-child(2){height:12px;background:#555;display:block}#overview-content>.metrics{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}#overview-content h2{margin-top:32px}td{vertical-align:top}th{font-weight:550}button:active{transform:scale(.98)}@media(prefers-reduced-motion:reduce){button:active{transform:none}}@media(max-width:600px){.ops-bar{grid-template-columns:82px 1fr 116px;gap:6px}}

/* Keep operator fields readable on phones; contain long modal scrolling. */
input,select,textarea{font-size:16px}button,[role=button]{touch-action:manipulation;user-select:none;-webkit-user-select:none}dialog{overscroll-behavior:contain}

/* Control size is independent of the label's touch target. */
:root{--admin-control-gap:8px;--admin-field-gap:16px;--admin-panel-space:24px}
body:has(#admin-content){--skin-focus:#333;--skin-input-border:#b8b8b8;--skin-input-surface:#fff;--skin-border:#dededc;--skin-ink:#202020;--skin-background:#f4f4f3;--skin-surface:#fff;--skin-surface-subtle:#efefed;--skin-danger:#333}
:is(#admin-content,dialog) input:is([type=checkbox],[type=radio]){appearance:auto;width:18px;height:18px;min-width:18px;min-height:18px;max-width:18px;padding:0;margin:0;flex:0 0 18px;order:-1;accent-color:#262626;cursor:pointer}
:is(#admin-content,dialog) label:has(>input:is([type=checkbox],[type=radio])){display:flex;flex-direction:row;align-items:center;gap:10px;min-width:44px;min-height:44px;padding-block:8px;margin:0;line-height:1.6;cursor:pointer}
:is(#admin-content,dialog) input:is([type=checkbox],[type=radio]):disabled{cursor:default}
:is(#admin-content,dialog) input:is([type=checkbox],[type=radio]):focus-visible{outline:2px solid #333;outline-offset:3px}

/* Action groups own their spacing, including wrapping inside table cells. */
.actions{align-items:center;gap:var(--admin-control-gap);min-width:0}
:is(#admin-content,dialog:not(#admin-menu-dialog)) button{min-height:44px;padding:10px 14px;line-height:1.45}
.actions>button,.actions>a{flex:0 1 auto;max-width:100%;margin:0}
.actions>button{white-space:normal;line-height:1.45;min-height:44px;padding:10px 14px}
td .actions{min-width:160px;max-width:320px}
td .actions>button{font-size:.875rem}
.actions>a{display:inline-flex;align-items:center;min-height:44px;padding-block:8px}

/* Form rows align controls at the bottom of their labels without stretching buttons. */
form{align-items:end;gap:var(--admin-field-gap)}
form>button,form>.actions{align-self:end;min-height:44px}
form>h3,form>fieldset{grid-column:1/-1}
form>h3{margin:0 0 4px}
label{line-height:1.5}
:is(#admin-content,dialog) :is(input:not([type=checkbox],[type=radio],[type=file]),select){height:44px;min-height:44px;padding-block:10px;line-height:22px}
textarea{min-height:96px;resize:vertical}
fieldset{min-width:0;padding:12px 16px;gap:4px 16px}
legend{padding-inline:4px;line-height:1.5}
.artwork-form{gap:16px;padding:24px}
.artwork-form>label{margin:0}
.artwork-form>p,.artwork-form>.artwork-previews{grid-column:1/-1}
.artwork-form>p{margin-block:0}

/* Keep separators and nested content from accumulating two sets of margins. */
#admin-content>section>h2{margin-block:0 16px;line-height:1.5}
#admin-content>section>h2+p{margin-top:0}
:is(.metrics article,.worker-status-card,.publishing-card,.channel-insights-post,.channel-insights-observation,.research-candidate,.support-message)>:first-child{margin-top:0}
:is(.metrics article,.worker-status-card,.publishing-card,.channel-insights-post,.channel-insights-observation,.research-candidate,.support-message)>:last-child{margin-bottom:0}
.channel-insights{margin-top:32px;padding-top:24px}
dialog:not(#admin-menu-dialog){padding:var(--admin-panel-space)}
dialog>button+:is(form,div){margin-top:20px}
dialog>h2,dialog>div>h2:first-child{margin-top:0}
#catalog-content-dialog details>:last-child{margin-bottom:0}
:is(#admin-content,dialog) details>summary{min-height:44px;padding-block:8px;line-height:1.5;cursor:pointer}
:is(#admin-content,dialog) details[open]>summary{margin-bottom:12px}
:is(#admin-content,dialog) details>summary+*{margin-top:0}
#grants{padding-left:0;list-style:none}
#grants li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;margin-block:0;padding-block:16px;border-bottom:1px solid #e7e7e5}
#grants li>p{margin:0}
#grants .actions{justify-content:flex-end}
@media(max-width:600px){
 :root{--admin-panel-space:16px}
 .artwork-form{padding:16px}
 #grants li{grid-template-columns:minmax(0,1fr);gap:8px}
 #grants .actions{justify-content:flex-start}
 dialog form{grid-template-columns:minmax(0,1fr)}
 td .actions{min-width:150px}
}

/* Synthetic review birth fields are not checkbox-only fieldsets. */
.admin-fullbook-review .admin-review-birth { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.admin-fullbook-review .admin-review-birth > label { flex-direction:column; align-items:stretch; min-width:0; }
.admin-fullbook-review .admin-review-birth input:not([type=checkbox],[type=radio]),
.admin-fullbook-review .admin-review-birth select { width:100%; min-width:0; }
.admin-fullbook-review label.admin-review-check { flex-direction:row; align-items:center; gap:.5rem; }
.admin-fullbook-review .admin-review-check input { width:18px; height:18px; min-height:18px; padding:0; flex:none; }
@media(max-width:600px) { .admin-fullbook-review .admin-review-birth { grid-template-columns:minmax(0,1fr); } }

/* Review-only provenance label; never a sale/readiness badge. */
.admin-fullbook-review .admin-review-retained-source { border-left:3px solid #8b8170; padding:.45rem .75rem; background:#f5f2ec; color:#514b42; font-size:.9rem; }
