:root {
  --turquoise: #009ca3;
  --turquoise-dark: #007c82;
  --turquoise-deep: #063d41;
  --turquoise-soft: #e4f5f5;
  --ink: #142526;
  --muted: #667879;
  --line: #dce7e7;
  --surface: #ffffff;
  --canvas: #f3f7f7;
  --warning: #f2a900;
  --danger: #bf3e3e;
  --success: #16865e;
  --shadow: 0 14px 45px rgba(9, 52, 55, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); font: 16px/1.5 Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.login-page { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(440px, .92fr); background: white; }
.login-brand { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: 100%; padding: clamp(40px, 7vw, 92px); color: white; background: linear-gradient(145deg, #006f75 0%, #009ca3 48%, #0fb5b6 100%); }
.login-brand::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 0 45%, rgba(255,255,255,.08) 45% 46%, transparent 46% 100%); }
.brand-orbit { position: absolute; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; }
.brand-orbit-one { width: 650px; height: 650px; right: -250px; top: -230px; }
.brand-orbit-two { width: 390px; height: 390px; right: -70px; top: -60px; }
.login-brand-content { position: relative; z-index: 1; max-width: 680px; }
.event-pill { display: inline-flex; align-items: center; padding: 8px 13px; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; background: rgba(0,74,78,.18); font-size: 13px; font-weight: 700; letter-spacing: .03em; }
.login-brand h1 { margin: 28px 0 18px; font-size: clamp(44px, 6vw, 78px); line-height: .98; letter-spacing: -.055em; }
.login-brand p { max-width: 520px; margin: 0; color: rgba(255,255,255,.84); font-size: clamp(18px, 2vw, 23px); }
.brand-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 70px; }
.brand-metrics div { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.32); }
.brand-metrics strong, .brand-metrics span { display: block; }
.brand-metrics strong { font-size: 24px; }
.brand-metrics span { margin-top: 4px; color: rgba(255,255,255,.72); font-size: 13px; }
.login-panel { display: grid; place-items: center; padding: 48px; }
.login-card { width: min(100%, 460px); }
.neumeier-logo { display: block; width: 220px; max-width: 70%; height: auto; object-fit: contain; }
.login-heading { margin: 54px 0 30px; }
.eyebrow { display: block; color: var(--turquoise-dark); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.login-heading h2, .page-heading h1 { margin: 8px 0 10px; font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -.035em; }
.login-heading p, .page-heading p { margin: 0; color: var(--muted); }
.login-form { display: grid; gap: 12px; }
.login-form label, .field label, .field legend { color: #334849; font-size: 14px; font-weight: 700; }
.input-with-icon { display: grid; grid-template-columns: 46px 1fr; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: white; transition: .2s ease; }
.input-with-icon:focus-within { border-color: var(--turquoise); box-shadow: 0 0 0 4px rgba(0,156,163,.12); }
.input-with-icon span { display: grid; place-items: center; color: var(--turquoise-dark); font-weight: 800; }
.input-with-icon input { min-width: 0; height: 54px; padding: 0 15px 0 2px; border: 0; outline: 0; background: transparent; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 10px 18px; border: 0; border-radius: 11px; font-weight: 800; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.button:active { transform: translateY(1px); }
.button:disabled { cursor: wait; opacity: .58; }
.button-primary { color: white; background: var(--turquoise); box-shadow: 0 8px 20px rgba(0,156,163,.2); }
.button-primary:hover { background: var(--turquoise-dark); }
.button-secondary { color: var(--turquoise-deep); border: 1px solid #bcd7d8; background: white; }
.button-large { min-height: 56px; margin-top: 8px; justify-content: space-between; padding-inline: 20px; }
.login-help { margin: 22px 0 0; color: var(--muted); font-size: 13px; }
.message { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--turquoise-soft); color: var(--turquoise-deep); font-size: 14px; }
.message.is-error { background: #fff0ef; color: #8d2d2d; }

.app-shell { min-height: 100dvh; }
.app-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid rgba(205,220,220,.9); background: rgba(255,255,255,.94); backdrop-filter: blur(18px); }
.header-inner { width: min(1500px, calc(100% - 48px)); height: 78px; margin: auto; display: flex; align-items: center; gap: 24px; }
.logo-button { width: 168px; padding: 0; border: 0; background: transparent; }
.logo-button img { display: block; width: 100%; }
.event-title { padding-left: 22px; border-left: 1px solid var(--line); line-height: 1.15; }
.event-title span, .event-title small { display: block; }
.event-title span { font-weight: 800; }
.event-title small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.desktop-nav { display: flex; align-self: stretch; margin-left: auto; }
.nav-button { position: relative; padding: 0 18px; border: 0; color: #536566; background: transparent; font-size: 14px; font-weight: 700; }
.nav-button::after { content: ""; position: absolute; right: 18px; bottom: 0; left: 18px; height: 3px; border-radius: 3px 3px 0 0; background: transparent; }
.nav-button.is-active { color: var(--turquoise-dark); }
.nav-button.is-active::after { background: var(--turquoise); }
.account-menu { display: flex; align-items: center; gap: 10px; margin-left: 10px; }
.account-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--turquoise-deep); font-size: 13px; font-weight: 800; }
.account-copy { max-width: 130px; line-height: 1.2; }
.account-copy strong, .account-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-copy strong { font-size: 13px; }
.account-copy span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.icon-button { width: 36px; height: 36px; border: 0; border-radius: 9px; color: var(--muted); background: #edf3f3; font-weight: 800; transform: rotate(90deg); }
.app-main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 54px 0 100px; }
.view-section { animation: view-in .28s ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.page-heading h1 { font-size: clamp(32px, 4vw, 48px); }
.save-hint { display: flex; align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; color: #536566; background: white; font-size: 13px; white-space: nowrap; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(22,134,94,.12); }

.lead-form { display: grid; gap: 22px; }
.form-card { position: relative; padding: 34px; overflow: hidden; border: 1px solid #dce8e8; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.section-number { position: absolute; right: 25px; top: 6px; color: #edf4f4; font-size: 66px; font-weight: 900; letter-spacing: -.07em; line-height: 1; }
.form-section-heading { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.form-section-heading h2, .dashboard-card h2 { margin: 0; font-size: 23px; letter-spacing: -.02em; }
.form-section-heading p, .card-heading p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.required-note { color: var(--muted); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: 160px 1fr 1fr; gap: 20px; }
.field { display: grid; align-content: start; gap: 8px; }
.field-wide { grid-column: span 1; }
.field-small { grid-column: span 1; }
.field input, .field select, .field textarea, .search-field input, .dashboard-toolbar select { width: 100%; min-height: 50px; border: 1px solid var(--line); border-radius: 10px; outline: none; color: var(--ink); background: #fbfdfd; transition: .18s ease; }
.field input, .field select, .search-field input, .dashboard-toolbar select { padding: 0 14px; }
.field textarea { min-height: auto; padding: 13px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .search-field:focus-within, .dashboard-toolbar select:focus { border-color: var(--turquoise); box-shadow: 0 0 0 4px rgba(0,156,163,.1); background: white; }
.field-wide:nth-child(1), .field-wide:nth-child(2), .field-wide:nth-child(3) { grid-column: span 1; }
.form-grid .field:nth-child(3) { grid-column: span 3; }
.form-grid-followup { grid-template-columns: 1fr 1fr; }
.form-grid-followup .field { grid-column: span 1 !important; }
.form-grid-followup .field:last-child { grid-column: span 2 !important; }
.interest-fieldset { margin: 0; padding: 0; border: 0; }
.interest-fieldset legend span { margin-left: 6px; color: var(--muted); font-size: 12px; font-weight: 400; }
.interest-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-top: 10px; }
.check-tile { position: relative; min-height: 62px; display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; color: #3f5253; background: #fbfdfd; font-size: 14px; font-weight: 700; cursor: pointer; transition: .16s ease; }
.check-tile input, .privacy-check input, .priority-control input { position: absolute; opacity: 0; pointer-events: none; }
.check-mark { width: 22px; height: 22px; flex: 0 0 22px; display: grid; place-items: center; border: 1.5px solid #a8bbbb; border-radius: 6px; color: transparent; background: white; font-size: 13px; }
.check-tile:has(input:checked) { border-color: var(--turquoise); color: var(--turquoise-deep); background: var(--turquoise-soft); }
.check-tile input:checked + .check-mark, .privacy-check input:checked + .check-mark { border-color: var(--turquoise); color: white; background: var(--turquoise); }
.field-error { margin: 8px 0 0; color: var(--danger); font-size: 13px; }
.priority-control { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.priority-control label { cursor: pointer; }
.priority-control span { min-height: 65px; display: grid; align-content: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: 11px; background: #fbfdfd; }
.priority-control b, .priority-control small { display: block; }
.priority-control b { font-size: 14px; }
.priority-control small { margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 400; }
.priority-control label:has(input:checked) span { border-color: var(--turquoise); background: var(--turquoise-soft); box-shadow: inset 3px 0 var(--turquoise); }
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.upload-card { min-height: 100px; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 14px; padding: 17px; border: 1px dashed #a9c6c7; border-radius: 13px; background: #f7fbfb; cursor: pointer; }
.upload-card:hover { border-color: var(--turquoise); background: var(--turquoise-soft); }
.upload-card input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; color: var(--turquoise-deep); background: var(--turquoise-soft); font-size: 22px; }
.upload-card strong, .upload-card small { display: block; }
.upload-card strong { color: var(--ink); font-size: 14px; }
.upload-card small { margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 400; }
.upload-card > b { color: var(--turquoise-dark); font-size: 12px; }
.notes-field { margin-top: 20px; }
.form-card-final { border-color: #b7d9da; }
.summary-strip { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 1px; margin-bottom: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.summary-strip div { min-width: 0; padding: 15px 17px; background: #f8fbfb; }
.summary-strip span, .summary-strip strong { display: block; }
.summary-strip span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.summary-strip strong { margin-top: 4px; overflow: hidden; text-overflow: ellipsis; font-size: 14px; white-space: nowrap; }
.privacy-check { display: flex; align-items: flex-start; gap: 12px; padding: 15px; border-radius: 11px; background: #f7fbfb; color: #415455; font-size: 13px; cursor: pointer; }
.submit-row { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 25px; }
.submit-row p { margin: 0; color: var(--muted); font-size: 13px; }
.button-submit { min-width: 250px; min-height: 54px; justify-content: space-between; }

.mini-stats, .stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.mini-stat, .stat-card { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow); }
.mini-stat span, .stat-card span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.mini-stat strong, .stat-card strong { display: block; margin-top: 7px; font-size: 29px; letter-spacing: -.04em; }
.stat-card small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.stat-card.accent { color: white; background: var(--turquoise-deep); border-color: var(--turquoise-deep); }
.stat-card.accent span, .stat-card.accent small { color: rgba(255,255,255,.7); }
.lead-list { display: grid; gap: 10px; }
.lead-row { display: grid; grid-template-columns: minmax(170px,1.3fr) minmax(160px,1fr) minmax(150px,1fr) 130px 34px; align-items: center; gap: 18px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: 0 5px 18px rgba(9,52,55,.04); cursor: pointer; }
.lead-row:hover { border-color: #a9cfd0; }
.lead-row strong, .lead-row span, .lead-row small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-row span, .lead-row small { color: var(--muted); font-size: 13px; }
.lead-primary strong, .lead-primary span { display: block; }
.lead-primary span { margin-top: 3px; }
.priority-badge, .addison-badge { display: inline-flex; width: fit-content; padding: 5px 9px; border-radius: 999px; font-size: 11px !important; font-weight: 800; }
.priority-badge.hot { color: #9b2f2f; background: #ffe7e4; }
.priority-badge.warm { color: #875b00; background: #fff1c8; }
.priority-badge.long_term { color: #4f6667; background: #e9eeee; }
.addison-badge.done { color: #126646; background: #dff5eb; }
.addison-badge.open { color: #806000; background: #fff2cc; }
.empty-state { padding: 50px 22px; text-align: center; border: 1px dashed #bed0d1; border-radius: 15px; color: var(--muted); background: rgba(255,255,255,.7); }
.empty-state strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 18px; }

.dashboard-heading { align-items: center; }
.dashboard-toolbar { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(150px, .7fr)); gap: 10px; margin-bottom: 16px; }
.search-field { min-height: 48px; display: grid; grid-template-columns: 40px 1fr; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: white; }
.search-field span { text-align: center; color: var(--turquoise-dark); font-size: 20px; }
.search-field input { min-width: 0; border: 0; background: transparent; box-shadow: none !important; }
.dashboard-toolbar select { background-color: white; }
.dashboard-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; margin-bottom: 16px; }
.dashboard-card { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow); }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.bar-chart { display: grid; gap: 13px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 30px; align-items: center; gap: 10px; font-size: 12px; }
.bar-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 9px; overflow: hidden; border-radius: 999px; background: #edf2f2; }
.bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--turquoise-dark), #19b5b7); }
.bar-row strong { text-align: right; }
.machine-chart { display: grid; gap: 10px; }
.machine-row { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 10px; padding-bottom: 9px; border-bottom: 1px solid #edf2f2; font-size: 13px; }
.machine-row:last-child { border-bottom: 0; }
.machine-dot { width: 9px; height: 9px; border-radius: 3px; background: var(--turquoise); }
.machine-row:nth-child(2n) .machine-dot { background: #063d41; }
.machine-row:nth-child(3n) .machine-dot { background: #f2a900; }
.machine-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-table-card { padding: 0; overflow: hidden; }
.lead-table-card .card-heading { margin: 0; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.lead-table .lead-row { border: 0; border-bottom: 1px solid #e7eeee; border-radius: 0; box-shadow: none; }
.lead-table .lead-row:last-child { border-bottom: 0; }

.lead-dialog { width: min(720px, calc(100% - 28px)); max-height: min(88dvh, 850px); padding: 0; border: 0; border-radius: 18px; color: var(--ink); background: white; box-shadow: 0 30px 90px rgba(4,35,37,.24); }
.lead-dialog::backdrop { background: rgba(2,28,30,.58); backdrop-filter: blur(5px); }
.dialog-close { position: sticky; z-index: 2; top: 14px; float: right; width: 38px; height: 38px; margin: 14px 14px 0 0; border: 0; border-radius: 50%; color: #415455; background: #edf3f3; font-size: 24px; line-height: 1; }
.dialog-content { padding: 30px; }
.dialog-content h2 { margin: 6px 55px 4px 0; font-size: 28px; line-height: 1.1; }
.dialog-content > p { margin: 0; color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 24px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.detail-item { padding: 13px 15px; background: #fafcfc; }
.detail-item.wide { grid-column: span 2; }
.detail-item span, .detail-item strong { display: block; }
.detail-item span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.detail-item strong { margin-top: 4px; white-space: pre-wrap; }
.addison-control { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px; border-radius: 13px; background: var(--turquoise-soft); }
.addison-control strong, .addison-control span { display: block; }
.addison-control span { margin-top: 2px; color: var(--muted); font-size: 12px; }
.switch { position: relative; width: 52px; height: 30px; flex: 0 0 52px; }
.switch input { position: absolute; opacity: 0; }
.switch span { position: absolute; inset: 0; margin: 0; border-radius: 999px; background: #abc1c2; transition: .2s; }
.switch span::after { content: ""; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: white; box-shadow: 0 2px 5px rgba(0,0,0,.2); transition: .2s; }
.switch input:checked + span { background: var(--turquoise); }
.switch input:checked + span::after { transform: translateX(22px); }
.attachment-list { display: grid; gap: 8px; margin-top: 18px; }
.attachment-link { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--turquoise-deep); text-decoration: none; }
.toast { position: fixed; z-index: 100; right: 20px; bottom: 20px; max-width: min(420px, calc(100% - 40px)); padding: 14px 17px; border-radius: 12px; color: white; background: var(--turquoise-deep); box-shadow: 0 12px 40px rgba(0,0,0,.2); font-size: 14px; font-weight: 700; }
.toast.is-error { background: #8d2d2d; }
.mobile-nav { display: none; }

@media (max-width: 1050px) {
  .login-page { grid-template-columns: 1fr 1fr; }
  .brand-metrics { grid-template-columns: 1fr; gap: 0; margin-top: 40px; }
  .brand-metrics div { display: grid; grid-template-columns: 60px 1fr; align-items: center; }
  .brand-metrics span { margin: 0; }
  .desktop-nav { display: none; }
  .header-inner { width: min(100% - 30px, 1180px); }
  .account-menu { margin-left: auto; }
  .form-grid { grid-template-columns: 130px 1fr 1fr; }
  .interest-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .dashboard-toolbar { grid-template-columns: 1fr 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .mobile-nav { position: fixed; z-index: 30; right: 14px; bottom: max(12px, env(safe-area-inset-bottom)); left: 14px; display: grid; grid-template-columns: repeat(3, 1fr); padding: 6px; border: 1px solid rgba(180,205,206,.85); border-radius: 16px; background: rgba(255,255,255,.95); box-shadow: 0 14px 50px rgba(4,45,48,.18); backdrop-filter: blur(18px); }
  .mobile-nav button { min-height: 54px; display: grid; place-items: center; align-content: center; gap: 1px; border: 0; border-radius: 11px; color: var(--muted); background: transparent; }
  .mobile-nav span { font-size: 20px; line-height: 1; }
  .mobile-nav small { font-size: 10px; font-weight: 800; }
  .mobile-nav button.is-active { color: var(--turquoise-deep); background: var(--turquoise-soft); }
}

@media (max-width: 760px) {
  .login-page { display: block; background: linear-gradient(180deg, var(--turquoise) 0 185px, white 185px); }
  .login-brand { min-height: 185px; align-items: flex-start; padding: 26px 22px; background: transparent; }
  .login-brand h1, .login-brand p, .brand-metrics { display: none; }
  .login-panel { padding: 0 18px 40px; }
  .login-card { margin-top: -45px; padding: 28px 23px; border-radius: 20px; background: white; box-shadow: 0 18px 50px rgba(4,45,48,.14); }
  .neumeier-logo { width: 170px; }
  .login-heading { margin: 35px 0 24px; }
  .login-heading h2 { font-size: 30px; }
  .app-header { position: static; }
  .header-inner { height: 68px; }
  .logo-button { width: 135px; }
  .event-title, .account-copy { display: none; }
  .account-avatar { margin-left: auto; }
  .app-main { width: min(100% - 24px, 700px); padding: 30px 0 100px; }
  .page-heading { align-items: flex-start; margin-bottom: 22px; }
  .page-heading h1 { font-size: 34px; }
  .page-heading p { font-size: 14px; }
  .save-hint { display: none; }
  .form-card { padding: 24px 18px; border-radius: 15px; }
  .section-number { right: 14px; font-size: 54px; }
  .form-section-heading { margin-bottom: 22px; }
  .form-section-heading h2 { font-size: 21px; }
  .required-note { display: none; }
  .form-grid, .form-grid-followup { grid-template-columns: 1fr 1fr; gap: 15px 12px; }
  .form-grid .field, .form-grid-followup .field { grid-column: span 2 !important; }
  .form-grid .field-small { grid-column: span 1 !important; }
  .form-grid .field-small + .field { grid-column: span 1 !important; }
  .interest-grid { grid-template-columns: 1fr 1fr; }
  .check-tile { min-height: 58px; padding: 10px; font-size: 13px; }
  .priority-control { grid-template-columns: 1fr; }
  .priority-control span { min-height: 58px; }
  .upload-grid { grid-template-columns: 1fr; }
  .upload-card { grid-template-columns: 44px 1fr; }
  .upload-card > b { display: none; }
  .summary-strip { grid-template-columns: 1fr; }
  .summary-strip div { padding: 12px 14px; }
  .submit-row { display: grid; }
  .button-submit { width: 100%; min-width: 0; }
  .mini-stats, .stat-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-heading { display: grid; }
  .dashboard-toolbar { grid-template-columns: 1fr; }
  .dashboard-toolbar .search-field { grid-column: span 1; }
  .dashboard-card { padding: 19px 16px; }
  .lead-table-card { padding: 0; }
  .lead-row { grid-template-columns: 1fr auto; gap: 10px; padding: 15px; }
  .lead-row > :nth-child(2), .lead-row > :nth-child(3) { grid-column: 1; }
  .lead-row > :nth-child(4) { grid-column: 2; grid-row: 1; }
  .lead-row > :nth-child(5) { grid-column: 2; grid-row: 2 / span 2; }
  .bar-row { grid-template-columns: 105px 1fr 25px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-item.wide { grid-column: span 1; }
  .dialog-content { padding: 24px 18px; }
}

@media (max-width: 390px) {
  .interest-grid { grid-template-columns: 1fr; }
  .mini-stats, .stat-grid { grid-template-columns: 1fr; }
}

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