/* Shared task surfaces: readable help, one primary action, and predictable returns. */
:root { --flow-blue: #0b63ce; --flow-border: #d8e5f2; }
[hidden] { display: none !important; }
html { scroll-padding-top: 130px; }
:where(a,button,input,select,textarea,summary):focus-visible { outline: 3px solid #1677e8; outline-offset: 3px; }
.navlinks a[aria-current="page"],.mobile-menu a[aria-current="page"] { background: #eaf4ff; color: #084d9e; border-radius: 8px; font-weight: 800; }
.field small,.form-step-head p,.optional,.small-copy,.reservation-intake-help { font-size: 14px; line-height: 1.7; }
.btn.secondary,.btn.btn-secondary { background: #fff; color: #0b58b0; border: 1px solid #b9cfe5; box-shadow: none; }
.flow-toolbar,.flow-chips,.flow-actions,.flow-section-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.flow-toolbar { justify-content: space-between; margin: 16px 0; }
.flow-toolbar .field { flex: 1 1 220px; }
.flow-toolbar .field input,.flow-toolbar .field select { width: 100%; }
.flow-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid #c4d9ee; border-radius: 999px; color: #164f88; background: #fff; font: inherit; cursor: pointer; text-decoration: none; }
.flow-chip[aria-pressed="true"],.flow-chip[aria-current="page"] { background: #e7f2ff; border-color: #0b63ce; color: #084d9e; font-weight: 800; }
.flow-summary,.flow-next { padding: 18px 22px; margin: 18px 0; border: 1px solid var(--flow-border); border-radius: 16px; background: #f2f8ff; color: #244564; }
.flow-next h2,.flow-next h3,.flow-summary p { margin-top: 0; }
.flow-next p { margin-bottom: 16px; }
.flow-empty { padding: 24px; border: 1px solid #f1d49a; background: #fff9ed; color: #755215; border-radius: 14px; }
.flow-section-nav { margin: 18px 0; padding: 12px; background: #f2f7fd; border: 1px solid var(--flow-border); border-radius: 14px; }
.flow-section-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 8px; color: #18558e; background: #fff; }
.flow-toc { padding: 16px 20px; margin: 20px 0; border: 1px solid var(--flow-border); border-radius: 14px; background: #f5faff; }
.flow-toc summary { cursor: pointer; font-weight: 800; color: #124c86; min-height: 30px; }
.flow-toc ul { padding-left: 22px; margin-bottom: 0; }
.flow-toc a { display: inline-block; padding: 7px 0; }
.article-content { max-width: 74ch; margin-inline: auto; font-size: 17px; line-height: 1.95; overflow-wrap: anywhere; }
.article-content h2,.article-content h3 { margin-top: 1.8em; line-height: 1.55; }
.flow-upload-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: 12px; margin-top: 12px; }
.flow-upload-item { margin: 0; padding: 10px; border: 1px solid var(--flow-border); border-radius: 12px; overflow: hidden; }
.flow-upload-item img { width: 100%; height: 110px; object-fit: contain; background: #f4f7fb; }
.flow-upload-item figcaption { font-size: 13px; overflow-wrap: anywhere; }
.flow-upload-item button { margin-top: 8px; min-height: 44px; width: 100%; }
.flow-editor-preview { padding: 20px; border: 1px solid var(--flow-border); border-radius: 14px; background: #fff; max-height: 560px; overflow: auto; white-space: normal; overflow-wrap: anywhere; }
.flow-editor-preview p { white-space: pre-wrap; }
.flow-editor-status { font-size: 14px; color: #42617e; }
.flow-danger-details { margin-top: 20px; padding: 16px; border: 1px solid #f0cdca; border-radius: 12px; background: #fffafa; }
.flow-danger-details summary { color: #a22b22; cursor: pointer; min-height: 44px; }
.flow-danger-details[open] > summary { margin-bottom: 14px; }
.flow-edit-form { display: grid; gap: 12px; margin-top: 14px; padding: 16px; background: #f5faff; border: 1px solid var(--flow-border); border-radius: 12px; }
.flow-inline-help { margin: 8px 0 16px; color: #52647a; font-size: 14px; }
.flow-static-value { padding: 12px 16px; min-height: 48px; border-radius: 10px; border: 1px solid var(--flow-border); background: #f0f6fd; color: #234f7b; }
.account-plan-strip { margin-top: 24px; }
.plan-card.flow-future-plan { box-shadow: none; border-color: #dde5ee; }
.flow-future-plan .plan-price { color: #52647a; }
.flow-future-toggle { margin-top: 20px; }
body[data-flow-page="sell"] .compact-hero,body[data-flow-page="wanted-create"] .compact-hero,body[data-flow-page="marketplace"] .compact-hero { padding-block: 24px; }
.reservation-page { display: flex; flex-direction: column; }
.reservation-hero { order: 0; }
.reservation-contact { order: 1; scroll-margin-top: 130px; }
.reservation-feature-grid { order: 2; }
.reservation-hero { padding-block: 28px; }
.reservation-hero h1 { font-size: clamp(28px,3.3vw,42px); }
.flow-result-tools { position: sticky; top: 112px; z-index: 3; padding: 12px; background: #f1f7ff; border: 1px solid var(--flow-border); border-radius: 12px; }
@media (min-width: 1000px) {
  .flow-editor-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; align-items: start; }
  .flow-editor-layout .flow-editor-preview { position: sticky; top: 120px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 90px; }
  .flow-summary,.flow-next { padding: 16px; }
  .flow-actions > .btn { flex: 1 1 160px; text-align: center; }
  .flow-section-nav { flex-wrap: nowrap; overflow-x: auto; }
  .flow-section-nav a { flex: 0 0 auto; }
  .flow-result-tools { position: static; }
  body:has(.mobile-primary-bar) .support-launcher { bottom: calc(90px + env(safe-area-inset-bottom)); }
  body:has(.mobile-primary-bar) .cookie-settings { bottom: calc(90px + env(safe-area-inset-bottom)); }
  body:has(.mobile-primary-bar) .fortune-search-progress { bottom: calc(148px + env(safe-area-inset-bottom)); }
  .flow-upload-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .article-content { font-size: 16px; line-height: 1.9; }
  .reservation-contact { scroll-margin-top: 90px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto !important; } }

.brand-copy small{color:#52647a;font-size:12px}.muted,.trust-card p{color:#52647a}.feature-no,.feature-highlight .feature-no{color:#456b94}.footer .footer-contact-title{margin:0 0 8px;color:#fff;font-size:14px;line-height:1.4}

.plate-search-panel>.flow-inline-help{grid-column:1/-1;margin-bottom:0}.market-head{gap:20px;flex-wrap:wrap}.market-head>div:first-child{flex:1 1 360px}.market-head .market-sort{flex:0 1 230px}.market-sort label{font-size:13px}.market-sort select{min-height:44px;width:100%}.plate-search-panel .search-actions{display:flex;gap:8px;align-items:end}.plate-search-panel .search-actions .btn{min-height:48px}
@media(max-width:700px){.market-head .market-sort{flex:1 1 100%}.plate-search-panel .search-actions .btn{flex:1}}

/* Layout fixes found by inspecting complete pages at mobile, tablet and desktop sizes. */
.container.flow-next,.container.flow-summary,.container.flow-section-nav{margin-inline:auto}
.market-head>*{min-width:0;max-width:100%}
.search-panel.plate-search-panel .search-actions{flex-direction:row;align-items:stretch}
.plans-grid.flow-current-plans{grid-template-columns:minmax(0,1fr);max-width:760px}
.flow-current-plans .plan-card{width:100%}
.activity-report{grid-template-columns:minmax(0,1fr)}
.activity-report>*{min-width:0}
@media(max-width:850px){
  .market-head>div:first-child,.market-head .market-sort{flex:none;width:100%}
}
@media(max-width:760px){
  .activity-report .table.mobile-card-table{min-width:0}
}
/* The editor lives inside a half-width panel: do not split it again on laptop screens. */
@media(min-width:1000px){
  .admin-article-layout .flow-editor-layout{grid-template-columns:minmax(0,1fr)}
  .admin-article-layout .flow-editor-preview{position:static}
}
.section-heading>div{max-width:100%;min-width:0}
.flow-section-nav{min-width:0;max-width:100%}
