:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#202124;background:#f3f4f5;font-size:16px;--red:#c82032;--line:#dfe2e6;--muted:#626974}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{border:0;border-radius:7px;padding:11px 16px;background:var(--red);color:white;cursor:pointer;font-weight:600}button:hover{filter:brightness(.94)}button:disabled{opacity:.55;cursor:wait}.quiet{background:white;color:#252b34;border:1px solid var(--line)}.small{padding:7px 10px;font-size:.875rem}a{color:var(--red)}label{font-size:.875rem;font-weight:600;display:block;margin-bottom:6px}input,select,textarea{width:100%;padding:10px 11px;border:1px solid #c8cdd4;border-radius:6px;background:white;color:#202124}input:focus,select:focus,textarea:focus,button:focus-visible{outline:3px solid #f6b9c1;outline-offset:2px}textarea{min-height:90px}h1,h2,h3,p{margin-top:0}h1{font-size:1.8rem;letter-spacing:-.04em}h2{font-size:1.3rem}h3{font-size:1.05rem}p{line-height:1.55}.muted{color:var(--muted)}.eyebrow{font-size:.75rem;font-weight:700;letter-spacing:.12em;color:var(--muted);margin-bottom:8px}.shell{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:100vh}.sidebar{background:#181a1e;color:#fff;padding:27px 18px;display:flex;flex-direction:column;gap:25px}.brand{display:flex;align-items:center;gap:10px;font-size:1.2rem;font-weight:700}.mark{display:grid;place-items:center;background:var(--red);border-radius:9px;width:38px;height:38px;color:white}.brand small{display:block;color:#aeb4bd;font-size:.8rem;font-weight:400;margin-top:3px}.sidebar nav{display:grid;gap:6px}.sidebar nav button{text-align:left;background:transparent;color:#bbc0c8;font-weight:500}.sidebar nav button.active{background:#30343b;color:#fff;border-left:3px solid var(--red);padding-left:13px}.sidebottom{margin-top:auto;color:#aeb4bd;font-size:.8rem;line-height:1.7}.main{padding:26px 34px;max-width:1600px;width:100%;margin:auto}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:28px}.topbar select{max-width:340px}.account{display:flex;align-items:center;gap:12px;font-size:.875rem}.pagehead{display:flex;align-items:start;justify-content:space-between;gap:20px;margin-bottom:20px}.pagehead p{margin-bottom:0;max-width:730px}.panel{background:#fff;border:1px solid var(--line);border-radius:10px;padding:22px;margin-bottom:22px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.stat{background:white;border:1px solid var(--line);border-radius:9px;padding:20px}.stat b{font-size:2rem;display:block;margin:8px 0;font-variant-numeric:tabular-nums}.stat span{font-size:.875rem;color:var(--muted)}.two{display:grid;grid-template-columns:1fr 1fr;gap:20px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:17px}.field.wide{grid-column:1/-1}.field small{display:block;color:var(--muted);font-size:.8rem;margin-top:5px;line-height:1.4}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:.875rem}th{font-size:.8rem;color:var(--muted);font-weight:600;background:#f7f8fa}td,th{padding:13px 12px;border-bottom:1px solid #e8eaed;vertical-align:top;white-space:nowrap}td.wrap{white-space:normal;min-width:140px}.num{text-align:right;font-variant-numeric:tabular-nums}.pill{display:inline-block;border-radius:4px;padding:4px 7px;background:#f1f2f4;color:#535964;font-size:.75rem}.pill.accepted,.pill.complete{background:#e6f3ec;color:#1b6841}.pill.rejected{background:#fce7ea;color:#a5172b}.pill.pending,.pill.in_progress{background:#fff1d9;color:#835900}.pill.sample{background:#fce7ea;color:#a5172b;margin-left:6px}.actions{display:flex;gap:8px;flex-wrap:wrap}.empty{padding:35px 10px;text-align:center;color:var(--muted)}.error{color:#ae1530;font-size:.9rem;line-height:1.5}.hint{background:#f5f6f8;border-left:3px solid var(--red);padding:13px 15px;font-size:.9rem;line-height:1.5;margin-bottom:18px}.auth{max-width:570px;margin:6vh auto;padding:30px}.auth .brand{color:#202124;margin-bottom:28px}.auth .brand small{color:var(--muted)}.auth .fields{margin:24px 0}.auth .field{grid-column:1/-1}.auth button[type=submit]{width:100%}.loading{padding:40px}.live{font-size:.8rem;color:var(--muted)}.live::before{content:"";display:inline-block;background:#277653;width:7px;height:7px;border-radius:50%;margin-right:7px}dialog{border:1px solid var(--line);border-radius:12px;padding:0;width:min(880px,95vw);max-height:90vh}dialog::backdrop{background:#10131a88}dialog header,dialog footer{padding:20px 25px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}dialog footer{border-top:1px solid var(--line);border-bottom:0;justify-content:end;gap:10px}dialog header h2,dialog header p{margin-bottom:0}dialog .fields{padding:23px 25px}#formerror{margin:0 25px 16px}#toast{position:fixed;bottom:24px;right:24px;background:#20242a;color:white;padding:14px 20px;border-radius:8px;max-width:420px;display:none;z-index:100}#toast.visible{display:block}.balancebox{grid-column:1/-1;background:#f4f6f8;padding:15px;border-radius:8px;line-height:1.6}.fileinput{margin:16px 0}.auditline{padding:11px 0;border-bottom:1px solid var(--line);font-size:.875rem}.auditline small{display:block;color:var(--muted);margin-top:4px}.settings{max-width:800px}.stack{display:grid;gap:14px}.subtle{font-size:.8rem;color:var(--muted)}@media(max-width:1000px){.shell{grid-template-columns:190px minmax(0,1fr)}.main{padding:22px}.stats{grid-template-columns:1fr 1fr}.two{grid-template-columns:1fr}.account span{display:none}}@media(max-width:650px){.shell{display:block}.sidebar{padding:15px;gap:15px}.sidebar nav{display:flex;overflow:auto;gap:6px}.sidebar nav button{white-space:nowrap;font-size:.875rem}.sidebottom{display:none}.main{padding:18px 14px}.topbar{margin-bottom:20px}.topbar select{max-width:70%}.pagehead{display:block}.pagehead .actions{margin-top:14px}.fields{grid-template-columns:1fr}.stats{gap:10px}.stat{padding:15px}.stat b{font-size:1.65rem}.panel{padding:16px}.auth{margin:25px 10px;padding:24px}dialog .fields{padding:20px}.brand{font-size:1.05rem}}

/* Cerno form sections */
dialog{width:min(1240px,96vw)}.cerno-fields{display:block;background:#f2f2f3}.cerno-section{margin-bottom:24px}.cerno-section h3{font-size:.9rem;color:#72777d;margin:0 15px 10px}.cerno-card{background:white;border-radius:16px;padding:8px 18px}.cerno-line{border-bottom:1px solid #e5e5e7;padding:12px 0}.cerno-line:last-child{border:0}.cerno-line .field{display:grid;grid-template-columns:minmax(180px,1fr) minmax(170px,1fr);align-items:center;gap:10px}.cerno-line label{font-size:.95rem;font-weight:400;margin:0}.cerno-line small{grid-column:1/-1}.cerno-result{display:flex;justify-content:space-between;gap:20px;padding:12px 0;font-size:.9rem;border-top:1px solid #e5e5e7}.unitbar{display:flex;justify-content:space-between;gap:20px;padding:10px 0}.unitbar label{display:flex;align-items:center;gap:10px}.unitbar select{width:auto;color:var(--red)}.cerno-card table input{min-width:75px;padding:7px}.cerno-card table td:first-child input{min-width:140px}.cerno-card .actions{padding:14px 0}.cerno-card button.quiet{color:var(--red);border:0}.cerno-card .subtle{margin:12px 0}.cerno-card textarea{margin:10px 0}@media(max-width:650px){.cerno-line .field{display:block}.cerno-line label{margin-bottom:8px}.unitbar{display:block}.unitbar label{margin:10px 0}.cerno-result{flex-wrap:wrap}}

#pilot-activity {position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:10000;display:flex;align-items:center;gap:12px;padding:14px 22px;border-radius:12px;background:#fff;color:#222;box-shadow:0 3px 24px #0003;max-width:calc(100% - 32px);font-weight:600}
#pilot-activity[hidden]{display:none}
#pilot-activity img{width:34px;height:34px;animation:badgePulse 1.4s ease-in-out infinite}
@keyframes badgePulse{0%,100%{opacity:.4}50%{opacity:1}}
@media(prefers-reduced-motion:reduce){#pilot-activity img{animation:none}}

.activity-badge{width:38px;height:38px;display:grid;grid-template-columns:1fr 1fr;gap:2px;flex:none}
.activity-badge i{background-image:url('/static/fabric-badge.png');background-size:38px 38px;border-radius:50%;animation:badgeSequence 2.8s ease-in-out infinite;animation-delay:calc(var(--step)*.7s)}
.activity-badge i:nth-child(2){background-position:right top}.activity-badge i:nth-child(3){background-position:left bottom}.activity-badge i:nth-child(4){background-position:right bottom}
@keyframes badgeSequence{0%,45%,100%{opacity:.35}15%,30%{opacity:1}}
@media(prefers-reduced-motion:reduce){.activity-badge i{animation:none}}

/* Light Cerno branding */
.sidebar{background:#fff;color:#202124;border-right:1px solid var(--line)}.sidebar nav button{color:#42474f}.sidebar nav button:hover{background:#f3f4f5}.sidebar nav button.active{background:#fcebee;color:#b91d2f}.brand small,.sidebottom{color:#626974}.cerno-brand-icon{width:52px;height:52px;object-fit:contain}.company-brand{display:flex;align-items:center;gap:14px;background:white;padding:18px 22px;margin-bottom:22px;border-radius:10px}.company-brand img{width:74px;height:74px;object-fit:contain}.company-brand strong{display:block;font-size:24px;color:#111}.company-brand b{display:block;color:#c82032;font-size:19px;margin-top:3px}.company-brand span{display:block;color:#858585;font-size:14px;margin-top:2px}

.sidebar nav button:hover{color:#202124}.sidebar nav button.active:hover{color:#b91d2f}

.sheet-summary{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:12px;padding:16px 0}.sheet-summary span{color:#626974}.sheet-summary b{display:block;color:#202124}.live-sheet table{min-width:2400px}.live-sheet .actions label{min-width:200px}

.ply-balance{border:1px solid #d8dee5;border-left:4px solid #cc1734;border-radius:8px;padding:14px 18px;margin:16px 0}.ply-balance h3{margin:0 0 10px}.ply-balance .sheet-summary{margin:0}

.page-title-actions{display:flex;align-items:center;gap:24px;flex-wrap:wrap}.page-title-actions h1{margin-bottom:0}.page-title-actions button{align-self:center}

.roll-start-row{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap}.roll-start-row .field{flex:1;min-width:220px}.roll-start-row button{flex:none}

.page-title-actions button:disabled{background:#e2e5e9;color:#777f89;border-color:#d4d9df;cursor:not-allowed;opacity:1}

#lay-completion{max-width:760px;width:calc(100% - 40px);padding:28px}#lay-completion footer{display:flex;gap:12px;justify-content:flex-end;margin-top:24px}#lay-completion::backdrop{background:rgba(0,0,0,.4)}
/* Build 36: spreading events and cutting handover. */
.operations{margin:20px 0}.operation-card{border:1px solid #ddd;border-radius:12px;padding:18px;margin:14px 0;background:#fff}.operation-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}.operation-heading h3{margin:0 0 12px}.quality-summary{display:flex;flex-wrap:wrap;gap:10px 24px;margin:12px 0}.pause-banner{background:#fff1dc;border-left:4px solid #b86b00;padding:12px}.operation-card details{margin-top:14px}.operation-card summary{cursor:pointer;font-weight:600}#spread-operation{max-width:680px;width:calc(100% - 40px)}#spread-operation label{display:block;margin:12px 0}#spread-operation select,#spread-operation textarea{width:100%}.operation-card .actions{flex-wrap:wrap}.operation-card .sheet-summary{margin-top:12px}
#roll-time-correction{max-width:700px;width:calc(100% - 40px)}#roll-time-correction label{display:block;margin:12px 0}#roll-time-correction input,#roll-time-correction select,#roll-time-correction textarea{width:100%}

/* Order progress keeps the planning list and execution history independent. */
.pill.Completed{background:#def3e5;color:#195c35}
.order-progress{margin:20px 0;padding-top:16px;border-top:1px solid #ddd}
.progress-spread{margin:18px 0}
.order-progress .actions label{min-width:220px}

/* Factory roll workflow: orange to add, green to start, red to finish. */
button[data-action="sheet-add-roll"],
button[data-action="lay-row"],
button[data-action="add"][data-kind="rolls"]{background:#f59e0b;color:#202124;border-color:#f59e0b}
button[data-action="start-roll"],
button[data-action="start-editor-roll"]{background:#218044;color:#fff;border-color:#218044}
button[data-action="finish-roll"],
button[data-action="finish-editor-roll"]{background:#c82032;color:#fff;border-color:#c82032}

.completed-spread{margin:12px 0;border:1px solid var(--line);border-radius:8px;background:#fff}
.completed-spread>summary{padding:14px 16px;cursor:pointer;background:#f7f9f8;border-radius:8px;font-weight:600}
.completed-spread-title{color:#195c35}
.completed-spread-meta{display:block;margin:5px 0 0 18px;font-size:.8rem;font-weight:400;color:var(--muted)}
.completed-spread-content{padding:0 16px 16px;min-width:0}
.completed-spread>summary:focus-visible{outline:3px solid #f6b9c1;outline-offset:2px}

.live-lay-controls{align-items:stretch;flex-wrap:nowrap}
.live-lay-controls>button{white-space:nowrap}
#execution-dialog{max-width:960px;width:calc(100% - 32px);max-height:90vh;padding:24px;overflow:auto}#execution-dialog::backdrop{background:rgba(0,0,0,.4)}#execution-dialog label{display:block;margin:14px 0}#execution-dialog footer{display:flex;justify-content:flex-end;gap:12px;margin-top:22px}.revision-row{display:flex;align-items:center;gap:12px;border-bottom:1px solid #ddd}.revision-row label:first-child{flex:1}.revision-row input{max-width:100px}.execution-control .operation-card{margin:14px 0}@media(max-width:650px){.revision-row{display:block}.revision-row input{max-width:none}}

/* Keep the full-plan save accessible while viewing its long marker matrix. */
#editor:has(.cerno-fields) footer{position:sticky;bottom:0;background:#fff;z-index:2}
.plan-details-save{padding:16px 0 4px;border-top:1px solid var(--line);margin-top:14px}
.plan-details-save p{white-space:normal}

#last-ply-alert{max-width:850px;width:90%;border:2px solid #ec9619;border-radius:14px;padding:24px;}#last-ply-alert::backdrop{background:rgba(0,0,0,.45);}#last-ply-alert h2{color:#a45000;}
.extras-controls{border:1px solid #d4a843;border-radius:10px;padding:16px;margin:16px 0;background:#fff9ed}.extras-controls input[type=number]{width:90px}#extras-dialog{max-width:1050px;width:94%}#extras-dialog label{display:block;margin:10px 0}#extras-dialog input:not([type=checkbox]){max-width:100%}.formerror{color:#a2231d}
.portal-brand{align-items:flex-start;gap:10px}.portal-brand img{width:54px;height:54px;object-fit:contain;border-radius:12px;flex:none}.portal-brand strong{display:block;font-size:15px;line-height:1.3}.portal-brand small{display:block;font-size:11px;line-height:1.45;margin-top:6px}.permission-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.permission-grid label{padding:10px;background:#f5f6f8;border-radius:8px}#administration-dialog{width:calc(100% - 40px);max-width:1040px}#administration-dialog label{display:block;margin:14px 0}#administration-dialog input:not([type=checkbox]),#administration-dialog select{width:100%}#administration-dialog footer{display:flex;gap:12px;justify-content:flex-end;margin-top:22px}.inactive-module{background:#f5f6f8;border-color:#d9dde2}@media(max-width:650px){.permission-grid{grid-template-columns:1fr}}

/* Contain tables within their cards at all desktop widths. */
.two{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.panel,.main,.tablewrap{min-width:0}
.tablewrap{max-width:100%;overscroll-behavior-x:contain}
.panel td.wrap{white-space:normal;overflow-wrap:anywhere}
.panel td:last-child .actions{flex-wrap:wrap}
.overview-tables{grid-template-columns:minmax(0,1fr)}
.overview-tables table{width:100%}
.overview-tables td,.overview-tables th{white-space:normal;overflow-wrap:anywhere}
@media(max-width:1000px){.two{grid-template-columns:minmax(0,1fr)}}

@keyframes next-step-guide{0%,100%{box-shadow:0 0 0 3px rgba(200,32,50,.3)}50%{box-shadow:0 0 0 7px rgba(200,32,50,.65)}}
button.next-step-pulse{animation:next-step-guide 1.8s ease-in-out infinite;outline:2px solid #c82032;outline-offset:3px}
@media(prefers-reduced-motion:reduce){button.next-step-pulse{animation:none;box-shadow:0 0 0 4px rgba(200,32,50,.4)}}

.module-panel table{width:100%;table-layout:fixed}
.module-panel th,.module-panel td{white-space:normal;overflow-wrap:anywhere;padding:12px 10px}
.module-panel th:first-child{width:35%}
.module-panel th:nth-child(2){width:16%}
.module-panel th:nth-child(3){width:15%}
.module-panel th:nth-child(4){width:19%}
.module-panel th:last-child{width:15%}
.module-panel button{padding:8px 10px;max-width:100%}
.module-name{cursor:help}
.module-name:focus-visible{outline:2px solid var(--red);outline-offset:3px}
@media(max-width:650px){.module-panel table{table-layout:auto}.module-panel th:first-child{min-width:150px}}

#administration-dialog{width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;padding:24px;border:1px solid var(--line);border-radius:12px}
#administration-dialog h2{margin:0 0 20px}
#administration-dialog form{display:grid;gap:16px}
#administration-dialog label{display:grid;gap:7px}
#administration-dialog .permission-grid label,#administration-dialog label:has(input[type=checkbox]){display:flex;align-items:center;gap:8px}
#administration-dialog footer{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:12px;margin-top:8px;padding-top:18px;border-top:1px solid var(--line)}
#administration-dialog input:not([type=checkbox]),#administration-dialog select{width:100%;min-width:0}
.spread-parameters details{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}
.spread-parameters summary{font-weight:600;cursor:pointer;margin-bottom:14px}
.spread-parameters details>label{display:grid;gap:8px;margin:16px 0}
.spread-parameters th{white-space:normal}
.spread-parameters td{white-space:normal;overflow-wrap:anywhere}
.module-panel .actions{display:flex;flex-direction:column;gap:8px;margin-top:8px;align-items:stretch}
.module-panel td:last-child>button,.module-panel .actions button{width:100%;text-align:center}
.live-sheet>.actions{gap:14px;align-items:flex-end;margin-bottom:22px}
.live-sheet h2{margin-top:8px}

/* Live order fabric projection, part of Standard spreading capture. */
.fabric-projection{margin:18px 0 22px;padding:18px;border:1px solid var(--line);border-left:4px solid #277653;border-radius:8px;background:#f7faf8}
.fabric-projection-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}.fabric-projection h3{margin:0}.fabric-projection-heading>strong{color:#1b6841;font-size:.9rem}
.fabric-projection-scope{margin:8px 0 0;color:var(--muted);font-size:.85rem}.fabric-projection-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:18px 0}.fabric-projection-totals span{display:block;color:var(--muted);font-size:.9rem}.fabric-projection-totals b{display:block;margin-top:5px;font-size:1.7rem;line-height:1.2;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.fabric-projection .subtle{margin:0}.fabric-projection.shortfall{border-left-color:var(--red);background:#fff7f8}.fabric-projection.shortfall .fabric-projection-heading>strong,.fabric-projection.shortfall .fabric-projection-totals>div:last-child b{color:#a5172b}.fabric-projection.incomplete{border-left-color:#8b650a;background:#fffcf4}.fabric-projection.incomplete .fabric-projection-heading>strong{color:#785806}
@media(max-width:600px){.fabric-projection-totals{grid-template-columns:1fr;gap:14px}.fabric-projection-totals b{font-size:1.5rem}.live-sheet .sheet-summary{grid-template-columns:1fr}}

/* Keep the complete order/fabric/colour selector within desktop and phone layouts. */
.live-sheet>.actions>label:first-child{flex:1 1 640px;min-width:0;max-width:100%}
.live-sheet>.actions>label:first-child select{width:100%;min-width:0;max-width:100%;text-overflow:ellipsis}
.live-sheet>.sheet-summary>span{min-width:0;overflow-wrap:anywhere}

/* Selected-lay length and ply counts stay together across screen sizes. */
.live-sheet .ply-balance.with-spread-length .sheet-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.live-sheet .ply-balance.with-spread-length .sheet-summary>span{min-width:0;overflow-wrap:anywhere}
.live-sheet .spread-length small{display:block;margin-top:6px;font-size:.78rem;line-height:1.4}
@media(max-width:900px){.live-sheet .ply-balance.with-spread-length .sheet-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.live-sheet .ply-balance.with-spread-length .sheet-summary{grid-template-columns:1fr}}

/* Shared live allocation uses the existing Portal panel and type styles. */
.live-allocation{margin:16px 0}
.live-allocation[hidden]{display:none}
.allocation-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin:12px 0}
.allocation-metrics>div{padding:16px;border:1px solid var(--line);border-radius:9px;background:#fff}
.allocation-metrics strong{display:block;font-size:1.4rem;font-variant-numeric:tabular-nums}
.allocation-metrics span{font-size:.875rem;color:var(--muted)}
#allocation-settings input[type=checkbox]{width:auto;margin-right:8px}
#allocation-settings input[type=number]{max-width:180px;display:block;margin:8px 0 16px}
#allocation-error,#allocation-settings-error{color:#a2231d;margin:12px 0}

/* Stable, aligned roll choices. Only the recommended action is primary. */
.allocation-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:16px}
.allocation-heading h3{margin:0}
.allocation-refresh{display:flex;align-items:center;flex-wrap:wrap;gap:12px;font-size:.8rem}
.allocation-refresh [data-allocation-checked]{font-variant-numeric:tabular-nums}
.allocation-roll{display:grid;grid-template-columns:minmax(0,1fr) 176px;gap:20px;align-items:center;padding:18px 20px;border:1px solid var(--line);border-radius:9px;margin:10px 0;background:white}
.allocation-roll-info{min-width:0;overflow-wrap:anywhere}
.allocation-roll h4{margin:0 0 7px;font-size:1.05rem;line-height:1.4}
.allocation-roll h4 span{font-weight:500;margin-left:12px;font-variant-numeric:tabular-nums}
.allocation-roll p{margin:0}
.allocation-roll .allocation-roll-meta{color:var(--muted);font-size:.85rem;margin-bottom:8px}
.allocation-roll .allocation-roll-reason{font-size:.9rem}
.allocation-roll-action button{width:100%;min-height:44px;padding:10px 12px;line-height:1.35}
.allocation-recommended{border-left:4px solid var(--red);background:#fffafb}
.allocation-badge{display:block;margin-bottom:8px;color:var(--red);font-size:.75rem;font-weight:700}
.allocation-alternatives{margin:16px 0}
.allocation-alternatives summary{cursor:pointer;font-size:.9rem;font-weight:600;padding:10px 0;min-height:44px}
.allocation-instruction{margin:18px 0 12px;font-size:.9rem}
.allocation-note{border-top:1px solid var(--line);padding-top:14px;font-size:.8rem;margin:16px 0 0}
#allocation-error:empty{display:none}
@media(max-width:700px){
 .allocation-roll{grid-template-columns:minmax(0,1fr);gap:14px;padding:16px}
 .allocation-roll-action{width:100%}
 .allocation-metrics{grid-template-columns:1fr}
 .allocation-heading{align-items:flex-start}
}

/* Connection status uses the same columns and spacing for every factory. */
#suite-administration .suite-factory-status{min-width:0;margin:24px 0 0;padding:24px 0 0;border-top:1px solid var(--line)}
#suite-administration .suite-factory-status h3{margin:0 0 14px;line-height:1.45;white-space:normal;overflow-wrap:anywhere}
#suite-administration .tablewrap,.connection-module-status .tablewrap{width:100%;overflow:visible}
#suite-administration table,.connection-module-status table{width:100%;table-layout:fixed;min-width:0}
#suite-administration th:first-child,#suite-administration td:first-child,.connection-module-status th:first-child,.connection-module-status td:first-child{width:70%}
#suite-administration th:last-child,#suite-administration td:last-child,.connection-module-status th:last-child,.connection-module-status td:last-child{width:30%}
#suite-administration th,#suite-administration td,.connection-module-status th,.connection-module-status td{white-space:normal;overflow-wrap:anywhere;vertical-align:middle;text-align:left}
@media(max-width:650px){
 #suite-administration .suite-factory-status{margin-top:20px;padding-top:20px}
 #suite-administration th,#suite-administration td,.connection-module-status th,.connection-module-status td{padding:12px 8px}
 #suite-administration th:first-child,#suite-administration td:first-child,.connection-module-status th:first-child,.connection-module-status td:first-child{width:60%}
 #suite-administration th:last-child,#suite-administration td:last-child,.connection-module-status th:last-child,.connection-module-status td:last-child{width:40%}
}

.suite-home-link{display:block;text-align:center;padding:10px 16px;background:#fff;border-bottom:1px solid var(--line);text-decoration:none;font-size:.875rem;font-weight:600}
