/* Field glass: app-owned light surfaces only. Dark authentication and photo
   surfaces keep their established styles. Repeated cards use a translucent
   fill; live blur is reserved for larger-screen navigation and modal backdrops. */
body[data-daysteer-theme="field-glass"] {
 --ds-glass-ink:#173c36;
 --ds-glass-muted:#4c6d63;
 --ds-glass-accent:#008b7b;
 --ds-glass-line:#ffffffdc;
 --ds-glass-surface:linear-gradient(145deg,#ffffffed,#f5fffcdb);
 --ds-glass-inset:inset 0 1px 0 #ffffff;
 --ds-glass-shadow:0 10px 28px #285d4b0c;
 background-color:#edf6f2;
 background-image:radial-gradient(ellipse 700px 800px at 100% 10%,#b7e3d17a,transparent 75%),radial-gradient(ellipse 850px 900px at 0 68%,#c4e4e866,transparent 75%),linear-gradient(140deg,#f1f8f5,#e8f3ee);
 color:var(--ds-glass-ink);
}
body[data-daysteer-theme="field-glass"] :is(.sidebar,.topbar,#mobile-nav) {
 background:#fafffce8;
 border-color:#c5dcd2;
}
body[data-daysteer-theme="field-glass"] .sidebar {
 box-shadow:1px 0 0 #ffffffb3,10px 0 30px #244c3504;
}
body[data-daysteer-theme="field-glass"] .sidebar>.brand {
 width:100%;max-width:205px;height:64px;margin:0 0 23px;flex-shrink:0;background:transparent;border-radius:0;
}
body[data-daysteer-theme="field-glass"] .sidebar>.brand img {
 width:100%;height:100%;object-fit:contain;object-position:left top;
}
/* Header owns viewport-fixed Quick menu controls. A backdrop filter here
   would create a new containing block and strand the tab above the screen. */
body[data-daysteer-theme="field-glass"] #mobile-nav {
 background:#f8fffbde;
 -webkit-backdrop-filter:blur(12px);
 backdrop-filter:blur(12px);
}
body[data-daysteer-theme="field-glass"] .topbar {
 border-bottom:2px solid #b9d3c9;
 box-shadow:0 2px 0 #ffffffa6,0 5px 14px #173c3608;
}
body[data-daysteer-theme="field-glass"] :is(.workspace-control,.mobile-workspace,.date-controls input,.date-controls .icon-button,.date-controls .secondary,.date-controls button,.crew-workload,.workspace-setup-banner) {
 background:#fbfffdc9;
 border-color:var(--ds-glass-line);
 box-shadow:var(--ds-glass-inset),0 3px 12px #285d4b07;
}
body[data-daysteer-theme="field-glass"] :is(.stop-card,.entity-card,.side-panel,.settings-list,.recap-panel,.recap-metric,.recap-visit,.schedule-stop) {
 background:var(--ds-glass-surface);
 border-color:var(--ds-glass-line);
 box-shadow:var(--ds-glass-inset),var(--ds-glass-shadow);
}
body[data-daysteer-theme="field-glass"] :is(.stop-card,.entity-card,.side-panel,.settings-list,.recap-panel,.recap-metric) {border-radius:20px;}
body[data-daysteer-theme="field-glass"] .stop-card>.job-checklist {
 border-color:#e2efe7;
 background:#f5fcf7d9;
 border-radius:17px;
}
body[data-daysteer-theme="field-glass"] :is(.stop-detail,.entity-detail) {
 background:#f4fbf6a3;
 border-color:#d8e7de;
}
body[data-daysteer-theme="field-glass"] .metric:not(:first-child) {
 background:var(--ds-glass-surface);
 border-color:var(--ds-glass-line);
 border-radius:20px;
 box-shadow:var(--ds-glass-inset),var(--ds-glass-shadow);
}
/* The existing dark progress card and report overview are intentionally kept. */
body[data-daysteer-theme="field-glass"] .schedule-day {
 background:#deeee67d;
 border-color:#f7fffa;
 border-radius:19px;
}
body[data-daysteer-theme="field-glass"] :is(.workspace-shell,.sidebar) :is(.filter,.crew-filter,.date-controls button,.secondary):not(.danger):not(.active):not([aria-pressed="true"]) {
 background:#fbfffded;
 border-color:#c7ddd2;
 color:#275e4e;
 box-shadow:inset 0 1px 0 #fff;
}
body[data-daysteer-theme="field-glass"] :is(.workspace-shell,.sidebar) .primary {
 background:linear-gradient(140deg,#009b87,#007f71);
 border-color:#008c7a;
 box-shadow:inset 0 1px 0 #ffffff45,0 4px 10px #008c7a13;
 color:#fff;
}
body[data-daysteer-theme="field-glass"] .settings-group .settings-row {
 background:transparent;
 border-color:#d9e9df;
}
body[data-daysteer-theme="field-glass"] :is(.crew-summary,.history-row,.recap-crew,.recap-section-intro) {border-color:#d2e4d9;}
body[data-daysteer-theme="field-glass"] :is(.recap-empty,.recap-loading) {
 background:#f6fcf9ad;
 border-color:#d7e8de;
}
body[data-daysteer-theme="field-glass"] :is(.recap-calendar input,.recap-calendar button) {border-color:#c8ddd1;}

/* A generic selector covers dynamically created dialogs as well as #editor's
   property, visit, company, team, archive, subscription and confirmation forms.
   New dark dialogs can opt out with data-theme="dark" or data-dark-theme. */
body[data-daysteer-theme="field-glass"] dialog:not(#account-dialog,#device-pin-dialog,#sign-in-methods-dialog,.recap-photo-viewer,[data-theme="dark"],[data-dark-theme]) {
 color-scheme:light;
 color:var(--ds-glass-ink);
 background:linear-gradient(145deg,#fdfffcf7,#edf8f2f5 66%,#e9f6f3f5);
 border:1px solid #ffffff;
 border-radius:26px;
 box-shadow:inset 0 1px 0 #ffffff,0 28px 85px #143c3633,0 4px 16px #143c3614;
}
body[data-daysteer-theme="field-glass"] dialog:not(#account-dialog,#device-pin-dialog,#sign-in-methods-dialog,.recap-photo-viewer,[data-theme="dark"],[data-dark-theme])::backdrop {
 background:#173c364f;
 -webkit-backdrop-filter:blur(7px);
 backdrop-filter:blur(7px);
}
body[data-daysteer-theme="field-glass"] dialog:not(#account-dialog,#device-pin-dialog,#sign-in-methods-dialog,.recap-photo-viewer,[data-theme="dark"],[data-dark-theme]) :is(.dialog-top,.support-top,.unified-job-heading) {
 border-color:#d0e4d7;
}
body[data-daysteer-theme="field-glass"] dialog:not(#account-dialog,#device-pin-dialog,#sign-in-methods-dialog,.recap-photo-viewer,[data-theme="dark"],[data-dark-theme]) .support-top {
 background:#f5fcf8;
}
body[data-daysteer-theme="field-glass"] dialog:not(#account-dialog,#device-pin-dialog,#sign-in-methods-dialog,.recap-photo-viewer,[data-theme="dark"],[data-dark-theme]) :is(.dialog-top h2,.support-top h2,.unified-job-heading h2) {
 color:#163d32;
 letter-spacing:-.5px;
 line-height:1.25;
}
body[data-daysteer-theme="field-glass"] dialog:not(#account-dialog,#device-pin-dialog,#sign-in-methods-dialog,.recap-photo-viewer,[data-theme="dark"],[data-dark-theme]) :is(.dialog-copy,.unified-job-meta,.tour-count) {color:#486b5d;}
body[data-daysteer-theme="field-glass"] dialog:not(#account-dialog,#device-pin-dialog,#sign-in-methods-dialog,.recap-photo-viewer,[data-theme="dark"],[data-dark-theme]) :is(input,select,textarea):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="hidden"]) {
 color:#173f33;
 background:#ffffffed;
 border:1px solid #bdd7c8;
 border-radius:12px;
 box-shadow:inset 0 1px 2px #204b3204,0 1px 0 #fff;
 min-height:46px;
 max-width:100%;
}
body[data-daysteer-theme="field-glass"] dialog:not(#account-dialog,#device-pin-dialog,#sign-in-methods-dialog,.recap-photo-viewer,[data-theme="dark"],[data-dark-theme]) input[type="file"]::file-selector-button {
 margin-right:10px;
 padding:8px 12px;
 color:#225c48;
 background:#e6f3ec;
 border:1px solid #c7dfd0;
 border-radius:9px;
 font:inherit;
}
body[data-daysteer-theme="field-glass"] dialog:not(#account-dialog,#device-pin-dialog,#sign-in-methods-dialog,.recap-photo-viewer,[data-theme="dark"],[data-dark-theme]) :is(input[type="checkbox"],input[type="radio"],progress) {accent-color:#008b79;}
body[data-daysteer-theme="field-glass"] dialog:not(#account-dialog,#device-pin-dialog,#sign-in-methods-dialog,.recap-photo-viewer,[data-theme="dark"],[data-dark-theme]) :is(.dispatch-card,.tool-card,.speed-check-row,.equipment-booking,.unified-job-services,.support-guide,.side-panel,.planning-options,.guide-briefing,.guide-photo,.daily-crew-summary,.settings-row,fieldset) {
 background:#ffffffba;
 border-color:#e0eee5;
 border-radius:16px;
 box-shadow:inset 0 1px 0 #fff;
}
body[data-daysteer-theme="field-glass"] dialog:not(#account-dialog,#device-pin-dialog,#sign-in-methods-dialog,.recap-photo-viewer,[data-theme="dark"],[data-dark-theme]) :is(#dispatch-dialog form,#work-tools-dialog form) {
 background:#e8f4ecaa;
 border:1px solid #e0eee5;
 border-radius:17px;
}
body[data-daysteer-theme="field-glass"] dialog:not(#account-dialog,#device-pin-dialog,#sign-in-methods-dialog,.recap-photo-viewer,[data-theme="dark"],[data-dark-theme]) .dialog-actions {
 background:#f5fcf7;
 border-color:#d2e5d9;
}
body[data-daysteer-theme="field-glass"] dialog:not(#account-dialog,#device-pin-dialog,#sign-in-methods-dialog,.recap-photo-viewer,[data-theme="dark"],[data-dark-theme]) button:where(:not(.primary):not(.danger):not(.active):not([aria-current="page"]):not([aria-selected="true"]):not([aria-pressed="true"])) {
 color:#245e49;
 background:#fcfffd;
 border:1px solid #bfd9ca;
 border-radius:12px;
 min-height:44px;
 box-shadow:inset 0 1px 0 white,0 2px 4px #143c3605;
}
body[data-daysteer-theme="field-glass"] dialog:not(#account-dialog,#device-pin-dialog,#sign-in-methods-dialog,.recap-photo-viewer,[data-theme="dark"],[data-dark-theme]) :is(.icon-button,.support-close,[data-close-job-photo]) {
 min-width:44px;
 height:44px;
 border-radius:50%;
 display:inline-grid;
 place-items:center;
 padding:0;
}
body[data-daysteer-theme="field-glass"] dialog:not(#account-dialog,#device-pin-dialog,#sign-in-methods-dialog,.recap-photo-viewer,[data-theme="dark"],[data-dark-theme]) :is(.primary,button[aria-current="page"],button[aria-selected="true"],button[aria-pressed="true"]) {
 background:linear-gradient(140deg,#009885,#007d6d);
 color:#fff;
 border:1px solid #008572;
 border-radius:12px;
 min-height:46px;
 box-shadow:inset 0 1px 0 #ffffff40,0 4px 10px #008c7a14;
}
body[data-daysteer-theme="field-glass"] dialog:not(#account-dialog,#device-pin-dialog,#sign-in-methods-dialog,.recap-photo-viewer,[data-theme="dark"],[data-dark-theme]) :is(button,input,select,textarea,a):focus-visible {
 outline:3px solid #008d77;
 outline-offset:3px;
}
body[data-daysteer-theme="field-glass"] dialog:not(#account-dialog,#device-pin-dialog,#sign-in-methods-dialog,.recap-photo-viewer,[data-theme="dark"],[data-dark-theme]) button:active:not(:disabled) {
 background:#e0f1e7;
 color:#104b36;
 box-shadow:inset 0 1px 3px #1b5e3c13;
}
body[data-daysteer-theme="field-glass"] dialog:not(#account-dialog,#device-pin-dialog,#sign-in-methods-dialog,.recap-photo-viewer,[data-theme="dark"],[data-dark-theme]) button:disabled {
 opacity:.5;
 cursor:not-allowed;
 transform:none;
 box-shadow:none;
}
body[data-daysteer-theme="field-glass"] dialog:not(#account-dialog,#device-pin-dialog,#sign-in-methods-dialog,.recap-photo-viewer,[data-theme="dark"],[data-dark-theme]) :is(.is-error,.guide-error,.recap-error) {
 color:#8b382d;
 background:#fff1eb;
 border-color:#eac2b6;
 border-radius:13px;
}
body[data-daysteer-theme="field-glass"] dialog:not(#account-dialog,#device-pin-dialog,#sign-in-methods-dialog,.recap-photo-viewer,[data-theme="dark"],[data-dark-theme]) [aria-invalid="true"] {border-color:#bd6959;}
@media(hover:hover) {
 body[data-daysteer-theme="field-glass"] dialog:not(#account-dialog,#device-pin-dialog,#sign-in-methods-dialog,.recap-photo-viewer,[data-theme="dark"],[data-dark-theme]) button:hover:not(:disabled) {filter:brightness(.975);}
 body[data-daysteer-theme="field-glass"] .settings-group .settings-row:hover {background:#edf8f1;}
}
@media(max-width:720px) {
 /* A fixed blurred bar resamples the moving job list underneath on every
    scroll. Keep the same pale surface on phones without that GPU work. */
 body[data-daysteer-theme="field-glass"] #mobile-nav {background:linear-gradient(145deg,#f8fffc,#edf7f2);backdrop-filter:none;-webkit-backdrop-filter:none;}
 /* Mobile dialogs retain their frosted fill, border and dimmed background.
    Avoid a full-screen live blur, including stacked export/help dialogs. */
 body[data-daysteer-theme="field-glass"] dialog:not(#account-dialog,#device-pin-dialog,#sign-in-methods-dialog,.recap-photo-viewer,[data-theme="dark"],[data-dark-theme])::backdrop {backdrop-filter:none;-webkit-backdrop-filter:none;}
 body[data-daysteer-theme="field-glass"] dialog:not(#account-dialog,#device-pin-dialog,#sign-in-methods-dialog,.recap-photo-viewer,[data-theme="dark"],[data-dark-theme]) {border-radius:23px;}
 body[data-daysteer-theme="field-glass"] dialog:not(#account-dialog,#device-pin-dialog,#sign-in-methods-dialog,.recap-photo-viewer,[data-theme="dark"],[data-dark-theme]) :is(input,select,textarea) {font-size:16px;}
}
@media(prefers-reduced-transparency:reduce) {
 body[data-daysteer-theme="field-glass"] {--ds-glass-surface:#f7fcf9;}
 body[data-daysteer-theme="field-glass"] :is(.topbar,#mobile-nav) {background:#f7fcf9;backdrop-filter:none;-webkit-backdrop-filter:none;}
 body[data-daysteer-theme="field-glass"] dialog:not(#account-dialog,#device-pin-dialog,#sign-in-methods-dialog,.recap-photo-viewer,[data-theme="dark"],[data-dark-theme]) {background:#f5fcf7;}
 body[data-daysteer-theme="field-glass"] dialog:not(#account-dialog,#device-pin-dialog,#sign-in-methods-dialog,.recap-photo-viewer,[data-theme="dark"],[data-dark-theme])::backdrop {backdrop-filter:none;-webkit-backdrop-filter:none;}
}
@media(prefers-reduced-motion:reduce) {
 body[data-daysteer-theme="field-glass"] dialog:not(#account-dialog,#device-pin-dialog,#sign-in-methods-dialog,.recap-photo-viewer,[data-theme="dark"],[data-dark-theme]) button {transition:none;}
}
@media print {body[data-daysteer-theme="field-glass"] {background:#fff;}}
