:root{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#173a3c;background:#f5f8f5}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,.button{border:1px solid #246757;border-radius:9px;background:#246757;color:white;padding:10px 14px;cursor:pointer;text-decoration:none;min-height:44px}button:hover,.button:hover{background:#174c3e}button:disabled{opacity:.5;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #a66a15;outline-offset:2px}.skip{position:absolute;left:-10000px}.skip:focus{left:8px;top:8px;background:#fff;padding:8px;z-index:10}.topbar{display:flex;align-items:center;gap:18px;padding:12px max(20px,calc((100vw - 1440px)/2));background:#fff;border-bottom:1px solid #dbe6df}.topbar .brand{margin-right:auto}.brand img{width:150px;height:auto;display:block}.topbar a{color:#174c3e}.layout{max-width:1440px;margin:auto;padding:28px 20px 70px}.heading,.section-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.heading h1{margin:0;font-size:clamp(1.7rem,3vw,2.5rem)}.heading p{margin:8px 0}.eyebrow{text-transform:uppercase;font-size:.72rem;letter-spacing:.1em;color:#52766a;font-weight:800}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:22px 0}.metric,.panel{background:#fff;border:1px solid #dce7df;border-radius:14px;box-shadow:0 3px 14px #174c3e0b}.metric{padding:18px}.metric span{display:block;color:#526a67;font-size:.85rem}.metric strong{font-size:2rem;display:block;margin-top:8px}.columns{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:18px;align-items:start}.panel{padding:22px;margin-bottom:18px;min-width:0}.panel h2{margin:0}.section-heading p{color:#526a67;margin:7px 0 16px;font-size:.9rem}.filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}.filters label,.stack label,.direct label{display:grid;gap:5px;font-size:.83rem;font-weight:700;color:#3d5d58}.filters input,.filters select,.filters textarea,.stack input,.stack select,.stack textarea,.direct input{width:100%;min-height:42px;border:1px solid #b9cbc1;border-radius:8px;padding:9px;background:#fff;color:#173a3c}.filters textarea,.stack textarea{min-height:82px}.filters button{align-self:end}.direct{display:flex;align-items:end;gap:9px;border-top:1px solid #e3ebe5;padding-top:15px;margin:12px 0}.direct label{flex:1}.list{display:grid;gap:9px;margin:15px 0}.row{border:1px solid #e2eae4;border-radius:10px;padding:12px;overflow-wrap:anywhere;background:#fbfdfb}.row p{margin:6px 0}.row small{color:#57706b}.link-button{background:none;color:#155a48;border:0;padding:0;min-height:0;text-align:left;font-weight:800;text-decoration:underline}.link-button:hover{background:none;color:#0d382d}.pager{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.pager span{margin-right:auto}.stack{display:grid;gap:12px}.hint,.empty{color:#5c706a}.right{padding:12px;background:#eaf5ee;border-radius:9px}.panel details{border-top:1px solid #e2eae4;margin-top:18px;padding-top:13px}summary{cursor:pointer;font-weight:700}#notice{padding:12px 16px;border-radius:9px;background:#def2e4;margin-bottom:16px}#notice.error{background:#fde9e5;color:#812d1e}[hidden]{display:none!important}@media(max-width:1050px){.columns{grid-template-columns:1fr}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.layout{padding:18px 12px 50px}.panel{padding:16px}.metrics{gap:9px}.metric{padding:13px}.metric strong{font-size:1.65rem}.filters{grid-template-columns:1fr}.heading{align-items:flex-start}.direct{display:grid}.topbar{padding:10px 12px}.brand img{width:115px}}
#agency-codes{width:100%;min-height:180px;border:1px solid #b9cbc1;border-radius:8px;padding:10px;font:monospace;word-break:break-all}#agency-created{border-top:1px solid #dce7df;padding-top:16px}
#agency-plan-summary{grid-column:1/-1;margin:0;padding:10px 12px;background:#f1f7f2;border-radius:8px}

/* Form and list rhythm shared across the operations workspace. */
body{font-size:15px;line-height:1.5}
.layout{max-width:1320px;padding:34px 24px 80px}
.heading{align-items:center;margin-bottom:2px}
.heading h1{line-height:1.15;letter-spacing:-.025em}
.heading p{color:#5a706b}
.metrics{gap:16px;margin:24px 0}
.metric{padding:20px 22px}
.metric span{line-height:1.35}
.metric strong{font-size:2.15rem;line-height:1.1}
.panel{padding:26px;border-radius:16px}
.panel h2{font-size:1.4rem;line-height:1.25;letter-spacing:-.015em}
.panel h3{font-size:1.08rem;margin:20px 0 12px}
.section-heading p{line-height:1.5;margin-top:8px}
.filters{column-gap:16px;row-gap:14px;margin:18px 0}
.filters label,.stack label,.direct label{font-size:.875rem;line-height:1.4;gap:7px}
.filters input,.filters select,.filters textarea,.stack input,.stack select,.stack textarea,.direct input{min-height:46px;padding:10px 12px;border-color:#b8ccc1;line-height:1.35}
.filters textarea,.stack textarea{min-height:104px;resize:vertical}
#filters label:first-child{grid-column:1/-1}
#filters button{grid-column:1/-1;justify-self:end;min-width:150px}
#agency-form .agency-name-field{grid-column:1/-1}
#agency-form button[type=submit]{grid-column:1/-1;justify-self:end;min-width:180px}
#plan-form label:nth-of-type(5),#plan-form label:nth-of-type(6){grid-column:1/-1}
#plan-reset{background:#fff;color:#246757}
#plan-reset:hover{background:#edf6ef}
#agency-codes{min-height:120px;line-height:1.5}
#agency-availability{padding:11px 13px;background:#fff4e8;color:#75411d;border:1px solid #ebc09a;border-radius:8px}
.row{padding:15px 16px;line-height:1.45}
.row p{margin:7px 0 4px;color:#31524b}
.row small{display:block;font-size:.79rem;line-height:1.5;overflow-wrap:anywhere}
.link-button{display:block;width:fit-content;font-size:1rem;line-height:1.35}
#plan-list .row button{margin:8px 8px 0 0}
.direct{margin:18px 0;padding-top:18px}
.pager{padding-top:4px}
.right{line-height:1.5}
#action-hint{margin:0;padding:11px 13px;background:#f1f7f2;border-radius:8px;line-height:1.45}
#plan-editor[open] summary,#agency-generator[open] summary{margin-bottom:14px}
@media(max-width:600px){
  .layout{padding:20px 12px 56px}
  .panel{padding:18px}
  .metrics{gap:10px;margin:20px 0}
  .metric{padding:15px}
  .metric strong{font-size:1.8rem}
  #filters button,#agency-form button[type=submit]{justify-self:stretch;width:100%}
  #plan-form label:nth-of-type(5),#plan-form label:nth-of-type(6),
  #agency-form .agency-name-field{grid-column:auto}
}

/* Operations pages share the four-color rhythm of ParentLab Apps. */
:root{color:#17243b;background:#f7f2e9}
body{color:#17243b}
.topbar{background:#fffdf9;border-color:#e4ddd1}
.topbar>span{font-weight:800;color:#17243b}
.topbar a{color:#85402d;font-weight:750}
.layout{max-width:1320px}
.heading{position:relative;isolation:isolate;overflow:hidden;min-height:160px;padding:30px 34px;border-radius:22px;background:linear-gradient(115deg,#17243b,#203d49 72%,#226d68);color:#fff;box-shadow:0 18px 38px rgba(23,36,59,.14)}
.heading::after{content:"";position:absolute;right:-70px;top:-175px;width:340px;height:340px;border:1px solid rgba(255,255,255,.2);border-radius:50%;pointer-events:none;z-index:-1}
.heading .eyebrow{color:#ffc871}
.heading p,.heading #operator-label{color:#e3e9ed}
.heading h1{font-size:clamp(1.8rem,3.2vw,2.6rem);letter-spacing:-.035em}
.heading button{flex:none;border-color:rgba(255,255,255,.65);background:rgba(255,255,255,.12);color:#fff}
.heading button:hover{background:rgba(255,255,255,.24)}
.metrics{gap:15px;margin:22px 0 25px}
.metric,.panel{border-color:#e4ddd1;background:#fffdf9;box-shadow:0 10px 28px rgba(23,36,59,.05)}
.metric{border-top:4px solid #17243b;border-radius:15px}
.metric:nth-child(4n+2){border-top-color:#e2a83e}
.metric:nth-child(4n+3){border-top-color:#226d68}
.metric:nth-child(4n){border-top-color:#b94d38}
.metric span{color:#52616b}
.metric strong{color:#17243b}
.columns>.panel:first-child{border-top:5px solid #226d68}
.columns>#family-detail{border-top:5px solid #b94d38}
#catalog-panel{border-top:5px solid #e2a83e}
#agency-panel{border-top:5px solid #17243b}
.panel h2,.panel h3{color:#17243b}
.section-heading p,.hint,.empty{color:#52616b}
.eyebrow{color:#9a442f}
button,.button{border-color:#174c4a;background:#174c4a;color:#fff}
button:hover,.button:hover{border-color:#103a3a;background:#103a3a}
.link-button{border:0;background:none;color:#8c3d29}
.link-button:hover{border:0;background:none;color:#682e20}
#plan-reset,.pager button,#close-detail{border-color:#bbc7c5;background:#fffdf9;color:#253e4b}
#plan-reset:hover,.pager button:hover,#close-detail:hover{border-color:#c89176;background:#f6eadc;color:#713826}
.filters label,.stack label,.direct label{color:#263c48}
.filters input,.filters select,.filters textarea,.stack input,.stack select,.stack textarea,.direct input,#agency-codes{border-color:#bdc8c7;background:#fff;color:#17243b}
.filters input:hover,.filters select:hover,.stack input:hover,.stack select:hover,.direct input:hover{border-color:#648c89}
.row{border-color:#e5ddd2;background:#fff}
.row p{color:#3e515c}
.row small{color:#5a6870}
.right,#action-hint,#agency-plan-summary{background:#e9f1ed;color:#28534d}
.panel details,.direct{border-color:#e8e0d5}
.panel summary{color:#264c58;min-height:40px}
#notice{border:1px solid #bcdcca;background:#e8f3e9;color:#205542}
#notice.error{border-color:#ecc4b2;background:#fff0e8;color:#823720}
@media(max-width:600px){.heading{align-items:flex-start;flex-direction:column;padding:25px 22px}.heading button{width:100%}.metrics{gap:9px}.metric{padding:14px}.topbar{flex-wrap:wrap}.topbar .brand{margin-right:0}.topbar>a:last-child{margin-left:auto}}
@media(forced-colors:active){.heading,.metric,.panel,button,.button{border:1px solid CanvasText}}
#confirm-dialog{width:min(520px,calc(100vw - 28px));max-height:calc(100vh - 28px);overflow:auto;border:1px solid #c9d6d0;border-radius:18px;padding:24px;background:#fffdf9;color:#17243b;box-shadow:0 26px 80px rgba(23,36,59,.28)}
#confirm-dialog::backdrop{background:rgba(14,30,42,.58)}
#confirm-dialog h2{margin:0 0 12px;font-size:1.3rem}
#confirm-message{white-space:pre-line;overflow-wrap:anywhere;line-height:1.55}
.confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}
.confirm-actions .secondary{background:#fffdf9;color:#253e4b;border-color:#bbc7c5}
.confirm-actions .secondary:hover{background:#f6eadc;color:#713826}
@media(max-width:600px){#confirm-dialog{padding:20px}.confirm-actions{flex-direction:column}.confirm-actions button{width:100%}}
.access-actions,.action-buttons{display:flex;gap:10px;flex-wrap:wrap}
.access-actions .secondary,.action-buttons .secondary,.grant-basket .secondary{background:#fffdf9;color:#174c4a;border-color:#9cbab0}
.access-actions .secondary:hover,.action-buttons .secondary:hover,.grant-basket .secondary:hover{background:#e8f3e9;color:#174c4a}
.grant-basket{margin-top:18px;padding:18px;border:1px solid #d9c69f;border-radius:12px;background:#fff9ec}
.grant-basket h4{margin:0 0 6px;font-size:1rem}.grant-basket>p{margin:0;color:#52616b}
.grant-basket .row{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap}.grant-basket .row strong{flex:1 1 200px}.grant-basket .row p{margin:0;flex:1 1 240px}
@media(max-width:600px){.access-actions,.action-buttons{display:grid}.access-actions .button,.action-buttons button,.grant-basket>button{width:100%;text-align:center}}
.pending-section{margin-top:24px;padding-top:18px;border-top:1px solid #e8e0d5}
.pending-section h3{margin:0 0 4px}
.pending-section>p{margin:0;color:#52616b;font-size:.88rem}
#pending-cancel-form{margin:18px 0;padding:16px;border:1px solid #ecc4b2;border-radius:12px;background:#fff6f1}
#pending-cancel-form h3{margin:0}
#pending-cancel-form button{justify-self:start;border-color:#9b3c2c;background:#9b3c2c}
#pending-cancel-form button:hover{background:#7d2e22}
