:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  color: #1b2b32;
  background: #f4f7f7;

  --font-ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --text-xs: 0.6875rem;
  --text-sm: 0.8125rem;
  --text-md: 0.9375rem;
  --text-lg: 1.125rem;
  --text-xl: 1.75rem;
  --text-display: clamp(1.75rem, 3vw, 2.125rem);
  --line-height: 1.55;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --ink: #1b2b32;
  --muted: #697b81;
  --muted-light: #89979b;
  --line: #e1e9e8;
  --blue: #145d78;
  --blue-dark: #10465a;
  --blue-soft: #eaf4f5;
  --mint: #d8f0e7;
  --paper: #fff;
  --bg: #f4f7f7;
  --red: #a53a3a;
  --red-soft: #fff0ee;
  --green: #367250;
  --green-soft: #e3f4ea;
  --amber: #8a671c;
  --amber-soft: #fff4dd;
  --shadow: 0 12px 32px rgb(29 54 70 / 5%);
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 400 var(--text-sm)/var(--line-height) var(--font-ui); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgb(20 93 120 / 28%); outline-offset: 2px; }

.topbar { min-height: 4.75rem; display: flex; align-items: center; gap: clamp(1rem, 3.5vw, 3rem); padding: 0 max(1.25rem, calc((100vw - 1320px) / 2)); background: var(--paper); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; flex: 0 0 auto; font-size: var(--text-md); font-weight: 750; letter-spacing: -0.025em; white-space: nowrap; }
.brand small { display: block; margin-top: 0.1rem; color: var(--muted); font-size: 0.625rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; }
.brand-mark { display: grid; width: 2.25rem; height: 2.25rem; place-items: center; border-radius: 0.7rem; color: #fff; background: var(--blue); font-size: 1.125rem; font-weight: 800; }
.topbar nav { display: flex; align-items: center; gap: clamp(0.7rem, 2vw, 1.5rem); flex: 1 1 auto; min-width: 0; align-self: stretch; }
.topbar nav a { display: inline-flex; align-items: center; min-height: 100%; border-bottom: 2px solid transparent; color: #5f7278; font-size: var(--text-sm); font-weight: 600; white-space: nowrap; }
.topbar nav a:hover { border-color: #84bdad; color: var(--blue); }
.topbar nav .nav-cta { min-height: 2.55rem; align-self: center; padding: 0.3rem 0.9rem; border: 0; border-radius: var(--radius-sm); background: var(--mint); color: #174e45; }
.account { display: flex; align-items: center; gap: 0.9rem; flex: 0 0 auto; color: var(--muted); font-size: var(--text-xs); white-space: nowrap; }
.account form { margin: 0; }
.link-button { border: 0; padding: 0; color: var(--blue); background: transparent; font: 650 var(--text-xs)/1 var(--font-ui); cursor: pointer; }
.container { width: min(100%, 1384px); margin: 0 auto; padding: 2.5rem clamp(1rem, 3vw, 2.25rem) 1.5rem; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; margin: 0 0 1.7rem; }
.page-heading h1 { margin: 0.25rem 0 0; font-size: var(--text-display); line-height: 1.15; letter-spacing: -0.045em; font-weight: 730; }
.page-heading p { margin: 0.5rem 0 0; }
.eyebrow { color: #4b857a; font-size: var(--text-xs); line-height: 1.3; font-weight: 750; letter-spacing: 0.13em; text-transform: uppercase; }
.muted { color: var(--muted); font-size: var(--text-sm); line-height: var(--line-height); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.65rem; padding: 0 1rem; border: 1px solid transparent; border-radius: var(--radius-sm); font: 700 var(--text-sm)/1 var(--font-ui); cursor: pointer; transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease; }
.button:disabled { opacity: 0.5; cursor: not-allowed; }
.primary { color: #fff; background: var(--blue); }
.primary:hover:not(:disabled) { background: var(--blue-dark); }
.secondary { color: #42565d; background: #fff; border-color: #d5e0e0; }
.secondary:hover:not(:disabled) { color: var(--blue); border-color: #9bb5ba; }
.danger { color: #963a35; background: #fff; border-color: #edcfca; }
.danger:hover:not(:disabled) { background: var(--red-soft); border-color: #d9a9a2; }
.button.small { min-height: 2.1rem; padding: 0 0.7rem; font-size: var(--text-xs); }
.full { width: 100%; margin-top: 0.35rem; }
.button-row, .form-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 0.65rem; }
.button-row { justify-content: flex-start; margin: 0.9rem 0 1.15rem; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.stat, .panel { min-width: 0; border: 1px solid #e5eceb; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.stat { padding: 1.2rem 1.35rem; }
.stat span, .stat small { display: block; color: var(--muted); font-size: var(--text-xs); }
.stat strong { display: block; margin: 0.65rem 0 0.2rem; font-size: 1.7rem; line-height: 1.1; font-weight: 730; letter-spacing: -0.035em; }
.stat .stat-state { color: var(--amber); font-size: 1.2rem; }
.panel { margin-bottom: 1.15rem; padding: 1.45rem; }
.panel h2 { margin: 0 0 0.4rem; font-size: var(--text-lg); line-height: 1.3; font-weight: 720; letter-spacing: -0.02em; }
.panel h3 { margin: 1.2rem 0 0.75rem; font-size: var(--text-sm); font-weight: 720; }
.panel p { max-width: 80ch; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-heading h2 { margin: 0; }
.section-heading p { margin: 0.25rem 0 0; }
.text-link { color: var(--blue); font-size: var(--text-xs); font-weight: 720; }
.text-link:hover { text-decoration: underline; }
.count { display: inline-flex; align-items: center; min-height: 1.6rem; padding: 0 0.65rem; border-radius: 99px; color: #5e7077; background: #f0f5f4; font-size: var(--text-xs); font-weight: 680; }
.notice { display: flex; flex-direction: column; gap: 0.2rem; margin-top: 1.3rem; padding: 0.85rem 1rem; border-left: 3px solid #76ab9d; border-radius: 0.35rem; color: #5a6b70; background: #f1f7f6; font-size: var(--text-xs); line-height: var(--line-height); }
.notice strong { color: #315b53; }

.table-wrap { width: 100%; min-width: 0; overflow-x: auto; }
table { width: 100%; min-width: 610px; border-collapse: collapse; text-align: left; }
table.company-table { min-width: 0; table-layout: fixed; }
table.company-table th, table.company-table td { overflow-wrap: anywhere; white-space: normal; }
th { padding: 0.7rem 0.65rem; border-bottom: 1px solid var(--line); color: var(--muted-light); font-size: 0.625rem; font-weight: 740; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
td { padding: 0.85rem 0.65rem; border-bottom: 1px solid #edf1f0; color: #485a60; font-size: var(--text-xs); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td strong { color: #273a41; }
.table-link { display: flex; flex-direction: column; gap: 0.15rem; }
.table-link small, td small { display: block; margin-top: 0.2rem; color: #8b999d; font-size: 0.625rem; }
.url-cell { max-width: 26rem; overflow-wrap: anywhere; white-space: normal; }
.badge { display: inline-flex; align-items: center; padding: 0.27rem 0.55rem; border-radius: 99px; font-size: 0.625rem; line-height: 1.2; font-weight: 730; }
.badge.gray { color: #697780; background: #eff2f3; }
.badge.green { color: var(--green); background: var(--green-soft); }
.badge.amber { color: var(--amber); background: var(--amber-soft); }
.empty { padding: 1.8rem; color: #91a0a4; text-align: center; white-space: normal; }
.two-column { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 1.1rem; align-items: start; }
.two-column > .panel { min-width: 0; }
.two-column .panel { padding: 1.3rem; }

.panel form > label, .auth-card form label { display: flex; flex-direction: column; gap: 0.4rem; margin: 0 0 0.8rem; color: #596b71; font-size: var(--text-xs); font-weight: 680; }
.panel input, .panel select, .auth-card input, .copy-row input { width: 100%; min-width: 0; min-height: 2.5rem; padding: 0.55rem 0.7rem; border: 1px solid #d5e0e0; border-radius: 0.45rem; outline: none; color: #24373e; background: #fff; font: 400 var(--text-sm)/1.3 var(--font-ui); }
.panel input:focus, .panel select:focus, .auth-card input:focus { border-color: #72a89d; box-shadow: 0 0 0 3px rgb(114 168 157 / 12%); }
.panel input[type="checkbox"] { width: 1rem; min-height: 1rem; height: 1rem; margin: 0; padding: 0; accent-color: var(--blue); }
.panel input[type="file"] { min-height: auto; padding: 0.45rem; font-size: var(--text-xs); }
.panel input[type="file"]::file-selector-button { margin-right: 0.6rem; padding: 0.45rem 0.65rem; border: 0; border-radius: 0.35rem; color: var(--blue); background: var(--blue-soft); font: 700 var(--text-xs) var(--font-ui); cursor: pointer; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.field-row.three { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr) minmax(0, 0.65fr); }
.field-note { margin: 0.4rem 0 0.9rem; color: var(--muted-light); font-size: var(--text-xs); line-height: var(--line-height); }
.lookup-result { margin: -0.25rem 0 0.9rem; padding: 0.7rem 0.8rem; border: 1px solid #e2ece9; border-radius: var(--radius-sm); color: #5d7278; background: #f6faf9; font-size: var(--text-xs); line-height: var(--line-height); }
.lookup-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; margin: -0.2rem 0 1rem; padding: 0.8rem; border: 1px solid #e1e9e8; border-radius: var(--radius-sm); background: #f8fbfa; }
.lookup-actions[hidden] { display: none; }
.lookup-actions button { min-height: 2.5rem; }
.alert-panel { border-color: #ecd8ad; background: #fffcf4; }
.alert-panel h2 { color: #745b20; }
.alert-panel .button-row { margin-bottom: 0.5rem; }
.alert-panel .button-row form { margin: 0; }
.invite-again { display: flex; align-items: end; gap: 0.65rem; flex-wrap: wrap; margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1px solid var(--line); }
.invite-again label { display: flex; flex: 1 1 15rem; flex-direction: column; gap: 0.35rem; color: #596b71; font-size: var(--text-xs); font-weight: 680; }
.invite-again input { width: 100%; min-width: 0; min-height: 2.5rem; padding: 0.55rem 0.7rem; border: 1px solid #d5e0e0; border-radius: 0.45rem; color: #24373e; background: #fff; font: 400 var(--text-sm)/1.3 var(--font-ui); }
.search { display: flex; gap: 0.55rem; margin-bottom: 0.9rem; }
.search input { flex: 1; }
.form-panel { max-width: 58rem; margin: 0 auto; }
.form-panel > .field-row, .form-panel > label { margin-bottom: 0.85rem; }
.line-items { margin: 0.5rem 0 1.1rem; padding: 1.25rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.line-items .section-heading { align-items: center; }
.line-row { display: grid; grid-template-columns: minmax(11rem, 2fr) minmax(5rem, 0.7fr) minmax(7.5rem, 1fr) minmax(5rem, 0.7fr) minmax(8rem, 1fr) 1.75rem; align-items: end; gap: 0.55rem; margin: 0.5rem 0; padding: 0.75rem; border: 1px solid #edf0f2; border-radius: var(--radius-sm); background: #f8fafb; }
.line-row label { display: flex; min-width: 0; flex-direction: column; gap: 0.35rem; color: #77838a; font-size: 0.625rem; font-weight: 700; }
.line-row input, .line-row select { width: 100%; min-width: 0; height: 2.3rem; padding: 0.4rem; border: 1px solid #dce3e7; border-radius: 0.35rem; background: #fff; font: 400 var(--text-xs)/1.2 var(--font-ui); }
.remove-line { width: 1.75rem; height: 2.3rem; border: 0; color: #a86969; background: transparent; font-size: 1.4rem; cursor: pointer; }
.form-actions { margin-top: 1rem; }
.alert { margin: 0 0 1.1rem; padding: 0.75rem 0.9rem; border: 1px solid transparent; border-radius: var(--radius-sm); font-size: var(--text-xs); line-height: var(--line-height); }
.alert.error { color: #923e36; background: var(--red-soft); border-color: #f0d1cd; }
.alert.success { color: #32714e; background: #eaf6ed; border-color: #d0e8d7; }
.alert.info { color: #3f6878; background: #eef5f7; border-color: #d4e3e9; }
.import-errors { margin: 0.6rem 0 0; padding-left: 1.2rem; }
.detail-grid { grid-template-columns: minmax(0, 1.25fr) minmax(17rem, 0.75fr); }
.detail-total { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0.75rem 0 1.1rem; padding: 1rem; border-radius: var(--radius-sm); color: #62727a; background: #f5f8f8; font-size: var(--text-xs); }
.detail-total strong { color: #172d37; font-size: 1.4rem; letter-spacing: -0.02em; }
.timeline { margin: 1.25rem 0; padding: 0; list-style: none; }
.timeline li { position: relative; display: flex; gap: 0.7rem; padding-bottom: 1.25rem; }
.timeline li:not(:last-child)::after { position: absolute; top: 0.9rem; bottom: 0; left: 0.3rem; width: 1px; background: #dce6e3; content: ""; }
.timeline-dot { position: relative; z-index: 1; width: 0.7rem; height: 0.7rem; flex: 0 0 0.7rem; margin-top: 0.15rem; border: 2px solid #77a99e; border-radius: 50%; background: #fff; }
.timeline li strong, .timeline li small { display: block; }
.timeline li strong { font-size: var(--text-xs); }
.timeline li small { margin-top: 0.25rem; color: var(--muted-light); font-size: 0.625rem; }
.copy-row { display: flex; gap: 0.6rem; margin: 0.8rem 0 0.55rem; }
.result-panel { border-color: #cce3d8; background: #fafffc; }
.result-panel p, .result-panel small { color: #647770; font-size: var(--text-xs); }
.result-panel h2 { margin-top: 0.35rem; }
.result-panel input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--text-xs); }
.secret-panel { border-color: #c1ddd0; }
.inline-form, .integration-form { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.integration-form h3 { margin-top: 0; }
.integrations-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.integration-form .scope-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 1rem; margin: 0 0 1rem; padding: 0.8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.scope-list legend { padding: 0 0.3rem; color: var(--muted); font-size: var(--text-xs); font-weight: 700; }
.scope-list label { display: flex; align-items: center; gap: 0.5rem; color: #53666c; font-size: var(--text-xs); }
.action-stack { display: flex; align-items: center; gap: 0.4rem; }
.action-stack form { margin: 0; }
.api-hint { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 1.2rem; padding: 0.9rem; border-radius: var(--radius-sm); background: #f2f7f7; color: var(--muted); font-size: var(--text-xs); }
.api-hint strong { color: var(--ink); }
.api-hint code, .webhook-help code { color: #245d70; font: 650 var(--text-xs)/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.feature-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.feature-list p { display: flex; flex-direction: column; gap: 0.25rem; margin: 0; padding: 0.8rem; border: 1px solid #edf1f0; border-radius: var(--radius-sm); color: var(--muted); font-size: var(--text-xs); }
.feature-list strong { color: var(--ink); }
.upload-form { margin: 1rem 0 0.75rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.archive-form { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }

.auth-body { display: grid; min-height: 100vh; place-items: center; padding: 1.5rem; background: radial-gradient(ellipse at 25% 20%, #e8f2ef 0, transparent 43%), var(--bg); }
.auth-card { width: min(100%, 27rem); padding: 2.25rem 2.25rem 1.8rem; border: 1px solid var(--line); border-radius: 0.9rem; background: #fff; box-shadow: 0 25px 70px rgb(26 51 63 / 10%); }
.auth-card .brand { margin-bottom: 2.25rem; }
.auth-card h1 { margin: 0.5rem 0; font-size: 1.65rem; line-height: 1.2; letter-spacing: -0.04em; }
.auth-card .eyebrow { margin-bottom: 0.5rem; }
.auth-card .muted { margin: 0 0 1.4rem; }
.auth-card .tiny { margin: 1rem 0 0; color: var(--muted); font-size: var(--text-xs); text-align: center; }
.auth-card label { margin-bottom: 0.9rem !important; }
.auth-card input { min-height: 2.75rem; }
.auth-card .alert { margin-bottom: 1.1rem; }
.auth-links { margin: 0.9rem 0 0; color: var(--blue); font-size: var(--text-xs); font-weight: 680; text-align: center; }
.auth-links a:hover { text-decoration: underline; }
.auth-card .field-note { margin: 0; color: var(--muted-light); font-size: 0.625rem; font-weight: 450; }
footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0.15rem 0.45rem; color: #9aa7aa; font-size: 0.625rem; }

@media (max-width: 1120px) {
  .topbar { flex-wrap: wrap; gap: 0 1.3rem; padding: 0.7rem 1.2rem; }
  .topbar nav { order: 3; flex-basis: 100%; min-height: 2.6rem; overflow-x: auto; }
  .topbar nav a { min-height: 2.5rem; }
  .account { margin-left: auto; }
  .container { padding-top: 1.8rem; }
  .line-row { grid-template-columns: minmax(10rem, 2fr) repeat(2, minmax(5.3rem, 1fr)) minmax(4.8rem, 0.7fr) 1.75rem; }
  .line-row label:nth-of-type(5) { grid-column: 2 / 5; }
  .remove-line { grid-column: 5; grid-row: 2; }
}

@media (max-width: 760px) {
  .topbar { padding: 0.7rem 1rem; }
  .topbar nav { gap: 1rem; }
  .account > span { display: none; }
  .container { padding: 1.5rem 1rem 1rem; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .stats, .two-column, .detail-grid, .integrations-grid { grid-template-columns: minmax(0, 1fr); }
  .stats { gap: 0.65rem; }
  .stat { padding: 0.9rem 1rem; }
  .stat strong { margin: 0.4rem 0 0.15rem; font-size: 1.4rem; }
  .panel { padding: 1.1rem; }
  .two-column .panel { padding: 1.1rem; }
  .field-row, .field-row.three { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .line-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
  .line-row label:first-child { grid-column: 1 / -1; }
  .line-row label:nth-of-type(5) { grid-column: auto; }
  .remove-line { grid-column: auto; grid-row: auto; justify-self: end; }
  .copy-row, .search { align-items: stretch; flex-direction: column; }
  .copy-row input { font-size: 0.625rem; }
  .feature-list { grid-template-columns: minmax(0, 1fr); }
  .integration-form .scope-list { grid-template-columns: minmax(0, 1fr); }
  .action-stack { align-items: flex-start; flex-direction: column; }
  footer { flex-direction: column; gap: 0.3rem; }
  .auth-card { padding: 1.9rem 1.5rem; }
}

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

/* Account menu and profile preferences */
.account-menu { position: relative; }
.account-menu summary { display: flex; align-items: center; gap: 0.6rem; list-style: none; cursor: pointer; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-avatar { display: grid; width: 2.15rem; height: 2.15rem; flex: 0 0 2.15rem; place-items: center; border: 1px solid #d8e7e3; border-radius: 50%; color: #245d58; background: #e8f3ef; font-size: var(--text-xs); font-weight: 760; }
.account-identity { display: flex; max-width: 13rem; flex-direction: column; gap: 0.08rem; overflow: hidden; }
.account-identity strong { overflow: hidden; color: #344b52; font-size: var(--text-xs); font-weight: 700; text-overflow: ellipsis; }
.account-identity small { overflow: hidden; color: var(--muted-light); font-size: 0.625rem; text-overflow: ellipsis; }
.account-chevron { color: var(--muted); font-size: 1rem; }
.account-menu-popover { position: absolute; z-index: 20; top: calc(100% + 0.65rem); right: 0; display: flex; width: min(16rem, calc(100vw - 2rem)); flex-direction: column; padding: 0.45rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; box-shadow: 0 14px 36px rgb(29 54 70 / 13%); }
.account-menu-popover > a, .account-menu-popover > form > button { display: block; width: 100%; padding: 0.65rem 0.7rem; border: 0; border-radius: 0.35rem; color: #41575e; background: transparent; font: 650 var(--text-xs)/1.35 var(--font-ui); text-align: left; }
.account-menu-popover > a:hover, .account-menu-popover > form > button:hover { color: var(--blue); background: #f2f7f6; }
.account-menu-popover > form { margin: 0.35rem 0 0; padding-top: 0.35rem; border-top: 1px solid var(--line); }
.account-menu-note { padding: 0.4rem 0.7rem; color: #4e8176; font-size: 0.625rem; }
.profile-option { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.2rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #f8fbfa; }
.profile-option strong { color: #30474e; font-size: var(--text-sm); }
.profile-option p { margin: 0.25rem 0 0; color: var(--muted); font-size: var(--text-xs); }
.toggle-label { display: flex; flex: 0 0 auto; align-items: center; gap: 0.45rem; color: #53666c; font-size: var(--text-xs); font-weight: 700; }
.toggle-label input { width: 1rem !important; min-height: 1rem !important; height: 1rem; accent-color: var(--blue); }
.customer-editor-form > .customer-save { margin-top: 0.9rem; }
.customer-lookup { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 0.75rem; margin: -0.25rem 0 0.95rem; }
.customer-lookup span { min-width: 0; flex: 1 1 12rem; color: var(--muted); font-size: var(--text-xs); line-height: var(--line-height); }
.customer-lookup .button { white-space: nowrap; }
.selected-row { background: #f2f8f6; }
.selected-row td:first-child { box-shadow: inset 3px 0 #69a796; }
.customer-editor > .section-heading { align-items: center; }
.event-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem; margin: 0 0 0.9rem; padding: 0.8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.event-list legend { padding: 0 0.3rem; color: var(--muted); font-size: var(--text-xs); font-weight: 700; }
.event-option { display: flex !important; align-items: center; gap: 0.55rem !important; margin: 0 !important; padding: 0.45rem; border-radius: 0.35rem; cursor: pointer; }
.event-option:hover { background: #f5f9f8; }
.event-option input { width: 1rem !important; min-height: 1rem !important; height: 1rem; flex: 0 0 1rem; accent-color: var(--blue); }
.event-option span, .event-option small { display: block; }
.event-option strong { color: #41575e; font-size: var(--text-xs); }
.event-option small { margin-top: 0.05rem; color: var(--muted-light); font-size: 0.625rem; }

@media (max-width: 760px) {
  .account-identity { display: none; }
  .account-menu-popover { top: calc(100% + 0.45rem); }
  .profile-option { align-items: flex-start; flex-direction: column; }
  .customer-lookup { align-items: flex-start; flex-direction: column; }
}
