@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bo-font: 'DM Sans', 'Segoe UI', Arial, sans-serif;
  --bo-ink: #102d47;
  --bo-muted: #546779;
  --bo-accent: #167b80;
  --bo-accent-hover: #0e6267;
  --bo-canvas: #f3f7fa;
  --bo-surface: #fff;
  --bo-soft: #edf7f5;
  --bo-line: #dae5eb;
  --bo-success: #287557;
  --bo-danger: #a53035;
  --bo-radius: 12px;
  --bo-control-radius: 8px;
  --bo-rail: 232px;
  font-family: var(--bo-font);
  color: var(--bo-ink);
  background: var(--bo-canvas);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 96px; }
body { margin: 0; min-height: 100vh; font-size: 15px; line-height: 1.55; }
::selection { background: #d5ece7; color: var(--bo-ink); }
a { color: var(--bo-accent-hover); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button, summary, select { cursor: pointer; }
button, .primary, .back-link, .listing-card-actions a { touch-action: manipulation; }
button, input, select, textarea, a, summary { -webkit-tap-highlight-color: transparent; }
:where(a,button,input,select,textarea,summary):focus-visible { outline: 3px solid var(--bo-accent); outline-offset: 3px; }
:where(input,textarea) { caret-color: var(--bo-accent); }
[hidden] { display: none !important; }
h1,h2,h3,h4,p { margin-top: 0; }
h1,h2,h3,h4 { font-family: var(--bo-font); font-style: normal; color: var(--bo-ink); }
h1,h2 { text-wrap: balance; letter-spacing: -.025em; }
h1 { font-size: 30px; line-height: 1.25; font-weight: 700; margin-bottom: 10px; }
h2 { font-size: 20px; line-height: 1.35; margin-bottom: 8px; }
h3 { font-size: 17px; line-height: 1.4; }
p { color: var(--bo-muted); }
.bo-icon { width: 20px; height: 20px; flex: 0 0 auto; display: block; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 20px; background: var(--bo-ink); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.masthead { min-height: 76px; padding: 16px 32px; display: flex; align-items: center; gap: 20px; background: var(--bo-surface); border-bottom: 1px solid var(--bo-line); }
.is-authenticated .masthead { margin-left: var(--bo-rail); }
.brand, .sidebar-brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img,.sidebar-brand img { display: block; width: 180px; height: 42px; object-fit: contain; }
.is-authenticated .masthead > .brand { display: none; }
.masthead-context { display: flex; align-items: center; gap: 12px; color: var(--bo-muted); font-size: 13px; }
.masthead-context > span { color: #8395a5; }
.masthead-context strong { font-weight: 500; color: var(--bo-ink); }
.environment { margin-left: auto; color: var(--bo-muted); font-size: 14px; }
.logout { margin-left: auto; }
.logout button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 12px; color: var(--bo-muted); background: none; border: 1px solid transparent; border-radius: 8px; font-size: 13px; }
.logout button:hover { background: var(--bo-canvas); color: var(--bo-ink); }
.shell { padding: 32px 32px 56px; max-width: 1700px; margin: 0 auto; }
.is-authenticated .shell { margin-left: var(--bo-rail); }
.welcome { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.welcome p { margin: 0; max-width: 70ch; font-size: 14px; }
.welcome-user { display: flex; align-items: center; gap: 10px; flex-shrink: 0; font-size: 13px; }
.welcome-user small { display: block; color: var(--bo-muted); font-size: 12px; }
.avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #dceee8; color: var(--bo-success); font: 600 17px var(--bo-font); }
.workspace, .main-column { min-width: 0; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--bo-rail); padding: 24px 16px 20px; display: flex; flex-direction: column; gap: 26px; background: var(--bo-surface); border-right: 1px solid var(--bo-line); z-index: 50; }
.sidebar-brand { padding-left: 10px; }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 0; color: var(--bo-muted); font-size: 12px; }
.nav-list { display: grid; gap: 6px; margin-top: -12px; }
.nav-list a { min-height: 46px; display: flex; align-items: center; gap: 10px; border-radius: 8px; padding: 10px 12px; color: var(--bo-muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-list a:hover { color: var(--bo-ink); background: var(--bo-canvas); }
.nav-list a.is-active { color: var(--bo-accent-hover); background: var(--bo-soft); font-weight: 700; }
.nav-subnav { margin: -4px 0 4px 30px; padding-left: 10px; border-left: 1px solid var(--bo-line); }
.nav-list .nav-subnav summary { min-height: 44px; display: flex; align-items: center; padding: 7px 10px; border-radius: 8px; color: var(--bo-muted); cursor: pointer; font-size: 14px; }
.nav-list .nav-subnav summary:hover { color: var(--bo-ink); background: var(--bo-canvas); }
.nav-subnav > div { display: grid; gap: 2px; padding-top: 2px; }
.nav-list .nav-subnav a { min-height: 44px; padding: 7px 10px; font-size: 14px; }
.nav-list .nav-subnav a.is-active { background: var(--bo-soft); }
.nav-count { margin-left: auto; border-radius: 6px; padding: 2px 6px; color: var(--bo-accent-hover); background: #dbeee7; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid var(--bo-line); padding: 18px 12px 0; }
.sidebar-settings { display: flex; align-items: center; gap: 10px; min-height: 46px; margin-bottom: 12px; border-radius: 8px; padding: 10px 12px; color: var(--bo-muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.sidebar-settings:hover { color: var(--bo-ink); background: var(--bo-canvas); }
.sidebar-settings.is-active { color: var(--bo-accent-hover); background: var(--bo-soft); font-weight: 700; }
.sidebar-bottom p { margin: 12px 0 0; font-size: 11px; }
.site-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; text-decoration: none; font-size: 13px; font-weight: 500; }
.menu-toggle,.menu-close { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--bo-line); border-radius: 8px; background: #fff; color: var(--bo-ink); }
.menu-backdrop { position: fixed; inset: 0; z-index: 40; border: 0; background: #102d4770; }
.panel { background: var(--bo-surface); border: 1px solid var(--bo-line); border-radius: var(--bo-radius); padding: 24px; margin-bottom: 24px; min-width: 0; }
.api-settings { padding: clamp(18px,3vw,30px); }
.api-settings-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.api-settings-intro p { max-width: 68ch; margin: 0; }
.api-lock-note { flex: 0 0 auto; border: 1px solid var(--bo-line); border-radius: 999px; padding: 6px 11px; color: var(--bo-muted); background: var(--bo-canvas); font-size: 12px; }
.api-credentials-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,340px),1fr)); gap: 18px; }
.api-credential-card { min-width: 0; padding: 22px; border: 1px solid var(--bo-line); border-radius: var(--bo-radius); background: var(--bo-surface); box-shadow: 0 4px 16px #102d4708; }
.api-credential-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.api-credential-heading h2 { margin: 0; }
.api-eyebrow { margin: 0 0 3px; color: var(--bo-muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.api-provider-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 11px; color: var(--bo-accent-hover); background: var(--bo-soft); font-size: 13px; font-weight: 700; }
.api-key-status { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--bo-line); border-radius: 9px; }
.api-status-icon { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 50%; font-size: 15px; font-weight: 700; }
.api-key-status strong,.api-key-status small { display: block; }
.api-key-status strong { font-size: 13px; }
.api-key-status small { margin-top: 2px; font-size: 12px; }
.api-key-status.is-valid { color: #205f47; border-color: #c9e4d5; background: #f1faf4; }
.api-key-status.is-valid .api-status-icon { color: #fff; background: var(--bo-success); }
.api-key-status.is-pending { color: #74511b; border-color: #eadbb8; background: #fffaf0; }
.api-key-status.is-pending .api-status-icon { color: #74511b; background: #f5e8c9; }
.api-key-status.is-empty { color: var(--bo-muted); background: var(--bo-canvas); }
.api-key-status.is-empty .api-status-icon { color: var(--bo-muted); background: #e5edf1; }
.api-credential-hint { min-height: 44px; margin: 14px 0 18px; font-size: 13px; }
.api-credential-form { display: grid; gap: 9px; }
.api-credential-form label { display: block; }
.api-credential-form label span { color: var(--bo-muted); font-weight: 400; }
.api-credential-form input { min-width: 0; }
.api-key-help { min-height: 36px; margin: 0; font-size: 12px; }
.api-credential-form button { width: 100%; }
.api-settings-footnote { margin: 20px 0 0; font-size: 12px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head .hint { margin: 8px 0 0; }
.count { flex-shrink: 0; color: var(--bo-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.hint, small { color: var(--bo-muted); font-size: 13px; line-height: 1.5; }
.hint { margin: 0 0 16px; max-width: 80ch; }
label { display: grid; gap: 8px; color: var(--bo-ink); font-size: 13px; font-weight: 600; min-width: 0; }
label small { font-weight: 400; }
input,select,textarea { width: 100%; max-width: 100%; min-height: 44px; border: 1px solid #c5d6df; border-radius: var(--bo-control-radius); padding: 10px 12px; color: var(--bo-ink); background: var(--bo-surface); font-size: 15px; font-weight: 400; }
input::placeholder,textarea::placeholder { color: #64798a; opacity: 1; }
textarea { line-height: 1.6; resize: vertical; }
input:hover,select:hover,textarea:hover { border-color: #93b2bd; }
input[type=checkbox] { width: 18px; min-height: 18px; height: 18px; flex: 0 0 18px; margin: 0; accent-color: var(--bo-accent); }
input[type=file] { font-size: 13px; padding: 8px; }
input::file-selector-button { font: inherit; color: var(--bo-ink); border: 0; border-radius: 5px; background: var(--bo-canvas); padding: 6px 10px; margin-right: 10px; cursor: pointer; }
button, .back-link, .listing-filters a, .pagination a, .listing-card-actions a { min-height: 44px; border: 1px solid var(--bo-line); border-radius: var(--bo-control-radius); padding: 10px 14px; color: var(--bo-accent-hover); background: var(--bo-surface); font-weight: 600; font-size: 13px; text-decoration: none; }
button { transition: background-color 160ms ease, border-color 160ms ease, transform 120ms ease-out; }
button:active:not(:disabled) { transform: scale(.98); }
button:hover:not(:disabled),.back-link:hover,.pagination a:hover,.listing-filters a:hover { border-color: #95bcb9; background: var(--bo-soft); }
button:disabled { opacity: .55; cursor: not-allowed; }
.primary, button.primary { display: inline-flex; justify-content: center; align-items: center; gap: 14px; min-height: 46px; background: var(--bo-accent); border-color: var(--bo-accent); color: #fff; font-size: 14px; font-weight: 600; padding: 10px 20px; }
.primary:hover:not(:disabled) { background: var(--bo-accent-hover); border-color: var(--bo-accent-hover); }
.listing-filters { display: grid; grid-template-columns: minmax(200px,1fr) minmax(280px,1fr) auto auto; gap: 12px; align-items: end; padding: 18px; background: var(--bo-canvas); border-radius: 10px; margin: 20px 0 16px; }
.filter-options { min-width: 0; }
.filter-options > summary,.creation-tools > summary { display: none; }
.filter-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.creation-tools { min-width: 0; }
.listing-filters a { display: grid; place-items: center; }
.creation-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.csv-tools { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.csv-tools > .grid-form { flex: 1; min-width: 0; grid-template-columns: minmax(0,1fr) auto; margin-top: 0; }
.csv-tools > .button-link { flex: 0 0 auto; }
.csv-tools > .csv-export-form { display: grid; flex: 0 0 360px; grid-template-columns: minmax(150px,1fr) auto; align-items: end; gap: 12px; }
.csv-export-form > button { align-self: end; white-space: nowrap; }
.create-box { min-width: 0; border: 1px solid var(--bo-line); border-radius: 8px; background: var(--bo-surface); margin-bottom: 18px; }
.creation-actions > .create-box { margin-bottom: 0; }
.creation-actions:has(> details[open]) { grid-template-columns: 1fr; }
.create-box summary { padding: 12px 16px; min-height: 46px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--bo-accent-hover); }
.create-box summary:hover { background: var(--bo-soft); }
.create-box[open] > summary { border-bottom: 1px solid var(--bo-line); }
.create-box > :not(summary) { margin: 20px; }
.create-box > .listing-prefill { margin-bottom: 0; }
.listing-grid { display: grid; gap: 0; }
.listing-card { display: grid; grid-template-columns: 48px minmax(180px,1fr) 100px 90px 160px; gap: 16px; align-items: center; padding: 18px 0; border-top: 1px solid var(--bo-line); min-width: 0; }
.listing-card-visual { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; overflow: hidden; color: var(--bo-accent-hover); background: #e5eeef; }
.listing-card-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.listing-card-visual > span { font: 600 15px var(--bo-font); }
.listing-card.is-premium .listing-card-visual { background: #e5f1e9; color: var(--bo-success); }
.listing-card-body { min-width: 0; }
.listing-card-body h3 { font: 600 15px/1.4 var(--bo-font); margin: 0 0 5px; overflow-wrap: anywhere; }
.listing-card-cabinet { margin: 0 0 6px; color: var(--bo-muted); font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.listing-card-location { display: flex; flex-wrap: wrap; column-gap: 12px; row-gap: 2px; margin: 0; color: var(--bo-muted); font-size: 12px; }
.listing-card-location span + span { border-left: 1px solid var(--bo-line); padding-left: 12px; }
.listing-card-status { display: flex; align-items: flex-start; flex-direction: column; gap: 6px; }
.badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 6px; background: #edf1f4; color: #4c6173; font-size: 11px; line-height: 1.5; font-weight: 600; white-space: nowrap; }
.badge.published,.badge.active { background: #e5f1e9; color: #246547; }
.badge.draft { background: #fff3d9; color: #805713; }
.badge.archived,.badge.inactive { background: #fcebed; color: #9a3038; }
.badge.premium { background: #e4f2f2; color: #0e6267; }
.listing-card-date { color: var(--bo-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.listing-card-date span { display: block; font-size: 11px; margin-bottom: 3px; }
.listing-card-actions { display: grid; gap: 8px; align-items: center; }
.listing-card-actions form { margin: 0; min-width: 0; }
.listing-card-actions a, .listing-card-actions .listing-card-duplicate { width: 100%; display: flex; align-items: center; justify-content: flex-start; gap: 8px; padding: 11px 12px; min-height: 44px; border: 1px solid var(--bo-line); border-radius: var(--bo-control-radius); background: var(--bo-surface); color: var(--bo-accent-hover); font: 600 12px/20px var(--bo-font); white-space: nowrap; transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease; }
.listing-card-actions .bo-icon { width: 16px; height: 16px; }
.listing-card-actions a:hover, .listing-card-actions .listing-card-duplicate:hover { background: var(--bo-soft); border-color: var(--bo-accent); }
.listing-card-actions .listing-card-edit { background: var(--bo-accent); border-color: var(--bo-accent); color: var(--bo-surface); }
.listing-card-actions .listing-card-edit:hover { background: var(--bo-accent-hover); border-color: var(--bo-accent-hover); }
.listing-card-actions a:active, .listing-card-actions .listing-card-duplicate:active { transform: scale(.98); }
.premium-profile-editor { padding-top: 24px; }
.profile-editor-block { min-width: 0; padding: 20px; border: 1px solid var(--bo-line); border-radius: 12px; background: #fbfcfd; }
.profile-editor-block > h3 { margin: 0 0 6px; }
.profile-editor-block > .hint { margin: 0 0 16px; }
.profile-domain-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.profile-domain-tabs [role=tab] { min-height: 40px; padding: 8px 12px; }
.profile-domain-tabs [aria-selected=true] { color: #fff; background: var(--bo-accent); border-color: var(--bo-accent); }
.profile-domain-panel { display: grid; gap: 16px; padding: 18px; border-radius: 10px; background: #fff; border: 1px solid var(--bo-line); }
.profile-domain-panel h4 { margin: 0; font-size: 17px; }
.profile-ai-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.profile-ai-actions > span { color: var(--bo-muted); font-size: 12px; }
.profile-hours-day-name { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.profile-subdomain-list { min-width: 0; border: 1px solid var(--bo-line); border-radius: 10px; padding: 14px; }
.profile-subdomain-list legend { padding: 0 8px; font-weight: 600; }
.profile-subdomain-list .domain-options { max-height: 260px; overflow: auto; }
.profile-hours-grid { display: grid; gap: 10px; }
.profile-hours-day { display: grid; grid-template-columns: minmax(120px, .65fr) minmax(0, 2fr); gap: 16px; align-items: center; padding: 12px; border: 1px solid var(--bo-line); border-radius: 9px; background: #fff; }
.profile-hours-day > .check { margin: 0; }
.profile-hours-slots { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.profile-hours-slots label { font-size: 12px; }
.profile-hours-slots input { min-height: 40px; }
.profile-repeat-list { display: grid; gap: 12px; margin-bottom: 12px; }
.profile-repeat-row { display: grid; grid-template-columns: minmax(160px,.7fr) minmax(0,2fr) auto; gap: 12px; align-items: end; padding: 14px; border: 1px solid var(--bo-line); border-radius: 10px; background: #fff; }
.profile-repeat-row > label { min-width: 0; }
.profile-repeat-row .profile-rich-field { min-width: 0; }
.profile-rich-field > span { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; }
.profile-remove-row { min-height: 40px; color: var(--bo-danger); }
.bo-rich-editor { min-width: 0; }
.bo-rich-toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border: 1px solid var(--bo-line); border-bottom: 0; border-radius: 8px 8px 0 0; background: #f5f8fa; }
.bo-rich-toolbar button { min-height: 34px; padding: 5px 10px; font-size: 12px; }
.bo-rich-content { min-height: 110px; padding: 12px; border: 1px solid #c5d6df; border-radius: 0 0 8px 8px; background: #fff; font-size: 14px; font-weight: 400; }
.bo-rich-content:focus { outline: 3px solid #167b8055; outline-offset: 1px; }
.bo-rich-content > :first-child { margin-top: 0; }
.bo-rich-content > :last-child { margin-bottom: 0; }
.profile-custom-row { grid-template-columns: minmax(160px,.7fr) minmax(0,2fr) auto; }
.premium-profile-editor { display: grid; gap: 18px; }
.profile-editor-block { box-shadow: 0 8px 22px rgb(16 45 71 / 4%); }
.profile-domain-panel { gap: 18px; padding: 22px; border-color: #d3e1e8; box-shadow: 0 10px 28px rgb(16 45 71 / 5%); }
.profile-domain-panel h4 { font-size: 20px; color: var(--bo-ink); }
.profile-domain-tabs { padding-bottom: 10px; border-bottom: 1px solid var(--bo-line); }
.domain-specialization-switch { display: flex; align-items: center; gap: 12px; width: fit-content; padding: 12px 16px; border: 1px solid var(--bo-line); border-radius: 10px; background: var(--bo-soft); cursor: pointer; }
.domain-specialization-switch input { width: 20px; height: 20px; accent-color: var(--bo-accent); }
.domain-specialization-switch span { display: grid; gap: 2px; }
.domain-specialization-switch small { color: var(--bo-muted); }
.profile-hours-grid { gap: 8px; overflow-x: auto; }
.profile-hours-day { min-width: 570px; grid-template-columns: 112px 76px minmax(0,1fr); gap: 12px; min-height: 58px; padding: 7px 12px; }
.profile-hours-day-name { font-weight: 650; }
.profile-hours-closed { margin: 0; font-size: 13px; }
.profile-hours-slots { display: flex; align-items: center; gap: 8px; }
.profile-hours-slot { display: flex; align-items: center; gap: 7px; }
.profile-hours-slot label { display: flex; align-items: center; gap: 5px; color: var(--bo-muted); font-size: 12px; }
.profile-hours-slot input { width: 108px; min-height: 36px; padding: 5px 7px; }
.profile-hours-slot > span { color: var(--bo-muted); }
.icon-button { width: 36px; min-width: 36px; height: 36px; border: 1px solid var(--bo-line); border-radius: 50%; background: #fff; color: var(--bo-accent-hover); font-size: 19px; line-height: 1; }
.profile-custom-row { grid-template-columns: 82px minmax(160px,.7fr) minmax(0,2fr) auto; align-items: center; }
.profile-order-controls { display: flex; align-items: center; gap: 3px; }
.profile-order-controls button { min-width: 34px; min-height: 36px; padding: 3px; border: 1px solid var(--bo-line); border-radius: 7px; background: #fff; color: var(--bo-ink); }
.profile-order-controls [data-drag-handle] { cursor: grab; font-size: 20px; }
.profile-order-controls [data-drag-handle]:active { cursor: grabbing; }
[data-sortable-row].is-dragging { opacity: .45; }
.premium-account-control { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: end; padding: 16px; border: 1px solid var(--bo-line); border-radius: 10px; background: #f6fafb; }
.premium-account-control > strong,.premium-account-control > p,.premium-account-control > label { grid-column: 1 / -1; margin: 0; }
.premium-account-control > button { justify-self: start; }
.premium-account-control > [role=status] { align-self: center; }
@media (max-width: 900px) {
  .profile-custom-row { grid-template-columns: 82px minmax(0,1fr); }
  .profile-custom-row > .profile-rich-field,.profile-custom-row > .profile-remove-row { grid-column: 2; }
  .profile-order-controls { grid-row: 1 / span 2; }
}
@media (max-width: 540px) {
  .profile-hours-day { min-width: 520px; }
  .profile-hours-slot input { width: 94px; }
  .profile-custom-row { grid-template-columns: 1fr; }
  .profile-order-controls,.profile-custom-row > .profile-rich-field,.profile-custom-row > .profile-remove-row { grid-column: auto; grid-row: auto; }
}
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 18px; border-top: 1px solid var(--bo-line); padding-top: 20px; margin-top: 12px; color: var(--bo-muted); font-size: 13px; }
.pagination div { display: flex; gap: 10px; }
.pagination a { display: inline-flex; align-items: center; }
.empty { padding: 28px 16px; margin: 16px 0; text-align: center; border-radius: 8px; background: var(--bo-canvas); color: var(--bo-muted); }
.grid-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-top: 20px; }
.grid-form > button { align-self: end; justify-self: start; }
.grid-form .full { grid-column: 1 / -1; }
.identity-row { display: grid; grid-template-columns: minmax(90px, .55fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: end; }
.listing-plan-control { padding: 16px 20px; border: 1px solid var(--bo-line); border-radius: 10px; background: var(--bo-canvas); }
@media (max-width: 540px) { .identity-row { grid-template-columns: 86px minmax(0, 1fr); } .identity-row label:last-child { grid-column: 1 / -1; } }
.form-section { min-width: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; border: 0; border-top: 1px solid var(--bo-line); padding: 22px 0 8px; margin: 8px 0 0; }
.form-section legend { padding: 0 16px 0 0; color: var(--bo-ink); font-size: 17px; font-weight: 600; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; position: sticky; bottom: 0; background: #fff; padding: 16px 0 0; border-top: 1px solid var(--bo-line); z-index: 3; }
.save-feedback { color: var(--bo-muted); font-size: 12px; }
.save-feedback.is-dirty { color: #805713; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 400; line-height: 1.5; }
.alert { padding: 14px 18px; margin-bottom: 24px; border-radius: 8px; color: #246547; background: #e5f1e9; font-size: 14px; }
.alert.error { color: #9a3038; background: #fcebed; }
.user-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; border-top: 1px solid var(--bo-line); }
.user-row > div:first-child { min-width: 0; }
.user-row strong { font-size: 15px; font-weight: 600; }
.user-row p { margin: 5px 0 0; font-size: 13px; overflow-wrap: anywhere; }
.row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; width: min(100%,420px); min-width: 0; }
.account-edit { flex: 1 1 100%; order: 2; width: 100%; min-width: 0; }
.account-edit > summary { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 12px; border: 1px solid var(--bo-line); border-radius: 7px; color: var(--bo-accent-hover); cursor: pointer; font-size: 14px; font-weight: 600; }
.account-edit > summary:hover { background: var(--bo-soft); }
.account-edit[open] { padding: 12px; border: 1px solid var(--bo-line); border-radius: 8px; background: var(--bo-canvas); }
.account-edit[open] > summary { background: var(--bo-surface); }
.account-edit > form.grid-form { gap: 12px; margin-top: 12px; }
.account-security { border-top: 1px solid var(--bo-line); margin-top: 24px; padding-top: 24px; }
.account-security h3 { margin: 0 0 8px; }
.account-security p { margin: 0; font-size: 14px; }
.account-table-wrap { overflow-x: auto; }
.account-table { width: 100%; border-collapse: collapse; text-align: left; }
.account-table th,.account-table td { padding: 16px 14px; border-top: 1px solid var(--bo-line); vertical-align: middle; }
.account-table thead th { color: var(--bo-muted); font-size: 12px; font-weight: 600; }
.account-table tbody th { font-size: 15px; font-weight: 600; }
.account-table tbody th a { color: var(--bo-ink); text-decoration: none; }
.account-table tbody th a:hover { color: var(--bo-accent-hover); text-decoration: underline; }
.account-table tbody td:nth-child(2) { font-size: 16px; font-variant-numeric: tabular-nums; }
.button-link { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 8px 12px; border: 1px solid var(--bo-line); border-radius: 7px; color: var(--bo-accent-hover); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.button-link:hover { background: var(--bo-soft); }
.account-management .create-box { scroll-margin-top: 24px; }
.analytics-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.analytics-card { background: var(--bo-canvas); padding: 20px; border-radius: 10px; min-width: 0; }
.analytics-card span { display: block; color: var(--bo-muted); font-size: 13px; }
.analytics-card strong { display: block; margin-top: 20px; color: var(--bo-accent-hover); font-size: 30px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.listing-stats-page > h3 { margin-top: 28px; margin-bottom: 14px; }
.listing-stats-page > .hint { margin-top: 24px; }
.back-link { flex-shrink: 0; display: inline-flex; align-items: center; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 20px 32px; color: var(--bo-muted); font-size: 12px; }
.is-authenticated .site-footer { margin-left: var(--bo-rail); }
code { color: var(--bo-accent-hover); font-size: 12px; overflow-wrap: anywhere; }
.login-shell { max-width: 1240px; min-height: calc(100vh - 143px); display: grid; grid-template-columns: minmax(0,1fr) minmax(340px,420px); align-items: center; gap: 80px; padding-top: 56px; padding-bottom: 56px; }
.is-login { background: #edf5f2; }
.login-copy h1 { font-size: 40px; line-height: 1.2; letter-spacing: -.035em; margin-bottom: 22px; }
.login-copy > p { max-width: 48ch; font-size: 16px; line-height: 1.65; margin-bottom: 28px; }
.login-features { padding: 0; list-style: none; display: grid; gap: 18px; margin: 0 0 32px; }
.login-features li { display: flex; gap: 12px; align-items: center; color: var(--bo-muted); font-size: 14px; }
.login-features .bo-icon { color: var(--bo-accent); }
.login-return { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-size: 14px; font-weight: 600; }
.login-card { padding: 32px; margin: 0; }
.login-card h2 { font-size: 26px; }
.login-card > p { font-size: 14px; }
.login-card form { display: grid; gap: 22px; margin-top: 28px; }
.login-card .primary { width: 100%; margin-top: 2px; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 86px; }
.password-toggle { position: absolute; top: 1px; right: 1px; min-height: 42px; border: 0; background: transparent; color: var(--bo-accent-hover); padding: 8px 12px; font-size: 12px; }
.login-shell > .alert { grid-column: 1/-1; margin-bottom: -24px; }
@media (min-width: 1700px) { .is-authenticated .shell { max-width: none; } }
@media (max-width: 1199px) {
  :root { --bo-rail: 212px; }
  .shell,.masthead { padding-left: 24px; padding-right: 24px; }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .sidebar-brand { padding-left: 4px; }
  .listing-card { grid-template-columns: 44px minmax(140px,1fr) 92px 160px; gap: 12px; }
  .listing-card-date { grid-column: 2; grid-row: 2; }
  .listing-card-date span { display: inline; margin-right: 4px; }
  .listing-card-status,.listing-card-actions { grid-row: 1 / span 2; }
  .listing-card-status { grid-column: 3; }
  .listing-card-actions { grid-column: 4; }
  .listing-filters { grid-template-columns: minmax(180px,1fr) minmax(240px,1fr); }
  .listing-filters > button { grid-column: 2; justify-self: end; }
  .welcome-user { display: none; }
}
@media (max-width: 1023px) {
  .is-authenticated .masthead,.is-authenticated .shell,.is-authenticated .site-footer { margin-left: 0; }
  .masthead { position: sticky; top: 0; z-index: 30; padding-top: 12px; padding-bottom: 12px; min-height: 68px; }
  .masthead-context { display: none; }
  .is-authenticated .masthead > .brand { display: inline-flex; }
  .brand img { width: 155px; height: 38px; }
  .sidebar { position: static; width: auto; height: auto; border: 1px solid var(--bo-line); border-radius: 12px; margin-bottom: 24px; }
  .sidebar-brand { display: none; }
  .js .menu-toggle,.js .menu-close { display: inline-flex; }
  .js .menu-toggle { order: -1; }
  .js .sidebar { position: fixed; inset: 0 auto 0 0; width: min(300px,calc(100% - 48px)); height: 100dvh; margin: 0; border-radius: 0; padding: 24px 16px; transform: translateX(-100%); visibility: hidden; transition: transform 180ms cubic-bezier(.23,1,.32,1), visibility 180ms; }
  .js .sidebar-brand { display: inline-flex; }
  .js .menu-open .sidebar { transform: translateX(0); visibility: visible; }
  body.menu-open { overflow: hidden; }
  .login-shell { gap: 40px; grid-template-columns: minmax(0,1fr) minmax(310px,400px); }
  .login-copy h1 { font-size: 34px; }
}
@media (max-width: 767px) {
  .shell { padding: 24px 16px 36px; }
  .masthead { padding-inline: 16px; gap: 12px; }
  .logout button { padding: 8px; }
  .logout button span { display: none; }
  .logout button::after { content: ''; }
  h1 { font-size: 26px; }
  .welcome { margin-bottom: 22px; }
  .panel { padding: 20px 16px; }
  .section-head { align-items: flex-start; gap: 12px; flex-wrap: wrap; }
  .section-actions { width: 100%; justify-content: space-between; }
  .csv-tools { align-items: stretch; flex-direction: column; gap: 16px; }
  .csv-tools > .grid-form { grid-template-columns: 1fr; }
  .csv-tools > .grid-form > button,.csv-tools > .button-link { width: 100%; }
  .csv-tools > .csv-export-form { grid-template-columns: 1fr; }
  .csv-tools > .csv-export-form > button { width: 100%; }
  .listing-filters { grid-template-columns: minmax(0,1fr) auto; padding: 14px; gap: 12px; }
  .listing-filters > label:first-of-type { grid-column: 1; grid-row: 1; }
  .listing-filters > button { grid-column: 2; grid-row: 1; }
  .filter-options { grid-column: 1/-1; }
  .filter-options > summary { display: list-item; min-height: 44px; padding: 10px 0; color: var(--bo-accent-hover); font-size: 13px; font-weight: 600; }
  .filter-options .nav-count { margin-left: 6px; }
  .filter-fields { grid-template-columns: 1fr; padding: 6px 0; }
  .creation-tools { border: 1px solid var(--bo-line); border-radius: 8px; margin-bottom: 20px; }
  .creation-tools > summary { display: list-item; padding: 12px 14px; min-height: 46px; color: var(--bo-accent-hover); font-size: 13px; font-weight: 600; }
  .creation-tools > .creation-actions { margin: 12px; }
  .creation-actions { grid-template-columns: 1fr; }
  .listing-card { grid-template-columns: 44px minmax(0,1fr); gap: 10px 12px; padding: 18px 0; }
  .listing-card-visual { width: 44px; height: 44px; }
  .listing-card-status { grid-column: 2; grid-row: auto; flex-direction: row; flex-wrap: wrap; }
  .listing-card-date { grid-column: 2; grid-row: auto; }
  .listing-card-actions { grid-column: 1/-1; grid-row: auto; grid-template-columns: repeat(2, minmax(0,1fr)); margin-top: 6px; }
  .listing-card-actions form, .listing-card-actions > a:only-child { grid-column: 1/-1; }
  .listing-card-actions a, .listing-card-actions .listing-card-duplicate { justify-content: center; }
  .grid-form,.form-section { grid-template-columns: 1fr; }
  input,select,textarea { font-size: 16px; }
  .form-actions { align-items: stretch; flex-direction: column; gap: 10px; padding: 12px 0; }
  .form-actions button { width: 100%; }
  .analytics-grid { grid-template-columns: 1fr 1fr; }
  .user-row { align-items: flex-start; flex-direction: column; gap: 14px; }
  .account-table th,.account-table td { padding: 12px 8px; }
  .account-table .button-link { white-space: normal; }
  .pagination { align-items: flex-start; flex-direction: column; }
  .pagination div { width: 100%; justify-content: space-between; }
  .site-footer { padding: 16px; font-size: 11px; }
  .login-shell { grid-template-columns: 1fr; gap: 24px; padding: 32px 20px; max-width: 520px; }
  .login-copy h1 { font-size: 30px; }
  .login-copy > p { font-size: 15px; margin-bottom: 8px; }
  .login-features { display: none; }
  .login-return { margin-top: 8px; }
  .login-card { padding: 24px; }
  .login-card h2 { font-size: 24px; }
  .login-shell > .alert { margin-bottom: 0; }
}
@media (max-width: 359px) {
  .listing-card-actions { grid-template-columns: minmax(0,1fr); }
  .brand img { width: 125px; }
  .listing-filters { grid-template-columns: minmax(0,1fr) auto; }
  .analytics-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
