﻿/* Shared mobile design system */
:root { --bnf-bg:#0b0a0a; --bnf-surface:#191613; --bnf-field:#100e0d; --bnf-border:#4a3a2c; --bnf-gold:#e8bd82; --bnf-text:#f6f3ee; --bnf-muted:#c4b8aa; }
.shell { max-width: 600px; padding-left: max(20px,env(safe-area-inset-left)); padding-right: max(20px,env(safe-area-inset-right)); }
.app-header { padding-bottom: 4px; }.app-nav { min-height: 64px; padding-bottom: max(8px,env(safe-area-inset-bottom)); }.app-nav button { min-width: 0; min-height: 48px; font-size: 10px; }.app-nav button span { overflow: hidden; max-width: 100%; text-overflow: ellipsis; }
.promotions,.demand-screen,.public-card-screen { min-width: 0; }.promotions h2,.demand-screen h2 { overflow-wrap: anywhere; line-height: 1.15; }.page-description,.screen-intro { max-width: 36ch; color: var(--bnf-muted); font-size: 13px; line-height: 1.55; }
.promotions > button[data-open],.public-back { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; margin: 0 0 21px; padding: 8px 0; background: transparent!important; color: var(--bnf-gold)!important; font-size: 13px; }.promotions > button[data-open] i { font-size: 15px; }
.promotions input:not([type=checkbox]):not([type=file]),.promotions select,.promotions textarea { min-height: 48px; border: 1px solid var(--bnf-border); border-radius: 10px; background: var(--bnf-field); color: var(--bnf-text); font-size: 16px; }.promotions textarea { line-height: 1.5; }.promotions label { color: #e6ddd1; font-size: 13px; font-weight: 500; }
.promotions input[type=file] { max-width: 100%; padding: 11px; border: 1px dashed #6d5641; border-radius: 10px; background: #211b17; color: var(--bnf-muted); line-height: 1.4; }.promotions input[type=file]::file-selector-button { margin-right: 10px; padding: 8px 10px; border: 0; border-radius: 7px; background: #3a3028; color: #f3dfc2; font: inherit; font-size: 12px; }
.promotions button:not(.promotion) { min-height: 44px; border-radius: 10px; }.promotions button:focus-visible,.demand-screen button:focus-visible,.demand-screen input:focus-visible,.demand-screen textarea:focus-visible,.public-card-screen button:focus-visible,.public-card-screen a:focus-visible { outline: 2px solid var(--bnf-gold); outline-offset: 3px; }
#company-message:not(:empty),#social-message:not(:empty),#my-promo-message:not(:empty),#scanner-config-status:not(:empty),#whatsapp-message:not(:empty),#overview-message:not(:empty),#register-message:not(:empty),#reset-message:not(:empty) { padding: 12px 14px; border: 1px solid #4b3c2f; border-radius: 10px; background: #211b17; color: #ead5b8; font-size: 13px; line-height: 1.5; }
#company-add,#social-add,#my-promo-add { min-width: 120px; background: #28211c!important; color: #f1d0a0!important; border: 1px solid #745b42!important; }#company-save,#social-save,#my-promo-save { min-width: 120px; }
.company-row,.social-editor-row { margin: 14px 0; padding: 18px; border: 1px solid var(--bnf-border); border-radius: 14px; background: var(--bnf-surface); }.company-row h3,.social-editor-row h3 { margin: 0 0 4px; color: var(--bnf-text); font-size: 17px; overflow-wrap: anywhere; }.editor-section { padding-top: 17px; margin-top: 17px; border-top: 1px solid #3a3028; }.editor-section h4 { margin: 0 0 10px; color: var(--bnf-gold); font-size: 12px; font-weight: 650; letter-spacing: .02em; }.editor-section label,.social-editor-row label { margin-top: 12px; }.editor-hint { display: block; margin-top: 9px; color: var(--bnf-muted); font-size: 12px; line-height: 1.4; }.promotions .editor-remove { margin-top: 18px; background: transparent!important; color: #e5b7aa!important; border: 1px solid #60413a!important; }.editor-media button { background: #30261f!important; color: #f1d0a0!important; border: 1px solid #73583e!important; }
#register details { line-height: 1.5; }#register details summary { cursor: pointer; color: #efcf9e; }#register label:has(input[type=checkbox]) { display: flex; align-items: flex-start; gap: 8px; line-height: 1.5; }#register input[type=checkbox] { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: #e8bd82; }
#promotion-list .promotion-copy strong { overflow-wrap: anywhere; }.promotion-source,.promotion-area { overflow-wrap: anywhere; }#detail-image { object-fit: contain; background: #171412; }.highlight-card img { object-fit: contain; background: #171412; }
#overview-content { padding: 18px; border: 1px solid var(--bnf-border); border-radius: 14px; background: var(--bnf-surface); }#overview-content h3 { margin: 0 0 6px; }#overview-referral { overflow-wrap: anywhere; }#overview-copy,#overview-share-card,#whatsapp-send { width: 100%; margin-right: 0; }
#scanner .ename-scanner { margin: 16px 0 0; padding: 16px; border: 1px solid var(--bnf-border); border-radius: 14px; background: var(--bnf-surface); box-shadow: none; }#scanner [data-scanner-actions] { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }#scanner [data-scanner-actions] label { position: relative; display: grid; place-items: center; min-height: 52px; margin: 0; padding: 10px; border: 1px solid #8f704e; border-radius: 10px; color: #f1d0a0; text-align: center; overflow: hidden; }#scanner [data-scanner-actions] input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }#scanner [data-scanner-actions] label:focus-within { outline: 2px solid var(--bnf-gold); outline-offset: 2px; }
.public-contacts { grid-template-columns: repeat(auto-fit,minmax(65px,1fr)); }.public-identity h1,.public-company strong,.demand-text { overflow-wrap: anywhere; }.public-card-screen .public-offer { min-height: 48px; }.demand-heading { flex-wrap: wrap; }.demand-heading button { min-height: 44px; }.demand-actions a { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 340px) { .shell { padding-left: 16px; padding-right: 16px; }.app-nav button { font-size: 9px; }.company-row,.social-editor-row { padding: 14px; }#scanner [data-scanner-actions] { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration: .01ms!important; transition-duration: .01ms!important; scroll-behavior: auto!important; } }
