:root {
  color-scheme: dark;
  --bg: #020b12;
  --bg-deep: #01070c;
  --panel: rgba(3, 27, 36, .94);
  --panel-2: rgba(4, 36, 45, .88);
  --line: #087a76;
  --line-soft: rgba(17, 142, 133, .48);
  --green: #43f478;
  --green-2: #2ddd66;
  --green-soft: rgba(67, 244, 120, .12);
  --cyan: #72dfe0;
  --white: #f7fbfd;
  --text: #d8e6eb;
  --muted: #91aab3;
  --blue: #203d53;
  --orange: #f5a647;
  --danger: #ff315a;
  --radius: 13px;
  --shadow: 0 12px 35px rgba(0, 0, 0, .35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #000; color: var(--text); }
body { min-height: 100dvh; overscroll-behavior-y: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
button:disabled { opacity: .38; cursor: not-allowed; }
[hidden] { display: none !important; }

.app-root { min-height: 100dvh; }
.phone-app { position: relative; width: min(100%, 430px); min-height: 100dvh; margin: 0 auto; overflow: hidden; background: radial-gradient(circle at 75% 0, rgba(6, 73, 75, .28), transparent 32%), linear-gradient(180deg, #021019 0%, var(--bg) 60%, #01090e 100%); box-shadow: 0 0 60px #000; }
.screen { min-height: calc(100dvh - 76px); padding-bottom: 74px; }
.ui-icon { width: 22px; height: 22px; flex: 0 0 auto; }

.status-bar { position: relative; z-index: 20; height: 24px; padding: 6px 15px 2px; display: flex; align-items: center; justify-content: space-between; color: #fff; font-size: 10px; line-height: 1; background: rgba(0, 8, 13, .93); }
.status-bar b { font-size: 10px; letter-spacing: -.2px; }
.status-signals { display: flex; align-items: flex-end; gap: 3px; height: 12px; }
.status-signals i { display: block; width: 2px; border-radius: 2px; background: #fff; }
.status-signals i:nth-child(1) { height: 4px; }
.status-signals i:nth-child(2) { height: 7px; }
.status-signals i:nth-child(3) { height: 10px; }
.status-signals small { margin-left: 2px; font-size: 9px; font-weight: 800; }
.status-signals em { margin-left: 2px; padding: 1px 3px; color: #052012; background: var(--green); border-radius: 3px; font-size: 8px; font-style: normal; font-weight: 900; }

.app-header { position: sticky; top: 0; z-index: 12; height: 53px; display: flex; align-items: center; justify-content: space-between; padding: 6px 14px; border-bottom: 1px solid rgba(18, 115, 115, .24); background: rgba(1, 14, 22, .94); backdrop-filter: blur(18px); }
.header-left { min-width: 0; display: flex; align-items: center; gap: 9px; }
.header-left > div { min-width: 0; display: flex; flex-direction: column; }
.header-left strong { overflow: hidden; color: var(--white); font-size: 15px; line-height: 1.15; white-space: nowrap; text-overflow: ellipsis; }
.header-left small { color: var(--green); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.brand-logo.header-logo { width: 31px; height: 35px; object-fit: contain; }
.header-status { display: flex; align-items: center; gap: 7px; }
.header-status > i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 7px currentColor; }
.header-status > i.online { background: var(--green); }
.avatar { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(81, 255, 129, .7); border-radius: 50%; color: #fff; background: linear-gradient(145deg, #35cb6c, #0b9755); box-shadow: 0 0 18px rgba(58, 242, 117, .48); font-size: 10px; font-weight: 800; }
.icon-button { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(27, 86, 87, .18); cursor: pointer; }

.screen-content { padding: 12px 14px 24px; }
.section-title { margin: 15px 0 9px; color: var(--white); font-size: 14px; }
.muted { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.bottom-nav { position: fixed; z-index: 30; left: 50%; bottom: 0; width: min(100%, 430px); height: calc(64px + env(safe-area-inset-bottom)); padding: 7px 8px calc(5px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid rgba(42, 142, 142, .45); background: rgba(1, 14, 22, .97); backdrop-filter: blur(18px); transform: translateX(-50%); }
.bottom-nav button { position: relative; min-width: 0; display: grid; justify-items: center; align-content: center; gap: 2px; padding: 0; border: 0; color: #a2bec7; background: transparent; cursor: pointer; }
.bottom-nav .ui-icon { width: 20px; height: 20px; }
.bottom-nav span { font-size: 9px; }
.bottom-nav button.active { color: var(--green); }
.bottom-nav button.active::before { content: ''; position: absolute; top: -8px; width: 22px; height: 2px; border-radius: 5px; background: var(--green); box-shadow: 0 0 10px var(--green); }

.button { width: 100%; min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 15px; border: 1px solid transparent; border-radius: 8px; color: #04120c; background: linear-gradient(90deg, var(--green), #38eb70); box-shadow: 0 7px 18px rgba(46, 238, 111, .13); font-size: 12px; font-weight: 800; cursor: pointer; }
.button .ui-icon { width: 17px; height: 17px; }
.button.outline { color: var(--green); border-color: var(--line); background: rgba(3, 29, 37, .72); box-shadow: none; }
.button.ghost { margin-top: 8px; color: #d7e5e9; border-color: rgba(54, 139, 141, .55); background: transparent; box-shadow: none; }
.button.danger { color: var(--danger); border-color: var(--danger); background: rgba(255, 49, 90, .05); box-shadow: none; }
.button.full { width: 100%; }

.login-screen { position: relative; width: min(100%, 430px); min-height: 100dvh; margin: 0 auto; overflow: hidden; background: #020a0f url('login-building-v2.png') center 18% / cover no-repeat; }
.login-screen .status-bar { background: transparent; }
.login-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 8, 13, .12) 0%, rgba(0, 10, 14, .2) 24%, rgba(0, 12, 16, .8) 53%, #01090d 87%); }
.login-scroll { position: relative; z-index: 2; min-height: calc(100dvh - 24px); padding: 9px 16px 16px; display: flex; flex-direction: column; }
.login-brand { text-align: center; color: #fff; }
.login-brand .brand-logo { width: 148px; height: 88px; object-fit: contain; filter: drop-shadow(0 3px 10px #001); }
.login-brand .brand-logo.full-logo { width: min(100%, 260px); height: 185px; }
.login-brand h1 { margin: -11px 0 0; font-size: 30px; letter-spacing: -1.3px; text-shadow: 0 2px 7px #000; }
.login-brand p { margin: 1px 0 0; font-size: 9px; font-weight: 900; letter-spacing: .04em; }
.login-claim { margin-top: auto; padding: 0 5px 11px; color: #fff; text-shadow: 0 2px 7px #000; }
.login-claim strong { font-size: 21px; line-height: 1.08; letter-spacing: -.5px; }
.login-panel { padding: 13px 12px 12px; border: 1px solid var(--green-2); border-radius: 16px; background: linear-gradient(145deg, rgba(3, 30, 36, .96), rgba(0, 15, 21, .94)); box-shadow: var(--shadow); }
.login-panel h2 { margin: 0 0 10px; color: var(--white); font-size: 15px; }
.auth-form { display: grid; gap: 9px; }
.auth-form label, .stack-form > label, .field-grid label, .signature-section label { display: grid; gap: 4px; color: var(--cyan); font-size: 9px; font-weight: 600; }
.auth-form label > span { padding-left: 10px; }
.auth-form label > small { padding-left: 10px; color: var(--muted); font-size: 8px; }
.input-shell { min-height: 43px; display: flex; align-items: center; gap: 9px; padding: 0 10px; border: 1px solid rgba(17, 128, 130, .82); border-radius: 8px; background: rgba(0, 16, 24, .84); }
.input-shell .ui-icon { width: 20px; color: #f3f8fa; }
.input-shell input { width: 100%; min-width: 0; padding: 11px 0; border: 0; outline: 0; color: #fff; background: transparent; font-size: 12px; }
.field-button { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; color: #fff; background: transparent; cursor: pointer; }
.field-button .ui-icon { width: 18px; }
.forgot-link { justify-self: center; padding: 0; border: 0; color: var(--green); background: transparent; font-size: 10px; text-decoration: underline; cursor: pointer; }
.secure-note { margin-top: 10px; display: flex; align-items: flex-start; gap: 7px; color: #94aeb6; font-size: 8px; line-height: 1.35; text-align: left; }
.secure-note .ui-icon { width: 16px; color: var(--green); }
.login-footer { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 13px 0 0; color: #38da71; font-size: 8px; text-decoration: underline; }
.login-footer i { width: 1px; height: 10px; background: #83999e; }
.form-notice { margin: 0 0 10px; padding: 8px 10px; border-radius: 7px; font-size: 9px; line-height: 1.4; display: flex; align-items: center; gap: 8px; }
.form-notice.success { color: #bdf8d0; border: 1px solid rgba(67, 244, 120, .45); background: rgba(67, 244, 120, .1); }
.form-notice.error { color: #ffd0d9; border: 1px solid rgba(255, 49, 90, .45); background: rgba(255, 49, 90, .1); }
.reset-screen .login-scroll { justify-content: center; }
.login-brand.compact { margin-bottom: 14px; }
.login-brand.compact .brand-logo { width: 112px; height: 72px; }
.login-brand.compact p { color: var(--green); font-size: 11px; }
.reset-panel h1 { margin: 7px 0 4px; color: #fff; font-size: 21px; }
.panel-copy { margin: 0 0 13px; color: #a5bbc3; font-size: 10px; line-height: 1.45; }
.text-back { display: flex; align-items: center; gap: 4px; padding: 0; border: 0; color: var(--green); background: transparent; font-size: 10px; cursor: pointer; }
.text-back .ui-icon { width: 16px; }
.divider { position: relative; margin: 11px 0; border-top: 1px solid rgba(105, 151, 156, .25); text-align: center; }
.divider span { position: relative; top: -8px; padding: 0 8px; color: #8fa6ad; background: #031a22; font-size: 9px; }

.hero-welcome { height: 91px; display: flex; align-items: center; padding: 9px 14px; border-bottom: 1px solid rgba(15, 123, 122, .32); background: linear-gradient(90deg, #03121d 0%, rgba(2, 17, 26, .9) 40%, rgba(1, 13, 19, .26) 100%), url('login-building-v2.png') right 42% / 59% auto no-repeat; }
.hero-copy span, .hero-copy h1 { display: block; color: #fff; font-size: 19px; line-height: 1.05; font-weight: 850; }
.hero-copy h1 { margin: 0; max-width: 230px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-copy p { margin: 7px 0 0; color: #c8d9de; font-size: 10px; }
.home-content { padding-top: 10px; }
.next-card { position: relative; padding: 12px 10px 10px 17px; border: 1px solid #0c7b67; border-radius: 11px; background: linear-gradient(135deg, rgba(3, 34, 42, .98), rgba(1, 22, 29, .98)); overflow: hidden; }
.next-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 42px; width: 3px; background: var(--green); box-shadow: 0 0 13px var(--green); }
.card-kicker { color: #f5fbfd; font-size: 10px; font-weight: 750; }
.next-main { min-height: 91px; display: flex; padding: 7px 0; }
.next-main h2 { margin: 0 0 3px; color: #fff; font-size: 14px; }
.next-main strong { display: block; color: #fff; font-size: 12px; }
.next-main p { margin: 2px 0 6px; color: #9cb4bc; font-size: 9px; }
.next-main time { color: #fff; font-size: 13px; font-weight: 800; }
.next-card .button { min-height: 34px; padding: 7px; }
.action-card { width: 100%; min-height: 76px; display: grid; grid-template-columns: 45px 1fr 20px; align-items: center; gap: 8px; padding: 10px 10px; border: 1px solid var(--green-2); border-radius: 11px; background: linear-gradient(120deg, rgba(7, 45, 45, .96), rgba(2, 27, 34, .96)); text-align: left; cursor: pointer; }
.action-card > .ui-icon { color: var(--green); }
.action-icon { width: 43px; height: 43px; display: grid; place-items: center; color: var(--green); }
.action-icon .ui-icon { width: 35px; height: 35px; }
.action-card b, .action-card small { display: block; }
.action-card b { color: #f4fafc; font-size: 12px; }
.action-card small { margin-top: 3px; color: #b8cbd1; font-size: 9px; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 11px; }
.quick-grid button { min-height: 92px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(145deg, rgba(3, 34, 44, .94), rgba(1, 22, 29, .95)); text-align: left; cursor: pointer; }
.quick-grid .ui-icon { margin-bottom: auto; color: #e8f5f7; }
.quick-grid span { color: #fff; font-size: 10px; }
.quick-grid b { margin-top: 2px; color: #d9eaee; font-size: 9px; font-weight: 500; }

.search-box { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(1, 20, 28, .9); }
.search-box .ui-icon { width: 17px; color: #d6e7eb; }
.search-box input { width: 100%; border: 0; outline: 0; color: #eaf4f6; background: transparent; font-size: 10px; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 10px 0; padding: 0; }
.segmented button, .detail-tabs button { min-height: 31px; border: 1px solid #135b6e; border-radius: 999px; color: #a7bec6; background: transparent; font-size: 9px; cursor: pointer; }
.segmented button.active, .detail-tabs button.active { color: #032311; border-color: var(--green); background: linear-gradient(90deg, var(--green), var(--green-2)); font-weight: 800; }
.job-list { display: grid; gap: 8px; }
.job-card { position: relative; width: 100%; min-height: 94px; display: flex; flex-direction: column; align-items: flex-start; padding: 11px 11px 10px 16px; border: 1px solid var(--line); border-radius: 11px; background: linear-gradient(135deg, rgba(3, 32, 40, .98), rgba(1, 24, 31, .98)); text-align: left; cursor: pointer; overflow: hidden; }
.job-card::before { content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 4px; background: var(--green); }
.job-card-top { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.job-card-top b { color: #fff; font-size: 13px; }
.job-card > strong { margin-top: 4px; color: #eaf4f7; font-size: 11px; }
.job-card > span:not(.job-card-top), .job-card > time { margin-top: 2px; color: #b6cbd2; font-size: 9px; }
.status-pill { flex: 0 0 auto; padding: 4px 9px; border-radius: 999px; color: #ddebef; background: var(--blue); font-size: 8px; font-style: normal; font-weight: 600; }
.status-pill.green { color: var(--green); background: rgba(47, 200, 97, .18); }
.status-pill.orange { color: #ffd297; background: rgba(245, 166, 71, .18); }
.status-pill.blue { color: #dcecf5; background: #1e3e55; }

.detail-tabs { position: sticky; top: 53px; z-index: 11; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 6px 14px; background: rgba(1, 14, 22, .97); }
.detail-tabs button { min-height: 28px; margin-left: -1px; border-radius: 0; }
.detail-tabs button:first-child { border-radius: 999px 0 0 999px; }
.detail-tabs button:last-child { border-radius: 0 999px 999px 0; }
.customer-card { min-height: 107px; display: grid; grid-template-columns: 108px 1fr; gap: 11px; padding: 10px; border-radius: 12px; background: linear-gradient(135deg, rgba(4, 42, 47, .98), rgba(2, 31, 38, .98)); box-shadow: var(--shadow); }
.customer-placeholder { display: grid; place-items: center; border-radius: 10px; color: var(--green); background: linear-gradient(145deg, #173d43, #071b25); }
.customer-placeholder .ui-icon { width: 47px; height: 47px; }
.customer-card h2 { margin: 5px 0 5px; color: #fff; font-size: 13px; }
.customer-card p { margin: 0; color: #c7d9de; font-size: 9px; line-height: 1.4; }
.active-line { display: flex; align-items: center; gap: 5px; color: var(--green); font-size: 9px; font-weight: 700; }
.active-line i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px var(--green); }
.contact-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 9px 0; }
.contact-row button { min-height: 59px; display: grid; justify-items: center; align-content: center; gap: 5px; padding: 5px; border: 1px solid var(--line); border-radius: 10px; color: #def0f3; background: rgba(2, 25, 34, .9); cursor: pointer; }
.contact-row .ui-icon { width: 20px; }
.contact-row span { font-size: 8px; }
.detail-card { margin: 8px 0; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(145deg, rgba(4, 34, 42, .95), rgba(1, 23, 30, .96)); }
.detail-card h3, .signature-section h3, .entry-list h3 { margin: 0 0 8px; color: #fff; font-size: 12px; }
.check-list, .ride-details ul, .entry-list ul { margin: 0; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: center; gap: 7px; margin: 6px 0; font-size: 10px; }
.check-list .ui-icon { width: 16px; color: var(--green); fill: rgba(67, 244, 120, .14); }
.pack-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.pack-list li { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 8px; border: 1px solid rgba(85, 224, 154, .18); border-radius: 9px; background: rgba(2, 25, 31, .72); }
.pack-list li > span { display: grid; grid-template-columns: 20px 1fr; align-items: center; gap: 0 7px; min-width: 0; }
.pack-list li .ui-icon { grid-row: 1 / span 2; width: 17px; color: var(--green); }
.pack-list li b { font-size: 10px; color: #fff; }
.pack-list li small { font-size: 8px; color: #a9c0c7; }
.pack-list li em { flex: 0 0 auto; color: #bcd0d5; font-size: 7px; font-style: normal; text-transform: uppercase; }
.pack-list li.packed { border-color: rgba(67, 244, 120, .45); }
.pack-list li.missing { border-color: rgba(255, 105, 118, .48); }
.pack-list li.missing .ui-icon,.pack-list li.missing em { color: #ff7582; }
.job-primary-actions { display: grid; gap: 7px; }
.detail-card dl { margin: 0; }
.detail-card dl div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.detail-card dt { color: #b6cbd1; font-size: 9px; }
.detail-card dd { margin: 0; color: #eaf4f6; font-size: 9px; text-align: right; }
.detail-list div { padding: 8px 0 !important; border-bottom: 1px solid rgba(72, 132, 137, .22); }
.detail-list div:last-child { border: 0; }
.document-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 10px; }
.document-stats div { padding: 10px; border: 1px solid rgba(20, 120, 120, .45); border-radius: 8px; background: rgba(0, 15, 21, .4); }
.document-stats b, .document-stats span { display: block; }
.document-stats b { color: var(--green); font-size: 17px; }
.document-stats span { color: #a8bec5; font-size: 8px; }

.route-visual { position: relative; height: 155px; margin: -12px -14px 11px; padding: 29px 20px 15px; overflow: hidden; border-bottom: 1px solid var(--line); background-color: #03312f; background-image: linear-gradient(30deg, transparent 24%, rgba(94, 210, 174, .08) 25%, rgba(94, 210, 174, .08) 26%, transparent 27%, transparent 74%, rgba(94, 210, 174, .08) 75%, rgba(94, 210, 174, .08) 76%, transparent 77%), linear-gradient(120deg, transparent 24%, rgba(94, 210, 174, .08) 25%, rgba(94, 210, 174, .08) 26%, transparent 27%, transparent 74%, rgba(94, 210, 174, .08) 75%, rgba(94, 210, 174, .08) 76%, transparent 77%); background-size: 55px 55px; }
.route-visual::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle, transparent, rgba(0, 14, 18, .6)); pointer-events: none; }
.route-line { position: relative; z-index: 2; height: 65px; display: flex; align-items: center; }
.route-line span, .route-line b { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #07331a; background: var(--green); box-shadow: 0 0 17px rgba(67, 244, 120, .48); }
.route-line i { position: relative; flex: 1; height: 4px; margin: 0 -2px; border-radius: 99px; background: var(--green); transform: rotate(-7deg); box-shadow: 0 0 8px rgba(67, 244, 120, .65); }
.route-caption { position: relative; z-index: 2; display: flex; justify-content: flex-end; gap: 8px; }
.route-caption strong, .route-caption small { padding: 5px 8px; border-radius: 6px; background: rgba(0, 12, 17, .75); }
.address-card { min-height: 75px; display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); }
.address-card .ui-icon { color: #fff; }
.address-card strong, .address-card span { display: block; }
.address-card strong { color: #fff; font-size: 12px; }
.address-card span { margin-top: 3px; color: #adc2c9; font-size: 10px; }
.ride-content > .button { margin-top: 8px; }
.ride-details li { display: flex; align-items: center; gap: 9px; margin: 9px 0; color: #c6d8de; font-size: 10px; }
.ride-details .ui-icon { width: 17px; }

.time-content { text-align: center; }
.time-dial { width: 164px; height: 164px; display: grid; place-items: center; margin: 4px auto 12px; border-radius: 50%; background: conic-gradient(var(--green) 0 78%, rgba(70, 133, 137, .28) 78% 100%); box-shadow: 0 0 28px rgba(35, 222, 102, .17); }
.time-dial::before { content: ''; position: absolute; }
.time-dial > div { width: 151px; height: 151px; display: grid; place-items: center; align-content: center; gap: 5px; border-radius: 50%; background: radial-gradient(circle, #06222c 0, #021119 72%); }
.time-dial span { color: #d0e0e4; font-size: 9px; }
.time-dial strong { color: #fff; font-size: 25px; letter-spacing: -1px; }
.time-dial button { width: 37px; height: 37px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #053118; background: var(--green); cursor: pointer; }
.time-dial button .ui-icon { width: 17px; }
.time-dial.paused { background: conic-gradient(var(--orange) 0 78%, rgba(70, 133, 137, .28) 78% 100%); }
.time-dial.stopped { background: conic-gradient(#175a62 0 32%, rgba(70, 133, 137, .2) 32% 100%); }
.time-job b, .time-job span { display: block; }
.time-job b { color: #fff; font-size: 10px; }
.time-job span { margin-top: 3px; color: #95adb5; font-size: 9px; }
.time-actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 7px; margin: 11px 0; }
.job-work-action { margin: 11px 0 0; }
.time-actions .button { min-height: 35px; padding: 6px 8px; font-size: 9px; }
.timeline { margin: 0; padding: 0; list-style: none; text-align: left; }
.timeline li { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 6px; min-height: 31px; border-bottom: 1px solid rgba(62, 128, 134, .2); color: #c8d9dd; font-size: 9px; }
.timeline li > span small { display: block; margin-top: 2px; color: #7fa2a9; font-size: 7px; }
.timeline li.locked > span small { color: #f0bc72; }
.timeline i { width: 6px; height: 6px; border: 1px solid #80a8b0; border-radius: 50%; }
.timeline i.green { border-color: var(--green); background: var(--green); box-shadow: 0 0 7px var(--green); }
.timeline i.orange { border-color: var(--orange); }
.timeline time { color: #fff; }
.time-export-card { margin: 10px 0 4px; padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: rgba(3, 29, 37, .72); text-align: left; }
.time-export-card > div { display: flex; align-items: center; gap: 8px; }
.time-export-card > div > .ui-icon { width: 20px; color: var(--green); }
.time-export-card span { display: flex; flex-direction: column; gap: 2px; }
.time-export-card small { color: #90acb2; font-size: 8px; }
.time-export-card .button { min-height: 34px; margin-top: 8px; padding: 6px 10px; }
.assignment-release { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: var(--green); font-size: 8px; font-weight: 700; }
.assignment-release .ui-icon { width: 15px; height: 15px; }
.assignment-note { display: flex; flex-direction: column; gap: 3px; margin-top: 9px; padding-top: 8px; border-top: 1px solid rgba(62, 128, 134, .3); color: #c8d9dd; font-size: 9px; }

.capture-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; padding: 9px 10px; border: 1px solid var(--line-soft); border-radius: 9px; background: rgba(3, 26, 35, .78); }
.capture-head span { color: var(--muted); font-size: 9px; }
.capture-head button { display: flex; align-items: center; gap: 5px; padding: 0; border: 0; color: var(--green); background: transparent; font-size: 10px; font-weight: 750; cursor: pointer; }
.capture-head .ui-icon { width: 14px; }
.capture-stage { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: rgba(2, 24, 31, .9); }
.capture-stage > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.capture-preview { min-height: 210px; display: grid; place-items: center; overflow: hidden; cursor: pointer; background: radial-gradient(circle at center, rgba(24, 126, 103, .25), rgba(1, 18, 25, .98)); }
.capture-preview > span { display: grid; place-items: center; gap: 6px; color: var(--green); text-align: center; }
.capture-preview .ui-icon { width: 42px; height: 42px; }
.capture-preview b { color: #f3fbfa; font-size: 12px; }
.capture-preview small { color: #91abb2; font-size: 8px; }
.capture-preview img { width: 100%; height: 230px; object-fit: cover; }
.capture-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-top: 1px solid var(--line); background: var(--line); }
.capture-tools label, .capture-tools button { min-height: 61px; display: grid; place-items: center; align-content: center; gap: 4px; padding: 6px; border: 0; color: #d9e9eb; background: #03232b; font-size: 8px; line-height: 1.2; text-align: center; cursor: pointer; }
.capture-tools .ui-icon { width: 22px; height: 22px; color: var(--green); }
.capture-analysis { margin-top: 9px; padding: 10px; border: 1px solid rgba(67, 244, 120, .55); border-radius: 10px; background: linear-gradient(140deg, rgba(4, 46, 42, .9), rgba(2, 27, 32, .92)); }
.capture-analysis h3 { margin: 0; color: var(--green); font-size: 10px; }
.capture-analysis p { margin: 5px 0 8px; color: #bdd0d4; font-size: 8px; line-height: 1.45; }
.capture-analysis .button { min-height: 34px; padding: 6px 9px; font-size: 8px; }
.capture-shortcuts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin-top: 9px; }
.capture-shortcuts button { min-height: 72px; display: grid; place-items: center; align-content: center; gap: 4px; padding: 7px 4px; border: 1px solid var(--line); border-radius: 9px; color: var(--green); background: rgba(2, 29, 36, .9); cursor: pointer; }
.capture-shortcuts .ui-icon { width: 21px; height: 21px; }
.capture-shortcuts b, .capture-shortcuts small { display: block; text-align: center; }
.capture-shortcuts b { color: #edf8f8; font-size: 9px; }
.capture-shortcuts small { margin-top: 2px; color: #8fa8af; font-size: 7px; }
.capture-footer-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 7px; margin-top: 9px; }
.capture-footer-actions button { min-height: 35px; display: flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--line-soft); border-radius: 8px; color: #c9dcdf; background: rgba(2, 24, 31, .82); font-size: 8px; cursor: pointer; }
.capture-footer-actions .ui-icon { width: 15px; color: var(--green); }
.capture-menu, .more-menu { display: grid; gap: 8px; }
.capture-menu > button, .more-menu > button { min-height: 67px; display: grid; grid-template-columns: 40px 1fr 20px; align-items: center; gap: 9px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(135deg, rgba(4, 34, 42, .96), rgba(1, 23, 30, .96)); text-align: left; cursor: pointer; }
.capture-menu > button > .ui-icon:first-child, .more-menu > button > .ui-icon:first-child { width: 27px; height: 27px; color: var(--green); }
.capture-menu > button > .ui-icon:last-child, .more-menu > button > .ui-icon:last-child { width: 17px; color: var(--green); }
.capture-menu b, .capture-menu small, .more-menu b, .more-menu small { display: block; }
.capture-menu b, .more-menu b { color: #f3f9fb; font-size: 11px; }
.capture-menu small, .more-menu small { margin-top: 3px; color: #9cb3ba; font-size: 8px; }

.context-strip { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: 9px; background: rgba(3, 30, 38, .9); }
.context-strip span { color: var(--green); font-size: 10px; font-weight: 800; }
.context-strip b { overflow: hidden; color: #fff; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.stack-form { display: grid; gap: 10px; }
.stack-form > label, .field-grid label, .signature-section label { color: #c6d8dd; font-size: 9px; }
.stack-form input:not([type="checkbox"]), .stack-form textarea, .stack-form select, .field-grid input, .field-grid select, .signature-section input, .signature-section select { width: 100%; min-height: 41px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: #f1f8fa; background: rgba(1, 18, 26, .86); font-size: 11px; resize: vertical; }
.stack-form textarea { line-height: 1.45; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.photo-field { cursor: pointer; }
.photo-field input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photo-field > span { min-height: 135px; display: grid; place-items: center; align-content: center; gap: 5px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; color: var(--green); background: radial-gradient(circle at center, rgba(16, 111, 99, .25), rgba(2, 21, 29, .93)); }
.photo-field .ui-icon { width: 34px; height: 34px; }
.photo-field b { color: #e9f5f7; font-size: 11px; }
.photo-field small { color: #8ba6ae; font-size: 8px; }
.photo-field img { width: 100%; max-height: 230px; object-fit: cover; }
.photo-field.compact > span { min-height: 82px; }
.photo-field.compact img { max-height: 120px; }
.photo-draft-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.photo-draft-list > div { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: rgba(1, 18, 26, .86); }
.photo-draft-list img { width: 100%; height: 68px; display: block; object-fit: cover; }
.photo-draft-list span { display: block; overflow: hidden; padding: 5px 22px 5px 5px; color: #c6d8dd; font-size: 7px; white-space: nowrap; text-overflow: ellipsis; }
.photo-draft-list button { position: absolute; right: 2px; bottom: 2px; width: 21px; height: 21px; display: grid; place-items: center; padding: 0; border: 0; color: var(--danger); background: rgba(1, 10, 15, .86); border-radius: 50%; }
.photo-draft-list button .ui-icon { width: 12px; }
.voice-button { justify-content: center; }
.voice-button .ui-icon { width: 17px; }
.signature-section { padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(2, 26, 34, .78); }
.signature-section label { margin: 7px 0; }
#signature-pad { width: 100%; height: 105px; margin-top: 4px; border: 1px dashed #2b8281; border-radius: 8px; background: rgba(0, 8, 13, .7); touch-action: none; }
.tiny-button { padding: 5px 0; border: 0; color: var(--green); background: transparent; font-size: 8px; text-decoration: underline; cursor: pointer; }
.check-row { grid-template-columns: 19px 1fr !important; align-items: center; gap: 7px !important; }
.check-row input { width: 17px; height: 17px; accent-color: var(--green); }

.measurement-tabs { grid-template-columns: 1fr 1fr; }
.measurement-tabs button[disabled]::after { content: ' · nicht verbunden'; }
.entry-list { margin-top: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(2, 26, 34, .8); }
.entry-list > p { margin: 0; color: var(--muted); font-size: 9px; }
.entry-list li { min-height: 49px; display: grid; grid-template-columns: 1fr 35px; align-items: center; gap: 8px; border-bottom: 1px solid rgba(58, 130, 134, .24); }
.entry-list li:last-child { border-bottom: 0; }
.entry-list li b, .entry-list li small { display: block; }
.entry-list li b { color: #fff; font-size: 10px; }
.entry-list li small { margin-top: 2px; color: #9db3ba; font-size: 8px; }
.entry-list li button { display: grid; place-items: center; padding: 5px; border: 0; color: var(--danger); background: transparent; cursor: pointer; }
.entry-list li .ui-icon { width: 17px; }
.entry-list .button { margin-top: 10px; }

.info-card { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 11px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; color: #bcd1d6; background: rgba(3, 34, 42, .82); }
.info-card .ui-icon { width: 18px; color: var(--green); }
.info-card p { margin: 0; font-size: 9px; line-height: 1.5; }
.completion-list { padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: rgba(2, 31, 38, .86); }
.completion-list div { min-height: 30px; display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid rgba(66, 131, 135, .2); color: #a7bdc3; font-size: 10px; }
.completion-list div:last-child { border: 0; }
.completion-list .ui-icon { width: 17px; color: #78939b; }
.completion-list div.done { color: #e2eff2; }
.completion-list div.done .ui-icon { color: var(--green); fill: rgba(67, 244, 120, .12); }
.completion-form { margin-top: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(2, 26, 34, .78); }
.payment-row { display: flex; justify-content: space-between; align-items: center; }
.payment-row small, .payment-row b { display: block; }
.payment-row small { color: #9eb5bc; font-size: 8px; }
.payment-row b { margin-top: 3px; color: var(--green); font-size: 16px; }
.payment-row button { width: 35px; height: 35px; display: grid; place-items: center; border: 0; color: var(--green); background: transparent; cursor: pointer; }
.onsite-payment-summary { margin-top: 10px; }
.onsite-payment-summary > p { margin: 6px 0 10px; color: #a9bec4; font-size: 9px; line-height: 1.5; }
.onsite-payment-summary > p b { color: #fff; font-size: 11px; }
.onsite-blockers { display: grid; gap: 5px; margin: 8px 0 0; padding: 0; list-style: none; }
.onsite-blockers li { display: flex; align-items: flex-start; gap: 7px; color: #9fb5bb; font-size: 8px; line-height: 1.4; }
.onsite-blockers .ui-icon { width: 14px; min-width: 14px; color: #f2b84b; }
.onsite-confirm-card { text-align: center; }
.onsite-confirm-card h2 { margin: 6px 0 2px; color: #fff; font-size: 16px; }
.onsite-confirm-card > strong { display: block; color: var(--green); font-size: 27px; }
.onsite-confirm-card > p { color: #a7bdc3; font-size: 9px; line-height: 1.5; }
.onsite-payment-form { margin-top: 10px; }
.onsite-payment-form .consent-row { display: grid; grid-template-columns: 22px 1fr; align-items: start; gap: 8px; color: #dcebed; font-size: 9px; line-height: 1.45; }
.onsite-payment-form .consent-row input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--green); }

.qr-card { padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: linear-gradient(145deg, rgba(3, 31, 39, .98), rgba(1, 19, 26, .98)); text-align: center; }
.qr-card > p { margin: 0 0 5px; color: #d7e6e9; font-size: 10px; }
.qr-card > strong { display: block; margin: 4px 0 8px; color: #fff; font-size: 25px; }
.qr-card > img { width: 175px; height: 175px; padding: 9px; object-fit: contain; border-radius: 4px; background: #fff; }
.qr-card > small { display: block; margin-top: 8px; color: #a9bec4; font-size: 8px; line-height: 1.5; }
.qr-unavailable { min-height: 164px; display: grid; place-items: center; align-content: center; gap: 7px; padding: 15px; border: 1px dashed #2a7c7a; border-radius: 9px; background: rgba(0, 13, 19, .64); }
.qr-unavailable .ui-icon { width: 36px; height: 36px; color: var(--green); }
.qr-unavailable b { color: #fff; font-size: 11px; }
.qr-unavailable span { max-width: 240px; color: #96adb4; font-size: 8px; line-height: 1.4; }
.payment-safety { display: flex; gap: 8px; margin: 9px 0; padding: 9px; border: 1px solid rgba(67, 244, 120, .38); border-radius: 9px; background: rgba(67, 244, 120, .08); text-align: left; }
.payment-safety .ui-icon { width: 18px; color: var(--green); }
.payment-safety b, .payment-safety small { display: block; }
.payment-safety b { color: #e9f6f0; font-size: 9px; }
.payment-safety small { margin-top: 3px; color: #9eb4b9; font-size: 8px; line-height: 1.4; }

.message-list { display: grid; gap: 8px; margin-top: 10px; }
.message-card { padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(145deg, rgba(4, 34, 42, .95), rgba(1, 23, 30, .95)); }
.message-card > div { display: grid; grid-template-columns: 33px 1fr auto; align-items: center; gap: 7px; }
.message-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; color: var(--green); background: var(--green-soft); }
.message-icon .ui-icon { width: 17px; }
.message-card b, .message-card small { display: block; }
.message-card b { color: #f2f8fa; font-size: 10px; }
.message-card small { margin-top: 2px; color: #91aab2; font-size: 7px; }
.message-card > p { margin: 8px 0 0 40px; color: #b6cbd1; font-size: 9px; line-height: 1.45; }
.office-reply { margin: 8px 0 0 40px; padding: 8px; border-left: 2px solid var(--green); border-radius: 0 7px 7px 0; background: var(--green-soft); }
.office-reply b, .office-reply span { display: block; }
.office-reply b { color: var(--green); font-size: 8px; text-transform: uppercase; letter-spacing: .04em; }
.office-reply span { margin-top: 3px; color: #d7e7e9; font-size: 9px; line-height: 1.4; }

.absence-list { display: grid; gap: 7px; }
.absence-list article { min-height: 55px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line-soft); border-radius: 9px; background: rgba(2, 28, 36, .8); }
.absence-list article > span { color: var(--green); }
.absence-list b, .absence-list small { display: block; }
.absence-list b { color: #fff; font-size: 10px; }
.absence-list small { color: #9bb1b8; font-size: 8px; }
.profile-card { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 13px; border: 1px solid var(--green-2); border-radius: 11px; background: linear-gradient(135deg, rgba(5, 43, 45, .96), rgba(2, 26, 34, .96)); }
.profile-card .avatar { width: 48px; height: 48px; font-size: 15px; }
.profile-card h2 { margin: 0; color: #fff; font-size: 15px; }
.profile-card p { margin: 3px 0 0; color: var(--green); font-size: 9px; }
.profile-card small { color: #9fb6bc; font-size: 8px; }
.app-version { margin: 15px 20px 0; color: #708b93; font-size: 8px; line-height: 1.5; text-align: center; }
.privacy-card { padding: 18px; text-align: center; }
.privacy-card > .ui-icon { width: 43px; height: 43px; color: var(--green); }
.privacy-card h2 { color: #fff; font-size: 17px; }
.privacy-card p { color: #abc0c6; font-size: 10px; line-height: 1.6; }

.empty-state { min-height: 150px; display: grid; place-items: center; align-content: center; gap: 6px; padding: 20px; color: #9db4ba; text-align: center; }
.empty-state .ui-icon { width: 35px; height: 35px; color: var(--green); }
.empty-state strong { color: #eaf4f6; font-size: 12px; }
.empty-state p { max-width: 280px; margin: 0; font-size: 9px; line-height: 1.45; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 78px; width: min(calc(100% - 28px), 400px); min-height: 48px; display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid rgba(67, 244, 120, .65); border-radius: 10px; color: #e8f7ee; background: rgba(3, 36, 40, .97); box-shadow: 0 15px 40px rgba(0, 0, 0, .48); transform: translateX(-50%); font-size: 10px; line-height: 1.4; pointer-events: none; }
.toast.error { border-color: rgba(255, 49, 90, .7); background: rgba(47, 11, 21, .97); }
.toast.pending { border-color: rgba(255, 183, 77, .75); background: rgba(48, 31, 6, .97); }
.toast .ui-icon { width: 20px; color: var(--green); }
.toast.error .ui-icon { color: var(--danger); }
.toast-close, .notice-close { margin-left: auto; border: 0; padding: 2px 5px; color: inherit; background: transparent; font: inherit; font-size: 16px; line-height: 1; cursor: pointer; pointer-events: auto; }
.offline-banner { position: relative; z-index: 40; padding: 5px 10px; color: #211300; background: var(--orange); font-size: 8px; font-weight: 800; text-align: center; }
.offline-banner.pending { width: 100%; border: 0; color: #002717; background: var(--green); cursor: pointer; }
.is-busy { cursor: progress; }
.is-busy button { pointer-events: none; }

/* Phase 3 keeps the approved visual language and strengthens field usability. */
.button, .segmented button, .detail-tabs button, .tiny-button, .icon-button { min-height: 44px; }
.icon-button { width: 44px; }
.workflow-next { display: grid; gap: 6px; margin-bottom: 10px; }
.workflow-next .card-kicker { color: var(--green); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.workflow-next .action-card.is-done { border-color: rgba(67, 244, 120, .45); }
.guided-details { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: rgba(2, 25, 34, .72); }
.guided-details > summary { min-height: 44px; display: flex; align-items: center; padding: 9px 11px; color: #dff1f3; font-size: 10px; font-weight: 750; cursor: pointer; }
.guided-details[open] > summary { border-bottom: 1px solid rgba(58, 130, 134, .28); }
.guided-details > .signature-section, .guided-details > .field-grid { padding: 10px; }
.field-help { margin: -2px 0 2px; color: #8fa9b0; font-size: 8px; line-height: 1.45; }
.media-grid .photo-field > span { min-height: 92px; }
.completion-list h3 { margin: 0 0 6px; color: #fff; font-size: 12px; }
.completion-list div { grid-template-columns: 18px 1fr auto; }
.completion-list div button { min-height: 36px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 7px; color: var(--green); background: transparent; font-size: 8px; cursor: pointer; }
.entry-list li .reply-action { width: 38px; min-height: 38px; color: var(--green); }

@media (min-width: 600px) {
  body { background: radial-gradient(circle at center, #092730, #010507 65%); }
  .phone-app, .login-screen { border-right: 1px solid #17424a; border-left: 1px solid #17424a; }
}

@media (max-height: 700px) {
  .login-brand .brand-logo.full-logo { width: 218px; height: 145px; }
  .login-brand h1 { font-size: 25px; }
  .login-claim strong { font-size: 18px; }
  .login-panel { padding: 10px; }
  .input-shell { min-height: 39px; }
  .login-footer { padding-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
