/* Fluxo Equilíbrio · opção E. Composição e componentes; app.css preserva os fluxos/paginação. */
@media screen {
  body { background:var(--mega-stage); background-attachment:fixed; }
  .minor-heading { font-size:24px; }
  h1,h2,h3 { font-family:var(--mega-display); text-wrap:balance; }
  button,a,input,select,textarea { transition:background-color var(--motion-feedback),border-color var(--motion-feedback),box-shadow var(--motion-feedback); }
  button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:3px solid var(--blue); outline-offset:4px; box-shadow:0 0 0 2px var(--mega-white); }
  .topbar { padding:14px 4vw; border-bottom:1px solid #1a1a1f30; background:transparent; }
  .brand { border-radius:16px 70px 70px 16px; padding:10px 24px 10px 16px; }
  .product-label { font-size:14px; letter-spacing:.16em; }
  .quiet { border-radius:var(--radius-control); background:#ffffffc9; border-color:#1a1a1f3d; font-weight:600; }
  .quiet:hover { background:var(--mega-white); }
  #customer-exit { background:var(--ink); color:var(--mega-white); border-color:var(--ink); }
  .footer { align-items:center; border-top:1px solid #1a1a1f30; }
  .footer-links { align-items:center; gap:20px; }
  .motion-toggle { background:transparent; color:var(--ink); border:1px solid #1a1a1f60; border-radius:8px; font-size:14px; min-height:44px; padding:8px 12px; }
  .motion-toggle:disabled { opacity:1; cursor:default; }
  .eyebrow { font-size:14px; letter-spacing:.14em; font-weight:600; }
  .eyebrow:before { width:8px; height:8px; border-radius:50%; }
  .flow { background:var(--mega-white); border-radius:var(--radius-panel); border:1px solid #1a1a1f1f; box-shadow:var(--shadow-card); }
  .flow-head h1 { letter-spacing:-.045em; }
  .flow-nav { border-bottom:1px solid var(--line); }
  .panel,.invoice,.plan { border-color:var(--line); border-radius:var(--radius-card); }
  .primary { background:var(--orange); border:1px solid #1a1a1f60; color:var(--ink); border-radius:var(--radius-control); font-weight:600; }
  .primary:hover { background:var(--ink); border-color:var(--ink); color:var(--mega-white); }
  .secondary { background:var(--mega-white); color:var(--ink); border:1px solid #8c8c98; border-radius:var(--radius-control); }
  .secondary:hover { background:var(--mist); }
  input,select,textarea { border-color:#85858f; border-radius:var(--radius-control); }
  .customer-context { background:var(--mega-paper); border:1px solid var(--line); border-left:4px solid var(--orange); border-radius:var(--radius-control); padding:12px 16px; font-size:16px; }
  .customer-context strong { font-family:var(--mega-display); font-weight:800; }
  .option { border-color:var(--line); border-radius:var(--radius-card); gap:18px; background:var(--mega-white); position:relative; }
  .option>svg { background:var(--mist); padding:10px; width:52px; height:52px; border-radius:var(--radius-control); }
  .option strong { color:var(--ink); font-family:var(--mega-display); font-size:22px; font-weight:800; letter-spacing:-.045em; }
  .option:hover { background:var(--mega-paper); border-color:var(--blue); }
  .service-options .option:first-child { background:var(--orange); color:var(--ink); border-color:var(--ink); }
  .service-options .option:first-child small { color:var(--ink); }
  .service-options .option:first-child>svg { background:var(--orange); color:var(--ink); }
  .service-options .option:first-child:focus-visible { outline-color:var(--blue); }
  .keypad button { background:var(--mega-mist); color:var(--ink); border:1px solid var(--line); }
  .notice { background:var(--mega-paper); border-color:var(--orange); }
  .payment-summary,.app-promo { background:var(--mega-paper); }
  .score button.selected { background:var(--ink); color:var(--mega-white); outline-color:var(--orange); }
  .badge { border-radius:8px; }
  dialog { background:var(--mega-white); border-radius:var(--radius-panel); box-shadow:0 24px 80px #1a1a1f40; }
  .kiosk .footer { padding-top:4px; padding-bottom:4px; min-height:52px; }
  .kiosk .option>svg { width:48px; height:48px; padding:8px; }
  .kiosk .option strong { font-size:22px; }
  .kiosk .customer-context { font-size:16px; }
  .kiosk .flow-nav { margin-bottom:8px; }
  /* Gestão usa a mesma marca com densidade de trabalho. */
  .is-admin { background:var(--mega-paper); }
  .is-admin .product-label { font-size:0; }
  .is-admin .product-label:after { content:'GESTÃO DO AUTOATENDIMENTO'; font-size:14px; }
  .is-admin .topbar { min-height:84px; }
  .is-admin .flow { margin-top:40px; }
  .is-admin .footer { background:var(--mega-paper); }
  .admin-shell { grid-template-columns:270px minmax(0,1fr); background:var(--mega-paper); }
  .admin-sidebar { background:var(--mega-white); border-right:1px solid var(--line); padding:28px 16px; color:var(--ink); }
  .admin-sidebar .admin-label { display:grid; grid-template-columns:40px 1fr; gap:0 12px; padding:0 12px 24px; border-bottom:1px solid var(--line); margin-bottom:24px; color:var(--ink); letter-spacing:0; }
  .admin-label strong { font-size:18px; }
  .admin-label small { font-size:14px; color:var(--muted); }
  .admin-brand-mark { grid-row:span 2; background:var(--orange); color:var(--ink); display:grid; place-items:center; border-radius:12px; }
  .admin-nav-group { margin-bottom:22px; }
  .admin-nav-heading { padding:0 16px 8px; color:var(--muted); text-transform:uppercase; letter-spacing:.13em; font-size:12px; font-weight:600; }
  .admin-sidebar button { color:var(--ink); border-radius:10px; padding:12px 16px; margin:2px 0; min-height:48px; font-size:16px; }
  .admin-sidebar button svg { width:22px; height:22px; }
  .admin-sidebar button.active { background:var(--orange); color:var(--ink); box-shadow:inset 3px 0 0 var(--ink); }
  .admin-sidebar button:hover:not(.active) { background:var(--mega-paper); color:var(--ink); }
  .admin-sidebar button:focus-visible { outline-color:var(--orange); box-shadow:none; }
  #admin-logout { border-top:1px solid var(--line); border-radius:0; margin-top:16px; }
  .admin-main { padding:36px; max-width:1600px; width:100%; }
  .admin-title { padding-bottom:24px; border-bottom:1px solid var(--line); }
  .admin-title .eyebrow { font-size:12px; margin-bottom:12px; color:var(--muted); }
  .admin-title h1 { font-size:36px; }
  .overview-banner { display:flex; align-items:center; justify-content:space-between; gap:32px; background:var(--orange); color:var(--ink); padding:32px; border-radius:var(--radius-card); margin-bottom:24px; position:relative; }
  .overview-banner .eyebrow { margin-bottom:16px; }
  .overview-banner h2 { font-size:36px; margin-bottom:12px; }
  .overview-banner p { font-size:18px; margin:0; max-width:570px; }
  .overview-emblem { padding:24px; border:1px solid #1a1a1f60; border-radius:50%; }
  .overview-emblem svg { width:64px; height:64px; }
  .metrics { gap:16px; }
  .metric { border-color:var(--line); border-radius:var(--radius-card); box-shadow:var(--shadow-card); border-top:3px solid var(--orange); }
  .metric p { min-height:48px; font-weight:600; color:var(--ink); }
  .metric strong { font-size:32px; font-variant-numeric:tabular-nums; }
  .metric small { font-size:14px; }
  .integration { border-radius:var(--radius-control); border-color:var(--line); }
  .integration strong { color:var(--ink); }
  .table-wrap { border-color:var(--line); border-radius:var(--radius-card); }
  th { background:var(--mega-mist); font-size:14px; }
  tbody tr:last-child td { border-bottom:0; }
  .design-guide-link { display:flex; gap:24px; align-items:center; justify-content:space-between; padding:24px; border:1px solid var(--line); border-left:4px solid var(--orange); border-radius:var(--radius-control); margin-bottom:24px; background:var(--mega-white); }
  .design-guide-link p { margin:4px 0 0; font-size:16px; color:var(--muted); }
}
@media(prefers-reduced-motion:reduce) { *,*:before,*:after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }
@media screen and (min-width:760px) and (max-height:850px) {
  .kiosk .option>svg { width:40px; height:40px; padding:8px; }
  .kiosk:not(.big-text) .option strong { font-size:18px; }
  .kiosk:not(.big-text) .option small { font-size:16px; margin-top:4px; line-height:1.25; }
  .kiosk:not(.big-text) .option { min-height:98px; padding:12px; gap:12px; }
}
@media screen and (max-width:1150px) {
  .admin-shell { grid-template-columns:240px minmax(0,1fr); }
  .admin-main { padding:24px; }
  .metrics { grid-template-columns:1fr 1fr; }
}
@media screen and (max-width:720px) {
  .topbar { padding:10px 16px; }
  .footer { display:flex; align-items:flex-start; flex-direction:column; gap:6px; }
  .footer-links { gap:12px; }
  .customer-context { padding:12px; }
  .customer-context .small-link { font-size:16px; }
  .flow { border-radius:var(--radius-card); }
  .option strong { font-size:20px; }
  .admin-shell { display:block; }
  .admin-sidebar { display:block; padding:12px; }
  .admin-sidebar .admin-label { display:none; }
  .admin-sidebar nav { display:none; }
  .admin-sidebar.menu-open nav { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-top:20px; }
  .admin-nav-group { display:block; margin:0; min-width:0; }
  .admin-nav-heading { display:block; padding-left:12px; }
  .admin-sidebar button { white-space:normal; width:100%; min-width:0; }
  #admin-logout { margin-top:8px; }
  .admin-main { padding:24px 16px; }
  .admin-title h1 { font-size:32px; }
  .overview-banner { padding:24px; gap:12px; }
  .overview-banner h2 { font-size:28px; }
  .overview-banner p { font-size:16px; }
  .overview-emblem { display:none; }
  .metric strong { font-size:24px; }
  .metric p { font-size:16px; }
  .design-guide-link { flex-direction:column; align-items:flex-start; }
}

/* Continuous brand surface and shared navigation. Vector decoration never receives input. */
@media screen {
  body { position:relative; isolation:isolate; }
  .topbar { position:relative; z-index:2; }
  #main { position:relative; }
  .footer { position:relative; z-index:2; }
  #help svg { width:24px; height:24px; color:var(--blue); }
  .flow { margin:24px auto; }
  .flow-head { position:relative; }
  .flow-head:before { content:''; display:block; width:48px; height:5px; border-radius:5px; background:var(--orange); margin-bottom:16px; }
  .kiosk .flow { margin:0 auto; }
  .kiosk .flow-head:before { margin-bottom:10px; height:4px; }
  .flow-nav { padding-bottom:4px; }
  .flow-content { min-width:0; }
  .option { box-shadow:0 3px 12px #1a1a1f04; }
  .plan { border-top:4px solid var(--orange); }
  .plan :is(h3,.minor-heading),.amount { color:var(--ink); }
  .payment-summary { border:1px solid #f0d6bd; }
  .primary { background:var(--mega-action); }
  .notice { border-radius:0 12px 12px 0; }
  #admin-menu-toggle { display:none; }
  .is-admin .topbar { background:var(--mega-stage); }
  .admin-main>.panel,.admin-main>.table-wrap { box-shadow:var(--shadow-card); }
  .overview-banner { background:var(--mega-stage); overflow:hidden; }
  .overview-emblem { border-radius:0; border:0; padding:0; width:210px; height:110px; background:url('/assets/fluxo-conexao.svg') center/contain no-repeat; }
  .overview-emblem svg { display:none; }
  .admin-form h2:not(:first-child) { border-top:1px solid var(--line); padding-top:24px; }
  .table-wrap td { overflow-wrap:anywhere; }
  .permission-grid .checkbox { padding:10px; border-radius:10px; background:var(--mega-paper); }
  .release-list summary { min-height:44px; padding:4px 0; }
  .fluxo-icon-solid { fill:currentColor; stroke:none; }
  .fluxo-icon-help { stroke-width:2.2; }
  .fluxo-icon-help rect { fill:currentColor; stroke:none; }
  .home.home-fluxo { position:relative; isolation:isolate; width:100%; max-width:1640px; min-height:calc(100dvh - 200px); margin:auto; padding:24px 4vw; display:grid; grid-template-columns:1.05fr 1fr; grid-template-rows:minmax(140px,1fr) auto auto; gap:20px 5%; }
  .fluxo-visual { position:relative; pointer-events:none; overflow:visible; grid-column:1; grid-row:1; min-height:0; }
  .fluxo-art { display:block; width:100%; height:100%; object-fit:contain; }
  .home .fluxo-art { width:140%; max-width:none; margin-left:-23%; mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent); }
  .fluxo-shimmer { position:absolute; inset:-10%; background:radial-gradient(ellipse,#fff3,transparent 68%); animation:fluxo-light var(--motion-signal) ease-in-out infinite alternate; }
  .fluxo-intro { position:relative; grid-column:1; grid-row:2; }
  .fluxo-intro h1 { font-size:clamp(40px,4.6vw,76px); line-height:1.03; letter-spacing:-.06em; margin:0; text-wrap:initial; }
  .fluxo-intro p { color:var(--ink); font-size:clamp(18px,1.8vw,28px); margin:18px 0 0; }
  .fluxo-menu { position:relative; z-index:1; grid-column:2; grid-row:1/3; align-self:center; display:flex; flex-direction:column; padding:24px; background:var(--mega-white); border-radius:48px; box-shadow:0 20px 60px #b7460015,0 0 64px #fff5; }
  .fluxo-choice { display:flex; align-items:center; gap:24px; width:100%; min-height:132px; padding:24px; background:var(--mega-white); color:var(--ink); border:0; border-bottom:1px solid var(--line); border-radius:0; text-align:left; font-family:var(--mega-display); font-weight:800; font-size:clamp(22px,2.4vw,36px); letter-spacing:-.045em; line-height:1.2; }
  .fluxo-choice>span { flex:1; }
  .fluxo-choice:last-child { border-bottom:0; }
  .fluxo-choice>svg { width:56px; height:56px; color:var(--blue); flex:none; }
  .fluxo-choice>svg:last-child { width:30px; height:30px; margin-left:auto; stroke-width:2.8; }
  .fluxo-choice.fluxo-primary { background:var(--mega-action); border:2px solid var(--ink); border-radius:26px; margin-bottom:8px; box-shadow:0 4px 10px #0000000c; }
  .fluxo-primary>svg { color:var(--ink); }
  .fluxo-choice:hover { background:var(--paper); }
  .fluxo-primary:hover { background:#ffa335; }
  .fluxo-choice:focus-visible { outline-offset:3px; }
  .fluxo-bottom { grid-column:1/3; grid-row:3; display:flex; align-items:center; justify-content:space-between; gap:16px; padding-top:10px; }
  .fluxo-download,.fluxo-campaigns { display:flex; align-items:center; justify-content:center; gap:14px; background:none; color:var(--ink); border:0; min-height:56px; padding:8px 4px; font-weight:600; }
  .fluxo-download { font-family:var(--mega-display); font-weight:800; font-size:24px; letter-spacing:-.04em; }
  .fluxo-download>svg:first-child { width:38px; height:50px; }
  .fluxo-campaigns { font-size:16px; }
  .fluxo-campaigns:hover,.fluxo-download:hover { text-decoration:underline; text-underline-offset:5px; }
  .kiosk .home.home-fluxo { flex:1; min-height:0; }
  .big-text .fluxo-choice { font-size:clamp(26px,2.7vw,40px); }
  .big-text .fluxo-intro p { font-size:clamp(22px,2vw,32px); }
  .motion-sample .fluxo-visual { height:100%; }
}
@keyframes fluxo-light { from { transform:translateX(-10%); opacity:.15; } to { transform:translateX(10%); opacity:.65; } }
.motion-paused .fluxo-shimmer { animation-play-state:paused!important; }
/* Vertical reference E: the brand, headline and controls keep their approved proportions. */
@media screen and (orientation:portrait) and (min-width:760px) {
  .is-home .product-label { display:none; }
  .is-home .topbar { position:absolute; top:2vh; left:0; width:100%; height:12.2vh; min-height:0; padding:0; border:0; background:transparent; align-items:flex-start; }
  .is-home:has(#demo-strip:not([hidden])) .topbar { top:calc(2vh + 27px); }
  .is-home .topbar .brand { width:55.5vw; height:11.8vh; padding:1.2vh 4.5vw 1.2vh 3vw; border-radius:0 999px 999px 0; display:flex; align-items:center; justify-content:center; }
  .is-home .topbar .brand img { width:100%; height:100%; object-fit:contain; }
  .is-home .header-actions { position:absolute; top:0; right:3.2vw; gap:1.3vw; align-items:center; }
  .is-home #text-size,.is-home #help { border-radius:50%; width:10vw; height:10vw; padding:1vw; border:0; background:#fff; box-shadow:0 8px 18px #96390026; font-size:3.8vw; font-weight:800; justify-content:center; }
  .is-home #help { flex-direction:column; gap:2px; font-size:2.7vw; color:var(--blue); }
  .is-home #help svg { width:4.5vw; height:4.5vw; stroke-width:2.8; }
  .is-home #customer-exit { background:#fff; color:var(--ink); border:0; font-size:2vw; padding:1vw 1.4vw; min-height:54px; border-radius:999px; }
  .is-home #main { padding:0; }
  .is-home .home.home-fluxo { max-width:none; min-height:calc(100dvh - 80px); margin:0; padding:27vh 2.5vw 0; gap:1.5vh; display:flex; flex-direction:column; }
  .is-home.kiosk .home.home-fluxo { min-height:0; }
  .home .fluxo-visual { position:absolute; top:7vh; left:0; width:100%; height:22vh; z-index:-1; }
  .home .fluxo-art { position:absolute; top:50%; transform:translateY(-50%); width:100%; height:auto; margin:0; mask-image:none; }
  .fluxo-intro { flex:none; padding:0 3.5vw; }
  .fluxo-intro h1 { font-size:min(10.7vw,6.4vh); }
  .fluxo-intro p { margin:1.4vh 0 0; font-size:min(4.45vw,2.5vh); line-height:1.18; font-weight:600; letter-spacing:-.04em; }
  .fluxo-menu { position:relative; flex:1; min-height:0; width:100%; align-self:stretch; padding:3.2vh 3.4vw 1.6vh; border-radius:0; mask-image:url('/assets/fluxo-dock.svg'); mask-size:100% 100%; mask-repeat:no-repeat; box-shadow:none; }
  .fluxo-choice { flex:1; min-height:0; font-size:min(5.85vw,3.5vh); gap:4vw; padding:1.4vh 4vw; border-bottom-width:2px; }
  .fluxo-choice>svg { width:min(13vw,7.5vh); height:min(13vw,7.5vh); stroke-width:2.2; }
  .fluxo-choice>svg:last-child { width:6.5vw; height:6.5vw; stroke-width:3; margin-left:0; }
  .fluxo-choice.fluxo-primary { flex:.96; border:3px solid var(--ink); border-radius:3.5vw; margin-bottom:1.4vh; }
  .fluxo-bottom { flex:none; flex-direction:column; gap:0; min-height:10vh; justify-content:center; padding:0; }
  .fluxo-download { font-size:4.4vw; min-height:7vh; padding:0; gap:2.5vw; }
  .fluxo-download>svg:first-child { width:8vw; height:9vh; stroke-width:1.5; }
  .fluxo-download>svg:last-child { width:3.6vw; height:3.6vw; stroke-width:3; }
  .fluxo-campaigns { min-height:44px; padding:2px 8px; font-size:16px; }
  .is-home .footer { background:transparent; border:0; min-height:48px; padding:0 2.5vw; }
  .is-home.big-text .fluxo-choice { font-size:min(6.1vw,3.8vh); }
  .is-home.big-text .fluxo-intro p { font-size:min(4.6vw,2.7vh); }
  .kiosk .service-options { flex:1; grid-template-rows:repeat(3,1fr) .8fr; }
  .kiosk .service-options .option:last-child { background:var(--mega-paper); }
  .kiosk .service-options .option>svg { width:64px; height:64px; }
  .kiosk .flow-head h1 { font-size:clamp(32px,4vw,48px); }
  .kiosk .service-options .option strong { font-size:clamp(24px,2.8vw,32px); }
}
@media screen and (min-width:760px) and (max-height:850px) {
  .home.home-fluxo { gap:12px 4%; padding:14px 2vw; }
  .fluxo-menu { padding:16px; border-radius:32px; }
  .fluxo-choice { min-height:108px; font-size:25px; padding:18px; gap:16px; }
  .fluxo-choice>svg { width:42px; height:42px; }
  .fluxo-intro p { font-size:20px; }
  .kiosk .flow-head:before { display:none; }
}
@media screen and (max-width:759px) {
  .topbar { flex-wrap:nowrap; padding:12px; gap:8px; }
  .topbar .brand { padding:8px 14px 8px 8px; }
  .topbar .brand img { width:120px; height:46px; }
  .header-actions { flex-wrap:nowrap; gap:6px; }
  .topbar .quiet { padding:8px; min-width:40px; font-size:14px; }
  .topbar #help { gap:4px; }
  .topbar #help svg { width:18px; height:18px; }
  .home.home-fluxo { display:flex; flex-direction:column; padding:0 20px 24px; gap:20px; min-height:0; }
  .fluxo-visual { height:160px; flex:none; }
  .home .fluxo-art { width:calc(100% + 40px); margin-left:-20px; }
  .fluxo-intro h1 { font-size:42px; }
  .fluxo-intro p { font-size:19px; margin-top:12px; }
  .fluxo-menu { padding:14px; border-radius:32px; width:100%; }
  .fluxo-choice { padding:18px 10px; gap:14px; min-height:98px; font-size:22px; }
  .fluxo-choice>svg { width:36px; height:36px; }
  .fluxo-choice>svg:last-child { width:20px; height:20px; }
  .fluxo-choice.fluxo-primary { border-radius:20px; }
  .fluxo-bottom { flex-direction:column; gap:0; padding:0; }
  .fluxo-download { font-size:22px; }
  .flow { margin:12px; padding:20px; }
  .flow-head:before { width:36px; margin-bottom:12px; }
  .flow-head h1 { font-size:30px; }
  .panel { padding:20px; }
  .is-admin .flow { margin:16px 12px; }
  #admin-menu-toggle { display:flex; background:var(--mega-action); border:1px solid #1a1a1f40; border-radius:12px; justify-content:space-between; font-weight:600; }
  #admin-menu-toggle>svg:last-child { transition:transform 180ms; }
  #admin-menu-toggle[aria-expanded=true]>svg:last-child { transform:rotate(90deg); }
  .overview-banner { border-radius:24px; }
  .footer { font-size:12px; }
}
@media(prefers-reduced-motion:reduce) { .fluxo-shimmer { animation:none!important; } }
@media print { #motion-toggle,.fluxo-visual,.overview-banner,.design-guide-link,.flow-head:before { display:none!important; } }
