:root {
  color-scheme: light;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: #261b34;
  background: #f8f6fb;
  font-synthesis: none;
  --ink: #261b34;
  --muted: #665a73;
  --purple: #683ab0;
  --dark: #20162d;
  --line: #e7e0ef;
  --lilac: #f0e8fb;
  --white: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #ae82ef; outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
svg { flex: none; vertical-align: middle; }
.loading { padding: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; line-height: 1; }
.brand strong { display: block; font-size: 1.62rem; letter-spacing: -.065em; font-weight: 800; }
.brand strong span { color: #a67aef; }
.brand small { display: block; font-weight: 700; font-size: .7rem; margin-top: .38rem; letter-spacing: .13em; opacity: .8; }
.mark { color: #f8efff; background: #6f47ac; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; }
.mark svg { width: 27px; height: 27px; }
.login-shell { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; min-height: 100svh; }
.login-art {
  position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: flex-start;
  justify-content: space-between; overflow: hidden; min-height: 35rem;
  padding: clamp(1.5rem, 4vw, 4.25rem); color: #fff;
  background: #493459;
}
.login-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 52% 60%; z-index: -2; }
.login-art::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(15deg, #2c173be8, transparent 42%), linear-gradient(154deg, #2916378f, transparent 36%);
}
.login-art .brand { padding: .58rem .9rem .58rem .58rem; border: 1px solid #ffffff50; border-radius: 17px; background: #271b39d9; box-shadow: 0 6px 24px #2d174433; }
.login-art .brand small { opacity: 1; }
.login-logo { display: block; width: clamp(153px, 22vw, 306px); height: auto; align-self: flex-start; filter: drop-shadow(0 15px 25px #1a082e8c); }
.login-panel { position: relative; display: grid; align-items: center; justify-items: center; padding: 4.5rem 2.25rem; background: radial-gradient(ellipse at 96% 5%, #f0e8fa, #fbf9fe 46%, #f9f7fc); }
.login-card { width: min(100%, 425px); }
.section-icon, .metric-icon { display: inline-grid; place-items: center; width: 49px; height: 49px; color: var(--purple); background: var(--lilac); border-radius: 15px; }
.login-card h1 { margin-top: 1.15rem; font-size: clamp(2.35rem, 4.2vw, 3.65rem); font-weight: 790; line-height: 1.06; letter-spacing: -.065em; }
.login-card > p { color: var(--muted); font-size: 1.05rem; line-height: 1.55; margin-top: .95rem; }
.login-card form { margin-top: 1.8rem; }
label { display: grid; gap: .44rem; font-weight: 650; font-size: .91rem; min-width: 0; }
label small, .duration-hint { font-weight: 450; color: var(--muted); line-height: 1.45; font-size: .83rem; }
input:not([type=checkbox]), select, textarea { width: 100%; color: var(--ink); background: #fff; border: 1px solid #d9cfe4; border-radius: 10px; padding: .7rem .82rem; min-height: 45px; font-size: 1rem; }
input::placeholder, textarea::placeholder { color: #796d86; }
select { appearance: none; padding-right: 2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23665a73' stroke-width='1.5'/%3E%3C/svg%3E"); background-position: right .7rem center; background-repeat: no-repeat; }
.password-wrap { position: relative; display: block; }
.password-wrap input { padding-right: 3.15rem; }
.login-card form label + label { margin-top: 1rem; }
.login-code:not(:empty), .login-card .remember { margin-top: .85rem; }
.login-card .remember { color: var(--muted); font-size: .87rem; }
.login-card input { min-height: 52px; }
.icon-button { display: inline-grid; place-items: center; border-radius: 10px; border: 0; color: var(--muted); background: transparent; padding: 0; width: 42px; height: 42px; flex: none; }
.icon-button:hover { background: var(--lilac); color: var(--purple); }
.reveal { position: absolute; top: 5px; right: 5px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 1px solid transparent; border-radius: 10px; padding: .65rem .98rem; min-height: 43px; font-weight: 680; font-size: .92rem; line-height: 1.3; white-space: nowrap; }
.button svg { width: 19px; height: 19px; }
.primary { background: var(--purple); color: #fff; box-shadow: 0 4px 10px #693ab023; }
.primary:hover { background: #572a99; }
.secondary { background: #fff; border-color: #ded4e8; color: #573581; }
.secondary:hover { background: #f6effc; border-color: #ba9dd5; }
.danger { color: #9a2542; background: #fff; border-color: #edcad3; }
.danger:hover { background: #fce9ee; }
.block { width: 100%; min-height: 51px; }
.form-error { color: #9a2946; font-size: .89rem; }
.form-error:not(:empty) { padding: .65rem 0; }
.login-card .block { margin-top: 1.25rem; }
.login-card .login-help { margin-top: 1.25rem; font-size: .89rem; text-align: center; }
.login-panel footer { position: absolute; bottom: 1.45rem; color: var(--muted); font-size: .8rem; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.top-inner { max-width: 1320px; margin: auto; padding: .85rem clamp(1rem,4vw,3.5rem); display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.profile { display: flex; align-items: center; gap: .65rem; }
.profile-name { display: grid; gap: .2rem; margin-right: .25rem; }
.profile-name small, .job-text small { color: var(--muted); }
.avatar { display: inline-grid; place-items: center; background: var(--lilac); color: var(--purple); width: 41px; height: 41px; font-weight: 750; border-radius: 50%; flex: none; }
.workspace { max-width: 1320px; margin: auto; padding: clamp(1rem, 4vw, 2.5rem) clamp(1rem, 4vw, 3.5rem) 4rem; }
.tabs { display: flex; align-items: center; gap: .25rem; width: fit-content; padding: .25rem; background: #eee7f6; border-radius: 13px; margin-bottom: 1.75rem; }
.tabs button { display: inline-flex; align-items: center; gap: .4rem; background: transparent; color: var(--muted); border: 0; border-radius: 9px; padding: .65rem .9rem; font-weight: 700; }
.tabs button[aria-current] { color: var(--purple); background: #fff; box-shadow: 0 1px 4px #34204b18; }
.tabs svg { width: 19px; height: 19px; }
.page-heading {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; gap: 1rem; align-items: flex-end; justify-content: space-between;
  min-height: 150px; margin-bottom: 1.35rem; padding: clamp(1rem, 3vw, 2rem);
  color: #fff; background: #272039; border-radius: 19px; box-shadow: 0 8px 24px #2a154614;
}
.heading-photo { position: absolute; inset: 0 0 0 auto; width: 64%; height: 100%; object-fit: cover; object-position: 62% 55%; z-index: -2; }
.page-heading::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, #2d2044 0%, #2d2044 33%, #2d2044d9 50%, #25183735 77%), linear-gradient(0deg, #241a31a3, transparent 65%);
}
.page-heading h1 { font-size: clamp(2rem,4.5vw,3.15rem); line-height: 1.08; letter-spacing: -.052em; }
.page-heading p { color: #f1e9fb; margin-top: .55rem; line-height: 1.45; }
.page-heading .button { background: #fbf6ff; color: #4c2978; border-color: #ffffff75; box-shadow: 0 3px 12px #10071836; }
.page-heading .button:hover { background: #eeddfb; border-color: #eeddfb; }
.metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .9rem; margin-bottom: 1.4rem; }
.metric { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.2rem; background: linear-gradient(140deg,#f6f0fd,#fff 72%); border: 1px solid var(--line); border-radius: 16px; min-width: 0; }
.metric.mint { background: linear-gradient(140deg,#eef8f3,#fff 72%); }
.metric.blue { background: linear-gradient(140deg,#f0f2fc,#fff 72%); }
.metric > div { display: grid; gap: .25rem; min-width: 0; }
.metric > div > span { color: var(--muted); font-size: .88rem; }
.metric strong { font-size: clamp(1.15rem,2.25vw,1.75rem); letter-spacing: -.035em; overflow-wrap: anywhere; }
.metric.mint .metric-icon { background: #e4f4ee; color: #2c6b59; }
.metric.blue .metric-icon { background: #e9edfb; color: #435a9a; }
.surface { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.surface-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.15rem 1.3rem; border-bottom: 1px solid var(--line); }
.surface-header h2, .dialog-header h2 { font-size: 1.25rem; letter-spacing: -.025em; }
.report-period, .report-section { margin-bottom: 1rem; }
.manager-account { margin-bottom: 1rem; }
.month-review { display: flex; align-items: center; justify-content: space-between; gap: .9rem; flex-wrap: wrap; padding: 1rem 1.2rem; margin-bottom: 1rem; }
.review-summary, .review-actions { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.review-summary .section-icon { flex: 0 0 auto; width: 41px; height: 41px; }
.review-summary h2 { font-size: 1.05rem; margin-bottom: .25rem; }
.review-summary p { font-size: .9rem; color: var(--muted); line-height: 1.45; }
.review-notice { display: flex; align-items: center; gap: .55rem; padding: .75rem 1.3rem; background: #edf7f1; color: #285d4b; font-weight: 620; font-size: .9rem; line-height: 1.4; }
.review-notice svg { width: 18px; height: 18px; }
dialog.history-dialog { width: min(710px, calc(100% - 1.6rem)); }
.history-month { color: var(--muted); margin-bottom: .9rem; text-transform: capitalize; }
.history-item { padding: .8rem 0; border-top: 1px solid var(--line); }
.history-item.history-time-change { margin: .45rem 0 .65rem; padding: .75rem .8rem; border: 1px solid #eac1c9; border-left: 4px solid #bc3b53; border-radius: 10px; background: #fff4f6; }
.history-time-change .history-item-title strong { color: #92253b; }
.history-item-title { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .2rem .7rem; }
.history-item time, .history-item p, .history-message { color: var(--muted); font-size: .9rem; margin-top: .25rem; }
.history-reason { overflow-wrap: anywhere; white-space: pre-wrap; }
.history-message:not(:empty) { padding: .6rem 0; }
.history-diff { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .55rem; margin-top: .6rem; }
.history-diff > div { display: grid; gap: .22rem; padding: .55rem .65rem; background: #f6f1fa; border-radius: 9px; font-size: .86rem; }
.history-time-change .history-diff > div:last-child { color: #812338; background: #fbe2e7; }
.report-period .surface-header { border-bottom: 0; }
.report-tabs { flex-wrap: wrap; max-width: calc(100% - 2rem); margin: 0 1rem .85rem; }
.report-tabs button { min-height: 42px; line-height: 1.2; }
.table-scroll { overflow-x: auto; }
.table-scroll:focus-visible { outline: 2px solid #ae82ef; outline-offset: -2px; }
.table-scroll table { width: 100%; border-collapse: collapse; text-align: left; font-size: .91rem; }
.table-scroll th, .table-scroll td { padding: .8rem 1.05rem; border-bottom: 1px solid var(--line); }
.table-scroll thead th { background: #faf7fd; color: #5f4679; }
.table-scroll th:first-child, .table-scroll td:nth-last-child(-n+3) { white-space: nowrap; }
.table-scroll tbody tr:last-child > * { border-bottom: 0; }
.table-scroll tbody tr:hover { background: #faf7fd; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .65rem; }
.filters input, .filters select { width: auto; max-width: 100%; min-height: 42px; font-size: .92rem; padding-top: .55rem; padding-bottom: .55rem; }
.filters label { font-size: .82rem; }
.day h2 { background: #faf7fd; padding: .65rem 1.3rem; font-size: .9rem; color: #5f4679; text-transform: capitalize; display: flex; align-items: center; gap: .65rem; }
.day h2 span { color: #60349b; background: #ece0fa; border-radius: 8px; padding: .2rem .45rem; font-size: .77rem; }
.job { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; align-items: center; gap: .9rem; padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); }
.job:last-child { border-bottom: 0; }
.job-symbol { display: grid; place-items: center; background: #f3ebfb; color: var(--purple); width: 41px; height: 41px; border-radius: 12px; }
.job h3 { margin-bottom: .25rem; font-size: 1rem; overflow-wrap: anywhere; }
.job-meta { display: flex; flex-wrap: wrap; gap: .25rem .7rem; }
.job-meta > span { display: inline-flex; align-items: center; gap: .2rem; }
.job-meta svg { width: 15px; height: 15px; }
.job-meta, .job-note, .job-record small { color: var(--muted); font-size: .85rem; }
.job-note { margin-top: .3rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.job-record { display: grid; justify-items: end; gap: .25rem; }
.job-record strong { color: #2c6b59; }
.status { display: inline-block; padding: .27rem .55rem; border-radius: 20px; color: #604780; background: #f1ebf7; font-weight: 650; font-size: .82rem; white-space: nowrap; }
.status.active { color: #276350; background: #e5f4ec; }
.empty { min-height: 255px; display: grid; gap: .65rem; align-content: center; justify-items: center; text-align: center; padding: 2rem 1rem; }
.empty strong { font-size: 1.08rem; }
.empty p, .panel-message { color: var(--muted); }
.panel-message { padding: 1.5rem; }
dialog { border: 1px solid var(--line); color: var(--ink); border-radius: 20px; box-shadow: 0 24px 100px #140f2770; padding: clamp(1rem,4vw,1.5rem); width: min(530px, calc(100% - 1.6rem)); max-height: calc(100% - 1.6rem); }
dialog::backdrop { background: #20162d7a; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .7rem; }
dialog form { display: grid; gap: .8rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.time-entry { display: grid; gap: .44rem; min-width: 0; }
.time-controls { display: grid; grid-template-columns: minmax(3.7rem,1fr) minmax(5.3rem,auto); gap: .35rem; }
.time-controls select { padding-left: .55rem; padding-right: 1.7rem; background-position: right .4rem center; }
.earnings-preview { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-radius: 12px; background: #e8f5ef; color: #235d4c; padding: .7rem .85rem; }
.earnings-preview strong, .earnings-preview small { display: block; }
.earnings-preview output { font-size: 1.2rem; font-weight: 750; text-align: right; }
.earnings-preview small { font-size: .82rem; font-weight: 500; margin-top: .12rem; }
.assigned { border-radius: 10px; background: #f5effa; padding: .8rem; line-height: 1.5; }
fieldset { border: 1px solid var(--line); border-radius: 10px; min-width: 0; margin: 0; }
legend { font-weight: 680; font-size: .91rem; }
.worker-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem; max-height: 160px; overflow: auto; }
.checkbox { display: flex; gap: .5rem; align-items: center; min-height: 30px; overflow-wrap: anywhere; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--purple); flex: none; }
.dialog-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.dialog-actions .cancel { margin-left: auto; }
.security-options { display: grid; gap: .7rem; }
.security-options > div { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; justify-content: space-between; padding: .8rem; background: #f8f3fc; border-radius: 12px; }
.security-options strong { display: inline-flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.mfa-qr { max-width: 100%; height: auto; margin: 0 auto; image-rendering: pixelated; background: #fff; }
.recovery-key { padding: .5rem 0; color: var(--purple); font-family: ui-monospace, monospace; overflow-wrap: anywhere; }
.recovery-codes { display: grid; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); gap: .4rem; padding: 0; list-style: none; }
.recovery-codes li { background: #f6effb; border-radius: 8px; padding: .45rem; }
#toast { position: fixed; z-index: 5; bottom: 1.2rem; right: 1.2rem; display: none; align-items: center; gap: .55rem; max-width: calc(100% - 2.4rem); color: white; background: #36234a; box-shadow: 0 8px 22px #25173733; border-radius: 12px; padding: .75rem 1rem; }
#toast.visible { display: flex; }
@media (max-width: 770px) {
  .login-shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .login-art { min-height: 0; height: clamp(126px, 25vw, 186px); padding: 1rem 1.25rem; flex-direction: row; align-items: center; }
  .login-photo { object-position: 55% 65%; }
  .login-art::after { background: linear-gradient(90deg, #2a173ab5, #2a173a0a 70%); }
  .login-logo { align-self: center; width: clamp(85px, 22vw, 145px); }
  .login-panel { align-content: start; padding: clamp(1.4rem, 6vw, 3rem) 1.35rem 4rem; }
  .metric { padding: .75rem; gap: .5rem; align-items: flex-start; flex-direction: column; }
  .metric-icon { width: 38px; height: 38px; border-radius: 10px; }
  .metric-icon svg { width: 19px; height: 19px; }
}
@media (max-width: 540px) {
  .review-summary { align-items: flex-start; flex-wrap: nowrap; }
  .history-diff { grid-template-columns: 1fr; }
  .time-fields { grid-template-columns: 1fr; }
  .tabs { flex-wrap: wrap; }
  .tabs button { padding-inline: .58rem; }
  .profile-name, .profile .avatar { display: none; }
  .profile { gap: .2rem; }
  .top-inner .brand strong { font-size: 1.35rem; }
  .top-inner .mark { width: 40px; height: 40px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: .75rem; min-height: 0; padding: 1rem; }
  .heading-copy { max-width: 75%; }
  .heading-photo { width: 73%; object-position: 64% 55%; }
  .page-heading p { font-size: .91rem; }
  .metrics { gap: .4rem; }
  .metric > div > span { font-size: .8rem; }
  .surface-header, .day h2, .job { padding-left: .8rem; padding-right: .8rem; }
  .filters { column-gap: .4rem; }
  .filters input, .filters select { max-width: 100%; }
  .job { grid-template-columns: auto minmax(0,1fr); gap: .55rem; }
  .job-record { grid-column: 2; justify-items: start; }
  .job > button { grid-column: 2; justify-self: start; }
  .worker-row > .status { grid-column: 2; justify-self: start; }
}

.greeting { display: inline-flex; align-items: center; gap: .45rem; max-width: 100%; margin-bottom: .5rem; padding: .32rem .62rem; border-radius: 11px; background: #21152ee6; color: #f7eafa; font-size: .86rem; }
.greeting svg { width: 17px; height: 17px; color: #e2c5ff; }
.greeting > span { display: grid; gap: .12rem; min-width: 0; overflow-wrap: anywhere; }
.job-actions { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: flex-end; }
.finance-note { margin: .75rem 1rem; color: var(--muted); font-size: .9rem; }
@media (max-width: 540px) {
  .job-actions { grid-column: 2; justify-content: flex-start; }
}

.travel-reading p { margin-top: .25rem; color: var(--muted); }
.fuel-actions { display: flex; gap: .4rem; }
.travel-metrics { grid-template-columns: repeat(4,minmax(0,1fr)); }
@media (max-width: 770px) {
  .travel-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

.device-code { margin-top: .8rem; padding: .8rem; border-radius: 12px; background: var(--lilac); color: var(--ink); }
.device-code strong { display: block; font-size: 1.4rem; letter-spacing: .15em; }
.device-code p { margin-top: .4rem; line-height: 1.45; }
.device-buttons, .device-row { display: flex; flex-wrap: wrap; gap: .55rem; }
.device-list { display: grid; gap: .4rem; }
.device-row { align-items: center; justify-content: space-between; padding: .55rem; background: #f8f3fc; border-radius: 8px; }
.device-row small { display: block; color: var(--muted); }
