/* SOTG front-end dashboard — scoped under .sotg-wrap */
.sotg-wrap { max-width: 1100px; margin: 0 auto; font-size: 15px; color: #222; }
.sotg-wrap * { box-sizing: border-box; }

/* Staff dashboard runs full-width (≥1390px). The token-gated driver/travel-log
 * pages (.sotg-driver) stay narrow for phone use — they keep the base width above.
 * Full-bleed breakout escapes a centered theme container to the viewport edges. */
#sotg-dashboard.sotg-wrap {
	max-width: none;
	width: 100vw;
	min-width: 1390px;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding-left: clamp(20px, 4vw, 56px);
	padding-right: clamp(20px, 4vw, 56px);
}
.sotg-notice { padding: 16px; background: #f6f7f7; border: 1px solid #dcdcde; border-radius: 6px; }

/* Flash messages */
.sotg-flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; font-weight: 600; }
.sotg-flash.is-ok { background: #edfaef; border: 1px solid #46b450; color: #1e7e34; }
.sotg-flash.is-error { background: #fbeaea; border: 1px solid #dc3232; color: #a02622; }

/* Tabs */
.sotg-tabs { display: flex; gap: 4px; border-bottom: 2px solid #dcdcde; margin-bottom: 18px; flex-wrap: wrap; }
.sotg-tab { background: none; border: none; padding: 10px 18px; font-size: 15px; font-weight: 600;
	cursor: pointer; color: #555; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.sotg-tab:hover { color: #1d6f42; }
.sotg-tab.is-active { color: #1d6f42; border-bottom-color: #1d6f42; }

/* Panels */
.sotg-panel { display: none; }
.sotg-panel.is-active { display: block; }

.sotg-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sotg-section-head h2 { margin: 0; font-size: 20px; }
.sotg-help-text { color: #666; margin-top: -6px; }
.sotg-head-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sotg-head-tools .sotg-help-text { margin-top: 0; }

/* Buttons */
.sotg-btn { display: inline-block; padding: 8px 14px; border: 1px solid #c3c4c7; background: #f6f7f7;
	border-radius: 5px; cursor: pointer; font-size: 14px; line-height: 1.2; color: #1d2327; }
.sotg-btn:hover { background: #eef0f1; }
.sotg-btn-sm { padding: 4px 9px; font-size: 13px; }
.sotg-btn-primary { background: #1d6f42; border-color: #1d6f42; color: #fff; }
.sotg-btn-primary:hover { background: #195e38; }
.sotg-btn-danger { background: #fff; border-color: #dc3232; color: #dc3232; }
.sotg-btn-danger:hover { background: #dc3232; color: #fff; }

/* Forms */
.sotg-form { background: #fafafa; border: 1px solid #dcdcde; border-radius: 8px; padding: 16px; margin-bottom: 18px; }
.sotg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.sotg-form label { display: flex; flex-direction: column; font-weight: 600; font-size: 13px; gap: 4px; }
.sotg-form label.sotg-check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.sotg-form label.sotg-full { display: block; margin-top: 12px; }
/* Settings form: cap at 3 fields per row (2 on narrower screens) so it never
 * needs horizontal scrolling. */
#sotg-settings-form { max-width: 1120px; }
#sotg-settings-form .sotg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { #sotg-settings-form .sotg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sotg-form input[type=text], .sotg-form input[type=email], .sotg-form select, .sotg-form textarea {
	padding: 8px; border: 1px solid #c3c4c7; border-radius: 4px; font-size: 14px; font-weight: 400; width: 100%; }
.sotg-form .req { color: #dc3232; }
.sotg-form small { color: #888; font-weight: 400; }
.sotg-form-actions { margin-top: 14px; display: flex; gap: 8px; }

/* Tables */
.sotg-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.sotg-table th, .sotg-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #e5e5e5; vertical-align: middle; }
.sotg-table th { background: #f6f7f7; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: #555; }

/* Sticky table: only the data rows scroll; the title/buttons/filter bar (above
 * this box) and the column headers stay put. The box max-height is set by JS to
 * the remaining viewport so the page itself doesn't scroll; this CSS value is a
 * fallback if JS doesn't run. The header bottom-border is drawn with an inset
 * box-shadow because a normal border scrolls away under position:sticky. */
.sotg-table-scroll { overflow: auto; max-height: calc(100vh - 240px); }
.sotg-table thead th { position: sticky; top: 0; z-index: 3; box-shadow: inset 0 -1px 0 #dcdcde; }
.sotg-table tr.sotg-inactive { opacity: .55; }
.sotg-col-actions { white-space: nowrap; width: 1%; }

/* Bookings grid column sizing */
.sotg-table th.sotg-col-when, .sotg-table td.sotg-col-when { white-space: nowrap; min-width: 112px; }
.sotg-table td.sotg-col-when .sotg-when-date { white-space: nowrap; }
.sotg-table th.sotg-col-senior, .sotg-table td.sotg-col-senior { min-width: 170px; max-width: 250px; }
.sotg-table th.sotg-col-dest, .sotg-table td.sotg-col-dest { min-width: 420px; max-width: 1200px; white-space: normal; overflow-wrap: anywhere; }

/* Conditional row highlighting (Bookings) — cancelled vs not-yet-accepted.
 * Cancelled rows are also struck through; action buttons/checkbox stay clean. */
.sotg-table tbody tr.sotg-bk-cancelled > td { background: #DEDBD5; text-decoration: line-through; }
.sotg-table tbody tr.sotg-bk-cancelled .sotg-senior-link { text-decoration: line-through; }
.sotg-table tbody tr.sotg-bk-cancelled .sotg-col-actions .sotg-btn,
.sotg-table tbody tr.sotg-bk-cancelled .sotg-col-check input { text-decoration: none; }
.sotg-table tbody tr.sotg-bk-pending > td { background: #FEF1BB; }

/* Row-select checkbox column + bulk action bar (Bookings) */
.sotg-table th.sotg-col-check, .sotg-table td.sotg-col-check { width: 1%; white-space: nowrap; text-align: center; padding-right: 4px; }
.sotg-table .sotg-col-check input { cursor: pointer; }
.sotg-actionbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; margin: 8px 0;
	background: #eef6f0; border: 1px solid #cfe6d6; border-radius: 8px; position: sticky; top: 0; z-index: 7; }
.sotg-actionbar[hidden] { display: none; }
.sotg-actionbar-count { font-weight: 700; color: #1d6f42; margin-right: 4px; white-space: nowrap; }
.sotg-actionbar-sep { width: 1px; align-self: stretch; background: #cfe6d6; margin: 0 4px; }
.sotg-actionbar-clear { margin-left: auto; }
.sotg-btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Bookings pager (server-side pagination). Sits ABOVE the scroll box so it
   stays visible while only the table rows scroll (sizeStickyTables measures the
   box top, which already accounts for this bar). */
.sotg-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 6px 0 8px; }
.sotg-pager-info { color: #50575e; font-size: 13px; white-space: nowrap; }
.sotg-pager-controls { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.sotg-pager-controls .sotg-btn.is-active { background: #1d6f42; border-color: #1d6f42; color: #fff; cursor: default; }
.sotg-pager-gap { padding: 0 2px; color: #8c8f94; }

/* Clickable senior name → opens the senior-info modal */
.sotg-senior-link { background: none; border: none; padding: 0; margin: 0; font: inherit; font-weight: 600;
	color: #1d6f42; cursor: pointer; text-align: left; text-decoration: underline; text-decoration-style: dotted; }
.sotg-senior-link:hover { color: #13502f; text-decoration-style: solid; }

/* Travel Logs — compact grid to fit all Coda columns in ~1390px */
.sotg-table-compact th, .sotg-table-compact td { padding: 6px 8px; font-size: 13px; }
.sotg-table-compact .sotg-tl-num { text-align: right; white-space: nowrap; width: 1%; }
.sotg-table-compact .sotg-tl-paid, .sotg-table-compact .sotg-tl-send,
.sotg-table-compact .sotg-tl-bk, .sotg-table-compact .sotg-tl-date { white-space: nowrap; width: 1%; }
.sotg-table-compact .sotg-tl-paid, .sotg-table-compact .sotg-tl-send { text-align: center; }
.sotg-table-compact .sotg-tl-comments { max-width: 280px; white-space: normal; overflow-wrap: anywhere; }
.sotg-table-compact .sotg-tl-dest { max-width: 240px; white-space: normal; overflow-wrap: anywhere; }
.sotg-table-compact .sotg-col-actions .sotg-btn { padding: 3px 8px; }

/* Booking-ID link (Travel Logs) → opens booking-detail modal */
.sotg-booking-link { background: none; border: none; padding: 0; font: inherit; font-weight: 600;
	color: #1d6f42; cursor: pointer; text-decoration: underline; text-decoration-style: dotted; }
.sotg-booking-link:hover { color: #13502f; text-decoration-style: solid; }

/* Small icon button (e.g. email this travel record to the driver) */
.sotg-icon-btn { background: #fff; border: 1px solid #1d6f42; color: #1d6f42; border-radius: 5px;
	padding: 3px 9px; cursor: pointer; font-size: 14px; line-height: 1; }
.sotg-icon-btn:hover { background: #1d6f42; color: #fff; }
.sotg-icon-btn[disabled] { opacity: .4; cursor: not-allowed; }
.sotg-empty { color: #888; font-style: italic; text-align: center; }
.sotg-link { color: #1d6f42; font-family: monospace; font-size: 13px; }

/* Status pills */
.sotg-pill { display: inline-block; padding: 2px 9px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.sotg-pill-active { background: #edfaef; color: #1e7e34; }
.sotg-pill-prospect { background: #fff5e0; color: #9a6b00; }
.sotg-pill-inactive { background: #eee; color: #777; }

/* Active toggle */
.sotg-toggle { border: 1px solid #c3c4c7; border-radius: 12px; padding: 3px 12px; font-size: 12px; font-weight: 600; cursor: pointer; }
.sotg-toggle.on { background: #edfaef; color: #1e7e34; border-color: #46b450; }
.sotg-toggle.off { background: #eee; color: #777; }

/* Booking status pills (extra states) */
.sotg-pill-unassigned { background: #fff5e0; color: #9a6b00; }
.sotg-pill-driver_review { background: #e7f1ff; color: #1c5fb0; }
.sotg-pill-to_be_completed { background: #edfaef; color: #1e7e34; }
.sotg-pill-completed { background: #e9ecef; color: #495057; }
.sotg-pill-cancelled { background: #fbeaea; color: #a02622; }
.sotg-assign { padding: 5px 6px; border: 1px solid #c3c4c7; border-radius: 4px; max-width: 160px; }

/* Driver portal cards */
.sotg-driver-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.sotg-driver-head h2 { margin: 0; }
.sotg-card { border: 1px solid #dcdcde; border-radius: 10px; padding: 16px; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.sotg-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sotg-card-when { font-weight: 700; font-size: 16px; }
.sotg-card-body p { margin: 4px 0; }
.sotg-card-actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.sotg-card-actions .sotg-btn { padding: 10px 16px; font-size: 15px; }

/* Driver portal v9.9 — day filter, tabs, touch dialogs, detail overlay */
.sotg-driver-controls { margin: 0 0 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sotg-driver-controls label { font-weight: 600; }
.sotg-driver-controls select { padding: 10px 12px; font-size: 15px; border: 2px solid #dcdcde; border-radius: 8px; }
.sotg-driver-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.sotg-driver-tab { flex: 1; padding: 12px; font-size: 15px; font-weight: 700; border: 1px solid #dcdcde; border-radius: 8px; background: #f3f4f6; color: #333; cursor: pointer; }
.sotg-driver-tab.is-active { background: #1d6f42; border-color: #1d6f42; color: #fff; }
.sotg-driver-panel[hidden] { display: none; }
.sotg-driver-hint { margin-top: 16px; }
.sotg-driver-dialog { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.sotg-driver-dialog[hidden] { display: none; }
.sotg-driver-dialog-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.sotg-driver-dialog-box { position: relative; background: #fff; border-radius: 12px; padding: 20px; width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.sotg-driver-dialog-box h3 { margin: 0 0 6px; font-size: 19px; }
.sotg-record-trip { color: #555; margin: 0 0 14px; }
.sotg-driver-dialog-box label { display: block; font-weight: 600; margin-bottom: 12px; }
.sotg-driver-dialog-box input[type="number"],
.sotg-driver-dialog-box textarea { width: 100%; margin-top: 6px; padding: 12px; font-size: 16px; border: 2px solid #dcdcde; border-radius: 8px; font-family: inherit; box-sizing: border-box; }
.sotg-driver-dialog-box .sotg-form-actions { display: flex; gap: 10px; margin-top: 6px; }
.sotg-driver-dialog-box .sotg-form-actions .sotg-btn { flex: 1; padding: 14px; font-size: 16px; }
.sotg-detail-content p { margin: 6px 0; }
.sotg-detail-nav .sotg-btn:disabled { opacity: .45; cursor: not-allowed; }

/* Senior portal feedback */
.sotg-feedback-form { margin-top: 12px; border-top: 1px solid #eee; padding-top: 12px; }
.sotg-feedback-done { margin-top: 12px; border-top: 1px solid #eee; padding-top: 10px; }
.sotg-stars { font-size: 20px; color: #e6a817; margin: 0 0 4px; letter-spacing: 2px; }
.sotg-feedback-comment { font-style: italic; color: #444; margin: 0 0 4px; }

/* Reference cards */
.sotg-ref-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.sotg-ref-card { border: 1px solid #dcdcde; border-radius: 8px; padding: 14px; }
.sotg-ref-card h3 { margin: 0 0 10px; font-size: 16px; }
.sotg-ref-list { list-style: none; margin: 0 0 12px; padding: 0; }
.sotg-ref-list li { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-bottom: 1px dotted #e5e5e5; }
.sotg-ref-list li em { color: #999; }
.sotg-ref-add { display: flex; gap: 6px; background: none; border: none; padding: 0; margin: 0; }
.sotg-ref-add input { flex: 1; padding: 6px 8px; border: 1px solid #c3c4c7; border-radius: 4px; }

/* Comment threads (expandable row under seniors / bookings tables) */
.sotg-comments-row > td { background: #f6f7f9; padding: 14px 16px; }
.sotg-comments { max-width: 760px; }
.sotg-comments-body { margin-bottom: 12px; }
.sotg-comments-empty { color: #777; font-style: italic; margin: 0 0 8px; }
.sotg-comments-list { list-style: none; margin: 0; padding: 0; }
.sotg-comment { border-left: 3px solid #c3c4c7; padding: 6px 12px; margin: 0 0 8px; background: #fff; border-radius: 0 6px 6px 0; }
.sotg-comment-driver { border-left-color: #2271b1; }
.sotg-comment-admin { border-left-color: #46a049; }
.sotg-comment-management { border-left-color: #8a5cd1; }
.sotg-comment-coordinator { border-left-color: #d98a2b; }
.sotg-comment-system { border-left-color: #999; }
.sotg-comment-meta { font-size: 12px; color: #666; margin-bottom: 3px; }
.sotg-comment-who { font-weight: 700; color: #333; }
.sotg-comment-src { color: #2271b1; }
.sotg-comment-cat { background: #eef1f4; border-radius: 3px; padding: 0 6px; }
.sotg-comment-when { color: #999; }
.sotg-comment-body { font-size: 14px; line-height: 1.45; }
.sotg-comment-form { display: flex; gap: 8px; align-items: flex-start; }
.sotg-comment-form textarea { flex: 1; padding: 8px; border: 1px solid #c3c4c7; border-radius: 4px; font: inherit; resize: vertical; }
[data-act="comments"].is-open { background: #e7eef6; }

/* Registrations */
.sotg-pill-new { background: #e7eef6; color: #1d4f7c; }
.sotg-pill-reviewed { background: #fff4d6; color: #7a5b00; }
.sotg-pill-converted { background: #e3f3e4; color: #2c6e2f; }
.sotg-pill-rejected { background: #f7e1e1; color: #9a2a2a; }
.sotg-detail-row > td { background: #f6f7f9; padding: 14px 16px; }
.sotg-reg-detail dl { display: grid; grid-template-columns: 160px 1fr; gap: 4px 14px; margin: 0; max-width: 760px; }
.sotg-reg-detail dt { font-weight: 700; color: #555; }
.sotg-reg-detail dd { margin: 0; }
.sotg-detail-section { margin: 14px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #2271b1; border-bottom: 1px solid #e2e6ea; padding-bottom: 3px; max-width: 760px; }
.sotg-detail-section:first-child { margin-top: 0; }
.sotg-reg-raw { margin-top: 12px; }
.sotg-reg-raw summary { cursor: pointer; font-weight: 700; color: #2271b1; }
.sotg-reg-raw dl { grid-template-columns: 220px 1fr; margin-top: 8px; }
[data-act="reg-details"].is-open { background: #e7eef6; }

/* --- Coordinators (assignment management + scoped view) ----------------- */
.sotg-pill:not([class*="sotg-pill-"]) { background: #eef0f3; color: #555; }
.sotg-help { color: #666; margin: -4px 0 14px; max-width: 760px; }
.sotg-muted { color: #888; font-size: 13px; }
.sotg-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.sotg-assign-list { list-style: none; margin: 0 0 12px; padding: 0; }
.sotg-assign-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid #f0f0f1; max-width: 520px; }
.sotg-inline { display: inline-flex; align-items: flex-end; gap: 8px; margin: 0; }
.sotg-inline-label { display: flex; flex-direction: column; font-size: 13px; gap: 2px; }

/* --- Grid filters (Seniors / Bookings) --------------------------------- */
.sotg-filter-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px;
	background: #f6f7f9; border: 1px solid #e3e5e8; border-radius: 8px; padding: 10px 12px; }
.sotg-filter-form input[type=search], .sotg-filter-form input[type=text] { flex: 1 1 220px; min-width: 180px;
	padding: 7px 10px; border: 1px solid #c3c4c7; border-radius: 5px; font-size: 14px; }
.sotg-filter-form select { padding: 7px 8px; border: 1px solid #c3c4c7; border-radius: 5px; font-size: 14px; background: #fff; }
.sotg-count { color: #888; font-weight: 400; font-size: 15px; }

/* Quick-view chips (Bookings) */
.sotg-views { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.sotg-view-chip { background: #fff; border: 1px solid #c3c4c7; border-radius: 16px; padding: 5px 14px;
	font-size: 13px; font-weight: 600; color: #555; cursor: pointer; }
.sotg-view-chip:hover { border-color: #1d6f42; color: #1d6f42; }
.sotg-view-chip.is-active { background: #1d6f42; border-color: #1d6f42; color: #fff; }

/* Tag chips */
.sotg-tag { display: inline-block; padding: 1px 8px; margin: 1px 2px 1px 0; border-radius: 11px; font-size: 11px;
	font-weight: 600; background: #eef0f3; color: #555; white-space: nowrap; }
.sotg-tag-senior { background: #e3f3e4; color: #2c6e2f; }
.sotg-tag-wo55 { background: #e7eef6; color: #1d4f7c; }
.sotg-tag-sotg { background: #efe6f7; color: #6b3fa0; }
.sotg-tag-pending { background: #fff0d6; color: #9a6b00; }
.sotg-tag-driver { background: #fde8e8; color: #9a2a2a; }

/* Seniors row colour-coding (Coda parity): Tags Not Approved/Pending = pink,
 * Tags Driver = peach, Paying Client = yellow. */
.sotg-table tbody tr.sotg-sr-pink > td { background: #FFDCF3; }
.sotg-table tbody tr.sotg-sr-driver > td { background: #FFE9C9; }
.sotg-table tbody tr.sotg-sr-paying > td { background: #FEF1BB; }
.sotg-paying-dot { display: inline-block; width: 16px; height: 16px; line-height: 16px; text-align: center;
	border-radius: 50%; background: #e6a817; color: #fff; font-size: 11px; font-weight: 700; }

/* --- In-product Help (? button + modal) -------------------------------- */
.sotg-help-btn { margin-left: auto; align-self: center; background: #fff; border: 1px solid #1d6f42;
	color: #1d6f42; border-radius: 16px; padding: 6px 14px; font-size: 14px; font-weight: 600; cursor: pointer; }
.sotg-help-btn:hover { background: #1d6f42; color: #fff; }
.sotg-help-btn span { font-weight: 700; }

.sotg-help-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: flex-start; justify-content: center; }
.sotg-help-modal[hidden] { display: none; }
.sotg-help-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.sotg-help-dialog { position: relative; background: #fff; border-radius: 10px; max-width: 720px; width: calc(100% - 40px);
	margin: 6vh 20px; max-height: 84vh; overflow: auto; box-shadow: 0 12px 40px rgba(0,0,0,.3); padding: 24px 28px; }
.sotg-help-x { position: absolute; top: 10px; right: 12px; background: none; border: none; font-size: 26px;
	line-height: 1; color: #777; cursor: pointer; padding: 4px 8px; }
.sotg-help-x:hover { color: #222; }
.sotg-help-title { margin: 0 0 4px; font-size: 22px; color: #1d6f42; }
.sotg-help-summary { margin: 0 0 16px; color: #555; font-size: 15px; }
.sotg-help-h { margin: 18px 0 6px; font-size: 16px; color: #1d2327; }
.sotg-help-body { font-size: 14px; line-height: 1.55; color: #333; }
.sotg-help-body ul, .sotg-help-body ol { margin: 6px 0 6px 20px; }
.sotg-help-body li { margin: 3px 0; }
.sotg-help-body code { background: #eef1f4; border-radius: 3px; padding: 1px 5px; font-size: 13px; }
.sotg-help-body a { color: #1d6f42; }

/* --- Native Wo55 intake form ([sotg_register]) ------------------------- */
.sotg-register { max-width: 920px; margin: 0 auto; }
.sotg-register-title { margin: 0 0 6px; }
.sotg-register-form .sotg-detail-section { max-width: none; margin: 22px 0 10px; font-size: 15px; }
.sotg-register-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.sotg-register-form input[type="text"], .sotg-register-form input[type="tel"], .sotg-register-form input[type="email"],
.sotg-register-form input[type="number"], .sotg-register-form input[type="date"], .sotg-register-form select,
.sotg-register-form textarea {
	width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid #c3c4c7;
	border-radius: 4px; font-size: 14px; font-weight: 400; line-height: 1.4; min-height: 40px;
	font-family: inherit; background: #fff; }
.sotg-register-form textarea { min-height: 58px; }
.sotg-register-form .sotg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; align-items: start; }
.sotg-register-form .sotg-grid-cell { display: flex; flex-direction: column; gap: 8px; }
.sotg-register-form .sotg-grid-cell > label { margin: 0; }
.sotg-register-form .sotg-full { display: block; margin: 12px 0; }
/* Conditional blocks — sotg-register.js toggles .sotg-cond-hidden (default visible, so no-JS loses nothing). */
.sotg-cond-hidden { display: none !important; }
.sotg-register-form .sotg-cond { margin: 0; }
/* Grouped mailing address (street + city/region + postal kept together). */
.sotg-address-group { margin: 8px 0 4px; padding: 12px 14px; background: #f3f6f9; border: 1px solid #e2e6ea; border-radius: 6px; }
.sotg-address-group .sotg-grid { margin: 0; }
.sotg-address-group .sotg-full { margin: 10px 0 0; }
.sotg-radio-group { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 4px; font-weight: 400; }
.sotg-radio { font-weight: 400; display: inline-flex; align-items: center; gap: 5px; margin: 0; }
.sotg-radio input { width: auto !important; }
.sotg-register-form .req { color: #c0392b; margin-left: 2px; }
.sotg-register-form .sotg-form-actions { margin-top: 22px; }
.sotg-register-thanks { background: #eef7f0; border: 1px solid #bfe3cb; border-radius: 8px; padding: 22px 24px; }
.sotg-register-thanks h2 { margin-top: 0; color: #1d6f42; }
.sotg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .sotg-register-form .sotg-grid { grid-template-columns: 1fr; } }

/* --- Usage / audit dashboard (Part 2 tracking) ------------------------- */
.sotg-filter-row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: flex-end; margin: 8px 0 14px; }
.sotg-filter-row label { font-size: 13px; color: #444; display: flex; flex-direction: column; gap: 3px; }
.sotg-filter-row select { min-width: 150px; }
.sotg-audit-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 4px 0 14px; }
.sotg-audit-key { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #444; }
.sotg-audit-swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sotg-audit-chart { display: flex; align-items: flex-end; gap: 10px; overflow-x: auto; padding: 8px 4px 4px; border: 1px solid #e6e6e6; border-radius: 8px; background: #fcfcfc; min-height: calc(var(--sotg-bar-h, 170px) + 56px); }
.sotg-audit-col { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 46px; flex: 0 0 auto; }
.sotg-audit-coltotal { font-size: 11px; color: #888; height: 14px; }
.sotg-audit-bars { display: flex; align-items: flex-end; gap: 2px; height: var(--sotg-bar-h, 170px); }
.sotg-audit-bar { width: 8px; border-radius: 2px 2px 0 0; background: #888; transition: opacity .15s; }
.sotg-audit-bar:hover { opacity: .75; }
.sotg-audit-xlabel { font-size: 11px; line-height: 1.2; color: #666; text-align: center; }
.sotg-audit-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; color: #fff; font-size: 11.5px; white-space: nowrap; }

/* Reports tab */
.sotg-report-h { margin: 20px 0 8px; font-size: 15px; color: #333; }
.sotg-report-cards { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 8px; }
.sotg-report-card { flex: 1 1 140px; min-width: 130px; background: #f6f8fa; border: 1px solid #e6e6e6; border-radius: 8px; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.sotg-report-cardnum { font-size: 26px; font-weight: 700; color: #1d6f42; line-height: 1.1; }
.sotg-report-cardlbl { font-size: 12.5px; color: #666; text-transform: uppercase; letter-spacing: .03em; }
.sotg-num { text-align: right; white-space: nowrap; }
.sotg-report-totalrow td { border-top: 2px solid #d8d8d8; background: #fafafa; }
