/* Build 37: field layout, with one scoped charcoal palette. */
:root{color-scheme:dark;--bg:#101214;--panel:#191d20;--line:#30373b;--muted:#aab4b9;--green:#9bdfbd;--red:#ffb5ad}
html{background:var(--bg);-webkit-text-size-adjust:100%}
body{background:var(--bg);color:#f3f5f6}
body header{padding:16px 24px;align-items:center;border-color:#252b2f}
body .brand{font-size:13px;letter-spacing:.08em;min-width:0}
body .brand small{font-size:9px;color:var(--muted)}
body .brand img{width:34px;height:34px}
body main{padding:16px 24px 40px;max-width:1120px}
body #status{font-size:12px;line-height:1.5;margin:0 0 16px;min-height:18px;color:var(--muted)}
body #status.error{color:var(--red)}
body :is(button,a.primary){background:#20262a;border:1px solid var(--line);color:#edf2f4;border-radius:10px;min-height:44px;padding:10px 14px;font-size:14px;line-height:1.35}
body :is(button,a.primary):hover{border-color:#62756b}
body .primary{background:var(--green)!important;color:#10271c!important;border-color:var(--green)!important}
body :is(input,select,textarea){background:#191e22;border:1px solid var(--line);color:#f3f5f6;border-radius:10px;min-width:0;max-width:100%;font-size:16px;min-height:46px;padding:10px 12px}
body label{font-size:12px;color:var(--muted)}
body .jobbar{grid-template-columns:minmax(0,1fr) minmax(0,170px);gap:12px;background:transparent;align-items:end}
body .jobbar label{min-width:0;margin:0}
body .jobbar :is(input,select){width:100%;height:46px;min-width:0;max-width:100%;box-sizing:border-box}
body input[type=date]{appearance:none;-webkit-appearance:none;display:block;text-align:left}
body input[type=date]::-webkit-date-and-time-value{min-width:0;text-align:left}
body .tabs{display:grid;grid-template-columns:1fr 1.35fr 1fr 1fr;gap:0;position:relative;background:transparent;border-bottom:1px solid var(--line);margin:16px 0 24px;padding:0}
body .tabs>button,body .tabs>.field-menu>summary{border:0;border-radius:0;background:transparent;color:var(--muted);font-size:14px;font-weight:600;min-height:48px;padding:10px 6px;white-space:nowrap}
body .tabs>button[aria-current=page]{background:transparent;color:var(--green);box-shadow:inset 0 -2px var(--green)}
body .field-menu{position:relative;background:transparent;margin:0;border:0;padding:0}
body .field-menu>summary{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;font-size:13px;cursor:pointer;list-style:none;border-radius:10px;padding:10px 12px;background:#1a1f22;color:#dfe7e9;border:1px solid var(--line)}
body .field-menu>summary::-webkit-details-marker{display:none}
body .field-menu>summary::after{content:"⌄";font-size:13px}
body .field-menu[open]>summary{color:var(--green)}
body .field-menu:has([aria-current=page])>summary{color:var(--green);box-shadow:inset 0 -2px var(--green)}
body .field-menu .menu-items{position:absolute;right:0;top:calc(100% + 7px);z-index:20;display:flex;flex-direction:column;gap:4px;min-width:205px;max-width:calc(100vw - 32px);padding:8px;background:#1d2327;border:1px solid #3b454b;border-radius:13px;box-shadow:0 12px 32px #0007}
body .field-menu .menu-items :is(a,button){display:flex;width:100%;justify-content:flex-start;align-items:center;text-align:left;min-height:44px;padding:10px 12px;font-size:14px;border:0;border-radius:7px;background:transparent;color:#edf2f4;text-decoration:none;gap:8px}
body .field-menu .menu-items :is(a,button):hover{background:#2a3238}
body .field-menu .menu-items [aria-current=page]{color:var(--green);background:#25352e}
body .field-menu .menu-items [hidden]{display:none}
body .eyebrow{color:var(--muted);font-size:10px;letter-spacing:.1em}
body #screen>h1{font-size:28px;letter-spacing:-.035em;line-height:1.15;margin:8px 0}
body #screen>h2{font-size:18px;margin:24px 0 12px}
body #screen>p.muted{font-size:14px;margin:0 0 18px}
body .primary-workflow{display:grid;grid-template-columns:1.2fr 1fr;gap:10px;margin:18px 0}
body .primary-workflow button{min-width:0;min-height:48px;padding:12px 10px;font-size:14px;line-height:1.35}
body .primary-workflow button:first-child{background:var(--green);color:#10271c;border-color:var(--green);font-weight:700}
body :is(.panel,.card){background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:18px;box-shadow:none}
body .day-overview{margin:18px 0}
body .day-overview h2{font-size:17px;margin:5px 0 16px;letter-spacing:-.02em}
body .day-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
body .day-metrics strong{font-size:22px;line-height:1.2;font-weight:650}
body .day-metrics span{font-size:12px;line-height:1.4;margin-top:5px;color:var(--muted)}
body .day-overview>p.muted{font-size:11px;line-height:1.5;margin:16px 0 0;padding-top:12px;border-top:1px solid #2c3337}
body .shortcut-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:16px 0}
body .shortcut-grid button{min-height:48px;flex-direction:row;font-size:13px;padding:12px 8px;background:#171c1f}
body .secondary-tools{background:transparent;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:18px 0;padding:0}
body .secondary-tools summary{background:transparent;font-size:14px;padding:14px 2px;color:#dce4e7}
body .secondary-tools .actions{margin:0;padding:0 0 14px}
body .badge{background:#243a2f;color:var(--green);font-size:10px}
body .empty{background:#171d20;border-color:#38434a}
body dialog{background:#191e22;border:1px solid #3b454a;border-radius:18px;color:#f3f5f6;padding:20px;max-height:calc(100dvh - 40px)}
body dialog .actions{background:#191e22;bottom:-20px}
body .dialog-title h2{font-size:22px}
body .metric{background:transparent}
body footer{font-size:12px;margin-top:28px}
@media(max-width:700px){
body header{padding:14px 16px;gap:12px}
body main{padding:12px 16px calc(24px + env(safe-area-inset-bottom))}
body .jobbar{grid-template-columns:minmax(0,1fr) minmax(0,144px);gap:10px}
body .tabs{margin:14px 0 20px}
body .tabs>button,body .tabs>.field-menu>summary{font-size:12px}
body .day-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px}
body .day-metrics strong{font-size:20px}
body .shortcut-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body .panel,body .card{padding:16px}
body #screen>h1{font-size:26px}
body .primary-workflow{gap:8px}
body .primary-workflow button{font-size:13px}
body .allocation{grid-template-columns:minmax(0,1fr) minmax(0,84px) auto}
body .allocation>*,body .review-row>*,body .row>*{min-width:0}
body .review-row{flex-wrap:wrap}
body dialog{padding:18px;width:calc(100% - 24px)}
body dialog .actions{bottom:-18px}
}
@media(max-width:350px){body .jobbar{grid-template-columns:1fr}body .primary-workflow{grid-template-columns:1fr}}

body select{appearance:none;-webkit-appearance:none;padding-right:34px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3 5 4 4 4-4' fill='none' stroke='%23bcc8cf' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}

