:root {
  color-scheme: light;
  --ink: #1d2a3a;
  --ink-soft: #405267;
  --muted: #6c7c8e;
  --line: #dbe5ee;
  --paper: #ffffff;
  --canvas: #f3f7fb;
  --primary: #1d78c8;
  --primary-dark: #135b9c;
  --primary-soft: #eaf4fd;
  --secondary: #2fa9dc;
  --secondary-soft: #eaf8fd;
  --accent: #139c87;
  --accent-soft: #e6f8f4;
  --gold: #5576a3;
  --gold-soft: #f2f6fb;
  --danger: #b43f50;
  --warning: #9a650e;
  --table-stripe: #f1f7fd;
  --table-hover: #e4f1fb;
  --table-toolbar: #f3f9fe;
  --dt-row-stripe: 29, 120, 200;
  --dt-row-stripe-alpha: .052;
  --dt-row-hover: 29, 120, 200;
  --dt-row-hover-alpha: .09;
  --dt-column-ordering: 29, 120, 200;
  --dt-column-ordering-alpha: .018;
  --radius: 19px;
  --radius-small: 11px;
  --shadow: 0 14px 40px rgba(14, 66, 112, .09);
  --shadow-hover: 0 20px 52px rgba(18, 91, 156, .16);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 102px; }
body { min-height: 100vh; margin: 0; color: var(--ink); background: radial-gradient(circle at 8% 4%, rgba(29, 120, 200, .13) 0, transparent 28rem), radial-gradient(circle at 93% 18%, rgba(47, 169, 220, .09) 0, transparent 25rem), linear-gradient(180deg, #fcfeff 0, var(--canvas) 420px); font-size: 15px; line-height: 1.5; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.17; }
h1 { font-size: clamp(1.8rem, 3vw, 2.55rem); font-weight: 650; letter-spacing: -0.025em; }
h2 { font-size: 1.18rem; font-weight: 640; letter-spacing: -.012em; }
h3 { font-size: 1rem; font-weight: 620; }
strong, b { font-weight: 640; }
p { margin: .55rem 0; }
small, .muted { color: var(--muted); }

.topbar { min-height: 82px; color: white; background: linear-gradient(112deg, #062b49 0%, #0b4f7f 58%, #0b5c91 100%); box-shadow: 0 9px 30px rgba(6, 38, 65, .22); position: sticky; top: 0; z-index: 20; }
.topbar-inner { display: flex; align-items: center; gap: 28px; width: min(1600px, calc(100% - 48px)); min-height: 82px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; color: white; font-size: 1.08rem; font-weight: 560; letter-spacing: -.012em; }
.brand:hover { color: white; text-decoration: none; }
.brand img { border-radius: 14px; box-shadow: 0 8px 22px rgba(3, 32, 52, .28); }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-weight: 560; }
.brand-copy small { margin-top: 5px; color: rgba(255, 255, 255, .67); font-size: .69rem; font-weight: 430; letter-spacing: .035em; }
.workspace-band-switcher { flex: 0 1 auto; min-width: 0; max-width: 360px; margin: 0; }
.workspace-band-switcher .choices { width: max-content; min-width: 158px; max-width: 360px; color: var(--ink); }
.workspace-band-switcher .choices__inner { display: flex; align-items: center; min-height: 50px; padding: 4px 38px 4px 7px; border-color: rgba(255,255,255,.24); border-radius: 14px; background: rgba(255,255,255,.12); color: white; }
.workspace-band-switcher .choices__list--single { max-width: 300px; padding: 0; overflow: hidden; line-height: 1.2; }
.workspace-band-switcher .choices__list--single .workspace-band-option { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 0; color: white; }
.workspace-band-switcher .choices__list--single .workspace-band-option-copy small { display: none; }
.workspace-band-switcher .choices__list--dropdown { width: min(340px, calc(100vw - 24px)); margin-top: 8px; border: 1px solid #bdd8ea; border-radius: 15px; background: white; box-shadow: 0 18px 42px rgba(4, 46, 79, .24); overflow: hidden; }
.workspace-band-switcher .choices__list--dropdown .choices__list { max-height: 360px; padding: 6px; }
.workspace-band-switcher .choices__list--dropdown .workspace-band-option { display: flex; align-items: center; gap: 11px; min-height: 58px; margin: 0 0 4px; padding: 8px 38px 8px 8px; border: 1px solid transparent; border-radius: 11px; color: var(--ink); background: white; }
.workspace-band-switcher .choices__list--dropdown .workspace-band-option:last-child { margin-bottom: 0; }
.workspace-band-switcher .choices__list--dropdown .workspace-band-option.is-highlighted { border-color: #b9d9ee; background: #eaf5fc; }
.workspace-band-switcher .choices__list--dropdown .workspace-band-option[aria-selected="true"] { border-color: #a9d1e9; background: #f1f8fd; }
.workspace-band-switcher .choices__list--dropdown .workspace-band-option[aria-selected="true"]::after { content: "✓"; position: absolute; right: 15px; color: #087ebf; font-size: 1rem; font-weight: 750; }
.workspace-band-option-logo { display: grid; flex: 0 0 auto; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; color: white; background: #147fbd; font-size: .7rem; font-weight: 720; letter-spacing: .04em; overflow: hidden; }
.workspace-band-option-logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.workspace-band-option-copy { display: grid; min-width: 0; gap: 2px; line-height: 1.15; }
.workspace-band-option-copy strong { overflow: hidden; font-size: .83rem; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.workspace-band-option-copy small { overflow: hidden; max-width: 240px; color: var(--muted); font-size: .69rem; font-weight: 450; text-overflow: ellipsis; white-space: nowrap; }
.workspace-band-switcher .choices[data-type*="select-one"]::after { top: 50%; right: 15px; width: 7px; height: 7px; margin: 0; border: 0; border-right: 2px solid rgba(255,255,255,.82); border-bottom: 2px solid rgba(255,255,255,.82); transform: translateY(-67%) rotate(45deg); transform-origin: center; }
.workspace-band-switcher .choices[data-type*="select-one"].is-open::after { margin: 0; border: 0; border-right: 2px solid white; border-bottom: 2px solid white; transform: translateY(-28%) rotate(-135deg); }
.workspace-band-switcher .choices.is-focused .choices__inner,
.workspace-band-switcher .choices.is-open .choices__inner { border-color: rgba(127,216,244,.86); box-shadow: 0 0 0 3px rgba(112,220,244,.17); }
.workspace-band-switcher .choices:focus-visible { outline: 0; }
.workspace-band-switcher .choices.is-open .choices__inner { border-radius: 14px; }
.workspace-band-current { display: flex; align-items: center; flex: 0 1 auto; min-width: 0; gap: 9px; padding: 5px 11px 5px 6px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; color: white; background: rgba(255,255,255,.09); line-height: 1.12; }
.workspace-band-current:hover { color: white; background: rgba(255,255,255,.14); text-decoration: none; }
.workspace-band-current .workspace-band-option-copy small { color: rgba(255,255,255,.62); font-size: .62rem; text-transform: uppercase; letter-spacing: .07em; }
.workspace-band-current .workspace-band-option-copy strong { max-width: 250px; color: white; }
.topbar nav { display: flex; gap: 5px; flex: 1; }
.topbar nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 43px; padding: 9px 12px; border-radius: 11px; color: rgba(255, 255, 255, .76); font-size: .94rem; font-weight: 540; transition: color .15s ease, background .15s ease, transform .15s ease; }
.topbar nav a svg, .account svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.topbar nav a:hover { color: white; background: rgba(255, 255, 255, .09); text-decoration: none; transform: translateY(-1px); }
.topbar nav a[aria-current="page"] { color: white; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.topbar nav a[aria-current="page"] svg { color: #70dcf4; }
.account { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; color: white; font-size: .88rem; }
.user-avatar { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 13px; color: white; background: linear-gradient(135deg, #168cc9, #33b9df); box-shadow: 0 7px 18px rgba(22, 140, 201, .28); font-size: .75rem; font-weight: 650; letter-spacing: .03em; }
.account-copy { display: grid; line-height: 1.15; }
.account-copy strong { font-weight: 560; }
.account-copy small { margin-top: 4px; color: rgba(255, 255, 255, .62); font-size: .7rem; font-weight: 420; }
.account form { margin: 0; }
.link-button { width: 38px; min-width: 38px; min-height: 38px; padding: 0; border: 0; border-radius: 11px; color: rgba(255, 255, 255, .68); background: rgba(255, 255, 255, .07); box-shadow: none; font: inherit; cursor: pointer; }
.link-button:hover { color: white; background: rgba(255, 255, 255, .14); box-shadow: none; transform: none; }
.app-menu { position: relative; flex: 0 0 auto; margin-left: auto; }
.app-menu > summary { display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 9px 14px; border: 1px solid rgba(255,255,255,.24); border-radius: 12px; color: white; background: rgba(255,255,255,.1); font-size: .9rem; font-weight: 570; list-style: none; cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.app-menu > summary::-webkit-details-marker { display: none; }
.app-menu > summary::marker { content: ""; }
.app-menu > summary svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }
.app-menu > summary:hover,
.app-menu[open] > summary { border-color: rgba(127,216,244,.65); background: rgba(255,255,255,.18); }
.app-menu > summary:hover { transform: translateY(-1px); }
.app-menu-popover { position: absolute; z-index: 80; top: calc(100% + 12px); right: 0; width: min(310px, calc(100vw - 24px)); padding: 10px; border: 1px solid #cbddea; border-radius: 18px; color: var(--ink); background: rgba(255,255,255,.985); box-shadow: 0 24px 60px rgba(5,42,68,.28); }
.app-menu-account { display: flex; align-items: center; gap: 11px; margin-bottom: 8px; padding: 10px 11px 13px; border-bottom: 1px solid #deebf4; }
.app-menu-account .account-copy { display: grid; min-width: 0; }
.app-menu-account .account-copy strong { overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.app-menu-account .account-copy small { color: var(--muted); }
.topbar .app-menu nav { display: grid; flex: none; gap: 3px; width: 100%; min-width: 0; padding: 0; overflow: visible; }
.topbar .app-menu nav a { display: flex; gap: 11px; width: 100%; min-height: 44px; padding: 10px 12px; color: var(--ink-soft); border-radius: 11px; font-size: .93rem; font-weight: 540; }
.topbar .app-menu nav a:hover { color: var(--primary-dark); background: #edf6fc; transform: none; }
.topbar .app-menu nav a[aria-current="page"] { color: var(--primary-dark); background: #e5f2fb; box-shadow: inset 3px 0 var(--primary); }
.topbar .app-menu nav a svg { color: var(--primary); }
.app-menu-logout { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid #deebf4; }
.app-menu-logout .link-button { display: flex; justify-content: flex-start; gap: 11px; width: 100%; min-height: 44px; padding: 10px 12px; color: #8b3d3d; background: transparent; }
.app-menu-logout .link-button:hover { color: #7b2525; background: #fff2f2; }
.app-menu-logout .link-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.container { width: min(1540px, calc(100% - 56px)); margin: 36px auto 72px; }
.container.anonymous { width: 100%; margin: 0; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.page-heading > div:first-child { min-width: 0; }
.page-heading .muted { max-width: 820px; margin-top: 9px; }
.eyebrow { margin: 0 0 7px; color: var(--primary); font-size: .72rem; font-weight: 650; letter-spacing: .11em; text-transform: uppercase; }
.panel { background: rgba(255, 255, 255, .96); border: 1px solid rgba(219, 229, 238, .94); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 18px; }
.panel.narrow { max-width: 700px; margin: 70px auto; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.panel-block-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel > .panel-block-heading:first-child,
.panel > .section-heading:first-child,
.panel > .form-section-heading:first-child { margin: -24px -24px 20px; padding: 17px 24px 14px; border: 0; border-bottom: 1px solid #d2e1ec; border-radius: 19px 19px 0 0; background: linear-gradient(115deg, #eef7ff, #f3fbff); }
.panel > h2:first-child { margin: -24px -24px 20px; padding: 20px 24px 16px; border-bottom: 1px solid #d2e1ec; border-radius: 19px 19px 0 0; background: linear-gradient(115deg, #eef7ff, #f3fbff); line-height: 1.2; }
.panel-block-heading .eyebrow, .panel > .section-heading:first-child .eyebrow { margin-bottom: 4px; }
.panel-block-heading h2, .panel > .section-heading:first-child h2 { line-height: 1.2; }
.content-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, .8fr); gap: 20px; margin-top: 20px; }
.content-grid > .panel + .panel { margin-top: 0; }
.dashboard-bands-panel { align-self: start; }
.dashboard-band-list { display: grid; gap: 10px; }
.dashboard-band-card { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) 18px; align-items: center; gap: 12px; min-width: 0; padding: 12px; border: 1px solid #d9e5ee; border-radius: 14px; color: var(--ink); background: white; box-shadow: 0 5px 15px rgba(14, 66, 112, .06); overflow: hidden; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease; }
.dashboard-band-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--band-card-primary, var(--primary)); }
.dashboard-band-card:hover { color: var(--ink); border-color: color-mix(in srgb, var(--band-card-primary, var(--primary)) 42%, #d9e5ee); background: #f7fbfe; box-shadow: 0 9px 22px rgba(14, 66, 112, .12); text-decoration: none; transform: translateY(-2px); }
.dashboard-band-identity { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.9); border-radius: 13px; color: white; background: linear-gradient(135deg, var(--band-card-primary, var(--primary)), var(--band-card-secondary, var(--secondary))); box-shadow: 0 5px 13px rgba(14, 66, 112, .12); overflow: hidden; }
.dashboard-band-identity img { display: block; width: 100%; height: 100%; background: white; object-fit: contain; }
.dashboard-band-identity > span { font-size: .76rem; font-weight: 650; letter-spacing: .04em; }
.dashboard-band-copy { display: grid; min-width: 0; gap: 3px; }
.dashboard-band-copy strong, .dashboard-band-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-band-copy strong { font-size: .91rem; font-weight: 600; }
.dashboard-band-copy small { color: var(--muted); font-size: .76rem; }
.dashboard-band-card > svg { width: 18px; height: 18px; color: var(--band-card-primary, var(--primary)); fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; transition: transform .15s ease; }
.dashboard-band-card:hover > svg { transform: translateX(3px); }
.dashboard-band-list .button.wide { width: 100%; }
.band-public-links { display: flex; flex-wrap: wrap; gap: 9px; }
.active-band-context { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 11px 13px; border: 1px solid #cfe2f1; border-radius: 12px; background: #f1f8fd; }
.active-band-context span { color: var(--muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .055em; }
.active-band-context strong { color: var(--primary-dark); }
.band-selection-page { width: min(1100px, 100%); margin: 0 auto; }
.band-selection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.band-selection-form { min-width: 0; margin: 0; }
.band-selection-card { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "identity copy" "identity action"; align-items: center; gap: 5px 16px; width: 100%; min-height: 132px; padding: 22px; border: 1px solid #cfe0ed; border-radius: 18px; color: var(--ink); background: white; box-shadow: 0 10px 28px rgba(14,66,112,.08); text-align: left; cursor: pointer; overflow: hidden; }
.band-selection-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--band-card-primary, var(--primary)); }
.band-selection-card:hover { color: var(--ink); border-color: color-mix(in srgb, var(--band-card-primary, var(--primary)) 48%, #cfe0ed); background: #f7fbfe; box-shadow: 0 16px 34px rgba(14,66,112,.14); transform: translateY(-2px); }
.band-selection-card.is-current { border-color: #9cc8e6; box-shadow: 0 0 0 2px #dceef9, 0 10px 28px rgba(14,66,112,.09); }
.band-selection-card .band-card-initials { grid-area: identity; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 17px; color: white; background: var(--band-card-primary, var(--primary)); font-size: 1rem; font-weight: 700; letter-spacing: .05em; }
.band-selection-card .band-card-initials img { display: block; width: 100%; height: 100%; object-fit: cover; }
.band-selection-card > span:nth-child(2) { grid-area: copy; display: grid; gap: 4px; min-width: 0; }
.band-selection-card.is-current > span:nth-child(2) { padding-right: 82px; }
.band-selection-card > span:nth-child(2) strong { overflow: hidden; font-size: 1.08rem; text-overflow: ellipsis; white-space: nowrap; }
.band-selection-card > span:nth-child(2) small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.band-selection-action { grid-area: action; color: var(--band-card-primary, var(--primary)); font-size: .84rem; font-weight: 620; }
.band-selection-current { position: absolute; top: 13px; right: 14px; padding: 4px 8px; border-radius: 999px; color: #075d50; background: #dff7f0; font-size: .68rem; font-weight: 650; }

.dashboard-hero { position: relative; display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 18px; padding: 38px 40px; border-radius: 26px; color: white; background: radial-gradient(circle at 84% 20%, rgba(72, 197, 232, .38), transparent 17rem), radial-gradient(circle at 66% 120%, rgba(19, 156, 135, .3), transparent 19rem), linear-gradient(120deg, #0b4b78 0%, #1478b8 100%); box-shadow: 0 22px 55px rgba(8, 70, 114, .2); overflow: hidden; }
.dashboard-hero::after { content: ""; position: absolute; right: -38px; top: -64px; width: 200px; height: 200px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: 0 0 0 34px rgba(255,255,255,.035), 0 0 0 68px rgba(255,255,255,.025); pointer-events: none; }
.dashboard-hero > * { position: relative; z-index: 1; }
.dashboard-hero p { margin: 0 0 9px; color: #a9e7f5; font-size: .95rem; font-weight: 500; }
.dashboard-hero h1 { max-width: 720px; font-size: clamp(2rem, 4vw, 3.15rem); font-weight: 580; letter-spacing: -.028em; }
.dashboard-hero span { display: block; max-width: 660px; margin-top: 13px; color: rgba(255, 255, 255, .73); font-size: 1.02rem; }
.dashboard-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.button.light { color: #0b4b78; background: white; border-color: white; box-shadow: 0 8px 24px rgba(5, 51, 83, .16); }
.button.light:hover { color: var(--primary-dark); background: #f7fbff; }
.button.ghost-light { color: white; background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .34); box-shadow: none; }
.button.ghost-light:hover { color: white; background: rgba(255, 255, 255, .16); }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { position: relative; padding: 21px 21px 19px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(14, 66, 112, .055); overflow: hidden; }
.stat::after { content: ""; position: absolute; right: -22px; top: -28px; width: 92px; height: 92px; border: 1px solid #bdddf2; border-radius: 50%; background: radial-gradient(circle at 34% 34%, #dff2fd, #bfdef3 72%, #b4d7ef); box-shadow: 0 0 0 14px rgba(29, 120, 200, .045); }
.stat span { display: block; margin-top: 7px; font-size: 1.9rem; font-weight: 560; letter-spacing: -.018em; }
.stat small { display: block; color: var(--ink-soft); font-weight: 510; }
.stat em { display: block; margin-top: 3px; color: var(--muted); font-size: .78rem; font-style: normal; }
.stat.tone-violet { color: var(--primary); background: linear-gradient(145deg, #fff, #eef7ff); border-color: #cfe4f5; }
.stat.tone-coral { color: #168eb7; background: linear-gradient(145deg, #fff, #effbff); border-color: #d0edf6; }
.stat.tone-mint { color: #118b75; background: linear-gradient(145deg, #fff, #ebfaf7); border-color: #ccefe7; }
.stat.tone-gold { color: #5576a3; background: linear-gradient(145deg, #fff, #f2f6fb); border-color: #dbe5f0; }
.stat.warning { border-color: #ead7b4; background: #fffbf2; }

.button, button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 16px; border: 1px solid var(--primary); border-radius: var(--radius-small); color: white; background: linear-gradient(135deg, var(--primary), #1769b1); box-shadow: 0 5px 14px rgba(23, 105, 177, .2); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: .93rem; font-weight: 560; letter-spacing: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.button:hover, button:hover { color: white; background: linear-gradient(135deg, var(--primary-dark), #0d4e88); box-shadow: 0 8px 19px rgba(13, 78, 136, .25); text-decoration: none; transform: translateY(-1px); }
button:disabled { cursor: not-allowed; opacity: .48; }
.button.secondary, button.secondary { color: var(--ink-soft); background: white; border-color: var(--line); box-shadow: 0 3px 10px rgba(14, 66, 112, .06); }
.button.secondary:hover, button.secondary:hover { color: var(--primary-dark); background: var(--primary-soft); border-color: #bfdcf1; }
.button.danger, button.danger { background: white; color: var(--danger); border-color: #e0b7b3; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid rgba(47, 169, 220, .42); outline-offset: 3px; }

label { display: grid; align-content: start; gap: 7px; font-weight: 570; color: var(--ink-soft); }
label small { line-height: 1.45; font-weight: 450; }
input, select, textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #cddbe7; border-radius: var(--radius-small); color: var(--ink); background: white; box-shadow: 0 1px 2px rgba(14, 66, 112, .025); font: inherit; transition: border-color .15s ease, box-shadow .15s ease; }
input:hover, select:hover, textarea:hover { border-color: #93aec2; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(29, 120, 200, .14); border-color: var(--primary); }
.iti { width: 100%; }
.iti input { width: 100%; }
.iti__country-selector { z-index: 40; }
.iti button.iti__selected-country,
.iti button.iti__selected-country:hover,
.iti button.iti__selected-country:active {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-small) 0 0 var(--radius-small);
  color: inherit;
  background: transparent;
  box-shadow: none;
  transform: none;
}
.iti button.iti__selected-country:focus-visible { outline: 2px solid rgba(29, 120, 200, .45); outline-offset: -3px; }
.iti .iti__selected-country-primary { border-radius: var(--radius-small) 0 0 var(--radius-small); transition: background-color .15s ease; }
.iti .iti__selected-country-primary:hover,
.iti .iti__selected-country:has(+ .iti__country-selector:hover) .iti__selected-country-primary { background: #e9f4fb; }
.iti .iti__dropdown-content { border: 1px solid #bfd4e4; border-radius: 12px; background: white; box-shadow: 0 16px 38px rgba(7, 50, 82, .18); overflow: hidden; }
.iti .iti__search-input-wrapper { border-bottom-color: #d5e3ed; background: #f7fbfe; }
.iti input.iti__search-input,
.iti input.iti__search-input:hover {
  min-height: 42px;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
}
.iti input.iti__search-input:focus { border: 0; outline: 0; box-shadow: inset 0 -2px var(--primary); }
.iti .iti__country { color: var(--ink-soft); background: white; transition: color .12s ease, background-color .12s ease; }
.iti .iti__country.iti__highlight,
.iti .iti__country:hover { color: var(--primary-dark); background: #eaf5fc; }
.stack { display: grid; gap: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .span-two { grid-column: span 2; }
.performance-format-content { display: grid; gap: 12px; }
.performance-format-content > .muted { margin: 0; line-height: 1.5; }
.performance-format-content textarea { min-height: 96px; }
.performance-format-content .choices__inner { min-height: 48px; }
.form-section { display: grid; gap: 24px; }
.form-section-heading { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border: 1px solid #dce8f1; border-radius: 14px; background: linear-gradient(110deg, #f1f8fe, #fff); }
.form-section-heading p { margin: 5px 0 0; color: var(--muted); font-size: .9rem; }
.section-number { display: inline-grid; place-items: center; flex: 0 0 auto; width: 35px; height: 35px; border-radius: 11px; color: white; background: linear-gradient(135deg, var(--primary), #35a9d6); box-shadow: 0 6px 13px rgba(29, 120, 200, .21); font-size: .75rem; font-weight: 620; }
.email-branding-editor { margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.email-branding-editor legend { padding: 0 7px; color: #334155; font-weight: 750; }
.email-branding-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.color-control { display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: center; gap: 10px; }
.color-control input[type="color"] { width: 54px; height: 42px; padding: 4px; cursor: pointer; }
.color-control output { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88rem; }
.email-branding-sample { margin-top: 16px; padding: 18px; border-radius: 10px; background: var(--email-secondary, #EFF6FF); }
.email-branding-sample > div { display: grid; gap: 5px; max-width: 430px; padding: 20px; border: 1px solid rgba(15, 23, 42, .08); background: white; }
.email-branding-sample small, .email-branding-sample strong, .email-branding-sample a { color: var(--email-primary, #1D4ED8); }
.email-branding-sample small { font-weight: 800; letter-spacing: .08em; }
.email-branding-sample strong { font-size: 1.25rem; }
.email-branding-sample a { margin-top: 6px; font-weight: 750; text-decoration: underline; }
.form-actions { display: flex; align-items: center; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.form-actions-sticky { position: sticky; z-index: 12; bottom: 14px; width: fit-content; max-width: 100%; margin: 2px 0 0; padding: 10px; border: 1px solid rgba(191, 219, 254, .9); border-radius: 13px; background: rgba(255, 255, 255, .94); box-shadow: 0 14px 36px rgba(15, 23, 42, .14); backdrop-filter: blur(12px); }
.form-actions-sticky small { max-width: 420px; margin-left: 4px; }
.rich-text-source-enhanced { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.rich-text-editor { overflow: hidden; border: 1px solid #cddbe7; border-radius: 13px; background: white; box-shadow: 0 1px 2px rgba(14, 66, 112, .025); }
.rich-text-editor:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29, 120, 200, .14); }
.rich-text-editor .pell-actionbar { display: flex; align-items: center; gap: 3px; padding: 7px; border-bottom: 1px solid #dce7f0; background: #f2f8fd; overflow-x: auto; }
.rich-text-editor .pell-button { width: 34px; min-width: 34px; height: 34px; min-height: 34px; padding: 0; border: 0; border-radius: 7px; color: #475569; background: transparent; box-shadow: none; font-size: .86rem; }
.rich-text-editor .pell-button:hover, .rich-text-editor .pell-button:focus-visible, .rich-text-editor .pell-button-selected { color: var(--primary-dark); background: var(--primary-soft); box-shadow: none; transform: none; }
.rich-text-editor .pell-content { min-height: 190px; height: auto; max-height: 480px; padding: 15px 16px; color: var(--ink); font-weight: 400; line-height: 1.65; overflow-y: auto; }
.rich-text-editor .pell-content:focus { outline: 0; }
.rich-text-editor .pell-content p { margin: 0 0 .8em; }
.rich-text-editor .pell-content h2 { margin: 1em 0 .5em; font-size: 1.2rem; }
.rich-text-editor .pell-content blockquote { margin: .8em 0; padding-left: 14px; border-left: 3px solid #93b4e8; color: #475569; }
.rich-text-editor .pell-content[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #b44b42; }
.rich-text-error { color: var(--danger); font-weight: 650; }
.rich-text-error[hidden] { display: none; }
.rich-content { line-height: 1.65; overflow-wrap: anywhere; }
.rich-content > :first-child { margin-top: 0; }
.rich-content > :last-child { margin-bottom: 0; }
.rich-content a { text-decoration: underline; text-underline-offset: 2px; }
.rich-content blockquote { margin: 1em 0; padding-left: 16px; border-left: 3px solid #93b4e8; color: #475569; }
.help { margin-top: 5px; color: var(--muted); font-size: .85rem; }
.checkbox-label { display: flex; align-items: start; gap: 9px; }
.checkbox-label input { width: 18px; min-height: 18px; margin-top: 2px; }
.prospecting-decision { margin: 4px 0 0; padding: 16px; border: 1px solid #c9e0f3; border-radius: 12px; background: #f3f9fe; }
.prospecting-decision legend { padding: 0 7px; color: var(--primary-dark); font-weight: 750; }
.prospecting-decision textarea { min-height: 92px; }

.filters { display: grid; gap: 16px; margin-bottom: 18px; padding: 18px; }
.filters label { font-size: .76rem; letter-spacing: .015em; }
.filter-field { display: grid; align-content: start; gap: 7px; min-width: 0; }
.primary-filters, .advanced-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(170px, 1fr)); align-items: end; gap: 13px; }
.advanced-filters { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 11px; }
.advanced-filters summary { width: fit-content; color: var(--primary); font-weight: 750; cursor: pointer; }
.advanced-filter-grid { margin-top: 12px; }
.reset-filters { width: fit-content; min-height: 36px; padding: 6px 12px; font-size: .84rem; }
.filter-help { grid-column: 1 / -1; margin: 0; font-size: .82rem; }
.filter-status { grid-column: 1 / -1; min-height: 1.2em; margin: -2px 0 0; color: var(--muted); font-size: .82rem; }
.filter-status.error { color: var(--danger); }
.table-panel { min-width: 0; padding: 24px; overflow: auto; }
.select-column { width: 52px !important; text-align: center !important; }
.prospecting-add-button,
.prospecting-add-button:hover,
.prospecting-add-button:active {
  display: inline-grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid #b9d6e9;
  border-radius: 10px;
  color: var(--primary);
  background: #edf7fd;
  box-shadow: none;
  vertical-align: middle;
  transform: none;
}
.prospecting-add-button:hover { border-color: #75b6dc; color: var(--primary-dark); background: #dff1fb; }
.prospecting-add-button:focus-visible { outline: 3px solid rgba(47, 169, 220, .3); outline-offset: 2px; }
.prospecting-add-button.is-selected { border-color: var(--primary); color: white; background: var(--primary); }
.prospecting-add-button.is-selected:hover { color: white; background: var(--primary-dark); }
.prospecting-add-button.is-mixed { border-color: #75b6dc; color: var(--primary-dark); background: #dff1fb; }
.prospecting-add-button:disabled { color: #91a2b1; border-color: #d8e1e8; background: #f3f6f8; opacity: .72; }
.prospecting-add-button svg { grid-area: 1 / 1; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.prospecting-add-button .prospecting-check-icon { display: none; }
.prospecting-add-button.is-selected .prospecting-add-icon { display: none; }
.prospecting-add-button.is-selected .prospecting-check-icon { display: block; }
.prospecting-page-button { width: 30px; min-width: 30px; height: 30px; min-height: 30px; }
.cell-title { display: grid; gap: 2px; min-width: 190px; }
.cell-title strong { color: var(--ink); }
.directory-name-link { width: fit-content; color: var(--ink); }
.directory-name-link:hover strong { color: var(--primary); }
.cell-stack { display: grid; gap: 3px; min-width: 130px; }
.table-context-link { width: fit-content; margin-top: 3px; font-size: .8rem; font-weight: 720; }
.city-filter-link { display: inline; width: auto; min-height: 0; padding: 0; border: 0; color: inherit; background: transparent; box-shadow: none; font: inherit; font-weight: inherit; text-decoration: underline; text-decoration-color: #cbd5e1; text-underline-offset: 3px; }
.city-filter-link:hover { color: var(--primary); background: transparent; box-shadow: none; text-decoration-color: currentColor; transform: none; }
.taxonomy-list { display: grid; gap: 3px; min-width: 150px; }
.taxonomy-list > span { display: block; }
.taxonomy-filter-link, .capacity-filter-link { display: block; width: fit-content; min-height: 0; padding: 0; border: 0; color: inherit; background: transparent; box-shadow: none; font: inherit; text-align: left; text-decoration: underline; text-decoration-color: #d6deea; text-underline-offset: 3px; }
.taxonomy-filter-link:hover, .capacity-filter-link:hover { color: var(--primary); background: transparent; box-shadow: none; text-decoration-color: currentColor; transform: none; }
.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; }

.directory-heading { align-items: center; }
.directory-heading .muted { max-width: 720px; font-size: 1rem; }
.directory-heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.directory-heading-actions form { margin: 0; }
.directory-filter-launcher { display: none; }
.directory-filter-launcher svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }
.directory-filter-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; color: white; background: var(--primary); font-size: .72rem; font-weight: 650; }
.directory-filter-count[hidden] { display: none; }
.selection-count { min-width: 24px; margin-left: 8px; padding: 2px 7px; border-radius: 999px; color: var(--primary-dark); background: white; font-size: .78rem; }
.directory-workspace { display: grid; grid-template-areas: "filters" "results"; gap: 20px; align-items: start; }
.directory-filter-sidebar { grid-area: filters; min-width: 0; }
.directory-filter-dialog { color: inherit; }
.directory-results { grid-area: results; min-width: 0; }
.directory-filters { position: relative; z-index: 10; }
.filter-panel-heading { display: block; margin: -18px -18px 18px; padding: 16px 18px 14px; border-bottom: 1px solid #d2e1ec; border-radius: 19px 19px 0 0; background: linear-gradient(115deg, #eef7ff, #f3fbff); }
.filter-panel-heading .eyebrow { margin-bottom: 4px; }
.directory-search-field { display: grid; gap: 6px; }
.directory-search-field > label { font-weight: 750; color: var(--ink-soft); }
.search-control { position: relative; }
.search-control > span { position: absolute; top: 50%; left: 14px; color: var(--primary); font-size: 1.3rem; transform: translateY(-52%); pointer-events: none; }
.search-control input { min-height: 50px; padding-left: 43px; border-color: #c5d7e5; font-size: 1rem; box-shadow: 0 4px 14px rgba(14, 66, 112, .045); }
.filter-actions { display: flex; align-items: center; gap: 14px; }
.filter-actions .filter-status { margin: 0; }
.directory-results { position: relative; min-height: 390px; padding: 24px; overflow: visible; }
.directory-results .dt-layout-table { overflow-x: auto; }
.directory-results table.dataTable { margin: 8px 0 12px !important; border: 1px solid #dbe5ee; border-radius: 14px; border-collapse: separate !important; border-spacing: 0; overflow: hidden; }
.directory-results table.dataTable thead th { padding: 14px 12px; border-bottom: 1px solid #cddfec; color: #4e6680; background: linear-gradient(180deg, #f3f9fe, #e9f3fb); font-size: .72rem; letter-spacing: .055em; text-transform: uppercase; }
.directory-results table.dataTable tbody td { padding: 15px 12px; border-bottom: 1px solid #e4ebf1; vertical-align: middle; }
.directory-results table.dataTable tbody tr { transition: background .12s ease; }
.directory-results table.dataTable tbody tr:nth-child(even) { background: white; }
.directory-results table.dataTable tbody tr:hover { background: var(--table-hover); }
.directory-results .dt-layout-row { align-items: center; margin: 8px 0; }
.directory-results .dt-info { color: var(--muted); font-size: .86rem; }
.directory-results div.dt-processing { display: none !important; }
.table-loader { position: absolute; z-index: 8; top: 82px; left: 50%; display: flex; align-items: center; gap: 10px; padding: 12px 17px; border: 1px solid #bfdbf0; border-radius: 999px; color: var(--primary-dark); background: rgba(244, 250, 255, .97); box-shadow: 0 10px 30px rgba(19, 91, 156, .16); font-weight: 750; transform: translateX(-50%); }
.table-loader[hidden] { display: none; }
.spinner { width: 18px; height: 18px; border: 2px solid #cce1f1; border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; }
.filter-spinner { margin: 12px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.row-actions { display: inline-flex; justify-content: center; min-width: 40px; }
.row-actions-trigger { width: 38px; min-width: 38px; min-height: 38px; padding: 0; border-color: var(--line); color: var(--ink-soft); background: white; box-shadow: none; font-size: 1.45rem; line-height: 1; }
.row-actions-trigger:hover, .row-actions-trigger[aria-expanded="true"] { color: var(--primary); background: var(--primary-soft); box-shadow: none; }
.row-actions-menu { position: fixed; z-index: 100; display: grid; width: max-content; min-width: 205px; padding: 6px; border: 1px solid #cbd5e1; border-radius: 10px; background: white; box-shadow: 0 16px 38px rgba(15, 23, 42, .18); }
.row-actions-menu[hidden] { display: none; }
.row-actions-menu a, .row-actions-menu button { display: flex; justify-content: flex-start; width: 100%; min-height: 36px; padding: 8px 10px; border: 0; border-radius: 7px; color: #334155; background: transparent; box-shadow: none; font-size: .88rem; font-weight: 650; text-align: left; }
.row-actions-menu a:hover, .row-actions-menu button:hover { color: var(--primary-dark); background: var(--primary-soft); box-shadow: none; text-decoration: none; transform: none; }
.row-actions-menu form { margin: 0; }
.row-actions-menu .row-actions-heading { display: block; margin: 5px 8px 3px; padding-top: 8px; border-top: 1px solid #e0edf6; color: #62809a; font-size: .68rem; font-weight: 750; letter-spacing: .075em; line-height: 1.2; text-transform: uppercase; }
.row-actions-menu .row-actions-heading:first-child { margin-top: 1px; padding-top: 2px; border-top: 0; }
.row-actions-menu button:disabled { color: #94a3b8; background: transparent; cursor: not-allowed; opacity: .72; }
.row-actions-menu button:disabled:hover { color: #94a3b8; background: transparent; }
.row-actions-menu .row-action-danger { color: var(--danger); }
.row-actions-menu .row-action-danger:hover { color: #852d27; background: #fff3f2; }

.choices { width: 100%; margin: 0; font-weight: 450; }
.choices__inner { min-height: 44px; padding: 8px 36px 7px 11px; border: 1px solid #cddbe7; border-radius: var(--radius-small); background: white; font-size: 15px; }
.choices[data-type*="select-one"] .choices__inner { padding-bottom: 7px; }
.choices[data-type*="select-one"]::after { right: 14px; border-color: #64748b transparent transparent; }
.choices[data-type*="select-one"].is-open::after { border-color: transparent transparent #64748b; }
.choices.is-focused .choices__inner, .choices.is-open .choices__inner { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29, 120, 200, .14); }
.choices.is-open .choices__inner { border-radius: 10px 10px 0 0; }
.choices__list--single { padding: 2px 0; }
.choices__placeholder { color: #64748b; opacity: 1; }
.choices__list--dropdown, .choices__list[aria-expanded] { z-index: 40; border: 1px solid #cbd5e1; border-radius: 0 0 10px 10px; box-shadow: 0 14px 35px rgba(15, 23, 42, .14); overflow: hidden; }
.choices__list--dropdown .choices__list, .choices__list[aria-expanded] .choices__list { max-height: 260px; }
.choices__list--dropdown .choices__item, .choices__list[aria-expanded] .choices__item { padding: 10px 12px; font-size: .9rem; }
.venue-choice-line .choices__list--dropdown .choices__item--choice,
.venue-choice-line .choices__list[aria-expanded] .choices__item--choice { line-height: 1.2; }
.venue-choice-line .choices__description { display: block; margin-top: 4px; color: var(--muted); font-size: .78rem; font-weight: 500; }
.venue-choice-line .choices__item--selectable.is-highlighted .choices__description { color: var(--primary-dark); }
.choices__list--dropdown .choices__item--selectable.is-highlighted, .choices__list[aria-expanded] .choices__item--selectable.is-highlighted { color: var(--primary-dark); background: var(--primary-soft); }
.choices__input { min-height: 38px; margin: 0; padding: 8px 11px; border: 0; border-bottom: 1px solid #dce4ef; border-radius: 0; background: #f8fafc; }
.choices__input:focus { outline: 0; box-shadow: inset 0 -2px var(--primary); }
.choices.is-disabled .choices__inner { background: #f1f5f9; opacity: .72; }
.choices__list--multiple .choices__item { margin: 2px 4px 2px 0; padding: 5px 8px; border-color: var(--primary); border-radius: 8px; background: linear-gradient(135deg, var(--primary), #1769b1); }
.campaign-assets-field .choices__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding-right: 11px; }
.campaign-assets-field .choices__list--multiple { display: flex; flex: 0 1 auto; flex-wrap: wrap; align-items: center; gap: 5px; width: auto; }
.campaign-assets-field .choices__list--multiple .choices__item { flex: 0 1 auto; margin: 0; }
.campaign-assets-field .choices__inner > .choices__input--cloned {
  flex: 1 1 280px;
  width: auto !important;
  min-width: min(280px, 100%) !important;
  max-width: 100%;
  margin: 0;
}
.choices__button { box-shadow: none; }
.choices__button:hover { transform: none; }
.choices__list--multiple .choices__button,
.choices__list--multiple .choices__button:hover,
.choices__list--multiple .choices__button:active,
.choices__list--multiple .choices__button:focus {
  position: relative;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  margin: -5px -5px -5px 8px;
  padding: 0;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, .3);
  border-radius: 0 7px 7px 0;
  background-color: transparent;
  background-image: none !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 8px;
  box-shadow: none;
  opacity: .82;
  transform: none;
}
.choices__list--multiple .choices__button::before,
.choices__list--multiple .choices__button::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}
.choices__list--multiple .choices__button::before { transform: translate(-50%, -50%) rotate(45deg); }
.choices__list--multiple .choices__button::after { transform: translate(-50%, -50%) rotate(-45deg); }
.choices__list--multiple .choices__button:hover { background-color: rgba(4, 48, 81, .16); opacity: 1; }
.choices__list--multiple .choices__button:focus-visible { outline: 2px solid rgba(255, 255, 255, .88); outline-offset: -4px; }
.choices-remote-status { padding: 10px 12px; color: var(--muted); border-top: 1px solid #e7edf5; background: white; font-size: .82rem; }
.choices-remote-status.error { color: var(--danger); }

.organization-heading, .organization-edit-heading { align-items: center; margin-bottom: 18px; }
.organization-heading .eyebrow, .organization-edit-heading .eyebrow { margin-bottom: 3px; }
.organization-heading .muted { margin-top: 4px; }
.organization-heading .button, .organization-heading button { min-height: 38px; padding: 7px 13px; }
.organization-layout { grid-template-columns: minmax(0, 1.7fr) minmax(320px, .65fr); gap: 16px; margin-bottom: 18px; }
.organization-layout > div, .organization-layout > aside { display: grid; align-content: start; gap: 14px; min-width: 0; }
.organization-layout .panel { padding: 18px 20px; }
.organization-layout .panel + .panel { margin-top: 0; }
.organization-layout .panel > .panel-block-heading:first-child,
.organization-layout .panel > .section-heading:first-child { margin: -18px -20px 14px; padding: 12px 20px 11px; }
.definition-grid.organization-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 18px; }
.organization-facts dt { font-size: .72rem; }
.organization-facts dd { margin-top: 2px; line-height: 1.4; }
.organization-card .link-pills { gap: 6px; margin-top: 12px; }
.link-pills a { padding: 6px 11px; border-radius: 999px; background: var(--primary-soft); font-size: .86rem; font-weight: 700; }
.organization-notes { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); white-space: pre-line; }
.organization-layout .timeline { gap: 8px; }
.organization-layout .timeline-item { padding-left: 12px; }
.organization-layout .timeline-item p { margin: 4px 0 0; }
.simple-contacts .contact-row { align-items: start; padding: 8px 0; }
.simple-contacts .contact-row > div { display: grid; gap: 3px; }
.simple-contacts .contact-row a { width: fit-content; }
.organization-band-followup-list { display: grid; }
.organization-band-followup-trigger { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 42px; padding: 8px 2px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink); background: transparent; box-shadow: none; font-size: .92rem; font-weight: 570; text-align: left; }
.organization-band-followup-trigger:last-child { border-bottom: 0; }
.organization-band-followup-trigger:hover { color: var(--primary); background: transparent; box-shadow: none; transform: none; }
.organization-band-followup-trigger:focus-visible { border-radius: 8px; outline: 3px solid rgba(29, 120, 200, .2); outline-offset: 2px; }
.organization-band-followup-trigger svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; transition: transform .16s ease; }
.organization-band-followup-trigger:hover svg { transform: translateX(3px); }
.organization-outreach-dialog { width: min(940px, calc(100% - 32px)); max-width: none; max-height: min(92vh, 920px); padding: 0; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 28px 80px rgba(15, 23, 42, .3); overflow: hidden; }
.organization-outreach-dialog::backdrop { background: rgba(15, 23, 42, .66); backdrop-filter: blur(3px); }
.organization-outreach-dialog-shell { display: grid; grid-template-rows: auto minmax(0, 1fr); max-height: min(92vh, 920px); }
.organization-outreach-dialog-body { min-height: 0; padding: 22px; background: #f4f9fd; overflow: auto; }
.organization-outreach-form { display: grid; gap: 20px; }
.organization-outreach-form .prospecting-cycle-detail { min-width: 0; margin: 0; background: white; }
.organization-outreach-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.organization-outreach-note { grid-column: 1 / -1; }
.organization-outreach-note textarea { min-height: 110px; }
.organization-outreach-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 2px; }
.organization-edit-notice { margin-bottom: 14px; padding: 11px 14px; }
.organization-edit-form { gap: 14px; }
.organization-edit-layout { display: grid; grid-template-areas: "main sidebar"; grid-template-columns: minmax(0, 1fr) minmax(360px, 430px); align-items: start; gap: 16px; }
.organization-edit-main { grid-area: main; display: grid; align-content: start; gap: 14px; min-width: 0; }
.organization-edit-sidebar { grid-area: sidebar; display: grid; align-content: start; gap: 14px; min-width: 0; }
.organization-edit-form .panel { padding: 18px 20px; }
.organization-edit-form .panel + .panel { margin-top: 0; }
.organization-edit-form .panel > .panel-block-heading:first-child,
.organization-edit-form .panel > .section-heading:first-child { margin: -18px -20px 14px; padding: 12px 20px 11px; }
.organization-edit-form .form-grid { gap: 13px 14px; }
.organization-edit-classification-grid,
.organization-edit-details-grid,
.organization-edit-location-grid,
.organization-edit-contact-grid,
.organization-edit-new-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.organization-edit-sidebar .form-grid { grid-template-columns: minmax(0, 1fr); }
.organization-edit-contact-panel h2 { overflow-wrap: anywhere; }
.organization-edit-form textarea { min-height: 88px; }
.organization-info-zones { display: grid; gap: 14px; }
.organization-info-zone { min-width: 0; padding: 16px; border: 1px solid #d5e4ef; border-radius: 14px; background: #f8fbfe; }
.organization-info-zone-heading { margin: -16px -16px 15px; padding: 11px 16px 10px; border-bottom: 1px solid #d5e4ef; border-radius: 14px 14px 0 0; background: linear-gradient(110deg, #eaf5fc, #f8fbfe); }
.organization-info-zone-heading .eyebrow { margin: 0 0 2px; }
.organization-info-zone-heading h3 { margin: 0; color: var(--ink); font-size: 1rem; }
.organization-geography-help { margin: 10px 0 0; color: var(--muted); font-size: .82rem; }
.organization-info-zone .form-status { margin: 8px 0 0; }
.organization-info-zone .form-status:empty { display: none; }
.organization-phone-field { min-width: 0; }
.organization-phone-field > span { display: block; line-height: 1.35; }
.organization-phone-field .iti { display: block; min-width: 0; margin: 0; }
.organization-edit-location-grid .choices { min-width: 0; margin-bottom: 0; }
.organization-opposition-fields { display: none; grid-column: 1 / -1; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; gap: 14px; }
.organization-opposition-toggle:has(input:checked) + .organization-opposition-fields { display: grid; }
.performance-format-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 14px; }
.performance-format-fields textarea { min-height: 74px; }
.organization-edit-form .form-actions { margin-top: 0; }
.organization-edit-actions { justify-content: flex-end; }
.organization-add-contact-button { display: flex; justify-content: center; gap: 9px; width: 100%; border-style: dashed; color: var(--primary-dark); background: #f2f8fd; box-shadow: none; }
.organization-add-contact-button span { display: inline-grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; color: white; background: var(--primary); font-size: 1rem; line-height: 1; }
.organization-add-contact-button:hover { color: white; border-style: solid; }
.organization-add-contact-button:hover span { color: var(--primary-dark); background: white; }
.organization-contact-dialog { width: min(780px, calc(100% - 32px)); max-width: none; max-height: min(90vh, 760px); padding: 0; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 28px 80px rgba(15, 23, 42, .3); overflow: hidden; }
.organization-contact-dialog::backdrop { background: rgba(15, 23, 42, .66); backdrop-filter: blur(3px); }
.organization-contact-dialog-shell { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: min(90vh, 760px); }
.organization-contact-dialog-body { min-height: 0; padding: 20px; background: #f4f9fd; overflow: auto; }
.organization-contact-dialog-body > .muted { margin: 0 0 16px; }
.organization-contact-dialog .organization-edit-new-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.badge { display: inline-flex; align-items: center; width: fit-content; padding: 4px 9px; border-radius: 999px; color: #52687d; background: #edf3f7; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif; font-size: .73rem; font-weight: 500; line-height: 1.25; text-transform: none; }
.badge.good { color: #07593f; background: #e3f6ed; }
.badge.warning { color: #7a4d09; background: #fff2d9; }
.badge.danger { color: #8d2e26; background: #fde9e7; }
.badge.stage-contract_signed, .badge.stage-offer { color: #991b1b; background: #fee2e2; border: 1px solid #fecaca; }
.badge.stage-option, .badge.stage-date_proposed { color: #9a3412; background: #ffedd5; border: 1px solid #fed7aa; }
.badge.stage-interested, .badge.stage-replied { color: #854d0e; background: #fef3c7; border: 1px solid #fde68a; }
.badge.stage-contacted, .badge.stage-qualified { color: #1e40af; background: #dbeafe; border: 1px solid #bfdbfe; }
.badge.stage-identified { color: #475569; background: #e2e8f0; border: 1px solid #cbd5e1; }
.badge.stage-realized { color: #166534; background: #dcfce7; border: 1px solid #bbf7d0; }
.badge.stage-lost { color: #4b5563; background: #e5e7eb; border: 1px solid #d1d5db; }
.badge.stage-do_not_contact { color: #7f1d1d; background: #fef2f2; border: 1px solid #fecaca; }

.activity-list { display: grid; }
.activity-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 9px; border-bottom: 1px solid var(--line); border-radius: 9px; color: var(--ink); transition: background .15s ease, transform .15s ease; }
.activity-row:hover { background: #f0f7fd; text-decoration: none; transform: translateX(2px); }
.activity-row:last-child { border-bottom: 0; }
.activity-row span:first-child { display: grid; gap: 2px; }
.plain-list { margin: 0; padding-left: 20px; }
.plain-list li + li { margin-top: 8px; }
.contact-points { padding-left: 16px; }
.contact-points li { display: grid; gap: 2px; }
.contact-points small { color: var(--muted); }
.empty { padding: 22px 0; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.entity-card { display: grid; gap: 9px; min-height: 165px; padding: 21px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: linear-gradient(145deg, #fff, #f7fbfe); box-shadow: 0 7px 22px rgba(14, 66, 112, .045); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.entity-card:hover { border-color: #9fc9e8; text-decoration: none; box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.entity-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.band-card-avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; color: white; background: linear-gradient(135deg, var(--primary), var(--secondary)); box-shadow: 0 8px 20px rgba(23, 105, 177, .2); font-size: .77rem; font-weight: 850; letter-spacing: .06em; }
.entity-card h2 { display: flex; justify-content: space-between; gap: 10px; }
.entity-card h2 span { color: var(--secondary); font-weight: 550; transition: transform .15s ease; }
.entity-card:hover h2 span { transform: translateX(3px); }
.entity-card p { color: var(--muted); }
.band-card-section { min-width: 0; }
.band-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 20px; }
.band-card { position: relative; display: grid; min-width: 0; border: 1px solid #d6e2eb; border-radius: 20px; color: var(--ink); background: white; box-shadow: 0 10px 30px rgba(14, 66, 112, .08); overflow: hidden; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.band-card:hover { color: var(--ink); border-color: #9fc9e8; box-shadow: 0 18px 44px rgba(13, 78, 136, .14); text-decoration: none; transform: translateY(-3px); }
.band-card-cover { position: relative; display: flex; justify-content: flex-end; min-height: 116px; padding: 18px; border-bottom: 1px solid #d7e8f4; background: #edf6fc; }
.band-card-cover::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--band-card-primary, var(--primary)); }
.band-card-cover::after { content: ""; position: absolute; right: -24px; top: -35px; width: 110px; height: 110px; border: 1px solid #c7dfef; border-radius: 50%; box-shadow: 0 0 0 22px rgba(29,120,200,.04); }
.band-card-identity { position: absolute; z-index: 1; left: 22px; bottom: -31px; display: grid; place-items: center; width: 76px; height: 76px; padding: 6px; border: 1px solid rgba(255,255,255,.78); border-radius: 21px; background: rgba(255,255,255,.96); box-shadow: 0 11px 25px rgba(7, 50, 82, .17); overflow: hidden; }
.band-card-identity img { display: block; width: 100%; height: 100%; border-radius: 15px; object-fit: contain; }
.band-card-initials { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 15px; color: white; background: var(--band-card-primary, var(--primary)); font-size: 1.15rem; font-weight: 620; letter-spacing: .04em; }
.band-status { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; align-self: start; padding: 5px 10px 5px 7px; border: 1px solid #a9dfcc; border-radius: 999px; color: #0b654e; background: rgba(232, 248, 241, .96); box-shadow: 0 5px 14px rgba(7, 89, 63, .12); backdrop-filter: blur(7px); font-size: .72rem; font-weight: 560; }
.band-status::before { content: "✓"; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; color: white; background: #159670; font-size: .64rem; font-weight: 750; line-height: 1; }
.band-status.is-inactive { color: #526172; background: rgba(244, 247, 249, .96); border-color: #d6dee5; box-shadow: 0 5px 14px rgba(37, 52, 68, .09); }
.band-status.is-inactive::before { content: "–"; background: #738394; }
.band-card-body { display: grid; gap: 12px; min-height: 205px; padding: 45px 23px 22px; }
.band-card-title { font-size: 1.34rem; font-weight: 620; letter-spacing: -.018em; line-height: 1.2; }
.band-card-genres { min-height: 2.9em; color: var(--muted); line-height: 1.45; }
.band-card-meta { display: flex; align-items: center; gap: 17px; flex-wrap: wrap; color: var(--ink-soft); font-size: .82rem; }
.band-card-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.band-card-meta svg, .band-card-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.band-card-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; align-self: end; margin-top: auto; padding-top: 15px; border-top: 1px solid var(--line); color: var(--band-card-primary, var(--primary)); font-size: .88rem; font-weight: 570; }
.band-card-link svg { transition: transform .18s ease; }
.band-card:hover .band-card-link svg { transform: translateX(4px); }
.band-card-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 3px 0; border: 1px solid var(--line); border-radius: 13px; background: var(--line); overflow: hidden; }
.band-card-metrics > span { display: grid; gap: 1px; padding: 11px 9px; background: #f7fafc; }
.band-card-metrics strong { font-size: 1.2rem; font-weight: 610; }
.band-card-metrics small { font-size: .68rem; line-height: 1.25; }
.band-prospecting-card .band-card-body { min-height: 270px; }
.prospecting-band-card { min-height: 230px; align-content: start; }
.prospecting-band-card .button { align-self: end; justify-self: start; margin-top: auto; }
.prospecting-band-summary { margin: 0; line-height: 1.6; }
.prospecting-band-summary strong { color: var(--ink); }
.asset-list, .contact-list, .compact-list { display: grid; }
.asset-row, .contact-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.asset-row > span:first-child, .contact-row > div:first-child, .compact-list > div { display: grid; gap: 2px; }
.asset-row:last-child, .contact-row:last-child { border-bottom: 0; }
.asset-preview-dialog { width: min(1040px, calc(100% - 32px)); max-width: none; height: min(86vh, 900px); max-height: none; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 28px 80px rgba(15, 23, 42, .28); overflow: hidden; }
.asset-preview-dialog::backdrop { background: rgba(15, 23, 42, .66); backdrop-filter: blur(3px); }
.asset-preview-shell { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
.asset-preview-header, .asset-preview-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; background: white; }
.asset-preview-header { border-bottom: 1px solid var(--line); }
.asset-preview-header .eyebrow { margin-bottom: 4px; }
.asset-preview-footer { justify-content: flex-end; border-top: 1px solid var(--line); }
.asset-preview-close { width: 42px; min-width: 42px; min-height: 42px; padding: 0; border-color: var(--line); color: #334155; background: white; box-shadow: none; font-size: 1.65rem; line-height: 1; }
.asset-preview-close:hover { color: var(--primary); background: #eff6ff; box-shadow: none; }
.asset-preview-body { display: grid; place-items: center; min-height: 0; padding: 18px; background: #eef4f8; overflow: auto; }
.asset-preview-image { display: block; max-width: 100%; max-height: 100%; border-radius: 6px; box-shadow: 0 10px 28px rgba(15, 23, 42, .18); object-fit: contain; }
.asset-preview-frame { width: 100%; height: 100%; min-height: 420px; border: 0; border-radius: 6px; background: white; }
.asset-preview-image[hidden], .asset-preview-frame[hidden] { display: none; }
.filepond--root { width: 100%; min-width: 0; margin-bottom: 0; font-family: inherit; }
.filepond--panel-root { border: 1px dashed #78b6e3; border-radius: 12px; background: #eef7ff; transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.filepond--drop-label { min-height: 94px; color: #334155; }
.filepond--root:hover .filepond--panel-root { border-color: var(--primary); background: #e6f3fc; }
.filepond--root:focus-within .filepond--panel-root { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29,120,200,.14); }
.filepond--label-action { color: var(--primary); text-decoration-color: var(--primary); }
.filepond--item-panel { background: var(--primary); }
.inline-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inline-actions form { margin: 0; }
.inline-actions.spaced { margin-top: 18px; }
.membership-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 15px; }
.notice { margin-bottom: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 11px; background: white; box-shadow: 0 5px 16px rgba(14, 66, 112, .04); }
.notice.warning { border-color: #e7d0a5; background: #fffaf0; color: #664207; }
.notice.danger { border-color: #e3b4b0; background: #fff3f2; color: #812e27; }
.outreach-form { padding: 18px 0; border-bottom: 1px solid var(--line); }
.outreach-form:last-child { border-bottom: 0; }
.basic-table { width: 100%; border: 1px solid #dbe5ee; border-radius: 14px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.basic-table th { padding: 14px; border-bottom: 1px solid #cddfec; color: #4e6680; background: linear-gradient(180deg, #f3f9fe, #e9f3fb); font-size: .72rem; letter-spacing: .045em; text-align: left; text-transform: uppercase; }
.basic-table td { padding: 15px 14px; border-top: 1px solid #e4ebf1; vertical-align: middle; }
.basic-table tbody tr:first-child td { border-top: 0; }
.basic-table tbody tr:nth-child(even) { background: var(--table-stripe); }
.basic-table tbody tr:hover { background: var(--table-hover); }
.stat-grid.compact { margin-bottom: 20px; }
.message-preview { padding: 20px; overflow: auto; color: var(--ink); background: #f6f8fc; border: 1px solid #e1e8f1; border-radius: 11px; font: inherit; }
.recipient-preview { align-self: start; max-height: 760px; overflow: auto; }
.compact-list > div { padding: 8px 0; border-bottom: 1px solid var(--line); }
.campaign-detail { margin-top: 20px; }
.campaign-attachment-summary { display: grid; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.campaign-preview-dialog { width: min(980px, calc(100% - 32px)); max-width: none; height: min(92vh, 1020px); max-height: none; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 28px 80px rgba(15, 23, 42, .3); overflow: hidden; }
.campaign-preview-dialog::backdrop { background: rgba(15, 23, 42, .66); backdrop-filter: blur(3px); }
.campaign-preview-shell { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
.campaign-preview-body { min-height: 0; padding: 20px; background: #eef4f8; overflow: auto; }
.email-preview-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 10px 28px rgba(15, 23, 42, .08); }
.email-preview-meta { margin: 0; padding: 16px 20px; border-bottom: 1px solid var(--line); background: #f8fafc; }
.email-preview-meta > div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; padding: 4px 0; }
.email-preview-meta dt { color: var(--muted); font-size: .8rem; font-weight: 750; text-transform: uppercase; }
.email-preview-meta dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.campaign-email-frame { display: block; width: 100%; height: 650px; border: 0; background: white; }
.email-preview-link { color: var(--primary); }
.campaign-preview-attachments { margin-top: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.campaign-preview-attachments h3 { margin-bottom: 10px; }
.campaign-preview-attachments li + li { margin-top: 8px; }
.dispatch-confirmation-dialog { width: min(1040px, calc(100% - 32px)); max-width: none; max-height: min(92vh, 980px); padding: 0; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 28px 80px rgba(15, 23, 42, .3); overflow: hidden; }
.dispatch-confirmation-dialog::backdrop { background: rgba(15, 23, 42, .66); backdrop-filter: blur(3px); }
.dispatch-confirmation-shell { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: min(92vh, 980px); }
.dispatch-confirmation-body { min-height: 0; padding: 20px; background: #f4f9fd; overflow: auto; }
.dispatch-recipient-summary { display: flex; justify-content: space-between; gap: 16px; margin: 16px 0 10px; color: var(--ink); }
.dispatch-recipient-summary span { color: var(--muted); }
.dispatch-recipient-table { max-height: 48vh; border: 1px solid var(--line); border-radius: 12px; background: white; }
.dispatch-confirmation-footer { align-items: flex-end; }
.dispatch-confirmation-form { display: grid; grid-template-columns: minmax(260px, 1fr) auto; align-items: center; gap: 12px 18px; width: min(760px, 100%); }
.dispatch-confirmation-form .checkbox-label { margin: 0; }
.prospecting-basket-dialog { width: min(820px, calc(100% - 32px)); max-width: none; max-height: min(88vh, 900px); padding: 0; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 28px 80px rgba(15, 23, 42, .3); overflow: hidden; }
.prospecting-basket-dialog::backdrop { background: rgba(15, 23, 42, .66); backdrop-filter: blur(3px); }
.prospecting-basket-shell { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: min(88vh, 900px); }
.prospecting-basket-body { min-height: 0; padding: 20px; background: #f4f9fd; overflow: auto; }
.prospecting-basket-body > .muted { margin: 0 0 18px; }
.prospecting-basket-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.prospecting-basket-list { display: grid; gap: 8px; max-height: 55vh; padding: 4px; overflow: auto; }
.prospecting-basket-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.prospecting-basket-item > div { min-width: 0; }
.prospecting-basket-item strong, .prospecting-basket-item small { display: block; overflow-wrap: anywhere; }
.prospecting-basket-item small { margin-top: 3px; color: var(--muted); }
.prospecting-basket-item .basket-remove { flex: 0 0 auto; color: #49657f; background: #eef4f8; }
.prospecting-basket-footer { justify-content: space-between; }

.campaign-compose-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 330px); align-items: start; gap: 22px; }
.campaign-compose-form { min-width: 0; }
.campaign-recipient-sidebar { position: sticky; top: 94px; max-height: calc(100vh - 116px); }
.campaign-recipient-sidebar .compact-list { margin-top: 12px; }
.campaign-recipient-sidebar .compact-list > div { padding: 11px 0; }

.prospecting-heading { align-items: center; }
.band-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); align-items: start; gap: 20px; }
.band-main-column { min-width: 0; }
.band-sidebar { display: grid; gap: 18px; min-width: 0; }
.band-sidebar .panel + .panel { margin-top: 0; }
.band-sidebar .asset-row { align-items: flex-start; }
.band-sidebar .asset-row > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.band-sidebar .asset-row .asset-row-actions { flex: 0 0 auto; margin-left: auto; }
.band-editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, 340px); align-items: start; gap: 22px; }
.band-editor-layout.without-sidebar { grid-template-columns: minmax(0, 1000px); justify-content: center; }
.band-editor-form { min-width: 0; }
.band-editor-sidebar { position: sticky; top: 94px; min-width: 0; }
.band-editor-sidebar .band-media-editor { margin-top: 0; }
.band-editor-sidebar .asset-row { align-items: flex-start; }
.band-editor-sidebar .asset-row > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.band-media-editor-list { max-height: 380px; padding-right: 3px; overflow-y: auto; }
.media-upload-heading { margin: 24px 0 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.media-upload-heading p { margin-top: 6px; font-size: .88rem; }
.compact-empty { padding: 8px 0; }
.band-prospecting-section { min-width: 0; margin-top: 28px; scroll-margin-top: 88px; }
.prospecting-stats { margin-bottom: 18px; }
.prospecting-filters { display: grid; grid-template-columns: minmax(260px, 2fr) minmax(220px, 1fr); align-items: end; gap: 14px; margin-bottom: 18px; }
.prospecting-filters > .panel-block-heading { grid-column: 1 / -1; }
.prospecting-results { min-width: 0; overflow: hidden; }
.prospecting-results .dt-container { width: 100%; min-width: 0; }
.prospecting-results .dt-layout-table { overflow-x: auto; }
.prospecting-results table.dataTable { width: 100% !important; border: 1px solid #dbe5ee; border-radius: 14px; border-collapse: separate !important; border-spacing: 0; overflow: hidden; }
.prospecting-results table.dataTable thead th { padding: 13px 12px; border-bottom: 1px solid #cddfec; color: #4e6680; background: linear-gradient(180deg, #f3f9fe, #e9f3fb); font-size: .72rem; letter-spacing: .055em; text-transform: uppercase; }
.prospecting-results table.dataTable tbody td { padding: 14px 12px; border-bottom: 1px solid #e4ebf1; vertical-align: middle; }
.prospecting-results table.dataTable tbody tr.prospecting-data-row,
.prospecting-results table.dataTable tbody tr.prospecting-cycle-row { background: white; }
.prospecting-results table.dataTable tbody tr.prospecting-data-row.is-alternate,
.prospecting-results table.dataTable tbody tr.prospecting-cycle-row.is-alternate { background: var(--table-stripe); }
.prospecting-results table.dataTable tbody tr.prospecting-data-row:hover,
.prospecting-results table.dataTable tbody tr.prospecting-data-row:hover + tr.prospecting-cycle-row,
.prospecting-results table.dataTable tbody tr.prospecting-data-row:has(+ tr.prospecting-cycle-row:hover),
.prospecting-results table.dataTable tbody tr.prospecting-cycle-row:hover { background: var(--table-hover); }
.prospecting-results table.dataTable tbody tr.prospecting-data-row td,
.prospecting-results table.dataTable tbody tr.prospecting-cycle-row td { background: transparent !important; box-shadow: none !important; }
.prospecting-results table.dataTable :is(th, td):nth-child(2) { width: 145px; min-width: 145px; text-align: center; }
.prospecting-results table.dataTable tbody td:nth-child(2) .badge { white-space: nowrap; }
.prospecting-results table.dataTable tbody tr.prospecting-data-row td { padding-bottom: 12px; border-bottom: 0 !important; }
.prospecting-results table.dataTable tbody tr.prospecting-cycle-row td { padding: 20px 0px; border-top: 0 !important; border-bottom: 1px solid #dce8f2; }
.prospecting-cycle { display: flex; align-items: flex-start; width: 100%; min-width: 520px; }
.prospecting-cycle-step { position: relative; display: grid; flex: 1 1 0; justify-items: center; gap: 7px; min-width: 0; color: #8195a8; text-align: center; }
.prospecting-cycle-step::before,
.prospecting-cycle-step::after { position: absolute; top: 6px; width: 50%; height: 2px; background: #d7e4ee; content: ""; }
.prospecting-cycle-step::before { left: 0; }
.prospecting-cycle-step::after { right: 0; }
.prospecting-cycle-step:first-child::before,
.prospecting-cycle-step:last-child::after { display: none; }
.prospecting-cycle-step i { position: relative; z-index: 1; width: 14px; height: 14px; border: 3px solid white; border-radius: 50%; background: #cbd9e4; box-shadow: 0 0 0 1px #bfd0dc; }
.prospecting-cycle-step small { font-size: .68rem; font-weight: 570; line-height: 1.25; white-space: nowrap; }
.prospecting-cycle-step.is-complete { color: #3977a8; }
.prospecting-cycle-step.is-complete::before,
.prospecting-cycle-step.is-complete::after,
.prospecting-cycle-step.is-current::before { background: #6fb6e5; }
.prospecting-cycle-step.is-complete i { background: #4e9ed4; box-shadow: 0 0 0 1px #4e9ed4; }
.prospecting-cycle-step.is-current { color: var(--primary-dark); }
.prospecting-cycle-step.is-current i { background: var(--primary); box-shadow: 0 0 0 3px #d9edfb, 0 0 0 4px var(--primary); }
.prospecting-cycle-terminal { flex: 0 0 auto; margin: -3px 0 0 14px; padding: 4px 9px; border: 1px solid #cbd5e1; border-radius: 999px; color: #4b5563; background: #f1f5f9; font-size: .68rem; font-weight: 650; white-space: nowrap; }
.prospecting-cycle-terminal.stage-do_not_contact { border-color: #fecaca; color: #7f1d1d; background: #fef2f2; }
.prospecting-cycle-detail { grid-column: 1 / -1; min-width: 0; margin: 2px 0 8px; padding: 16px 14px 12px; border: 1px solid #d7e6f1; border-radius: 13px; background: #f7fbfe; }
.prospecting-cycle-detail .prospecting-cycle-step small { font-size: .73rem; }
.prospecting-results .dt-layout-row { align-items: center; margin: 8px 0; }
.prospecting-results .dt-info { color: var(--muted); font-size: .84rem; }

:is(.directory-results, .prospecting-results) div.dt-container > .dt-layout-table + .dt-layout-row,
:is(.directory-results, .prospecting-results) div.dt-container > .dt-layout-row:has(.dt-length) {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid #d2e3f0;
  border-radius: 14px;
  background: linear-gradient(115deg, var(--table-toolbar), #f8fcff);
}
:is(.directory-results, .prospecting-results) div.dt-container > .dt-layout-table + .dt-layout-row .dt-layout-cell,
:is(.directory-results, .prospecting-results) div.dt-container > .dt-layout-row:has(.dt-length) .dt-layout-cell { min-width: 0; }
:is(.directory-results, .prospecting-results) .dt-length { color: #536b82; font-size: .82rem; font-weight: 540; }
:is(.directory-results, .prospecting-results) .dt-length label { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
:is(.directory-results, .prospecting-results) div.dt-container .dt-length select.dt-input {
  width: auto;
  min-width: 64px;
  min-height: 38px;
  margin: 0;
  padding: 6px 29px 6px 10px;
  border: 1px solid #bcd5e8;
  border-radius: 10px;
  color: var(--ink);
  background-color: white;
  box-shadow: 0 2px 8px rgba(14, 66, 112, .06);
  font: inherit;
  font-weight: 620;
}
:is(.directory-results, .prospecting-results) .dt-paging { min-width: 0; overflow-x: auto; scrollbar-width: thin; }
:is(.directory-results, .prospecting-results) .dt-paging nav { display: flex; align-items: center; justify-content: flex-end; gap: 3px; width: max-content; min-width: 100%; }
:is(.directory-results, .prospecting-results) div.dt-container .dt-paging .dt-paging-button {
  min-width: 36px;
  min-height: 36px;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #40566d !important;
  background: transparent;
  box-shadow: none;
  font-size: .84rem;
  font-weight: 560;
  line-height: 1;
  transform: none;
}
:is(.directory-results, .prospecting-results) div.dt-container .dt-paging .dt-paging-button:hover:not(.disabled):not(.current) {
  border-color: #bcd9ed;
  color: var(--primary-dark) !important;
  background: #e5f3fe;
  box-shadow: none;
  transform: none;
}
:is(.directory-results, .prospecting-results) div.dt-container .dt-paging .dt-paging-button.current,
:is(.directory-results, .prospecting-results) div.dt-container .dt-paging .dt-paging-button.current:hover {
  border-color: var(--primary);
  color: white !important;
  background: linear-gradient(135deg, var(--primary), #1769b1);
  box-shadow: 0 5px 13px rgba(23, 105, 177, .22);
  transform: none;
}
:is(.directory-results, .prospecting-results) div.dt-container .dt-paging .dt-paging-button.disabled,
:is(.directory-results, .prospecting-results) div.dt-container .dt-paging .dt-paging-button.disabled:hover {
  border-color: transparent;
  color: #98a9b8 !important;
  background: transparent;
  box-shadow: none;
  opacity: .72;
  transform: none;
}
:is(.directory-results, .prospecting-results) div.dt-container .dt-paging .ellipsis { padding: 0 5px; color: #7990a5; }
.compact-button { min-height: 35px; padding: 6px 10px; font-size: .82rem; }

.organization-preview-dialog { width: min(1240px, calc(100% - 32px)); max-width: none; height: min(90vh, 980px); max-height: none; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 28px 80px rgba(15, 23, 42, .3); overflow: hidden; }
.organization-preview-dialog::backdrop { background: rgba(15, 23, 42, .66); backdrop-filter: blur(3px); }
.organization-preview-shell { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
.organization-preview-body { min-height: 0; padding: 20px; background: var(--canvas); overflow: auto; }
.organization-preview-body > .page-heading { margin-top: 0; }
.organization-preview-body .outreach-panel { position: static; }
.modal-loading { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 240px; color: var(--primary-dark); font-weight: 750; }
.band-media-editor { margin-top: 20px; }
.band-media-editor > h3 { margin-top: 24px; }
.band-media-editor-list { margin-bottom: 24px; }

.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at 14% 8%, rgba(47, 169, 220, .28), transparent 25rem), radial-gradient(circle at 86% 90%, rgba(19, 156, 135, .2), transparent 27rem), linear-gradient(140deg, #062b49, #1478b8); }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr); width: min(1080px, 100%); min-height: 650px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 28px; background: white; box-shadow: 0 35px 90px rgba(4, 38, 62, .35); overflow: hidden; }
.auth-brand-panel { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; padding: 50px; color: white; background: radial-gradient(circle at 90% 13%, rgba(47, 169, 220, .46), transparent 14rem), radial-gradient(circle at 0 100%, rgba(19, 156, 135, .28), transparent 18rem), linear-gradient(145deg, #052943, #0f639b); overflow: hidden; }
.auth-brand-panel::after { content: ""; position: absolute; left: -110px; bottom: -110px; width: 260px; height: 260px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 42px rgba(255,255,255,.025), 0 0 0 84px rgba(255,255,255,.02); }
.auth-brand { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 13px; width: fit-content; color: white; }
.auth-brand:hover { color: white; text-decoration: none; }
.auth-brand img { border-radius: 17px; box-shadow: 0 10px 25px rgba(3, 32, 52, .3); }
.auth-brand > span { display: grid; line-height: 1.05; }
.auth-brand strong { font-size: 1.3rem; letter-spacing: -.035em; }
.auth-brand small { margin-top: 6px; color: rgba(255,255,255,.65); font-size: .72rem; letter-spacing: .04em; }
.auth-brand.compact { margin-bottom: 30px; color: var(--ink); }
.auth-brand.compact small { color: var(--muted); }
.auth-promise { position: relative; z-index: 1; max-width: 500px; margin: 70px 0 45px; }
.auth-promise h1 { font-size: clamp(2.45rem, 4.5vw, 4rem); letter-spacing: -.052em; }
.auth-promise p { max-width: 460px; margin-top: 20px; color: rgba(255,255,255,.7); font-size: 1.04rem; line-height: 1.7; }
.auth-benefits { position: relative; z-index: 1; display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; color: rgba(255,255,255,.83); }
.auth-benefits li { display: flex; align-items: center; gap: 10px; }
.auth-benefits span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; color: #06314e; background: #93e2d3; font-size: .75rem; font-weight: 900; }
.auth-card { width: min(520px, 100%); padding: 44px; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 60px rgba(14, 66, 112, .12); }
.auth-card.login-card { display: flex; flex-direction: column; justify-content: center; width: auto; padding: 58px; border: 0; border-radius: 0; box-shadow: none; }
.auth-welcome { margin: 0 0 9px; color: var(--secondary); font-size: .76rem; font-weight: 820; letter-spacing: .13em; text-transform: uppercase; }
.login-card h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); }
.login-card > .muted { margin-top: 11px; }
.auth-card .stack { margin-top: 24px; }
.auth-help { margin: 25px 0 0; color: var(--muted); font-size: .82rem; text-align: center; }
.invitation-card { width: min(560px, 100%); }
.flash { max-width: 900px; margin: 0 auto 18px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.container.anonymous > .flash { position: fixed; z-index: 80; top: 18px; left: 50%; width: min(900px, calc(100% - 32px)); margin: 0; box-shadow: 0 12px 36px rgba(4, 43, 70, .2); transform: translateX(-50%); }
.flash.success { color: #07593f; border-color: #a9d7c5; background: #effaf5; }
.flash.error { color: #852d27; border-color: #e6b8b4; background: #fff4f3; }
.flash.warning { color: #704608; border-color: #e8d0a3; background: #fffaf0; }

.definition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.definition-grid .full { grid-column: 1 / -1; }
.definition-grid dt { color: var(--muted); font-size: .76rem; font-weight: 700; text-transform: uppercase; }
.definition-grid dd { margin: 4px 0 0; }
.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .7fr); gap: 20px; }
.timeline { display: grid; gap: 12px; }
.timeline-item { padding-left: 15px; border-left: 3px solid var(--line); }
.timeline-item p { white-space: pre-wrap; }

@media (min-width: 1280px) {
  .directory-workspace { grid-template-columns: minmax(0, 1fr) minmax(300px, 340px); grid-template-areas: "results filters"; gap: 22px; }
  .directory-filter-sidebar { position: sticky; inset: auto; top: 92px; width: auto; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; overflow: visible; }
  .directory-filter-dialog::backdrop { display: none; }
  .directory-filter-dialog-shell { display: block; max-height: none; }
  .directory-filter-dialog-header, .directory-filter-dialog-footer { display: none; }
  .directory-filter-dialog-body { overflow: visible; }
  .directory-filter-sidebar .directory-filters { margin-bottom: 0; padding: 20px; background: linear-gradient(160deg, #fff, #f6fbff); border-color: #d2e1ec; box-shadow: 0 16px 42px rgba(14, 66, 112, .11); }
  .directory-filter-sidebar .filter-panel-heading { display: block; margin: -20px -20px 18px; padding: 19px 20px 15px; border-bottom: 1px solid #d2e1ec; border-radius: 19px 19px 0 0; background: linear-gradient(115deg, #eef7ff, #f3fbff); }
  .directory-filter-sidebar .filter-panel-heading .eyebrow { margin-bottom: 5px; }
  .directory-filter-sidebar .primary-filters,
  .directory-filter-sidebar .advanced-filter-grid { grid-template-columns: minmax(0, 1fr); }
  .directory-filter-sidebar .advanced-filters { grid-column: auto; }
  .directory-filter-sidebar .filter-actions { align-items: stretch; flex-direction: column; }
  .directory-filter-sidebar .reset-filters { width: 100%; }
  .directory-filter-sidebar .filter-status:empty { display: none; }
}

@media (max-width: 1279px) {
  .directory-workspace { grid-template-areas: "results"; gap: 0; }
  .directory-filter-launcher { position: fixed; z-index: 18; right: 22px; bottom: max(22px, env(safe-area-inset-bottom)); display: inline-flex; min-height: 48px; padding-inline: 17px; box-shadow: 0 12px 32px rgba(13, 78, 136, .28); }
  .directory-filter-dialog { width: min(820px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 28px 80px rgba(15, 23, 42, .32); overflow: hidden; }
  .directory-filter-dialog::backdrop { background: rgba(15, 23, 42, .66); backdrop-filter: blur(3px); }
  .directory-filter-dialog-shell { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: calc(100dvh - 24px); }
  .directory-filter-dialog-body { min-height: 0; background: #f4f9fd; overflow: auto; overscroll-behavior: contain; }
  .directory-filter-dialog .directory-filters { margin: 0; padding: 20px; border: 0; border-radius: 0; box-shadow: none; }
  .directory-filter-dialog .filter-panel-heading { display: none; }
  .directory-filter-dialog-footer { justify-content: flex-end; }
}

@media (max-width: 1279px) {
  .definition-grid.organization-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
  .primary-filters, .advanced-filter-grid { grid-template-columns: repeat(2, minmax(170px, 1fr)); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .organization-edit-classification-grid,
  .organization-edit-details-grid,
  .organization-edit-location-grid,
  .organization-edit-contact-grid,
  .organization-edit-new-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .organization-edit-layout { grid-template-areas: "main" "sidebar"; grid-template-columns: minmax(0, 1fr); }
  .band-editor-layout, .campaign-compose-layout { grid-template-columns: 1fr; }
  .band-editor-sidebar, .campaign-recipient-sidebar { position: static; max-height: none; }
  .band-editor-sidebar { order: 2; }
}

@media (min-width: 761px) and (max-width: 899px) {
  .topbar-inner { gap: 10px; width: calc(100% - 24px); }
  .brand { gap: 0; }
  .brand img { width: 42px; height: 42px; }
  .brand-copy, .account-copy { display: none; }
  .workspace-band-switcher { max-width: 220px; }
  .workspace-band-switcher .choices { min-width: 145px; max-width: 220px; }
  .workspace-band-switcher .choices__list--single { max-width: 162px; }
  .workspace-band-current { flex-basis: 155px; }
  .topbar nav { min-width: 0; gap: 1px; }
  .topbar nav a { gap: 5px; min-height: 44px; padding: 8px; font-size: .86rem; }
  .account { gap: 6px; }

  .primary-filters, .advanced-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
  .directory-filters { padding: 16px; }
  .directory-filters .filter-panel-heading { margin: -16px -16px 15px; padding: 14px 16px 12px; }
  .search-control input { min-height: 46px; }
}

/* iPad Pro 12,9" portrait and similarly sized tablets. */
@media (min-width: 900px) and (max-width: 1100px) {
  .topbar-inner { gap: 14px; width: calc(100% - 32px); }
  .brand { gap: 8px; }
  .brand img { width: 44px; height: 44px; }
  .brand-copy small, .account-copy { display: none; }
  .workspace-band-switcher { max-width: 270px; }
  .workspace-band-switcher .choices { min-width: 155px; max-width: 270px; }
  .workspace-band-switcher .choices__list--single { max-width: 212px; }
  .workspace-band-current { flex-basis: 175px; }
  .topbar nav { min-width: 0; gap: 2px; }
  .topbar nav a { gap: 6px; min-height: 44px; padding: 8px 9px; font-size: .9rem; }
  .account { gap: 7px; }

  .container { width: calc(100% - 36px); margin: 28px auto 58px; }
  .page-heading { gap: 18px; margin-bottom: 22px; }
  .panel, .table-panel { padding: 20px; }
  .panel > .panel-block-heading:first-child,
  .panel > .section-heading:first-child,
  .panel > .form-section-heading:first-child { margin: -20px -20px 18px; padding: 15px 20px 13px; }
  .panel > h2:first-child { margin: -20px -20px 18px; padding: 18px 20px 15px; }

  .dashboard-hero { padding: 32px; }
  .dashboard-hero h1 { font-size: 2.45rem; }
  .dashboard-hero + .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .dashboard-hero + .stat-grid .stat { padding: 18px 17px 16px; }
  .dashboard-hero + .stat-grid .stat span { font-size: 1.6rem; }
  .dashboard-content-grid { grid-template-columns: minmax(0, 1.65fr) minmax(250px, .7fr); gap: 16px; }

  .primary-filters, .advanced-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px 12px; }
  .directory-filters { padding: 16px; }
  .directory-filters .filter-panel-heading { margin: -16px -16px 15px; padding: 14px 16px 12px; }
  .search-control input { min-height: 46px; }
  .directory-results { padding: 18px; overflow: hidden; }
  .directory-results table.dataTable thead th,
  .prospecting-results table.dataTable thead th { padding: 12px 9px; }
  .directory-results table.dataTable tbody td,
  .prospecting-results table.dataTable tbody td { padding-left: 9px; padding-right: 9px; }

  .organization-edit-layout { grid-template-areas: "main sidebar"; grid-template-columns: minmax(0, 1fr) minmax(300px, 320px); gap: 14px; }
  .organization-edit-form .panel { padding: 16px; }
  .organization-edit-form .panel > .panel-block-heading:first-child,
  .organization-edit-form .panel > .section-heading:first-child { margin: -16px -16px 14px; padding: 12px 16px 11px; }
  .organization-edit-form .form-grid { gap: 12px; }
  .organization-info-zone { padding: 14px; }
  .organization-info-zone-heading { margin: -14px -14px 14px; padding: 10px 14px; }

  .band-editor-layout { grid-template-columns: minmax(0, 1fr) minmax(280px, 300px); gap: 16px; }
  .band-editor-layout.without-sidebar { grid-template-columns: minmax(0, 900px); }
  .band-editor-form .panel { padding: 20px; }
  .band-editor-form .form-grid { gap: 16px; }
  .band-editor-sidebar { position: sticky; top: 94px; order: initial; }

  .campaign-compose-layout { grid-template-columns: minmax(0, 1fr) minmax(270px, 290px); gap: 16px; }
  .campaign-compose-form .panel { padding: 20px; }
  .campaign-compose-form .form-grid { gap: 16px; }
  .campaign-recipient-sidebar { position: sticky; top: 94px; max-height: calc(100vh - 116px); }

  .organization-preview-dialog,
  .asset-preview-dialog,
  .campaign-preview-dialog { width: calc(100% - 24px); }
  .dispatch-confirmation-dialog { width: calc(100% - 24px); }
}

/* iPad Pro 12,9" landscape and similarly sized tablets. */
@media (min-width: 1180px) and (max-width: 1400px) and (orientation: landscape) {
  html { scroll-padding-top: 92px; }
  .topbar, .topbar-inner { min-height: 74px; }
  .topbar-inner { gap: 14px; width: calc(100% - 32px); }
  .brand { gap: 8px; }
  .brand img { width: 42px; height: 42px; }
  .brand-copy small, .account-copy small { display: none; }
  .workspace-band-switcher { max-width: 300px; }
  .workspace-band-switcher .choices { max-width: 300px; }
  .workspace-band-switcher .choices__list--single { max-width: 242px; }
  .workspace-band-current { flex-basis: 185px; }
  .topbar nav { min-width: 0; gap: 2px; }
  .topbar nav a { gap: 6px; min-height: 44px; padding: 8px 10px; font-size: .9rem; }
  .account { gap: 7px; }
  .user-avatar { width: 38px; height: 38px; }

  .container { width: calc(100% - 32px); margin: 28px auto 56px; }
  .page-heading { gap: 18px; margin-bottom: 22px; }
  .panel, .table-panel { padding: 20px; }
  .panel > .panel-block-heading:first-child,
  .panel > .section-heading:first-child,
  .panel > .form-section-heading:first-child { margin: -20px -20px 18px; padding: 15px 20px 13px; }
  .panel > h2:first-child { margin: -20px -20px 18px; padding: 18px 20px 15px; }

  .dashboard-hero { padding: 32px 34px; }
  .dashboard-hero h1 { font-size: 2.65rem; }
  .dashboard-hero + .stat-grid { gap: 10px; }
  .dashboard-hero + .stat-grid .stat { padding: 18px 17px 16px; }
  .dashboard-hero + .stat-grid .stat span { font-size: 1.68rem; }
  .dashboard-content-grid { grid-template-columns: minmax(0, 1.72fr) minmax(270px, .68fr); gap: 16px; }

  .directory-workspace { grid-template-columns: minmax(0, 1fr) minmax(290px, 305px); gap: 16px; }
  .directory-results { padding: 18px; overflow: hidden; }
  .directory-results table.dataTable thead th,
  .prospecting-results table.dataTable thead th { padding: 12px 9px; }
  .directory-results table.dataTable tbody td,
  .prospecting-results table.dataTable tbody td { padding-left: 9px; padding-right: 9px; }
  .directory-filter-sidebar { top: 84px; }
  .directory-filter-sidebar .directory-filters { padding: 17px; }
  .directory-filter-sidebar .filter-panel-heading { margin: -17px -17px 16px; padding: 15px 17px 13px; }
  .directory-filter-sidebar .primary-filters,
  .directory-filter-sidebar .advanced-filter-grid { gap: 11px; }
  .search-control input { min-height: 46px; }

  .organization-layout { grid-template-columns: minmax(0, 1fr) minmax(330px, 360px); gap: 16px; }
  .organization-edit-layout { grid-template-columns: minmax(0, 1fr) minmax(340px, 360px); gap: 16px; }
  .organization-edit-form .panel { padding: 18px; }
  .organization-edit-form .panel > .panel-block-heading:first-child,
  .organization-edit-form .panel > .section-heading:first-child { margin: -18px -18px 16px; padding: 13px 18px 12px; }
  .organization-edit-form .form-grid { gap: 13px; }
  .organization-info-zone { padding: 14px; }
  .organization-info-zone-heading { margin: -14px -14px 14px; padding: 10px 14px; }

  .band-workspace { grid-template-columns: minmax(0, 1fr) minmax(260px, 285px); gap: 16px; }
  .band-sidebar { gap: 16px; }
  .band-editor-layout { grid-template-columns: minmax(0, 1fr) minmax(290px, 310px); gap: 16px; }
  .band-editor-sidebar, .campaign-recipient-sidebar { top: 84px; }
  .campaign-compose-layout { grid-template-columns: minmax(0, 1fr) minmax(280px, 300px); gap: 16px; }
  .campaign-detail { grid-template-columns: minmax(0, 1fr) minmax(330px, 360px); gap: 16px; }

  .basic-table th { padding: 12px 11px; }
  .basic-table td { padding: 13px 11px; }
  .band-card-grid { gap: 16px; }

  .organization-preview-dialog,
  .asset-preview-dialog,
  .campaign-preview-dialog { width: calc(100% - 24px); }
  .dispatch-confirmation-dialog { width: calc(100% - 24px); }
  .organization-preview-dialog { height: calc(100dvh - 24px); }
}

@media (max-width: 760px) {
  .topbar { min-height: auto; }
  .topbar-inner { flex-wrap: wrap; gap: 10px; width: calc(100% - 28px); padding: 11px 0 9px; }
  .brand { margin-right: auto; }
  .brand img { width: 39px; height: 39px; }
  .brand-copy small, .account-copy { display: none; }
  .workspace-band-switcher { order: 2; flex: 0 1 auto; max-width: calc(100% - 98px); }
  .workspace-band-switcher .choices { max-width: 100%; }
  .workspace-band-switcher .choices__list--single { max-width: calc(100vw - 174px); }
  .workspace-band-current { order: 2; flex: 1 1 170px; max-width: calc(100% - 98px); }
  .user-avatar { width: 36px; height: 36px; }
  .topbar nav { order: 3; flex: 1 0 100%; width: 100%; padding-top: 4px; overflow-x: auto; scrollbar-width: none; }
  .topbar nav::-webkit-scrollbar { display: none; }
  .topbar nav a { gap: 6px; flex: 0 0 auto; min-height: 39px; padding: 7px 10px; }
  .band-selection-grid { grid-template-columns: 1fr; }
  .band-selection-card { min-height: 112px; padding: 17px; }
  .container { width: min(100% - 24px, 1500px); margin-top: 22px; }
  .dashboard-hero { align-items: start; flex-direction: column; padding: 28px 24px; border-radius: 21px; }
  .dashboard-hero h1 { font-size: 2.25rem; }
  .dashboard-hero-actions, .dashboard-hero-actions .button { width: 100%; }
  .auth-shell { padding: 14px; }
  .auth-layout { grid-template-columns: 1fr; min-height: auto; border-radius: 22px; }
  .auth-brand-panel { min-height: 320px; padding: 30px; }
  .auth-promise { margin: 48px 0 0; }
  .auth-promise h1 { font-size: 2.5rem; }
  .auth-promise p { margin-bottom: 0; }
  .auth-benefits { display: none; }
  .auth-card.login-card { padding: 38px 28px; }
  .page-heading { align-items: start; flex-direction: column; }
  .primary-filters, .advanced-filter-grid, .form-grid, .form-grid-three, .definition-grid, .content-grid, .split, .prospecting-filters, .band-workspace, .email-branding-fields { grid-template-columns: 1fr; }
  .organization-edit-classification-grid,
  .organization-edit-details-grid,
  .organization-edit-location-grid,
  .organization-edit-contact-grid,
  .organization-edit-new-contact-grid,
  .performance-format-fields,
  .organization-opposition-fields { grid-template-columns: 1fr; }
  .organization-contact-dialog .organization-edit-new-contact-grid { grid-template-columns: 1fr; }
  .definition-grid.organization-facts { grid-template-columns: 1fr; }
  .organization-layout .panel,
  .organization-edit-form .panel { padding: 16px; }
  .organization-info-zone { padding: 14px; }
  .organization-info-zone-heading { margin: -14px -14px 14px; padding: 11px 14px 10px; }
  .organization-layout .panel > .panel-block-heading:first-child,
  .organization-layout .panel > .section-heading:first-child,
  .organization-edit-form .panel > .panel-block-heading:first-child,
  .organization-edit-form .panel > .section-heading:first-child { margin: -16px -16px 14px; padding: 13px 16px 11px; }
  .form-grid .span-two { grid-column: auto; }
  .form-section { gap: 18px; }
  .form-section-heading { gap: 10px; }
  .panel { padding: 18px; }
  .panel > .panel-block-heading:first-child,
  .panel > .section-heading:first-child,
  .panel > .form-section-heading:first-child { margin: -18px -18px 18px; padding: 15px 18px 13px; }
  .panel > h2:first-child { margin: -18px -18px 18px; padding: 17px 18px 14px; }
  .form-actions-sticky { position: static; width: 100%; }
  .form-actions-sticky .button, .form-actions-sticky button { flex: 1 1 auto; }
  .filter-actions { align-items: start; flex-direction: column; }
  .directory-results { padding: 18px; overflow: hidden; }
  :is(.directory-results, .prospecting-results) div.dt-container > .dt-layout-table + .dt-layout-row,
  :is(.directory-results, .prospecting-results) div.dt-container > .dt-layout-row:has(.dt-length) {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }
  :is(.directory-results, .prospecting-results) div.dt-container > .dt-layout-table + .dt-layout-row .dt-layout-cell,
  :is(.directory-results, .prospecting-results) div.dt-container > .dt-layout-row:has(.dt-length) .dt-layout-cell {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0;
  }
  :is(.directory-results, .prospecting-results) .dt-paging { width: 100%; }
  :is(.directory-results, .prospecting-results) .dt-paging nav { justify-content: flex-start; min-width: max-content; }
  .table-loader { top: 72px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .asset-preview-dialog { width: calc(100% - 16px); height: calc(100vh - 16px); }
  .asset-preview-header, .asset-preview-footer { padding: 12px; }
  .asset-preview-footer { align-items: stretch; flex-direction: column; }
  .asset-preview-footer .button { width: 100%; }
  .asset-preview-body { padding: 8px; }
  .organization-preview-dialog { width: calc(100% - 16px); height: calc(100vh - 16px); }
  .organization-preview-body { padding: 10px; }
  .prospecting-results .dt-layout-table { overflow-x: auto; }
  .prospecting-cycle { min-width: 460px; }
  .prospecting-cycle-detail { min-width: 460px; }
  .organization-outreach-dialog { width: calc(100% - 16px); max-height: calc(100vh - 16px); }
  .organization-outreach-dialog-shell { max-height: calc(100vh - 16px); }
  .organization-outreach-dialog-body { padding: 14px; }
  .organization-outreach-fields { grid-template-columns: 1fr; }
  .organization-outreach-actions { align-items: stretch; flex-direction: column-reverse; }
  .organization-outreach-actions .button { width: 100%; }
  .organization-contact-dialog { width: calc(100% - 16px); max-height: calc(100vh - 16px); }
  .organization-contact-dialog-shell { max-height: calc(100vh - 16px); }
  .organization-contact-dialog-body { padding: 14px; }
  .organization-contact-dialog .asset-preview-footer { align-items: stretch; flex-direction: column-reverse; }
  .organization-contact-dialog .asset-preview-footer .button,
  .organization-contact-dialog .asset-preview-footer button { width: 100%; }
  .organization-edit-actions { align-items: stretch; }
  .organization-edit-actions .button,
  .organization-edit-actions button { flex: 1 1 auto; }
  .campaign-preview-dialog { width: calc(100% - 16px); height: calc(100vh - 16px); }
  .campaign-preview-body { padding: 10px; }
  .dispatch-confirmation-dialog { width: calc(100% - 16px); max-height: calc(100vh - 16px); }
  .dispatch-confirmation-shell { max-height: calc(100vh - 16px); }
  .dispatch-confirmation-body { padding: 12px; }
  .dispatch-recipient-summary { flex-direction: column; gap: 4px; }
  .dispatch-confirmation-footer { align-items: stretch; flex-direction: column-reverse; }
  .dispatch-confirmation-form { grid-template-columns: 1fr; }
  .dispatch-confirmation-footer > .button,
  .dispatch-confirmation-form button { width: 100%; }
  .prospecting-basket-dialog { width: calc(100% - 16px); max-height: calc(100vh - 16px); }
  .prospecting-basket-shell { max-height: calc(100vh - 16px); }
  .prospecting-basket-body { padding: 12px; }
  .prospecting-basket-toolbar { align-items: stretch; flex-direction: column; }
  .prospecting-basket-footer { align-items: stretch; flex-direction: column-reverse; }
  .prospecting-basket-footer .button { width: 100%; }
  .email-preview-meta > div { grid-template-columns: 1fr; gap: 2px; }
  .campaign-email-frame { height: 560px; }
}

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

/* Tournées et concerts */
.tour-heading { margin-bottom: 18px; }
.tour-heading .inline-actions { flex-wrap: wrap; }
.tour-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.tour-stats article { position: relative; min-height: 98px; padding: 20px; overflow: hidden; border: 1px solid #d5e4ef; border-radius: 17px; background: rgba(255,255,255,.96); box-shadow: 0 10px 28px rgba(14,66,112,.07); }
.tour-stats article::after { content: ""; position: absolute; top: -28px; right: -26px; width: 86px; height: 86px; border-radius: 50%; background: #dceefa; }
.tour-stats article.needs-attention::after { background: #fff0d1; }
.tour-stats span { position: relative; z-index: 1; display: block; color: #123c60; font-size: 1.9rem; font-weight: 620; line-height: 1; }
.tour-stats small { position: relative; z-index: 1; display: block; margin-top: 10px; font-size: .76rem; font-weight: 560; }
.tour-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 320px); align-items: start; gap: 18px; }
.tour-main, .tour-sidebar { min-width: 0; }
.tour-sidebar { position: sticky; top: 102px; }
.tour-schedule-panel { padding-bottom: 16px; scroll-margin-top: 102px; }
.concert-list { display: grid; gap: 10px; }
.concert-card { display: grid; grid-template-columns: 68px minmax(200px, 1fr) minmax(210px, auto) auto; align-items: center; gap: 12px; min-height: 88px; padding: 10px 12px 10px 10px; border: 1px solid #d7e5ef; border-left: 4px solid #d6a13d; border-radius: 15px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.concert-card:hover { border-color: #b7d8ed; box-shadow: 0 12px 28px rgba(17,86,137,.11); transform: none; }
.concert-card.status-confirmed { border-left-color: #159a78; }
.concert-card.status-played { border-left-color: var(--primary); }
.concert-card.status-cancelled { border-left-color: var(--danger); opacity: .82; }
.concert-date { display: grid; place-items: center; align-content: center; align-self: stretch; border-radius: 12px; color: #0c5f99; background: #e8f4fc; line-height: 1; text-align: center; }
.concert-date strong { font-size: 1.65rem; font-weight: 640; }
.concert-date span { margin-top: 5px; font-size: .69rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.concert-card-main { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-width: 0; min-height: 64px; padding: 8px 4px; border: 0; color: var(--ink); background: transparent; box-shadow: none; text-align: left; }
.concert-card-main:hover { color: var(--primary-dark); background: transparent; box-shadow: none; transform: none; }
.concert-card-main > span:first-child { display: grid; min-width: 0; gap: 4px; }
.concert-card-main strong, .concert-card-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.concert-card-main strong { font-size: 1.02rem; }
.concert-time { color: var(--ink-soft); font-size: .9rem; font-weight: 570; }
.concert-card-meta { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px 12px; color: var(--muted); font-size: .75rem; }
.badge.info { color: #125d91; background: #e3f2fc; }
.badge.warm { color: #7b520b; background: #fff0d4; }
.on-route-button { min-height: 38px; white-space: nowrap; }
.concert-card-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.on-route-button svg, .route-search-context svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tour-empty { display: grid; justify-items: center; gap: 7px; padding: 54px 20px; color: var(--muted); text-align: center; }
.tour-empty > span { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; color: var(--primary); background: var(--primary-soft); font-size: 1.7rem; }
.tour-empty h3 { color: var(--ink); font-size: 1.08rem; }
.tour-history-panel { padding: 0; overflow: hidden; }
.tour-history-panel > summary { display: flex; align-items: center; justify-content: space-between; padding: 17px 22px; cursor: pointer; list-style: none; }
.tour-history-panel > summary::-webkit-details-marker { display: none; }
.tour-history-panel > summary > span:first-child { display: grid; gap: 3px; }
.tour-history-panel .concert-list { padding: 0 14px 14px; }
.concert-history-row { display: grid; grid-template-columns: 160px minmax(0,1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 62px; padding: 10px 12px; border: 1px solid #dfebf3; color: var(--ink); background: #f7fbfe; box-shadow: none; text-align: left; }
.concert-history-row:hover { color: var(--primary-dark); background: #edf7fd; box-shadow: none; transform: none; }
.concert-history-row > span:nth-child(2) { display: grid; }
.tour-base-list { display: grid; gap: 8px; }
.tour-base-card { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 62px; padding: 9px; border: 1px solid #dce8f1; color: var(--ink); background: white; box-shadow: none; text-align: left; }
.tour-base-card:hover { color: var(--primary-dark); border-color: #b7d8ed; background: #f3f9fd; box-shadow: none; transform: none; }
.tour-base-card > span:nth-child(2) { display: grid; min-width: 0; }
.tour-base-card strong, .tour-base-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tour-base-icon, .tour-logistics-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: #0e6ca8; background: #e7f3fb; font-size: .82rem; font-weight: 680; }
.tour-help-card > p { margin: 0 0 16px; color: var(--ink-soft); }
.tour-dialog { width: min(980px, calc(100% - 30px)); max-width: none; max-height: calc(100dvh - 30px); padding: 0; border: 0; border-radius: 21px; background: white; box-shadow: 0 28px 75px rgba(5,42,68,.34); }
.tour-dialog.compact-dialog { width: min(720px, calc(100% - 30px)); }
.tour-dialog::backdrop { background: rgba(4,31,51,.61); backdrop-filter: blur(3px); }
.tour-dialog-shell { display: flex; flex-direction: column; max-height: calc(100dvh - 30px); overflow: hidden; }
.tour-dialog-body { min-height: 0; padding: 20px; overflow-y: auto; }
.tour-dialog-body.stack { gap: 16px; }
.tour-form-section, .tour-detail-section { padding: 16px; border: 1px solid #dce8f1; border-radius: 15px; background: #fbfdff; }
.tour-form-section > .section-heading:first-child, .tour-detail-section > .section-heading:first-child { margin: -16px -16px 16px; padding: 12px 16px 11px; border-bottom: 1px solid #d6e5f0; border-radius: 15px 15px 0 0; background: linear-gradient(115deg,#eef7ff,#f7fcff); }
.sticky-dialog-actions { position: sticky; bottom: -20px; z-index: 2; margin: 4px -20px -20px; padding: 14px 20px; border-top: 1px solid #d9e6ef; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); }
.concert-detail-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,300px); align-items: start; gap: 16px; }
.concert-detail-main { display: grid; gap: 14px; min-width: 0; }
.concert-detail-sidebar { display: grid; gap: 14px; min-width: 0; }
.concert-detail-grid > *,
.concert-detail-main .tour-edit-details,
.concert-detail-main .tour-edit-details > form,
.concert-detail-main .form-grid,
.concert-detail-main .section-heading,
.concert-detail-sidebar .concert-asset-upload { min-width: 0; max-width: 100%; }
.concert-detail-main .form-grid > label,
.concert-detail-sidebar .concert-asset-upload > label { min-width: 0; }
.tour-notes { margin-top: 14px; padding: 12px 14px; border-radius: 11px; color: var(--ink-soft); background: #edf6fc; }
.tour-logistics-list { display: grid; gap: 8px; }
.tour-logistics-item { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 58px; padding: 8px; border: 1px solid #dfebf3; border-radius: 12px; background: white; }
.tour-logistics-item > div:nth-child(2) { display: grid; min-width: 0; gap: 2px; }
.tour-logistics-item small { overflow-wrap: anywhere; }
.tour-logistics-actions { display: flex; align-items: center; gap: 5px; }
.tour-logistics-actions form { margin: 0; }
.icon-button { min-width: 38px; min-height: 38px; padding: 0; border-color: #cfe0ec; color: var(--primary-dark); background: white; box-shadow: none; }
.icon-button:hover { color: white; background: var(--primary); box-shadow: none; }
.danger-text { color: var(--danger); }
.compact-empty { padding: 15px; border-radius: 11px; background: #f2f8fc; }
.compact-button { min-height: 36px; padding: 7px 11px; font-size: .82rem; }
.compact-notice { margin: 0; }
.tour-edit-details { border: 1px solid #d7e5ef; border-radius: 14px; background: white; }
.tour-edit-details > summary { padding: 14px 16px; color: var(--primary-dark); font-weight: 600; cursor: pointer; }
.tour-edit-details > form { padding: 2px 16px 16px; }
.ghost-danger { box-shadow: none; }
.route-mode-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.route-mode-cards label { position: relative; display: block; }
.route-mode-cards input { position: absolute; opacity: 0; pointer-events: none; }
.route-mode-cards label > span { display: grid; gap: 4px; min-height: 84px; padding: 14px; border: 1px solid #d5e4ef; border-radius: 13px; background: white; cursor: pointer; }
.route-mode-cards input:checked + span { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.route-mode-cards input:focus-visible + span { outline: 3px solid rgba(29,120,200,.22); outline-offset: 2px; }
.registered-routes { display: grid; gap: 8px; }
.registered-routes > a { display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; gap: 9px; padding: 9px; border: 1px solid #d7e6f0; border-radius: 12px; color: var(--ink); background: white; }
.registered-routes > a:hover { border-color: #acd2ea; background: #f1f8fd; text-decoration: none; }
.registered-routes > a > span:first-child { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--primary-dark); background: #e4f2fb; }
.registered-routes > a > span:last-child { display: grid; }
.tour-transport-fields { padding: 15px; border: 1px solid #cfe2ef; border-radius: 14px; background: #f2f9fd; }
.tour-transport-fields[hidden], .tour-logistics-form label[hidden] { display: none !important; }
.form-grid-four { grid-template-columns: repeat(2,minmax(0,1fr)); }
.venue-choice-line { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 10px; }
.venue-choice-line .choices { margin-bottom: 0; }
.venue-summary { align-self: end; min-height: 45px; padding: 11px 13px; border: 1px dashed #b9d8eb; border-radius: 11px; color: var(--muted); background: #f5fbff; }
.occurrence-range-list { display: grid; gap: 10px; }
.occurrence-range-row { display: grid; grid-template-columns: minmax(125px,1fr) minmax(125px,1fr) 100px 110px 135px 34px; align-items: end; gap: 9px; padding: 12px; border: 1px solid #cfe3f0; border-radius: 14px; background: #f5fbff; }
.occurrence-range-row label { min-width: 0; }
.occurrence-range-row input, .occurrence-range-row select { min-width: 0; }
.occurrence-remove { margin-bottom: 2px; }
.concert-detail-main .occurrence-range-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
.concert-detail-main .occurrence-range-row label:nth-child(5) { grid-column: 1; }
.concert-detail-main .occurrence-range-row .occurrence-remove { grid-column: 2; justify-self: end; }
.occurrence-detail-list { display: grid; gap: 7px; margin: 0 0 16px; }
.occurrence-detail-list article { display: grid; grid-template-columns: minmax(180px,1fr) 70px auto auto; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 11px; background: #eef7fd; }
.occurrence-detail-list small { color: var(--primary-dark); font-weight: 650; }
.tour-route-entry { display: grid; grid-template-columns: minmax(180px,1.25fr) minmax(210px,1fr) 82px; gap: 10px; align-items: end; }
.tour-route-entry > input[type="hidden"] { display: none; }
.postal-mini input { text-align: center; background: #eaf4fa; }
[data-round-trip-option] { margin-top: 12px; }
[data-remote-choice] + .choices { margin-bottom: 0; }
[data-check-time-wrap][hidden] { display: none !important; }
.admin-member-choice-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.admin-member-choice-list .checkbox-label { align-items: center; padding: 11px; border: 1px solid #d4e5ef; border-radius: 12px; background: #f7fbfe; }
.admin-member-choice-list .checkbox-label span { display: grid; }
.explicit-send-confirmation { padding: 15px; border: 1px solid #f0c875; border-radius: 14px; background: #fff8e7; }
.explicit-send-confirmation p { margin: 0 0 8px; }
.locked-choice { opacity: .8; }
.concert-asset-upload { margin-top: 14px; padding-top: 14px; border-top: 1px solid #dce8f1; }
.concert-asset-upload .filepond--root { width: 100%; min-width: 0; margin-bottom: 0; }
.asset-row { gap: 8px; }
.route-search-context { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; align-items: center; gap: 14px; margin-bottom: 18px; padding: 15px 17px; border: 1px solid #a9d2e9; border-radius: 17px; background: linear-gradient(115deg,#e8f5fd,#f5fbff); box-shadow: 0 11px 28px rgba(14,88,137,.09); }
.route-search-context-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: white; background: linear-gradient(135deg,var(--primary),#1698c7); }
.route-search-context h2 { font-size: 1.05rem; }
.route-search-context p { margin: 3px 0 0; color: var(--muted); }
.route-search-context .route-search-attribution { margin-top: 6px; font-size: .75rem; }
.route-search-context-actions { display: flex; gap: 8px; }
.button.ghost { color: var(--primary-dark); background: transparent; border-color: transparent; box-shadow: none; }
.button.ghost:hover { color: var(--primary-dark); background: rgba(255,255,255,.7); box-shadow: none; }
.dashboard-side-stack { display: grid; align-content: start; gap: 18px; min-width: 0; }
.dashboard-side-stack .panel + .panel { margin-top: 0; }
.dashboard-concert-list { display: grid; gap: 7px; }
.dashboard-concert-list > a { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 9px; border: 1px solid #dce8f1; border-radius: 11px; color: var(--ink); background: #fbfdff; }
.dashboard-concert-list > a:hover { border-color: #b8d8ec; color: var(--primary-dark); background: #f0f8fd; text-decoration: none; }
.dashboard-concert-list time { color: var(--primary-dark); font-size: .82rem; font-weight: 620; }
.dashboard-concert-list > a > span:nth-child(2) { display: grid; min-width: 0; }
.dashboard-concert-list strong, .dashboard-concert-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1180px) {
  .tour-layout { grid-template-columns: minmax(0,1fr) 280px; gap: 14px; }
  .concert-card { grid-template-columns: 62px minmax(180px,1fr) auto; }
  .concert-card-meta { justify-content: flex-start; grid-column: 2; }
  .concert-card-actions { grid-column: 3; grid-row: 1 / span 2; flex-direction: column; align-items: stretch; }
  .concert-detail-grid { grid-template-columns: minmax(0,1fr) 270px; }
}

@media (max-width: 900px) {
  .tour-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tour-layout { grid-template-columns: 1fr; }
  .tour-sidebar { position: static; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  .tour-sidebar .panel + .panel { margin-top: 0; }
  .concert-detail-grid { grid-template-columns: 1fr; }
  .occurrence-range-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .occurrence-range-row .occurrence-remove { justify-self: end; }
  .tour-route-entry { grid-template-columns: minmax(0,1fr) minmax(0,1fr) 76px; }
  .concert-detail-sidebar { grid-template-columns: minmax(0,1fr); }
  .route-search-context { grid-template-columns: 48px minmax(0,1fr); }
  .route-search-context-actions { grid-column: 2; }
}

@media (max-width: 620px) {
  .tour-heading .inline-actions, .tour-heading .inline-actions .button { width: 100%; }
  .tour-stats { gap: 9px; }
  .tour-stats article { min-height: 84px; padding: 15px; }
  .tour-stats span { font-size: 1.55rem; }
  .tour-sidebar { grid-template-columns: 1fr; }
  .concert-card { grid-template-columns: 54px minmax(0,1fr); gap: 9px; padding: 9px; }
  .concert-date { min-height: 58px; }
  .concert-date strong { font-size: 1.35rem; }
  .concert-time { display: none; }
  .concert-card-meta { grid-column: 2; justify-content: flex-start; }
  .concert-card-actions { grid-column: 1 / -1; grid-row: auto; flex-direction: row; }
  .concert-card-actions .button { flex: 1; }
  .admin-member-choice-list { grid-template-columns: 1fr; }
  .concert-history-row { grid-template-columns: 1fr auto; }
  .concert-history-row time { grid-column: 1 / -1; }
  .tour-dialog, .tour-dialog.compact-dialog { width: calc(100% - 12px); max-height: calc(100dvh - 12px); border-radius: 17px; }
  .tour-dialog-shell { max-height: calc(100dvh - 12px); }
  .tour-dialog-body { padding: 13px; }
  .tour-form-section, .tour-detail-section { padding: 13px; }
  .tour-form-section > .section-heading:first-child, .tour-detail-section > .section-heading:first-child { margin: -13px -13px 13px; padding: 11px 13px; }
  .sticky-dialog-actions { bottom: -13px; margin: 3px -13px -13px; padding: 12px 13px; }
  .route-mode-cards { grid-template-columns: 1fr; }
  .route-mode-cards label > span { min-height: auto; }
  .form-grid-four { grid-template-columns: 1fr; }
  .venue-choice-line { grid-template-columns: 1fr; }
  .venue-choice-line .button { width: 100%; }
  .occurrence-range-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .occurrence-range-row label:nth-child(4), .occurrence-range-row label:nth-child(5) { grid-column: span 1; }
  .occurrence-detail-list article { grid-template-columns: 1fr auto; }
  .tour-route-entry { grid-template-columns: minmax(0,1fr) 72px; }
  .tour-route-entry > label:first-of-type { grid-column: 1 / -1; }
  .route-search-context { grid-template-columns: 42px minmax(0,1fr); padding: 13px; }
  .route-search-context-icon { width: 40px; height: 40px; }
  .route-search-context-actions { grid-column: 1 / -1; align-items: stretch; flex-direction: column; }
  .route-search-context-actions .button { width: 100%; }
}
