/* v0.5 navigation + server-side language UI */
.global-language{position:fixed;top:18px;right:18px;z-index:80}.language-switcher{display:inline-flex;gap:3px;padding:3px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.94);box-shadow:0 8px 24px rgba(17,24,39,.06);backdrop-filter:blur(10px)}.language-option{min-width:34px;padding:6px 8px;border-radius:999px;text-align:center;font-size:10px;font-weight:900;letter-spacing:.04em;color:#788396}.language-option:hover{color:#111827}.language-option.active{background:#111827;color:#fff}.sidebar .language-switcher{width:100%;justify-content:center;border-color:#27334a;background:#111b2b;box-shadow:none}.sidebar .language-option{color:#8995a9}.sidebar .language-option.active{background:#fff;color:#111827}.business-context{margin:0 0 22px;padding:11px;border:1px solid #253044;background:#172133;border-radius:15px}.business-context>small{display:block;margin:0 4px 7px;color:#748198;font-size:9px;letter-spacing:.09em;text-transform:uppercase;font-weight:900}.business-switcher select{width:100%;min-width:0;border:0;background:#172133;color:#fff;font-size:13px;font-weight:800;outline:none;cursor:pointer;padding:2px}.business-switcher option{background:#fff;color:#111827}.sidebar-primary{display:grid;gap:6px}.sidebar-user{padding:11px 12px 9px;margin-top:10px;border-top:1px solid #222e42}.sidebar-user strong,.sidebar-user small{display:block;overflow:hidden;text-overflow:ellipsis}.sidebar-user strong{color:#fff;font-size:12px}.sidebar-user small{color:#7f8ba0;font-size:10px;margin-top:3px}.sidebar-language{padding:7px 8px 2px}.sidebar-simple .sidebar-spacer{flex:1}.offers-list{padding:8px 20px}.offers-list-row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:17px 4px;border-bottom:1px solid #eef0f3;transition:.16s}.offers-list-row:last-child{border-bottom:0}.offers-list-row:hover{padding-left:8px}.offers-list-row>div:first-child{display:grid;grid-template-columns:12px 1fr;column-gap:10px;align-items:center}.offers-list-row strong,.offers-list-row small{display:block}.offers-list-row>div:first-child strong{font-size:14px}.offers-list-row>div:first-child small{grid-column:2;color:#8d98aa;font-size:11px;margin-top:3px}.offers-list-meta{display:flex;align-items:center;gap:16px;color:#687386}.offers-list-meta strong{font-size:13px;color:#111827}.offers-empty{text-align:center;padding:54px 20px}.offers-empty h2{margin:0 0 8px}.offers-empty p{margin:0 auto 18px;max-width:440px;color:var(--muted);line-height:1.55}.analytics-metrics{grid-template-columns:1fr 1fr;max-width:760px}.analytics-grid{display:grid;grid-template-columns:1.35fr .8fr;gap:16px}.analytics-source-list{display:grid}.analytics-source-row{display:flex;justify-content:space-between;gap:20px;padding:12px 0;border-bottom:1px solid #eef0f3;font-size:13px}.analytics-source-row:last-child{border-bottom:0}.analytics-source-row span{color:#667085}.copy-button.copied{box-shadow:inset 0 0 0 2px #31b66f}.auth-shell+.global-language{display:none}
@media(max-width:980px) and (min-width:701px){.sidebar{width:220px;padding:20px 14px}.sidebar .brand span:last-child{display:inline;font-size:14px}.side-link{font-size:12px;justify-content:flex-start}.side-link span{font-size:15px}.app-main{margin-left:220px}.business-context{padding:9px}.sidebar-user{display:block}.sidebar-language{display:block}.analytics-grid{grid-template-columns:1fr}}
@media(max-width:700px){.global-language{top:12px;right:12px}.sidebar{position:relative;inset:auto;width:100%;height:auto;padding:14px 16px;display:grid;grid-template-columns:auto 1fr;gap:10px 12px;align-items:center}.sidebar .brand{margin:0;padding:0}.business-context{margin:0;min-width:0}.sidebar-primary{grid-column:1/-1;display:flex;gap:5px;overflow-x:auto;padding-bottom:2px}.side-link{font-size:11px!important;white-space:nowrap;justify-content:center;padding:9px 10px}.side-link span{font-size:14px}.sidebar-spacer{display:none}.sidebar-user{display:none}.sidebar-language{grid-column:1/2;padding:0}.logout-form{grid-column:2/3;margin:0}.logout-form .side-link{margin-left:auto}.app-main{margin-left:0!important;padding:22px 16px 56px}.topbar{align-items:flex-start}.topbar h1{font-size:28px}.analytics-metrics{grid-template-columns:1fr 1fr}.analytics-grid{grid-template-columns:1fr}.offers-list{padding:4px 14px}}

/* v0.6.5 mobile app readability + touch polish */
@media(max-width:700px){
  html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
  .app-shell{font-size:16px;line-height:1.5}
  .app-shell .sidebar{grid-template-columns:auto minmax(0,1fr) auto!important;grid-template-areas:"brand business business" "nav nav nav" "lang account logout"!important;gap:10px 10px!important;padding:14px 14px 12px!important;align-items:center!important;background:#0f1725}
  .app-shell .sidebar>.brand{grid-area:brand!important;margin:0!important;padding:0!important;font-size:15px!important}
  .app-shell .sidebar .brand-mark{width:36px!important;height:36px!important;border-radius:11px!important;font-size:14px!important}
  .app-shell .business-context{grid-area:business!important;margin:0!important;padding:9px 11px!important;border-radius:14px!important}
  .app-shell .business-context>small{font-size:10.5px!important;line-height:1.2!important;margin-bottom:5px!important;letter-spacing:.075em!important}
  .app-shell .business-switcher{margin:0!important}
  .app-shell .business-switcher select{min-height:34px!important;padding:5px 4px!important;font-size:16px!important;line-height:1.25!important}
  .app-shell .sidebar-primary{grid-area:nav!important;display:flex!important;gap:7px!important;overflow-x:auto!important;padding:2px 0 4px!important;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .app-shell .sidebar-primary::-webkit-scrollbar{display:none}
  .app-shell .side-link{min-height:44px!important;width:auto!important;padding:10px 12px!important;border-radius:12px!important;font-size:13px!important;line-height:1.2!important;font-weight:760!important;gap:8px!important;white-space:nowrap!important;justify-content:center!important}
  .app-shell .side-link span{width:18px!important;font-size:16px!important}
  .app-shell .sidebar-primary .side-link.active{box-shadow:inset 0 -3px 0 var(--accent)!important}
  .app-shell .sidebar>.side-link{grid-area:account!important;justify-self:center!important}
  .app-shell .sidebar-language{grid-area:lang!important;padding:0!important}
  .app-shell .sidebar-language .language-switcher{width:auto!important;gap:2px!important;padding:3px!important}
  .app-shell .sidebar-language .language-option{min-width:36px!important;min-height:36px!important;padding:7px 8px!important;font-size:11px!important;line-height:1!important}
  .app-shell .logout-form{grid-area:logout!important;margin:0!important;justify-self:end!important}
  .app-shell .logout-form .side-link{margin:0!important}
  .app-shell .sidebar-user,.app-shell .sidebar-spacer{display:none!important}

  .app-shell .app-main{margin-left:0!important;padding:22px 14px 54px!important;max-width:none!important}
  .app-shell .topbar{gap:14px!important;margin-bottom:22px!important;align-items:flex-start!important}
  .app-shell .topbar h1{font-size:30px!important;line-height:1.04!important;letter-spacing:-.04em!important}
  .app-shell .kicker{font-size:11.5px!important;line-height:1.2!important;letter-spacing:.11em!important;margin-bottom:7px!important}
  .app-shell .btn{min-height:44px!important;padding:11px 15px!important;border-radius:12px!important;font-size:14px!important;line-height:1.2!important;font-weight:780!important}
  .app-shell .btn-large{min-height:48px!important;font-size:15px!important}
  .app-shell .tiny{font-size:13px!important;line-height:1.55!important}
  .app-shell .alert{padding:13px 14px!important;font-size:14px!important;line-height:1.45!important}

  .app-shell .metrics-grid{gap:12px!important;margin-bottom:12px!important}
  .app-shell .metric-card{padding:18px!important;border-radius:17px!important}
  .app-shell .metric-card>span{font-size:13px!important;line-height:1.25!important}
  .app-shell .metric-card>strong{font-size:34px!important;line-height:1!important;margin:9px 0 6px!important}
  .app-shell .metric-card>small{font-size:12.5px!important;line-height:1.35!important}
  .app-shell .metric-card .metric-title{font-size:22px!important;line-height:1.12!important}

  .app-shell .dashboard-grid,.app-shell .analytics-grid{gap:12px!important}
  .app-shell .panel{padding:18px!important;border-radius:18px!important}
  .app-shell .panel-head{gap:12px!important;margin-bottom:16px!important}
  .app-shell .panel h2,.app-shell .form-panel>h2,.app-shell .schedule-panel>h2{font-size:20px!important;line-height:1.15!important}
  .app-shell .text-link{font-size:14px!important;line-height:1.3!important}
  .app-shell .bar-chart{height:205px!important;gap:7px!important;padding-top:26px!important}
  .app-shell .bar span{top:-21px!important;font-size:11.5px!important}
  .app-shell .bar-col small{font-size:11.5px!important;padding-bottom:8px!important}
  .app-shell .qr-wrap{gap:16px!important}
  .app-shell .qr-wrap p{font-size:14.5px!important;line-height:1.55!important}
  .app-shell .offer-row,.app-shell .source-row,.app-shell .analytics-source-row{min-height:52px!important;padding:13px 0!important;font-size:14px!important}
  .app-shell .offer-row-main strong{font-size:14.5px!important;line-height:1.3!important}
  .app-shell .offer-row-main small{font-size:12.5px!important;line-height:1.35!important;margin-top:4px!important}
  .app-shell .icon-btn{width:40px!important;height:40px!important;border-radius:11px!important;font-size:16px!important}
  .app-shell .source-row span,.app-shell .analytics-source-row span{font-size:14px!important}
  .app-shell .share-strip{padding:16px!important;border-radius:17px!important;gap:13px!important}
  .app-shell .share-strip strong{font-size:13.5px!important}
  .app-shell .share-strip span{font-size:12.5px!important;line-height:1.45!important}

  .app-shell .offers-list{padding:4px 14px!important}
  .app-shell .offers-list-row{min-height:62px!important;padding:15px 2px!important;gap:14px!important}
  .app-shell .offers-list-row>div:first-child strong{font-size:15px!important;line-height:1.3!important}
  .app-shell .offers-list-row>div:first-child small{font-size:12.5px!important;line-height:1.3!important}
  .app-shell .offers-list-meta{gap:12px!important}
  .app-shell .offers-list-meta strong{font-size:14px!important}
  .app-shell .offers-empty{padding:42px 12px!important}
  .app-shell .offers-empty h2{font-size:22px!important}
  .app-shell .offers-empty p,.app-shell .empty-state.compact,.app-shell .empty-line{font-size:14px!important;line-height:1.55!important}

  .app-shell .form-panel{padding:19px!important}
  .app-shell .field-grid{gap:15px!important}
  .app-shell .form-stack label,.app-shell .field{gap:8px!important;font-size:14px!important;line-height:1.35!important;font-weight:760!important}
  .app-shell .form-stack input,.app-shell .field input,.app-shell .field textarea,.app-shell .field select{min-height:48px!important;padding:12px 13px!important;border-radius:12px!important;font-size:16px!important;line-height:1.35!important}
  .app-shell .field textarea{min-height:124px!important}
  .app-shell .field small{font-size:12.5px!important;line-height:1.45!important;margin-top:3px!important}
  .app-shell input[type=file]{font-size:14px!important;line-height:1.35!important}
  .app-shell .form-actions{margin-top:20px!important}
  .app-shell .toggle-row{min-height:58px!important;padding:14px!important;border-radius:13px!important}
  .app-shell .toggle-row strong{font-size:14px!important;line-height:1.3!important}
  .app-shell .toggle-row small{font-size:12.5px!important;line-height:1.4!important;margin-top:3px!important}
  .app-shell .toggle-row input{width:22px!important;height:22px!important;flex:0 0 22px!important}
  .app-shell .danger-zone{padding:16px!important}
  .app-shell .account-summary{gap:12px!important}
  .app-shell .account-summary strong{font-size:14.5px!important;overflow-wrap:anywhere}
  .app-shell .account-summary span{font-size:12.5px!important;line-height:1.35!important}
  .app-shell .form-panel>p.muted{font-size:14px!important;line-height:1.55!important}

  .app-shell .offer-item-card{padding:18px!important;border-radius:18px!important}
  .app-shell .offer-item-head{gap:12px!important;margin-bottom:17px!important}
  .app-shell .offer-item-head h2{font-size:24px!important;line-height:1!important}
  .app-shell .offer-item-kicker{font-size:11.5px!important;line-height:1.2!important;letter-spacing:.1em!important}
  .app-shell .offer-item-remove{min-height:40px!important;padding:9px 11px!important;font-size:13px!important}
  .app-shell .add-offer-item{min-height:46px!important;font-size:14px!important}
  .app-shell .price-color-field legend{font-size:13.5px!important;line-height:1.3!important}
  .app-shell .price-color-choice{min-height:46px!important;padding:0 11px!important;font-size:13.5px!important;line-height:1.2!important}
  .app-shell .price-color-dot{width:16px!important;height:16px!important}

  .app-shell .poster-builder-intro p{font-size:14.5px!important;line-height:1.6!important}
  .app-shell .poster-controls{gap:12px!important}
  .app-shell .poster-control-card{padding:18px!important;border-radius:17px!important}
  .app-shell .poster-control-head{margin-bottom:13px!important}
  .app-shell .poster-control-head h2{font-size:18px!important;line-height:1.2!important}
  .app-shell .poster-control-head p{font-size:13px!important;line-height:1.5!important;margin-top:5px!important}
  .app-shell .poster-chip{min-height:42px!important;padding:10px 13px!important;font-size:13.5px!important;line-height:1.2!important}
  .app-shell .poster-template-option{min-height:112px!important;padding:11px!important;border-radius:14px!important}
  .app-shell .poster-template-option strong{font-size:13.5px!important;line-height:1.25!important}
  .app-shell .poster-template-option small{display:block!important;font-size:11.5px!important;line-height:1.35!important;margin-top:4px!important}
  .app-shell .poster-template-swatch{height:56px!important;margin-bottom:9px!important}
  .app-shell .poster-suggestion{min-height:36px!important;padding:8px 10px!important;font-size:12px!important;line-height:1.2!important}
  .app-shell .poster-source-note,.app-shell .poster-save-note,.app-shell .poster-print-note{font-size:12.5px!important;line-height:1.5!important}
  .app-shell .poster-tracking-details summary{padding:14px 0!important;font-size:13.5px!important;line-height:1.3!important}
  .app-shell .poster-tracking-url{font-size:12.5px!important;line-height:1.5!important}
  .app-shell .poster-range-control{font-size:12.5px!important;line-height:1.4!important}
  .app-shell .poster-range-control strong,.app-shell .poster-layout-group strong{font-size:13.5px!important}
  .app-shell .poster-layout-group small{font-size:12px!important;line-height:1.45!important}
  .app-shell .poster-remove-background{font-size:13px!important;line-height:1.4!important}
  .app-shell .poster-preview-toolbar span{font-size:11.5px!important;line-height:1.2!important}
  .app-shell .poster-custom-color-copy strong,.app-shell .poster-custom-image-copy strong,.app-shell .poster-public-link-head strong{font-size:13.5px!important;line-height:1.3!important}
  .app-shell .poster-custom-color-copy small,.app-shell .poster-custom-image-copy small,.app-shell .poster-public-link-head small{font-size:12px!important;line-height:1.45!important}
  .app-shell .poster-color-picker{min-height:46px!important;font-size:13px!important}
  .app-shell .poster-public-url{font-size:12.5px!important;line-height:1.45!important}
}

@media(max-width:520px){
  .app-shell .topbar{flex-direction:column!important;align-items:stretch!important}
  .app-shell .topbar>.btn{width:100%!important}
  .app-shell .topbar h1{font-size:29px!important}
  .app-shell .panel{padding:17px!important}
  .app-shell .share-actions{width:100%!important}
  .app-shell .share-actions>*{flex:1 1 0!important}
  .app-shell .form-actions{justify-content:stretch!important}
  .app-shell .form-actions .btn{width:100%!important}
  .app-shell .account-summary{align-items:flex-start!important;flex-direction:column!important}
  .app-shell .danger-zone .btn{width:100%!important}
}

@media(max-width:390px){
  .app-shell .app-main{padding-left:12px!important;padding-right:12px!important}
  .app-shell .sidebar{padding-left:12px!important;padding-right:12px!important}
  .app-shell .side-link{padding-left:10px!important;padding-right:10px!important;font-size:12.5px!important}
  .app-shell .metrics-grid{grid-template-columns:1fr!important}
  .app-shell .metric-card.accent{grid-column:auto!important}
  .app-shell .analytics-metrics{grid-template-columns:1fr!important}
  .app-shell .qr-wrap{flex-direction:column!important}
  .app-shell .poster-template-row{grid-template-columns:1fr 1fr!important}
}
