/* SCS Manager Portal — builds on /styles/style.css (4M brand on Pico) */
.mp-bar { display: flex; align-items: center; gap: 1rem; padding: 0.6rem 1.25rem; background: #fff; border-bottom: 4px solid var(--brand-cyan); flex-wrap: wrap; }
.mp-bar .logo { height: 36px; }
.mp-bar .title { font-weight: bold; color: var(--brand-blue); font-size: 1.1rem; }
.mp-bar .who { margin-left: auto; font-size: 0.85rem; color: var(--brand-gray); }
.mp-bar .who a { margin-left: 0.5rem; }
.mp-bar #who { font-weight: bold; color: var(--brand-blue); font-size: 0.95rem; }

main.mp { padding: 1rem 1.25rem 3rem; max-width: 1300px; margin: 0 auto; }
.hint { color: var(--brand-gray); font-size: 0.9rem; }
.error { color: #B3261E; }
.ok-msg { color: #1E6B3A; font-weight: bold; }
.sub { display: block; color: var(--brand-gray); font-size: 0.8rem; }
.num { text-align: right; white-space: nowrap; }

/* Loading / errors */
.loading-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; min-height: 50vh; text-align: center; }
.loading-screen[hidden] { display: none; }
.loading-screen p { margin: 0; }
#loading-text { font-weight: bold; color: var(--brand-blue); }
.spinner { width: 48px; height: 48px; border-radius: 50%; border: 5px solid #E3E6EE; border-top-color: var(--brand-cyan); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
.load-error, .notice { max-width: 600px; margin: 3rem auto; border-left: 4px solid #C62828; }
.notice { border-left-color: #F7941D; }

/* Toolbar */
.toolbar { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; margin-bottom: 0.75rem; }
.toolbar input[type=search] { flex: 1 1 240px; margin: 0; }
.filters { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.filters button { all: unset; cursor: pointer; padding: 0.4rem 0.8rem; border-radius: 999px; font-size: 0.9rem; color: var(--brand-blue); border: 1px solid #D5D8E8; }
.filters button[aria-selected=true] { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); }
.filters .count { opacity: 0.75; margin-left: 0.3rem; }
.icon-btn { width: auto; margin: 0; padding: 0.35rem 0.8rem; font-size: 0.9rem; }

/* Table */
.table-wrap { overflow-x: auto; }
#table { font-size: 0.9rem; }
#table th { white-space: nowrap; font-size: 0.8rem; color: var(--brand-gray); }
#table tbody tr { cursor: pointer; }
#table tbody tr:hover td, #table tbody tr:focus td { background: #F3F5FC; }
#table td { vertical-align: top; }
#table .ref { font-family: Consolas, monospace; white-space: nowrap; color: var(--brand-blue); }

/* Pills */
.pill { display: inline-block; padding: 0.1rem 0.6rem; border-radius: 999px; font-size: 0.78rem; font-weight: bold; white-space: nowrap; }
.pill.ok { background: #E3F6EA; color: #1E6B3A; }
.pill.warn { background: #FFF1DC; color: #8A4B00; }
.pill.info { background: #E6F7FD; color: #035E7A; }
.pill.lock { background: #ECEBFA; color: #2C328D; }
.pill.done { background: #2C328D; color: #fff; }
.pill.muted { background: #EEF0F3; color: #555B61; }

/* Drawer */
dialog#detail { padding: 0; }
dialog#detail > article { position: fixed; top: 0; right: 0; bottom: 0; margin: 0; width: min(760px, 100vw); max-width: none; max-height: none; overflow-y: auto; border-radius: 0; padding: 1.25rem 1.5rem 3rem; }
dialog#detail header { position: relative; margin-bottom: 1rem; }
dialog#detail h2 { margin: 0; font-family: Consolas, monospace; color: var(--brand-blue); }
dialog#detail h3 { font-size: 1rem; margin: 1.5rem 0 0.6rem; color: var(--brand-blue); border-bottom: 1px solid #E3E6EE; padding-bottom: 0.3rem; }
.close-btn { all: unset; cursor: pointer; position: absolute; right: 0; top: -0.25rem; font-size: 1.8rem; line-height: 1; color: var(--brand-gray); }

/* Progress steps */
.steps { display: flex; list-style: none; padding: 0; margin: 0.75rem 0 0; gap: 0.25rem; counter-reset: s; }
.steps li { flex: 1; font-size: 0.72rem; text-align: center; color: var(--brand-gray); border-top: 4px solid #E3E6EE; padding-top: 0.3rem; list-style: none; }
.steps li.done { border-top-color: var(--brand-cyan); color: var(--brand-blue); }
.steps li.now { border-top-color: var(--brand-blue); color: var(--brand-blue); font-weight: bold; }

.banner p { margin: 0 0 0.5rem; padding: 0.55rem 0.9rem; border-radius: 6px; font-size: 0.9rem; border-left: 4px solid; }
.banner .b-lock { background: #ECEBFA; border-color: var(--brand-blue); }
.banner .b-ok { background: #E3F6EA; border-color: #2E8B57; }
.banner .b-warn { background: #FFF4E5; border-color: #F7941D; }
.banner .b-bad { background: #FDE7E6; border-color: #C62828; }
.banner .b-info { background: #E6F7FD; border-color: var(--brand-cyan); }
.banner .b-done { background: #E9EAF6; border-color: var(--brand-blue); }
.banner .b-muted { background: #EEF0F3; border-color: var(--brand-gray); }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 1rem; margin: 0; }
.facts dt { color: var(--brand-gray); font-size: 0.78rem; font-weight: normal; margin: 0; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.details { margin-top: 0.75rem; white-space: pre-wrap; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.5rem; margin-top: 0.75rem; }
.photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; border: 2px solid var(--brand-cyan); }

/* Pricing tool */
.grid2 { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: end; }
.total-box { text-align: right; padding-bottom: 1rem; }
.total-box strong { display: block; font-size: 1.6rem; color: var(--brand-blue); }
.pline { border: 1px solid #D5D8E8; border-radius: 8px; padding: 0.75rem; margin-bottom: 0.75rem; }
.pl-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.seg { display: inline-flex; border: 1px solid var(--brand-blue); border-radius: 999px; overflow: hidden; }
.seg button { all: unset; cursor: pointer; padding: 0.3rem 0.8rem; font-size: 0.85rem; color: var(--brand-blue); }
.seg button[aria-checked=true] { background: var(--brand-blue); color: #fff; }
.seg button:focus-visible { outline: 2px solid var(--brand-cyan); }
.pl-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.5rem; }
.pl-grid select, .pl-grid input { margin-bottom: 0.5rem; }
.pl-calc { display: grid; grid-template-columns: 1fr 1fr auto; gap: 0.5rem; align-items: end; }
.pl-calc label { margin: 0; font-size: 0.8rem; color: var(--brand-gray); }
.pl-calc label[hidden] { display: none; }
.pl-calc input { margin: 0.2rem 0 0; }
.pline[data-method=flat] .pl-calc { grid-template-columns: 1fr auto; }
.eq { font-weight: bold; color: var(--brand-blue); padding-bottom: 0.65rem; white-space: nowrap; }
.p-line-total { min-width: 6rem; display: inline-block; text-align: right; }
.link-btn { all: unset; cursor: pointer; color: var(--brand-blue); text-decoration: underline; font-size: 0.85rem; }
.small { width: auto; padding: 0.3rem 0.8rem; font-size: 0.85rem; margin-bottom: 1rem; }
#p-save { width: auto; }
.lines-ro { font-size: 0.9rem; }

.actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.actions button { width: auto; margin: 0; }
.actions .hint { flex-basis: 100%; margin: 0.25rem 0 0; }
#note-box { margin-top: 0.75rem; }
#note-box .row { display: flex; gap: 0.5rem; }
#note-box .row button { width: auto; }
#a-msg { margin-top: 0.75rem; }

.history { padding-left: 1rem; font-size: 0.88rem; }
.history li { margin-bottom: 0.4rem; }

@media (max-width: 640px) {
  .facts, .pl-grid { grid-template-columns: 1fr; }
  .pl-calc { grid-template-columns: 1fr 1fr; }
  .pl-calc .eq { grid-column: 1 / -1; text-align: right; }
  dialog#detail > article { padding: 1rem 1rem 3rem; }
}

/* Admin "View as" */
.viewas-bar { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; background: #FFF4E5; border-left: 4px solid #F7941D; padding: 0.6rem 1rem; border-radius: 6px; margin-bottom: 0.75rem; }
.viewas-bar span { flex: 1 1 300px; }
.viewas-pick { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin-bottom: 0.5rem; font-size: 0.9rem; }
.viewas-pick label { margin: 0; color: var(--brand-gray); }
.viewas-pick input { flex: 0 1 340px; margin: 0; padding: 0.35rem 0.7rem; height: auto; font-size: 0.9rem; }
.viewing-as #price-form button, .viewing-as #price-form input, .viewing-as #price-form select, .viewing-as #price-form textarea { pointer-events: none; opacity: 0.6; }

/* New opportunity */
dialog#new-dialog > article { width: min(640px, 96vw); max-height: 92vh; overflow-y: auto; }
#new-dialog h2 { color: var(--brand-blue); margin: 0; font-size: 1.3rem; }
.seg-radio { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.seg-radio label { margin: 0; }
#new-dialog .row { display: flex; gap: 0.5rem; }
#new-dialog .row button { width: auto; }
.photo-btn { display: inline-block; cursor: pointer; margin-bottom: 0.5rem; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 0.5rem; margin-bottom: 1rem; }
.thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; border: 2px solid var(--brand-cyan); }
#new-btn { white-space: nowrap; }
.sandbox-strip { background: #F7941D; color: #fff; text-align: center; font-weight: bold; font-size: 0.85rem; padding: 0.3rem 1rem; }
.sandbox-strip[hidden] { display: none; }

/* Pricing question, SOW, quote */
.agreed { border: 1px solid #D5D8E8; border-radius: 8px; padding: 0.6rem 0.9rem; margin-bottom: 1rem; }
.agreed legend { font-weight: bold; color: var(--brand-blue); padding: 0 0.3rem; font-size: 0.95rem; }
.agreed label { display: inline-flex; gap: 0.4rem; margin: 0.25rem 1.5rem 0 0; }
.agreed.missing { border-color: #C62828; }
.sow, .quote-box { margin-top: 1.25rem; }
.sow h4, .quote-box h4 { font-size: 0.95rem; margin: 0 0 0.4rem; color: var(--brand-blue); }
.sow .row, .quote-box .row { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.sow .row > *, .quote-box .row > * { margin: 0; }

/* Tablets: drop the date column (it moves under the reference) so the price fits */
.date-sub { display: none; font-family: var(--pico-font-family, Arial, sans-serif); }
@media (max-width: 960px) {
  .col-date { display: none; }
  .date-sub { display: block; }
  #table { font-size: 0.85rem; }
  #table th, #table td { padding: 0.5rem 0.4rem; }
}
/* Comfortable touch targets */
@media (pointer: coarse) {
  .filters button { padding: 0.55rem 0.9rem; }
  .seg button { padding: 0.5rem 0.9rem; }
  .link-btn { padding: 0.3rem 0; }
}

/* Sections: Opportunities / Dashboard / Roles */
.views { display: flex; justify-content: flex-start; gap: 0.25rem; border-bottom: 2px solid #D5D8E8; margin-bottom: 1rem; }
.views[hidden], .views button[hidden] { display: none; }
.views button { width: auto; margin: 0; background: none; border: 0; border-bottom: 3px solid transparent; border-radius: 0;
  color: #797D82; font-weight: bold; padding: 0.55rem 1rem; margin-bottom: -2px; }
.views button[aria-current="page"] { color: var(--brand-blue); border-bottom-color: var(--brand-cyan); }

/* New customer details */
.cust-box { margin-top: 1rem; }
.cust-box h3 .hint { font-weight: normal; font-size: 0.8rem; }
details.billing { margin: 0 0 1rem; }
details.billing summary { color: var(--brand-blue); font-size: 0.9rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 600px) { .grid2 { grid-template-columns: 1fr; } }

/* Dashboard */
.dash-filters { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: end; margin-bottom: 0.5rem; }
.dash-filters label { font-size: 0.8rem; color: #797D82; margin: 0; }
.dash-filters input:not([type=radio]), .dash-filters select { margin: 0.15rem 0 0; padding: 0.35rem 0.5rem; height: auto; font-size: 0.9rem; width: auto; min-width: 9rem; }
.dash-filters .seg-radio { margin: 0 0 0.4rem; gap: 0.75rem; font-size: 0.85rem; border: 0; padding: 0; }
.dash-filters .seg-radio label { color: inherit; display: inline-flex; gap: 0.35rem; align-items: center; }
.dash-filters .seg-radio input { margin: 0; }
.dash-filters button { width: auto; margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 0.75rem; margin: 0.75rem 0 1rem; }
.kpi { background: #fff; border: 1px solid #D5D8E8; border-left: 4px solid var(--brand-blue); border-radius: 8px; padding: 0.6rem 0.8rem; display: flex; flex-direction: column; }
.kpi .kl { font-size: 0.75rem; color: #797D82; text-transform: uppercase; letter-spacing: 0.03em; }
.kpi strong { font-size: 1.6rem; color: var(--brand-blue); line-height: 1.2; }
.kpi .ks { font-size: 0.78rem; color: #797D82; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.dash-grid .card { margin: 0; padding: 1rem; }
.dash-grid .card.wide { grid-column: 1 / -1; }
.dash-grid h3 { font-size: 1rem; color: var(--brand-blue); margin: 0 0 0.75rem; }
@media (max-width: 860px) { .dash-grid { grid-template-columns: 1fr; } }
.barrow { display: grid; grid-template-columns: 9.5rem 1fr 6.5rem; gap: 0.5rem; align-items: center; margin-bottom: 0.45rem; font-size: 0.88rem; }
.barrow .bt { background: #EEF0F6; border-radius: 4px; height: 1.1rem; overflow: hidden; }
.barrow .bf { display: block; height: 100%; background: var(--brand-blue); border-radius: 4px; }
.barrow .bf.warn { background: #F7941D; }
.barrow .bf.muted { background: #C9CCD1; }
.barrow .bv { text-align: right; color: #444; font-variant-numeric: tabular-nums; }
.cols { display: flex; gap: 0.6rem; align-items: end; height: 180px; padding-top: 0.5rem; overflow-x: auto; }
.col { display: flex; flex-direction: column; align-items: center; min-width: 3rem; flex: 1; height: 100%; }
.colbars { flex: 1; width: 100%; display: flex; gap: 3px; align-items: end; justify-content: center; }
.colbars span { width: 40%; max-width: 22px; border-radius: 3px 3px 0 0; min-height: 1px; }
.c-sub { background: var(--brand-blue); } .c-won { background: var(--brand-cyan); }
.col .cv { font-size: 0.72rem; color: #444; } .col .cl { font-size: 0.75rem; color: #797D82; }
.legend { font-size: 0.8rem; color: #797D82; margin: 0.5rem 0 0; }
.legend .sw { display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 2px; vertical-align: -1px; }
#by-service, #by-region, #oldest { font-size: 0.88rem; margin: 0; }
#oldest tbody tr { cursor: pointer; }

/* Roles */
.roles-lists { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.role-card { margin: 0; padding: 1rem; }
.role-card h3 { font-size: 1rem; color: var(--brand-blue); margin: 0 0 0.3rem; }
.role-card .people { list-style: none; padding: 0; margin: 0.5rem 0; }
.role-card .people li { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.25rem 0; border-bottom: 1px solid #EEF0F6; font-size: 0.9rem; }
.role-card .row { display: flex; gap: 0.5rem; }
.role-card .row input { margin: 0; }
.role-card .row button { width: auto; margin: 0; }

.role-card .region-pick { margin: 0 0 0.5rem; height: auto; font-size: 0.9rem; }
.role-card .of-input { margin: 0 0 0.5rem; font-size: 0.9rem; }

.quote-cust { margin-top: 0.75rem; padding: 0.75rem; border: 1px solid #D5D8E8; border-radius: 8px; background: #fff; }
.quote-cust .row button { width: auto; margin: 0; }

.billwho { margin: 0.25rem 0 0.75rem; }
.billwho fieldset { margin-bottom: 0.4rem; }
.bill-fromjob { background: #EEF0F6; border-left: 3px solid var(--brand-cyan); padding: 0.4rem 0.6rem; font-size: 0.9rem; margin: 0.25rem 0 0.75rem; }
.cust-load { margin: 0 0 1.5rem; padding: 1rem; }
.cust-load h3 { font-size: 1rem; color: var(--brand-blue); margin: 0 0 0.3rem; }
.cust-load .row { display: flex; gap: 0.5rem; align-items: center; }
.cust-load .row input { margin: 0; } .cust-load .row button { width: auto; margin: 0; }

/* Customer & job: the two questions */
.case-q { display: flex; flex-wrap: wrap; gap: 0.25rem 2rem; margin-bottom: 0.25rem; }
.case-q fieldset { margin: 0 0 0.4rem; }
.case-q legend { font-weight: 600; font-size: 0.9rem; }
.case-q .case-hint { flex-basis: 100%; margin: 0 0 0.75rem; }
.typed { background: #FFF8E6; border-left: 3px solid #F7941D; padding: 0.4rem 0.6rem; font-size: 0.9rem; margin: 0 0 0.75rem; }

.actas-check { display: flex; gap: 0.4rem; align-items: center; font-size: 0.85rem; margin: 0.25rem 0 0; flex-basis: 100%; }
.actas-check input { margin: 0; }

/* Internal notes: 4M only */
.internal-note { border-left: 3px solid var(--pico-muted-border-color, #ccc); padding-left: .6rem; }

/* Job setup / billing box */
#setup-form .grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0 1rem; }
#s-msg.ok { color: var(--pico-ins-color, #1a7f37); }

/* Team member's employee # / name didn't check out in WinTeam */
.sub.flag-bad { color: #C62828; font-weight: 600; }

/* ---- "Sections" layout (Layout toggle in the header; classic layout unchanged) ---- */
.layout-sections details.sec { border: 1px solid #DDE1E6; border-left: 4px solid var(--brand-gray); border-radius: 8px; margin: 0 0 0.75rem; padding: 0 0.9rem; background: #fff; }
.layout-sections details.sec > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; padding: 0.7rem 0; cursor: pointer; list-style: none; }
.layout-sections details.sec > summary::-webkit-details-marker { display: none; }
.layout-sections details.sec > summary::after { margin-left: auto; }
.layout-sections details.sec[open] > summary { border-bottom: 1px solid #EEF0F3; margin-bottom: 0.6rem; }
.layout-sections .sec-title { font-weight: 700; color: var(--brand-blue); }
.layout-sections .sec-status { font-size: 0.88rem; color: var(--brand-gray); }
.layout-sections details.sec[data-state="action"] { border-left-color: #F7941D; }
.layout-sections details.sec[data-state="action"] .sec-status { color: #8A4B00; font-weight: 600; }
.layout-sections details.sec[data-state="wait"] { border-left-color: var(--brand-cyan); }
.layout-sections details.sec[data-state="ready"] { border-left-color: #2E8B57; }
.layout-sections details.sec[data-state="ready"] .sec-status { color: #1F6E43; }
/* the section's own heading is now in its summary */
.layout-sections details.sec > h3[data-sec-start],
.layout-sections details.sec > .cust-box > h3:first-child,
.layout-sections details.sec > .quote-box > h4:first-child { display: none; }
.layout-sections details.sec > .cust-box, .layout-sections details.sec > .quote-box { border: 0; padding: 0; margin: 0 0 0.6rem; background: none; }
#layout-toggle { font-size: 0.85rem; margin: 0 0.5rem; }

/* ---- Pencil edits ---- */
button.pencil { width: auto; padding: 0.3rem 0.8rem; margin: 0.25rem 0 0.75rem; font-size: 0.9rem; background: #fff; color: var(--brand-blue); border: 1px solid var(--brand-blue); }
button.pencil-sm { width: auto; padding: 0 0.4rem; margin: 0 0 0 0.4rem; font-size: 0.95rem; line-height: 1.4; background: none; border: 0; color: var(--brand-blue); vertical-align: baseline; }
button.pencil-sm:hover, button.pencil:hover { background: #EEF0FA; }
dl.pdetails { display: grid; grid-template-columns: minmax(9rem, 30%) 1fr; gap: 0.4rem 1rem; margin: 0.5rem 0 1rem; }
dl.pdetails dt { color: var(--brand-gray); font-size: 0.88rem; }
dl.pdetails dd { margin: 0; }
dl.pdetails dd .details { white-space: pre-wrap; }
dl.pdetails dd .row { display: flex; gap: 0.5rem; }
dl.pdetails dd .row button { width: auto; margin: 0; padding: 0.3rem 0.9rem; }
#c-pencil { margin-top: 0.5rem; }
#price-readonly .row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin: 0.25rem 0 0.75rem; }
#price-readonly .row button { width: auto; margin: 0; }

/* dashboard v2 */
.dash-h { margin: 1.25rem 0 0.25rem; font-size: 1.05rem; color: var(--brand-blue); }
.money-kpis .kpi.won { border-left-color: #2e7d32; } .money-kpis .kpi.lost { border-left-color: #c62828; }
.money-kpis .kpi.quoted { border-left-color: var(--brand-cyan); } .money-kpis .kpi.review { border-left-color: #F7941D; }
.card-head { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; justify-content: space-between; }
.card-head h3 { margin: 0; } .card-head .seg-radio { margin: 0; }
.c-won2 { background: #2e7d32; } .c-lost { background: #c62828; } .c-quote { background: var(--brand-cyan); }
.colbars.three span { width: 28%; }

.emp-box { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; background: #eef7fd; border: 1px solid #b9e4f7; border-radius: 8px; padding: 0.6rem 0.8rem; margin: 0 0 0.75rem; }
.emp-box input { width: 9rem; margin: 0; } .emp-box button { margin: 0; } .emp-box small { flex-basis: 100%; margin: 0; }

/* Admin delete (detail page) */
.danger-zone { margin-top: 1.5rem; border: 1px solid #e3b4b4; border-radius: 8px; padding: .5rem .9rem; }
.danger-zone summary { color: #a12b2b; font-weight: 600; }
.danger-zone input { max-width: 16rem; }
button.danger { background: #b42318; border-color: #b42318; color: #fff; }
button.danger:disabled { opacity: .45; }

/* Admin: link a WinTeam schedule; Data sync card */
.admin-zone { margin-top: 1.5rem; border: 1px solid #c9d2e3; border-radius: 8px; padding: .5rem .9rem; }
.admin-zone summary { color: #2C328D; font-weight: 600; }
.admin-zone input { max-width: 14rem; }
.sync-buttons { flex-wrap: wrap; gap: .5rem; }
.sync-buttons button { width: auto; margin: 0; }
#sync-runs td.error { color: #b42318; }
