/* RZKCONTROL 2.3.3: responsive shell and jornada checklist. */
:root {
  --layout-gutter: clamp(16px, 3vw, 40px);
  --layout-sidebar: 236px;
}

html { min-width: 320px; }
body { overflow-x: hidden; }
.container, .topbar, .bottom-nav, .pwa-update-notice, .connection-notice { min-width: 0; }
.container > *, .app-screen > *, .card, .section-title, .history-heading { min-width: 0; }
.card, .stat, .summary-card { overflow-wrap: anywhere; }
img, video, canvas { max-width: 100%; }
table { max-width: 100%; }

/* Tablets: use the available width and keep the touch navigation at the bottom. */
@media (min-width: 701px) and (max-width: 1099px) {
  .topbar {
    width: min(100% - 48px, 1040px);
    height: 68px;
    margin: 16px auto 0;
    padding-inline: 24px;
    border: 1px solid #e3ebe5;
    border-radius: 16px;
  }
  .container {
    width: min(100% - 48px, 1040px);
    margin: 28px auto 0;
    padding-bottom: 116px;
  }
  .pwa-update-notice, .connection-notice { width: min(100% - 48px, 1040px); }
  .bottom-nav {
    width: min(680px, calc(100% - 48px));
    min-height: 68px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    padding: 7px 12px;
  }
  .bottom-nav.user-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .nav-item { min-height: 50px; gap: 4px; font-size: 11px; }
  .nav-item span { font-size: 19px; }
  .app-screen[data-screen="today"]:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    gap: 14px;
  }
  .app-screen[data-screen="today"] > .pwa-install-card,
  .app-screen[data-screen="today"] > .active-work-profile,
  .app-screen[data-screen="today"] > .clock-panel,
  .app-screen[data-screen="today"] > .punch-actions,
  .app-screen[data-screen="today"] > .summary-strip,
  .app-screen[data-screen="today"] > .journey-check-card,
  .app-screen[data-screen="today"] > .today-punches { grid-column: 1 / -1; }
  .app-screen[data-screen="today"] > .daily-card { align-self: stretch; }
  .app-screen[data-screen="history"]:not([hidden]) { max-width: 900px; }
  .app-screen[data-screen="summary"]:not([hidden]) { max-width: 960px; }
  .period-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-screen[data-screen="settings"]:not([hidden]),
  .app-screen[data-screen="profile"]:not([hidden]) { max-width: 900px; }
}

/* Desktop: spacious content with persistent side navigation. */
@media (min-width: 1100px) {
  body { min-height: 100vh; background: #f3f7f4; }
  .topbar {
    width: 100%;
    height: 76px;
    margin: 0;
    padding: 0 var(--layout-gutter) 0 calc(var(--layout-sidebar) + var(--layout-gutter) + 24px);
    border: 0;
    border-bottom: 1px solid #e3ebe5;
    border-radius: 0;
  }
  .topbar #logout-button:not([hidden]) { display: inline-flex; }
  .container {
    width: min(1540px, calc(100% - var(--layout-sidebar) - var(--layout-gutter) - 48px));
    max-width: 1540px;
    margin: 36px 24px 0 calc(var(--layout-sidebar) + var(--layout-gutter) + 24px);
    padding-bottom: 48px;
  }
  .auth-wrap { margin-top: clamp(56px, 12vh, 150px); }
  .pwa-update-notice, .connection-notice {
    width: min(920px, calc(100% - var(--layout-sidebar) - 64px));
    margin: 12px 24px 0 calc(var(--layout-sidebar) + var(--layout-gutter) + 24px);
  }
  .bottom-nav {
    top: 92px;
    right: auto;
    bottom: 20px;
    left: 20px;
    width: var(--layout-sidebar);
    height: auto;
    min-height: 0;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 5px;
    padding: 14px;
    border: 1px solid #e1eae3;
    border-radius: 20px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 12px 38px #102a1b12;
  }
  .bottom-nav.user-nav { display: flex; }
  .nav-item {
    min-height: 48px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 0 13px;
    border-radius: 12px;
    font-size: 13px;
    white-space: normal;
  }
  .nav-item span { width: 22px; font-size: 19px; text-align: center; }
  .nav-item.active { background: #edf6f0; color: #126b48; }
  .nav-item.active:before { top: 10px; left: 0; width: 3px; height: 28px; border-radius: 0 4px 4px 0; }
  .app-screen[data-screen="today"]:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    gap: 18px;
    padding-top: 0;
  }
  .app-screen[data-screen="today"] > .pwa-install-card { grid-column: 1 / -1; }
  .app-screen[data-screen="today"] > .clock-panel {
    grid-column: 1 / 8;
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 14px;
    min-height: 74px;
    margin: 0;
    padding: 8px 4px;
  }
  .app-screen[data-screen="today"] > .clock-panel b { font-size: clamp(36px, 4vw, 52px); }
  .app-screen[data-screen="today"] > .clock-panel span { font-size: 13px; }
  .app-screen[data-screen="today"] > .active-work-profile { grid-column: 8 / -1; width: 100%; margin: 0; }
  .app-screen[data-screen="today"] > .punch-actions { grid-column: 1 / 8; justify-content: flex-start; margin: 0; }
  .punch-circle { width: 140px; height: 140px; }
  .punch-circle b { font-size: 16px; }
  .app-screen[data-screen="today"] > .summary-strip {
    grid-column: 8 / -1;
    grid-row: 3 / span 2;
    align-self: center;
    min-height: 90px;
    margin: 0;
  }
  .app-screen[data-screen="today"] > .journey-check-card { grid-column: 1 / -1; }
  .summary-strip b { font-size: 19px; }
  .app-screen[data-screen="today"] > #daily-data-card { grid-column: 1 / 6; }
  .app-screen[data-screen="today"] > #ticket-capture-card { grid-column: 6 / -1; }
  .app-screen[data-screen="today"] > .today-punches { grid-column: 1 / 7; }
  .app-screen[data-screen="today"] > .day-overview { grid-column: 7 / -1; }
  .app-screen[data-screen="today"] > .summary-next-action,
  .app-screen[data-screen="today"] > .pay-breakdown { grid-column: span 6; }
  .app-screen[data-screen="history"]:not([hidden]) {
    display: grid;
    grid-template-columns: minmax(300px, .78fr) minmax(0, 1.42fr);
    align-items: start;
    gap: 18px;
  }
  .app-screen[data-screen="history"] > .screen-heading { grid-column: 1 / -1; margin-bottom: 0; }
  .app-screen[data-screen="history"] > .calendar-card { grid-column: 1; }
  .app-screen[data-screen="history"] > .history-card { grid-column: 2; }
  .history-card { padding: 22px; }
  .app-screen[data-screen="summary"]:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    gap: 18px;
  }
  .app-screen[data-screen="summary"] > .screen-heading { grid-column: 1 / -1; margin-bottom: 0; }
  .app-screen[data-screen="summary"] > .period-card { grid-column: span 4; }
  .app-screen[data-screen="summary"] > .period-metrics { grid-column: span 8; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-screen[data-screen="summary"] > .monthly-comparison,
  .app-screen[data-screen="summary"] > .period-days,
  .app-screen[data-screen="summary"] > .period-disclaimer,
  .app-screen[data-screen="summary"] > .period-calculation { grid-column: 1 / -1; }
  .app-screen[data-screen="summary"] > .day-overview,
  .app-screen[data-screen="summary"] > .summary-next-action,
  .app-screen[data-screen="summary"] > .pay-breakdown,
  .app-screen[data-screen="summary"] > .today-punches { grid-column: span 6; }
  .app-screen[data-screen="settings"]:not([hidden]),
  .app-screen[data-screen="profile"]:not([hidden]) { max-width: 1120px; }
  .app-screen[data-screen="settings"] .settings-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-screen[data-screen="settings"] .settings-account,
  .app-screen[data-screen="settings"] .settings-note,
  .app-screen[data-screen="settings"] .settings-version,
  .app-screen[data-screen="settings"] .danger-zone { grid-column: 1 / -1; }
  .app-screen[data-screen="admin"]:not([hidden]),
  .app-screen[data-screen="plans"]:not([hidden]) { max-width: 1420px; }
  .period-metrics { gap: 12px; }
  .summary-card { min-height: 106px; align-content: center; gap: 10px; padding: 18px; }
  .summary-card b { font-size: clamp(20px, 2vw, 28px); }
  .screen-heading { padding: 6px 2px 4px; }
  .screen-heading h1 { font-size: 32px; }
  .card { border-radius: 18px; padding: 22px; }
  .history-card, .calendar-card { align-self: start; }
  html[data-theme="dark"] .nav-item.active { background: #203a2b; }
}

/* Small phones and landscape touch devices. */
@media (max-width: 700px) {
  .topbar { width: 100%; margin: 0; border-radius: 0; }
  .container { width: min(100% - 28px, 560px); }
  .bottom-nav { width: min(100% - 20px, 520px); }
  .nav-item { min-width: 0; }
  .history-export-actions { flex-wrap: wrap; }
  .history-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-tools .history-search-label { grid-column: 1 / -1; }
  .profile-fieldset, .settings-group, .correction-form { grid-template-columns: minmax(0, 1fr); }
  .monthly-comparison-grid { grid-template-columns: 1fr; }
  .work-profile-item { grid-template-columns: minmax(0, 1fr) auto; }
  .work-profile-badge { grid-column: 1; }
  .ticket-photo-steps { gap: 6px; }
  .ticket-photo-steps li { min-width: 0; }
  .ticket-photo-steps small { overflow-wrap: anywhere; }
}

@media (max-width: 390px) {
  .intro { gap: 8px; }
  .intro h1 { overflow-wrap: anywhere; }
  .today { min-width: 66px; }
  .today-punches, .daily-card, .calendar-card, .history-card { padding: 14px; }
  .summary-strip span { font-size: 8px; }
  .history-tools { grid-template-columns: minmax(0, 1fr); }
  .history-tools .history-search-label { grid-column: auto; }
  .calendar-detail-actions, .history-export-actions { width: 100%; }
  .history-export-actions .button { flex: 1 1 auto; }
  .schedule-weekdays { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (orientation: landscape) and (max-height: 520px) and (max-width: 1099px) {
  .bottom-nav { position: sticky; bottom: auto; left: auto; transform: none; margin: 10px auto; }
  .container { padding-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
}

/* Consistent page composition for Today, Profile and Settings. */
@media (min-width: 701px) {
  .app-screen[data-screen="profile"]:not([hidden]),
  .app-screen[data-screen="settings"]:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
  }
  .app-screen[data-screen="profile"] > .screen-heading,
  .app-screen[data-screen="settings"] > .screen-heading,
  .app-screen[data-screen="profile"] > .settings-account,
  .app-screen[data-screen="settings"] > .settings-account,
  .app-screen[data-screen="settings"] > .settings-pay-card {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
  }
  .app-screen[data-screen="profile"] > .profile-hero { grid-column: span 5; width: 100%; margin: 0; }
  .app-screen[data-screen="profile"] > .profile-completion { grid-column: span 7; width: 100%; margin: 0; }
  .app-screen[data-screen="profile"] > .profile-edit-card { grid-column: span 8; width: 100%; margin: 0; }
  .app-screen[data-screen="profile"] > .profile-details { grid-column: span 4; width: 100%; margin: 0; }
  .app-screen[data-screen="profile"] > .push-reminder-card { grid-column: 1 / -1; width: 100%; margin: 0; }
  .app-screen[data-screen="profile"] > .account-plan-card,
  .app-screen[data-screen="profile"] > .profile-privacy { grid-column: span 6; width: 100%; margin: 0; }
  .app-screen[data-screen="settings"] > .settings-option-card { grid-column: span 6; width: 100%; margin: 0; }
  .app-screen[data-screen="settings"] > .settings-version,
  .app-screen[data-screen="settings"] > .danger-zone { grid-column: 1 / -1; width: 100%; margin: 0; }
  .app-screen[data-screen="profile"] > .screen-heading,
  .app-screen[data-screen="settings"] > .screen-heading { margin-bottom: 0; }
}
@media (min-width: 701px) {
  .app-screen[data-screen="today"] > .today-shortcuts { grid-column: 1 / -1; }
}

@media (min-width: 1100px) {
  .app-screen[data-screen="settings"] > .settings-pay-card { grid-column: 1 / -1; }
  .app-screen[data-screen="settings"] > .settings-option-card { grid-column: span 4; }
  .app-screen[data-screen="settings"] > .theme-card { grid-column: span 4; }
  .app-screen[data-screen="settings"] > .danger-zone { grid-column: span 8; }
  .app-screen[data-screen="settings"] > .settings-version { grid-column: span 4; }
  .app-screen[data-screen="today"] > .clock-panel,
  .app-screen[data-screen="today"] > .active-work-profile,
  .app-screen[data-screen="today"] > .punch-actions,
  .app-screen[data-screen="today"] > .summary-strip,
  .app-screen[data-screen="today"] > .today-punches,
  .app-screen[data-screen="today"] > #daily-data-card,
  .app-screen[data-screen="today"] > #ticket-capture-card,
  .app-screen[data-screen="today"] > .journey-check-card { align-self: stretch; }
}

@media (max-width: 700px) {
  .app-screen[data-screen="today"] { gap: 10px; }
  .app-screen[data-screen="today"] > .clock-panel {
    min-height: 104px;
    align-content: center;
    padding: 15px 18px 13px;
    border: 1px solid #e0eae2;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff 0%, #f1f8f3 100%);
    box-shadow: 0 6px 20px #173a2608;
  }
  .clock-panel b { font-size: clamp(38px, 12vw, 50px); letter-spacing: -1.8px; }
  .clock-panel span { font-size: 12px; }
  .active-work-profile { width: 100%; margin: 0 0 2px; padding: 13px; border-radius: 14px; font-size: 12px; }
  .active-work-profile select { min-height: 44px; }
  .punch-actions { margin: 2px auto 4px; }
  .punch-circle { width: 132px; height: 132px; }
  .punch-circle b { font-size: 16px; }
  .summary-strip {
    min-height: 72px;
    height: auto;
    margin: 0 0 2px;
    border-radius: 15px;
    box-shadow: 0 4px 16px #173a2607;
  }
  .summary-strip > div { min-width: 0; padding: 10px 4px; }
  .summary-strip b { font-size: clamp(15px, 4vw, 19px); }
  .summary-strip span { font-size: 9px; line-height: 1.3; }
  .today-punches, .daily-card, #ticket-capture-card, .journey-check-card { border-radius: 16px; padding: 16px; }
  .today-punches .section-title h2,
  .daily-card .section-title h2,
  #ticket-capture-card .section-title h2 { font-size: 14px; }
  .timeline-row { grid-template-columns: 14px minmax(0, 1fr) auto; gap: 9px; padding: 11px 2px; font-size: 12px; }
  .timeline-row b { font-size: 12px; }
  .daily-card form { gap: 12px; }
  .daily-card label, .profile-edit-form label, .settings-group label { font-size: 12px; }
  .daily-card input:not([type=hidden]):not([type=file]) { height: 44px; border-radius: 10px; padding-inline: 12px; font-size: 14px; }
  .daily-card .button, .profile-edit-form .button, .settings-screen .settings-option-card > .button { min-height: 44px; }
  .ticket-help { font-size: 12px; line-height: 1.6; }
  .ticket-photo-steps { gap: 7px; }
  .ticket-photo-steps li { min-height: 55px; padding: 8px; }
  .ticket-photo-steps li > b, .ticket-photo-steps li > small { white-space: normal; font-size: 9px; line-height: 1.3; }

  .profile-screen { gap: 10px; }
  .app-screen[data-screen="profile"] > .push-reminder-card { grid-column: 1 / -1; }
  .profile-screen .screen-heading { padding: 14px 2px 4px; }
  .profile-screen .screen-heading h1,
  .settings-screen .screen-heading h1 { font-size: 28px; letter-spacing: -.7px; }
  .profile-hero { min-height: 82px; gap: 13px; border-radius: 16px; padding: 16px; }
  .profile-avatar-large { width: 48px; height: 48px; flex: 0 0 48px; font-size: 20px; }
  .profile-hero h2 { font-size: 16px; overflow-wrap: anywhere; }
  .profile-hero p { font-size: 12px; overflow-wrap: anywhere; }
  .profile-completion, .profile-edit-card, .profile-details, .push-reminder-card, .account-plan-card, .profile-privacy { border-radius: 16px; padding: 16px; }
  .profile-completion-heading h2 { font-size: 14px; }
  .profile-completion-heading p, .profile-completion-hint { font-size: 11px; }
  .profile-completion progress { height: 10px; }
  .profile-edit-card > .section-title h2 { font-size: 14px; line-height: 1.4; }
  .profile-form-note { margin: 0 0 12px; font-size: 11px; line-height: 1.55; }
  .profile-edit-form { gap: 12px; }
  .profile-fieldset { gap: 12px; padding: 13px; border-radius: 12px; }
  .profile-fieldset legend { font-size: 11px; }
  .profile-edit-form input { min-height: 44px; border-radius: 10px; padding-inline: 11px; font-size: 14px; }
  .profile-fieldset small { font-size: 10px; line-height: 1.5; }
  .profile-push-consent { align-items: flex-start; gap: 10px; font-size: 11px; line-height: 1.5; }
  .profile-push-consent input { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 1px; }
  .profile-edit-form > .button { width: 100%; }
  .profile-details > div:not(.section-title) { padding: 11px 0; }
  .profile-details > div > span { font-size: 10px; }
  .profile-details > div > b { font-size: 12px; }
  .account-plan-heading h2 { font-size: 15px; }
  .account-plan-detail { font-size: 12px; line-height: 1.5; }
  .account-plan-note, .profile-privacy p { font-size: 11px; line-height: 1.55; }
  .profile-privacy .button { min-height: 42px; }

  .settings-screen { gap: 10px; }
  .settings-screen .screen-heading { padding: 14px 2px 4px; }
  .settings-screen .settings-account,
  .settings-screen .settings-pay-card,
  .settings-screen .settings-option-card,
  .settings-screen .settings-version { border-radius: 16px; padding: 16px; margin: 0 0 2px; }
  .settings-screen .settings-account { min-height: 76px; }
  .settings-screen .settings-account h2 { font-size: 15px; overflow-wrap: anywhere; }
  .settings-screen .settings-account p { font-size: 11px; overflow-wrap: anywhere; }
  .settings-screen .settings-section-heading { align-items: flex-start; gap: 11px; }
  .settings-screen .settings-section-icon { width: 40px; height: 40px; font-size: 13px; }
  .settings-screen .settings-section-heading h2 { font-size: 14px; line-height: 1.35; }
  .settings-screen .settings-section-heading p,
  .settings-screen .settings-option-card > div > p { font-size: 11px; line-height: 1.55; }
  .settings-screen .settings-form { gap: 12px; }
  .settings-screen .settings-group { gap: 12px; padding: 13px; border-radius: 12px; }
  .settings-screen .settings-group legend { font-size: 11px; }
  .settings-screen .settings-group input,
  .settings-screen .settings-group select,
  .settings-screen .settings-form input { min-height: 44px; height: auto; border-radius: 10px; padding-inline: 11px; font-size: 14px; }
  .settings-screen .settings-group small { font-size: 10px; line-height: 1.5; }
  .settings-screen .settings-save-row { align-items: stretch; flex-direction: column; }
  .settings-screen .settings-save-row > span { font-size: 10px; }
  .settings-screen .settings-save-row .button,
  .settings-screen .settings-option-card > .button { width: 100%; min-height: 44px; height: auto; white-space: normal; }
  .settings-screen .settings-version { min-height: 64px; }
  .settings-screen .settings-version h2 { font-size: 12px; }
  .settings-screen .settings-version p { font-size: 11px; }
  .settings-screen .danger-zone { border-radius: 14px; }
  .settings-screen .danger-zone .settings-form button { width: 100%; }
}

@media (min-width: 701px) and (max-width: 1099px) {
  .app-screen[data-screen="today"] > .clock-panel { grid-column: 1 / 7; align-self: center; }
  .app-screen[data-screen="today"] > .active-work-profile { grid-column: 7 / -1; align-self: center; }
  .app-screen[data-screen="today"] > .punch-actions { grid-column: 1 / 7; align-self: center; }
  .app-screen[data-screen="today"] > .summary-strip { grid-column: 7 / -1; align-self: center; }
  .app-screen[data-screen="today"] > #daily-data-card,
  .app-screen[data-screen="today"] > #ticket-capture-card { grid-column: span 6; }
  .app-screen[data-screen="today"] > .journey-check-card,
  .app-screen[data-screen="today"] > .today-punches { grid-column: 1 / -1; }
  .app-screen[data-screen="profile"] > .profile-edit-card { grid-column: span 7; }
  .app-screen[data-screen="profile"] > .profile-details { grid-column: span 5; }
  .app-screen[data-screen="profile"] > .push-reminder-card { grid-column: 1 / -1; }
  .app-screen[data-screen="settings"] > .settings-option-card { grid-column: span 6; }
}

/* Personal tools: estimates and local review aids, never write journey data. */
.bottom-nav.user-nav { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.today-shortcuts { margin-bottom: 8px; }
.today-shortcuts .section-title { margin-bottom: 10px; }
.text-button { border: 0; background: transparent; color: #176345; font: 650 10px system-ui, sans-serif; cursor: pointer; }
.today-shortcut-links { display: flex; flex-wrap: wrap; gap: 8px; }
.today-shortcut-link { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px; border: 1px solid #dce8df; border-radius: 11px; background: #f7faf7; color: #176345; font: 650 11px system-ui, sans-serif; cursor: pointer; }
.today-shortcut-link span { font-size: 16px; }
.tools-screen { padding-bottom: 14px; }
.tools-card { display: grid; align-content: start; gap: 16px; min-width: 0; margin-bottom: 10px; border-radius: 16px; }
.tools-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; min-width: 0; }
.tools-card-heading > div:first-child { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.tools-icon { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 13px; background: #eaf5ed; color: #176345; font-size: 18px; font-weight: 750; }
.tools-card-heading h2 { margin: 1px 0 5px; color: #22372a; font: 750 15px var(--display); letter-spacing: -.2px; }
.tools-card-heading p { max-width: 580px; margin: 0; color: #77848d; font-size: 11px; line-height: 1.5; }
.tools-profile-label, .tools-week-progress { flex: none; padding: 6px 10px; border-radius: 999px; background: #edf6f0; color: #176345; font-size: 10px; font-weight: 700; }
.tools-time-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tools-time-form label, .tools-range-label { display: grid; gap: 6px; min-width: 0; color: #5f7065; font-size: 11px; font-weight: 650; }
.tools-time-form input, .tools-range-label select { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #dce7df; border-radius: 11px; padding: 0 12px; background: #fff; color: #29392f; font: 14px system-ui, sans-serif; }
.tools-time-form .button { grid-column: 1 / -1; min-height: 44px; }
.tools-result { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; padding: 12px; border: 1px solid #dce9df; border-radius: 13px; background: #f7fbf8; }
.tools-result article, .tools-period-metrics article { display: grid; gap: 6px; min-width: 0; padding: 11px; border-radius: 11px; background: #fff; }
.tools-result article span, .tools-period-metrics article span { color: #77848d; font-size: 10px; line-height: 1.35; }
.tools-result article b, .tools-period-metrics article b { color: #20372a; font: 750 20px var(--display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tools-result > p { grid-column: 1 / -1; margin: 0; color: #66776c; font-size: 10px; line-height: 1.5; }
.tools-range-label { width: min(140px, 35%); flex: 0 0 auto; font-size: 10px; }
.tools-range-label select { min-height: 38px; padding-inline: 9px; font-size: 12px; }
.tools-period-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.tools-period-metrics article { border: 1px solid #edf1ee; }
.tools-compare { display: grid; gap: 12px; padding-top: 15px; border-top: 1px solid #e9efeb; }
.tools-compare-card .tools-compare { padding-top: 0; border-top: 0; }
.tools-compare-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tools-compare-heading h3 { margin: 0 0 4px; color: #263b2e; font: 750 13px var(--display); }
.tools-compare-heading p { max-width: 420px; margin: 0; color: #77848d; font-size: 10px; line-height: 1.45; }
.tools-compare-period-labels { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; color: #748279; font-size: 9px; line-height: 1.4; }
.tools-compare-period-labels span:last-child { text-align: right; }
.tools-compare-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.tools-compare-row { min-width: 0; padding: 11px; border: 1px solid #e9efeb; border-radius: 12px; background: #fbfdfb; }
.tools-compare-row-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.tools-compare-row-head b { color: #35493b; font-size: 10px; }
.tools-compare-row-head span { color: #176345; font-size: 9px; font-weight: 700; text-align: right; }
.tools-compare-values { display: grid; gap: 7px; }
.tools-compare-values > div { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 7px; color: #627168; font-size: 10px; font-variant-numeric: tabular-nums; }
.tools-compare-values i { display: block; height: 6px; overflow: hidden; border-radius: 99px; background: #e9efeb; }
.tools-compare-values i b { display: block; height: 100%; border-radius: inherit; background: #21805b; }
.tools-compare-values > div:last-child i b { background: #a7b8ad; }
.tools-compare-unavailable { margin: 0; padding: 12px; border: 1px dashed #dce7df; border-radius: 12px; color: #6c7b72; font-size: 10px; line-height: 1.5; }
.tools-note { margin: 0; color: #77848d; font-size: 10px; line-height: 1.5; }
.tools-empty { margin: 0; padding: 14px; border: 1px dashed #dce7df; border-radius: 12px; color: #77848d; font-size: 11px; text-align: center; }
.tools-week-list { display: grid; gap: 9px; }
.tools-week-day { min-width: 0; padding: 12px; border: 1px solid #e6ede8; border-radius: 13px; background: #fbfdfb; }
.tools-week-day-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.tools-week-day-heading b { color: #2b4032; font-size: 12px; text-transform: capitalize; }
.tools-week-day-heading > span { color: #77848d; font-size: 10px; text-align: right; }
.tools-week-day-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.tools-week-correct { margin-top: 9px; }
.tools-week-check, .tools-shortcut-options label { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 7px 10px; border: 1px solid #e5ece7; border-radius: 10px; background: #fff; color: #52645a; font-size: 10px; line-height: 1.4; cursor: pointer; }
.tools-week-check input, .tools-shortcut-options input { flex: 0 0 17px; width: 17px; height: 17px; margin: 0; accent-color: #176345; }
.tools-week-muted { display: block; margin-top: 8px; color: #89959e; font-size: 9px; }
.tools-shortcut-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
html[data-theme="dark"] .tools-card-heading h2,
html[data-theme="dark"] .tools-week-day-heading b,
html[data-theme="dark"] .tools-result article b,
html[data-theme="dark"] .tools-period-metrics article b { color: #e6eeea; }
html[data-theme="dark"] .tools-compare-heading h3,
html[data-theme="dark"] .tools-compare-row-head b { color: #e6eeea; }
html[data-theme="dark"] .tools-compare-heading p,
html[data-theme="dark"] .tools-compare-period-labels,
html[data-theme="dark"] .tools-compare-values > div,
html[data-theme="dark"] .tools-compare-unavailable { color: #a8b8b3; }
html[data-theme="dark"] .tools-card-heading p,
html[data-theme="dark"] .tools-note,
html[data-theme="dark"] .tools-week-day-heading > span,
html[data-theme="dark"] .tools-result > p { color: #a8b8b3; }
html[data-theme="dark"] .tools-icon,
html[data-theme="dark"] .tools-profile-label,
html[data-theme="dark"] .tools-week-progress { background: #203a2b; color: #c0e6cb; }
html[data-theme="dark"] .tools-time-form input,
html[data-theme="dark"] .tools-range-label select,
html[data-theme="dark"] .tools-week-check,
html[data-theme="dark"] .tools-shortcut-options label,
html[data-theme="dark"] .tools-result article,
html[data-theme="dark"] .tools-period-metrics article { border-color: #35464a; background: #10191d; color: #e6eeea; }
html[data-theme="dark"] .tools-compare { border-color: #35464a; }
html[data-theme="dark"] .tools-compare-row { border-color: #35464a; background: #172328; }
html[data-theme="dark"] .tools-compare-values i { background: #35464a; }
html[data-theme="dark"] .tools-result,
html[data-theme="dark"] .tools-week-day { border-color: #35464a; background: #172328; }
html[data-theme="dark"] .tools-period-metrics article span { color: #a8b8b3; }
html[data-theme="dark"] .today-shortcut-link { border-color: #35464a; background: #172328; color: #c0e6cb; }
html[data-theme="dark"] .text-button { color: #c0e6cb; }

@media (min-width: 701px) {
  .app-screen[data-screen="tools"]:not([hidden]) { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; gap: 16px; }
  .app-screen[data-screen="tools"] > .screen-heading { grid-column: 1 / -1; margin-bottom: 0; }
  .app-screen[data-screen="tools"] > .tools-calculator-card { grid-column: span 7; }
  .app-screen[data-screen="tools"] > .tools-period-card { grid-column: span 5; }
  .app-screen[data-screen="tools"] > .tools-compare-card { grid-column: 1 / -1; }
  .app-screen[data-screen="tools"] > .tools-week-card { grid-column: span 7; }
  .app-screen[data-screen="tools"] > .tools-shortcuts-card { grid-column: span 5; }
  .app-screen[data-screen="tools"] > .tools-card { margin: 0; }
  .app-screen[data-screen="tools"] .tools-time-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .bottom-nav.user-nav { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .nav-item { font-size: 8px; }
  .nav-item span { font-size: 15px; }
  .app-screen[data-screen="today"] > .today-shortcuts { grid-column: 1 / -1; }
  .today-shortcuts { padding: 14px; border-radius: 15px; }
  .today-shortcut-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .today-shortcut-link { justify-content: space-between; min-width: 0; min-height: 42px; padding-inline: 10px; font-size: 10px; }
  .tools-screen { gap: 0; }
  .tools-screen .screen-heading { padding: 14px 2px 10px; }
  .tools-screen .screen-heading h1 { font-size: 28px; }
  .tools-card { gap: 13px; padding: 16px; border-radius: 15px; }
  .tools-card-heading { gap: 8px; }
  .tools-card-heading > div:first-child { gap: 10px; }
  .tools-icon { flex-basis: 36px; width: 36px; height: 36px; border-radius: 12px; font-size: 16px; }
  .tools-card-heading h2 { font-size: 14px; }
  .tools-card-heading p { font-size: 10px; }
  .tools-profile-label, .tools-week-progress { max-width: 105px; padding: 5px 8px; font-size: 9px; text-align: center; }
  .tools-time-form { gap: 10px; }
  .tools-time-form label, .tools-range-label { font-size: 10px; }
  .tools-time-form input { min-height: 46px; border-radius: 10px; font-size: 16px; }
  .tools-time-form .button { min-height: 46px; }
  .tools-result { gap: 6px; padding: 8px; }
  .tools-result article, .tools-period-metrics article { padding: 9px; }
  .tools-result article span, .tools-period-metrics article span { font-size: 9px; }
  .tools-result article b, .tools-period-metrics article b { font-size: 17px; }
  .tools-range-label { width: 96px; }
  .tools-range-label select { min-height: 40px; font-size: 12px; }
  .tools-compare-heading { display: grid; }
  .tools-compare-heading .tools-range-label { width: min(100%, 190px); }
  .tools-compare-list { gap: 7px; }
  .tools-compare-row { padding: 9px; }
  .tools-week-day { padding: 10px; }
  .tools-week-day-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .tools-week-check { min-height: 42px; padding: 7px; font-size: 9px; }
  .tools-shortcut-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .tools-shortcut-options label { min-height: 42px; padding: 7px; font-size: 10px; }
}
@media (max-width: 360px) {
  .bottom-nav.user-nav { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bottom-nav.user-nav .nav-item { gap: 1px; padding-inline: 0; font-size: 7px; }
  .bottom-nav.user-nav .nav-item span { font-size: 13px; }
  .tools-result { grid-template-columns: 1fr; }
  .tools-compare-list { grid-template-columns: 1fr; }
  .tools-result article { grid-template-columns: 1fr auto; align-items: center; }
  .tools-result > p { grid-column: 1; }
  .tools-week-day-checks { grid-template-columns: 1fr; }
}

.journey-check-card { display: grid; gap: 10px; border-color: #dce9df; }
.journey-check-card[hidden] { display: none !important; }
.journey-check-card .section-title { margin: 0; }
.journey-check-card .section-title h2 { font-size: 15px; }
.journey-check-status { flex: none; padding: 5px 9px; border-radius: 999px; background: #edf6f0; color: #286d48; font-size: 10px; font-weight: 700; }
.journey-check-status.has-pending { background: #fff5e3; color: #805700; }
.journey-check-status.is-error { background: #fff0ed; color: #a74336; }
.journey-check-intro { margin: 0; color: #718078; font-size: 11px; line-height: 1.5; }
.journey-check-list { display: grid; gap: 8px; }
.journey-check-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-width: 0; padding: 11px 12px; border: 1px solid #e8eeea; border-radius: 12px; background: #fbfcfb; }
.journey-check-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #edf6f0; color: #286d48; font-size: 14px; font-weight: 800; }
.journey-check-item.is-pending .journey-check-icon { background: #fff1d3; color: #805700; }
.journey-check-item.is-error .journey-check-icon { background: #ffebe7; color: #a74336; }
.journey-check-copy { display: grid; gap: 3px; min-width: 0; }
.journey-check-copy b { color: #27392e; font-size: 12px; overflow-wrap: anywhere; }
.journey-check-copy small { color: #718078; font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
.journey-check-item button { min-height: 36px; padding: 0 11px; border: 1px solid #dce8df; border-radius: 9px; background: #fff; color: #176345; font: 650 10px system-ui, sans-serif; cursor: pointer; }
.journey-check-item button:hover { background: #edf6f0; }
html[data-theme="dark"] .journey-check-card { background: #182429; border-color: #35464a; }
html[data-theme="dark"] .journey-check-status { background: #203a2b; color: #c0e6cb; }
html[data-theme="dark"] .journey-check-status.has-pending { background: #3c321d; color: #f2d980; }
html[data-theme="dark"] .journey-check-status.is-error { background: #4a2925; color: #f0a39a; }
html[data-theme="dark"] .journey-check-intro, html[data-theme="dark"] .journey-check-copy small { color: #a8b8b3; }
html[data-theme="dark"] .journey-check-item { background: #10191d; border-color: #35464a; }
html[data-theme="dark"] .journey-check-copy b { color: #e6eeea; }
html[data-theme="dark"] .journey-check-item button { background: #243439; border-color: #35464a; color: #c0e6cb; }
html[data-theme="dark"] .journey-check-item button:hover { background: #203a2b; }
@media (max-width: 520px) {
  .journey-check-item { grid-template-columns: 30px minmax(0, 1fr); gap: 9px; padding: 10px; }
  .journey-check-icon { width: 29px; height: 29px; }
  .journey-check-item button { grid-column: 2; justify-self: start; }
}

/* Present wide desktop tables as readable data cards on phones. */
@media (max-width: 700px) {
  .period-table-wrap,
  .history-card .table-wrap { overflow: visible; }

  .period-table,
  .history-card table {
    display: block;
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .period-table thead,
  .history-card thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .period-table tbody,
  .history-card tbody { display: grid; gap: 10px; }

  .period-table tbody tr {
    display: grid;
    grid-template-areas:
      "date status"
      "entry pause"
      "exit hours"
      "extras night"
      "line line"
      "ticket estimate";
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
    min-width: 0;
    padding: 9px 13px;
    border: 1px solid #e5ece7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 12px #1e38210a;
  }

  .period-table td {
    display: grid;
    align-content: start;
    gap: 4px;
    min-width: 0;
    padding: 9px 0;
    border: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 12px;
  }

  .period-table td::before,
  .history-card td::before {
    content: attr(data-label);
    color: #839087;
    font-size: 9px;
    font-weight: 650;
    letter-spacing: .02em;
  }

  .period-table td:nth-child(1) { grid-area: date; }
  .period-table td:nth-child(2) { grid-area: entry; }
  .period-table td:nth-child(3) { grid-area: pause; }
  .period-table td:nth-child(4) { grid-area: exit; }
  .period-table td:nth-child(5) { grid-area: status; }
  .period-table td:nth-child(6) { grid-area: hours; }
  .period-table td:nth-child(7) { grid-area: extras; }
  .period-table td:nth-child(8) { grid-area: night; }
  .period-table td:nth-child(9) { grid-area: line; }
  .period-table td:nth-child(10) { grid-area: ticket; }
  .period-table td:nth-child(11) { grid-area: estimate; }
  .period-table td:nth-child(1),
  .period-table td:nth-child(5) { align-content: center; }
  .period-table td:nth-child(1) { font-weight: 750; }

  .history-card table { min-width: 0; }
  .history-card tbody tr {
    display: grid;
    grid-template-areas:
      "date kind"
      "title title"
      "detail detail"
      "summary actions";
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 12px;
    min-width: 0;
    padding: 8px 13px;
    border: 1px solid #e5ece7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 12px #1e38210a;
  }

  .history-card tbody td {
    display: grid;
    align-content: start;
    gap: 4px;
    min-width: 0;
    padding: 8px 0;
    border: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 12px;
    line-height: 1.45;
  }

  .history-card tbody td:nth-child(1) { grid-area: date; }
  .history-card tbody td:nth-child(2) { grid-area: kind; justify-items: end; }
  .history-card tbody td:nth-child(3) { grid-area: title; font-weight: 700; }
  .history-card tbody td:nth-child(4) { grid-area: detail; color: #65746a; }
  .history-card tbody td:nth-child(5) { grid-area: summary; }
  .history-card tbody td:nth-child(6) {
    grid-area: actions;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
  }

  html[data-theme="dark"] .period-table tbody tr,
  html[data-theme="dark"] .history-card tbody tr {
    border-color: #35464a;
    background: #10191d;
    box-shadow: none;
  }
  html[data-theme="dark"] .period-table td,
  html[data-theme="dark"] .history-card tbody td { color: #e6eeea; }
  html[data-theme="dark"] .period-table td::before,
  html[data-theme="dark"] .history-card td::before { color: #a8b8b3; }
  html[data-theme="dark"] .history-card tbody td:nth-child(4) { color: #a8b8b3; }
}

/* Botao principal de ponto: alvo amplo, hierarquia clara e foco acessivel. */
.punch-actions{width:100%;max-width:420px}
.punch-circle{position:relative;width:min(100%,360px);min-width:0;height:78px;padding:11px 15px;border:1px solid #116746;border-radius:20px;background:linear-gradient(135deg,#16825a 0%,#116746 100%);color:#fff;box-shadow:0 10px 24px #11674630,inset 0 1px #ffffff2b;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:12px;text-align:left;transition:transform .18s,box-shadow .18s,filter .18s}
.punch-circle:hover{filter:none;transform:translateY(-2px);box-shadow:0 14px 28px #1167463b,inset 0 1px #ffffff2b}
.punch-circle:active{transform:scale(.985)}
.punch-circle:focus-visible{outline:3px solid #8fd6ae;outline-offset:3px}
.punch-circle:disabled{cursor:wait;opacity:.72;transform:none}
.punch-icon{width:48px;height:48px;flex:0 0 48px;border:1px solid #ffffff3b;border-radius:15px;background:#ffffff1c;color:#fff;display:grid;place-items:center;font-size:23px;font-weight:700}
.punch-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.punch-label{min-width:0;display:grid;gap:3px}
.punch-label b{font:750 15px/1.15 Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:inherit}
.punch-label span{font-size:11px;line-height:1.25;color:#e0f4e8;text-transform:none;opacity:.94}
.punch-arrow{width:32px;height:32px;flex:0 0 32px;margin-left:auto;border:1px solid #ffffff35;border-radius:50%;background:#ffffff16;display:grid;place-items:center;font-size:20px;line-height:1;color:#fff}
.punch-circle.completed{border-color:#d6e5da;background:linear-gradient(135deg,#eff6f0,#e5efe7);color:#476a53;box-shadow:none;cursor:default}
.punch-circle.completed .punch-icon{border-color:#d4e8d9;background:#fff;color:#2c8a5b}
.punch-circle.completed .punch-label span{color:#708577}
html[data-theme="dark"] .punch-circle.completed{border-color:#33483b;background:linear-gradient(135deg,#1b3026,#20372b);color:#d9eadf}
html[data-theme="dark"] .punch-circle.completed .punch-icon{border-color:#395845;background:#1a2a21;color:#9bd4ae}
html[data-theme="dark"] .punch-circle.completed .punch-label span{color:#aec1b3}
@media(max-width:700px){.punch-actions{max-width:480px}.punch-circle{width:100%;height:76px;border-radius:18px}.punch-icon{width:46px;height:46px;flex-basis:46px}}
@media(prefers-reduced-motion:reduce){.punch-circle{transition:none}.punch-circle:hover,.punch-circle:active{transform:none}}
/* Tela inicial de jornada: cabecalho, relogio e acoes com leitura imediata. */
.app-screen[data-screen="today"] > .today-heading{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 2px;padding:4px 2px}
.today-heading .eyebrow{margin:0 0 6px;color:#40845e;font-size:10px;font-weight:800;letter-spacing:1.5px}
.today-heading h1{margin:0;color:#17291e;font:780 clamp(25px,3vw,34px)/1.1 Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;letter-spacing:-1.1px}
.today-heading>div>p:last-child{margin:7px 0 0;color:#718277;font-size:12px;line-height:1.45}
.today-heading-badge{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;padding:9px 13px;border:1px solid #dfeae2;border-radius:999px;background:#fff;color:#587261;font-size:11px;font-weight:650}
.today-heading-badge i{width:8px;height:8px;border-radius:50%;background:#36a66b;box-shadow:0 0 0 4px #e8f5ec}
.app-screen[data-screen="today"] > .clock-panel{min-height:142px;display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0;padding:22px 25px;border:1px solid #dce9df;border-radius:22px;background:radial-gradient(circle at 88% 18%,#e0f3e6 0,transparent 30%),linear-gradient(135deg,#fff 0%,#f4faf5 100%);box-shadow:0 10px 28px #173a260a;text-align:left}
.clock-time-group{display:grid;gap:6px;min-width:0}
.clock-kicker{color:#718579;font-size:10px;font-weight:750;letter-spacing:1.25px}
.app-screen[data-screen="today"] > .clock-panel b{color:#172b20;font:780 clamp(42px,6vw,64px)/1 Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;letter-spacing:-2.7px;font-variant-numeric:tabular-nums}
.clock-date-tag{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;padding:10px 13px;border:1px solid #e0ebe2;border-radius:12px;background:#fff;color:#536e5b;font-size:12px;font-weight:650;white-space:nowrap}
.clock-date-tag>span:first-child{color:#218052;font-size:16px}
.app-screen[data-screen="today"] > .active-work-profile{align-self:stretch;display:grid;align-content:center;gap:9px;min-height:94px;margin:0;padding:17px 19px;border:1px solid #e2ebe4;border-radius:18px;background:#fff;box-shadow:0 6px 18px #173a2607;color:#435a49;font-size:12px;font-weight:700}
.active-work-profile select{min-height:42px;border:1px solid #dce8df;border-radius:10px;background:#f9fbf9;color:#263d2d;font-size:13px}
.active-work-profile small{color:#839087;font-size:10px;line-height:1.45;font-weight:450}
.app-screen[data-screen="today"] > .summary-strip{min-height:90px;height:auto;padding:14px 8px;border:1px solid #e1ebe3;border-radius:18px;background:linear-gradient(135deg,#fff 0%,#f7fbf7 100%);box-shadow:0 8px 22px #173a2608}
.summary-strip>div{gap:5px}
.summary-strip b{color:#1d5639;font-size:clamp(18px,2vw,24px);font-weight:780;font-variant-numeric:tabular-nums}
.summary-strip span{color:#748579;font-size:10px;line-height:1.35}
.app-screen[data-screen="today"] > .today-punches,.app-screen[data-screen="today"] > .daily-card,.app-screen[data-screen="today"] > #ticket-capture-card,.app-screen[data-screen="today"] > .journey-check-card{border-radius:18px;box-shadow:0 6px 20px #173a2607}
.today-punches .section-title{margin-bottom:4px}
.today-punches .status-chip{border-radius:999px;padding:6px 10px}
html[data-theme="dark"] .today-heading h1{color:#e4eee7}
html[data-theme="dark"] .today-heading .eyebrow{color:#8bc5a0}
html[data-theme="dark"] .today-heading>div>p:last-child{color:#a6b8ac}
html[data-theme="dark"] .today-heading-badge{border-color:#34483b;background:#1b2b21;color:#c4d6ca}
html[data-theme="dark"] .app-screen[data-screen="today"] > .clock-panel{border-color:#34483b;background:radial-gradient(circle at 88% 18%,#244735 0,transparent 30%),linear-gradient(135deg,#1b2a21 0%,#17251d 100%);box-shadow:0 10px 28px #0002}
html[data-theme="dark"] .app-screen[data-screen="today"] > .clock-panel b{color:#f0f6f1}
html[data-theme="dark"] .clock-kicker{color:#a7b9ad}
html[data-theme="dark"] .clock-date-tag{border-color:#34483b;background:#22352a;color:#d2e1d6}
html[data-theme="dark"] .app-screen[data-screen="today"] > .active-work-profile{border-color:#34483b;background:#1b2a21;color:#dce9df;box-shadow:none}
html[data-theme="dark"] .active-work-profile select{border-color:#3b5142;background:#142019;color:#e4eee7}
html[data-theme="dark"] .active-work-profile small{color:#a6b8ac}
html[data-theme="dark"] .app-screen[data-screen="today"] > .summary-strip{border-color:#34483b;background:linear-gradient(135deg,#1b2b21,#203329);box-shadow:none}
html[data-theme="dark"] .summary-strip b{color:#9bd4ae}
html[data-theme="dark"] .summary-strip span{color:#a6b8ac}
@media(max-width:700px){
  .app-screen[data-screen="today"]{gap:11px}
  .app-screen[data-screen="today"] > .today-heading{align-items:flex-start;margin:1px 1px 2px;padding:2px 0}
  .today-heading .eyebrow{font-size:9px}
  .today-heading h1{font-size:26px}
  .today-heading>div>p:last-child{max-width:255px;font-size:11px}
  .today-heading-badge{gap:6px;padding:8px 9px;font-size:9px}
  .app-screen[data-screen="today"] > .clock-panel{min-height:132px;display:flex;align-content:initial;align-items:center;justify-content:space-between;gap:8px;margin:0;padding:19px 17px;border-radius:20px;text-align:left}
  .clock-time-group{gap:7px}
  .clock-kicker{font-size:9px;letter-spacing:1px}
  .app-screen[data-screen="today"] > .clock-panel b{font-size:clamp(39px,12vw,53px);letter-spacing:-2px}
  .clock-date-tag{gap:6px;padding:8px 9px;border-radius:10px;font-size:10px}
  .app-screen[data-screen="today"] > .active-work-profile{min-height:0;padding:14px;border-radius:16px}
  .app-screen[data-screen="today"] > .summary-strip{min-height:80px;padding:10px 5px;border-radius:16px}
  .summary-strip>div{padding:9px 3px}
  .summary-strip b{font-size:clamp(17px,5vw,21px)}
  .summary-strip span{font-size:9px}
}

/* Tema Futurista: sistema visual unificado para a experiência web. */
html[data-theme="future"] {
  color-scheme: dark;
  --green: #58e39b;
  --line: #263a40;
  --muted: #a0b5b7;
  color: #e8f4f0;
  background: #0b1419;
  accent-color: #58e39b;
}
html[data-theme="future"] body {
  color: #e8f4f0;
  background: radial-gradient(ellipse at 50% -18%, #1b3d3a 0, #0e1b20 43%, #0b1419 78%) fixed;
}
html[data-theme="future"] .topbar {
  background: rgba(11, 20, 25, .9);
  border-color: #263a40;
  box-shadow: 0 1px 0 #8ef5be0a;
  backdrop-filter: blur(18px);
}
html[data-theme="future"] .brand,
html[data-theme="future"] .intro h1,
html[data-theme="future"] .card-title h2,
html[data-theme="future"] .history-heading h2,
html[data-theme="future"] .section-title h2,
html[data-theme="future"] .settings-category-heading h2,
html[data-theme="future"] .settings-section-heading h2,
html[data-theme="future"] .auth-card h1,
html[data-theme="future"] .calendar-head,
html[data-theme="future"] .calendar-detail h3 { color: #effaf5; }
html[data-theme="future"] .brand-icon,
html[data-theme="future"] .settings-section-icon { background: #173c31; color: #77edaa; }
html[data-theme="future"] .brand-light,
html[data-theme="future"] .eyebrow,
html[data-theme="future"] .subheading,
html[data-theme="future"] .fine-print,
html[data-theme="future"] .settings-category-heading p,
html[data-theme="future"] .settings-section-heading p,
html[data-theme="future"] .auth-card p,
html[data-theme="future"] .auth-form label { color: #a0b5b7; }
html[data-theme="future"] .card,
html[data-theme="future"] .stat,
html[data-theme="future"] .summary-card,
html[data-theme="future"] .summary-strip,
html[data-theme="future"] .auth-card,
html[data-theme="future"] .calendar-detail,
html[data-theme="future"] .settings-category-heading,
html[data-theme="future"] .profile-fieldset,
html[data-theme="future"] .history-card,
html[data-theme="future"] .push-reminder-card {
  color: #e8f4f0;
  background: linear-gradient(145deg, rgba(22, 39, 45, .96), rgba(16, 30, 35, .96));
  border-color: #2a4247;
  border-radius: 18px;
  box-shadow: 0 14px 36px #0003, inset 0 1px #ffffff08;
}
html[data-theme="future"] .stat b,
html[data-theme="future"] .summary-card b,
html[data-theme="future"] .summary-strip b,
html[data-theme="future"] .timeline-row b,
html[data-theme="future"] .settings-version strong { color: #f0faf5; }
html[data-theme="future"] .stat span,
html[data-theme="future"] .stat small,
html[data-theme="future"] .summary-card span,
html[data-theme="future"] .summary-card small,
html[data-theme="future"] .summary-strip span,
html[data-theme="future"] .timeline-row,
html[data-theme="future"] .local-badge,
html[data-theme="future"] .today { color: #a0b5b7; }
html[data-theme="future"] .local-badge,
html[data-theme="future"] .button-light,
html[data-theme="future"] .auth-tabs,
html[data-theme="future"] .calendar-arrow,
html[data-theme="future"] .today-shortcut-link,
html[data-theme="future"] .journey-check-item,
html[data-theme="future"] .active-work-profile,
html[data-theme="future"] .work-profile-management,
html[data-theme="future"] .work-profile-item,
html[data-theme="future"] .trip-icon,
html[data-theme="future"] .type-pill {
  color: #d8ebe3;
  background: #17292e;
  border-color: #2d464b;
}
html[data-theme="future"] .button-primary,
html[data-theme="future"] .button-secondary {
  color: #052317;
  background: linear-gradient(135deg, #69efaa, #34c985);
  box-shadow: 0 7px 22px #43df962e;
}
html[data-theme="future"] .button-primary:hover,
html[data-theme="future"] .button-secondary:hover { background: linear-gradient(135deg, #88f6ba, #4bdb97); }
html[data-theme="future"] .button-light:hover,
html[data-theme="future"] .calendar-arrow:hover,
html[data-theme="future"] .today-shortcut-link:hover { border-color: #4b896b; background: #1b3830; }
html[data-theme="future"] .punch-circle {
  color: #062417;
  border-color: #65efa9;
  background: radial-gradient(circle at 32% 24%, #a4ffd0, #53e59b 66%, #31bf80);
  box-shadow: 0 0 0 2px #0f211b inset, 0 0 0 4px #4bdc98, 0 0 34px #39d88c4d;
}
html[data-theme="future"] .punch-circle.completed {
  color: #d5eee0;
  border-color: #3f6550;
  background: linear-gradient(145deg, #1b3026, #182a25);
  box-shadow: 0 0 0 2px #0e1c17 inset, 0 0 0 4px #355943;
}
html[data-theme="future"] .clock-panel b,
html[data-theme="future"] .today b { color: #f1fbf6; }
html[data-theme="future"] .clock-panel span { color: #a7bfba; }
html[data-theme="future"] input,
html[data-theme="future"] select,
html[data-theme="future"] textarea,
html[data-theme="future"] .trip-card input,
html[data-theme="future"] .settings-group input,
html[data-theme="future"] .settings-group select,
html[data-theme="future"] .settings-group textarea,
html[data-theme="future"] .auth-form input,
html[data-theme="future"] .auth-form select,
html[data-theme="future"] .profile-edit-form input,
html[data-theme="future"] .history-tools input,
html[data-theme="future"] .history-tools select {
  color: #e6f4ef;
  background: #0f1c21;
  border-color: #30484d;
}
html[data-theme="future"] input::placeholder,
html[data-theme="future"] textarea::placeholder { color: #789095; }
html[data-theme="future"] input:focus,
html[data-theme="future"] select:focus,
html[data-theme="future"] textarea:focus { border-color: #58d997; box-shadow: 0 0 0 3px #43db941f; }
html[data-theme="future"] .timeline-row,
html[data-theme="future"] tbody td,
html[data-theme="future"] thead th,
html[data-theme="future"] .calendar-detail,
html[data-theme="future"] .calendar-record article,
html[data-theme="future"] .summary-strip,
html[data-theme="future"] .journey-check-item { border-color: #2b4247; }
html[data-theme="future"] tbody td,
html[data-theme="future"] .calendar-day,
html[data-theme="future"] .period-navigation b { color: #d7e8e1; }
html[data-theme="future"] thead th,
html[data-theme="future"] .calendar-weekday,
html[data-theme="future"] .calendar-detail,
html[data-theme="future"] .calendar-detail small { color: #91aaa9; }
html[data-theme="future"] .calendar-day.has-record,
html[data-theme="future"] .calendar-day.selected,
html[data-theme="future"] .period-day-status { background: #173a2d; color: #8df0b3; }
html[data-theme="future"] .calendar-day.is-today { outline-color: #53df98; }
html[data-theme="future"] .bottom-nav {
  background: rgb(17, 31, 36);
  border-color: #2c454a;
  box-shadow: 0 14px 40px #0006, inset 0 1px #ffffff0a;
  backdrop-filter: none;
}
html[data-theme="future"] .nav-item { color: #93aaa7; }
html[data-theme="future"] .nav-item.active { color: #79efaa; }
html[data-theme="future"] .nav-item.active:before { background: linear-gradient(90deg, #43d68c, #8af1b3); }
html[data-theme="future"] .today-punches,
html[data-theme="future"] .today-shortcuts,
html[data-theme="future"] .journey-check-card {
  border-color: #31534a;
  background: radial-gradient(ellipse at 92% 0%, #1b4335 0, transparent 40%), linear-gradient(145deg, #16272c, #111e23);
  box-shadow: 0 15px 38px #0004, inset 0 1px #ffffff08;
}
html[data-theme="future"] .today-punches::before { background: linear-gradient(90deg, #36cb84, #83f0ae 55%, #1d6045); }
html[data-theme="future"] .today-punches .timeline-row,
html[data-theme="future"] .journey-check-item { background: linear-gradient(145deg, #192c30, #142429); border-color: #30474b; }
html[data-theme="future"] .today-punches .timeline-row>b,
html[data-theme="future"] .journey-check-copy b { color: #effaf4; }
html[data-theme="future"] .today-punches .timeline-row.is-complete { background: linear-gradient(145deg, #1b3c2b, #183328); border-color: #3d7955; }
html[data-theme="future"] .today-punches .timeline-row.is-complete>b { color: #91efb1; }
html[data-theme="future"] .today-punches .fine-print { background: #193328; color: #b4d9c1; }
html[data-theme="future"] .toast { color: #ecfff4; background: #173d2e; border: 1px solid #347953; box-shadow: 0 12px 35px #0007; }
html[data-theme="future"] dialog,
html[data-theme="future"] .ticket-viewer { color: #e8f4f0; background: #142329; border-color: #345057; }
html[data-theme="future"] dialog::backdrop,
html[data-theme="future"] .ticket-viewer::backdrop { background: #050b0edb; backdrop-filter: blur(8px); }
html[data-theme="future"] .ticket-viewer-head,
html[data-theme="future"] .ticket-viewer-tools button,
html[data-theme="future"] .ticket-viewer-close { color: #e3f4eb; background: #1b3036; border-color: #375158; }
html[data-theme="future"] footer,
html[data-theme="future"] footer button { color: #819a9a; }
html[data-theme="future"] :focus-visible { outline: 2px solid #72edaa; outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  html[data-theme="future"] .card,
  html[data-theme="future"] .stat,
  html[data-theme="future"] .today-shortcut-link { transition: border-color .2s, box-shadow .2s, transform .2s; }
  html[data-theme="future"] .card:hover,
  html[data-theme="future"] .stat:hover { border-color: #3e6359; box-shadow: 0 18px 42px #0005, inset 0 1px #ffffff0a; }
}
@media(max-width:700px) {
  html[data-theme="future"] .card,
  html[data-theme="future"] .stat,
  html[data-theme="future"] .auth-card { border-radius: 16px; }
  html[data-theme="future"] .topbar { background: rgba(11, 20, 25, .95); }
}
@media(max-width:390px) {
  html[data-theme="future"] .punch-circle { width: 116px; height: 116px; }
}
/* Ajuste de contraste da tela inicial em celular. */
html[data-theme="future"] .today-heading h1 { color: #f1fbf6; }
html[data-theme="future"] .today-heading .eyebrow { color: #87e9b1; }
html[data-theme="future"] .today-heading > div > p:last-child { color: #a9bfba; }
html[data-theme="future"] .today-heading-badge { color: #d7f5e3; background: #17362a; border-color: #315c43; }
html[data-theme="future"] .app-screen[data-screen="today"] > .clock-panel,
html[data-theme="future"] .app-screen[data-screen="today"] > .active-work-profile,
html[data-theme="future"] .app-screen[data-screen="today"] > .summary-strip,
html[data-theme="future"] .app-screen[data-screen="today"] > .today-shortcuts,
html[data-theme="future"] .app-screen[data-screen="today"] > .journey-check-card,
html[data-theme="future"] .app-screen[data-screen="today"] > .today-punches {
  color: #eaf6f0;
  background: radial-gradient(ellipse at 92% 0%, #1c4235 0, transparent 42%), linear-gradient(145deg, #16272c, #111e23);
  border: 1px solid #315049;
  box-shadow: 0 14px 34px #0004, inset 0 1px #ffffff09;
}
html[data-theme="future"] .app-screen[data-screen="today"] > .clock-panel { min-height: 150px; }
html[data-theme="future"] .app-screen[data-screen="today"] > .clock-panel b { color: #effaf4; }
html[data-theme="future"] .clock-kicker { color: #9cc6b5; }
html[data-theme="future"] .clock-date-tag { color: #d9eee3; background: #1a3330; border-color: #35574b; }
html[data-theme="future"] .active-work-profile,
html[data-theme="future"] .active-work-profile h2,
html[data-theme="future"] .active-work-profile label,
html[data-theme="future"] .active-work-profile small { color: #d5e9df; }
html[data-theme="future"] .active-work-profile select { color: #f0faf5; background: #0f1c21; border-color: #35514e; }
html[data-theme="future"] .summary-strip b { color: #8aefb2; }
html[data-theme="future"] .summary-strip span { color: #a8c0b8; }
html[data-theme="future"] .today-shortcuts .section-title h2,
html[data-theme="future"] .journey-check-card .section-title h2,
html[data-theme="future"] .today-punches .section-title h2 { color: #effaf4; }
html[data-theme="future"] .today-shortcuts .text-button { color: #9cf0bc; background: #19332b; border-color: #35584a; }
html[data-theme="future"] .today-shortcut-link { color: #e4f5ec; background: linear-gradient(135deg, #1b3036, #15272c); border-color: #345052; }
html[data-theme="future"] .today-shortcut-link span { color: #a7c1b5; }
html[data-theme="future"] .today-shortcut-link::before { color: #9af0b8; background: #1c4031; }
html[data-theme="future"] .journey-check-intro,
html[data-theme="future"] .journey-check-copy small,
html[data-theme="future"] .today-punches .timeline-row { color: #c2d6cd; }
html[data-theme="future"] .journey-check-copy b,
html[data-theme="future"] .today-punches .timeline-row b { color: #f0faf5; }
html[data-theme="future"] .today-punches .status-chip { color: #d7e9df; background: #1b3032; border-color: #345052; }
html[data-theme="future"] .today-punches .status-chip.status-live { color: #aff2c7; background: #1c3d2b; border-color: #38674a; }
html[data-theme="future"] .today-punches .timeline-row,
html[data-theme="future"] .today-punches .timeline-row.is-pending { background: linear-gradient(145deg, #1a2d32, #14252a); border-color: #344c50; }
html[data-theme="future"] .today-punches .timeline-row.is-complete { color: #dcf4e4; background: linear-gradient(145deg, #1b3c2b, #183328); border-color: #3d7955; }
html[data-theme="future"] .today-punches .timeline-row.is-complete b { color: #91efb1; }
html[data-theme="future"] .today-punches .fine-print { color: #bdd9ca; background: #193328; }
html[data-theme="future"] .summary-strip { border-radius: 18px; }
@media print {
  html[data-theme="future"] body { color: #17251d; background: #fff; }
  html[data-theme="future"] .card,
  html[data-theme="future"] .stat { color: #17251d; background: #fff; border-color: #d9e1dc; box-shadow: none; }
}
@media(max-width:360px){
  .today-heading-badge{padding:7px;font-size:0}
  .today-heading-badge i{width:9px;height:9px}
  .app-screen[data-screen="today"] > .clock-panel{padding-inline:13px}
  .clock-date-tag{padding:8px;font-size:9px}
  .app-screen[data-screen="today"] > .clock-panel b{font-size:clamp(36px,11vw,43px)}
}
/* Cartoes auxiliares da tela inicial: leitura forte e acoes rapidas visiveis. */
.app-screen[data-screen="today"] > .today-shortcuts{padding:20px;border:1px solid #e0eae3;border-radius:20px;background:linear-gradient(145deg,#fff 0%,#f8fbf8 100%);box-shadow:0 8px 24px #173a2608}
.today-shortcuts .section-title{align-items:center;margin-bottom:14px}
.today-shortcuts .section-title h2,.journey-check-card .section-title h2,.today-punches .section-title h2{color:#203629;font-size:15px;letter-spacing:-.25px}
.today-shortcuts .text-button{padding:7px 10px;border:1px solid #dce9df;border-radius:9px;background:#fff;color:#176345;font-size:10px}
.today-shortcut-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:9px}
.today-shortcut-link{display:grid;grid-template-columns:32px minmax(0,1fr) 12px;align-items:center;gap:9px;min-width:0;min-height:52px;padding:8px 11px;border:1px solid #e0eae3;border-radius:13px;background:#fff;color:#294333;font-size:11px;font-weight:700;text-align:left;transition:transform .16s,border-color .16s,box-shadow .16s,background .16s}
.today-shortcut-link::before{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:#edf6f0;color:#19764e;font-size:16px;font-weight:750}
.today-shortcut-link[data-nav-to="history"]::before{content:"▦"}
.today-shortcut-link[data-nav-to="summary"]::before{content:"◷"}
.today-shortcut-link[data-nav-to="profile"]::before{content:"◎"}
.today-shortcut-link[data-nav-to="settings"]::before{content:"⚙"}
.today-shortcut-link span{color:#7d9384;font-size:17px;line-height:1}
.today-shortcut-link:hover{transform:translateY(-1px);border-color:#b9d7c3;background:#fbfefc;box-shadow:0 6px 15px #173a260b}
.today-shortcut-link:focus-visible,.today-shortcuts .text-button:focus-visible{outline:3px solid #8fd6ae;outline-offset:2px}
.journey-check-card{padding:20px;border-color:#dfe9e2;background:linear-gradient(145deg,#fff 0%,#f9fcf9 100%);box-shadow:0 8px 24px #173a2608}
.journey-check-card .section-title{align-items:center}
.journey-check-intro{color:#708075;font-size:11px;line-height:1.6}
.journey-check-list{gap:9px}
.journey-check-item{grid-template-columns:38px minmax(0,1fr) auto;gap:12px;min-height:62px;padding:11px 13px;border-color:#e1eae3;border-radius:14px;background:#fff;transition:border-color .15s,box-shadow .15s}
.journey-check-item:hover{border-color:#bfd8c7;box-shadow:0 5px 15px #173a2608}
.journey-check-icon{width:36px;height:36px;background:#eaf5ee;color:#188052}
.journey-check-copy b{color:#25392c;font-size:12px;line-height:1.35}
.journey-check-copy small{color:#748378;font-size:10px;line-height:1.5}
.journey-check-item button{min-height:38px;border-color:#dce8df;border-radius:10px;background:#f6faf7;color:#176345;font-size:10px;font-weight:700}
.journey-check-item button:hover{border-color:#b9d7c3;background:#edf6f0}
.today-punches{padding:20px;border-color:#e0eae3;border-radius:20px;background:#fff;box-shadow:0 8px 24px #173a2608}
.today-punches .section-title{margin-bottom:7px}
.today-punches .status-chip{display:inline-flex;align-items:center;min-height:27px;padding:5px 10px;border:1px solid #e0eae3;border-radius:999px;background:#f4f8f5;color:#68786d;font-size:10px;font-weight:700}
.today-punches .status-chip.status-live{border-color:#d5eadc;background:#edf7f0;color:#187549}
.today-punches .status-chip.status-done{background:#f1f4f2;color:#66746b}
.today-punches .timeline{margin:3px 0 0}
.today-punches .timeline-row{grid-template-columns:12px minmax(0,1fr) auto;gap:10px;min-height:42px;padding:9px 2px;border-color:#edf1ee;color:#53645a;font-size:11px}
.today-punches .timeline-row b{color:#263b2e;font-size:12px;font-weight:750;font-variant-numeric:tabular-nums}
.today-punches .step-dot{width:9px;height:9px;border-color:#c6d4ca}
.today-punches .step-dot.done{border-color:#2f9b62;background:#2f9b62;box-shadow:0 0 0 3px #e8f5ec}
.today-punches .fine-print{margin-top:8px;color:#849187;font-size:9px;line-height:1.45}
html[data-theme="dark"] .app-screen[data-screen="today"] > .today-shortcuts{border-color:#34474c;background:linear-gradient(145deg,#19272c,#172429);box-shadow:0 10px 26px #0002}
html[data-theme="dark"] .today-shortcuts .section-title h2,html[data-theme="dark"] .journey-check-card .section-title h2,html[data-theme="dark"] .today-punches .section-title h2{color:#eef5f0}
html[data-theme="dark"] .today-shortcuts .text-button{border-color:#3a5147;background:#20352a;color:#c8e7d1}
html[data-theme="dark"] .today-shortcut-link{border-color:#354a4f;background:linear-gradient(135deg,#1c2d32,#19292e);color:#e2ede6;box-shadow:inset 0 1px #ffffff05}
html[data-theme="dark"] .today-shortcut-link::before{background:#244333;color:#9ee0b5}
html[data-theme="dark"] .today-shortcut-link span{color:#a9c1b3}
html[data-theme="dark"] .today-shortcut-link:hover{border-color:#527864;background:#20352a;box-shadow:0 7px 18px #0003}
html[data-theme="dark"] .journey-check-card{border-color:#34474c;background:linear-gradient(145deg,#19272c,#172429);box-shadow:0 10px 26px #0002}
html[data-theme="dark"] .journey-check-intro{color:#bdcbc3}
html[data-theme="dark"] .journey-check-item{border-color:#354a4f;background:#111c20}
html[data-theme="dark"] .journey-check-item:hover{border-color:#527864;box-shadow:0 6px 16px #0003}
html[data-theme="dark"] .journey-check-copy b{color:#eff5f1}
html[data-theme="dark"] .journey-check-copy small{color:#b5c4bb}
html[data-theme="dark"] .journey-check-icon{background:#244333;color:#9ee0b5}
html[data-theme="dark"] .journey-check-item.is-pending .journey-check-icon{background:#473b21;color:#f3d88a}
html[data-theme="dark"] .journey-check-item.is-error .journey-check-icon{background:#4a2925;color:#f2aaa0}
html[data-theme="dark"] .journey-check-item button{border-color:#3b5147;background:#20352a;color:#c8e7d1}
html[data-theme="dark"] .journey-check-item button:hover{border-color:#527864;background:#294536}
html[data-theme="dark"] .today-punches{border-color:#34474c;background:linear-gradient(145deg,#19272c,#172429);box-shadow:0 10px 26px #0002}
html[data-theme="dark"] .today-punches .status-chip{border-color:#3b4b50;background:#243338;color:#d0ddd5}
html[data-theme="dark"] .today-punches .status-chip.status-live{border-color:#355744;background:#203a2b;color:#aee2bd}
html[data-theme="dark"] .today-punches .status-chip.status-done{border-color:#3b4b50;background:#243338;color:#c0cec5}
html[data-theme="dark"] .today-punches .timeline-row{border-color:#2a3b40;color:#c1cec6}
html[data-theme="dark"] .today-punches .timeline-row b{color:#f0f6f2}
html[data-theme="dark"] .today-punches .step-dot{border-color:#5b6e63}
html[data-theme="dark"] .today-punches .step-dot.done{border-color:#58c889;background:#58c889;box-shadow:0 0 0 3px #254432}
html[data-theme="dark"] .today-punches .fine-print{color:#a9b9af}
@media(max-width:700px){
 .app-screen[data-screen="today"] > .today-shortcuts,.app-screen[data-screen="today"] > .journey-check-card,.app-screen[data-screen="today"] > .today-punches{padding:16px;border-radius:17px}
 .today-shortcut-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .today-shortcut-link{grid-template-columns:28px minmax(0,1fr) 10px;gap:7px;min-height:48px;padding:7px 8px;font-size:10px}
 .today-shortcut-link::before{width:28px;height:28px;border-radius:9px;font-size:14px}
 .journey-check-item{grid-template-columns:32px minmax(0,1fr);gap:9px;padding:10px}
 .journey-check-icon{width:31px;height:31px}
 .journey-check-item button{grid-column:2;justify-self:start;min-height:36px}
 .today-punches .section-title h2,.journey-check-card .section-title h2,.today-shortcuts .section-title h2{font-size:14px}
 .today-punches .timeline-row{min-height:40px;padding:8px 1px;font-size:11px}
}
@media(max-width:360px){.today-shortcut-links{grid-template-columns:1fr}.journey-check-item button{grid-column:2}}
/* Destaque para a linha do tempo do ponto e leitura de progresso em um relance. */
.app-screen[data-screen="today"] > .today-punches{grid-column:1/-1;position:relative;overflow:hidden;padding:24px;border:1px solid #d6e7db;border-radius:22px;background:radial-gradient(ellipse at 92% 0%,#e6f5ea 0,transparent 38%),linear-gradient(135deg,#fff 0%,#f7fbf8 100%);box-shadow:0 14px 34px #173a2612}
.app-screen[data-screen="today"] > .today-punches::before{content:"";position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,#16825a,#75c995 60%,#c7ebd2)}
.today-punches .section-title{margin-bottom:5px}
.today-punches .section-title h2{font-size:19px;letter-spacing:-.45px}
.today-punches .status-chip{min-height:32px;padding:6px 12px;font-size:11px}
.today-punches .status-chip.status-live::before{content:"";width:7px;height:7px;margin-right:7px;border-radius:50%;background:#36a66b;box-shadow:0 0 0 3px #d9f0e1}
.today-punches .timeline{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:18px 0 0}
.today-punches .timeline-row{position:relative;display:grid;grid-template-columns:16px minmax(0,1fr);grid-template-areas:"dot label" "dot time";align-content:center;align-items:center;column-gap:11px;row-gap:9px;min-width:0;min-height:94px;padding:15px 14px;border:1px solid #e1ebe3;border-radius:16px;background:linear-gradient(145deg,#fff,#f8fbf8);color:#53645a;font-size:12px;transition:transform .16s,border-color .16s,box-shadow .16s}
.today-punches .timeline-row:not(:last-child)::after{content:"";position:absolute;top:50%;right:-14px;width:13px;height:2px;background:#cbded0}
.today-punches .timeline-row>i{grid-area:dot;align-self:center;width:11px;height:11px}
.today-punches .timeline-row>span{grid-area:label;min-width:0;align-self:end;line-height:1.35;font-weight:650;overflow-wrap:anywhere}
.today-punches .timeline-row>b{grid-area:time;align-self:start;color:#253b2d;font-size:19px;font-weight:800;letter-spacing:-.45px}
.today-punches .timeline-row.is-complete{border-color:#bfe0c9;background:linear-gradient(145deg,#f1faf3,#e7f5eb);color:#355c42;box-shadow:inset 0 1px #fff}
.today-punches .timeline-row.is-complete>b{color:#176b45}
.today-punches .timeline-row.is-pending{background:linear-gradient(145deg,#fff,#fafcfb)}
.today-punches .timeline-row.is-pending>i{border-color:#b7c9bc;background:#fff}
.today-punches .timeline-row .punch-location-link{font-size:10px}
.today-punches .fine-print{margin-top:13px;padding:9px 11px;border-radius:10px;background:#eef7f0;color:#54705c;font-size:10px}
html[data-theme="dark"] .app-screen[data-screen="today"] > .today-punches{border-color:#3a5a49;background:radial-gradient(ellipse at 92% 0%,#203e2d 0,transparent 40%),linear-gradient(135deg,#17262b 0%,#162328 100%);box-shadow:0 14px 36px #0003}
html[data-theme="dark"] .app-screen[data-screen="today"] > .today-punches::before{background:linear-gradient(90deg,#44b979,#78d89a 60%,#294c37)}
html[data-theme="dark"] .today-punches .section-title h2{color:#f1f6f2}
html[data-theme="dark"] .today-punches .status-chip.status-live{border-color:#3c674d;background:#234333;color:#c4efd0}
html[data-theme="dark"] .today-punches .status-chip.status-live::before{background:#63d392;box-shadow:0 0 0 3px #294c37}
html[data-theme="dark"] .today-punches .timeline-row{border-color:#364c50;background:linear-gradient(145deg,#1b2c31,#17272c);color:#cad6ce}
html[data-theme="dark"] .today-punches .timeline-row:not(:last-child)::after{background:#415a4a}
html[data-theme="dark"] .today-punches .timeline-row>b{color:#f3f8f4}
html[data-theme="dark"] .today-punches .timeline-row.is-complete{border-color:#3d704f;background:linear-gradient(145deg,#203c2b,#1c3527);color:#d4eddc}
html[data-theme="dark"] .today-punches .timeline-row.is-complete>b{color:#a5e6b8}
html[data-theme="dark"] .today-punches .timeline-row.is-pending{background:linear-gradient(145deg,#1a2a2f,#17262b)}
html[data-theme="dark"] .today-punches .timeline-row.is-pending>i{border-color:#5d7465;background:#1b2c31}
html[data-theme="dark"] .today-punches .timeline-row .step-dot.done{border-color:#65d492;background:#65d492;box-shadow:0 0 0 4px #294c37}
html[data-theme="dark"] .today-punches .fine-print{background:#1d3527;color:#bbd9c4}
@media(max-width:700px){
 .app-screen[data-screen="today"] > .today-punches{padding:19px 16px;border-radius:19px}
 .today-punches .section-title h2{font-size:17px}
 .today-punches .timeline{grid-template-columns:1fr;gap:8px;margin-top:14px}
 .today-punches .timeline-row{grid-template-columns:14px minmax(0,1fr) auto;grid-template-areas:"dot label time";column-gap:11px;row-gap:0;min-height:58px;padding:12px;border-radius:13px}
 .today-punches .timeline-row:not(:last-child)::after{top:auto;right:auto;bottom:-9px;left:17px;width:2px;height:9px}
 .today-punches .timeline-row>i{width:10px;height:10px}
 .today-punches .timeline-row>span{align-self:center;font-size:11px}
 .today-punches .timeline-row>b{align-self:center;font-size:16px}
 .today-punches .fine-print{margin-top:11px}
}
/* Correção final: os cartões da tela inicial permanecem escuros nos temas escuros. */
html[data-theme="dark"] .today-heading h1 { color: #f1fbf6; }
html[data-theme="dark"] .today-heading .eyebrow { color: #87e9b1; }
html[data-theme="dark"] .today-heading > div > p:last-child { color: #a9bfba; }
html[data-theme="dark"] .today-heading-badge { color: #d7f5e3; background: #17362a; border-color: #315c43; }
html[data-theme="dark"] .app-screen[data-screen="today"] > .clock-panel,
html[data-theme="dark"] .app-screen[data-screen="today"] > .active-work-profile,
html[data-theme="dark"] .app-screen[data-screen="today"] > .summary-strip,
html[data-theme="dark"] .app-screen[data-screen="today"] > .today-shortcuts,
html[data-theme="dark"] .app-screen[data-screen="today"] > .journey-check-card,
html[data-theme="dark"] .app-screen[data-screen="today"] > .today-punches {
  color: #eaf6f0;
  background: radial-gradient(ellipse at 92% 0%, #1c4235 0, transparent 42%), linear-gradient(145deg, #16272c, #111e23);
  border-color: #315049;
  box-shadow: 0 14px 34px #0004, inset 0 1px #ffffff09;
}
html[data-theme="dark"] .app-screen[data-screen="today"] > .clock-panel b { color: #effaf4; }
html[data-theme="dark"] .clock-kicker { color: #9cc6b5; }
html[data-theme="dark"] .clock-date-tag { color: #d9eee3; background: #1a3330; border-color: #35574b; }
html[data-theme="dark"] .active-work-profile,
html[data-theme="dark"] .active-work-profile h2,
html[data-theme="dark"] .active-work-profile label,
html[data-theme="dark"] .active-work-profile small { color: #d5e9df; }
html[data-theme="dark"] .active-work-profile select { color: #f0faf5; background: #0f1c21; border-color: #35514e; }
html[data-theme="dark"] .summary-strip b { color: #8aefb2; }
html[data-theme="dark"] .summary-strip span { color: #a8c0b8; }
html[data-theme="dark"] .today-shortcuts .section-title h2,
html[data-theme="dark"] .journey-check-card .section-title h2,
html[data-theme="dark"] .today-punches .section-title h2 { color: #effaf4; }
html[data-theme="dark"] .today-shortcuts .text-button { color: #9cf0bc; background: #19332b; border-color: #35584a; }
html[data-theme="dark"] .today-shortcut-link { color: #e4f5ec; background: linear-gradient(135deg, #1b3036, #15272c); border-color: #345052; }
html[data-theme="dark"] .today-shortcut-link span { color: #a7c1b5; }
html[data-theme="dark"] .today-shortcut-link::before { color: #9af0b8; background: #1c4031; }
html[data-theme="dark"] .journey-check-intro,
html[data-theme="dark"] .journey-check-copy small,
html[data-theme="dark"] .today-punches .timeline-row { color: #c2d6cd; }
html[data-theme="dark"] .journey-check-copy b,
html[data-theme="dark"] .today-punches .timeline-row b { color: #f0faf5; }
html[data-theme="dark"] .today-punches .status-chip { color: #d7e9df; background: #1b3032; border-color: #345052; }
html[data-theme="dark"] .today-punches .status-chip.status-live { color: #aff2c7; background: #1c3d2b; border-color: #38674a; }
html[data-theme="dark"] .today-punches .timeline-row,
html[data-theme="dark"] .today-punches .timeline-row.is-pending { background: linear-gradient(145deg, #1a2d32, #14252a); border-color: #344c50; }
html[data-theme="dark"] .today-punches .timeline-row.is-complete { color: #dcf4e4; background: linear-gradient(145deg, #1b3c2b, #183328); border-color: #3d7955; }
html[data-theme="dark"] .today-punches .timeline-row.is-complete b { color: #91efb1; }
html[data-theme="dark"] .today-punches .fine-print { color: #bdd9ca; background: #193328; }

/* Jornada: lembrete dinamico e correcao expressa. */
.lunch-return-card{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 10px;padding:13px 15px;border:1px solid #cde5d6;border-radius:14px;background:linear-gradient(120deg,#eff9f2,#fff);color:#20382b}.lunch-return-card[hidden]{display:none}.lunch-return-card b{font-size:13px}.lunch-return-card p{margin:4px 0 0;font-size:10px;color:#64766b}.lunch-return-card.is-overdue{border-color:#e8bd73;background:linear-gradient(120deg,#fff5df,#fff);box-shadow:0 4px 16px #9d6b1514}.quick-correction-trigger{display:block;margin-top:8px;padding:8px 12px;font-size:10px}.quick-correction-form{display:grid;gap:10px}.quick-correction-form label{display:grid;gap:5px;font-size:11px;color:#637168}.quick-correction-form input,.quick-correction-form select,.quick-correction-form textarea{width:100%;min-height:40px;border:1px solid #dce5de;border-radius:8px;padding:8px 10px;background:#fff;color:#24372c;font:12px system-ui,-apple-system,'Segoe UI',Arial,sans-serif}.quick-correction-form textarea{min-height:70px;resize:vertical}.quick-correction-form [hidden]{display:none}.quick-correction-before-after{margin:0;padding:10px;border-radius:8px;background:#f1f6f2;color:#315740;font-size:11px;font-weight:650}.auto-lunch-reminder-note{grid-column:1/-1;margin:0;padding:9px 11px;border-radius:8px;background:#eef7f0;color:#42654d;font-size:10px;line-height:1.5}@media(max-width:520px){.lunch-return-card{align-items:flex-start}.lunch-return-card .button{flex:0 0 auto}.quick-correction-form .clockout-dialog-actions{display:grid;gap:8px}}
html[data-theme="dark"] .lunch-return-card,html[data-theme="future"] .lunch-return-card{background:#142529;border-color:#344c4d;color:#eaf7f1}html[data-theme="dark"] .lunch-return-card p,html[data-theme="future"] .lunch-return-card p{color:#a9c0b8}html[data-theme="dark"] .lunch-return-card.is-overdue,html[data-theme="future"] .lunch-return-card.is-overdue{background:#342b1c;border-color:#876a32}

/* Tablet and compact desktop: balance the clock, work link and punch action. */
@media (min-width: 900px) and (max-width: 1099px) {
  .container { padding-bottom: max(248px, calc(208px + env(safe-area-inset-bottom))); }
  .app-screen[data-screen="today"] > .clock-panel,
  .app-screen[data-screen="today"] > .active-work-profile,
  .app-screen[data-screen="today"] > .lunch-return-card,
  .app-screen[data-screen="today"] > .journey-check-card,
  .app-screen[data-screen="today"] > #daily-data-card,
  .app-screen[data-screen="today"] > #ticket-capture-card,
  .app-screen[data-screen="today"] > .today-shortcuts,
  .app-screen[data-screen="today"] > .today-punches { grid-column: 1 / -1; }
  .app-screen[data-screen="today"] > .clock-panel {
    min-height: 138px;
    padding: 20px 24px;
    align-content: center;
    border-radius: 20px;
  }
  .app-screen[data-screen="today"] > .clock-panel b { font-size: clamp(46px, 5.6vw, 68px); }
  .app-screen[data-screen="today"] > .punch-actions,
  .app-screen[data-screen="today"] > .summary-strip {
    grid-column: span 6;
    align-self: stretch;
    min-width: 0;
    margin: 0;
  }
  .app-screen[data-screen="today"] > .punch-actions { justify-content: flex-start; max-width: none; }
  .app-screen[data-screen="today"] > .punch-actions .punch-circle { width: min(100%, 460px); }
  .app-screen[data-screen="today"] > .summary-strip { min-height: 84px; }
  .app-screen[data-screen="history"] { padding-bottom: 24px; }
  .app-screen[data-screen="history"] > .calendar-card,
  .app-screen[data-screen="history"] > .history-card { scroll-margin-bottom: 180px; }
}

@media (min-width: 701px) and (max-width: 899px) {
  .container { padding-bottom: max(240px, calc(200px + env(safe-area-inset-bottom))); }
  .app-screen[data-screen="today"] > .clock-panel,
  .app-screen[data-screen="today"] > .active-work-profile,
  .app-screen[data-screen="today"] > .lunch-return-card,
  .app-screen[data-screen="today"] > .journey-check-card,
  .app-screen[data-screen="today"] > #daily-data-card,
  .app-screen[data-screen="today"] > #ticket-capture-card,
  .app-screen[data-screen="today"] > .today-shortcuts,
  .app-screen[data-screen="today"] > .today-punches { grid-column: 1 / -1; }
  .app-screen[data-screen="today"] > .punch-actions,
  .app-screen[data-screen="today"] > .summary-strip { grid-column: span 6; margin: 0; }
}

@media (min-width: 701px) and (max-width: 1099px) {
  .app-screen[data-screen="today"] > .active-work-profile {
    width: 100%;
    max-width: none;
    margin: 0;
  }
}
html[data-theme="future"] .timeline-row.is-offline-queued { border-color: #a88335; background: linear-gradient(145deg, #2d2a1e, #20251f); }
html[data-theme="future"] .timeline-row.is-offline-queued b { color: #ffd36b; }
.timeline-row.is-offline-queued b { color: #946000; }

#toast { width: max-content; max-width: min(420px, calc(100vw - 32px)); white-space: normal; text-align: center; line-height: 1.45; }
