:root{--ink:#24392c;--muted:#657065;--blue:#ed080d;--line:#e8e2d7;--page:#fff9ef;--surface:#fff;--success:#087c53;font-family:Arial,Helvetica,sans-serif;color:var(--ink);font-size:16px;line-height:1.5}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:var(--page)}button,input,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:default}a{color:var(--blue)}:focus-visible{outline:3px solid #16a4c5;outline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:clamp(1.6rem,3vw,2.15rem);line-height:1.2;letter-spacing:-.035em}h2{font-size:1.15rem;line-height:1.35}h3{font-size:.94rem;margin:1.4rem 0 .7rem}.sidebar{position:fixed;inset:0 auto 0 0;width:232px;background:#132c42;color:#fff;padding:1.8rem 1.1rem;display:flex;flex-direction:column}.brand{color:#fff;text-decoration:none;display:flex;align-items:center;gap:.7rem;font-weight:700;font-size:1rem}.brand-mark{display:grid;place-items:center;background:#2d65d8;border-radius:.65rem;width:2.7rem;height:2.7rem;font-size:1.5rem}.brand small{display:block;font-weight:400;color:#b4c5d7;font-size:.875rem;margin-top:.15rem}.sidebar nav{display:grid;gap:.5rem;margin-top:2.5rem}.nav-item{color:#c4d1df;display:flex;align-items:center;gap:.8rem;padding:.8rem 1rem;background:none;border:0;border-radius:.7rem;text-align:left;font-size:.95rem;min-height:48px}.nav-item span{font-size:1.2rem;min-width:1.1rem;text-align:center}.nav-item.active{background:#24435f;color:white;font-weight:700}.nav-item:hover{background:#24435f}.sidebar-bottom{margin-top:auto;display:grid;gap:1.1rem;font-size:.875rem}.sidebar-bottom a{color:#b9cde7;text-decoration:none}.private-label{color:#9bb4cb;border-top:1px solid #375268;padding-top:1rem}main{margin-left:232px;padding:2rem 2.1rem;max-width:1680px}.page-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.6rem}.eyebrow{font-size:.8rem;letter-spacing:.13em;font-weight:700;color:#6b7d92;margin-bottom:.45rem}.button{display:inline-flex;align-items:center;justify-content:center;min-height:43px;padding:.55rem .95rem;border:1px solid #becbdb;border-radius:.65rem;background:white;color:var(--ink);font-weight:600;font-size:.875rem;text-decoration:none;white-space:normal;gap:.4rem}.button:hover:not(:disabled){background:#edf3fb}.button.primary{background:var(--blue);border-color:var(--blue);color:#fff}.button.primary:hover:not(:disabled){background:#104cbe}.text-button{padding:.55rem .15rem;min-height:42px;background:none;border:none;color:var(--blue);font-size:.875rem;font-weight:600;text-align:left}.demo-banner{display:flex;gap:1rem;align-items:center;padding:.85rem 1rem;background:#e8f0fc;border:1px solid #cbdcf5;border-radius:.7rem;font-size:.875rem;margin-bottom:1.2rem}.badge{font-size:.75rem;font-weight:700;letter-spacing:.035em;color:#1757a5;background:#d6e6ff;padding:.3rem .5rem;border-radius:.3rem;white-space:nowrap}.filter-bar{display:flex;gap:.9rem;align-items:flex-end;flex-wrap:wrap;margin:0 0 1.4rem}label{display:grid;gap:.3rem;font-size:.875rem;color:var(--muted)}label input,label select{min-height:42px;border:1px solid #bfccdc;padding:.5rem .65rem;border-radius:.55rem;color:var(--ink);background:white;max-width:100%;min-width:0}.filter-bar select{min-width:195px}.filter-bar input{max-width:165px}.last-update{margin-left:auto;font-size:.8rem;color:var(--muted);padding-bottom:.7rem}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin-bottom:1.3rem}.kpi{background:white;border:1px solid var(--line);border-radius:.85rem;padding:1.2rem 1.25rem;position:relative}.kpi p{font-size:.875rem;font-weight:600;color:#596e84}.kpi strong{display:block;font-size:2.3rem;line-height:1.2;letter-spacing:-.045em;margin:.6rem 0 .45rem;font-variant-numeric:tabular-nums}.kpi small{font-size:.8rem;color:var(--muted)}.kpi.accent{border-top:3px solid var(--blue);padding-top:calc(1.2rem - 2px)}.kpi.accent strong{color:var(--blue)}.overview-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:1.3rem;margin-bottom:1.3rem}.card{background:#fff;border:1px solid var(--line);border-radius:.85rem;padding:1.3rem;min-width:0}.card-heading{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:1rem}.card-heading .muted{font-size:.8rem}.muted{color:var(--muted);font-size:.875rem}.trend{display:flex;align-items:flex-end;justify-content:center;gap:.7rem;min-height:210px;padding-top:1.25rem}.trend-column{display:grid;grid-template-rows:26px 140px 24px;flex:1;max-width:100px;text-align:center;font-size:.8rem;color:var(--muted)}.trend-column strong{font-size:.875rem;color:var(--ink);font-weight:600}.trend-bars{display:flex;align-items:flex-end;justify-content:center;gap:3px}.trend-bar{width:26px;max-width:75%;height:var(--bar-height);background:var(--blue);border-radius:5px 5px 0 0;min-height:3px}.trend-column label{display:block;margin-top:.3rem}.empty{color:var(--muted);font-size:.875rem;padding:2rem 1rem;text-align:center;margin:auto}.breakdown{margin-top:1.2rem;display:grid;gap:.7rem}.breakdown-row,.rejection-row{display:flex;justify-content:space-between;gap:1rem;font-size:.94rem}.breakdown-row strong,.rejection-row strong{font-variant-numeric:tabular-nums}.result-track{height:.5rem;border-radius:1rem;background:#e6ebf3;overflow:hidden}.result-track span{display:block;background:var(--blue);height:100%;width:var(--part);border-radius:1rem}.rejections{display:grid;gap:.45rem}.rejection-row{font-size:.875rem;color:var(--muted)}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:.875rem;text-align:left}th{font-size:.8rem;color:#526174;font-weight:600;background:#f5f7fb}th,td{padding:.8rem .75rem;border-bottom:1px solid #e6ebf3;vertical-align:middle}th:first-child,td:first-child{padding-left:.3rem}td{font-variant-numeric:tabular-nums}tbody tr:last-child td{border-bottom:none}.status-badge{display:inline-block;border-radius:.4rem;padding:.24rem .5rem;font-size:.8rem;background:#edf2f8;color:#566a80;white-space:nowrap}.status-badge.win{background:#e7f4ed;color:#086d4a}.status-badge.redeemed{background:#e6efff;color:#1754b3}.service-list{margin:1.15rem 0}.service-list div{display:flex;justify-content:space-between;gap:1rem;border-bottom:1px solid #e8edf4;padding:.8rem 0;font-size:.875rem}.service-list dt{color:var(--muted)}.service-list dd{margin:0;text-align:right;font-weight:600}.service-list .connected{color:var(--success)}.operation-card .button{width:100%;margin:.5rem 0 .75rem}.empty-guide{display:flex;align-items:center;justify-content:space-between;gap:1.25rem;padding:1.3rem;border:1px dashed #94b5e9;background:#f9fbff;border-radius:.8rem}.empty-guide p{font-size:.875rem;color:var(--muted);margin-top:.4rem}.record-filters{display:grid;grid-template-columns:minmax(220px,2fr) 1fr 1.3fr;gap:1rem;margin:1.15rem 0}.records-card td:first-child{white-space:nowrap;font-weight:600}.records-card td:nth-child(4){font-family:monospace;font-size:.8rem}.records-card .table-wrap{min-height:200px}.pagination{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:1rem;font-size:.875rem;color:var(--muted)}.pagination>div{display:flex;gap:.5rem}.audit-card{margin-top:1.3rem}.audit-list{display:grid;gap:.7rem;margin-top:1rem}.audit-row{display:flex;justify-content:space-between;gap:1rem;font-size:.875rem}.audit-row time{color:var(--muted);font-size:.8rem}.section-note{margin-bottom:1rem;font-size:.875rem;color:var(--muted)}.error-banner{padding:1rem;background:#fff0f2;border:1px solid #efc1c8;color:#9e1f34;border-radius:.7rem;margin-bottom:1rem}.toast{position:fixed;bottom:1.5rem;left:50%;transform:translateX(-50%);padding:.85rem 1.2rem;background:#132c42;color:white;border-radius:.7rem;box-shadow:0 8px 32px #132c4220;max-width:90vw;z-index:5;font-size:.875rem}dialog{max-width:440px;width:calc(100% - 2rem);border:1px solid var(--line);border-radius:1rem;padding:1.5rem;color:var(--ink)}dialog::backdrop{background:#10223688}dialog p{color:var(--muted);font-size:.94rem;margin:1rem 0;overflow-wrap:anywhere}.dialog-actions{display:flex;justify-content:flex-end;gap:.7rem;margin-top:1.2rem}footer{font-size:.8rem;color:var(--muted);padding:1.5rem 0 .5rem}
@media(min-width:1650px){main{margin-right:auto;margin-left:auto;padding-left:260px}}
@media(max-width:1200px){.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-grid{grid-template-columns:minmax(0,1fr)}.sidebar{width:210px}main{margin-left:210px;padding:1.6rem}.last-update{width:100%;margin-left:0;padding-bottom:0}.trend{justify-content:flex-start;overflow:auto}.trend-column{min-width:35px;max-width:75px}}
@media(max-width:780px){.sidebar{position:static;width:auto;inset:auto;padding:1rem 1.1rem}.sidebar nav{display:flex;gap:.3rem;margin-top:1rem;flex-wrap:wrap}.nav-item{padding:.6rem .8rem;min-height:44px}.nav-item span{display:none}.sidebar-bottom{display:none}.brand small{display:none}main{margin:0;padding:1.2rem 1rem}.page-header{margin-bottom:1rem}.demo-banner{align-items:flex-start;flex-direction:column;gap:.5rem}.filter-bar{gap:.6rem}.filter-bar>label:first-child{width:100%}.filter-bar select{width:100%}.filter-bar input{max-width:none;width:100%}.filter-bar>label:not(:first-child){flex:1;min-width:115px}.kpi-grid{gap:.65rem}.kpi{padding:1rem}.kpi.accent{padding-top:calc(1rem - 2px)}.kpi strong{font-size:1.95rem}.card{padding:1rem}.record-filters{grid-template-columns:1fr 1fr}.record-filters>label:first-child{grid-column:1/-1}.card-heading{align-items:flex-start;flex-wrap:wrap}.empty-guide{align-items:flex-start;flex-direction:column}.overview-grid{gap:1rem;margin-bottom:1rem}.audit-row{flex-direction:column;gap:.2rem}.pagination{align-items:flex-start;flex-direction:column}.service-list div{flex-wrap:wrap}.trend-column{grid-template-rows:26px 100px 24px}.trend{min-height:170px}.trend-bars{max-height:100px}.trend-bar{max-height:100px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.campaign-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin:1.4rem 0;}.campaign-facts>div{padding:1rem;background:#f4f7fc;border-radius:.7rem;display:grid;gap:.35rem;}.campaign-facts span,.campaign-facts small{font-size:.875rem;color:var(--muted);}.campaign-facts strong{font-size:1.2rem;}.campaign-note{margin-top:1rem;max-width:760px;}.staff-card{margin-top:1.3rem;}.staff-form{display:grid;grid-template-columns:1fr 1.4fr 1fr auto;gap:1rem;align-items:end;margin:1.2rem 0 1.5rem;}.staff-card td:nth-child(2){overflow-wrap:anywhere;}.staff-form input,.staff-form select{width:100%;}.sidebar-bottom{min-height:120px;}
@media(max-width:1100px){.campaign-facts{grid-template-columns:repeat(2,minmax(0,1fr));}.staff-form{grid-template-columns:1fr 1fr;}}
@media(max-width:780px){.sidebar-bottom{display:flex;min-height:0;flex-wrap:wrap;gap:.8rem;margin-top:.8rem;}.sidebar-bottom .private-label{display:none;}.campaign-facts{gap:.65rem;}.campaign-facts strong{font-size:1rem;}.staff-form{grid-template-columns:1fr;}.campaign-action-detail{width:100%;}}
.brand-logo{display:block;width:96px;height:auto;flex:0 0 auto;}.sidebar{background:#06462e;}.sidebar .brand{flex-direction:column;align-items:flex-start;gap:.9rem;}.sidebar .brand small{color:#cee0cf;}.nav-item{color:#d0e1d1;}.nav-item.active,.nav-item:hover{background:#176343;}.sidebar-bottom a{color:#d0e1d1;}.private-label{border-color:#397c57;color:#bed2c0;}.button.primary:hover:not(:disabled){background:#c80509;}.campaign-facts>div{background:#f5f8ef;}
@media(max-width:780px){.sidebar .brand{flex-direction:row;align-items:center;}.brand-logo{width:85px;}}
/* Private receipt diagnostics, kept within the existing campaign panel. */
.ocr-upload{display:grid;gap:14px;margin-top:22px}.ocr-upload input[type=file]{display:block;max-width:100%;margin-top:10px}.ocr-actions{display:flex;gap:12px;flex-wrap:wrap}.ocr-result-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.7fr);gap:28px}.ocr-image{max-width:100%;max-height:640px;object-fit:contain;border-radius:12px;background:#f6f7fa}.ocr-text{white-space:pre-wrap;overflow-wrap:anywhere;max-height:380px;overflow:auto;background:#f6f7fa;padding:18px;border-radius:12px;font:13px/1.6 monospace}.ocr-result-grid .service-list dd{overflow-wrap:anywhere}@media(max-width:700px){.ocr-result-grid{grid-template-columns:1fr}.ocr-image{max-height:480px}}

.ops-form{display:grid;gap:18px}.ops-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.ops-form label{display:grid;gap:7px;font-weight:600}.ops-form input,.ops-form textarea{width:100%;padding:11px;border:1px solid #d5ded6;border-radius:8px;font:inherit;background:#fff}.ops-form .ops-check{display:flex;align-items:center;gap:10px}.ops-check input{width:auto;min-width:18px;min-height:18px}.ops-alert{padding:16px;margin:12px 0;border-radius:10px;border:1px solid}.ops-alert p{margin:7px 0}.ops-alert button{display:block;margin-top:10px}.ops-warning{background:#fff7dd;border-color:#e0bf67;color:#614b16}.ops-critical{background:#fff0f0;border-color:#dc9b9b;color:#842e36}[data-panel="operations"] .table-wrap{max-height:480px;overflow:auto}@media(max-width:680px){.ops-fields{grid-template-columns:1fr}}
.costs-grid{margin-top:20px}.costs-grid .kpi strong{font-size:clamp(1.2rem,2.4vw,1.8rem)}.costs-grid progress{width:100%;height:12px;margin-top:14px;accent-color:#25634a}.costs-money{font-size:1.8rem;font-weight:750;color:#245f46}.costs-table{min-width:880px}.costs-table td:last-child{min-width:290px;max-width:420px;white-space:normal;font-size:.85rem;line-height:1.5}

[data-panel="incidents"] td:nth-child(4){white-space:pre-line;min-width:240px;max-width:420px;line-height:1.5}

.capacity-actions{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}[data-panel="capacity"] .card{margin-bottom:22px}[data-panel="capacity"] progress{width:100%;height:16px;accent-color:#245f46}[data-panel="capacity"] input[type=file]{display:block;max-width:100%;margin-top:12px}

.event-actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.button.danger{color:#961a13;border-color:#c44a3a;background:#fff6f3}.event-actions .button{min-height:44px}#campaign-pause-reason:empty{display:none}

.daily-test-modes{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}.daily-test-modes .button[aria-pressed="true"]{background:#0d5738;color:#fff;border-color:#0d5738;box-shadow:0 0 0 2px #b7dfc5}.daily-test-card{border:2px solid #a7bfae}.daily-test-card .event-actions{flex-wrap:wrap}.daily-test-card .service-list dd{overflow-wrap:anywhere}
