:root {
  color-scheme: light;
}
.hourline-date-field{position:relative;display:block;width:100%}.hourline-native-date{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;margin:0!important;padding:0!important;opacity:0!important;pointer-events:none!important}.hourline-date-trigger{width:100%;min-height:40px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 11px;border:1px solid #d7dfdc;border-radius:8px;background:#fff;color:var(--ink);text-align:left;font-weight:inherit}.hourline-date-trigger:hover{border-color:#9cb7ae}.hourline-date-trigger:focus-visible{border-color:#6ba18f;outline:0;box-shadow:0 0 0 3px rgba(83,148,127,.12)}.hourline-date-trigger svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;color:var(--muted);flex:none}.hourline-date-dialog{width:min(430px,calc(100vw - 24px));max-height:none;padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--white);color:var(--ink);box-shadow:0 22px 70px rgba(5,24,19,.35)}.hourline-date-dialog::backdrop{background:rgba(5,20,17,.64);backdrop-filter:blur(3px)}.hourline-date-header{display:grid;grid-template-columns:42px 1fr 42px 42px;align-items:center;gap:6px;margin-bottom:18px}.hourline-date-header strong{text-align:center;text-transform:capitalize;font-size:17px}.hourline-date-header button,.hourline-date-footer button{min-height:38px;border:1px solid var(--line);border-radius:9px;background:transparent;color:var(--ink);font-weight:800}.hourline-date-header button{font-size:23px}.hourline-date-header .hourline-date-close{font-size:18px}.hourline-date-weekdays,.hourline-date-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.hourline-date-weekdays{margin-bottom:6px}.hourline-date-weekdays span{padding:5px 0;color:var(--muted);text-align:center;font-size:10px;font-weight:800;text-transform:capitalize}.hourline-date-grid button{aspect-ratio:1;min-width:0;border:0;border-radius:10px;background:transparent;color:var(--ink);font-size:13px}.hourline-date-grid button:hover:not(:disabled){background:var(--mint);color:var(--forest)}.hourline-date-grid button.outside{color:#9aa39f}.hourline-date-grid button.weekend{color:#a65048}.hourline-date-grid button.today{box-shadow:inset 0 0 0 1px #6ba18f}.hourline-date-grid button.selected{background:var(--forest);color:#fff;box-shadow:none;font-weight:900}.hourline-date-grid button:disabled{opacity:.25;cursor:not-allowed}.hourline-date-footer{display:flex;justify-content:flex-start;margin-top:14px}.hourline-date-footer button{padding:7px 14px;font-size:11px;text-transform:capitalize}@media(max-width:520px){.hourline-date-dialog{padding:15px}.hourline-date-grid button{font-size:12px}.hourline-date-header{grid-template-columns:38px 1fr 38px 38px}}html[data-theme="dark"] .hourline-date-trigger,html[data-theme="dark"] .hourline-date-dialog{background:#11251f;color:#edf6f3;border-color:#36534a}html[data-theme="dark"] .hourline-date-header button,html[data-theme="dark"] .hourline-date-footer button{border-color:#36534a;color:#edf6f3}html[data-theme="dark"] .hourline-date-grid button{color:#edf6f3}html[data-theme="dark"] .hourline-date-grid button.outside{color:#75857f}html[data-theme="dark"] .hourline-date-grid button.weekend{color:#ff7777}html[data-theme="dark"] .hourline-date-grid button.selected{background:var(--lime);color:#173e35}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.auth-panel {
  position: relative;
}

.auth-language-picker {
  position: absolute;
  top: 22px;
  right: 24px;
  z-index: 2;
  margin: 0;
}

.auth-language-picker label {
  display: block;
}

.auth-language-picker select {
  width: 166px;
  min-height: 40px;
  padding: 8px 29px 8px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
}

.auth-language-picker noscript button {
  min-height: 36px;
  margin-left: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}

.theme-toggle {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  touch-action: manipulation;
}

.theme-toggle [data-theme-icon] {
  width: 14px;
  color: var(--forest);
  font-size: 14px;
}

.toggle-setting {
  margin-bottom: 16px;
}

.report-trend {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.report-trend.positive {
  color: #23775a !important;
}

.report-trend.negative {
  color: #b4493a !important;
}

.report-trend.neutral {
  color: #78837f !important;
}

.report-trend > span[aria-hidden="true"] {
  color: inherit !important;
  font-size: .78em;
  line-height: 1;
}

/* Improve application readability without changing the invoice document. */
.app-shell .workspace {
  font-size: 12px;
}

.app-shell .sidebar nav p,
.app-shell .topbar small,
.app-shell .eyebrow,
.auth-shell .eyebrow,
.modal-form .eyebrow {
  font-size: 11px;
}

.app-shell .sidebar a,
.app-shell .sidebar button {
  font-size: 14px;
}

.app-shell .sidebar a em,
.app-shell .pill,
.app-shell .metric small,
.app-shell .tiny,
.app-shell .attention-row small,
.app-shell .data-table small,
.app-shell .timesheet small,
.app-shell .inline-form select,
.app-shell .compliance,
.app-shell .vat-input button,
.app-shell .registry-link,
.app-shell .entity-button,
.app-shell .action-menu summary,
.app-shell .action-menu button {
  font-size: 10px;
}

.app-shell .client-card small,
.app-shell .quick-time button,
.app-shell .report-compare small,
.app-shell .toggle-setting small {
  font-size: 9px;
}

.app-shell .saved,
.app-shell .outline,
.app-shell .metric > span,
.app-shell .timer-panel label,
.app-shell .settings-card label,
.app-shell .attention .panel-head a,
.app-shell .attention-row,
.app-shell .empty p,
.app-shell .timesheet th,
.app-shell .timesheet input,
.app-shell .timesheet .row-total,
.app-shell .timesheet tfoot td,
.app-shell .client-card > p,
.app-shell .client-card b,
.app-shell .client-card footer,
.app-shell .data-table td,
.app-shell .week-nav .current-week,
.app-shell .report-controls > label,
.app-shell .report-range,
.app-shell .theme-toggle,
.app-shell .settings-save-bar span,
.modal-form label,
.auth-shell .auth-form label,
.auth-shell .auth-proof,
.auth-shell .auth-switch {
  font-size: 11px;
}

.app-shell .subtle,
.app-shell .alert,
.app-shell .settings-save-bar strong {
  font-size: 13px;
}

.app-shell .data-table th {
  font-size: 10px;
}

.settings-save-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
}

.settings-save-bar > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.settings-save-bar strong {
  color: var(--ink);
  font-size: 12px;
}

.settings-save-bar span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.settings-save-bar .primary {
  flex: 0 0 auto;
}

.appearance-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  align-items: end;
  gap: 24px;
}

.appearance-card > label {
  margin-top: 0 !important;
}

.appearance-card > label small {
  color: var(--muted);
  font-weight: 400;
  line-height: 1.45;
}

.bank-accounts-card {
  grid-column: 1 / -1;
}

.bank-accounts-card .panel-head {
  align-items: center;
}

.bank-accounts-card .panel-head .subtle {
  max-width: 620px;
  margin-top: 5px;
  line-height: 1.45;
}

.bank-account-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.bank-account-row {
  display: grid;
  grid-template-columns: minmax(170px, .75fr) minmax(260px, 1.25fr) minmax(190px, 1fr) auto auto;
  align-items: end;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f9fbfa;
}

.bank-account-row label {
  margin-top: 0;
}

.bank-account-default {
  min-height: 40px;
  flex-direction: row !important;
  align-items: center;
  gap: 7px !important;
  padding: 0 4px;
  color: var(--ink) !important;
}

.bank-account-default input {
  width: 17px;
  height: 17px;
  min-height: 0;
  accent-color: var(--forest);
}

.bank-account-row > button {
  min-height: 40px;
}

.entity-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
}

.entity-actions form {
  margin: 0;
}

.data-table td > .entity-actions {
  width: 100%;
  justify-content: flex-start;
}

.avatar {
  color: #174c40;
}

.entity-button {
  min-height: 31px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--forest);
  font-size: 9px;
  font-weight: 800;
}

.entity-button.danger {
  border-color: #e4c7c0;
  background: #fff5f2;
  color: #973f2e;
}

.entity-button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.client-card.archived {
  opacity: 1;
  border-style: dashed;
  background: #f1f4f2;
}

.data-table tr.archived-record td {
  background: #f1f4f2;
  color: #76827e;
}

.client-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf5f2;
  --muted: #a7b6b1;
  --line: #314740;
  --paper: #0c1513;
  --white: #14211e;
  --forest: #77c9ac;
  --mint: #15372e;
  --blue: #172f3a;
  --violet: #29253a;
  --sand: #392f20;
  --amber: #e2b66d;
}

html[data-theme="dark"] body,
html[data-theme="dark"] .invoice-body {
  background: var(--paper);
  color: var(--ink);
}

html[data-theme="dark"] .topbar {
  border-color: var(--line);
  background: rgba(12, 21, 19, .94);
}

html[data-theme="dark"] .avatar {
  color: #174c40;
}

html[data-theme="dark"] .timer-button:not(.stop) {
  color: #174c40;
}

html[data-theme="dark"] .panel,
html[data-theme="dark"] .auth-panel,
html[data-theme="dark"] .auth-form,
html[data-theme="dark"] dialog,
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .outline,
html[data-theme="dark"] .week-nav,
html[data-theme="dark"] .week-nav a,
html[data-theme="dark"] .quick-time button,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .entity-button,
html[data-theme="dark"] .action-menu-trigger,
html[data-theme="dark"] .action-menu-popover,
html[data-theme="dark"] .action-menu-popover::before,
html[data-theme="dark"] dialog button:not(.primary),
html[data-theme="dark"] .vat-input button,
html[data-theme="dark"] .timesheet-footer button {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

html[data-theme="dark"] .menu-button {
  border-color: #416057;
  background: #20332e;
  color: #f4faf8;
}

html[data-theme="dark"] .quick-time button:hover,
html[data-theme="dark"] .quick-time button:focus-visible {
  border-color: #77c9ac;
  background: #285446;
  color: #fff;
  outline: none;
}

html[data-theme="dark"] .quick-time button:active {
  background: #34705d;
  transform: translateY(1px);
}

@media (max-width: 740px) {
  .auth-language-picker {
    top: 14px;
    right: 15px;
  }

  .auth-language-picker select {
    width: 150px;
  }

  .auth-panel > .auth-form {
    margin-top: 50px;
  }
}

html[data-theme="dark"] .primary {
  background: #246f5d;
  color: #fff !important;
}

html[data-theme="dark"] .primary:hover {
  background: #2d826e;
}

html[data-theme="dark"] .data-table th,
html[data-theme="dark"] .timesheet th,
html[data-theme="dark"] .timesheet tfoot td,
html[data-theme="dark"] .header-row,
html[data-theme="dark"] .totals-row {
  background: #101b18;
  color: #adbbb7;
}

html[data-theme="dark"] .data-table td,
html[data-theme="dark"] .timesheet td,
html[data-theme="dark"] .table-row,
html[data-theme="dark"] .attention-row {
  border-color: #263a34;
  color: #c6d2ce;
}

html[data-theme="dark"] .client-card.archived,
html[data-theme="dark"] .data-table tr.archived-record td {
  border-color: #49635b;
  background: #1b2925;
  color: #9fada8;
}

html[data-theme="dark"] .time-cell.today,
html[data-theme="dark"] .timesheet .today,
html[data-theme="dark"] .has-invoiced-time,
html[data-theme="dark"] .invoiced-time {
  background: #173029;
}

html[data-theme="dark"] .metric span,
html[data-theme="dark"] .metric small,
html[data-theme="dark"] .subtle,
html[data-theme="dark"] .tiny,
html[data-theme="dark"] .client-card > p,
html[data-theme="dark"] .client-card footer {
  color: var(--muted);
}

html[data-theme="dark"] .pill,
html[data-theme="dark"] .status-pill {
  border-color: #3d524c;
  background: #1b2a26;
  color: #bdc9c5;
}

html[data-theme="dark"] .pill.green,
html[data-theme="dark"] .status-pill.green {
  border-color: #3c6d5e;
  background: #193c32;
  color: #9ce0c7;
}

html[data-theme="dark"] .pill.amber,
html[data-theme="dark"] .status-pill.amber {
  border-color: #695433;
  background: #392e1f;
  color: #f0c980;
}

html[data-theme="dark"] .action-menu-popover button {
  color: #d4dfdb;
}

html[data-theme="dark"] .action-menu-popover button:hover,
html[data-theme="dark"] .action-menu-popover button:focus-visible {
  background: #20322d;
}

html[data-theme="dark"] .action-menu-popover form + form {
  border-color: var(--line);
}

html[data-theme="dark"] .entity-button.danger,
html[data-theme="dark"] .action-menu-popover button.danger {
  border-color: #68443d;
  background: #34221f;
  color: #ffb3a3;
}

html[data-theme="dark"] .modal-form,
html[data-theme="dark"] .settings-card,
html[data-theme="dark"] .timer-panel,
html[data-theme="dark"] .attention {
  color: var(--ink);
}

html[data-theme="dark"] .bank-account-row {
  background: #101b18;
}

html[data-theme="dark"] .report-trend.positive {
  color: #72d0ad !important;
}

html[data-theme="dark"] .report-trend.negative {
  color: #ff9a88 !important;
}

html[data-theme="dark"] .report-trend.neutral {
  color: #a7b6b1 !important;
}

html[data-theme="dark"] .toggle-setting,
html[data-theme="dark"] .settings-toggle {
  border-color: var(--line);
  background: #101b18;
  color: var(--ink);
}

html[data-theme="dark"] .invoice-preview {
  background: #101b18;
}

html[data-theme="dark"] .invoice-actions {
  color: var(--ink);
}

html[data-theme="dark"] .invoice-sheet {
  background: #fff;
  color: #333;
  color-scheme: light;
}

/* Keep examples readable while entered VAT IDs remain normalized to uppercase. */
input[name="vat_id"]::placeholder,
input[name="tax_id"]::placeholder,
.vat-input input::placeholder {
  text-transform: none;
}

.cookie-notice {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10000;
  width: min(520px, calc(100% - 40px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px 18px;
  border: 1px solid var(--line, var(--landing-line, #dce5e1));
  border-radius: 15px;
  background: var(--white, var(--landing-card, #fff));
  color: var(--ink, var(--landing-ink, #14211e));
  box-shadow: 0 18px 55px rgba(20, 48, 40, .18);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

.cookie-notice strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.cookie-notice p {
  max-width: 445px;
  margin: 0;
  color: var(--muted, var(--landing-muted, #64726d));
  font-size: 13px;
}

.cookie-notice-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.cookie-notice-actions a {
  color: var(--forest, var(--landing-forest, #174c40));
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-notice-actions button {
  min-height: 38px;
  padding: 8px 14px;
  border: 0;
  border-radius: 9px;
  background: var(--forest, var(--landing-forest, #174c40));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

html[data-theme="dark"] .cookie-notice {
  border-color: #3a514a;
  background: #14211e;
  color: #edf5f2;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .38);
}

html[data-theme="dark"] .cookie-notice p {
  color: #a7b6b1;
}

html[data-theme="dark"] .cookie-notice-actions a {
  color: #8ddabd;
}

html[data-theme="dark"] .cookie-notice-actions button {
  background: #d6f36b;
  color: #174c40;
}

.auth-body .cookie-notice {
  right: auto;
  left: 20px;
  width: min(520px, calc(52vw - 40px));
}

/* Native select controls must remain inside narrow dialogs on mobile. */
dialog label,
dialog .form-grid > label,
dialog .vat-input {
  min-width: 0;
}

dialog select {
  width: 100%;
  max-width: 100%;
}

.analytics-intro .pill {
  flex: 0 0 auto;
}

.analytics-controls {
  margin-bottom: 18px;
}

.analytics-controls input[type="hidden"] {
  display: none;
}

.analytics-metrics .metric small {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.signup-intent-card {
  margin-bottom: 18px;
}

.signup-intent-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, .65fr);
  gap: 26px;
}

.signup-intent-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.signup-intent-summary article {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f6f9f8;
}

.signup-intent-summary article > span,
.signup-intent-summary article > small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.signup-intent-summary article > strong {
  display: block;
  margin: 7px 0 5px;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}

.signup-source-list h3 {
  margin: 0 0 8px;
  font-size: 13px;
}

.signup-intent-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.analytics-language-card {
  margin-bottom: 18px;
}

.language-breakdown-row {
  display: grid;
  grid-template-columns: minmax(170px, .8fr) minmax(180px, 1.2fr) minmax(112px, auto) 54px;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.language-breakdown-row > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.language-breakdown-row small,
.language-breakdown-row em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.language-breakdown-row > div {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6eeeb;
}

.language-breakdown-row > div i {
  display: block;
  min-width: 2px;
  height: 100%;
  border-radius: inherit;
  background: #2c8069;
}

.language-breakdown-row > .analytics-row-value,
.language-breakdown-row > em {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.analytics-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 18px;
  margin-bottom: 18px;
}

.analytics-card {
  padding: 20px;
}

.analytics-card .panel-head {
  align-items: flex-start;
  margin-bottom: 16px;
}

.analytics-card .panel-head h2,
.analytics-table-head h2 {
  margin: 4px 0;
  font-size: 18px;
}

.funnel-row {
  display: grid;
  grid-template-columns: minmax(125px, .7fr) minmax(170px, 1.3fr) minmax(112px, auto);
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.funnel-row > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
}

.funnel-row small {
  color: var(--muted);
  font-size: 10px;
}

.funnel-row > div {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6eeeb;
}

.funnel-row > div i {
  display: block;
  min-width: 2px;
  height: 100%;
  border-radius: inherit;
  background: #2c8069;
}

.funnel-row > strong {
  text-align: right;
  font-size: 15px;
}

.analytics-list > div,
.analytics-signal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.analytics-list > div span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.analytics-row-value {
  min-width: 106px;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 3px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.analytics-row-value .report-trend,
.device-summary .report-trend {
  font-size: 9px;
  line-height: 1.2;
  white-space: nowrap;
}

.analytics-list > div b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-list small,
.analytics-signal span,
.analytics-table-head small {
  color: var(--muted);
  font-size: 10px;
}

.analytics-signal {
  margin-top: 10px;
  padding: 14px;
  border: 0;
  border-radius: 10px;
  background: #eff5f2;
}

.analytics-empty {
  margin: 0;
  padding: 18px 0;
  color: var(--muted);
  font-size: 11px;
}

.analytics-activity {
  margin-bottom: 18px;
}

.analytics-chart-wrap {
  overflow-x: auto;
  padding: 8px 0 3px;
}

.analytics-chart {
  min-width: max(100%, calc(var(--analytics-points) * 10px));
  height: 180px;
  display: grid;
  grid-template-columns: repeat(var(--analytics-points), minmax(3px, 1fr));
  align-items: end;
  gap: 3px;
  padding-top: 12px;
  border-bottom: 1px solid var(--line);
}

.analytics-chart > .analytics-chart-point {
  position: relative;
  height: 100%;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  padding: 0;
  border: 0;
  border-radius: 4px 4px 0 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

.analytics-chart > .analytics-chart-point > i {
  width: 100%;
  min-height: 1px;
  display: block;
  border-radius: 4px 4px 0 0;
  background: #2c8069;
  transition: filter .12s ease, box-shadow .12s ease;
}

.analytics-chart > .analytics-chart-point > b {
  position: absolute;
  left: 50%;
  width: 7px;
  height: 7px;
  border: 2px solid #174c40;
  border-radius: 50%;
  background: var(--lime);
  transform: translate(-50%, 50%);
}

.analytics-chart-point:hover > i,
.analytics-chart-point:focus-visible > i,
.analytics-chart-point[aria-expanded="true"] > i {
  filter: brightness(1.18);
  box-shadow: 0 0 0 2px rgba(44, 128, 105, .2);
}

.analytics-chart-point:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.analytics-chart-tooltip {
  position: fixed;
  z-index: 1000;
  width: max-content;
  min-width: 190px;
  max-width: calc(100vw - 24px);
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(14, 39, 33, .2);
  pointer-events: none;
  font-size: 11px;
}

.analytics-chart-tooltip[hidden] {
  display: none !important;
}

.analytics-chart-tooltip::after {
  content: "";
  position: absolute;
  left: var(--tooltip-arrow-left, 50%);
  bottom: -5px;
  width: 9px;
  height: 9px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  transform: translateX(-50%) rotate(45deg);
}

.analytics-chart-tooltip[data-placement="below"]::after {
  top: -5px;
  bottom: auto;
  border: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.analytics-chart-tooltip > strong {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
}

.analytics-chart-tooltip > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 5px;
  color: var(--muted);
}

.analytics-chart-tooltip > span > span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.analytics-chart-tooltip > span b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.analytics-chart-tooltip .pageview-dot,
.analytics-chart-tooltip .signup-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 2px;
  background: #2c8069;
}

.analytics-chart-tooltip .signup-dot {
  border: 1px solid #174c40;
  border-radius: 50%;
  background: var(--lime);
}

.analytics-chart-labels,
.device-summary,
.analytics-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.analytics-chart-labels {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
}

.device-summary {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 18px;
}

.device-summary > span {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
}

.device-summary b {
  color: var(--ink);
}

.analytics-accounts {
  overflow: hidden;
}

.analytics-accounts table {
  min-width: 980px;
}

.analytics-table-head {
  padding: 20px;
}

html[data-theme="dark"] .funnel-row > div {
  background: #243832;
}

html[data-theme="dark"] .funnel-row > div i,
html[data-theme="dark"] .analytics-chart > .analytics-chart-point > i {
  background: #4db08f;
}

html[data-theme="dark"] .analytics-signal {
  background: #101b18;
}

html[data-theme="dark"] .signup-intent-summary article {
  background: #101b18;
}

html[data-theme="dark"] .language-breakdown-row > div {
  background: #243832;
}

html[data-theme="dark"] .language-breakdown-row > div i {
  background: #4db08f;
}

html[data-theme="dark"] .device-summary > span {
  background: #101b18;
}

html[data-theme="dark"] .analytics-chart > .analytics-chart-point > b {
  border-color: #091410;
}

html[data-theme="dark"] .analytics-chart-tooltip,
html[data-theme="dark"] .analytics-chart-tooltip::after {
  background: #15241f;
}

@media (pointer: coarse) {
  .analytics-chart {
    min-width: max(100%, calc(var(--analytics-points) * 18px));
    gap: 4px;
  }
}

@media (max-width: 1100px) {
  .bank-account-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analytics-layout {
    grid-template-columns: 1fr;
  }

  .signup-intent-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 740px) {
  .analytics-table-head,
  .analytics-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .funnel-row {
    grid-template-columns: 112px minmax(90px, 1fr) minmax(88px, auto);
    gap: 9px;
  }
  .theme-toggle [data-theme-label] {
    display: none;
  }

  .theme-toggle {
    width: 36px;
    padding: 7px;
  }

  .bank-accounts-card .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .appearance-card {
    grid-template-columns: 1fr;
  }

  .bank-account-row {
    grid-template-columns: 1fr;
  }

  .bank-account-default {
    min-height: 28px;
  }

  .settings-save-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-save-bar .primary {
    width: 100%;
  }

  .cookie-notice {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
    padding: 15px;
  }

  .cookie-notice-actions {
    justify-content: space-between;
  }

  .signup-intent-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .language-breakdown-row {
    grid-template-columns: minmax(120px, 1fr) minmax(88px, auto) 48px;
  }

  .language-breakdown-row > div {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* UX refinement pass: accessible navigation, readable forms and responsive work views. */
.sidebar .sidebar-close,
.sidebar-backdrop,
.mobile-scroll-hint {
  display: none;
}

.auth-form h1 {
  margin: 7px 0 5px;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -.7px;
}

.auth-form-signup {
  width: min(540px, 100%);
}

.auth-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}

.auth-form label {
  font-size: 13px !important;
}

.auth-form input,
.auth-form select,
.auth-form button {
  min-height: 48px;
  font-size: 16px;
}

.auth-form label > small,
.auth-form .subtle,
.auth-switch {
  font-size: 12px !important;
  line-height: 1.45;
}

.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.password-field input {
  min-width: 0;
  border-radius: 8px 0 0 8px;
}

.password-field button {
  min-width: 70px;
  padding: 8px 12px;
  border: 1px solid #d7dfdc;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: #f5f8f7;
  color: var(--forest);
  font-size: 12px;
  font-weight: 800;
}

.forgot-password-link {
  display: block;
  width: max-content;
  margin: 9px 0 -9px auto;
  color: var(--forest);
  font-size: 12px;
  font-weight: 800;
}

html[data-theme="dark"] .password-field button {
  border-color: #3a514a;
  background: #1b2c27;
  color: #8ddabd;
}

.language-breakdown-more {
  margin-top: 4px;
}

.language-breakdown-more > summary {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--forest);
  font-weight: 800;
  cursor: pointer;
  list-style-position: inside;
}

.language-breakdown-more[open] > summary {
  margin-bottom: 4px;
}

.settings-save-bar {
  transition: box-shadow .18s ease, transform .18s ease;
}

.settings-save-bar.is-dirty {
  position: sticky;
  bottom: 16px;
  z-index: 7;
  border-color: rgba(23, 76, 64, .28);
  box-shadow: 0 18px 48px rgba(14, 44, 36, .18);
}

dialog {
  overflow: hidden;
}

.modal-form {
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-head {
  position: sticky;
  top: -22px;
  z-index: 4;
  margin: -22px -22px 0;
  padding: 22px 22px 14px;
  background: var(--white);
}

.modal-actions {
  position: sticky;
  bottom: -22px;
  z-index: 4;
  margin: 22px -22px -22px;
  padding: 15px 22px 22px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

html[data-theme="dark"] .modal-head,
html[data-theme="dark"] .modal-actions {
  background: #14211e;
}

.invoice-modal-form {
  scrollbar-gutter: stable;
}

#invoice-dialog {
  width: min(720px, calc(100% - 32px));
}

@media (min-width: 560px) and (max-width: 740px) {
  #invoice-dialog {
    width: min(660px, calc(100% - 24px));
  }

  .invoice-modal-form .form-grid,
  .invoice-modal-form .form-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .invoice-modal-form .form-grid .wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 740px) {
  body.menu-open {
    overflow: hidden;
  }

  .sidebar {
    z-index: 42;
    width: min(310px, 86vw);
    overflow-y: auto;
    box-shadow: 24px 0 60px rgba(0, 0, 0, .28);
  }

  .sidebar .sidebar-close {
    position: absolute;
    top: 21px;
    right: 13px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 9px;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 24px;
  }

  .sidebar .brand {
    padding: 0 48px 24px 10px;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 41;
    display: block;
    border: 0;
    background: rgba(4, 18, 15, .58);
    backdrop-filter: blur(2px);
  }

  .sidebar-backdrop[hidden] {
    display: none;
  }

  .overview-flow {
    display: flex;
    flex-direction: column;
  }

  .overview-flow .dashboard-grid {
    display: contents;
  }

  .overview-flow .timer-panel {
    order: 1;
    margin-bottom: 16px;
  }

  .overview-flow .metrics {
    order: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-flow .attention {
    order: 3;
  }

  .overview-flow .metric {
    min-height: 116px;
    padding: 15px;
  }

  .mobile-scroll-hint {
    display: block;
    margin: 0;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
  }

  .timesheet th:first-child,
  .timesheet td:first-child {
    width: 180px;
    max-width: 180px;
  }

  .quick-time button {
    min-width: 38px;
    min-height: 34px;
    font-size: 10px;
  }

  .data-table.responsive-cards {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .data-table.responsive-cards table,
  .data-table.responsive-cards tbody,
  .data-table.responsive-cards tr,
  .data-table.responsive-cards td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .data-table.responsive-cards thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .data-table.responsive-cards tbody {
    display: grid;
    gap: 12px;
  }

  .data-table.responsive-cards tr {
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
  }

  .data-table.responsive-cards td {
    display: grid;
    grid-template-columns: minmax(105px, .72fr) minmax(0, 1.28fr);
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    font-size: 13px;
    text-align: right;
  }

  .data-table.responsive-cards td:first-child {
    border-top: 0;
  }

  .data-table.responsive-cards td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .07em;
    text-align: left;
    text-transform: uppercase;
  }

  .data-table.responsive-cards td[colspan] {
    display: block;
    text-align: center;
  }

  .data-table.responsive-cards td[colspan]::before {
    display: none;
  }

  .data-table.responsive-cards td > * {
    justify-self: end;
  }

  .data-table.responsive-cards td:first-child > * {
    justify-self: end;
  }

  .data-table.responsive-cards .entity-actions,
  .data-table.responsive-cards .invoice-row-actions {
    justify-content: flex-end;
  }

  .settings-save-bar.is-dirty {
    bottom: 10px;
  }

  .auth-panel {
    align-content: start;
    padding: 76px 16px 28px;
  }

  .auth-language-picker {
    top: 18px;
    right: 16px;
  }

  .auth-form {
    padding: 25px 20px;
  }

  .auth-form-grid {
    grid-template-columns: 1fr;
  }

  .auth-body.has-cookie-notice .auth-form {
    margin-bottom: 148px;
  }

  .auth-body .cookie-notice {
    right: 12px;
    left: 12px;
    width: auto;
  }
}

@media (max-width: 480px) {
  .overview-flow .metrics {
    grid-template-columns: 1fr;
  }

  .timesheet th:first-child,
  .timesheet td:first-child {
    width: 145px;
    max-width: 145px;
  }

  .cookie-notice {
    gap: 10px;
    padding: 13px;
  }
}

@media print {
  .theme-toggle,
  .cookie-notice {
    display: none !important;
  }

  html[data-theme="dark"] body,
  html[data-theme="dark"] .invoice-body {
    background: #fff;
    color: #333;
  }
}
