.dashboard, .ws-dialog, .account-shell {
  --ws-base: light-dark(#fafafb, #121116);
  --ws-card: light-dark(#fff, #1a191f);
  --ws-subtle: light-dark(#f0f1f4, #1e1d22);
  --ws-text: light-dark(#20232c, #e5e7eb);
  --ws-quiet: light-dark(#606573, #a1a1a6);
  --ws-line: light-dark(#dcdfe5, rgb(243 244 246 / 20%));
  --ws-rail: light-dark(#f4f5f7, #111827);
  --ws-divider: light-dark(#dfe1e7, #f3f4f61a);
  --ws-hover: light-dark(#e3e6ec, #374151);
  font-family: 'Setup Inter', system-ui, sans-serif;
  color: var(--ws-text);
}
.dashboard { grid-template-columns: 261px minmax(0,1fr); background: var(--ws-base); }
.dashboard .rail { background: var(--ws-rail); border-right: 1px solid var(--ws-divider); padding: 0; }
.dashboard .rail-head { height: 44px; min-height: 44px; gap: 8px; padding: 0 12px; border-bottom: 1px solid var(--ws-divider); }
.ws-brand, .ws-account summary, .ws-account-menu a, .ws-account-menu button { display: flex; align-items: center; gap: 8px; }
.ws-brand { margin-right: auto; font-size: 15px; font-weight: 600; }
.ws-brand .setup-mark { width: 24px; height: 24px; border-radius: 6px; }
.ws-brand:hover { text-decoration: none; }
.ws-collapse, .dashboard .mobile-nav { padding: 4px; border-radius: 5px; color: light-dark(#4c5361, #cbcccd); }
.ws-collapse:hover { background: var(--ws-hover); }
.dashboard .rail nav { padding: 12px 8px; margin: 0; gap: 2px; }
.dashboard .rail nav a { border-radius: 6px; color: var(--ws-text); padding: 6px 12px; gap: 10px; font-weight: 500; }
.dashboard .rail-bottom { padding: 8px; border-top: 1px solid var(--ws-divider); }
.ws-account { position: relative; }
.ws-account summary { min-height: 36px; cursor: pointer; padding: 4px 8px; list-style: none; border-radius: 6px; font-size: 14px; }
.ws-account summary::-webkit-details-marker { display: none; }
.ws-account summary:hover { background: light-dark(#e3e6ec, #263040); }
.ws-account summary > span:not(.portrait) { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-account .portrait { width: 26px; height: 26px; }
.ws-account-menu { position: absolute; z-index: 3; bottom: calc(100% + 8px); left: 0; min-width: 200px; padding: 6px; background: light-dark(#fff, #202632); border: 1px solid var(--ws-line); border-radius: 8px; box-shadow: 0 10px 32px #0003; }
.ws-account-menu > * { width: 100%; border-radius: 5px; padding: 8px; }
.ws-appearance {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 8px; min-height: 36px; font-size: 14px;
}
.ws-appearance-options {
  position: relative; isolation: isolate; display: flex; flex: none; gap: 2px; margin-inline-start: auto; padding: 2px;
  border: 1px solid var(--ws-divider); border-radius: 9px; background: var(--ws-subtle);
}
.ws-appearance-options::before {
  content: ''; position: absolute; inset-block: 2px; left: 2px; width: 28px;
  border-radius: 6px; background: var(--ws-hover); pointer-events: none;
}
.ws-appearance-options:has([value="dark"]:checked)::before { transform: translateX(30px); }
.ws-appearance-options:has([value="system"]:checked)::before { transform: translateX(60px); }
.ws-appearance-option {
  position: relative; display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 6px; color: var(--ws-quiet);
}
.ws-appearance-option:hover { color: var(--ws-text); }
.ws-appearance-option:has(:checked) { color: var(--ws-text); }
.ws-appearance-option:has(:focus-visible) { outline: 1px solid currentColor; outline-offset: -1px; }
.ws-account-menu { width: max-content; max-width: calc(100vw - 24px); }
.ws-account-menu .ws-appearance { border-bottom: 1px solid var(--ws-divider); border-radius: 0; margin-bottom: 4px; gap: 18px; }
.ws-account[open] summary { background: var(--ws-hover); }
.ws-appearance-option { cursor: pointer; }
/* Live Lemcal account form, billing panel and plan comparison. */
.account-shell, .settings-dialog {
  --settings-ink: light-dark(#010101, #f3f4f6);
  --settings-muted: light-dark(#797979, #a1a1a6);
  --settings-label: light-dark(#919193, #afafb4);
  --settings-panel: light-dark(#fff, #1a191f);
  --settings-well: light-dark(#fbfbfb, #201f25);
  --settings-active: light-dark(#f6f6f6, #2b2a30);
  --settings-line: light-dark(rgb(31 41 55 / 10%), rgb(243 244 246 / 10%));
  --settings-input-line: light-dark(#e6e6e6, #3a393f);
  --settings-shadow: 0 1px 3px rgb(0 0 0 / 4%);
  --font-ui: 'Setup Inter', Inter, system-ui, sans-serif;
  font: 400 14px/20px var(--font-ui);
  color: var(--settings-ink);
  background: var(--settings-panel);
}
.account-shell .account-panel {
  min-width: 0; margin: 0; padding: 0; border: 0; border-inline-start: 1px solid var(--settings-line);
  border-radius: 0; background: var(--settings-panel); box-shadow: none;
}
.account-panel, .account-rail { scrollbar-width: none; }
.account-rail .portrait { width: 20px; height: 20px; flex: none; font-size: 10px; }
.account-shell .account-rail { padding: 12px; }
.account-rail nav { display: grid; gap: 12px; }
.account-rail nav > div { padding: 0; }
.account-rail nav > div > span { height: 28px; padding: 8px 8px 4px; color: light-dark(#6b7280,#a1a6af); font: 500 12px/16px var(--font-ui); }
.account-rail nav > div > a { padding: 4px 8px; height: 32px; border-radius: 8px; font-weight: 500; color: light-dark(#4b5563,#cbd1dc); }
.account-rail nav a:is(:hover,[aria-current]) { background: light-dark(#f3f4f6,#2a2b31); color: light-dark(#1f2937,#f3f4f6); }
.account-shell .settings-head { position: sticky; top: 0; z-index: 1; max-width: none; height: 57px; padding: 12px 24px; margin: 0; background: var(--settings-panel); border-bottom: 1px solid var(--settings-line); }
.account-shell .account-panel h1 { font: 600 18px/24px var(--font-ui); letter-spacing: normal; }
.settings-close, .settings-icon-button { display: grid; flex: none; width: 32px; height: 32px; padding: 0; place-items: center; border-radius: 10px; color: var(--settings-muted); }
.settings-close:hover, .settings-icon-button:hover { background: var(--settings-active); }
.billing-tabs { display: flex; align-items: center; gap: 12px; }
.billing-tabs a { display: flex; align-items: center; gap: 8px; height: 32px; padding: 4px 8px; border-radius: 10px; color: var(--settings-label); font-weight: 500; white-space: nowrap; }
.billing-tabs a:is(:hover,[aria-current]) { color: var(--settings-ink); background: var(--settings-active); text-decoration: none; }
.billing-tabs a[aria-current] {
  position: relative;
}
.billing-tabs a[aria-current]::after {
  content: ''; position: absolute; inset: auto 0 -13px; height: 1px; background: currentColor;
}
.account-shell:has(.billing-tabs) .settings-head { padding-inline: 12px; }
.account-content { max-width: 1084px; padding: 24px; gap: 16px; }
.account-panel p { color: var(--settings-muted); }
.account-shell[data-view="profile"] .settings-head { height: 56px; padding: 24px 24px 0; border: 0; }
.account-shell[data-view="profile"] .account-content { max-width: none; }
.account-form { display: grid; gap: 16px; }
.account-shell .profile-section .frame-head { padding: 0 0 16px; margin: 0 0 16px; }
.account-shell .profile-section h2 { font: 700 16px/20px var(--font-ui); }
.account-shell .profile-info { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--settings-line); border-radius: 12px; }
.profile-picture { display: flex; align-items: center; gap: 16px; }
.profile-picture .portrait { display: grid; place-items: center; width: 100px; height: 100px; border: 0; border-radius: 50%; object-fit: cover; }
.profile-picture .initials { font-size: 48px; font-weight: 500; background: #64a8e0; color: white; }
.profile-fields .field + .field { margin: 0; }
.profile-fields .field { min-height: 32px; font: 500 14px/20px var(--font-ui); color: var(--settings-ink); }
.profile-fields .field p { font: inherit; color: var(--settings-muted); margin: 0; }
#app .profile-fields .field :is(input,textarea), #dialog.settings-dialog .field input { width: 100%; border: 0; padding: 6px 12px; color: var(--settings-ink); background: var(--settings-panel); box-shadow: inset 0 0 0 1px var(--settings-input-line); border-radius: 10px; font: 500 14px/20px var(--font-ui); }
.profile-fields .field input, .settings-dialog .field input { height: 32px; }
#app .profile-fields .field :is(input,textarea):focus, #dialog.settings-dialog .field input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--settings-ink); }
.account-form .frame-footer { gap: 8px; padding: 0; }
.account-shell .settings-frame { padding: 16px; border: 1px solid var(--settings-line); border-radius: 10px; background: var(--settings-panel); box-shadow: var(--settings-shadow); }
.account-shell .settings-frame .frame-head { padding: 0; min-height: 32px; margin-bottom: 16px; }
.account-shell .settings-frame h2 { font: 500 16px/24px var(--font-ui); }
.account-shell .frame-card { display: grid; gap: 12px; background: transparent; border: 0; }
.workspace-users.sponsor-ui {
  container-type: inline-size;
  display: grid; min-width: 0; gap: 16px;
  color: var(--settings-ink); font-family: var(--font-ui);
}
.account-shell[data-view="users"] .account-content { max-width: none; padding: 24px 0; }
.workspace-users > :is(.workspace-seat-usage,.workspace-users-toolbar) { margin-inline: 16px; }
.workspace-seat-usage {
  display: grid; gap: 16px; padding: 16px; min-height: 86px; border-radius: 10px;
  border: 1px solid var(--settings-line); background: var(--settings-panel);
}
.workspace-seat-usage > div { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.workspace-seat-usage h2 { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 700; }
.workspace-seat-usage :is(h2,p) { margin: 0; }
.workspace-seat-usage progress {
  width: 100%; height: 4px;
  appearance: none; border: 0; border-radius: 999px; overflow: hidden;
  background: var(--settings-input-line);
}
.workspace-seat-usage progress::-webkit-progress-bar { background: var(--settings-input-line); }
.workspace-seat-usage progress::-webkit-progress-value { background: var(--settings-ink); }
.workspace-seat-usage progress::-moz-progress-bar { background: var(--settings-ink); }
.workspace-users-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.workspace-users-toolbar { justify-content: space-between; }
.workspace-users-search {
  display: flex; align-items: center; gap: 8px; width: min(234px,100%); min-height: 32px;
  padding-inline: 10px; border: 1px solid var(--settings-input-line); border-radius: 8px;
  background: var(--settings-panel); color: var(--settings-muted);
}
.workspace-users-search:focus-within { outline: 2px solid var(--settings-ink); outline-offset: 2px; }
#app .workspace-users-search input {
  width: 100%; min-width: 0; padding: 0; border: 0; border-radius: 0; outline: none;
  box-shadow: none; background: transparent; color: var(--settings-ink); font: inherit;
}
.workspace-users-directory { border-block: 1px solid var(--settings-line); }
.workspace-user-table { width: 100%; border-collapse: collapse; text-align: left; }
.workspace-user-table thead { color: var(--settings-muted); background: var(--settings-panel); }
.workspace-user-table :is(th,td) { padding: 12px; text-align: start; vertical-align: middle; overflow-wrap: anywhere; }
.workspace-user-table thead th { font-size: 12px; font-weight: 500; }
.workspace-column-label { display: inline-flex; align-items: center; gap: 6px; }
.workspace-column-label .fa-users { --fa: "\f0c0"; }
.workspace-column-label .fa-envelope { --fa: "\f0e0"; }
.workspace-column-label .fa-lock { --fa: "\f023"; }
@container (width > 580px) {
  .workspace-user-table tr > * + * { border-inline-start: 1px solid var(--settings-line); }
}
.workspace-user-table tbody tr { border-block-start: 1px solid var(--settings-line); }
.workspace-seat th { font-weight: 500; }
.workspace-user-table .workspace-users-empty { padding: 24px 12px; text-align: center; color: var(--settings-muted); }
.workspace-seat-mobile-label { display: none; }
.workspace-seat-email { color: var(--settings-muted); }
.workspace-seat-actions { width: 142px; }
.workspace-user-actions { display: flex; justify-content: flex-start; align-items: center; gap: 4px; flex-wrap: wrap; }
.workspace-seat-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.workspace-seat-avatar {
  flex: 0 0 24px; height: 24px; border-radius: 50%; overflow: hidden;
  background: #bb4943; color: white; font-size: 12px;
  font-weight: 600;
}
.workspace-seat-avatar .ui-user-picture { display: grid; width: 100%; height: 100%; place-items: center; }
.workspace-seat-avatar .picture { width: 100%; height: 100%; object-fit: cover; }
.workspace-seat-status {
  display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; border-radius: 999px; border: 1px solid currentColor;
  background: var(--settings-active); color: var(--settings-ink); font-size: 12px; font-weight: 500;
}
.workspace-seat-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.workspace-seat-status[data-status="Active"], .workspace-seat-role {
  background: light-dark(#eff6ff,#172554); color: light-dark(#134cdd,#bfdbfe);
}
@container (max-width: 580px) {
  .workspace-users-search { width: 100%; }
  .workspace-user-table, .workspace-user-table tbody { display: block; }
  .workspace-user-table .workspace-users-empty { display: block; }
  .workspace-user-table tbody tr:has(.workspace-users-empty) { display: block; }
  .workspace-user-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .workspace-user-table tbody tr:first-child { border-block-start: 0; }
  .workspace-seat { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 12px; padding: 12px; }
  .workspace-seat :is(th,td) { padding: 0; }
  .workspace-seat :is(th,.workspace-seat-email,.workspace-seat-actions) { grid-column: 1 / -1; width: auto; }
  .workspace-user-table .workspace-seat-email { padding-inline-start: 34px; }
  .workspace-seat-mobile-label { display: block; color: var(--settings-muted); font-size: 12px; }
  .workspace-seat-actions:empty { display: none; }
}
.workspace-invite-link { display: grid; gap: 16px; overflow-wrap: anywhere; }
.invoice-status { color: var(--settings-muted); font-size: 14px; }
.invoice-recipient, .account-shell .account-row { padding: 12px 16px; background: var(--settings-well); border: 0; border-radius: 10px; }
.invoice-recipient { display: grid; gap: 8px; }
.invoice-recipient > div { display: flex; align-items: center; justify-content: space-between; font-weight: 500; color: var(--settings-label); }
.invoice-recipient p { margin: 0; }
.account-shell[data-view="billing/plans"] .account-content { gap: 32px; }
.billing-plans .plan-notice { display: flex; align-items: center; gap: 12px; margin: 0; padding: 8px 16px; color: var(--settings-ink); background: light-dark(#e9f3ff,#24354a); border-radius: 10px; }
.plan-notice .icon { flex: none; }
.plan-period { justify-self: start; padding: 4px; gap: 0; border: 1px solid var(--settings-input-line); background: var(--settings-active); }
.plan-period span { padding: 0 12px; border-radius: 6px; color: var(--settings-muted); }
.plan-period input:checked + span { font-weight: 600; color: var(--settings-ink); background: transparent; box-shadow: none; }
.plan-period input:focus-visible + span { outline: 1px solid currentColor; outline-offset: -1px; }
.plan-period span { pointer-events: none; }
.billing-plans .plan-grid { justify-content: center; gap: 12px; grid-template-columns: minmax(0,340px); }
.billing-plans .plan-card { display: flex; flex-direction: column; gap: 16px; padding: 16px; border: 1px solid var(--settings-line); border-radius: 10px; background: var(--settings-panel); box-shadow: var(--settings-shadow); }
.billing-plans .plan-card h3 { margin: 0; font: 600 16px/23px var(--font-ui); }
.plan-price-block { display: grid; gap: 4px; }
.plan-price-block strong { font: 600 25px/24px var(--font-ui); }
.plan-price-block > span, .plan-price-block .plan-subtotal { font: 500 12px/20px var(--font-ui); color: var(--settings-muted); }
.plan-price-block .plan-subtotal { margin: 0; }
.plan-price-block del { font-size: 16px; font-weight: 400; color: var(--settings-muted); }
.billing-address-dialog .checkout-address { padding: 8px; }
.billing-address-dialog .checkout-address .field { margin: 0; }
.billing-address-dialog select { background: var(--settings-panel); color: var(--settings-ink); min-height: 32px; }
.plan-card .plan-benefits { margin: 0; gap: 12px; }
.plan-benefits li { color: var(--settings-ink); gap: 12px; font-weight: 500; }
.plan-benefits li :is(img,svg) { flex: none; margin-top: 2px; }
.settings-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 32px; padding: 1px 8px; border: 1px solid var(--settings-line); border-radius: 10px; color: light-dark(#1f2937,#f3f4f6); background: linear-gradient(0deg,light-dark(#f9fafb,#25262c) -10%,var(--settings-panel) 100%); font: 500 14px/20px var(--font-ui); box-shadow: var(--settings-shadow); }
.settings-button.primary { position: relative; isolation: isolate; border-color: #ff4d4d; background: linear-gradient(#ff7171,#ff4d4d); color: white; }
.settings-button.primary:enabled::before { content: ''; z-index: -1; position: absolute; inset: 1px; border-radius: 8px; background: linear-gradient(0deg,#ff4d4d -10%,#d33e3e 100%); }
.settings-button:hover:enabled, a.settings-button:hover { text-decoration: none; }
.settings-button:disabled { color: var(--settings-label); background: var(--settings-active); border-color: var(--settings-line); cursor: default; }
.settings-dialog { width: min(502px,calc(100vw - 24px)); border: 1px solid var(--settings-line); border-radius: 10px; }
.settings-dialog::backdrop { background: rgb(0 0 0 / 40%); }
.settings-dialog .modal-head { padding: 16px 24px; border-bottom: 1px solid var(--settings-line); }
.settings-dialog .modal-head h2 { font: 600 18px/24px var(--font-ui); }
.settings-dialog .modal-body { padding: 16px; }
.settings-dialog footer { margin: 0 -16px -16px; padding: 16px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--settings-line); }
.settings-dialog [data-cancel] { width: auto; padding: 1px 8px; }
.checkout-dialog {
  width: min(1102px, calc(100vw - 32px)); max-width: none;
  max-height: min(760px, calc(100dvh - 32px)); padding: 0; overflow: hidden;
}
.checkout-dialog[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.checkout-dialog .modal-head { min-height: 53px; padding: 10px 16px 10px 24px; }
.checkout-columns { min-height: 0; display: grid; grid-template-columns: minmax(0, 67.1fr) minmax(0, 32.9fr); }
.checkout-details, .checkout-summary { min-width: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px; }
.checkout-details { display: flex; flex-direction: column; gap: 8px; }
.checkout-section { padding: 16px 24px; background: var(--settings-panel); border: 1px solid var(--settings-line); border-radius: 10px; box-shadow: var(--settings-shadow); }
.checkout-section h3 { display: flex; align-items: center; gap: 8px; font: 600 16px/20px var(--font-ui); margin: 0 0 16px; }
.checkout-address { display: grid; gap: 16px; }
.checkout-details .field { display: grid; gap: 4px; margin: 0; color: var(--settings-label); font: 500 12px/16px var(--font-ui); }
.checkout-dialog .checkout-details .field + .field { margin-top: 0; }
.checkout-dialog .checkout-details .checkout-section .field input, .checkout-address select {
  width: 100%; min-width: 0; height: 32px; padding: 5px 10px; border: 1px solid var(--settings-input-line);
  border-radius: 10px; background: var(--settings-panel); color: var(--settings-ink); box-shadow: none; font: 400 14px/20px var(--font-ui);
}
.checkout-dialog .checkout-address :is(input,select):focus { outline: 1px solid var(--settings-muted); outline-offset: -1px; }
.checkout-city { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr); gap: 8px; }
.checkout-address button { justify-self: end; }
.checkout-card-fields { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; min-width: 0; margin: 0 0 12px; padding: 0; border: 0; }
.checkout-payment p { color: var(--settings-muted); margin: 0; }
.checkout-summary { background: var(--settings-well); border-inline-start: 1px solid var(--settings-line); }
.checkout-summary > h3, .checkout-total { font: 600 18px/24px var(--font-ui); }
.checkout-summary > h3 { margin: 0 0 16px; }
.checkout-product { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--settings-line); border-radius: 5px; background: var(--settings-panel); }
.checkout-product strong, .checkout-product span { display: flex; align-items: center; gap: 6px; }
.checkout-product strong { font: 600 18px/26px var(--font-ui); margin-bottom: 2px; }
.checkout-product span { font-size: 12px; color: var(--settings-muted); }
.plan-seats { display: flex; align-items: center; gap: 8px; }
.plan-seats button { width: 32px; padding: 0; font-size: 18px; }
.plan-seats output { min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums; }
.checkout-product .setup-mark { width: 26px; height: 26px; border-radius: 6px; color: white; justify-content: center; }
.checkout-summary dl { display: grid; gap: 12px; margin: 16px 0 0; }
.checkout-summary dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.checkout-summary dd { margin: 0; text-align: right; }
.checkout-total { border-top: 1px solid var(--settings-line); padding-top: 14px; margin-top: 4px; }
.checkout-dialog footer { margin: 0; padding: 16px; }
@media (max-width: 720px) {
  .checkout-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .checkout-columns { grid-template-columns: minmax(0,1fr); grid-auto-rows: max-content; align-content: start; overflow-y: auto; }
  .checkout-card-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkout-card-fields .field:first-child { grid-column: 1 / -1; }
  .checkout-details, .checkout-summary { overflow: visible; padding: 16px; }
  .checkout-section { padding: 16px; }
  .checkout-summary { border-inline-start: 0; border-top: 1px solid var(--settings-line); }
}
.settings-dialog.billing-plans-dialog {
  color-scheme: light;
  width: min(1040px,calc(100% - 28px));
  max-width: none;
  overflow: hidden;
  border-radius: 14px;
}
.billing-plans-dialog[open] ~ .checkout-dialog { color-scheme: light; }
.billing-plans-dialog .modal-box { display: flex; flex-direction: column; max-height: min(810px,calc(100dvh - 34px)); }
.billing-plans-dialog .modal-head { flex: none; padding: 14px 24px; }
.billing-plans-dialog .modal-head .icon-btn { color: var(--settings-muted); }
.billing-plans-dialog .modal-head .icon-btn:hover { background: var(--settings-active); }
.billing-plans-dialog .modal-body {
  min-height: 0; overflow: hidden auto; scrollbar-width: none; overscroll-behavior: contain;
  padding: 24px; background: var(--settings-well);
}
.billing-plans-dialog .modal-body::-webkit-scrollbar { display: none; }
.billing-plans-dialog .billing-plans { display: grid; gap: 16px; }
.billing-plan-message { width: min(100%,420px); margin-inline: auto; }
.billing-plan-message { color: var(--settings-muted); text-align: center; }
@media (min-width: 768px) {
  .account-shell { margin: 8px; height: calc(100dvh - 16px); grid-template-columns: min(26vw,280px) minmax(0,1fr); border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--settings-line); }
  .profile-fields .field { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,min(50%,358px)); align-items: start; gap: 16px; }
}
@media (max-width: 767px) {
  .account-shell .account-panel { border: 0; }
  .account-rail nav { display: flex; gap: 4px; }
  .settings-head #workspace-label { display: none; }
  .account-content { padding: 20px 16px; }
  .account-shell .account-rail { border-bottom: 1px solid var(--settings-line); }
}
@media (max-width: 639px) {
  .billing-plans-dialog :is(.modal-head,.modal-body) { padding-inline: 16px; }
}
.dashboard .work-panel { margin: 0; border: 0; border-radius: 0; box-shadow: none; background: var(--ws-base); }
.dashboard .work-panel #screen { padding: 32px clamp(24px,4.45vw,72px) 48px; }
.ws-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.ws-heading h1 { font-size: 25px; font-weight: 600; line-height: 32px; letter-spacing: -.025em; margin: 0; }
.ws-heading p { color: var(--ws-quiet); margin: 0; line-height: 20px; }
.ws-heading-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; min-width: 0; max-width: 100%; }
.ws-section { margin-block-start: 32px; }
.ws-primary, .ws-secondary, .ws-delete {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 32px; padding: 4px 14px;
  font-weight: 500; line-height: 20px; border: 1px solid #ff7171; border-radius: 10px; color: white;
  background: linear-gradient(#d73f3f,#b53636); box-shadow: inset 0 0 0 1px #ffffff24, 0 1px 3px #0003;
}
.ws-secondary:hover { text-decoration: none; }
.ws-primary:disabled { background: light-dark(#e9eaee,#34333a); color: light-dark(#666b75,#96959a); opacity: 1; border-color: var(--ws-line); box-shadow: none; }
.ws-filters { display: inline-flex; max-width: 100%; overflow-x: auto; background: var(--ws-subtle); padding: 4px; border: 1px solid var(--ws-divider); border-radius: 10px; margin: 32px 0; }
.ws-filters button { min-height: 30px; padding: 4px 12px; border-radius: 6px; color: var(--ws-quiet); white-space: nowrap; }
.ws-filters, .plan-period { isolation: isolate; }
.ws-filters button, .plan-period span { position: relative; }
.ws-filters button[aria-pressed="true"] { color: var(--ws-text); }
.selection-indicator {
  position: absolute; inset: 0; pointer-events: none; z-index: -1; border-radius: inherit;
  background: var(--ws-card, var(--settings-panel)); box-shadow: 0 0 6px #0000000a, 0 2px 4px #00000029;
  transform-origin: left center;
}
.ws-filters span { display: inline-block; margin-left: 4px; padding: 0 5px; font-size: 11px; border-radius: 4px; background: light-dark(#e7e9ee,#ffffff16); }
.ws-results { display: grid; gap: 16px; }
.ws-link-card, .ws-empty { padding: 24px; border: 1px solid var(--ws-line); border-radius: 20px; background: var(--ws-card); }
.ws-link-card { position: relative; display: flex; align-items: center; gap: clamp(16px,2.2vw,32px); min-height: 128px; }
.ws-identity h2 a { color: inherit; text-decoration: none; }
.ws-identity h2 a::after { content: ''; position: absolute; inset: 0; border-radius: 20px; }
.ws-identity h2 a:focus-visible::after { outline: 2px solid var(--ws-text); outline-offset: 2px; }
.ws-link-card:hover { border-color: light-dark(#010101,#868686); }
.ws-inline-actions > button, .ws-card-tools > * { position: relative; z-index: 1; }
.ws-layout-art { flex: none; width: 60px; height: 60px; box-sizing: border-box; padding: 4px; object-fit: contain; border: 1px solid var(--ws-divider); border-radius: 12px; background: #fff; }
:root[data-workspace-theme="dark"] .ws-layout-art {
  border-color: transparent;
  filter: grayscale(1) invert(1) brightness(.9);
  mix-blend-mode: screen;
}
.ws-link-info { display: grid; grid-template-columns: minmax(0,120px) minmax(0,180px) auto; gap: clamp(16px,4.45vw,64px); align-items: center; flex: 1; min-width: 0; min-height: 78px; border-left: 1px solid var(--ws-line); padding-left: clamp(16px,2.2vw,32px); }
.ws-identity, .ws-meta { display: grid; align-content: center; gap: 20px; min-width: 0; }
.ws-identity h2 { font-size: 15px; font-weight: 600; line-height: 21px; margin: 0; overflow-wrap: anywhere; }
.ws-link-status, .ws-inline-actions button { display: inline-flex; align-items: center; justify-self: start; gap: 8px; padding: 0; }
.ws-link-status { gap: 6px; color: var(--ws-quiet); font-size: 13px; }
.ws-link-status::before { content: ''; width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 50%; }
.ws-link-status[data-live="true"] { color: light-dark(#266748,#92d3a9); }
.ws-link-status[data-live="true"]::before { background: currentColor; }
.ws-meta small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ws-quiet); font-size: 13px; }
.ws-inline-actions { justify-self: start; position: relative; display: grid; }
.ws-inline-actions button { gap: 9px; padding: 1px 8px; border-radius: 10px; min-height: 32px; font-size: 14px; font-weight: 500; color: var(--ws-quiet); }
.ws-inline-actions button:hover { background: light-dark(#f0f1f4,#ffffff0b); }
.ws-inline-actions img, .ws-card-tools img { width: 15px; height: 15px; object-fit: contain; }
.ws-card-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ws-secondary { color:var(--ws-text); background: linear-gradient(light-dark(#fff,#374151),light-dark(#f1f2f5,#1e2736)); border-color: var(--ws-divider); }
.ws-delete { width: 32px; padding: 0; background: var(--ws-rail); border-color: #f87171; box-shadow: 0 1px 3px #0003; }
.ws-inline-actions img, .ws-card-tools img { transform: scaleY(-1); }
.ws-empty { color: var(--ws-quiet); }
.ws-empty h2 { margin: 0; color: var(--ws-text); font-size: 16px; font-weight: 600; line-height: 22px; overflow-wrap: anywhere; }
.ws-empty p { margin: 4px 0 0; }
.ws-empty .ws-secondary { margin-block-start: 16px; }
.dashboard .workspace-starter { margin-top: 16px; }
.ws-dialog { width: 502px; max-width: calc(100vw - 28px); background: var(--ws-card); border: 1px solid var(--ws-line); border-radius: 10px; overflow: auto; }
.ws-dialog::backdrop { background: #0006; }
.ws-dialog .modal-head { padding: 16px 16px 0; gap: 12px; }
.ws-dialog .modal-head h2 { font-size: 18px; line-height: 24px; font-weight: 600; margin: 0; }
.ws-dialog .modal-body { padding: 16px; }
.ws-dialog .modal-body form { gap: 24px; }
.ws-dialog .modal-body .ws-form { display: grid; gap: 16px; }
.ws-form > p { color: var(--ws-quiet); }
.ws-dialog:has(.ws-link-form) .modal-head { padding-left: 46px; position: relative; }
.ws-dialog:has(.ws-link-form) .modal-head::before { content: ''; position: absolute; left: 16px; top: 30px; width: 17px; height: 17px; background: url('/assets/workspace/copy-link.svg') center / contain no-repeat; }
.ws-dialog:has(.ws-link-form) .modal-body { padding-top: 0; }
.ws-dialog-intro { margin: -2px 0 0; padding: 0 0 22px 30px; border-bottom: 1px solid var(--ws-line); color: var(--ws-quiet); line-height: 20px; }
.ws-dialog label { display: grid; gap: 8px; font-size: 14px; }
.ws-dialog input, .ws-address { height: 36px; width: 100%; border: 1px solid var(--ws-line); padding: 0 10px; background: var(--ws-base); color: var(--ws-text); border-radius: 8px; }
.ws-dialog textarea, .ws-dialog .status-select select, #inquiry-equipment {
  min-height: 36px; border: 1px solid var(--ws-line); border-radius: 8px; background: var(--ws-card); color: var(--ws-text);
}
.ws-dialog textarea { background: var(--ws-base); }
.ws-dialog :is(input:not([type='checkbox'],[type='radio'],[type='file']),textarea):focus { outline: none; box-shadow: none; }
.ws-dialog.inquiry-dialog {
  --inquiry-gutter: clamp(18px, 4vw, 32px);
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(600px, 100%);
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  border-width: 0 0 0 1px;
  border-radius: 0;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.ws-dialog.inquiry-dialog .modal-head {
  position: sticky;
  inset-block-start: 0;
  z-index: 1;
  padding: 20px var(--inquiry-gutter);
  border-bottom: 1px solid var(--ws-divider);
  background: var(--ws-card);
}
.inquiry-dialog .modal-head .icon-btn { flex: none; }
.ws-dialog.inquiry-dialog .modal-head h2 { font-size: 22px; line-height: 1.3; }
.ws-dialog.inquiry-dialog .modal-body { padding: 20px var(--inquiry-gutter) 36px; }
.inquiry-dialog .inquiry-dialog-details { gap: 0; }
.inquiry-dialog .inquiry-card-header { margin-bottom: 20px; }
.inquiry-dialog .inquiry-card-meta { display: grid; gap: 3px; }
.inquiry-dialog .inquiry-detail-panel {
  padding: 22px 0;
  border: 0;
  border-bottom: 1px solid var(--ws-divider);
  border-radius: 0;
  background: transparent;
  gap: 8px;
}
.inquiry-dialog .inquiry-detail-panel h3 { font-size: 14px; color: var(--ws-text); }
.inquiry-dialog .inquiry-contact-links { display: grid; justify-items: start; gap: 5px; }
.inquiry-dialog .inquiry-contact-links a { padding: 0; border: 0; background: transparent; }
.inquiry-dialog .inquiry-contact-links a:hover, .inquiry-source-link:hover { text-decoration: underline; }
.inquiry-source-link { display: inline-flex; gap: 6px; align-items: baseline; }
.inquiry-deal-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 20px;
  margin: 0;
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--ws-subtle, var(--field));
}
.inquiry-deal-summary > div:last-child { text-align: end; }
.inquiry-deal-summary dt { margin-bottom: 5px; font-size: 12px; color: var(--ws-quiet, var(--muted)); }
.inquiry-deal-summary dd { margin: 0; font-size: 16px; font-weight: 600; }
.inquiry-deal-summary dd.inquiry-detail-muted { margin-top: 4px; font-size: 13px; font-weight: 400; }
.inquiry-message-body { margin: 0; white-space: pre-wrap; font-size: 15px; line-height: 1.6; }
.inquiry-disclosure { border-bottom: 1px solid var(--ws-divider, var(--edge)); }
.inquiry-disclosure > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  list-style: none;
  cursor: pointer;
  font-weight: 600;
}
.inquiry-disclosure > summary::-webkit-details-marker { display: none; }
.inquiry-disclosure > summary svg { color: var(--ws-quiet); }
.inquiry-disclosure[open] > summary svg { transform: rotate(180deg); }
.inquiry-disclosure > :is(dl, div) { display: grid; gap: 16px; margin: 0; padding: 0 0 20px; }
.inquiry-disclosure :is(dd, p, h4, ul) { margin: 0; }
.inquiry-disclosure dt { margin-bottom: 4px; color: var(--ws-quiet, var(--muted)); font-size: 13px; }
.inquiry-disclosure .inquiry-submission > div { padding: 0; border: 0; }
.ws-dialog .inquiry-card-header .status-select { display: flex; }
.ws-address { display: flex; align-items: center; gap: 4px; color: var(--ws-quiet); }
.ws-address .setup-mark { width: 16px; height: 16px; margin-right: 4px; border-radius: 4px; }
.ws-address input { height: 100%; flex: 1; border: 0; background: transparent; padding: 0; }
.ws-link-form small { color: light-dark(#aa292e,#ff9898); margin-top: -16px; }
.ws-trial-note { margin: 0; color: var(--ws-quiet); }
.ws-dialog footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--ws-line); padding-top: 16px; }
.ws-cancel { padding: 6px 8px; }
.teammate-form .field + .field { margin-block-start: 0; }
.teammate-form .field > span { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.teammate-form .field small { color: var(--ws-quiet); font-weight: 400; }
.ws-dialog .teammate-form .field :is(input:not([type="file"]),textarea) {
  background: var(--ws-base);
  border-color: var(--ws-line);
  color: var(--ws-text);
  font-weight: 400;
}
.ws-dialog .teammate-form footer { justify-content: flex-end; gap: 8px; }
@media (min-width: 761px) {
  .dashboard.ws-collapsed { grid-template-columns: 60px minmax(0,1fr); }
  .ws-collapsed .ws-brand, .ws-collapsed .rail nav span, .ws-collapsed .rail nav small,
  .ws-collapsed .ws-account summary > span:not(.portrait), .ws-collapsed .ws-account summary > svg:last-child { display: none; }
  .ws-collapsed .rail-head, .ws-collapsed .rail nav a, .ws-collapsed .ws-account summary { justify-content: center; }
  .ws-collapsed .ws-collapse svg { transform: rotate(180deg); }
}

/* Workspace chrome and its top-layer dialogs share a palette. Sponsor canvases have their own design. */
:root[data-workspace-theme="light"]:has(#app > :is(.dashboard,.account-shell)) {
  color-scheme: light;
  --ink: #20232c;
  --body: #454a56;
  --muted: #606573;
  --dim: #686e7a;
  --line: #d7dae1;
  --edge: #e2e4e9;
  --bg: #fafafb;
  --panel: #fff;
  --field: #fff;
  background: var(--bg);
  color: var(--ink);

  & :is(dialog, .flyout, .model-choice, .equipment-card, .links-table, .inquiry-row, .workspace-starter) {
    color: var(--ink); background: var(--panel); border-color: var(--line);
  }
  & :is(.card-photo, .choice-photo, .request-model, .success-icon) { background-color: #f1f2f5; }
  & :is(.flyout > :hover, .rail-bottom :is(a,button):hover) { background: #e7e9ee; }
  & :is(.links-tr:hover, .model-choice:hover) {
    background: #f4f5f8;
  }
  & :is(.links-tr, .social-group, .empty, .athlete-social-links a) {
    border-color: var(--line);
  }
  & :is(.link-summary small, .benefit-list, .duration-options legend, .duration-options button,
    .post-caption, .social-group p, .welcome-scroll > p) { color: var(--muted); }
  & :is(.btn,.sq,.icon-btn,.duration-options button) { background: var(--field); color: var(--ink); border-color: var(--line); }
  & :is(.btn,.sq,.icon-btn,.athlete-social-links a,.duration-options button):hover { background: #e9ebef; }
  & .btn.primary, & .duration-options button[aria-pressed="true"] { background: #272a33; color: white; border-color: #272a33; }
  & .btn.primary:hover { background: #414550; }
  & .reference-icon, & .ws-inline-actions img, & .ws-secondary img { filter: brightness(0) opacity(.76); }
  & .btn.primary .reference-icon { filter: brightness(0) invert(1); }
  & .form-error { color: #99212b; background: #fff0f1; }
  & .equipment-picker-fields .choice-photo { background-image: radial-gradient(circle,#d2d4da 1px,transparent 1px); }
  & input:is([type=radio],[type=checkbox]) { accent-color: #394150; }

}
@media (min-width: 761px) and (max-width: 1180px) {
  .dashboard { grid-template-columns: 216px minmax(0,1fr); }
  .dashboard .work-panel #screen { padding-inline: 24px; }
}
@media (max-width: 1050px) {
  .ws-link-info { grid-template-columns: minmax(0,1fr) auto; }
  .ws-meta { grid-column: 1; grid-row: 2; }
  .ws-identity, .ws-meta { gap: 4px; }
  .ws-inline-actions { grid-row: 1 / span 2; grid-column: 2; }
}
@media (max-width: 760px) {
  .dashboard .rail-head { padding-inline: 16px; }
  .ws-collapse { display: none; }
  .ws-account-menu { top: 100%; bottom: auto; }
  .dashboard .work-panel #screen { padding: 24px 16px; }
  .ws-heading { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
  .ws-heading-actions { justify-content: flex-start; }
  .ws-section { margin-block-start: 24px; }
  .ws-filters { margin: 24px 0; }
  .ws-link-card { display: grid; grid-template-columns: 60px minmax(0,1fr); gap: 16px; padding: 16px; }
  .ws-link-info { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-left: 14px; }
  .ws-identity, .ws-meta { gap: 4px; max-width: 100%; }
  .ws-card-tools { grid-column: 1 / -1; }
}
/* Measurements from the Lemcal meeting-type editor, in CSS pixels. */
.account-shell.opp-manager {
  display: grid; grid-template-columns: clamp(196px,18.5vw,280px) minmax(0,1fr);
  grid-template-rows: auto minmax(0,1fr); height: 100dvh; margin: 0; border-radius: 0; overflow: hidden;
}
.opp-top { grid-column: 1/-1; display: flex; align-items: center; gap: 16px; min-height: 64px; padding-right: 16px; border-bottom: 1px solid var(--settings-line); }
.opp-top > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.opp-close { display: grid; place-items: center; width: 63px; align-self: stretch; flex: none; border-right: 1px solid var(--settings-line); color: var(--settings-muted); }
.opp-visibility { display: inline-flex; position: relative; align-items: center; }
.opp-visibility svg { position: absolute; z-index: 1; pointer-events: none; inset-inline-start: 9px; }
.opp-visibility svg:last-child { inset-inline-start: auto; inset-inline-end: 9px; }
.opp-visibility select { appearance: none; min-width: 110px; padding-inline: 32px; cursor: pointer; }

/* Give native option lists their own opaque surface, including in workspace dialogs. */
:is(.dashboard,.account-shell,.ws-dialog,.settings-dialog) select option {
  background-color: light-dark(#fff,#222126);
  color: light-dark(#1f2937,#f3f4f6);
}
@supports (appearance: base-select) {
  :is(.dashboard,.account-shell,.ws-dialog,.settings-dialog) select:not([multiple],[size]),
  :is(.dashboard,.account-shell,.ws-dialog,.settings-dialog) select:not([multiple],[size])::picker(select) {
    appearance: base-select;
  }
  :is(.dashboard,.account-shell,.ws-dialog,.settings-dialog) select::picker(select) {
    margin-block: 4px;
    padding: 4px;
    border: 1px solid light-dark(#dedee2,#424148);
    border-radius: 10px;
    background: light-dark(#fff,#222126);
    color: light-dark(#1f2937,#f3f4f6);
    box-shadow: 0 4px 16px rgb(0 0 0 / 16%);
    font: inherit;
  }
  :is(.dashboard,.account-shell,.ws-dialog,.settings-dialog) select option {
    padding: 6px 10px;
    border-radius: 6px;
    font: inherit;
    cursor: pointer;
  }
  :is(.dashboard,.account-shell,.ws-dialog,.settings-dialog) select option:is(:hover,:focus-visible,:checked) {
    background-color: light-dark(#f0f1f4,#35343b);
  }
  :is(.opp-visibility,.inquiry-select) select::picker-icon { display: none; }
}
.opp-tools > .settings-button, .opp-panel :is([data-add],[data-add-question]) {
  border: 1px solid transparent; border-radius: 10px; background: transparent; box-shadow: none;
  color: light-dark(#5a6472,#c0c2ca); font: 500 14px/20px var(--font-ui);
  min-height: 32px; gap: 9px; padding: 1px 8px;
}

.opp-tools > .settings-button:disabled { opacity: .5; }
.opp-panel .question-rows { color: var(--settings-ink); background: var(--settings-panel); border-color: var(--settings-line); border-radius: 10px; }
.opp-panel .question-row { padding: 10px 12px; border-color: var(--settings-line); }
.opp-panel .question-row small { color: var(--settings-muted); }
.opp-panel .settings-button[hidden] { display: none; }
.opp-tools { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.opp-manager > nav { padding: 16px; border-right: 1px solid var(--settings-line); }
.opp-manager > nav a { display: flex; align-items: center; gap: 16px; min-height: 41px; padding: 10px 20px; border-radius: 8px; color: inherit; }
.opp-manager a:hover { text-decoration: none; }
.opp-close:hover { background: var(--settings-active); }
.opp-manager > main { min-width: 0; overflow: auto; padding: 32px clamp(20px,4.5vw,64px); }
.opp-panel { max-width: 650px; }
.opp-panel > header { margin-bottom: 24px; }
.opp-panel h1 { font: 600 16px/20px var(--font-ui); letter-spacing: normal; margin: 0; }
.opp-panel header p { margin: 4px 0 0; color: var(--settings-label); }
.opp-panel form { display: grid; gap: 24px; justify-items: start; }
.opp-panel .field { display: grid; gap: 4px; width: 100%; margin: 0; font: 500 12px/14px var(--font-ui); color: var(--settings-label); }
#app .opp-panel :is(input,textarea), .opp-address {
  box-sizing: border-box; min-width: 0; width: 100%; padding: 5px 11px; border-radius: 10px; border: 1px solid var(--settings-input-line);
  font: 400 14px/20px var(--font-ui); color: var(--settings-ink); background: var(--settings-panel); box-shadow: none;
}
#app .opp-panel input { height: 32px; }
#app .opp-panel textarea { padding: 9px 11px; min-height: 120px; resize: vertical; }
.opp-address { display: flex; align-items: center; gap: 6px; padding: 0 6px; }
.opp-address > span { display: inline-flex; align-items: center; gap: 6px; background: var(--settings-active); color: var(--settings-muted); font-size: 13px; padding: 1px 6px; border-radius: 4px; overflow-wrap: anywhere; }
#app .opp-panel .opp-address input { flex: 1; border: 0; min-width: 5em; padding-inline: 4px; }
#app .opp-panel :is(input,textarea):focus, .opp-address:focus-within { outline: 1px solid var(--settings-muted); outline-offset: -1px; }
#app .opp-panel .opp-address input:focus { outline: 0; }
.opp-packages { display: grid; gap: 8px; margin-bottom: 16px; }
.opp-package { display: flex; align-items: center; gap: 6px; padding: 12px; border: 1px solid var(--settings-line); border-radius: 10px; }
.opp-package > div { margin-right: auto; }
.opp-package small { display: block; color: var(--settings-muted); }
.opp-address .setup-mark { width: 16px; height: 16px; border-radius: 4px; flex: none; }
.opp-panel [data-questions] { margin-top: 24px; }
.opp-question-editor { padding: 24px; border: 1px solid var(--settings-line); border-radius: 10px; background: var(--settings-panel); }
.opp-question-editor form { gap: 16px; }
.opp-question-editor .field select { height: 32px; padding-inline: 10px; color: var(--settings-ink); background: var(--settings-panel); border: 1px solid var(--settings-input-line); border-radius: 10px; }
#app .opp-question-editor input[type=checkbox] { width: 16px; height: 16px; }
.opp-question-editor .question-actions { display: flex; gap: 8px; justify-self: end; }
@media (max-width: 700px) {
  .account-shell.opp-manager { grid-template-columns: minmax(0,1fr); grid-template-rows: auto auto minmax(0,1fr); }
  .opp-top { gap: 8px; padding: 8px 12px; flex-wrap: wrap; }
  .opp-close { width: 32px; min-height: 32px; border: 0; }
  .opp-tools { flex-wrap: wrap; margin: 0; width: 100%; }
  .opp-manager > nav { display: flex; gap: 4px; padding: 8px; border: 0; border-bottom: 1px solid var(--settings-line); }
  .opp-manager > nav a { gap: 5px; padding: 8px; white-space: nowrap; }
  .opp-manager > main { padding: 22px 16px; }
}

/* Interaction colors from the Lemcal workspace button and navigation components. */
:is(.dashboard,.account-shell,.settings-dialog,.ws-dialog) {
  --action-hover: light-dark(#f9fafb,#1f2937);
  --action-pressed: light-dark(#f3f4f6,#374151);
  --action-surface: light-dark(#fff,#111827);
  --action-border-hover: light-dark(#1f293726,#f3f4f626);
  --action-border-pressed: light-dark(#1f293740,#f3f4f640);
  --action-brand: light-dark(#ff4d4d,#d33e3e);
  --action-brand-hover: light-dark(#d33e3e,#ff4d4d);
  --action-brand-pressed: light-dark(#a72e2e,#ff7171);
}
:is(.ws-secondary,.settings-button):not(.primary,:disabled):hover {
  background: linear-gradient(0deg,var(--action-pressed),var(--action-surface));
  border-color: var(--action-border-hover);
}
:is(.ws-secondary,.settings-button):not(.primary,:disabled):active { border-color: var(--action-border-pressed); }
.ws-primary:enabled:hover, .settings-button.primary:enabled:hover::before {
  background: linear-gradient(0deg,var(--action-brand) -12%,var(--action-brand-pressed));
}
.ws-primary:enabled:active, .settings-button.primary:enabled:active::before {
  background: linear-gradient(0deg,var(--action-brand-hover) -15%,var(--action-brand-pressed));
}
.ws-delete:enabled:hover { background: light-dark(#fef2f2,#991b1b); border-color: light-dark(#dc2626,#fee2e2); }
.ws-delete:enabled:active { background: light-dark(#fee2e2,#b91c1c); border-color: light-dark(#b91c1c,#fef2f2); }
.opp-tools > .settings-button, .opp-panel :is([data-add],[data-add-question]),
.ws-inline-actions button, .ws-cancel, .settings-icon-button, .settings-close, .opp-close {
  &:not(:disabled):hover { background: var(--action-hover); border-color: transparent; }
  &:not(:disabled):active { background: var(--action-pressed); border-color: transparent; }
}
.dashboard .rail nav a:hover, .opp-manager > nav a:hover { background: light-dark(#f6f7f8,#1f2937); }
.dashboard .rail nav a:active, .opp-manager > nav a:active, .account-rail nav a:active,
.billing-tabs a:active, .ws-account-menu a:active { background: var(--action-pressed); }
.dashboard .rail nav a[aria-current="page"],
.opp-manager > nav a[aria-current="page"] {
  background: var(--ws-hover);
  box-shadow: inset 0 0 0 1px var(--ws-line);
  font-weight: 600;
}
.ws-account summary:active { background: var(--action-pressed); }
#app .opp-panel :is(input,textarea):enabled:not(:focus,[aria-invalid=true]):hover,
.opp-address:hover:not(:focus-within), .ws-address:hover:not(:focus-within),
:is(.ws-dialog,.settings-dialog,.profile-fields) :is(input,textarea):enabled:not(:focus,[aria-invalid=true]):hover {
  border-color: light-dark(#b7bec6,#868686);
}

@media (prefers-reduced-motion: no-preference) {
  .ws-filters button, .plan-period span, .ws-appearance-option { transition: color 200ms ease-in-out; }
  .ws-appearance-options::before { transition: transform 200ms cubic-bezier(.4,0,.2,1); }
  .dashboard :is(.ws-account,.menu)::details-content { transition: content-visibility 250ms allow-discrete; }
  .dashboard :is(.ws-account-menu,.flyout) {
    --menu-shift: -5px;
    opacity: 0; transform: translateY(var(--menu-shift)); pointer-events: none;
    transition: transform 250ms ease-in-out, opacity 250ms ease-in-out;
  }
  .dashboard .ws-account-menu { --menu-shift: 5px; }
  .dashboard details[open] > :is(.ws-account-menu,.flyout) {
    opacity: 1; transform: none; pointer-events: auto; transition-duration: 300ms;
  }
  @starting-style {
    .dashboard details[open] > :is(.ws-account-menu,.flyout) { opacity: 0; transform: translateY(var(--menu-shift)); }
  }
  @supports (appearance: base-select) {
    :is(.dashboard,.account-shell,.ws-dialog,.settings-dialog) select:not([multiple],[size])::picker(select) {
      opacity: 0; transform: translateY(-5px); pointer-events: none;
      transition: opacity 250ms ease-in-out, transform 250ms ease-in-out, display 250ms allow-discrete, overlay 250ms allow-discrete;
    }
    :is(.dashboard,.account-shell,.ws-dialog,.settings-dialog) select:open::picker(select) {
      opacity: 1; transform: none; pointer-events: auto; transition-duration: 300ms;
    }
    @starting-style {
      :is(.dashboard,.account-shell,.ws-dialog,.settings-dialog) select:open::picker(select) { opacity: 0; transform: translateY(-5px); }
    }
  }
}
