/* Z-Day San Andreas State Trooper */
:root{--sast-green:#173e30;--sast-gold:#bd9b51;--sast-ink:#17251e;--panel-surface:#fff;--layout-line:#dce4dd;color:#17251e;background:#f5f6f2}
body{background:#f5f6f2}
.login-art{background:linear-gradient(145deg,#101b15,#1e4835 65%,#496044);border:1px solid #52623c;border-top:5px solid var(--sast-gold)}
.login-art p{color:#d5dfcf}.login-eyebrow,.art-foot{color:#dfc890}.login-art .brand{position:relative;z-index:1}.login-art .brand-logo{width:85px;height:91px;padding:0;border-radius:14px}.login-art .brand span{font-size:23px}.login-art .brand small{font-size:10px;letter-spacing:.1em;opacity:1;color:#dfc890;line-height:1.6}.login-art:after{border-color:#bd9b5133;box-shadow:0 0 0 100px #bd9b5109,0 0 0 200px #bd9b5105}
.primary{background:var(--sast-green);color:#fff;box-shadow:0 4px 12px #173e301b}.primary:hover{background:#24553e}.secondary{background:#edf1e9;color:#244c38}.ghost{color:#637263}.ghost:hover{background:#edf1e9}
.sidebar{background:#fff;border-right-color:#dde3d9;border-top:4px solid var(--sast-gold)}.sidebar .brand{color:var(--sast-green);padding-left:7px}.sidebar .brand-logo{width:50px;height:55px;padding:0;background:transparent;border-radius:8px}.sidebar .brand small{letter-spacing:.1em}.nav-item.active{color:#234b36;background:#edf2e7;box-shadow:inset 3px 0 var(--sast-gold)}.nav-item:hover{background:#f3f5ed}.nav-label{color:#7b806a}.sidebar-bottom{border-top-color:#e3e7dc}.avatar,.circle,.iconbox,.event-icon,.role{background:#edf1e7;color:#35543c}
.hero-card{background:linear-gradient(110deg,#173b2c,#36563a);border:1px solid #607147;border-right:5px solid var(--sast-gold)}.hero-card .primary{background:#ddc58a;color:#172b20}.hero-card p,.hero-eyebrow{color:#dde6d4}.linkbtn,summary{color:#2e6042}.duty-bar{border-left-color:var(--sast-gold)}.eyebrow{color:#68744f}
.employee-card{display:flex;align-items:center;gap:23px;padding:24px 28px;margin-bottom:24px;background:#fcfaf2;border:1px solid #ded1aa}.employee-card .award-mark{display:grid;place-items:center;flex:none;width:64px;height:64px;border:1px solid #cfb477;background:#f4e8c6;border-radius:50%;font-size:29px;color:#75571d}.employee-card h2{font-size:24px;letter-spacing:-.04em;margin:8px 0;color:#24462d}.employee-card p{font-size:13px;margin:0 0 7px;color:#655a39;font-variant-numeric:tabular-nums}.employee-card small{color:#746d58;font-size:11px;line-height:1.5}.employee-card .eyebrow{font-size:10px;color:#82672f;letter-spacing:.12em}
.reference-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.reference-panel .panel-head{padding-bottom:15px;border-bottom:2px solid var(--sast-gold);margin-bottom:7px}.reference-panel .data-table td:first-child{width:31%;font-variant-numeric:tabular-nums}.rights-panel{margin-top:22px;border-left:4px solid var(--sast-gold)}.rights-panel h3{margin-top:9px}.rights-panel blockquote{margin:18px 0 0;font-size:15px;line-height:1.85;color:#334b3b}.reference-panel .data-table td strong{color:#2c5238}
.uniform-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.uniform-card{border-top:3px solid var(--sast-gold)}.uniform-card .uniform-rank{font-size:14px;color:#455e45}.uniform-card .uniform-description{white-space:pre-wrap;font-size:14px;line-height:1.8;color:#465347;margin-top:18px}.uniform-grid .empty{grid-column:1/-1;padding:40px 24px}.uniform-grid .empty p{margin-top:12px}.activity-settings{margin-bottom:22px}.activity-settings form{display:flex;flex-wrap:wrap;align-items:end;gap:16px;margin-top:12px}.activity-settings .field{margin:0;min-width:200px}.activity-settings p{max-width:850px}
.activity-dialog{width:min(470px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:32px;border:1px solid #bd9b51;border-top:5px solid var(--sast-gold);border-radius:20px;background:#fff;color:#17251e;box-shadow:0 28px 90px #0006}.activity-dialog::backdrop{background:#081a13b5;backdrop-filter:blur(4px)}.activity-dialog h2{font-size:29px;letter-spacing:-.04em;margin:16px 0}.activity-dialog p{font-size:14px;line-height:1.7;color:#546351}.activity-dialog .activity-countdown{padding:14px;border-radius:10px;background:#f6efda;color:#715519;font-size:21px;font-weight:750;font-variant-numeric:tabular-nums}.activity-dialog .eyebrow{font-size:10px}.activity-dialog .login-error{color:#a02f35}.activity-dialog button{margin-top:12px}
#theme-toggle{background:#183d2c;color:#efdbac;border-color:#bd9b51}:where(button,a,input,select,textarea,summary,[tabindex]):focus-visible{outline-color:#a68a42}.self-choice input{accent-color:var(--sast-green)}
html[data-theme=dark]{--panel-surface:#18221b;--layout-line:#354334;background:#0e1510;color:#e5ecdf}html[data-theme=dark] body{background:#0e1510;color:#e5ecdf}
html[data-theme=dark] .primary{background:#507b52;color:#fff}html[data-theme=dark] .primary:hover{background:#618e5e}html[data-theme=dark] .hero-card{background:linear-gradient(110deg,#193725,#334c30);border-color:#667449}html[data-theme=dark] .hero-card .primary{background:#dfc789;color:#1b3021}html[data-theme=dark] .hero-card p,html[data-theme=dark] .hero-eyebrow{color:#e0e5ce}html[data-theme=dark] .login-art{background:linear-gradient(145deg,#102015,#284531)}
html[data-theme=dark] .nav-item.active{box-shadow:inset 3px 0 var(--sast-gold);color:#e9d297}html[data-theme=dark] .employee-card{background:#28291c;border-color:#6e6136}html[data-theme=dark] .employee-card h2{color:#e7d5a4}html[data-theme=dark] .employee-card p{color:#e0d1ab}html[data-theme=dark] .employee-card small{color:#b5b59a}html[data-theme=dark] .employee-card .eyebrow{color:#dac17f}html[data-theme=dark] .award-mark{color:#e5cc88;background:#3e3c22;border-color:#887643}html[data-theme=dark] .rights-panel blockquote,html[data-theme=dark] .uniform-card .uniform-rank,html[data-theme=dark] .uniform-card .uniform-description{color:#c9d7c0}html[data-theme=dark] .reference-panel .data-table td strong{color:#dfcc92}html[data-theme=dark] .eyebrow{color:#c9b77e}html[data-theme=dark] #theme-toggle{background:#d8c38c;color:#193724}html[data-theme=dark] .activity-dialog{background:#18221b;color:#edf0e4}html[data-theme=dark] .activity-dialog p{color:#c2ceba}html[data-theme=dark] .activity-dialog .activity-countdown{background:#3c3822;color:#e9d39a}html[data-theme=dark] .activity-dialog .login-error{color:#ffc5ca}
@media(min-width:761px){.sidebar{width:248px}.nav-item{padding-top:11px;padding-bottom:11px}.sidebar .brand{padding-bottom:18px}}
@media(max-width:1000px){.reference-grid,.uniform-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.employee-card{padding:19px;gap:15px;align-items:flex-start}.employee-card .award-mark{width:40px;height:40px;font-size:22px}.employee-card h2{font-size:22px}.login-art .brand-logo{width:58px;height:64px}.login-art .brand span{font-size:19px}.activity-dialog{padding:23px}.activity-settings .field,.activity-settings button{width:100%}}
.login-art .login-eyebrow{color:#dfc890}
/* Two-column reference tables stay compact at phone and panel widths. */
.reference-panel .data-table{display:table;width:100%;table-layout:fixed}
.reference-panel .data-table thead{display:table-header-group;position:static;width:auto;height:auto;clip-path:none;white-space:normal;overflow:visible}
.reference-panel .data-table tbody{display:table-row-group}
.reference-panel .data-table tbody tr{display:table-row;padding:0;border:0;border-radius:0}
.reference-panel .data-table tbody td{display:table-cell;width:auto;padding:13px 10px;border-bottom:1px solid var(--layout-line)}
.reference-panel .data-table tbody td::before{display:none}
.reference-panel .data-table th:first-child{width:31%}
.hero-card .hero-eyebrow{color:#dfc890}

.weekly-award{align-items:flex-start}.weekly-award-copy{flex:1;min-width:0}.weekly-contender{margin-top:16px;padding-top:14px;border-top:1px solid #ded1aa}.weekly-contender strong{font-size:12px;color:#4e633e}.weekly-contender p{margin-top:8px!important}.weekly-award .panel-actions{margin-top:16px}.weekly-award .danger{font-size:12px}html[data-theme=dark] .weekly-contender{border-color:#6e6136}html[data-theme=dark] .weekly-contender strong{color:#ddd0a4}
/* Version 12: circular, hourly presence control in the duty workflow. */
.duty-bar-controls{display:flex;align-items:center;justify-content:flex-end;gap:20px;flex-wrap:wrap;min-width:0}
.activity-station{display:flex;align-items:center;gap:26px;padding:22px;margin:23px 0;border:1px solid #d7e2d2;border-radius:18px;background:#f4f7ef;min-width:0}
.activity-orb{position:relative;display:block;flex:none;width:144px;height:144px;min-width:144px;padding:0;border:0;border-radius:50%;background:#e5eee0;color:#285337;isolation:isolate;box-shadow:0 5px 16px #173e3012;touch-action:manipulation}
.activity-orb:disabled{opacity:1;cursor:default}
.activity-ring{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg);fill:none;pointer-events:none}.activity-ring circle{stroke-width:4}.ring-track{stroke:#cad8c6}.ring-value{stroke:#497e4a;stroke-linecap:round}
.orb-content{position:absolute;inset:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;pointer-events:none}.orb-symbol{font-size:25px;line-height:1;font-weight:750}.orb-time{font-size:24px;line-height:1.25;letter-spacing:-.025em;font-weight:750;font-variant-numeric:tabular-nums}.orb-label{font-size:10px;font-weight:750;letter-spacing:.02em}
.activity-copy{min-width:0;flex:1}.activity-copy strong{display:block;font-size:16px;color:#29462f}.activity-copy .activity-instruction{font-size:13px;line-height:1.65;color:#4e654c;margin:9px 0}.activity-copy small{font-size:11px;color:#67755b;line-height:1.6}.activity-copy .activity-confirm-error{color:#b53e43;font-size:12px;margin:8px 0 0}.activity-confirm-error:empty{display:none}
.activity-station[data-state=due]{background:#faf3df;border-color:#b99a4d}.activity-station[data-state=due] .activity-orb{background:#e6ca84;color:#35270d;box-shadow:0 0 0 5px #bd9b511a}.activity-station[data-state=due] .ring-track{stroke:#ccb57a}.activity-station[data-state=due] .ring-value{stroke:#725521}.activity-station[data-state=due] .activity-orb:hover{background:#edcf7e}.activity-station[data-state=due] .activity-copy strong{color:#6b4f1a}
.activity-station[data-state=off] .activity-orb{background:#e9ede6;color:#7c8778;box-shadow:none}.activity-station[data-state=off] .ring-value{stroke:#b6c1b0}.activity-station[data-state=off] .orb-symbol{font-size:22px}.activity-station[data-state=expired]{border-color:#cc7d78;background:#fff0ed}.activity-station[data-state=expired] .activity-orb{background:#f2d5d0;color:#9b3e36}
.activity-station.compact{border:0;padding:0;margin:0;background:transparent;gap:0}.compact .activity-orb{width:86px;height:86px;min-width:86px;box-shadow:none}.compact .orb-content{inset:8px;gap:1px}.compact .orb-symbol{font-size:16px}.compact .orb-time{font-size:16px}.compact .orb-label{font-size:8px}.compact .activity-copy{display:none}
html[data-theme=dark] .activity-station{background:#1b2c1e;border-color:#3c563b}html[data-theme=dark] .activity-copy strong{color:#dbe8cc}html[data-theme=dark] .activity-copy .activity-instruction{color:#c0d1b7}html[data-theme=dark] .activity-copy small{color:#aaba9d}html[data-theme=dark] .activity-orb{background:#2b482e;color:#d3eac6}html[data-theme=dark] .ring-track{stroke:#38573a}html[data-theme=dark] .ring-value{stroke:#8cbe79}html[data-theme=dark] .activity-station[data-state=due]{background:#3a321d;border-color:#aa8a3f}html[data-theme=dark] .activity-station[data-state=due] .activity-orb{background:#d8b967;color:#28230f}html[data-theme=dark] .activity-station[data-state=due] .activity-copy strong{color:#e9cf90}html[data-theme=dark] .activity-station[data-state=off] .activity-orb{background:#2a3529;color:#8e9f86}html[data-theme=dark] .activity-station[data-state=expired]{background:#3c2422;border-color:#81524b}html[data-theme=dark] .activity-station[data-state=expired] .activity-orb{background:#5b322c;color:#ffd6ca}html[data-theme=dark] .activity-station.compact{background:transparent}html[data-theme=dark] .activity-copy .activity-confirm-error{color:#ffc5ca}
@media(max-width:900px){.duty-bar-controls{width:100%;justify-content:flex-start}.duty-bar-controls .duty-actions{flex:1}}
@media(max-width:480px){.activity-station{flex-direction:column;text-align:center;padding:20px 15px;gap:16px}.activity-orb{width:148px;height:148px;min-width:148px}.activity-copy strong{font-size:15px}.activity-station.compact{flex-direction:row;flex:none;padding:0}.duty-bar-controls{align-items:flex-start;gap:14px}.duty-bar-controls .duty-actions{width:auto;flex:1}.duty-bar-controls .duty-actions button{min-width:0}}
/* One personal duty card replaces the duplicated summary and status form. */
.unified-duty{max-width:960px}.duty-person{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:23px}.duty-person h2{margin:0 0 6px;font-size:25px;letter-spacing:-.035em}.duty-person p{font-size:13px;color:#5c715b;margin:0}.duty-person small{display:block;margin-top:9px;font-size:11px;line-height:1.6;color:#74816a}.duty-person>.pill{flex:none}
.duty-time-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.duty-time-grid>div{padding:16px 18px;border:1px solid var(--layout-line);border-radius:13px;background:#f9faf6}.duty-time-grid span{display:block;font-size:11px;color:#69775e;font-weight:650}.duty-time-grid strong{display:block;margin-top:8px;font-size:24px;font-weight:750;letter-spacing:-.035em;font-variant-numeric:tabular-nums;color:#294b32}.unified-duty .duty-time-note{margin:9px 0 0;font-size:10px;color:#7b856e}.unified-duty-actions{margin-top:22px}.unified-duty .activity-station{margin:23px 0 17px}.unified-duty .duty-footnote{font-size:11px;line-height:1.7;color:#6c7c64;margin:0}
html[data-theme=dark] .duty-person p,html[data-theme=dark] .duty-person small,html[data-theme=dark] .unified-duty .duty-footnote,html[data-theme=dark] .unified-duty .duty-time-note{color:#afc0a3}html[data-theme=dark] .duty-time-grid>div{background:#19281c;border-color:#3c5038}html[data-theme=dark] .duty-time-grid strong{color:#d7e9c9}html[data-theme=dark] .duty-time-grid span{color:#b2c4a5}
@media(max-width:480px){.duty-person{flex-wrap:wrap;gap:12px}.duty-time-grid{gap:10px}.duty-time-grid>div{padding:13px 12px}.duty-time-grid strong{font-size:21px}.unified-duty-actions{margin-top:17px}.unified-duty .activity-station{margin-top:19px}}
/* Version 13: the SAST handbook, regulations and sanction catalogue. */
.handbook-source{margin-bottom:21px;padding:18px 22px}.handbook-meta{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:11px;color:#718069}.handbook-source p{margin-top:11px;font-size:12px;line-height:1.7;color:#66775d}.handbook-search{margin-top:20px}.handbook-search input{max-width:480px;flex:1 1 260px}.handbook-search select{max-width:320px;flex:1 1 230px}.handbook-search>.tiny{flex:0 1 auto}
.regulations-toc{padding:0;overflow:hidden;margin-bottom:16px}.regulations-toc>summary{padding:18px 22px;font-size:14px;font-weight:750;color:#365a3c;cursor:pointer}.regulations-toc nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:0 16px 16px}.toc-entry{display:flex;align-items:flex-start;gap:10px;padding:12px;border:0;border-radius:10px;background:#f2f5eb;color:#335239;text-align:left;font-size:12px;line-height:1.55}.toc-entry:hover{background:#e8efdc}.toc-entry span{flex:none;min-width:28px;color:#8a703a;font-weight:800}.regulation-actions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}.regulation-actions button{font-size:12px;padding:9px 13px}.regulations-list{display:grid;gap:14px}
.regulation-article{overflow:hidden;scroll-margin-top:20px}.regulation-article>summary{display:flex;align-items:center;gap:14px;list-style:none;cursor:pointer;padding:21px 23px}.regulation-article>summary::-webkit-details-marker{display:none}.regulation-article>summary::after{content:'+';flex:none;color:#8c7647;font-size:23px;font-weight:400;margin-left:auto}.regulation-article[open]>summary::after{content:'−'}.regulation-number{display:grid;place-items:center;flex:none;min-width:43px;min-height:36px;padding:7px;border-radius:10px;background:#f2e9d1;color:#765e2b;font-size:12px;font-weight:800}.regulation-article>summary>strong{font-size:15px;line-height:1.5;color:#24452e}.regulation-article>summary>.tiny{flex:none;font-size:10px}.regulation-body{padding:0 25px 24px}.regulation-subsection{padding-top:18px;border-top:1px solid var(--layout-line);margin-top:18px}.regulation-subsection:first-child{margin-top:0}.regulation-subsection h3{font-size:16px;margin:0 0 15px;color:#345d3d;line-height:1.55}.regulation-body p{font-size:14px;line-height:1.85;color:#455b46;margin:12px 0;overflow-wrap:anywhere;max-width:95ch}.regulation-body p:last-child{margin-bottom:0}mark{background:#f4df9e;color:#493711;padding:1px 2px;border-radius:3px}
.sanctions-list{display:grid;gap:21px}.sanction-note{margin-bottom:20px;font-size:12px;line-height:1.7}.sanction-category h2{font-size:21px;letter-spacing:-.035em;line-height:1.4;margin:0}.sanction-category .panel-head p{margin-top:7px;font-size:12px}.sanction-table th:first-child{width:12%}.sanction-table th:nth-child(2){width:43%}.sanction-table th:nth-child(3){width:45%}.sanction-table td{vertical-align:top}.sanction-tag{display:inline-block;border-radius:8px;padding:7px 10px;line-height:1.65;font-size:12px;font-weight:650;color:#506451;background:#eef1e8;overflow-wrap:anywhere}.sanction-tag.red{color:#9c3336;background:#fae8e6}.sanction-tag.orange{color:#8c501c;background:#faecd9}.sanction-tag.yellow,.sanction-tag.mixed{color:#7b641c;background:#f8f1d2}.sanction-tag.green{color:#2a693e;background:#e5f2e6}.sanction-tag.none{color:#53604f;background:#f5f5f1;border:1px solid #d6ddcf}.sanction-tag.missing{color:#71736b;background:#f1f2ed;border:1px dashed #b6beb0;font-weight:500}.sanction-footer{font-size:12px!important;margin-top:19px!important;line-height:1.8!important;color:#67775b!important}.handbook-footer{padding:23px 2px;font-size:12px;line-height:1.7;color:#68785c}.handbook-footer small{font-size:11px}
.guide-welcome{padding:28px 30px;margin-bottom:24px;background:linear-gradient(110deg,#183c2c,#365338);border-right:4px solid #bd9b51;color:#fff}.guide-welcome .eyebrow{color:#ddc88f}.guide-welcome h2{font-size:27px;letter-spacing:-.04em;line-height:1.25;margin:13px 0}.guide-welcome p{font-size:14px;line-height:1.8;max-width:820px;color:#d9e5d0}.guide-welcome small{display:block;margin-top:16px;font-size:12px;color:#e5d5a6;line-height:1.7}.guide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.guide-group{min-width:0}.guide-heading{display:flex;align-items:center;gap:13px;padding-bottom:18px;border-bottom:2px solid #d7bd7e}.guide-heading .iconbox{display:grid;place-items:center;width:37px;height:37px;border-radius:11px;flex:none;background:#eef3e7;color:#456642}.guide-heading h2{font-size:20px;line-height:1.4;margin:0;letter-spacing:-.035em}.guide-item{padding-top:20px}.guide-item+.guide-item{border-top:1px solid var(--layout-line);margin-top:20px}.guide-item h3{font-size:15px;margin:0 0 9px}.guide-item p{font-size:13px;color:#61745a;line-height:1.8;margin:0}.guide-item .guide-channel{font-size:11px;margin-top:14px;color:#7b806a}.guide-contact{margin-top:14px;border-radius:10px;background:#f0f4e9;padding:11px 14px;display:grid;gap:5px}.guide-contact span{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#7a8065}.guide-contact strong{font-size:13px;color:#35563b}.guide-item .panel-actions{gap:8px}.guide-item button{font-size:12px;padding:9px 12px}.guide-closing{margin-top:24px}.guide-closing h2{font-size:21px;letter-spacing:-.03em;margin:0 0 14px}.guide-closing p{font-size:13px;line-height:1.85;color:#60725b;margin:10px 0}
html[data-theme=dark] .handbook-meta,html[data-theme=dark] .handbook-source p,html[data-theme=dark] .handbook-footer,html[data-theme=dark] .guide-item p,html[data-theme=dark] .guide-closing p{color:#b5c3a9}html[data-theme=dark] .regulations-toc>summary,html[data-theme=dark] .regulation-subsection h3{color:#cfdfbd}html[data-theme=dark] .toc-entry,html[data-theme=dark] .guide-contact{background:#263a27;color:#d0dfc2}html[data-theme=dark] .toc-entry span,html[data-theme=dark] .guide-contact span{color:#d5bd7d}html[data-theme=dark] .toc-entry:hover{background:#324b30}html[data-theme=dark] .regulation-number{background:#3c3a25;color:#dfc98d}html[data-theme=dark] .regulation-article>summary>strong,html[data-theme=dark] .guide-contact strong{color:#e0e8d3}html[data-theme=dark] .regulation-body p{color:#c2cfb7}html[data-theme=dark] mark{background:#716139;color:#fff4cc}html[data-theme=dark] .sanction-tag{background:#2a3b29;color:#d2ddc7}html[data-theme=dark] .sanction-tag.red{background:#4c2a2b;color:#ffc4ba}html[data-theme=dark] .sanction-tag.orange{background:#4c3822;color:#edc394}html[data-theme=dark] .sanction-tag.yellow,html[data-theme=dark] .sanction-tag.mixed{background:#443f22;color:#e4d18d}html[data-theme=dark] .sanction-tag.green{background:#23422b;color:#b5e3b4}html[data-theme=dark] .sanction-tag.none,html[data-theme=dark] .sanction-tag.missing{background:#293329;color:#c2cbb9;border-color:#65745b}html[data-theme=dark] .guide-welcome{background:linear-gradient(110deg,#1c3320,#334b2c)}html[data-theme=dark] .guide-heading .iconbox{background:#2b4028;color:#d7e4c3}html[data-theme=dark] .sanction-footer{color:#b9c6a9!important}
@media(max-width:1050px){.guide-grid{grid-template-columns:minmax(0,1fr)}.regulation-article>summary>.tiny{display:none}}
@media(max-width:600px){.regulations-toc nav{grid-template-columns:minmax(0,1fr)}.regulation-article>summary{padding:17px;gap:10px}.regulation-article>summary>strong{font-size:14px}.regulation-body{padding:0 18px 20px}.regulation-body p{font-size:13px;line-height:1.9}.regulation-subsection h3{font-size:15px}.guide-welcome{padding:23px}.guide-welcome h2{font-size:24px}.handbook-search input,.handbook-search select{max-width:none}.handbook-meta{gap:8px}.guide-heading h2{font-size:19px}}

.guide-edit{margin-top:9px}
.cms-toolbar{margin:0 0 20px}.cms-controls{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin:15px 0}.cms-controls:empty{display:none}.cms-controls button,.cms-row-actions button{font-size:11px;padding:8px 11px}.cms-row-actions{display:flex;flex-wrap:wrap;gap:7px}.cms-controls .cms-row-actions{display:contents}.cms-toolbar .tiny{margin-top:9px}.cms-modal{width:min(760px,calc(100vw - 32px));max-width:760px}.cms-modal textarea{resize:vertical;line-height:1.65;min-height:110px;white-space:pre-wrap}.cms-modal .field small{display:block;line-height:1.6;margin-top:8px}.cms-links{border:1px solid var(--layout-line);border-radius:12px;padding:16px;margin-top:18px}.cms-links legend{font-size:12px;padding:0 6px}.cms-link{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:center;margin:12px 0}.cms-link label{display:flex;align-items:center;gap:8px;font-size:12px}.cms-link input[type=checkbox]{width:17px;height:17px;flex:none;accent-color:#315b3e}.cms-link input[type=text]{min-width:0;width:100%;font-size:12px}.cms-modal .two{align-items:start}.reference-panel .data-table td:last-child{white-space:normal}.regulation-body>.cms-controls{margin-top:0}.guide-group>.cms-controls{padding-bottom:6px;border-bottom:1px solid var(--layout-line)}@media(max-width:600px){.cms-controls{gap:7px}.cms-link{grid-template-columns:1fr}.cms-modal{padding:20px}.cms-row-actions button{padding:8px 10px}}

/* Keep every label inside the circle, including the compact duty button. */
.activity-orb .orb-content{inset:20%;min-width:0;gap:3px;text-align:center}
.activity-orb .orb-label{display:block;max-width:100%;white-space:normal;line-height:1.2;letter-spacing:0;overflow-wrap:normal}
.compact .activity-orb .orb-content{inset:20%;gap:1px}
.activity-station[data-state=off] .orb-time{display:none}
.activity-station[data-state=off] .orb-label{max-width:6ch;text-wrap:balance}

.sanction-tag.blue{background:#e2ecfa;color:#254f87}.sanction-tag.purple{background:#eee5f7;color:#6a3b89}html[data-theme=dark] .sanction-tag.blue{background:#233b54;color:#c3ddff}html[data-theme=dark] .sanction-tag.purple{background:#3c2b4b;color:#e4c7ff}.cms-check{display:flex;align-items:center;gap:9px;font-size:13px;line-height:1.5;margin:16px 0}.cms-check input[type=checkbox]{width:17px;height:17px;flex:none;accent-color:#315b3e}

.desktop-download{display:flex;gap:15px;margin-top:30px;padding:24px 0 0;border-top:1px solid #dce4d6;text-align:left}.desktop-icon{width:43px;height:43px;border-radius:12px;background:#ecf1e5;color:#46613e;display:grid;place-items:center;flex:none}.desktop-copy{min-width:0}.desktop-copy h3{margin:0 0 8px;font-size:16px;line-height:1.4;letter-spacing:-.025em;color:#254632}.desktop-copy p{font-size:12px;line-height:1.7;color:#6b7e60;margin:0 0 14px}.desktop-link{display:inline-flex;align-items:center;gap:10px;text-decoration:none;font-size:12px}.desktop-link[aria-disabled=true]{opacity:.55;cursor:default;pointer-events:none}.desktop-copy small{display:block;font-size:10px;color:#798671;line-height:1.6;margin-top:10px}.login-screen .login-box{padding-block:24px}html[data-theme=dark] .desktop-download{border-color:#3d5036}html[data-theme=dark] .desktop-icon{background:#2b4028;color:#d9c78d}html[data-theme=dark] .desktop-copy h3{color:#e3ecd9}html[data-theme=dark] .desktop-copy p,html[data-theme=dark] .desktop-copy small{color:#b7c5ad}@media(max-width:600px){.desktop-download{gap:12px;margin-top:24px;padding-top:20px}.desktop-icon{width:36px;height:36px}.desktop-copy h3{font-size:15px}}

/* Action labels stay intact. Only whole buttons may wrap on narrow cards. */
.sanction-actions .cms-row-actions > button {
  flex: 0 0 auto;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}
@container table-space (min-width: 761px) {
  .sanction-table-editable th:nth-child(2) { width: auto; }
  .sanction-table-editable th:nth-child(3) { width: 36%; }
  .sanction-table-editable th.sanction-actions { width: 1%; white-space: nowrap; }
  .sanction-actions .cms-row-actions { width: max-content; flex-wrap: nowrap; }
}

.login-support {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #dce4d6;
}
.login-support h3 { margin: 0 0 12px; font-size: 16px; }
.login-support-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.login-support .activity-dialog h2 { margin: 0 0 8px; }
.login-support .field textarea { width: 100%; resize: vertical; }
.login-support .field small { margin-top: 6px; }
.login-support [role="status"]:empty { display: none; }
html[data-theme=dark] .login-support { border-color: #3c5543; }

.login-sponsor { margin: 22px 0 0; text-align: center; font-size: 12px; }
.login-sponsor a { color: #657463; text-decoration: none; }
.login-sponsor a:hover { text-decoration: underline; }
html[data-theme=dark] .login-sponsor a { color: #b8c8ae; }
