@import url("/theme-colors.css?v=20261009");
@media screen{html{background:#203128}body:not(:has(.report)){background:#203128!important;color:#f4f7f2}}
/* Raporlama Sistemi — approved A cards / #203128 */
@media screen{
body:is(.rs-app,body:where(:has(main):not(:has(.report)))){background:#203128!important;color:#f4f7f2;margin:0;padding:0 24px 32px;font:16px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;display:block!important;min-height:100vh}
body:is(.rs-app,body:where(:has(main):not(:has(.report)))) main{box-sizing:border-box;width:100%!important;max-width:1200px!important;margin:0 auto!important;padding:28px 0!important;min-width:0}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-brand{display:flex;justify-content:space-between;align-items:center;gap:20px;max-width:1200px;margin:auto;padding:24px 0;border-bottom:1px solid #526454}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-logo{display:block;width:116px;height:64px;flex:none}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-logo svg{display:block;width:100%;height:100%;filter:brightness(0) invert(1)}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-brand-title{text-align:center;color:#d2ddd3;font-size:11px;letter-spacing:.15em;line-height:1.8}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) h1{font-size:30px;line-height:1.25;font-weight:600;letter-spacing:-.035em;margin:18px 0 12px}:is(.rs-app,body:where(:has(main):not(:has(.report)))) h2{font-size:21px;font-weight:600}:is(.rs-app,body:where(:has(main):not(:has(.report)))) h3{font-size:18px;font-weight:600}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) main>p{color:#d2ddd3}:is(.rs-app,body:where(:has(main):not(:has(.report)))) a{color:inherit;text-underline-offset:4px}:is(.rs-app,body:where(:has(main):not(:has(.report)))) nav{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0 0 18px}:is(.rs-app,body:where(:has(main):not(:has(.report)))) nav a{padding:9px 13px;border:1px solid #5b705e;border-radius:8px;text-decoration:none;min-height:44px;box-sizing:border-box;display:inline-flex;align-items:center}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) nav a:hover{background:#354b3a}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-cards{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px!important;margin:22px 0!important}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-card{display:flex!important;flex-direction:column;justify-content:center;align-items:flex-start!important;gap:8px;background:#2b4232!important;color:#f4f7f2!important;border:1px solid #526a58!important;border-radius:15px!important;padding:24px!important;text-decoration:none!important;min-height:128px;box-sizing:border-box;margin:0!important}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-card:hover{background:#354f3d!important;border-color:#a9c0ad!important}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-card strong{font-size:19px;font-weight:600}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-card small{color:#cfdbd1;font-size:13px}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-card article,:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-card p{margin:0;color:#cfdbd1}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-projects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-projects article{border:1px solid #526a58!important;background:#2b4232;padding:22px!important;border-radius:15px}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-projects article h3{margin:0 0 10px}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-projects article p{font-size:13px;margin:0;color:#cfdbd1}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-projects article a{text-decoration:none;display:block;min-height:44px}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) section{border-radius:12px;background:#f5f6f1;color:#243b2b;padding:22px;margin:20px 0;min-width:0}:is(.rs-app,body:where(:has(main):not(:has(.report)))) section p,:is(.rs-app,body:where(:has(main):not(:has(.report)))) section small{color:#49604f}:is(.rs-app,body:where(:has(main):not(:has(.report)))) section a{color:#244d32}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-site-shell{background:transparent;color:#fff;padding:0}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-site-shell>h2{color:#fff}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-site-shell>p{color:#d2ddd3}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) label{font-weight:500;font-size:14px;display:block;margin:10px 0}:is(.rs-app,body:where(:has(main):not(:has(.report)))) input,:is(.rs-app,body:where(:has(main):not(:has(.report)))) select,:is(.rs-app,body:where(:has(main):not(:has(.report)))) textarea{font:inherit;font-size:16px;color:#203128;background:#fff;border:1px solid #a6b8aa;border-radius:7px;padding:11px;box-sizing:border-box;max-width:100%;min-width:0}:is(.rs-app,body:where(:has(main):not(:has(.report)))) input:not([type=checkbox]):not([type=radio]),:is(.rs-app,body:where(:has(main):not(:has(.report)))) select,:is(.rs-app,body:where(:has(main):not(:has(.report)))) textarea{width:100%;min-height:44px}:is(.rs-app,body:where(:has(main):not(:has(.report)))) input[type=checkbox],:is(.rs-app,body:where(:has(main):not(:has(.report)))) input[type=radio]{width:19px;min-width:19px;height:19px;accent-color:#305d3e}:is(.rs-app,body:where(:has(main):not(:has(.report)))) textarea{min-height:88px}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) button,:is(.rs-app,body:where(:has(main):not(:has(.report)))) .button{width:auto;min-height:44px;font:inherit;font-weight:600;border:1px solid #a7b8a9;background:#fff;color:#203128;border-radius:8px;padding:10px 17px;cursor:pointer;margin-top:8px;text-decoration:none;box-sizing:border-box}:is(.rs-app,body:where(:has(main):not(:has(.report)))) button:hover,:is(.rs-app,body:where(:has(main):not(:has(.report)))) .button:hover{background:#e3ecdf}:is(.rs-app,body:where(:has(main):not(:has(.report)))) button:disabled{opacity:.55;cursor:not-allowed}:is(.rs-app,body:where(:has(main):not(:has(.report)))) :focus-visible{outline:3px solid #d8b87c;outline-offset:3px}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) .form-disclosure{padding:0;border:1px solid #b2bfb3;margin:0;border-radius:9px;overflow:hidden}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .form-disclosure summary{background:#e4eae0;color:#243b2b;padding:15px 18px;font-size:16px;font-weight:600;min-height:48px;box-sizing:border-box;cursor:pointer}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .form-disclosure[open]>summary{margin-bottom:18px}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .form-disclosure> :not(summary){margin-left:18px;margin-right:18px}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .form-disclosure> :last-child{margin-bottom:18px}:is(.rs-app,body:where(:has(main):not(:has(.report)))) form section:has(>.form-disclosure){padding:0}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) details:not(.form-disclosure)>summary{padding:15px;border-bottom:1px solid #526a58;cursor:pointer;min-height:48px}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .op-row{padding:18px;border-color:#aabaaa}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .entry{gap:16px;padding:16px 0}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) .mail-send-action{background:#e4c18a!important;color:#203128!important;border:1px solid #bc985c!important;border-radius:9px;font-weight:650!important}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .mail-send-action:hover{background:#f0d7ad!important}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) table{font-variant-numeric:tabular-nums}:is(.rs-app,body:where(:has(main):not(:has(.report)))) th{background:#e2e9df;color:#253a2b}:is(.rs-app,body:where(:has(main):not(:has(.report)))) section td{background:#fff}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .op-attendance-scroll{border-radius:10px}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .op-days input{padding:0;min-height:19px}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .op-days label{font-weight:400}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) .error,:is(.rs-app,body:where(:has(main):not(:has(.report)))) .op-error{background:#fff0ec;color:#8b2525;border-radius:8px;padding:14px}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .success,:is(.rs-app,body:where(:has(main):not(:has(.report)))) .op-ok{background:#e2f1e2;color:#245333;border-radius:8px;padding:14px}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .warning{background:#fff0cc;color:#695020;border-radius:8px;padding:14px}
:is(.rs-app,body:where(:has(main):not(:has(.report)))).rs-login main,:is(.rs-app,body:where(:has(main):not(:has(.report)))).rs-password main{max-width:480px!important}:is(.rs-app,body:where(:has(main):not(:has(.report)))).rs-login main>small{display:none}:is(.rs-app,body:where(:has(main):not(:has(.report)))).rs-login form button,:is(.rs-app,body:where(:has(main):not(:has(.report)))).rs-password form button{width:100%}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-account{border-top:1px solid #526454;padding-top:18px;margin-top:30px}
@media(min-width:900px){:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-cards.rs-modules{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){body:is(.rs-app,body:where(:has(main):not(:has(.report)))){padding:0 16px 24px}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-brand{padding:18px 0}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-logo{width:100px;height:55px}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-brand-title{display:none}:is(.rs-app,body:where(:has(main):not(:has(.report)))) main{padding:20px 0!important}:is(.rs-app,body:where(:has(main):not(:has(.report)))) h1{font-size:26px}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-cards,:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-projects,:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-cards.rs-modules{grid-template-columns:1fr}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-card{padding:20px!important;min-height:108px}:is(.rs-app,body:where(:has(main):not(:has(.report)))) section{padding:16px}:is(.rs-app,body:where(:has(main):not(:has(.report)))) nav{gap:8px}:is(.rs-app,body:where(:has(main):not(:has(.report)))) nav a{font-size:14px}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .op-grid{grid-template-columns:1fr}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .actions{gap:8px}}
}

/* Mineral record rows preserve the original destinations and action controls. */
@media print{
 body.rs-app.rs-daily-report{background:#fff!important;color:#000!important;padding:0!important;min-height:0!important;font-size:11pt}
 body.rs-app.rs-daily-report main{max-width:none!important;margin:0!important;padding:0!important}
 body.rs-app.rs-daily-report .no-print{display:none!important}
 body.rs-app.rs-daily-report .report,body.rs-app.rs-daily-report .report :is(section,table,thead,tbody,tr,th,td){background:#fff!important;color:#000!important;box-shadow:none!important}
 body.rs-app.rs-daily-report .report{padding:0!important;border:0!important}
 body.rs-app.rs-daily-report .report section{padding:0!important;border:0!important;border-radius:0!important;margin:10px 0!important}
}
@media screen{
 html[data-theme] body.rs-app.rs-mineral main .daily-list-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
 html[data-theme] body.rs-app.rs-mineral main .daily-period-actions{display:flex;flex-wrap:wrap;gap:8px;margin-left:auto}
 html[data-theme] body.rs-app.rs-mineral main .daily-period-actions .button{margin-left:0}
 html[data-theme] body.rs-app.rs-mineral main .rs-record-list{display:grid;gap:9px;padding:0;border:0;background:transparent;box-shadow:none}
 html[data-theme] body.rs-app.rs-mineral main .rs-record{position:relative;display:flex;flex-direction:column;justify-content:center;gap:6px;min-height:72px;padding:17px 50px 17px 20px;margin:0;box-sizing:border-box;background:var(--ft-surface)!important;color:var(--ft-ink)!important;border:1px solid var(--ft-border)!important;border-radius:4px;text-decoration:none!important;overflow-wrap:anywhere}
 html[data-theme] body.rs-app.rs-mineral main .rs-record strong{font-size:16px;font-weight:600}
 html[data-theme] body.rs-app.rs-mineral main .rs-record>span{font-size:14px;color:var(--ft-muted);line-height:1.5}
 html[data-theme] body.rs-app.rs-mineral main a.rs-record::after{content:'↗';position:absolute;right:20px;top:20px;color:var(--ft-accent);font-size:20px}
 html[data-theme] body.rs-app.rs-mineral main :is(a.rs-record:hover,a.rs-record:focus-visible,.rs-record-card:hover,.rs-record-card:focus-within){background:var(--ft-raised)!important}
 html[data-theme] body.rs-app.rs-mineral main .rs-record-card{padding:16px 20px!important;border:1px solid var(--ft-border)!important;border-radius:4px!important;background:var(--ft-surface)!important;box-shadow:none}
 html[data-theme] body.rs-app.rs-mineral main .rs-record-card>h2{margin:0 0 6px;font-family:system-ui,sans-serif;font-size:18px}
 html[data-theme] body.rs-app.rs-mineral main .rs-record-card>h2>a{display:block;min-height:32px;text-decoration:none!important;color:var(--ft-ink)}
 html[data-theme] body.rs-app.rs-mineral main .rs-record-card>p{margin:7px 0;font-size:14px;color:var(--ft-muted)}
}
@media print{.rs-brand{display:none!important}body:is(.rs-app,body:where(:has(main):not(:has(.report)))){background:white!important;color:black!important}:is(.rs-app,body:where(:has(main):not(:has(.report)))) main{max-width:none!important}}
@media screen{
body:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-brand{max-width:none;width:100%;box-sizing:border-box;display:grid;grid-template-columns:1fr auto 1fr}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-brand .rs-logo:last-child{justify-self:end}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-brand-title{grid-column:2;grid-row:1}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-brand .rs-logo:first-child{grid-column:1;grid-row:1}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-brand .rs-logo:last-child{grid-column:3;grid-row:1}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-home-nav{display:flex!important;justify-content:flex-start}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-home-nav a{display:inline-flex!important;width:auto!important;padding:9px 13px!important;border-radius:8px!important;min-height:44px}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;border-top:1px solid #526454;padding:20px 0 0;margin-top:28px;font-size:14px}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer p{margin:0;color:#d2ddd3}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer-user{text-align:right;margin-left:auto!important}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer-links{display:flex;align-items:center;gap:8px;flex-wrap:wrap}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer a{padding:8px 0}
@media(max-width:600px){:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-brand{grid-template-columns:1fr 1fr}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-brand .rs-logo:last-child{grid-column:2}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer{gap:12px;font-size:13px}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer-links{max-width:58%}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer-user{max-width:42%;overflow-wrap:anywhere}}
}
/* Dark application surfaces; PDF documents remain white. */
@media screen{
body:is(.rs-app,body:where(:has(main):not(:has(.report)))){color-scheme:dark}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) section,:is(.rs-app,body:where(:has(main):not(:has(.report)))) .op-row,:is(.rs-app,body:where(:has(main):not(:has(.report)))) fieldset,:is(.rs-app,body:where(:has(main):not(:has(.report)))) dialog,:is(.rs-app,body:where(:has(main):not(:has(.report)))) #op-leave-dialog{background:#293e30!important;color:#edf3ec!important;border-color:#617565!important}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) section p,:is(.rs-app,body:where(:has(main):not(:has(.report)))) section small,:is(.rs-app,body:where(:has(main):not(:has(.report)))) section a,:is(.rs-app,body:where(:has(main):not(:has(.report)))) section label,:is(.rs-app,body:where(:has(main):not(:has(.report)))) legend{color:#d9e4d8!important}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) input,:is(.rs-app,body:where(:has(main):not(:has(.report)))) select,:is(.rs-app,body:where(:has(main):not(:has(.report)))) textarea{background:#1b2c21!important;color:#f4f7f2!important;border-color:#6f8272!important;color-scheme:dark}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) input::placeholder,:is(.rs-app,body:where(:has(main):not(:has(.report)))) textarea::placeholder{color:#aebfaf;opacity:1}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) button,:is(.rs-app,body:where(:has(main):not(:has(.report)))) .button,:is(.rs-app,body:where(:has(main):not(:has(.report)))) .add-record{background:var(--ft-approved-bg,#395540)!important;color:var(--ft-approved-ink,#f3f7ef)!important;border-color:#849b83!important}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) button:hover,:is(.rs-app,body:where(:has(main):not(:has(.report)))) .button:hover{background:#49694f!important}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) .form-disclosure summary{background:#324c3a!important;color:#f3f7ef!important}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .form-disclosure{border-color:#637a68!important}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) th,:is(.rs-app,body:where(:has(main):not(:has(.report)))) .op-days th{background:#354e3c!important;color:#f3f7ef!important;border-color:#5b7360!important}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) td,:is(.rs-app,body:where(:has(main):not(:has(.report)))) section td,:is(.rs-app,body:where(:has(main):not(:has(.report)))) .op-days td:first-child,:is(.rs-app,body:where(:has(main):not(:has(.report)))) .op-attendance-scroll,:is(.rs-app,body:where(:has(main):not(:has(.report)))) .op-days td{background:#263c2d!important;color:#eef4ed!important;border-color:#5b7360!important}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) .op-days label,:is(.rs-app,body:where(:has(main):not(:has(.report)))) .day-choices label,:is(.rs-app,body:where(:has(main):not(:has(.report)))) .money-unit{color:#e7efe3!important}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) .op-days td:focus-within{background:#405d44!important;outline:2px solid #d8b87c;outline-offset:-2px}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) .op-bars{background:#405345}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .report-preview{background:#203128}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) .success,:is(.rs-app,body:where(:has(main):not(:has(.report)))) .op-ok{background:#294e34!important;color:#def0de!important}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .error,:is(.rs-app,body:where(:has(main):not(:has(.report)))) .op-error{background:#542f2c!important;color:#ffe5df!important}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .warning{background:#51452b!important;color:#ffedbf!important}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) .mail-send-action{background:#b69761!important;color:#17271d!important}
}
@media screen{
:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer{display:grid;grid-template-columns:1fr auto;gap:18px;padding-top:20px;align-items:center}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer-links{display:flex;gap:8px;max-width:none;flex-wrap:wrap}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer-user{display:flex;align-items:center;justify-content:flex-end;gap:12px;max-width:none;margin:0!important}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer-user form{margin:0}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer-links a,:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer-user button{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 12px!important;background:#fff!important;color:#203128!important;border:1px solid #b7c7b9;border-radius:8px;font:500 13px/1.5 system-ui;text-decoration:none;margin:0!important;white-space:nowrap}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer .rs-copyright{grid-column:1/-1;text-align:center;color:#c1cfc1;font-size:12px;margin:0;padding:10px 0 0}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-unified-nav{display:flex!important;gap:8px;flex-wrap:wrap}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-unified-nav a{width:auto!important;padding:9px 13px!important;min-height:44px}
@media(max-width:650px){:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer{grid-template-columns:1fr}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer-user{justify-content:flex-end}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer-links a,:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer-user button{min-height:44px}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer .rs-copyright{font-size:12px}}
}
@media screen{:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer-links a,:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer-user button{box-sizing:border-box;height:44px;min-height:44px;align-self:center}}

@media screen{
:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-logo img{display:block;width:100%;height:100%;object-fit:contain}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-task-tabs{display:flex;gap:4px;padding:4px;background:#17281e;border-radius:12px;width:max-content;max-width:100%;margin:20px 0}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-task-tabs a{min-height:44px;display:flex;align-items:center;justify-content:center;padding:10px 22px;border-radius:9px;text-decoration:none;box-sizing:border-box;color:#bccdbc}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-task-tabs a[aria-current=page]{background:#49634c;color:#fff;font-weight:650}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer{border:0;padding:16px;background:#293e30;border-radius:14px;gap:12px;grid-template-columns:minmax(0,1fr) auto;box-sizing:border-box}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer-user{gap:10px;min-width:0}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer-user span{overflow-wrap:anywhere;font-size:13px}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer-links a,:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer-user button{padding:8px 10px!important;border:0!important;box-shadow:none;min-width:0}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer .rs-copyright{padding:0;line-height:1.5}
@media(max-width:850px){:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer{grid-template-columns:1fr}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer-user{justify-content:space-between;width:100%;text-align:left}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer-links{width:100%}}
@media(max-width:420px){:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer{padding:12px}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer-links a{font-size:11px;padding:8px 4px!important}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-task-tabs{width:100%;box-sizing:border-box}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-task-tabs a{flex:1;padding:10px}}
}
@media screen{:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer-links{width:max-content;max-width:100%;grid-template-columns:repeat(3,132px)}@media(max-width:850px){:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer-links{width:100%;grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){body:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-brand{grid-template-columns:1fr 1fr}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-brand .rs-logo:last-child{grid-column:2!important;justify-self:end}}}

@media screen{
:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer-links a{background:transparent!important;color:#edf3ec!important}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer-links a:hover{background:#395540!important}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer .rs-copyright{margin-top:12px;padding:12px 0;border-top:1px solid #617565;border-bottom:1px solid #617565}
}

@media screen{:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer{background:transparent;border-radius:0}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer .rs-copyright{margin-left:clamp(16px,4vw,48px);margin-right:clamp(16px,4vw,48px)}}


@media screen and (max-width:850px){:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer-links{display:flex;justify-content:space-between;gap:4px}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer-links a{padding-left:0!important;padding-right:0!important}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer-user{justify-content:space-between}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer-user span{padding-left:0}}

@media screen{
:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-projects article{position:relative}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-projects article h3 a::after{content:"";position:absolute;inset:0;border-radius:15px}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-projects article:focus-within{outline:3px solid #d8b87c;outline-offset:3px}
}

@media screen{:is(.rs-app,body:where(:has(main):not(:has(.report)))) section.rs-site-shell{background:transparent!important;border:0!important;padding:0;box-shadow:none}}

@media screen{
:is(.rs-app,body:where(:has(main):not(:has(.report)))) a.rs-create-button,:is(.rs-app,body:where(:has(main):not(:has(.report)))) summary.add-record{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:44px;padding:11px 18px!important;background:var(--ft-approved-bg,#395540)!important;color:var(--ft-approved-ink,#f3f7ef)!important;border:1px solid #849b83!important;border-radius:9px;text-decoration:none;font-size:15px;font-weight:600;cursor:pointer}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) a.rs-create-button:hover,:is(.rs-app,body:where(:has(main):not(:has(.report)))) summary.add-record:hover{background:#49694f!important}
}

:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-panel-mark{display:block;grid-column:2;grid-row:1;justify-self:center;width:58px;height:64px}.rs-panel-mark svg{display:block;width:100%;height:100%}
@media(max-width:600px){body:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-brand{grid-template-columns:1fr auto 1fr;gap:12px}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-brand .rs-logo:last-child{grid-column:3!important}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-panel-mark{width:40px;height:48px}:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-brand .rs-logo{width:min(100px,25vw)}}

@media screen{:is(.rs-app,body:where(:has(main):not(:has(.report)))) .rs-footer-user button{background:transparent!important;color:#f3f7ef!important;border-color:transparent!important}}

:is(.rs-app,body:where(:has(main):not(:has(.report)))) form.rs-list-filter{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin:12px 0 20px}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) form.rs-list-filter>label{flex:1 1 160px;margin:0;min-width:0}
:is(.rs-app,body:where(:has(main):not(:has(.report)))) form.rs-list-filter>button{flex:0 0 auto;width:auto;margin:0}
.rs-list-filter>p{flex-basis:100%;order:2}

.task-actions{display:flex;justify-content:space-between;gap:12px}.rs-app .task-actions .task-done{background:#c5a26b!important;color:#203128!important}.task-actions button{min-height:40px;padding:8px 16px}

.rs-app .audit-irregular{color:#ffc2bf!important;border-left:4px solid #c34842!important}.rs-app .audit-irregular h2{color:#ffc2bf!important}
/* Local sections stay separate from ancestor navigation. */
.rs-app .rs-section-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 20px}
.rs-app .rs-section-tabs>a,.rs-app .rs-section-tabs>button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 14px!important;background:var(--ft-approved-bg,#395540)!important;color:var(--ft-approved-ink,#f3f7ef)!important;border:1px solid #849b83!important;border-radius:8px;text-decoration:none;font-size:14px;box-sizing:border-box}
.rs-app .rs-section-tabs [aria-current=page],.rs-app .rs-section-tabs [aria-selected=true]{outline:2px solid #c5a26b;outline-offset:1px}
.rs-app .task-heading-fields{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:12px}
.rs-app .task-heading-fields>label{min-width:0}
.rs-app .task-heading-fields input{width:100%;min-width:0;box-sizing:border-box}
.rs-app section.task-card{padding:12px 16px;margin:10px 0}
.rs-app .task-card h3{margin:0 0 6px;font-size:17px}
.rs-app .task-card p{margin:5px 0;font-size:14px;line-height:1.4}
.rs-app .task-completion{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px;margin:8px 0 4px}
.rs-app .task-completion>label{margin:0;flex:0 1 200px}
.rs-app .task-actions{display:flex;gap:8px;justify-content:flex-start}
.rs-app .task-actions button{width:auto;margin:0;min-height:40px;padding:8px 16px}
.rs-app .task-actions .task-done{background:#c5a26b!important;color:#203128!important}
.rs-app label.compact-photo{display:inline-flex;position:relative;align-items:center;justify-content:center;align-self:end;overflow:hidden;background:#395540;color:#f3f7ef;border:1px solid #849b83;border-radius:8px;padding:9px 12px;min-height:40px;box-sizing:border-box;cursor:pointer;margin:0;width:max-content;max-width:100%}
.rs-app .compact-photo input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0}
.rs-app .compact-photo:focus-within{outline:2px solid #c5a26b;outline-offset:2px}
.rs-app .purchase-title{display:flex;align-items:center;gap:8px;margin:0 0 10px}
.rs-app .purchase-title input{margin:0;font-size:18px;font-weight:600;min-width:0;flex:1}
.rs-app .purchase-fields{display:grid;grid-template-columns:minmax(180px,2fr) repeat(4,minmax(95px,1fr)) auto;gap:10px;align-items:end}
.rs-app .purchase-fields>label{min-width:0;margin:0}.rs-app .purchase-fields textarea{min-height:44px}
.rs-app .purchase-photos{min-width:0;max-width:200px}.rs-app .purchase-photos p{font-size:12px;overflow-wrap:anywhere}.rs-app .purchase-photos img{max-width:80px;max-height:70px;object-fit:contain}
@media(max-width:900px){.rs-app .purchase-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.rs-app .purchase-fields>label:first-child{grid-column:1/-1}.rs-app .purchase-fields>.purchase-photos{grid-column:2}}
.rs-app .purchase-fields{grid-template-columns:minmax(170px,2fr) repeat(3,minmax(85px,1fr)) minmax(220px,2fr)}
.rs-app .purchase-location{display:flex;align-items:flex-end;gap:10px;min-width:0}.rs-app .purchase-location>label{flex:1;min-width:0;margin:0}.rs-app .purchase-location>.purchase-photos{flex:0 0 auto;max-width:110px}
@media(max-width:900px){.rs-app .purchase-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.rs-app .purchase-fields>.purchase-location{grid-column:1/-1}}
.rs-app .attendance-sources{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0}.rs-app .attendance-sources fieldset{min-width:0;border:1px solid #849b83;border-radius:8px;padding:12px}.rs-app .attendance-sources label{display:flex;align-items:center;gap:8px}.rs-app .attendance-sources input{width:auto;flex:0 0 auto}@media(max-width:550px){.rs-app .attendance-sources{grid-template-columns:1fr}}

.rs-app form.page-selector{display:flex!important;flex-wrap:nowrap!important;align-items:flex-end;gap:10px}.rs-app form.page-selector>label{flex:0 1 180px;margin:0;min-width:0}.rs-app form.page-selector>button{width:auto!important;flex:0 0 auto;margin:0!important}.rs-app form.page-selector select{margin-bottom:0}
.rs-app #task-reminders{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px}.rs-app #task-reminders label{margin:0;flex:0 1 220px;min-width:0}.rs-app #task-reminders button{width:44px;height:44px;margin:0;padding:0;font-size:24px}
.rs-app .rs-shortcuts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:12px 0 20px}.rs-app .rs-shortcuts:empty{display:none}.rs-app .rs-shortcuts>a{display:flex;align-items:center;justify-content:center;height:44px;min-width:0;padding:3px 6px;box-sizing:border-box;background:#395540;color:#f3f7ef;border:1px solid #849b83;border-radius:8px;font-size:12px;text-align:center;text-decoration:none;overflow:hidden;overflow-wrap:anywhere;line-height:1.1}
.rs-app .rs-shortcut-option{display:flex;align-items:center;gap:6px;min-width:0}.rs-app .rs-shortcut-option>a{flex:1;min-width:0}.rs-app .rs-shortcut-toggle{flex:0 0 auto;width:auto!important;margin:0!important;padding:6px!important;min-height:32px;font-size:11px!important}.rs-app .rs-section-tabs .rs-shortcut-option>a,.rs-app .rs-task-tabs .rs-shortcut-option>a{display:flex;align-items:center;padding:9px 14px;background:#395540;color:#f3f7ef;border:1px solid #849b83;border-radius:8px;text-decoration:none;min-height:42px;box-sizing:border-box}.rs-app .rs-modules>.rs-shortcut-option{align-items:stretch}.rs-app .rs-modules .rs-shortcut-toggle{align-self:center;max-width:85px;white-space:normal}

/* Compact daily rows: short fields take half a normal field. */
.rs-app #daily-form .entry{grid-template-columns:repeat(12,minmax(0,1fr));gap:10px;align-items:end}
.rs-app #daily-form .entry>label{grid-column:span 4;min-width:0;margin:0}
.rs-app #daily-form :is([data-group=work],[data-group=machines],[data-group=materials]) .entry>label:has(:is([data-key=location],[data-key=quantity],[data-key=unit],[data-key=masters],[data-key=workers],[data-key=count],[data-key=hours])){grid-column:span 2}
.rs-app #daily-form .entry>label.daily-row-photo{grid-column:span 2;width:100%;min-height:44px;padding:8px;align-self:end;margin:0;font-size:13px}
.rs-app #daily-form .entry>button{grid-column:span 2;width:100%;min-height:44px;margin:0;padding:8px}
.rs-app #daily-form .entry :is(input,select,textarea){max-width:100%;min-width:0;margin-bottom:0}
.rs-app .purchase-fields{grid-template-columns:minmax(150px,4fr) repeat(3,minmax(55px,1fr)) minmax(200px,5fr);gap:8px}
.rs-app .purchase-fields>label{grid-column:auto;font-size:13px}
.rs-app .purchase-fields>.purchase-location{grid-column:auto}
.rs-app .attendance-sources details{min-width:0;border:1px solid #849b83;border-radius:8px;align-self:start}
.rs-app .attendance-sources .scope-options{padding:8px;max-height:260px;overflow:auto}.rs-app .attendance-sources summary{font-size:14px}
.rs-app .op-monthly th.attendance-fill,.rs-app .op-monthly td.attendance-fill{width:32px;min-width:32px;padding:6px 3px}
.rs-app .bulk-choices{min-width:24px;align-items:center}.rs-app .bulk-choices>button{box-sizing:border-box;width:24px;height:26px;min-height:26px;margin:0;padding:0;line-height:24px;font-size:14px}
@media(max-width:650px){.rs-app #daily-form .entry{grid-template-columns:repeat(4,minmax(0,1fr))}.rs-app #daily-form .entry>label{grid-column:span 4}.rs-app .purchase-fields{grid-template-columns:repeat(6,minmax(0,1fr))}.rs-app .purchase-fields>label{grid-column:span 2}.rs-app .purchase-fields>label:first-child,.rs-app .purchase-fields>.purchase-location{grid-column:1/-1}}

.rs-app #daily-form .entry{grid-auto-flow:row dense}

/* Keep each work item in two explicit rows; never backfill crew counts ahead of the crew. */
.rs-app #daily-form [data-group=work] .entry{grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-flow:row;gap:8px}
.rs-app #daily-form [data-group=work] .entry>label:has([data-key=description]){grid-row:1;grid-column:1 / span 6}
.rs-app #daily-form [data-group=work] .entry>label:has([data-key=location]){grid-row:1;grid-column:7 / span 2}
.rs-app #daily-form [data-group=work] .entry>label:has([data-key=quantity]){grid-row:1;grid-column:9 / span 2}
.rs-app #daily-form [data-group=work] .entry>label:has([data-key=unit]){grid-row:1;grid-column:11 / span 2}
.rs-app #daily-form [data-group=work] .entry>label:has([data-key=crew_name]){grid-row:2;grid-column:1 / span 4}
.rs-app #daily-form [data-group=work] .entry>label:has([data-key=masters]){grid-row:2;grid-column:5 / span 2}
.rs-app #daily-form [data-group=work] .entry>label:has([data-key=workers]){grid-row:2;grid-column:7 / span 2}
.rs-app #daily-form [data-group=work] .entry>label.daily-row-photo{grid-row:2;grid-column:9 / span 2}
.rs-app #daily-form [data-group=work] .entry>button{grid-row:2;grid-column:11 / span 2}
.rs-app .cash-budget .op-scroll table{min-width:480px}.rs-app .cash-budget [data-budget-total]{font-variant-numeric:tabular-nums;white-space:nowrap}
@media(max-width:650px){.rs-app #daily-form [data-group=work] .entry>label{font-size:12px;overflow-wrap:anywhere}.rs-app #daily-form [data-group=work] .entry>button,.rs-app #daily-form [data-group=work] .entry>label.daily-row-photo{padding:4px;font-size:11px;overflow-wrap:anywhere}.rs-app #daily-form [data-group=work] .entry input{padding:6px 3px}}

.finance-list-heading{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.finance-list-heading h2{margin:0;margin-right:auto}

/* Compact home search and persistent weekly navigation. */
.rs-app .home-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 16px}
.rs-app .home-heading h1{margin:0;flex:0 0 auto}
.rs-app .home-heading .home-search{display:flex;align-items:center;gap:6px;width:260px;max-width:55%;margin:0;padding:0;border:0;background:none;min-width:0}
.rs-app .home-search input{width:20ch;min-width:0;flex:1;margin:0;padding:8px;font-size:14px}
.rs-app .home-search button{width:auto;min-width:0;margin:0;padding:8px 10px;font-size:14px}
.rs-app .weekly-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.rs-app .weekly-tabs>a{min-width:0;text-align:center}
.rs-app .weekly-tabs>a[aria-current=page]{background:#537555!important;font-weight:700}
@media(max-width:480px){.rs-app .home-heading h1{font-size:23px}.rs-app .home-heading .home-search{max-width:60%;width:220px}.rs-app .weekly-tabs>a{font-size:12px;padding:8px 5px!important}}

/* Keep error labels readable against the dark application palette. */
@media screen{
 .rs-app main .finance-overdue{border:2px solid #e45555!important}
 .rs-app main .field-invalid{background:#542f2c!important;color:#ffe5df!important;outline-color:#e45555!important}
 .rs-app main .field-invalid :is(label,th,h2,h3,p,small){color:#ffe5df!important}
 .rs-app main .field-error-text{color:#ffb5ac!important}
}

#payment-undo-warning{max-width:520px;padding:24px;border:1px solid #849b83;border-radius:12px;background:#293e30;color:#f3f7ef}#payment-undo-warning::backdrop{background:rgba(0,0,0,.75)}

/* Personal appearance: normal retains the existing palette. Screen-only: printed reports stay unchanged. */
@media screen{
html[data-theme=light]{background:#f3f5f1}
html[data-theme=light] body.rs-app{background:#f3f5f1!important;color:#203128;color-scheme:light}
html[data-theme=light] .rs-app .rs-brand{background:#203128;border-radius:0 0 16px 16px;padding-left:20px;padding-right:20px;box-sizing:border-box}
html[data-theme=light] .rs-app main :is(p,small,legend,label,h1,h2,h3){color:#304b38}
html[data-theme=light] .rs-app main :is(section,.op-row,fieldset,dialog,#op-leave-dialog){background:#fff!important;color:#203128!important;border-color:#b5c4b7!important}
html[data-theme=light] .rs-app main section :is(p,small,a,label),html[data-theme=light] .rs-app main legend{color:#304b38!important}
html[data-theme=light] .rs-app main :is(input,select,textarea){background:#fff!important;color:#203128!important;border-color:#7e9584!important;color-scheme:light}
html[data-theme=light] .rs-app main :is(input,textarea)::placeholder{color:#5c7263}
html[data-theme=light] .rs-app main :is(.rs-card,.rs-projects article){background:#fff!important;color:#203128!important;border-color:#b5c4b7!important}
html[data-theme=light] .rs-app main .rs-card:hover{background:#e8eee6!important}
html[data-theme=light] .rs-app main .rs-card :is(small,p){color:#506957!important}
html[data-theme=light] .rs-app main :is(.rs-site-shell,.rs-site-shell>h2,.rs-site-shell>p){color:#203128!important}
html[data-theme=light] .rs-app main :is(th,.op-days th){background:#e0e9dd!important;color:#203128!important;border-color:#b5c4b7!important}
html[data-theme=light] .rs-app main :is(td,section td,.op-days td:first-child,.op-days td,.op-attendance-scroll){background:#fff!important;color:#203128!important;border-color:#b5c4b7!important}
html[data-theme=light] .rs-app main :is(.op-days label,.day-choices label,.money-unit){color:#203128!important}
html[data-theme=light] .rs-app main .op-days td:focus-within{background:#e5eedf!important}
html[data-theme=light] .rs-app main .form-disclosure summary{background:#e0e9dd!important;color:#203128!important}
html[data-theme=light] .rs-app main nav a:hover{background:#dce7d8}
html[data-theme=light] .rs-app main :is(.rs-section-tabs,.rs-task-tabs) a{color:#f3f7ef!important}
html[data-theme=light] .rs-app main .rs-section-tabs a:hover{background:#49694f!important}
html[data-theme=light] .rs-app main .rs-footer :is(a,button,p){color:#304b38!important}
html[data-theme=light] .rs-app main .rs-footer :is(a,button):hover{background:#dce7d8!important}
html[data-theme=light] .rs-app main :is(.error,.op-error,.field-invalid){background:#fff0ec!important;color:#872720!important}
html[data-theme=light] .rs-app main .field-invalid :is(label,th,h2,h3,p,small),html[data-theme=light] .rs-app main .field-error-text,html[data-theme=light] .rs-app main .audit-irregular,html[data-theme=light] .rs-app main .audit-irregular h2{color:#872720!important}
html[data-theme=light] .rs-app main :is(.success,.op-ok){background:#e1f0df!important;color:#245333!important}
html[data-theme=light] .rs-app main .warning{background:#fff0cc!important;color:#695020!important}
html[data-theme=light] .rs-app main label.compact-photo{color:#f3f7ef}
html[data-theme=light] .rs-app #payment-undo-warning{background:#fff;color:#203128}
html[data-theme=light] .rs-app main .report-preview{background:#e0e9dd}
}
@media screen{
html[data-theme=light] .rs-app main a.rs-create-button,html[data-theme=light] .rs-app main .rs-shortcuts>a,html[data-theme=light] .rs-app main .rs-section-tabs a,html[data-theme=light] .rs-app main label.daily-row-photo{color:#f3f7ef!important}
html[data-theme=light] .rs-app main a.mail-send-action{color:#17271d!important}
}

/* Home appearance switch and the existing logo as a home link. */
@media screen{
.rs-app .rs-home-title{display:flex;align-items:center;gap:16px;flex:0 0 auto}.rs-app .rs-home-title h1{margin:0}
.rs-app button.rs-theme-switch{position:relative;display:inline-flex;align-items:center;justify-content:space-around;flex:0 0 96px;width:96px;height:44px;min-height:44px;padding:4px!important;margin:0!important;border-radius:999px;border:1px solid #849b83!important;background:#182b21!important;color:#dbe8d5!important;box-shadow:inset 0 2px 5px #0003;isolation:isolate}
.rs-app .rs-theme-switch svg{position:relative;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;z-index:1;pointer-events:none}
.rs-app .rs-theme-switch .rs-theme-thumb{position:absolute;left:4px;top:4px;width:42px;height:34px;border-radius:999px;background:#dbe8d5;box-shadow:0 2px 7px #0003;transition:transform .22s cubic-bezier(.2,.8,.2,1);pointer-events:none}
.rs-app .rs-theme-switch[aria-checked=false] .rs-theme-moon{color:#203128}.rs-app .rs-theme-switch[aria-checked=true] .rs-theme-thumb{transform:translateX(44px)}.rs-app .rs-theme-switch[aria-checked=true] .rs-theme-sun{color:#203128}
.rs-app a.rs-panel-mark{text-decoration:none;cursor:pointer;border-radius:8px;background:transparent!important;border:0;box-shadow:none;padding:0}.rs-app a.rs-panel-mark:hover{opacity:.85}
html[data-theme=light] .rs-app .rs-brand{background:#dce7d8;border-color:#b5cbb0}
html[data-theme=light] .rs-app .rs-brand .rs-logo{filter:brightness(0) saturate(100%);opacity:.78}
html[data-theme=light] .rs-app .rs-panel-mark path:not([fill="#c5a26b"]){fill:#304b38}
html[data-theme=light] .rs-app main :is(button,.button,.add-record,a.rs-create-button,summary.add-record,.rs-shortcuts>a,.rs-section-tabs>a,.rs-section-tabs>button,.rs-task-tabs>a,.cash-tabs>a,label.daily-row-photo,label.compact-photo){background:#dce7d8!important;color:#203128!important;border-color:#adc3a6!important}
html[data-theme=light] .rs-app main :is(button,.button,a.rs-create-button,.rs-shortcuts>a,.rs-section-tabs>a,.rs-task-tabs>a,.cash-tabs>a):hover{background:#cbdcc4!important;color:#203128!important}
html[data-theme=light] .rs-app main :is(.cash-tabs a[aria-current=page],.rs-section-tabs [aria-current=page]){background:#c1d7b9!important;border-color:#65875b!important}
html[data-theme=light] .rs-app button.rs-theme-switch{background:#cbdcc4!important;color:#536c4c!important}
html[data-theme=light] .rs-app .rs-theme-thumb{background:#fffdf3;box-shadow:0 2px 6px #304b3833}
@media(max-width:650px){.rs-app .home-heading{flex-wrap:wrap}.rs-app .home-heading .home-search{max-width:100%;width:100%}.rs-app .rs-home-title{gap:12px}.rs-app .rs-home-title h1{font-size:26px}}
@media(prefers-reduced-motion:reduce){.rs-app .rs-theme-thumb{transition:none}}
}

/* Initial document paint waits for the synchronous theme choice and deferred layout. */
@media screen{html.rs-theme-pending body{visibility:hidden!important}html[data-theme=light]{background:#f3f5f1}html[data-theme=normal]{background:#203128}}

/* Narrow cover screens: keep controls readable instead of shrinking their text. */
@media screen and (max-width:420px){
 .rs-app .rs-footer-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%}
 .rs-app .rs-footer-links a{display:flex;align-items:center;justify-content:center;min-height:44px;font-size:14px;padding:8px!important;text-align:center;white-space:normal}
 .rs-app .rs-shortcuts{grid-template-columns:repeat(5,minmax(116px,1fr));overflow-x:auto;overscroll-behavior-x:contain;padding-bottom:8px}
 .rs-app .rs-shortcuts>a{font-size:14px;line-height:1.3;min-height:48px;height:auto;padding:8px}
 .rs-app .rs-shortcut-toggle{font-size:13px!important;min-height:44px}
 .rs-app .rs-section-tabs{gap:8px}
 .rs-app .rs-section-tabs>a,.rs-app .rs-section-tabs>button{font-size:15px;min-height:44px;white-space:normal;overflow-wrap:anywhere}
 .rs-app .weekly-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
 .rs-app .weekly-tabs>a{font-size:15px;padding:10px!important}
 .rs-app .weekly-tabs>a:last-child{grid-column:1/-1}
 .rs-app #daily-form [data-group=work] .entry{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
 .rs-app #daily-form [data-group=work] .entry>label,.rs-app #daily-form [data-group=work] .entry>button{grid-row:auto!important;grid-column:span 2!important;font-size:14px!important;padding:8px}
 .rs-app #daily-form [data-group=work] .entry>label:has(:is([data-key=description],[data-key=crew_name])){grid-column:1/-1!important}
 .rs-app #daily-form [data-group=work] .entry input{padding:11px}
 .rs-app .purchase-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .rs-app .purchase-fields>label{grid-column:auto;font-size:14px}
 .rs-app .purchase-fields>label:first-child,.rs-app .purchase-fields>.purchase-location{grid-column:1/-1}
 .rs-app .purchase-location{flex-wrap:wrap}
 .rs-app .purchase-location>label{flex-basis:100%}
 .rs-app main :is(article,h1,h2,h3,p,summary){overflow-wrap:anywhere}
}

/* Mineral: shared presentation tokens. Business status colors retain their meaning. */
@media screen{
 html{background:var(--ft-bg)}
 html[data-theme=light]{background:var(--ft-bg)}
 html[data-theme=normal]{background:var(--ft-bg)}
 html[data-theme] body.rs-app.rs-mineral{background:var(--ft-bg)!important;color:var(--ft-ink);padding:0 34px 24px;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
 html[data-theme] body.rs-app.rs-mineral main{padding:30px 0!important;max-width:1200px!important}
 html[data-theme] body.rs-app.rs-mineral .rs-brand{max-width:1200px;margin:auto;background:transparent;border-radius:0;padding:24px 0;border-color:var(--ft-border)}
 html[data-theme] body.rs-app.rs-mineral .rs-logo{width:104px;height:54px}
 html[data-theme] body.rs-app.rs-mineral .rs-panel-mark{width:46px;height:52px}
 html[data-theme] body.rs-app.rs-mineral main h1{font:400 36px/1.15 Georgia,"Times New Roman",serif;letter-spacing:-.04em;color:var(--ft-ink);margin:18px 0 24px}
 html[data-theme] body.rs-app.rs-mineral main :is(h2,h3,legend,label){color:var(--ft-ink);font-weight:600}
 html[data-theme] body.rs-app.rs-mineral main h2{font-size:20px;letter-spacing:-.02em}
 html[data-theme] body.rs-app.rs-mineral main h3{font-size:17px}
 html[data-theme] body.rs-app.rs-mineral main :is(p,small){color:var(--ft-muted)}
 html[data-theme] body.rs-app.rs-mineral main :is(section,.op-row,fieldset,dialog,#op-leave-dialog,.cash-panel,.cash-choice,.cash-lock-status,.task-calendar,.report-preview,.report-mail-preview){background:var(--ft-surface)!important;color:var(--ft-ink)!important;border-color:var(--ft-border)!important;border-radius:4px;box-shadow:none}
 html[data-theme] body.rs-app.rs-mineral main :is(section p,section small,section a,section label,legend,.money-unit,.op-days label,.day-choices label){color:var(--ft-muted)!important}
 html[data-theme] body.rs-app.rs-mineral main :is(section h2,section h3,section strong){color:var(--ft-ink)}
 html[data-theme] body.rs-app.rs-mineral main section.rs-site-shell{background:transparent!important;color:var(--ft-ink)!important}
 html[data-theme] body.rs-app.rs-mineral main .rs-site-shell>:is(h2,p){color:var(--ft-ink)!important}
 html[data-theme] body.rs-app.rs-mineral main :is(input,select,textarea){background:var(--ft-bg)!important;color:var(--ft-ink)!important;border-color:var(--ft-border)!important;border-radius:3px}
 html[data-theme] body.rs-app.rs-mineral main :is(input,textarea)::placeholder{color:var(--ft-muted);opacity:1}
 html[data-theme] body.rs-app.rs-mineral main :is(input[type=checkbox],input[type=radio]){accent-color:var(--ft-accent)}
 html[data-theme] body.rs-app.rs-mineral main :is(button,.button,.add-record,a.rs-create-button,summary.add-record){background:var(--ft-action)!important;color:var(--ft-action-ink)!important;border:1px solid var(--ft-action)!important;border-radius:3px;box-shadow:none;font-size:14px;font-weight:600}
 html[data-theme] body.rs-app.rs-mineral main :is(button,.button,a.rs-create-button,summary.add-record):hover{filter:brightness(.96);background:var(--ft-action)!important;color:var(--ft-action-ink)!important}
 html[data-theme] body.rs-app.rs-mineral main :is(.rs-card,.rs-projects article,.project-two-columns>section){background:var(--ft-surface)!important;color:var(--ft-ink)!important;border:1px solid var(--ft-border)!important;border-radius:4px!important;box-shadow:none}
 html[data-theme] body.rs-app.rs-mineral main .rs-card{padding:24px!important;min-height:130px;gap:10px;position:relative}
 html[data-theme] body.rs-app.rs-mineral main .rs-card:hover{background:var(--ft-raised)!important;border-color:var(--ft-accent)!important}
 html[data-theme] body.rs-app.rs-mineral main .rs-card strong{font:400 24px/1.2 Georgia,"Times New Roman",serif;letter-spacing:-.03em}
 html[data-theme] body.rs-app.rs-mineral main .rs-card :is(small,p){color:var(--ft-muted)!important;line-height:1.6}
 html[data-theme] body.rs-app.rs-mineral main .rs-card:after{content:'↗';position:absolute;right:20px;top:17px;font-size:18px;color:var(--ft-muted)}
 html[data-theme] body.rs-app.rs-mineral main .rs-projects article p{color:var(--ft-muted)}
 html[data-theme] body.rs-app.rs-mineral main :is(.rs-section-tabs,.rs-task-tabs,.cash-tabs,.weekly-tabs){background:transparent;border-radius:0;padding:0;border-bottom:1px solid var(--ft-border);gap:6px}
 html[data-theme] body.rs-app.rs-mineral main :is(.rs-section-tabs>a,.rs-section-tabs>button,.rs-task-tabs>a,.cash-tabs>a){background:transparent!important;color:var(--ft-muted)!important;border:0!important;border-bottom:2px solid transparent!important;border-radius:0;padding:11px 14px!important;outline:0;box-shadow:none;min-height:44px}
 html[data-theme] body.rs-app.rs-mineral main :is(.rs-section-tabs [aria-current=page],.rs-section-tabs [aria-selected=true],.rs-task-tabs [aria-current=page],.cash-tabs [aria-current=page]){color:var(--ft-ink)!important;border-bottom-color:var(--ft-accent)!important;outline:0;font-weight:600}
 html[data-theme] body.rs-app.rs-mineral main :is(.rs-section-tabs>a,.rs-section-tabs>button,.rs-task-tabs>a,.cash-tabs>a):hover{background:var(--ft-raised)!important;color:var(--ft-ink)!important;filter:none}
 html[data-theme] body.rs-app.rs-mineral main :is(th,.op-days th){background:var(--ft-raised)!important;color:var(--ft-ink)!important;border-color:var(--ft-border)!important}
 html[data-theme] body.rs-app.rs-mineral main :is(td,section td,.op-days td,.op-attendance-scroll){background:var(--ft-surface)!important;color:var(--ft-ink)!important;border-color:var(--ft-border)!important}
 html[data-theme] body.rs-app.rs-mineral main :is(.form-disclosure,.attendance-sources details,.firm-multiselect){border-color:var(--ft-border)!important;border-radius:4px;background:var(--ft-surface)}
 html[data-theme] body.rs-app.rs-mineral main .form-disclosure summary{background:var(--ft-raised)!important;color:var(--ft-ink)!important}
 html[data-theme] body.rs-app.rs-mineral main :is(label.compact-photo,label.daily-row-photo){background:var(--ft-raised)!important;color:var(--ft-ink)!important;border-color:var(--ft-border)!important;border-radius:3px}
 html[data-theme] body.rs-app.rs-mineral main .rs-shortcut-toggle{background:transparent!important;color:var(--ft-muted)!important;border-color:var(--ft-border)!important;font-family:system-ui;font-weight:500;letter-spacing:0;font-size:13px!important;padding:9px 12px!important;min-height:44px}
 html[data-theme] body.rs-app.rs-mineral main .rs-shortcuts{gap:0;border-top:1px solid var(--ft-border);border-bottom:1px solid var(--ft-border);margin:30px 0 6px}
 html[data-theme] body.rs-app.rs-mineral main .rs-shortcuts>a{background:transparent!important;color:var(--ft-ink)!important;border:0;border-right:1px solid var(--ft-border);border-radius:0;font-size:14px;height:48px}
 html[data-theme] body.rs-app.rs-mineral main .rs-shortcuts>a:last-child{border-right:0}
 html[data-theme] body.rs-app.rs-mineral main .rs-shortcuts>a:hover{background:var(--ft-raised)!important}
 html[data-theme] body.rs-app.rs-mineral main :is(.rs-breadcrumbs,.rs-return-links){display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 22px;color:var(--ft-muted);font-size:13px}
 html[data-theme] body.rs-app.rs-mineral main :is(.rs-breadcrumbs,.rs-return-links) a{background:transparent!important;color:var(--ft-muted)!important;border:0;border-radius:0;padding:4px 0!important;min-height:32px;text-decoration:none}
 html[data-theme] body.rs-app.rs-mineral main .rs-breadcrumbs a:hover{color:var(--ft-ink)!important;text-decoration:underline}
 html[data-theme] body.rs-app.rs-mineral main .rs-crumb-current{color:var(--ft-ink);overflow-wrap:anywhere}
 html[data-theme] body.rs-app.rs-mineral main .rs-crumb-separator{color:var(--ft-accent)}
 html[data-theme] body.rs-app.rs-mineral main .rs-footer{background:transparent;border-top:1px solid var(--ft-border);padding:22px 0 0;margin-top:34px;border-radius:0;font-size:13px}
 html[data-theme] body.rs-app.rs-mineral main .rs-footer-links{display:flex;width:auto;gap:18px;flex-wrap:wrap}
 html[data-theme] body.rs-app.rs-mineral main .rs-footer :is(a,button,p){background:transparent!important;color:var(--ft-muted)!important;border:0!important;font-weight:400}
 html[data-theme] body.rs-app.rs-mineral main .rs-footer :is(a,button):hover{color:var(--ft-ink)!important;background:transparent!important}
 html[data-theme] body.rs-app.rs-mineral main .rs-footer-user span{color:var(--ft-muted)}
 html[data-theme] body.rs-app.rs-mineral main .rs-footer .rs-copyright{margin:6px 0 0;padding:14px 0 0;text-align:left;border:0;border-top:1px solid var(--ft-border);font-size:11px}
 html[data-theme] body.rs-app.rs-mineral main button.rs-theme-switch,html[data-theme] body.rs-app.rs-mineral main button.task-view-switch{background:var(--ft-bg)!important;color:var(--ft-muted)!important;border:1px solid var(--ft-border)!important;border-radius:999px;filter:none}
 html[data-theme] body.rs-app.rs-mineral main :is(.rs-theme-thumb,.task-view-thumb){background:#d7decc}
 html[data-theme] body.rs-app.rs-mineral main .home-heading{display:block}
 html[data-theme] body.rs-app.rs-mineral main .rs-home-title{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:18px}
 html[data-theme] body.rs-app.rs-mineral main .rs-home-layout{display:grid;grid-template-columns:minmax(230px,.7fr) minmax(0,1.7fr);align-items:start;gap:36px;margin:12px 0 0}
 html[data-theme] body.rs-app.rs-mineral main .rs-home-intro{min-width:0}
 html[data-theme] body.rs-app.rs-mineral main .rs-home-eyebrow{font-size:11px;font-weight:600;letter-spacing:.16em;margin:8px 0 22px}
 html[data-theme] body.rs-app.rs-mineral main.rs-mineral-home h1{font-size:58px;max-width:200px;margin:0;line-height:1.04}
 html[data-theme] body.rs-app.rs-mineral main.rs-mineral-home .rs-home-title{align-items:flex-start}
 html[data-theme] body.rs-app.rs-mineral main.rs-mineral-home .rs-theme-switch{margin-top:6px!important;flex-basis:96px}
 html[data-theme] body.rs-app.rs-mineral main.rs-mineral-home .home-search{display:flex;align-items:center;width:100%;max-width:100%;gap:6px;margin:24px 0 0}
 html[data-theme] body.rs-app.rs-mineral main.rs-mineral-home .home-search input{padding:10px;min-width:0;flex:1}
 html[data-theme] body.rs-app.rs-mineral main.rs-mineral-home .home-search button{margin:0;padding:10px}
 html[data-theme] body.rs-app.rs-mineral main .rs-home-intro>p:last-child{max-width:220px;font-size:14px;line-height:1.7;margin:24px 0}
 html[data-theme] body.rs-app.rs-mineral main.rs-mineral-home .rs-cards{margin:0!important;gap:14px!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html[data-theme] body.rs-app.rs-mineral main.rs-mineral-home .rs-card{min-height:220px;justify-content:flex-start;padding:23px!important}
 html[data-theme] body.rs-app.rs-mineral main .rs-card-category{color:var(--ft-muted);font-size:11px;letter-spacing:.1em;margin-bottom:12px}
 html[data-theme] body.rs-app.rs-mineral main.rs-mineral-home .rs-card strong{max-width:200px}
 html[data-theme] body.rs-app.rs-mineral main.rs-mineral-home .rs-card small{max-width:210px;font-size:14px}
 html[data-theme] body.rs-app.rs-mineral main .rs-home-layout>.rs-shortcuts{grid-column:1/-1;margin-top:0}
 html[data-theme] body.rs-app.rs-mineral main .task-calendar{--calendar-surface:var(--ft-surface);--calendar-border:var(--ft-border);--calendar-muted:var(--ft-muted);background:var(--ft-bg)!important}
 html[data-theme] body.rs-app.rs-mineral main .task-calendar-weekday{background:var(--ft-raised);color:var(--ft-muted)!important}
 html[data-theme] body.rs-app.rs-mineral main .task-calendar-day.is-outside{background:var(--ft-bg)!important}
 html[data-theme] body.rs-app.rs-mineral main a.task-calendar-event{background:var(--ft-bg)!important;color:var(--ft-ink)!important;border-radius:3px}
 html[data-theme] body.rs-app.rs-mineral main .task-calendar :is(.task-calendar-scroll,.task-calendar-arrow,.task-calendar-today){border-radius:3px}
 html[data-theme] body.rs-app.rs-mineral main .task-people{border-color:var(--ft-border);background:var(--ft-surface)}
 html[data-theme] body.rs-app.rs-mineral main .op-days td:focus-within{background:var(--ft-raised)!important;outline-color:var(--ft-accent)}
 html[data-theme] body.rs-app.rs-mineral main .project-status-filter button[aria-pressed=true]{background:var(--ft-raised)!important;color:var(--ft-ink)!important;border-color:var(--ft-accent)!important;box-shadow:inset 0 -2px 0 var(--ft-accent)}
 html[data-theme] body.rs-app.rs-mineral main .inventory-primary-actions>:is(a,span){border-color:var(--ft-border);border-radius:3px}
 /* Preserve existing state colors, white report canvases and the success tick. */
 html[data-theme] body.rs-app.rs-mineral main .payment-table .payment-approved>td{background:var(--ft-approved-bg,#395540)!important;color:var(--ft-approved-ink,#f3f7ef)!important}
 html[data-theme] body.rs-app.rs-mineral main .payment-table .payment-pending>td{background:var(--ft-pending-bg,#746442)!important;color:var(--ft-pending-ink,#f3f7ef)!important}
 html[data-theme] body.rs-app.rs-mineral main .payment-table .payment-paid>td{background:var(--ft-paid-bg,#365f80)!important;color:var(--ft-paid-ink,#f3f7ef)!important}
 html[data-theme] body.rs-app.rs-mineral main .payment-table tr :is(p,label){color:inherit!important}
 html[data-theme] body.rs-app.rs-mineral main :is(.inventory-building table tbody tr td.inventory-sold,table tbody tr.inventory-sold>td,.inventory-legend span.inventory-sold){background:var(--ft-rejected-bg,#714b4b)!important;color:var(--ft-rejected-ink,#f3f7ef)!important}
 html[data-theme] body.rs-app.rs-mineral main :is(.inventory-building table tbody tr td.inventory-available,table tbody tr.inventory-available>td,.inventory-legend span.inventory-available){background:var(--ft-approved-bg,#395540)!important;color:var(--ft-approved-ink,#f3f7ef)!important}
 html[data-theme] body.rs-app.rs-mineral main :is(.inventory-building table tbody tr td.inventory-option,table tbody tr.inventory-option>td,.inventory-legend span.inventory-option){background:var(--ft-option-bg,#425c70)!important;color:var(--ft-option-ink,#f3f7ef)!important}
 html[data-theme] body.rs-app.rs-mineral main :is(.inventory-building table tbody tr td.inventory-deposit,table tbody tr.inventory-deposit>td,.inventory-legend span.inventory-deposit){background:var(--ft-pending-bg,#746442)!important;color:var(--ft-pending-ink,#f3f7ef)!important}
 html[data-theme] body.rs-app.rs-mineral main .inventory-building :is(th,td):last-child{background:transparent!important}
 html[data-theme] body.rs-app.rs-mineral main :is(.cash-preview,.report-preview iframe){background:white}
 html[data-theme] body.rs-app.rs-mineral main :focus-visible{outline:2px solid var(--ft-accent);outline-offset:3px}
 html[data-theme] body.rs-app.rs-mineral main :is(.error,.op-error,.field-invalid){background:#542f2c!important;color:#ffe5df!important}
 html[data-theme] body.rs-app.rs-mineral main .field-invalid :is(label,th,h2,h3,p,small),html[data-theme] body.rs-app.rs-mineral main .field-error-text{color:#ffe5df!important}
 html[data-theme] body.rs-app.rs-mineral main :is(.success,.op-ok){background:#294e34!important;color:#def0de!important}
 html[data-theme] body.rs-app.rs-mineral main .warning{background:#51452b!important;color:#ffedbf!important}
 html[data-theme=light] body.rs-app.rs-mineral main :is(.error,.op-error,.field-invalid){background:#fff0ec!important;color:#872720!important}
 html[data-theme=light] body.rs-app.rs-mineral main .field-invalid :is(label,th,h2,h3,p,small),html[data-theme=light] body.rs-app.rs-mineral main .field-error-text{color:#872720!important}
 html[data-theme=light] body.rs-app.rs-mineral main :is(.success,.op-ok){background:#e1f0df!important;color:#245333!important}
 html[data-theme=light] body.rs-app.rs-mineral main .warning{background:#fff0cc!important;color:#695020!important}
 html[data-theme=light] body.rs-app.rs-mineral .rs-brand{background:transparent;border-color:var(--ft-border);padding-left:0;padding-right:0}
}
@media screen and (max-width:760px){
 html[data-theme] body.rs-app.rs-mineral{padding:0 20px 20px}
 html[data-theme] body.rs-app.rs-mineral main .rs-home-layout{grid-template-columns:1fr;gap:22px}
 html[data-theme] body.rs-app.rs-mineral main .rs-home-intro>p:last-child{max-width:none;margin:14px 0 0}
 html[data-theme] body.rs-app.rs-mineral main.rs-mineral-home h1{font-size:44px;max-width:none}
 html[data-theme] body.rs-app.rs-mineral main.rs-mineral-home .rs-home-title{align-items:center}
 html[data-theme] body.rs-app.rs-mineral main.rs-mineral-home .rs-card{min-height:176px;padding:20px!important}
 html[data-theme] body.rs-app.rs-mineral main .rs-breadcrumbs :is(a,.rs-crumb-current){font-size:13px;min-height:44px;display:inline-flex;align-items:center}
 html[data-theme] body.rs-app.rs-mineral main .rs-footer-links{gap:12px}
}
@media screen and (max-width:420px){
 html[data-theme] body.rs-app.rs-mineral{padding:0 17px 20px}
 html[data-theme] body.rs-app.rs-mineral main{padding:22px 0!important}
 html[data-theme] body.rs-app.rs-mineral .rs-brand{padding:18px 0;gap:10px}
 html[data-theme] body.rs-app.rs-mineral .rs-brand .rs-logo{width:76px;height:40px}
 html[data-theme] body.rs-app.rs-mineral .rs-panel-mark{width:34px;height:42px}
 html[data-theme] body.rs-app.rs-mineral main h1{font-size:31px}
 html[data-theme] body.rs-app.rs-mineral main.rs-mineral-home h1{font-size:42px}
 html[data-theme] body.rs-app.rs-mineral main.rs-mineral-home .rs-card{padding:17px 13px!important;min-height:170px}
 html[data-theme] body.rs-app.rs-mineral main.rs-mineral-home .rs-card strong{font-size:21px}
 html[data-theme] body.rs-app.rs-mineral main.rs-mineral-home .rs-card small{font-size:13px}
 html[data-theme] body.rs-app.rs-mineral main .rs-card:after{right:11px;top:11px;font-size:14px}
 html[data-theme] body.rs-app.rs-mineral main .rs-footer-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
 html[data-theme] body.rs-app.rs-mineral main .rs-footer-links a{white-space:normal;justify-content:flex-start;font-size:14px;min-height:44px}
 html[data-theme] body.rs-app.rs-mineral main .rs-shortcuts{grid-template-columns:repeat(5,minmax(116px,1fr));overflow-x:auto}
 html[data-theme] body.rs-app.rs-mineral main .rs-section-tabs>a,html[data-theme] body.rs-app.rs-mineral main .rs-section-tabs>button{font-size:15px}
}
@media screen{html[data-theme] body.rs-app.rs-mineral main section#site-shell.rs-site-shell{background:transparent!important;border:0!important;padding:0!important}html[data-theme] body.rs-app.rs-mineral main .crew-list-row{display:flex;align-items:center;flex-wrap:wrap;gap:12px 24px;padding:12px 0;border-bottom:1px solid var(--ft-border)}html[data-theme] body.rs-app.rs-mineral main .crew-list-row>a:first-child{flex:1;min-width:0;overflow-wrap:anywhere}html[data-theme] body.rs-app.rs-mineral main .crew-edit-action{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 14px;border:1px solid var(--ft-border);border-radius:3px;text-decoration:none}html[data-theme] body.rs-app.rs-mineral main .crew-edit-action:hover{background:var(--ft-raised)}}

/* Components outside main (dialogs), nested state text, and screen report frames. */
@media screen {
 html[data-theme] body.rs-app.rs-mineral :is(dialog,#op-leave-dialog) {
  background:var(--ft-surface)!important;color:var(--ft-ink)!important;border-color:var(--ft-border)!important;
 }
 html[data-theme] body.rs-app.rs-mineral dialog :is(h2,h3,p,small,label,legend) {color:var(--ft-ink)!important}
 html[data-theme] body.rs-app.rs-mineral dialog :is(input,select,textarea) {background:var(--ft-bg)!important;color:var(--ft-ink)!important;border-color:var(--ft-border)!important}
 html[data-theme] body.rs-app.rs-mineral dialog button {background:var(--ft-action)!important;color:var(--ft-action-ink)!important;border-color:var(--ft-action)!important}
 html[data-theme] body.rs-app.rs-mineral main .finance-overdue {background:var(--ft-error-bg)!important;color:var(--ft-error-ink)!important}
 html[data-theme] body.rs-app.rs-mineral main :is(.error,.op-error,.field-invalid,.finance-overdue) :is(p,small,label,legend,h2,h3,a,strong) {color:var(--ft-error-ink)!important}
 html[data-theme] body.rs-app.rs-mineral main :is(.warning,.payment-early-confirm) {background:var(--ft-warning-bg)!important;color:var(--ft-warning-ink)!important;border-color:var(--ft-accent)!important}
 html[data-theme] body.rs-app.rs-mineral main :is(.warning,.payment-early-confirm) :is(p,small,label,legend,h2,h3,a,strong) {color:var(--ft-warning-ink)!important}
 html[data-theme] body.rs-app.rs-mineral main :is(.success,.op-ok) :is(p,small,label,h2,h3,a,strong) {color:var(--ft-success-ink)!important}
 html[data-theme] body.rs-app.rs-mineral main .payment-table :is(.payment-approved,.payment-pending,.payment-paid,.payment-rejected) :is(p,label,small,a) {color:inherit!important}
 html[data-theme] body.rs-app.rs-mineral main .payment-table .payment-row-error {color:var(--ft-rejected-ink,#f3f7ef)!important}
 html[data-theme] body.rs-app.rs-mineral main .unit-card.available {background:var(--ft-approved-bg)!important;color:var(--ft-approved-ink)!important}
 html[data-theme] body.rs-app.rs-mineral main .unit-card.sold {background:var(--ft-rejected-bg)!important;color:var(--ft-rejected-ink)!important}
 html[data-theme] body.rs-app.rs-mineral main .unit-card.option {background:var(--ft-option-bg)!important;color:var(--ft-option-ink)!important}
 html[data-theme] body.rs-app.rs-mineral main .unit-card.deposit {background:var(--ft-pending-bg)!important;color:var(--ft-pending-ink)!important}
 html[data-theme] body.rs-app.rs-mineral main :is(.inventory-sold,.inventory-available,.inventory-option,.inventory-deposit,.unit-card) :is(p,small,label,span,strong,a) {color:inherit!important}
 html[data-theme] body.rs-app.rs-mineral main #task-calendar.task-calendar {background:var(--ft-bg)!important}
 html[data-theme] body.rs-app.rs-mineral.rs-daily-report main .report {background:var(--ft-surface)!important;color:var(--ft-ink)!important}
 html[data-theme] body:not(.rs-app):has(.report) {background:var(--ft-bg)!important;color:var(--ft-ink)!important}
 html[data-theme] body:not(.rs-app):has(.report) main>:is(h1,h2,p,label) {color:var(--ft-ink)}
 html[data-theme] body:not(.rs-app):has(.report) main>nav {display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:12px 0}
 html[data-theme] body:not(.rs-app):has(.report) main>:is(nav,.report-actions,.actions)>a {color:var(--ft-ink);background:var(--ft-surface);border:1px solid var(--ft-border);padding:10px 14px;border-radius:3px;text-decoration:none}
 html[data-theme] body:not(.rs-app):has(.report) main>form :is(input,select,textarea) {background:var(--ft-bg);color:var(--ft-ink);border-color:var(--ft-border)}
 html[data-theme] body:not(.rs-app):has(.report) main>form button {background:var(--ft-action);color:var(--ft-action-ink);border-color:var(--ft-border)}
}
