/* LAKADO shared design system. Applies to storefront, accounts and creator tools.
   Page-specific layouts live in styles.css and homepage.css; shared visual
   decisions belong here so navigating never changes the site's identity. */
:root {
  --accent: #ed6550;
  --accent-hover: #d84e3b;
  --accent-soft: #fff1ed;
  --ink: #272930;
  --muted: #777c88;
  --line: #e9eaf0;
  --surface: #fff;
  --surface-soft: #f7f8fa;
  --success: #258a73;
  --green: var(--accent);
  --cream: var(--surface-soft);
  --gold: #bd792a;
  --sans: Arial, Helvetica, sans-serif;
  --serif: Georgia, serif;
  --radius: 8px;
  --page-width: 1320px;
  --page-gutter: 42px;
}
body { background: var(--surface); color: var(--ink); font-family: var(--sans); }
h1, h2, h3 { font-family: var(--sans); letter-spacing: -.35px; font-weight: 700; }
h1 { font-size: 32px; line-height: 1.25; }
h2 { font-size: 22px; line-height: 1.4; }
h3 { font-size: 15px; }
p, .muted { color: var(--muted); }
main { max-width: var(--page-width); padding: 0 var(--page-gutter) 56px; }
main.narrow { max-width: var(--page-width); }
main.narrow > :is(form, .prose, .faq-list, .notice) { max-width: 880px; }
.announcement { display: none; }
header { background: var(--surface); border-color: var(--line); }
.header-inner { height: 82px; max-width: var(--page-width); padding: 0 var(--page-gutter); gap: 38px; }
.logo { color: var(--ink); font-weight: 800; letter-spacing: .2px; }
.brand-icon, .brand-dot { color: var(--accent); }
.header-inner nav { font-size: 13px; gap: 28px; }
.header-inner nav a:hover, .header-inner nav a[aria-current=page], .mobile-nav a[aria-current=page] { color: var(--accent); }
.search-box { background: #f4f5f7; border-radius: 24px; padding: 10px 16px; }
.header-actions { font-size: 12px; }
.coin { color: #d58a2c; }
.signin { border: 0; border-radius: 22px; background: var(--accent); color: white; padding: 8px 19px; }
.signin:hover { background: var(--accent-hover); }
.mobile-nav { background: var(--surface); border-color: var(--line); }
.eyebrow { color: var(--accent); font: 600 10px/1.6 var(--sans); letter-spacing: 1.4px; margin-bottom: 12px; }
.page-heading { padding: 36px 0 26px; }
.page-heading h1 { font-size: 32px; margin: 0 0 12px; }
.page-heading p { max-width: 760px; margin-bottom: 0; font-size: 14px; line-height: 1.8; }
.page-heading .eyebrow { color: var(--accent); }
.section-head { margin-bottom: 20px; align-items: center; }
.section-head h1, .section-head h2 { margin: 0; }
.section-head h2, .panel h2 { font-size: 22px; }
.section-head p { margin-top: 5px; color: var(--muted); font-size: 12px; }
.section-head > span { color: var(--muted); font-size: 12px; }
.text-link, .author-link { color: var(--accent-hover); font-size: 12px; }
.text-link:hover, .breadcrumbs a:hover { text-decoration: underline; }
.primary, .secondary { border-radius: 6px; padding: 11px 18px; min-height: 42px; font: 600 12px/1.5 var(--sans); gap: 12px; }
.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: none; }
.secondary { background: var(--surface); border-color: #dcdfe7; color: #555b68; }
.secondary:hover { background: var(--accent-soft); color: var(--accent-hover); border-color: #f1b5a9; }
button:focus-visible, a:focus-visible { outline-color: var(--accent); }
input:focus, textarea:focus, select:focus { outline-color: #efb3a7; border-color: var(--accent); }
.panel { background: var(--surface); border-color: var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 24px; }
.panel p { line-height: 1.8; }
.panel > .primary + .secondary, .panel > .secondary + .primary,
form > button + button { margin-left: 8px; }
input, textarea, select { background: var(--surface); border-color: #dfe2e9; border-radius: 6px; color: var(--ink); font-size: 13px; padding: 11px 12px; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
label { color: #4b505c; font-size: 13px; }
.file-picker { display: flex; align-items: center; position: relative; gap: 12px; border: 1px solid #dfe2e9; border-radius: 6px; padding: 8px; margin: 7px 0 4px; min-height: 46px; }
.file-picker input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.file-picker:focus-within { outline: 2px solid #efb3a7; outline-offset: 1px; }
.file-button { background: var(--surface-soft); color: #555b68; padding: 7px 12px; border: 1px solid var(--line); border-radius: 4px; flex-shrink: 0; font-size: 12px; }
.file-name { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fine { color: var(--muted); }
.form-grid { gap: 20px; }
.form-grid > *, .filter-bar > *, .info-grid > *, .checkout-grid > * { min-width: 0; }
.notice { background: #f1f5fd; border-color: #e0e7f4; color: #506484; border-radius: var(--radius); }
.notice p { color: inherit; }
.empty { background: var(--surface-soft); border-color: #dce0e8; border-radius: var(--radius); }
.empty > span { color: var(--accent); }
.empty p { max-width: 460px; margin-left: auto; margin-right: auto; }
.pill { background: #eaf6f1; color: var(--success); border-radius: 4px; }
.pill.subtle { color: var(--muted); background: transparent; }

/* A single book-card component, including recommendations and personal shelves. */
.book-grid { gap: 28px 24px; }
.book-card { min-width: 0; }
.book-card .cover-wrap { border-radius: 5px; box-shadow: 1px 3px 9px #19203218; }
.book-card .cover { aspect-ratio: 2/3; }
.book-card h3 { font: 600 12px/1.5 var(--sans); letter-spacing: 0; min-height: 36px; margin: 8px 0 5px; color: var(--ink); }
.book-card > small { font: 10px/1.4 var(--sans); letter-spacing: 0; text-transform: none; margin: 10px 0 0; color: var(--muted); }
.book-card p { font: 10px/1.5 var(--sans); color: var(--muted); margin: 0 0 8px; }
.book-card .book-meta { font: 10px/1.5 var(--sans); color: var(--muted); gap: 7px; flex-wrap: wrap; }
.book-meta span:first-child { color: #c58231; }
.complete { background: #2eaa8f; font-size: 6px; letter-spacing: .2px; border: 0; left: 0; top: 10px; border-radius: 0 3px 3px 0; padding: 4px 6px; }
.catalog { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.filter-bar { background: var(--surface-soft); padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.filter-bar input, .filter-bar select { margin-top: 0; }
.filter-bar select { width: 175px; }
.result-count { color: var(--muted); margin: 22px 0; }
.pagination { margin-top: 36px; color: var(--muted); }
.category-grid { gap: 24px; }
.category-tile { background: #fff4ef; border-color: #f6e5dd; border-radius: var(--radius); padding: 28px; }
.category-tile:nth-child(2n) { background: #f3f2fc; border-color: #e9e6f6; }
.category-tile:nth-child(3n) { background: #eff6fa; border-color: #e1edf4; }
.category-tile > span { color: var(--accent); }
.category-tile h2 { font-size: 22px; }
.category-tile b { color: #64697a; font-weight: 500; }
.category-tile:hover { transform: translateY(-2px); border-color: #edb4a9; }
.author-card { background: #fafafb; border-color: var(--line); border-radius: var(--radius); }
.author-card > span:last-child { color: var(--accent-hover); }
.avatar { background: #f7ddd5; color: #a75d4c; font-family: var(--sans); }
.avatar.color1 { background: #e6e0f5; color: #73629b; }
.avatar.color2 { background: #daeaf1; color: #52778b; }
.avatar.color3 { background: #f5e7cf; color: #977544; }
.author-bio { background: var(--surface-soft); }

/* Story detail keeps the same card language with a more generous synopsis. */
.breadcrumbs { color: var(--muted); padding: 25px 0; overflow-wrap: anywhere; }
.novel-hero { background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius); grid-template-columns: 210px minmax(0,1fr); gap: 36px; padding: 30px; }
.novel-hero > .cover { border-radius: 5px; box-shadow: 2px 8px 20px #25293a20; }
.novel-hero h1 { font-size: 32px; margin: 14px 0; }
.novel-hero small, .novel-stats { color: var(--muted); }
.novel-stats { flex-wrap: wrap; gap: 12px 24px; }
.novel-stats span:first-child { color: #bf7b2b; }
.tags { flex-wrap: wrap; }
.tags span { border-color: #e1e3ea; color: #737986; background: white; border-radius: 4px; }
.hero-buttons { flex-wrap: wrap; }
.detail-columns { grid-template-columns: minmax(0,2fr) minmax(260px,1fr); gap: 24px; margin-top: 28px; }
.chapter-row { font-size: 13px; }
.chapter-row:hover { color: var(--accent-hover); background: #fff9f7; }
.chapter-row small, .chapter-row > span:last-child { color: var(--muted); }
.chapter-row > span:first-child { min-width: 0; }

/* Reader controls use the platform system; prose keeps its reading preferences. */
main.reader { max-width: none; padding: 0 0 56px; }
.reader-top { max-width: var(--page-width); padding: 20px var(--page-gutter); }
.reader-top > a { color: inherit; }
.reading-page h1 { font-family: var(--serif); font-size: 34px; font-weight: 500; letter-spacing: -.5px; }
.reading-page .eyebrow { color: inherit; opacity: .65; }
.reading-byline { color: inherit !important; opacity: .6; }
.reading-progress { background: #e5ded2; }
.reading-progress i { background: var(--accent); }
.reader.night { background: #1d2028; color: #dce0e8; }
.reader.night .secondary { color: #dce0e8; background: #282d37; border-color: #484e5c; }
.reader.night .reading-progress { background: #343a46; }
.reader.night .locked { border-color: #484e5c; }
.reader.night .locked p, .reader.night .locked h2 { color: #dce0e8; }
.locked { border-color: #dedce2; border-radius: var(--radius); }
.locked > span { color: var(--accent); }

/* Coins, checkout and member offers. */
.balance-banner { background: #303747; border-radius: var(--radius); padding: 26px 30px; margin-bottom: 28px; }
.balance-banner span, .balance-banner p { color: #c4cad7; }
.balance-banner h2 { font: 700 34px/1.3 var(--sans); color: white; }
.balance-banner a { color: #ffc4b5; }
.packages { gap: 24px; }
.package { background: white; border-color: var(--line); border-radius: var(--radius); }
.package h2 { font: 700 34px/1.3 var(--sans); }
.package.popular { background: #fff8f5; border-color: var(--accent); }
.package-label { background: var(--accent); font-size: 9px; }
.package b { color: var(--success); }
.package-buy { color: var(--accent-hover); border-color: var(--line); font-size: 12px; }
.package:hover { border-color: var(--accent); transform: translateY(-2px); }
.payment-strip { color: #727989; }
.payment-options label { border-color: #dfe2e9; border-radius: 6px; font-size: 12px; }
.payment-options label:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); }
.checkout-grid { grid-template-columns: minmax(0,1.45fr) minmax(280px,1fr); gap: 24px; }
.order-summary { background: var(--surface-soft); }
.membership-card { background: #fff6f1; border-color: #f1ded3; border-radius: var(--radius); margin: 0 0 32px; max-width: 650px; }
.membership-card h1 { font-size: 38px; }
.membership-card h1 small, .membership-card ul { color: #717684; }

/* Reader accounts and creator studio use the same workspace shell. */
.account-layout { grid-template-columns: 220px minmax(0,1fr); gap: 32px; padding-top: 32px; }
.account-nav { background: var(--surface-soft); border-color: var(--line); border-radius: var(--radius); padding: 20px; }
.account-nav > a { color: #747a87; font-size: 12px; padding: 11px 12px; border-radius: 6px; }
.account-nav > a.active, .account-nav > a:hover { background: var(--accent-soft); color: var(--accent-hover); }
.account-nav > a.active { font-weight: 600; }
.account-nav .eyebrow { color: var(--accent-hover); }
.account-layout h1 { font: 700 30px/1.3 var(--sans); letter-spacing: -.6px; margin: 0 0 12px; }
.account-layout > section > p { margin-bottom: 24px; }
.account-layout .section-head { margin-bottom: 24px; }
.stats { gap: 20px; margin: 24px 0; }
.stats > div { color: var(--muted); background: var(--surface-soft); border-color: var(--line); border-radius: var(--radius); padding: 22px; font-size: 12px; }
.stats h2 { font: 700 29px/1.35 var(--sans); color: var(--ink); margin: 10px 0; }
.stats a { color: var(--accent-hover); font-size: 11px; }
.mini { grid-template-columns: repeat(4,minmax(0,1fr)); max-width: none; }
.mini .cover-wrap { max-width: none; }
.table-scroll { background: white; border-color: var(--line); border-radius: var(--radius); margin: 24px 0; }
table { font-size: 12px; }
th { color: #6d7482; background: var(--surface-soft); padding: 15px 18px; font-weight: 600; }
td { padding: 17px 18px; }
td small, .table-empty { color: var(--muted); }
td a { color: var(--accent-hover); }
.activity-chart i { background: #f29582; border-radius: 4px 4px 0 0; }
.activity-chart span, .activity-chart small { color: var(--muted); }
.reader-sample { border-radius: 6px; color: #67614e; }

/* Registration, creator information, support and policy pages. */
.auth-layout { max-width: var(--page-width); grid-template-columns: minmax(0,1fr) minmax(0,1fr); padding-top: 40px; gap: 48px; }
.auth-story { background: #fff4ef; border: 1px solid #f5e6df; padding: 36px; border-radius: var(--radius); }
.auth-story h1 { font-size: 36px; }
.auth-layout > .panel { max-width: 470px; width: 100%; padding: 24px 0; }
.auth-layout > .panel h2 { font-size: 26px; margin-top: 25px; }
.creator-hero { background: #fff4ef; border: 1px solid #f5e6df; border-radius: var(--radius); margin-top: 32px; padding: 48px 24px; }
.creator-hero h1 { font-size: 44px; letter-spacing: -1px; }
.creator-hero h1 em { color: var(--accent); font-style: normal; }
.step { font: 700 30px/1.4 var(--sans); color: #efa392; margin-bottom: 14px; }
.steps li { color: var(--muted); }
.info-grid { gap: 24px; }
.info-grid .panel { padding: 26px; }
.prose { max-width: 880px; }
.prose h2 { font-size: 22px; }
.prose .lead { font: 400 20px/1.8 var(--sans); color: #555d6b; }
.prose p { color: #69707e; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list summary { font-weight: 600; }
.faq-list details[open] summary { color: var(--accent-hover); }

/* Shared overlays and footer. */
.modal-backdrop { background: #171d2c85; }
.modal { background: white; border-radius: 12px; box-shadow: 0 20px 80px #1b203333; padding: 30px; }
.modal h2 { font: 700 23px/1.4 var(--sans); }
.close { color: #7a8090; }
.unlock-price { background: var(--surface-soft); color: var(--muted); border-radius: var(--radius); }
.unlock-price strong { color: var(--ink); }
.success-icon { background: #e8f5ef; color: var(--success); }
#toast { background: #303747; border-radius: var(--radius); }
footer { background: #fafafb; border-color: var(--line); padding-left: max(var(--page-gutter),calc((100vw - 1236px)/2)); padding-right: max(var(--page-gutter),calc((100vw - 1236px)/2)); }
.footer-grid b { color: #555c69; }
.footer-grid p, .footer-grid small, .footer-grid > div > a:not(.logo) { color: var(--muted); }
.footer-grid > div > a:hover { color: var(--accent-hover); }
.footer-bottom { border-color: var(--line); color: var(--muted); }

@media (max-width: 1100px) {
  :root { --page-gutter: 26px; }
  .header-inner { gap: 20px; }
  .header-inner nav { gap: 20px; }
  .catalog { grid-template-columns: repeat(6,minmax(0,1fr)); }
  .book-grid { gap: 26px 20px; }
  .account-layout { grid-template-columns: 200px minmax(0,1fr); gap: 24px; }
  .mini { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .stats { gap: 14px; }
  .stats > div { padding: 18px; }
  .stats h2 { font-size: 25px; }
}
@media (max-width: 800px) {
  .header-inner { height: 72px; }
  .mobile-nav { gap: 32px; }
  .catalog, .book-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .shelf .book-grid .book-card:nth-child(n+4) { display: block; }
  .filter-bar select { flex: 1; width: auto; }
  .detail-columns, .checkout-grid { grid-template-columns: minmax(0,1fr); }
  .novel-hero { grid-template-columns: 155px minmax(0,1fr); gap: 24px; padding: 24px; }
  .novel-hero h1 { font-size: 28px; }
  .account-layout { grid-template-columns: minmax(0,1fr); gap: 26px; padding-top: 24px; }
  .account-nav { padding: 8px; gap: 6px; }
  .account-nav > a { padding: 10px 13px; margin: 0; }
  .mini { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .auth-layout { gap: 28px; }
  .auth-story { padding: 26px; }
  .auth-story h1 { font-size: 30px; }
  .creator-hero h1 { font-size: 38px; }
  .info-grid { gap: 16px; }
  .info-grid .panel { padding: 20px; }
  .info-grid h2 { font-size: 19px; }
}
@media (max-width: 520px) {
  :root { --page-gutter: 18px; }
  main { padding-bottom: 40px; }
  .header-inner { height: 65px; gap: 15px; }
  .logo { font-size: 23px; }
  .header-actions { font-size: 10px; gap: 10px; }
  .signin { padding: 7px 14px; font-size: 10px; }
  .mobile-nav { gap: 32px; font-size: 10px; }
  .page-heading { padding: 28px 0 22px; }
  .page-heading h1, .account-layout h1 { font-size: 27px; line-height: 1.3; letter-spacing: -.5px; }
  .page-heading p { font-size: 12px; }
  .eyebrow { font-size: 9px; letter-spacing: 1px; }
  .section-head { flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
  .section-head h2, .panel h2 { font-size: 20px; }
  .section-head p, .section-head > span { font-size: 11px; }
  .primary, .secondary { padding: 10px 14px; font-size: 12px; min-height: 42px; }
  .panel, .info-grid .panel { padding: 20px; margin-bottom: 18px; }
  .panel > .primary + .secondary, .panel > .secondary + .primary,
  form > button + button { margin: 8px 0 0; }
  label { font-size: 12px; }
  input, textarea, select { font-size: 16px; }
  .form-grid { grid-template-columns: minmax(0,1fr); gap: 0; }
  .book-grid, .catalog, .mini { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px 14px; }
  .book-card h3 { font-size: 11px; line-height: 1.5; min-height: 33px; margin: 7px 0 5px; }
  .book-card > small { font-size: 9px; margin-top: 9px; }
  .book-card p, .book-card .book-meta { font-size: 9px; }
  .complete { font-size: 5px; padding: 3px 5px; top: 8px; }
  .filter-bar { padding: 12px; gap: 10px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .filter-bar input { grid-column: 1/-1; }
  .filter-bar select { width: 100%; min-width: 0; font-size: 13px; padding: 10px 8px; }
  .filter-bar #sort { grid-column: 1/-1; }
  .pagination { gap: 12px; font-size: 11px; }
  .pagination .secondary { padding: 9px 12px; font-size: 11px; }
  .category-grid { gap: 14px; }
  .category-tile { padding: 20px 16px; }
  .category-tile h2 { font-size: 20px; }
  .category-tile p, .category-tile b { font-size: 11px; }
  .breadcrumbs { padding: 20px 0; font-size: 10px; }
  .novel-hero { display: block; padding: 18px; }
  .novel-hero::after { content: ''; display: block; clear: both; }
  .novel-hero > .cover { float: left; width: 90px; margin: 0 18px 16px 0; }
  .novel-hero h1 { font-size: 25px; }
  .novel-hero .novel-stats { clear: both; padding-top: 4px; font-size: 11px; gap: 8px 12px; }
  .novel-hero > div > p { font-size: 12px; }
  .novel-hero .hero-buttons { margin-top: 20px; }
  .novel-hero .hero-buttons .primary, .novel-hero .hero-buttons .secondary { flex: 1; font-size: 11px; }
  .detail-columns aside { grid-template-columns: minmax(0,1fr); gap: 0; }
  .chapter-row { font-size: 12px; gap: 10px; }
  .chapter-row > span:last-child { font-size: 10px; }
  .reader-top { gap: 8px; padding: 16px var(--page-gutter); }
  .reader-top button { font-size: 10px; padding: 9px; min-height: 38px; }
  .reading-page { padding: 34px 22px; }
  .reading-page h1 { font-size: 29px; }
  .reader-bottom .primary, .reader-bottom .secondary { font-size: 11px; padding: 10px 12px; }
  .packages { gap: 28px 14px; }
  .package h2 { font-size: 30px; }
  .package-label { font-size: 7px; }
  .balance-banner { padding: 22px; }
  .balance-banner h2 { font-size: 30px; }
  .info-grid { grid-template-columns: minmax(0,1fr); gap: 0; }
  .checkout-grid { gap: 0; }
  .payment-options { gap: 8px; }
  .payment-options label { padding: 10px 8px; font-size: 11px; gap: 7px; }
  .membership-card { padding: 28px 20px; }
  .membership-card h1 { font-size: 32px; }
  .membership-card h2 { font-size: 23px; }
  .stats { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .stats > div { padding: 18px 20px; font-size: 12px; }
  .stats h2 { font-size: 28px; margin: 7px 0; }
  .account-nav > a { font-size: 11px; }
  .auth-layout { grid-template-columns: minmax(0,1fr); gap: 12px; padding-top: 24px; }
  .auth-story { padding: 24px; }
  .auth-story h1 { font-size: 29px; }
  .auth-layout > .panel { max-width: none; padding: 18px 0; }
  .creator-hero { margin-top: 24px; padding: 32px 20px; }
  .creator-hero h1 { font-size: 33px; }
  .creator-hero a { font-size: 12px; }
  .prose h2 { font-size: 20px; }
  .prose .lead { font-size: 18px; }
  .modal { padding: 26px 22px; }
  .modal h2 { font-size: 22px; }
  .unlock-price { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .primary, .secondary, .book-card .cover, .category-tile, .package { transition: none; }
}

/* Shared dropdown anchors. Menus are positioned against the visible viewport
   by dropdowns.js, outside overflow panels and independently of native menus. */
.select-control { position: relative; display: block; width: 100%; min-width: 0; margin-top: 7px; }
select.enhanced-select { position: absolute; width: 1px !important; height: 1px; min-width: 0 !important; padding: 0 !important; margin: 0 !important; border: 0; opacity: 0; clip-path: inset(50%); pointer-events: none; }
.select-trigger { position: relative; display: flex; align-items: center; width: 100%; min-height: 44px; margin: 0; padding: 11px 40px 11px 12px; border: 1px solid #dfe2e9; border-radius: 6px; background: var(--surface); color: var(--ink); font: 400 13px/1.5 var(--sans); text-align: left; }
.select-trigger::after { content: ''; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid #777c88; border-bottom: 1.5px solid #777c88; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select-trigger[aria-expanded=true] { border-color: var(--accent); box-shadow: 0 0 0 2px #ed655015; }
.select-trigger[aria-expanded=true]::after { transform: translateY(-20%) rotate(225deg); border-color: var(--accent); }
.select-trigger:focus-visible { outline: 2px solid #efb3a7; outline-offset: 2px; }
.select-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-menu { position: fixed; z-index: 70; margin: 0; padding: 6px; overflow-y: auto; overscroll-behavior: contain; background: #fff; border: 1px solid #e0e3eb; border-radius: 8px; box-shadow: 0 8px 28px #222a421f; color: var(--ink); font: 400 13px/1.5 var(--sans); scrollbar-width: thin; }
.select-option { position: relative; display: flex; align-items: center; min-height: 40px; padding: 10px 30px 10px 10px; border-radius: 4px; cursor: pointer; overflow-wrap: anywhere; }
.select-option[aria-selected=true] { color: var(--accent-hover); font-weight: 600; }
.select-option[aria-selected=true]::after { content: '✓'; position: absolute; right: 10px; font-size: 13px; }
.select-option.is-active { background: var(--accent-soft); color: var(--accent-hover); }
.select-option[aria-disabled=true] { opacity: .45; cursor: not-allowed; }
.filter-bar > .select-control { width: 175px; flex-shrink: 0; margin-top: 0; }
.filter-bar .select-trigger { min-height: 44px; }
.form-grid > label > .select-control { margin-top: 7px; }
.modal .select-trigger { min-height: 44px; }
@media (max-width: 800px) {
  .filter-bar > .select-control { flex: 1; width: auto; }
}
@media (max-width: 520px) {
  .select-trigger { font-size: 16px; min-height: 46px; }
  .select-menu { font-size: 14px; }
  .select-option { min-height: 44px; }
  .filter-bar > .select-control { width: 100%; }
  .filter-bar > .select-control:has(#sort) { grid-column: 1/-1; }
  .filter-bar .select-trigger { font-size: 13px; padding-left: 8px; }
}

/* Keep search and enhanced filters on the same control baseline. */
.filter-bar { align-items: center; }
.filter-bar > input,
.filter-bar .select-trigger {
  box-sizing: border-box;
  height: 46px;
  min-height: 46px;
  margin: 0;
  line-height: 22px;
  padding-top: 11px;
  padding-bottom: 11px;
}
.filter-bar > .select-control { margin: 0; }
