/* Layout compartilhado; a arte e as coordenadas do escritório permanecem intactas. */
:root{color-scheme:dark;--nav-height:72px}
body{line-height:1.5;-webkit-text-size-adjust:100%}
main,aside,section,header>div,.card,.target,.row>*{min-width:0}
input,textarea,select{max-width:100%}
button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}
button{touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #f4c98a;outline-offset:3px}
.header-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.app-navigation{display:flex;gap:6px;align-items:center}
.app-navigation a{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:10px 12px;border-radius:10px;color:#bcb7ae;font-size:13px;text-decoration:none}
.app-navigation a[aria-current=page]{background:#362a1b;color:#f3c88d}
.app-navigation svg{width:20px;height:20px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.page-office header{flex-wrap:wrap}.page-office header>div:first-child{flex:1 1 340px}
.logout-button{background:transparent;color:#c7b9a5;border:1px solid #4c4439;border-radius:9px;min-height:44px;padding:8px 14px;cursor:pointer}
.command-shortcut{display:none}#comandos{scroll-margin-top:16px}
.page-office .layout{clear:both}
.office-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px;border-bottom:1px solid #382f24;background:#191a1c}
.office-toolbar strong{font-size:14px}.office-toolbar .zoom-controls{display:flex;align-items:center;gap:6px}
.office-toolbar button{border:1px solid #524332;border-radius:8px;background:#29251f;color:#f1cf9d;min-width:44px;min-height:44px;padding:8px;font:inherit;cursor:pointer}
.office-toolbar button:disabled{opacity:.4;cursor:default}
.office-toolbar #office-zoom-reset{font-size:12px;min-width:88px}
.office-viewport{width:100%;max-height:72dvh;overflow:auto;overscroll-behavior-x:contain;background:#111315;scrollbar-color:#8b6940 #1a1a1a}
.office-viewport .scene{min-width:0!important;max-width:none;flex-shrink:0}
.office-help{display:none;margin:0;padding:10px 16px;color:#b9afa2;font-size:12px;border-top:1px solid #382f24}
.mobile-panel{margin:0}
.mobile-panel>summary{display:none}
.mobile-panel .panel-content{padding-top:0}
.page-listings aside{padding:0;overflow:hidden}
.page-listings .panel-content{padding:20px}
.page-connections .mobile-panel>summary{display:block;cursor:pointer;font-size:17px;font-weight:600;color:#f2eee8}
.page-connections .mobile-panel .panel-content{padding-top:14px}
.page-connections .mobile-panel{margin-bottom:18px}
.page-connections .panel-content .row>h2{display:none}
.page-connections #new{margin-left:auto}
.page-login{box-sizing:border-box;padding:24px 16px;min-height:100svh}
.page-login main{box-sizing:border-box;width:min(420px,100%);padding:32px}
.page-login input[type=checkbox]{width:20px;height:20px;accent-color:#e9b96f;flex-shrink:0}
.page-login .remember{min-height:44px;line-height:1.5}
.page-login button{font:inherit;font-weight:650}
@media(max-width:1050px) and (min-width:761px){
  .page-connections .layout{grid-template-columns:260px minmax(0,1fr);gap:16px}
  .page-connections .split{grid-template-columns:1fr;gap:0}
  header{flex-wrap:wrap}.header-actions{margin-left:auto}
}
@media(max-width:760px){
  html{scroll-padding-bottom:calc(var(--nav-height) + env(safe-area-inset-bottom) + 16px)}
  body:not(.page-login){padding-bottom:calc(var(--nav-height) + env(safe-area-inset-bottom) + 12px)}
  header{padding:20px 16px!important;display:block!important}
  header h1{font-size:25px!important;line-height:1.2;letter-spacing:-.03em;margin:8px 0 10px}
  header small{font-size:13px;line-height:1.6;display:block;max-width:38em}
  header>div:first-child{width:100%}.header-actions{margin-top:14px;gap:8px}
  .header-actions>.tag{font-size:11px;padding:7px 10px;min-width:0}
  .header-actions>a:not(.app-navigation a){font-size:13px;min-height:44px;display:flex;align-items:center}
  .command-shortcut{border:1px solid #725b39;border-radius:9px;padding:8px 14px;color:#f1c581}
  .app-navigation{position:fixed;bottom:0;left:0;right:0;z-index:30;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:8px 12px calc(8px + env(safe-area-inset-bottom));border-top:1px solid #4a3a29;background:#18191bef;backdrop-filter:blur(16px);box-shadow:0 -5px 24px #0004}
  .app-navigation a{min-height:54px;padding:5px 10px;gap:3px;flex-direction:column;border-radius:10px;font-size:11px;font-weight:600;color:#aca69d}
  .app-navigation svg{width:22px;height:22px}.app-navigation a[aria-current=page]{color:#f1c581;background:#392b1c}
  .layout{width:100%;padding:16px!important;grid-template-columns:minmax(0,1fr)!important;gap:16px!important}
  h2{font-size:20px!important;line-height:1.3}h3{line-height:1.4}
  .card,.aside{padding:18px!important;border-radius:14px;margin-bottom:16px}
  .split{grid-template-columns:minmax(0,1fr)!important;gap:0!important}
  .grid,.target .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  label{font-size:14px;line-height:1.5}
  input:not([type=checkbox]),textarea,select{font-size:16px!important;min-height:48px;padding:12px;border-radius:10px;scroll-margin-top:18px}
  textarea{min-height:120px}input[type=checkbox]{width:20px;height:20px}
  .check{min-height:44px;align-items:flex-start;gap:10px}.check input{margin-top:2px}
  button,.button{min-height:44px;font-size:14px!important;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
  .help,small{font-size:13px;line-height:1.6}
  p,.text,.notice,.badge,.proposal,.connection,legend,#status{overflow-wrap:anywhere}
  .notice{padding:12px 14px;line-height:1.65}
  .mobile-panel>summary{display:flex!important;align-items:center;gap:10px;list-style:none;padding:16px 18px;font-size:16px;font-weight:600;cursor:pointer;color:#e7c393;min-height:52px;margin:0}
  .mobile-panel>summary::marker{content:''}.mobile-panel>summary::-webkit-details-marker{display:none}
  .mobile-panel>summary::after{content:'›';font-size:24px;line-height:20px;margin-left:auto}
  .mobile-panel[open]>summary{border-bottom:1px solid #38312a}.mobile-panel[open]>summary::after{transform:rotate(90deg)}
  .mobile-panel .panel-content{padding:16px!important}
  .page-listings aside{border-radius:14px;padding:0!important;margin-bottom:0}
  .page-connections .mobile-panel{padding:0!important;margin-bottom:10px}
  .page-connections aside{margin-bottom:0}
  .page-connections .panel-content>h2,.page-listings .panel-content>h2{display:none}
  .page-connections .actions,.page-listings .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;position:static;width:100%;padding:12px}
  .page-connections .actions{padding:0}.actions small{grid-column:1/-1}
  #save{grid-column:1/-1}.page-connections #reload{grid-column:1/-1}
  .page-listings .steps{gap:8px;flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px}.step{white-space:nowrap;flex-shrink:0;font-size:11px}
  .page-listings .photos{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.photo img{height:150px}.photo button{width:100%}
  .target{padding:14px;margin:12px 0}.target .row{align-items:flex-start}.target h3{margin:0;flex:1 1 100%}
  .calc{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.calc strong{font-size:18px}.calc>small{grid-column:1/-1}
  .page-listings #account{width:100%!important;flex:1 1 100%!important}.page-listings #target-add{width:100%}
  table{table-layout:fixed;width:100%}td,th{overflow-wrap:anywhere;vertical-align:top;padding:9px 6px}
  .empty{min-height:240px}.empty p{max-width:100%}
  dialog{box-sizing:border-box;width:calc(100vw - 24px)!important;max-width:620px;max-height:calc(100dvh - 32px);padding:20px!important;overflow:auto;border-radius:14px}
  dialog .row{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}dialog button{width:100%}
  #status{margin:12px 16px;line-height:1.6}#status:empty{margin:0}
  .page-office .office{border-radius:14px;padding:0}.page-office .scene-caption{min-width:0;padding:12px 16px;font-size:12px;line-height:1.6}
  .page-office .office-help{display:block}.page-office .office-toolbar{padding:10px 12px;gap:6px}
  .page-office .directory{padding:14px 16px}.directory summary{min-height:44px;line-height:1.5}
  .page-office .rooms{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.directory .room{padding:12px;min-height:100px}.desks{gap:8px}.directory .agent{min-width:0;flex:1}
  .page-office .aside>p:first-of-type{font-size:14px}.page-office .chat{margin-top:16px;padding-top:16px}
  .page-office .chat textarea{min-height:135px}.page-office .conversation{max-height:65dvh}.message{font-size:14px;line-height:1.7}
  .page-office .command-actions #microphone{flex-basis:52px;width:52px}.page-office .command-actions #send{min-height:52px}
  .page-office .footer{padding:8px 16px 16px;font-size:12px}.page-office #voice-status{font-size:12px}
  .page-login{padding:20px 16px;align-content:center}.page-login main{padding:24px}.page-login h1{font-size:25px;line-height:1.3}.page-login button{min-height:50px}
}
@media(max-width:380px){.grid,.target .grid{grid-template-columns:minmax(0,1fr)}.page-listings .photos{gap:8px}.photo img{height:125px}.office-toolbar strong{font-size:12px}.office-toolbar .zoom-controls{gap:4px}.office-toolbar #office-zoom-reset{min-width:72px}.page-office .rooms{grid-template-columns:minmax(0,1fr)}}

.agent-tools{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.agent-tools a{color:#efc280;border:1px solid #514432;border-radius:9px;padding:10px 12px;font-size:13px;text-decoration:none;min-height:44px}.page-learning .app-navigation a{font-size:12px}

[hidden]{display:none!important}

/* Tema visual comum às páginas privadas. O cenário do escritório conserva a arte. */
.theme-toggle{white-space:nowrap;font:600 13px system-ui,sans-serif!important;padding:9px 12px!important;border:1px solid #786446!important;border-radius:9px!important;background:#302b24!important;color:#f7ddb6!important}
html[data-theme=light]{color-scheme:light}
html[data-theme=light] body{background:#f3f5f8;color:#172536;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
html[data-theme=light] header{background:#fff;border-color:#d9dfe7}
html[data-theme=light] :is(aside,.card,.target,.identity-point,dialog,.mobile-panel,.panel-content,.next-action,.price-advice){background:#fff;color:#172536;border-color:#d8dfe8}
html[data-theme=light] :is(h1,h2,h3,strong,label,summary,.text){color:#172536}
html[data-theme=light] :is(p,small,.help,.spec-preview span,.eyebrow){color:#4a5e74}
html[data-theme=light] :is(input,textarea,select){background:#fff;color:#172536;border-color:#aab8c8;accent-color:#27684a}
html[data-theme=light] :is(a,button.link){color:#225ea4}
html[data-theme=light] :is(button,.button){background:#235f9a;color:white}
html[data-theme=light] button.secondary{background:#eaf0f7;color:#244460}
html[data-theme=light] .theme-toggle{background:#eaf0f7!important;color:#244460!important;border-color:#b9c7d6!important}
html[data-theme=light] :is(.badge,.step,.proposal){background:#eaf0f7;color:#354d65}
html[data-theme=light] .proposal.selected{border-color:#23699e}
html[data-theme=light] .actions{background:#fff;border-color:#aab9c8;box-shadow:0 8px 24px #17253620}
html[data-theme=light] .notice{background:#f9f1dc;color:#665012;border-color:#c7a349}
html[data-theme=light] :is(.calc,.calc strong,.good){color:#1d6548}
html[data-theme=light] .calc{background:#eaf5ee;border-color:#abcdb9}
html[data-theme=light] :is(.error,.danger){color:#a22828}
html[data-theme=light] .warning{color:#845709}
html[data-theme=light] :is(td,th,.spec-preview,.review-panel[open]>summary){border-color:#d8dfe8}
html[data-theme=light] .spec-preview strong{color:#172536}
html[data-theme=light] .app-navigation{background:#fff;border-color:#d8dfe8}
html[data-theme=light] .app-navigation a[aria-current=page]{background:#e5eef9;color:#225ea4}
html[data-theme=light] .connection,.page-learning article,.farol-row,.query-card{background:#fff;color:#172536;border-color:#d8dfe8}
.account-selector{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:16px 0}.account-choice{border:1px solid #4a4540;border-radius:9px;margin:0;padding:12px}.candidate-photo{padding-bottom:12px}.candidate-photo>a,.candidate-photo>button{display:block;margin:9px}.candidate-photo details{padding:0 10px;font-size:12px}.price-advice{padding:14px;border:1px solid #4a4540;border-radius:10px;margin:14px 0}
#publication-farol{display:flex;align-items:center;gap:10px!important;color:inherit!important;padding:8px 0!important}
.traffic-signal{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;background:linear-gradient(#30353b,#13171c);border:1px solid #4a5159;border-radius:22px;box-shadow:inset 0 1px 2px #ffffff20,0 2px 5px #0002;flex-shrink:0}
.traffic-signal .lamp{display:block;width:19px;height:19px;border-radius:50%;background:#33383c;border:1px solid #080b0d;box-shadow:inset 0 2px 4px #0008;opacity:.35}.traffic-signal .red{background:#af342f}.traffic-signal .yellow{background:#c99a23}.traffic-signal .green{background:#228459}.traffic-signal .lamp.lit{opacity:1}.traffic-signal .red.lit{background:radial-gradient(circle at 38% 30%,#ffe1d9,#ff514a 35%,#be2020 80%);box-shadow:0 0 9px #ff504a88}.traffic-signal .yellow.lit{background:radial-gradient(circle at 38% 30%,#fff8cc,#ffcf42 35%,#c58b13 80%);box-shadow:0 0 9px #ffd24a88}.traffic-signal .green.lit{background:radial-gradient(circle at 38% 30%,#d9ffeb,#38dd89 35%,#138653 80%);box-shadow:0 0 9px #3ee69188}
@media(max-width:600px){.account-selector{grid-template-columns:1fr}.theme-toggle{align-self:start}.header-actions{flex-wrap:wrap}.traffic-signal .lamp{width:17px;height:17px}}
html[data-theme=light] .photo{background:#fff;border-color:#c5d0dc;color:#172536}
html[data-theme=light] .photo img{background:#fff}
html[data-theme=light] button.link{background:transparent;color:#225ea4}
html[data-theme=light] .candidate-photo>details{background:#fff}
html[data-theme=light] .account-choice{border-color:#bdcad8}
.account-choice button{margin-left:auto;font-size:12px;padding:6px 8px}

/* Ofertas compactas: um conteúdo base, condições por destino. */
.offer-row{padding:12px 14px;border:1px solid var(--border,#514b41);border-radius:12px;margin:10px 0;min-width:0}
.offer-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:8px}.offer-heading .link{margin-left:auto}
.offer-fields{display:grid;grid-template-columns:minmax(200px,1fr) minmax(125px,165px) minmax(125px,165px);gap:10px;align-items:end}.offer-fields label{font-size:12px;margin:0}.offer-fields input{padding:10px;font-size:14px}.offer-details{margin-top:10px}.offer-details>summary{font-size:13px}.offer-details[open]>summary{margin-bottom:15px}
.identity-origin{padding:12px;border-left:3px solid #28a563;margin:12px 0}.identity-origin p{margin:4px 0}
@media(max-width:700px){.offer-fields{grid-template-columns:1fr 1fr}.offer-fields label:first-child{grid-column:1/-1}.offer-row{padding:12px}.offer-heading strong{font-size:14px}.offer-fields input{width:100%;min-width:0}}
