*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px var(--font)}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--blue-ink);outline-offset:3px}.icon{width:22px;height:22px;flex:none}h1,h2,h3,p,figure{margin:0}a{color:var(--brand)}.portal-shell{max-width:1280px;margin:auto;padding:24px 32px 16px}.portal-header{display:flex;justify-content:space-between;align-items:center;gap:16px}.portal-brand{display:flex;align-items:center;gap:12px}.portal-brand>.icon{background:var(--coral-bg);color:var(--coral-ink);width:44px;height:44px;padding:10px;border-radius:12px}.portal-brand strong{font-size:24px}.portal-brand span{display:block;font-size:14px;color:var(--muted);margin-top:4px}.portal-pill{font-size:14px;padding:8px 12px;border-radius:10px;background:var(--yellow-bg);color:var(--yellow-ink)}.portal-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:24px 0 18px}.portal-intro h1{font-size:28px}.portal-intro p{font-size:14px;color:var(--muted);margin-top:8px;line-height:1.6}.portal-art{width:180px;height:76px;border-radius:16px;object-fit:cover}.portal-tabs{display:flex;gap:10px;border-bottom:1px solid var(--line);margin-bottom:18px}.portal-tabs button{min-height:44px;padding:10px 20px;border:0;background:transparent;color:var(--muted);border-bottom:2px solid transparent}.portal-tabs button[aria-selected=true]{color:var(--brand);border-bottom-color:var(--brand)}.portal-tools{display:flex;gap:12px;align-items:center;margin-bottom:18px}.portal-tools input{width:min(340px,50%)}.portal-tools .primary{margin-left:auto}.portal-button{border:1px solid var(--line);border-radius:10px;min-height:44px;padding:10px 16px;background:var(--paper);color:var(--ink);display:inline-flex;align-items:center;justify-content:center;gap:8px}.portal-button.primary{background:var(--brand);color:var(--paper);border-color:var(--brand)}.portal-button:hover{box-shadow:var(--shadow-soft)}.portal-button.primary:hover{background:var(--brand-dark)}.portal-panel{background:var(--paper);border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:var(--shadow-soft)}.portal-row{display:flex;align-items:center;gap:16px;padding:18px;border-bottom:1px solid var(--line)}.portal-row:last-child{border-bottom:0}.portal-symbol{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--mint-bg);color:var(--mint-ink);flex:none}.portal-row-main{flex:1;min-width:0}.portal-row h2{font-size:18px;overflow-wrap:anywhere}.portal-row p{font-size:14px;color:var(--muted);margin-top:6px;line-height:1.6}.portal-state{font-size:14px;padding:6px 10px;border-radius:9px;background:var(--blue-bg);color:var(--blue-ink);flex:none}.portal-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px;font-size:14px;color:var(--muted)}.portal-pagination>div{display:flex;gap:8px}.portal-footnote{font-size:14px;color:var(--muted);line-height:1.7;margin-top:16px}.portal-editor{padding:24px}.portal-editor h2{font-size:22px;margin-bottom:18px}.portal-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.portal-field{display:flex;flex-direction:column;gap:8px;min-width:0}.portal-field>span{font-size:14px}.portal-field.wide{grid-column:1/-1}input,select,textarea{border:1px solid var(--line);border-radius:10px;padding:10px 12px;min-height:44px;color:var(--ink);background:var(--paper);min-width:0}textarea{resize:none;min-height:76px;line-height:1.6}.portal-editor-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.portal-review{display:grid;gap:14px;font-size:16px}.portal-review>div{display:grid;grid-template-columns:100px 1fr;gap:16px;line-height:1.7}.portal-review span{color:var(--muted)}.portal-review p{white-space:pre-wrap;overflow-wrap:anywhere}.portal-error{color:var(--danger-ink);font-size:14px;line-height:1.6;margin-top:14px}.portal-error:empty{display:none}.portal-empty{padding:40px;text-align:center}.portal-empty p{color:var(--muted);font-size:14px;margin-top:12px}#portal-toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--mint-ink);color:var(--paper);padding:14px 20px;border-radius:12px;max-width:calc(100% - 32px);display:none}#portal-toast.show{display:block;animation:portal-enter var(--motion-enter) ease-out}@keyframes portal-enter{from{opacity:0;translate:0 5px}to{opacity:1;translate:0 0}}@media(max-height:749px){.portal-shell{padding:16px 24px 12px}.portal-intro{margin:16px 0 12px}.portal-intro h1{font-size:26px}.portal-art{height:58px}.portal-tabs{margin-bottom:12px}.portal-tools{margin-bottom:12px}.portal-row{padding:12px 16px}.portal-editor{padding:18px}.portal-editor h2{margin-bottom:12px}.portal-fields{gap:12px}.portal-editor-actions{margin-top:14px}.portal-footnote{margin-top:12px}}@media(max-width:700px){.portal-shell{padding:16px}.portal-header{align-items:flex-start}.portal-brand strong{font-size:22px}.portal-art{display:none}.portal-tabs{gap:0}.portal-tabs button{padding:10px}.portal-state{display:none}.portal-row{gap:10px}.portal-row .portal-button{padding:10px}.portal-fields{grid-template-columns:1fr}.portal-field.wide{grid-column:auto}.portal-pill{max-width:130px;line-height:1.6}.portal-row p{overflow-wrap:anywhere}}@media(prefers-reduced-motion:reduce){#portal-toast.show{animation:none}}

.portal-field:has(#p-file){flex-direction:row;align-items:center}.portal-field:has(#p-file)>span{flex:none}.portal-field:has(#p-file)>input{flex:1;min-width:0}
@media(max-height:749px){.portal-shell:has(.portal-editor) .portal-intro p{display:none}}
.operator-row-actions{display:flex;align-items:center;gap:8px;flex:none}.portal-row-main h2,.portal-row-main p{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.portal-row-main h2{max-width:100%}.operator-activation-fields{margin-top:20px}.operator-receipt-summary{margin-bottom:16px;font-size:14px;line-height:1.6}.operator-json{font:14px var(--font);white-space:pre-wrap;overflow-wrap:anywhere;margin:0;line-height:1.7}.portal-tabs{gap:0}.portal-tabs button{padding-left:14px;padding-right:14px}.portal-shell[aria-busy=true]{cursor:progress}.portal-tools>input[type=file][hidden]{display:none}.portal-shell .portal-field:has(#p-file){flex-direction:column;align-items:stretch}.portal-shell .portal-field:has(#p-file)>input{width:100%}
@media(max-width:1119px){.portal-tabs button{padding-left:12px;padding-right:12px}.operator-row-actions{gap:6px}.operator-row-actions .portal-button{padding-left:10px;padding-right:10px}.portal-row{gap:12px}}
@media(max-height:749px){.operator-activation-fields{margin-top:12px}.operator-receipt-summary{margin-bottom:12px}.portal-field:has(#p-file)>input{min-height:44px}}
@media(min-width:701px){.operator-capability-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.portal-shell .operator-record-fields .portal-field:has(#p-file){flex-direction:row;align-items:center}.portal-shell .operator-record-fields .portal-field:has(#p-file)>span{flex:none}.portal-shell .operator-record-fields .portal-field:has(#p-file)>input{flex:1;width:auto;min-width:0}}
@media(max-height:749px){.operator-record-fields{gap:8px}}
.operator-readonly-copy{width:100%;height:98px;min-height:98px;max-height:98px;resize:none}.operator-readonly-copy:focus-visible{outline-offset:2px}

.portal-brand{min-width:0}.portal-brand>div{min-width:0}.portal-brand strong{display:block;line-height:1.35;overflow-wrap:anywhere}
.portal-footer{margin-top:16px;font-size:14px;color:var(--muted);line-height:1.7;overflow-wrap:anywhere}.portal-copyright{font-size:14px;line-height:1.7;overflow-wrap:anywhere}.portal-footer .portal-copyright{margin-top:4px}
.portal-row-title{display:flex;align-items:center;gap:10px;min-width:0}.portal-row-title h2{min-width:0}
.portal-access{display:inline-flex;align-items:center;flex:none;vertical-align:middle;white-space:nowrap;font-size:14px;font-weight:400;line-height:1.5;padding:3px 8px;border-radius:8px;background:var(--lilac-bg);color:var(--lilac-ink)}.portal-access.free{background:var(--mint-bg);color:var(--mint-ink)}.portal-review .portal-access{color:var(--lilac-ink)}.portal-review .portal-access.free{color:var(--mint-ink)}
.portal-review{gap:12px}
@media(min-width:701px){.operator-module-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.operator-capability-fields{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1119px){.portal-shell .portal-operator-actions>.portal-pill{display:none}}
@media(max-height:749px){.portal-footer{margin-top:12px}.portal-review{gap:8px}}
@media(max-height:799px) and (min-width:701px){.portal-shell:has(.portal-editor)>.portal-intro{display:none}.portal-shell:has(.portal-editor)>.portal-tabs{margin-top:16px}}
@media(max-height:749px){.portal-editor:has(.operator-readonly-copy){padding:16px}.portal-editor:has(.operator-readonly-copy) h2{margin-bottom:8px}.operator-readonly-copy{height:76px;min-height:76px;max-height:76px}}
@media(max-width:700px){.portal-header{flex-wrap:wrap}.portal-brand{flex:1 1 220px}.portal-tools,.portal-tabs{flex-wrap:wrap}.portal-tools input{flex:1;min-width:120px;width:auto}.portal-row{flex-wrap:wrap}.operator-row-actions{flex-wrap:wrap;margin-left:auto}.portal-row-main{flex-basis:calc(100% - 60px)}.portal-review>div{grid-template-columns:80px minmax(0,1fr);gap:10px}.portal-editor-actions{flex-wrap:wrap}.portal-footer{text-align:left}.portal-row-title{gap:8px}}
