:root {
    --wine: #44232d;
    --gold: #ddc6a0;
    --paper: #f7f5f0;
    --ink: #332c29;
    --muted: #776e67;
    --line: #e4ded4;
    --sidebar-width: 300px;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    font-synthesis: none;
    font-size: 15px;
    line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
svg { flex-shrink: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #a88859; outline-offset: 5px; }
h1, h2, h3, p { overflow-wrap: break-word; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 20; padding: 12px 18px; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); padding: 34px 22px 24px; background: var(--wine); color: #f7f0e8; display: flex; flex-direction: column; z-index: 10; }
.sidebar-heading { padding: 0; }
.brand { display: block; text-decoration: none; }
.brand-stack { --brand-height: 44px; --copy-width: 114px; --brand-gap: 18px; --icon-gap: 12px; display: flex; align-items: flex-start; justify-content: center; gap: var(--brand-gap); margin: 0 auto; }
.brand-stack img { display: block; max-width: 100%; height: auto; }
.brand-stack .hotel-logo { width: auto; max-width: none; height: var(--brand-height); flex-shrink: 0; }
.solution-brand { display: flex; align-items: flex-start; gap: var(--icon-gap); color: #f7f0e8; flex-shrink: 0; }
.solution-brand .solution-icon { width: auto; height: var(--brand-height); object-fit: contain; flex-shrink: 0; filter: brightness(0) invert(1); }
.solution-copy { display: flex; flex-direction: column; justify-content: space-between; width: var(--copy-width); height: var(--brand-height); padding-block: calc(var(--brand-height) * .07); }
.solution-name { display: block; width: 100%; height: auto; flex-shrink: 0; }
.solution-copy .developer-logo { width: 100%; height: auto; }
.sidebar .brand-stack { --brand-gap: 22px; width: 100%; flex-direction: column; align-items: center; }
.sidebar .hotel-logo { width: 100%; height: auto; }
.sidebar .solution-brand { width: 94%; gap: 6.25%; }
.sidebar .solution-icon { width: 34.375%; height: auto; }
.sidebar .solution-copy { width: 59.375%; height: auto; aspect-ratio: 114 / 44; padding-block: 1.6%; }
.sidebar-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); flex-shrink: 0; gap: 6px; margin: 16px 0; padding: 8px 0; border-block: 1px solid #ffffff26; }
.sidebar-action { display: grid; place-items: center; min-width: 0; min-height: 36px; padding: 7px; border: 1px solid #ffffff40; border-radius: 4px; color: #eadfd5; background: transparent; text-decoration: none; }
.sidebar-action:not(:disabled):hover { color: var(--gold); background: #ffffff0e; border-color: #ddc6a02b; }
.sidebar-action:disabled { color: #a18a92; }
.sidebar-action svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.action-label { display: none; }
.hotel-symbol, .developer-symbol, .mobile-home-action, .expand-mark { display: none; }
.brand-stack .developer-symbol { display: none; }
.sidebar nav { padding-top: 0; }
.sidebar-content { display: flex; flex: 1; flex-direction: column; overflow-y: auto; min-height: 0; }
.nav-caption { display: block; padding: 0 15px; margin: 0 0 15px; font-size: 12px; letter-spacing: 1.8px; font-weight: 600; color: #c7b2b9; }
.nav-item { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 5px 0; border: 1px solid transparent; border-radius: 5px; text-decoration: none; font-size: 15px; background: transparent; color: #e0d2d6; text-align: left; }
.nav-item svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.nav-item.active { background: #ffffff0e; color: #f0d8b2; border-color: #ddc6a02b; }
a.nav-item:hover { background: #ffffff12; }
.nav-arrow { margin-left: auto; font: 22px Georgia, serif; }
.nav-item:disabled { color: #c3aeb5; }
.soon { margin-left: auto; font-size: 12px; white-space: nowrap; }
.sidebar-footer { margin: auto 12px 0; padding-top: 60px; }
.user-profile { border-top: 1px solid #ffffff20; padding-top: 22px; display: flex; flex-direction: column; gap: 7px; overflow-wrap: anywhere; }
.user-profile .nav-caption { padding: 0; margin: 0 0 5px; font-size: 12px; }
.user-profile strong { font-size: 15px; font-weight: 500; }
.user-profile > span:last-child { font-size: 13px; color: #cab7bc; }
.logout-button { display: flex; align-items: center; gap: 10px; min-height: 44px; width: 100%; padding: 10px 12px; border: 1px solid #ffffff26; border-radius: 4px; margin: 18px 0 26px; background: transparent; color: #e0d2d6; font-size: 14px; }
.logout-button:hover { background: #ffffff0e; }
.logout-button svg { width: 15px; height: 15px; }
.menu-toggle { display: none; border: 1px solid #ffffff44; border-radius: 4px; color: #fff; background: transparent; width: 44px; height: 44px; padding: 10px; }
.menu-toggle svg { width: 22px; height: 22px; }
.page { margin-left: var(--sidebar-width); min-height: 100svh; min-width: 0; display: flex; flex-direction: column; }
.topbar { min-height: 78px; padding: 20px 48px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.breadcrumb { display: flex; gap: 14px; font-size: 14px; color: var(--muted); }
.breadcrumb > span:last-child { color: var(--ink); }
.breadcrumb > span:first-child { color: #b4aaa0; }
.topbar-label { font-size: 12px; letter-spacing: 1.3px; color: var(--muted); }
.topbar-label span { margin: 0 9px; }
main { width: 100%; max-width: 1460px; margin: 0 auto; padding: 48px 48px 40px; }
main:focus { outline: none; }
h1 { font: normal 34px/1.2 Georgia, serif; margin: 0; color: var(--wine); }
/* Login: mesma identidade, com formulário nativo e sem JavaScript adicional. */
.auth-page { background: radial-gradient(ellipse at top, #eee5d8 0, var(--paper) 65%); min-height: 100svh; }
.auth-shell { max-width: none; min-height: 100svh; padding: 42px 24px 28px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.auth-card { width: 100%; max-width: 420px; background: #fffdf9; border: 1px solid #e1d7c8; box-shadow: 0 18px 50px #44232d0b; }
.auth-brand { background: var(--wine); padding: 32px 28px 28px; }
.auth-content { padding: 30px 38px 36px; }
.auth-form { display: flex; flex-direction: column; }
.auth-form label { font-size: 14px; color: #655448; margin: 0 0 8px; }
.auth-form input:not([type="hidden"]) { width: 100%; min-height: 47px; padding: 11px 13px; border: 1px solid #d9cfc2; border-radius: 4px; color: var(--ink); background: #fffefa; margin-bottom: 20px; font-size: 16px; }
.primary-button { min-height: 48px; display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: var(--wine); color: #fff6eb; border: 1px solid var(--wine); border-radius: 4px; font-size: 15px; margin-top: 4px; }
.primary-button:hover { background: #5a303d; }
.primary-button > span { font-size: 20px; color: var(--gold); }
.auth-error { font-size: 14px; line-height: 1.7; color: #8b2634; background: #f9ecec; border-left: 2px solid #a43d48; padding: 12px; margin: 0 0 22px; }
@media (min-width: 761px) {
    .sidebar-collapsed { --sidebar-width: 80px; }
    .sidebar-collapsed .sidebar { padding: 22px 10px 16px; }
    .sidebar-collapsed .hotel-symbol { display: block; width: 54px; height: 32px; overflow: hidden; margin: 0 auto 12px; }
    .sidebar-collapsed .hotel-symbol img { display: block; width: 104px; max-width: none; height: auto; }
    .sidebar-collapsed .brand-stack { gap: 0; }
    .sidebar-collapsed .brand-stack .hotel-logo,
    .sidebar-collapsed .solution-copy,
    .sidebar-collapsed .nav-item > span,
    .sidebar-collapsed .nav-caption,
    .sidebar-collapsed .user-profile,
    .sidebar-collapsed .logout-button > span,
    .sidebar-collapsed .collapse-mark { display: none; }
    .sidebar-collapsed .solution-brand { width: 100%; justify-content: center; align-items: center; gap: 4px; }
    .sidebar-collapsed .solution-icon { width: 34px; height: auto; }
    .sidebar-collapsed .developer-symbol { display: block; width: 16px; height: 16px; object-fit: contain; filter: brightness(0) invert(1); }
    .sidebar-collapsed .sidebar-actions { grid-template-columns: 1fr; }
    .sidebar-collapsed .expand-mark { display: block; }
    .sidebar-collapsed .nav-item { justify-content: center; padding: 12px 8px; }
    .sidebar-collapsed .sidebar-footer { margin: auto 0 0; padding-top: 16px; }
    .sidebar-collapsed .logout-button { justify-content: center; padding: 10px; margin: 16px 0 0; }
}
@media (max-width: 1150px) {
    .sidebar { padding-left: 16px; padding-right: 16px; }
    main { padding: 36px 30px; }
    .topbar { padding-left: 30px; padding-right: 30px; }
}
@media (max-width: 760px) {
    .desktop-sidebar-toggle { display: none; }
    .mobile-home-action { display: grid; }
    .app-page { display: flex; flex-direction: column; min-height: 100svh; }
    .sidebar { position: sticky; top: 0; bottom: auto; width: 100%; flex-shrink: 0; max-height: 100vh; max-height: 100dvh; padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; }
    .sidebar-heading { padding: 0; display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 20px; }
    .sidebar-heading { gap: 12px; }
    .sidebar-heading .brand { flex: 1; min-width: 0; max-width: 270px; }
    .sidebar .brand-stack { --brand-height: 30px; --copy-width: 80px; --brand-gap: 12px; --icon-gap: 6px; flex-direction: row; align-items: center; justify-content: flex-start; }
    .sidebar .hotel-logo { width: auto; height: var(--brand-height); }
    .sidebar .solution-brand { width: auto; gap: var(--icon-gap); }
    .sidebar .solution-icon { width: auto; height: var(--brand-height); }
    .sidebar .solution-copy { width: var(--copy-width); height: var(--brand-height); aspect-ratio: auto; padding-block: calc(var(--brand-height) * .07); }
    .menu-toggle { display: block; flex-shrink: 0; }
    .sidebar-content { overflow-y: auto; overscroll-behavior: contain; }
    .sidebar-actions { position: fixed; inset: auto 0 0; z-index: 20; margin: 0; padding: 4px max(12px, env(safe-area-inset-right, 0px)) calc(4px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); border-bottom: 0; background: var(--wine); }
    .sidebar.menu-open .sidebar-actions { position: static; inset: auto; margin: 12px 0 0; padding: 6px 0; border-block: 1px solid #ffffff26; background: transparent; }
    .sidebar-action { min-height: 44px; padding: 4px; gap: 2px; align-content: center; }
    .sidebar-action svg { width: 16px; height: 16px; }
    .action-label { display: block; font-size: 12px; line-height: 14px; white-space: nowrap; }
    .sidebar nav { padding-top: 16px; }
    .sidebar-footer { padding-top: 20px; margin-bottom: 8px; }
    .logout-button { margin-bottom: 0; }
    .page { margin-left: 0; flex: 1; min-height: 0; padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
    .sidebar.menu-open + .page { padding-bottom: 0; }
    .topbar { min-height: 44px; padding: 10px 16px; }
    main { padding: 24px 16px; scroll-margin-top: calc(72px + env(safe-area-inset-top, 0px)); }
    .topbar-label { display: none; }
    .auth-shell { padding: 24px 20px; }
}
@media (max-width: 560px) {
    .auth-brand .brand-stack { --brand-height: 28px; --copy-width: 76px; --brand-gap: 12px; --icon-gap: 6px; }
}
@media (max-width: 360px) {
    .sidebar .brand-stack { --brand-height: 26px; --copy-width: 70px; }
    .auth-content { padding: 26px 24px 30px; }
    .auth-brand { padding: 28px 20px; }
}
@media (prefers-reduced-motion: no-preference) { a, button { transition: background-color 140ms ease, color 140ms ease; } }
