:root {
  color-scheme: light;
  --ink: #111820;
  --muted: #64707d;
  --line: #d8dde3;
  --paper: #ffffff;
  --canvas: #f3f5f7;
  --dark: #141a20;
  --blue: #174bc4;
  --red: #d82432;
  --green: #18794e;
  --amber: #9a5d00;
  --shadow: 0 10px 30px rgba(20, 26, 32, .08);
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, .button { border: 0; border-radius: .65rem; padding: .7rem 1rem; background: var(--dark); color: white; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; font-weight: 700; }
button:hover, .button:hover { filter: brightness(1.12); }
button:disabled { background: #aeb5bd !important; color: #f5f6f7; cursor: not-allowed; filter: none; border-color: #aeb5bd; }
input:disabled, textarea:disabled, select:disabled { background: #e7eaed; color: #6d7680; cursor: not-allowed; }
.button.secondary, button.secondary { background: white; color: var(--ink); border: 1px solid var(--line); }
.button.blue, button.blue { background: var(--blue); }
.button.red, button.red { background: var(--red); }
.button.small, button.small { padding: .48rem .72rem; font-size: .875rem; }
input, textarea, select { width: 100%; border: 1px solid #bfc7d0; border-radius: .55rem; padding: .68rem .75rem; background: white; color: var(--ink); }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(23, 75, 196, .16); border-color: var(--blue); }
textarea { min-height: 7.5rem; resize: vertical; }
label { display: block; font-size: .9rem; font-weight: 700; margin-bottom: .35rem; }
.help { color: var(--muted); font-size: .84rem; line-height: 1.45; }
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(20, 26, 32, .97); color: white; box-shadow: 0 2px 14px rgba(0,0,0,.15); }
.topbar-inner { max-width: 1480px; min-height: 70px; margin: auto; padding: .7rem 1.4rem; display: flex; align-items: center; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .8rem; font-weight: 900; text-decoration: none; letter-spacing: .03em; }
.brand-mark { width: 48px; height: 36px; border: 1px solid #49535f; border-radius: .4rem; display: grid; place-items: center; background: #0b0f13; position: relative; }
.brand-mark::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 5px; height: 3px; background: linear-gradient(90deg,#1556d8 0 32%,#fff 32% 66%,#e52b39 66%); }
.nav { display: flex; align-items: center; gap: .25rem; flex: 1; }
.nav a { padding: .55rem .72rem; color: #d9dee4; border-radius: .45rem; text-decoration: none; font-size: .92rem; }
.nav a:hover { background: #2a323b; color: white; }
.userbox { color: #bdc5ce; font-size: .86rem; display: flex; align-items: center; gap: .65rem; }
.userbox form { margin: 0; }
.page { max-width: 1480px; margin: 0 auto; padding: 1.5rem; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.page-head h1 { margin: 0 0 .3rem; font-size: clamp(1.65rem, 3vw, 2.25rem); letter-spacing: -.035em; }
.page-head p { margin: 0; color: var(--muted); }
.grid { display: grid; gap: 1rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: .9rem; box-shadow: var(--shadow); padding: 1.15rem; }
.card h2, .card h3 { margin: 0 0 .85rem; }
.metric { padding: 1rem; border-left: 4px solid var(--blue); }
.metric strong { font-size: 2rem; display: block; line-height: 1.1; }
.metric span { color: var(--muted); font-size: .88rem; }
.new-mail-alert { margin-bottom: 1rem; padding: 1rem; border: 2px solid var(--blue); border-radius: .9rem; background: #edf4ff; box-shadow: var(--shadow); }
.new-mail-alert-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.new-mail-alert-head p { margin: .2rem 0 0 1.35rem; color: #31517d; font-size: .88rem; }
.notification-dot { display: inline-block; width: .72rem; height: .72rem; margin-right: .55rem; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(216,36,50,.13); }
.new-mail-list { display: grid; gap: .4rem; margin-top: .8rem; }
.new-mail-list > a { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .65rem .75rem; border-radius: .6rem; background: white; border: 1px solid #c9d9ee; text-decoration: none; }
.new-mail-list > a:hover { border-color: var(--blue); }
.new-mail-list small { display: block; margin-top: .15rem; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: .8rem; }
.row { display: flex; align-items: center; gap: .7rem; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field.full { grid-column: 1 / -1; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: .75rem; }
table { width: 100%; border-collapse: collapse; background: white; }
th { text-align: left; padding: .75rem; background: #eef1f4; color: #424d59; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
td { padding: .78rem; border-top: 1px solid var(--line); vertical-align: top; font-size: .92rem; }
tr:hover td { background: #fafbfd; }
.status { display: inline-flex; align-items: center; border-radius: 999px; padding: .32rem .62rem; font-size: .76rem; font-weight: 800; background: #e9edf2; color: #394450; white-space: nowrap; }
.status.paid, .status.shipped, .status.closed, .status.reserved { background: #dff4e9; color: #12623e; }
.status.awaiting_details, .status.availability_to_check, .status.awaiting_availability_choice, .status.awaiting_address, .status.awaiting_payment_link, .status.awaiting_payment { background: #fff0cf; color: #754700; }
.status.cancelled { background: #ffe1e4; color: #8c1822; }
.flash { padding: .85rem 1rem; border-radius: .7rem; margin-bottom: 1rem; border: 1px solid; }
.flash.success { background: #e7f7ee; border-color: #8fd0ad; color: #0e5a36; }
.flash.error { background: #fff0f1; border-color: #e9a5ab; color: #8d1b26; }
.flash.info { background: #edf4ff; border-color: #a9c2ef; color: #16458e; }
.validation-summary { margin: 1rem 0; padding: 1rem; border: 2px solid var(--red); border-radius: .7rem; background: #fff0f1; color: #7e1720; }
.validation-summary strong { display: block; font-size: 1.05rem; }
.validation-summary ul { margin: .55rem 0 0; padding-left: 1.25rem; }
.validation-summary li + li { margin-top: .3rem; }
.timeline { border-left: 2px solid var(--line); margin-left: .4rem; padding-left: 1rem; }
.timeline-item { position: relative; padding: 0 0 1rem; }
.timeline-item::before { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); left: -1.38rem; top: .3rem; }
.timeline-item strong { display: block; }
.timeline-item time, .timeline-item small { color: var(--muted); }
.check-grid { display: grid; gap: .55rem; }
.check-line { display: grid; grid-template-columns: 1fr auto; gap: .7rem; align-items: center; padding: .65rem; background: #f5f7f9; border-radius: .55rem; }
.check-line label { margin: 0; }
.check-line input[type="checkbox"], .check-line input[type="radio"] { width: 1.1rem; height: 1.1rem; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: radial-gradient(circle at 80% 10%, #273442 0, #141a20 38%, #090c10 100%); }
.auth-card { width: min(500px, 100%); background: white; border-radius: 1rem; padding: 2rem; box-shadow: 0 24px 80px rgba(0,0,0,.4); }
.auth-card h1 { margin: 0 0 .35rem; }
.auth-card .brand { color: white; background: var(--dark); margin: -2rem -2rem 1.6rem; padding: 1.25rem 2rem; border-radius: 1rem 1rem 0 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.muted { color: var(--muted); }
.danger-zone { border-color: #efb4b9; background: #fff7f8; }
.item-line { display: grid; grid-template-columns: 1.4fr 100px 1fr auto; gap: .6rem; align-items: end; padding: .8rem; border: 1px solid var(--line); border-radius: .7rem; }
.order-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(310px, 1fr); gap: 1rem; align-items: start; }
.sticky { position: sticky; top: 88px; }
.mail-body { white-space: pre-wrap; max-height: 240px; overflow: auto; background: #f5f7f9; border-radius: .55rem; padding: .8rem; font-size: .88rem; }
.analysis-box { margin-top: 1rem; padding: .9rem; border: 1px solid #a9c2ef; border-radius: .7rem; background: #f4f8ff; }
.analysis-box.pending { border: 2px solid var(--blue); background: #edf4ff; }
.analysis-box p { margin: .55rem 0; }
.step-complete { background: #eef0f2; border-color: #c8cdd3; box-shadow: none; }
.step-complete .check-line { background: #e2e5e8; }
.choice-panel { margin-top: 1rem; padding: 1rem; border: 1px solid #e5bb67; border-radius: .75rem; background: #fff9ec; }
.choice-panel h3 { margin-top: 0; }
.validated-block { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; padding: .85rem; border: 1px solid #c7d0d8; border-radius: .65rem; background: rgba(255,255,255,.72); }
.validated-block strong { font-size: 1.05rem; }
.validated-block small { color: var(--muted); }
.inline-edit { margin-top: .75rem; padding: .75rem; border: 1px solid var(--line); border-radius: .65rem; background: white; }
.inline-edit input { flex: 1; min-width: 240px; }
.workflow-substeps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.substep { padding: .9rem; border: 1px solid var(--line); border-radius: .75rem; background: #fafbfd; }
.substep h3 { font-size: 1rem; }
.substep.step-complete { background: #eef0f2; }
.warning-text { color: var(--amber); font-weight: 700; }
.mail-state { margin-top: .75rem; padding: .75rem; border-radius: .65rem; }
.success-state { background: #e7f7ee; color: #0e5a36; border: 1px solid #8fd0ad; }
.item-excluded td { opacity: .68; background: #f0f1f2; }
.state-filters { padding-bottom: .75rem; margin-bottom: .75rem; border-bottom: 1px solid var(--line); }
.mail-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.mail-filters a { display: inline-flex; gap: .45rem; align-items: center; padding: .65rem .85rem; border: 1px solid var(--line); border-radius: .65rem; background: white; text-decoration: none; font-weight: 750; }
.mail-filters a span { min-width: 1.5rem; padding: .12rem .38rem; border-radius: 999px; background: #e4e8ed; text-align: center; font-size: .78rem; }
.mail-filters a.active { background: var(--dark); color: white; border-color: var(--dark); }
.mail-filters a.active span { background: #3c4651; }
.mail-actions { margin-top: .75rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.mail-actions form { margin: 0; }
.quick-reply-box { margin-top: .75rem; padding: .8rem; border: 1px solid #cdd9e5; border-radius: .7rem; background: #f4f8fc; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem; }
.quick-reply-box form { margin: 0; }
.attachment-box { display: grid; gap: .35rem; padding: .8rem; border: 1px solid #cdd9e5; border-radius: .7rem; background: #f4f8fc; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.product-card { overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: .9rem; box-shadow: var(--shadow); }
.product-visual { height: 220px; display: grid; place-items: center; overflow: hidden; background: #eef1f4; border-bottom: 1px solid var(--line); }
.product-visual img { width: 100%; height: 100%; object-fit: contain; background: white; }
.product-placeholder { color: var(--muted); font-weight: 700; }
.product-form { display: flex; flex-direction: column; gap: .75rem; padding: 1rem; }
.product-reference { font-size: 1.05rem; }
.dashboard-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.dashboard-product { display: grid; grid-template-columns: 62px 1fr; gap: .65rem; align-items: center; min-width: 0; padding: .5rem; border: 1px solid var(--line); border-radius: .65rem; }
.dashboard-product img { width: 62px; height: 52px; object-fit: contain; border-radius: .35rem; background: #f2f4f6; }
.dashboard-product span { display: block; margin-top: .15rem; color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-item-product { display: flex; align-items: center; gap: .65rem; min-width: 220px; }
.order-item-product img { width: 58px; height: 48px; object-fit: contain; border: 1px solid var(--line); border-radius: .4rem; background: #f2f4f6; }
.mobile-bottom-nav, .mobile-settings-link, .mobile-order-overview, .mobile-workflow-nav, .mobile-step-toggle { display: none; }
@media (max-width: 980px) {
  .grid.four, .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-layout { grid-template-columns: 1fr; }
  .workflow-substeps { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .nav { order: 3; width: 100%; overflow-x: auto; }
  .topbar-inner { flex-wrap: wrap; }
}
@media (max-width: 650px) {
  .topbar-inner { min-height: 58px; padding: .5rem .75rem; flex-wrap: nowrap; }
  .brand { flex: 0 0 auto; }
  .brand > span:last-child { display: none; }
  .brand-mark { width: 44px; height: 34px; }
  .nav { display: none; }
  .userbox { margin-left: auto; }
  .userbox span { display: none; }
  .userbox button { min-height: 42px; padding: .5rem .7rem; }
  .mobile-settings-link { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #49535f; border-radius: .6rem; color: white; text-decoration: none; font-size: 1.15rem; }
  .mobile-bottom-nav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); min-height: calc(66px + env(safe-area-inset-bottom)); padding: .35rem .35rem env(safe-area-inset-bottom); background: rgba(255,255,255,.98); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(20,26,32,.12); }
  .mobile-bottom-nav a { position: relative; min-width: 0; min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .18rem; border-radius: .6rem; color: #5f6b78; font-size: .68rem; font-weight: 800; text-decoration: none; }
  .mobile-bottom-nav a.active { color: var(--blue); background: #edf3ff; }
  .mobile-bottom-nav svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-nav-icon { position: relative; display: grid; place-items: center; }
  .mobile-nav-badge { position: absolute; top: -.5rem; right: -.85rem; min-width: 1.15rem; height: 1.15rem; padding: 0 .25rem; display: grid; place-items: center; border: 2px solid white; border-radius: 999px; background: var(--red); color: white; font-size: .6rem; line-height: 1; }
  .page { padding: .85rem; padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
  .page-head { flex-direction: column; align-items: stretch; gap: .8rem; margin-bottom: 1rem; }
  .page-head h1 { font-size: 1.65rem; }
  .mobile-page-head > .button, .mobile-page-head > .row, .mobile-page-head > div:last-child:not(:first-child) { width: 100%; }
  .mobile-page-head > .button, .mobile-page-head .mobile-header-actions > * { min-height: 46px; }
  .mobile-header-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
  .card { padding: .9rem; border-radius: .8rem; }
  button, .button { min-height: 44px; }
  .grid.two, .grid.three, .grid.four, .field-grid, .field-grid.three { grid-template-columns: 1fr; }
  .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: .65rem; }
  .dashboard-metrics .metric { padding: .8rem; }
  .dashboard-metrics .metric strong { font-size: 1.65rem; }
  .dashboard-products { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .product-visual { height: 180px; }
  .item-line { grid-template-columns: 1fr; }
  .item-line .wide { grid-column: auto; }
  .item-line .remove-item { width: 100%; }
  .new-mail-alert-head { align-items: stretch; flex-direction: column; }
  .new-mail-alert-head .button { width: 100%; }
  .new-mail-list > a { align-items: flex-start; }
  .mobile-filter-form { display: grid; grid-template-columns: 1fr auto; }
  .mobile-filter-form select { max-width: none !important; }
  .mobile-card-list { overflow: visible; border: 0; border-radius: 0; }
  .responsive-cards, .responsive-cards tbody, .responsive-cards tr, .responsive-cards td { display: block; width: 100%; }
  .responsive-cards thead { display: none; }
  .responsive-cards tbody { display: grid; gap: .7rem; }
  .responsive-cards tr { overflow: hidden; border: 1px solid var(--line); border-radius: .75rem; background: white; box-shadow: 0 5px 16px rgba(20,26,32,.06); }
  .responsive-cards td { display: grid; grid-template-columns: minmax(92px, 34%) minmax(0, 1fr); gap: .6rem; padding: .62rem .72rem; border-top: 1px solid #edf0f3; overflow-wrap: anywhere; }
  .responsive-cards td:first-child { border-top: 0; background: #f7f9fb; }
  .responsive-cards td::before { content: attr(data-label); color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .035em; }
  .mobile-item-table, .mobile-item-table tbody, .mobile-item-table tr, .mobile-item-table td, .mobile-item-table tfoot { display: block; width: 100%; }
  .mobile-item-table thead { display: none; }
  .mobile-item-table tbody { display: grid; gap: .7rem; }
  .mobile-item-table tbody tr { overflow: hidden; border: 1px solid var(--line); border-radius: .75rem; background: white; }
  .mobile-item-table tbody td { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: .6rem; padding: .6rem .7rem; border-top: 1px solid #edf0f3; }
  .mobile-item-table tbody td:first-child { border-top: 0; background: #f7f9fb; }
  .mobile-item-table tbody td::before { content: attr(data-label); color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
  .mobile-item-table tfoot tr, .mobile-item-table tfoot td { display: block; width: 100%; }
  .mobile-item-table tfoot td:first-child { display: none; }
  .mobile-item-table tfoot td { padding: .8rem 0 0; border: 0; }
  .order-item-product { min-width: 0; }
  .order-item-product img { flex: 0 0 58px; }
  .mobile-order-overview { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; margin-bottom: .75rem; }
  .mobile-order-overview > div { min-width: 0; padding: .75rem; border: 1px solid var(--line); border-radius: .7rem; background: white; }
  .mobile-order-overview span { display: block; margin-bottom: .15rem; color: var(--muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
  .mobile-order-overview strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-workflow-nav { position: sticky; z-index: 9; top: 58px; display: flex; gap: .45rem; margin: 0 -.85rem 1rem; padding: .55rem .85rem; overflow-x: auto; background: rgba(243,245,247,.96); border-block: 1px solid var(--line); scrollbar-width: none; }
  .mobile-workflow-nav::-webkit-scrollbar { display: none; }
  .mobile-workflow-nav a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .35rem; min-height: 38px; padding: .35rem .6rem; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--muted); text-decoration: none; font-size: .75rem; font-weight: 800; }
  .mobile-workflow-nav a span { width: 1.3rem; height: 1.3rem; display: grid; place-items: center; border-radius: 50%; background: #e7eaee; }
  .mobile-workflow-nav a.done { color: var(--green); border-color: #a8d7bd; background: #eff9f3; }
  .mobile-workflow-nav a.current { color: var(--blue); border-color: #9fb9eb; background: #edf3ff; }
  .workflow-card { scroll-margin-top: 125px; }
  .workflow-card-heading { gap: .5rem; }
  .workflow-card-heading h2 { flex: 1 1 180px; margin: 0; font-size: 1.05rem; }
  .mobile-step-toggle { display: inline-flex; width: auto !important; min-height: 38px; margin-left: auto; }
  .workflow-card.step-complete:not(.mobile-expanded) .workflow-body { display: none; }
  .workflow-card form.row.wrap { display: grid; grid-template-columns: 1fr; width: 100%; }
  .workflow-card form.row.wrap > *, .workflow-card [style*="min-width"] { width: 100%; min-width: 0 !important; max-width: none !important; }
  .workflow-card .row.wrap > form { width: 100%; }
  .workflow-card .row.wrap > form button, .workflow-card form.stack > button { width: 100%; }
  .check-line { grid-template-columns: 1fr; align-items: stretch; }
  .check-line label.row { justify-content: space-between; min-height: 44px; }
  .check-line form.row { width: 100%; }
  .inline-edit input { min-width: 0; }
  .mail-filters { flex-wrap: nowrap; margin-inline: -.85rem; padding: 0 .85rem .65rem; overflow-x: auto; scrollbar-width: none; }
  .mail-filters::-webkit-scrollbar { display: none; }
  .mail-filters a { flex: 0 0 auto; min-height: 44px; }
  .mail-card-head { align-items: stretch; }
  .mail-card-head > div:first-child { min-width: 0; }
  .mail-card h2 { font-size: 1.05rem; overflow-wrap: anywhere; }
  .mail-meta { overflow-wrap: anywhere; font-size: .78rem; }
  .mail-primary-actions, .mail-primary-actions form, .mail-primary-actions .button, .mail-primary-actions button { width: 100%; }
  .mail-actions form { flex: 1 1 100%; }
  .mail-actions button { width: 100%; }
  .quick-reply-box { align-items: stretch; }
  .quick-reply-box > *, .quick-reply-box form, .quick-reply-box button, .quick-reply-box .button { width: 100%; }
}
/* Public presentation and request page */
body.public-body { background: #0b0f13; }
.public-body > main { min-height: 100vh; }
.public-site { --public-ink: #111820; --public-dark: #0b0f13; --public-panel: #151b22; --public-blue: #1c5cf2; --public-red: #e12a3a; min-height: 100vh; background: #f2f4f6; color: var(--public-ink); }
.public-header { position: sticky; z-index: 40; top: 0; min-height: 78px; padding: .75rem max(1rem, calc((100vw - 1420px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; background: rgba(11,15,19,.96); color: white; border-bottom: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(16px); }
.public-brand { display: inline-flex; align-items: center; gap: .8rem; color: white; text-decoration: none; }
.public-brand > span:last-child { display: flex; flex-direction: column; line-height: 1.15; }
.public-brand strong { font-size: .98rem; letter-spacing: .035em; text-transform: uppercase; }
.public-brand small { margin-top: .25rem; color: #9fa9b5; font-size: .73rem; }
.public-brand-mark { position: relative; width: 58px; height: 43px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #4c5661; border-radius: .45rem; background: #07090c; color: #e4e8ed; font-weight: 950; font-size: 1.3rem; letter-spacing: .08em; }
.public-brand-mark::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 6px; height: 3px; background: linear-gradient(90deg,#1763f6 0 32%,#fff 32% 66%,#e52b39 66%); }
.public-header nav { display: flex; align-items: center; gap: .25rem; }
.public-header nav > a { padding: .7rem .8rem; color: #cfd5dc; border-radius: .55rem; text-decoration: none; font-size: .9rem; font-weight: 750; }
.public-header nav > a:hover { color: white; background: #222a33; }
.public-header .public-login, .public-login { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .65rem 1rem; border: 1px solid #4d5864; border-radius: .6rem; background: #1b222a; color: white; font-weight: 800; text-decoration: none; }
.public-header nav > .public-login { margin-left: .5rem; color: white; }
.public-hero { min-height: 650px; padding: 5.5rem max(1.25rem, calc((100vw - 1280px) / 2)); display: grid; grid-template-columns: minmax(0,1.05fr) minmax(420px,.95fr); align-items: center; gap: 5rem; overflow: hidden; background: radial-gradient(circle at 78% 32%, rgba(38,80,150,.32), transparent 34%), linear-gradient(135deg,#0a0e12 0%,#111820 58%,#080b0e 100%); color: white; }
.public-hero-copy { position: relative; z-index: 2; max-width: 720px; }
.public-eyebrow { display: inline-flex; align-items: center; gap: .6rem; color: var(--public-blue); font-size: .78rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.public-eyebrow::before { content: ""; width: 28px; height: 3px; background: linear-gradient(90deg,#1763f6 0 33%,#fff 33% 66%,#e52b39 66%); }
.public-hero h1 { max-width: 780px; margin: 1.1rem 0 1.25rem; font-size: clamp(3rem,6.4vw,6.2rem); line-height: .95; letter-spacing: -.065em; }
.public-hero-copy > p { max-width: 680px; margin: 0; color: #c3cbd4; font-size: clamp(1.02rem,1.4vw,1.2rem); line-height: 1.75; }
.public-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.public-hero-actions .button { min-height: 50px; padding: .85rem 1.15rem; }
.public-primary { background: var(--public-blue); color: white; }
.public-secondary { border: 1px solid #4d5864; background: transparent; color: white; }
.public-reassurance { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .65rem 1.25rem; color: #98a3ae; font-size: .82rem; font-weight: 700; }
.public-reassurance span { display: inline-flex; align-items: center; gap: .45rem; }
.public-reassurance span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #2b79ff; box-shadow: 0 0 0 4px rgba(43,121,255,.12); }
.public-hero-visual { position: relative; min-height: 480px; }
.public-hero-visual::before { content: "BRI"; position: absolute; right: -2rem; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.035); font-size: 17rem; font-weight: 950; letter-spacing: -.08em; }
.public-hero-product { position: absolute; overflow: hidden; border: 1px solid rgba(255,255,255,.2); border-radius: 1rem; background: white; box-shadow: 0 35px 90px rgba(0,0,0,.45); }
.public-hero-product img { width: 100%; height: 100%; object-fit: contain; }
.public-hero-product-main { z-index: 2; width: 58%; aspect-ratio: 1; left: 17%; top: 9%; transform: rotate(-4deg); }
.public-hero-product-top { z-index: 3; width: 46%; aspect-ratio: 1.55; right: 0; top: 0; transform: rotate(6deg); }
.public-hero-product-bottom { z-index: 4; width: 45%; aspect-ratio: 1.45; right: 2%; bottom: 2%; transform: rotate(-2deg); }
.public-intro { padding: 6rem max(1.25rem, calc((100vw - 1280px) / 2)) 3rem; background: #f2f4f6; }
.public-intro h2 { max-width: 850px; margin: 1rem 0 .85rem; font-size: clamp(2.1rem,4vw,4.2rem); line-height: 1.03; letter-spacing: -.05em; }
.public-intro > p { max-width: 760px; margin: 0; color: #5d6874; font-size: 1.05rem; line-height: 1.7; }
.public-category-links { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 2rem; }
.public-category-links a { padding: .65rem .9rem; border: 1px solid #cdd3da; border-radius: 999px; background: white; color: #333e49; text-decoration: none; font-size: .86rem; font-weight: 800; }
.public-category-links a:hover { border-color: var(--public-blue); color: var(--public-blue); }
.public-request-form { position: relative; background: #f2f4f6; }
.public-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.public-errors { max-width: 1280px; margin: 0 auto 1rem; padding: 1rem 1.15rem; border: 2px solid #d82432; border-radius: .8rem; background: #fff0f1; color: #811a23; }
.public-errors ul { margin: .5rem 0 0; padding-left: 1.25rem; }
.public-catalog-section { padding: 3rem max(1.25rem, calc((100vw - 1280px) / 2)); scroll-margin-top: 82px; }
.public-catalog-section:nth-of-type(even) { background: #e9edf1; }
.public-section-heading { margin-bottom: 1.25rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.public-section-heading > div { display: flex; align-items: center; gap: .8rem; }
.public-section-heading h2 { margin: 0; font-size: clamp(1.65rem,3vw,2.6rem); letter-spacing: -.04em; }
.public-section-heading > span { color: #68737f; font-size: .84rem; font-weight: 750; }
.public-section-index { display: grid; place-items: center; width: 42px; height: 42px; border-radius: .55rem; background: #111820; color: white; font-family: ui-monospace,monospace; font-size: .82rem; font-weight: 900; }
.public-product-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }
.public-product-card { min-width: 0; overflow: hidden; display: flex; flex-direction: column; border: 1px solid #d6dce2; border-radius: .95rem; background: white; box-shadow: 0 8px 24px rgba(17,24,32,.06); transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.public-product-card:hover { transform: translateY(-3px); box-shadow: 0 16px 35px rgba(17,24,32,.1); }
.public-product-card.is-selected { border-color: var(--public-blue); box-shadow: 0 0 0 3px rgba(28,92,242,.12),0 16px 35px rgba(17,24,32,.1); }
.public-product-image { height: 235px; display: grid; place-items: center; overflow: hidden; background: #f7f8fa; border-bottom: 1px solid #e0e4e8; }
.public-product-image img { width: 100%; height: 100%; object-fit: contain; }
.public-product-content { flex: 1; padding: 1rem; display: flex; flex-direction: column; }
.public-product-reference { align-self: flex-start; padding: .28rem .48rem; border-radius: .4rem; background: #e9eef9; color: #174bc4; font-family: ui-monospace,monospace; font-size: .72rem; font-weight: 900; }
.public-product-content h3 { min-height: 2.7em; margin: .75rem 0 1rem; font-size: 1rem; line-height: 1.35; }
.public-quantity-field { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .75rem; color: #55616d; font-size: .78rem; }
.public-quantity-field input { width: 74px; min-height: 44px; text-align: center; font-weight: 850; }
.public-sizes { margin: auto 0 0; padding: 0; border: 0; }
.public-sizes legend { margin-bottom: .5rem; color: #55616d; font-size: .75rem; font-weight: 800; }
.public-sizes > div { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: .35rem; }
.public-sizes label { min-width: 0; margin: 0; text-align: center; color: #66727e; font-size: .68rem; }
.public-sizes label span { display: block; margin-bottom: .25rem; }
.public-sizes input { min-width: 0; min-height: 42px; padding: .35rem .2rem; text-align: center; font-weight: 850; }
.public-contact-section { padding: 6rem max(1.25rem, calc((100vw - 1280px) / 2)); display: grid; grid-template-columns: minmax(0,.8fr) minmax(520px,1.2fr); gap: 5rem; align-items: start; background: linear-gradient(135deg,#0b0f13,#171f28); color: white; }
.public-contact-copy h2 { margin: 1rem 0 1.1rem; font-size: clamp(2.15rem,4vw,4.1rem); line-height: 1; letter-spacing: -.055em; }
.public-contact-copy > p { color: #b4bec8; line-height: 1.7; }
.public-instagram-card { margin-top: 2rem; padding: .85rem; display: flex; align-items: center; gap: .8rem; border: 1px solid #46515d; border-radius: .75rem; background: rgba(255,255,255,.04); color: white; text-decoration: none; }
.public-instagram-card:hover { border-color: #8391a0; background: rgba(255,255,255,.07); }
.public-instagram-icon { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; border-radius: .7rem; background: linear-gradient(135deg,#6d36d8,#e13a63,#ee942f); font-size: 1.6rem; }
.public-instagram-card span:last-child { display: flex; flex-direction: column; }
.public-instagram-card small { margin-top: .18rem; color: #aeb8c2; }
.public-contact-card { padding: 1.35rem; border: 1px solid #38424d; border-radius: 1rem; background: white; color: var(--public-ink); box-shadow: 0 30px 70px rgba(0,0,0,.25); }
.public-field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.public-field-full { grid-column: 1/-1; }
.public-field-grid label span { color: #7c8792; font-weight: 600; }
.public-field-grid textarea { min-height: 110px; }
.public-privacy { margin: 1rem 0; color: #66717d; font-size: .78rem; line-height: 1.5; }
.public-submit { width: 100%; min-height: 54px; justify-content: space-between; background: var(--public-blue); }
.public-submit strong { padding: .32rem .55rem; border-radius: 999px; background: rgba(255,255,255,.17); font-size: .76rem; }
.public-selection-bar { position: fixed; z-index: 45; left: 50%; bottom: 1rem; transform: translate(-50%,calc(100% + 2rem)); min-width: min(430px,calc(100vw - 2rem)); padding: .65rem .75rem .65rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid #3d4853; border-radius: .8rem; background: rgba(11,15,19,.96); color: white; box-shadow: 0 18px 50px rgba(0,0,0,.35); opacity: 0; transition: transform .2s ease,opacity .2s ease; backdrop-filter: blur(12px); }
.public-selection-bar.is-visible { transform: translate(-50%,0); opacity: 1; }
.public-selection-bar span { font-size: .86rem; }
.public-selection-bar a { padding: .55rem .7rem; border-radius: .5rem; background: var(--public-blue); color: white; text-decoration: none; font-size: .78rem; font-weight: 850; }
.public-footer { padding: 2rem max(1.25rem, calc((100vw - 1280px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 2rem; background: #07090c; color: #aab4be; }
.public-footer > div { display: flex; align-items: center; gap: .8rem; }
.public-footer p { margin: 0; font-size: .78rem; line-height: 1.5; }
.public-footer strong { color: white; }
.public-footer > div:last-child { flex-wrap: wrap; justify-content: flex-end; }
.public-footer a { color: #cbd2d9; text-decoration: none; font-size: .82rem; }
.public-footer a:hover { color: white; }
.public-thanks-page { background: radial-gradient(circle at 75% 25%,rgba(38,80,150,.3),transparent 30%),#0b0f13; color: white; }
.public-thanks { min-height: calc(100vh - 78px); max-width: 860px; margin: auto; padding: 7rem 1.25rem; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.public-thanks-check { width: 64px; height: 64px; margin-bottom: 1.5rem; display: grid; place-items: center; border-radius: 50%; background: #1b6fe6; color: white; font-size: 2rem; box-shadow: 0 0 0 10px rgba(27,111,230,.12); }
.public-thanks h1 { margin: 1rem 0; font-size: clamp(2.5rem,6vw,5rem); line-height: 1; letter-spacing: -.055em; }
.public-thanks > p { max-width: 720px; color: #bdc6cf; font-size: 1.05rem; line-height: 1.7; }
.public-thanks .mono { color: white; }
@media (max-width: 1080px) {
  .public-product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .public-hero { grid-template-columns: minmax(0,1fr) 390px; gap: 2.5rem; }
  .public-contact-section { grid-template-columns: 1fr 1.2fr; gap: 2.5rem; }
}
@media (max-width: 820px) {
  .public-header nav > a:not(.public-login) { display: none; }
  .public-hero { min-height: auto; padding-top: 4rem; padding-bottom: 4rem; grid-template-columns: 1fr; }
  .public-hero-visual { min-height: 430px; max-width: 620px; width: 100%; margin: auto; }
  .public-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .public-contact-section { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .public-header { min-height: 68px; padding: .6rem .75rem; }
  .public-brand-mark { width: 48px; height: 37px; font-size: 1.05rem; }
  .public-brand small { display: none; }
  .public-header .public-login { min-height: 42px; padding: .55rem .7rem; font-size: .76rem; }
  .public-hero { padding: 3.5rem 1rem 2.5rem; gap: 2rem; }
  .public-hero h1 { font-size: clamp(2.8rem,16vw,4.5rem); }
  .public-hero-actions { display: grid; grid-template-columns: 1fr; }
  .public-hero-actions .button { width: 100%; }
  .public-hero-visual { min-height: 300px; }
  .public-hero-visual::before { font-size: 10rem; }
  .public-intro { padding: 4rem 1rem 2rem; }
  .public-intro h2 { font-size: 2.25rem; }
  .public-category-links { flex-wrap: nowrap; margin-right: -1rem; padding-right: 1rem; overflow-x: auto; }
  .public-category-links a { flex: 0 0 auto; }
  .public-catalog-section { padding: 2rem 1rem; }
  .public-section-heading { align-items: center; }
  .public-section-heading > span { display: none; }
  .public-section-heading h2 { font-size: 1.65rem; }
  .public-product-grid { grid-template-columns: 1fr; }
  .public-product-card { display: grid; grid-template-columns: 130px minmax(0,1fr); }
  .public-product-image { height: 100%; min-height: 180px; border: 0; border-right: 1px solid #e0e4e8; }
  .public-product-content { min-width: 0; padding: .8rem; }
  .public-product-content h3 { min-height: 0; margin: .55rem 0 .8rem; font-size: .92rem; }
  .public-sizes > div { gap: .2rem; }
  .public-sizes input { min-height: 38px; font-size: .84rem; }
  .public-quantity-field { flex-direction: column; align-items: stretch; gap: .35rem; }
  .public-quantity-field input { width: 100%; }
  .public-contact-section { padding: 4rem 1rem; }
  .public-contact-copy h2 { font-size: 2.35rem; }
  .public-contact-card { padding: 1rem; }
  .public-field-grid { grid-template-columns: 1fr; }
  .public-field-full { grid-column: auto; }
  .public-footer { align-items: flex-start; flex-direction: column; }
  .public-footer > div:last-child { justify-content: flex-start; }
  .public-selection-bar { bottom: .65rem; min-width: calc(100vw - 1.3rem); }
  .public-thanks { padding: 4rem 1rem; }
}
@media print {
  .topbar, .no-print, .flash { display: none !important; }
  body { background: white; }
  .page { max-width: none; padding: 0; }
  .card { box-shadow: none; break-inside: avoid; }
}

