/* ==========================================================================
   Habita · sistema visual compartido
   Editorial + map-first + Material 3, sin frameworks.
   ========================================================================== */

:root {
    --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
    --text-scale: 1;

    --accent: #d65a38;
    --accent-soft: #f3ded5;
    --accent-ink: #9c351e;

    --surface: #fffdf9;
    --surface-elevated: #ffffff;
    --surface-muted: #f3f0e9;
    --surface-glass: rgba(255, 253, 249, 0.9);
    --surface-glass-strong: rgba(255, 253, 249, 0.97);
    --canvas: #f1eee7;

    --ink: #18221d;
    --ink-soft: #34433c;
    --muted: #6e7a73;
    --muted-strong: #536159;
    --line: rgba(24, 34, 29, 0.1);
    --line-strong: rgba(24, 34, 29, 0.16);
    --inverse-ink: #f8f5ee;

    --forest: #1c493a;
    --forest-soft: #e4eee8;
    --danger: #b54033;
    --danger-soft: #f8e7e3;
    --success: #277252;
    --success-soft: #e4f2ea;
    --warning: #9c6d1d;
    --warning-soft: #f7edd8;
    --blue: #246de0;

    --shadow-xs: 0 1px 2px rgba(23, 35, 29, 0.06);
    --shadow-sm: 0 3px 12px rgba(23, 35, 29, 0.08), 0 1px 2px rgba(23, 35, 29, 0.05);
    --shadow-md: 0 12px 30px -12px rgba(23, 35, 29, 0.24), 0 3px 8px rgba(23, 35, 29, 0.05);
    --shadow-lg: 0 28px 70px -24px rgba(18, 31, 24, 0.38), 0 8px 24px -12px rgba(18, 31, 24, 0.16);
    --shadow-map: 0 22px 60px -24px rgba(18, 31, 24, 0.4);

    --r-xs: 8px;
    --r-sm: 12px;
    --r-md: 16px;
    --r-lg: 22px;
    --r-xl: 28px;
    --r-pill: 999px;

    --header-height: 78px;
    --panel-width: 400px;
    --detail-width: 438px;

    --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
    --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
    --speed: 220ms;

    color-scheme: light;
}

html[data-text-scale="large"] {
    --text-scale: 1.15;
}

html[data-text-scale="xlarge"] {
    --text-scale: 1.3;
}

html[data-text-scale="xxlarge"] {
    --text-scale: 1.45;
}

html[data-theme="dark"] {
    --accent-soft: #3b251f;
    --accent-ink: #f5a087;
    --surface: #161d19;
    --surface-elevated: #1b231e;
    --surface-muted: #222c26;
    --surface-glass: rgba(20, 27, 23, 0.9);
    --surface-glass-strong: rgba(20, 27, 23, 0.97);
    --canvas: #0f1512;

    --ink: #f1efe8;
    --ink-soft: #d4d8d3;
    --muted: #98a59d;
    --muted-strong: #b3beb7;
    --line: rgba(244, 242, 235, 0.1);
    --line-strong: rgba(244, 242, 235, 0.17);
    --inverse-ink: #151d18;

    --forest: #cfeadc;
    --forest-soft: #1d3329;
    --danger: #ef9a8d;
    --danger-soft: #3a211e;
    --success: #83d2ad;
    --success-soft: #1a3528;
    --warning: #e9be72;
    --warning-soft: #382e1d;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.25);
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.28);
    --shadow-md: 0 16px 40px -14px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 30px 80px -22px rgba(0, 0, 0, 0.64);
    --shadow-map: 0 26px 70px -24px rgba(0, 0, 0, 0.7);

    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background: var(--canvas);
    font-family: var(--font-sans);
    font-size: calc((14px) * var(--text-scale, 1));
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Controles táctiles: sin resaltado azul ni selección accidental ------- */
button,
a,
[role="button"],
.checkbox,
.switch-row,
.price-pin,
.map-cluster,
.property-card,
.studio-property-item,
.type-row {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

button,
a,
[role="button"] {
    touch-action: manipulation;
}

body.is-locked {
    overflow: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    border: 0;
    margin: 0;
    background: none;
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
}

img {
    max-width: 100%;
}

p,
h1,
h2,
h3,
h4 {
    margin: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

::selection {
    color: var(--surface);
    background: var(--forest);
}

.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon--sm {
    width: 16px;
    height: 16px;
}

.icon--lg {
    width: 24px;
    height: 24px;
}

.font-display {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: -0.02em;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: fixed;
    z-index: 10000;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    border-radius: var(--r-pill);
    color: var(--surface);
    background: var(--ink);
    transform: translateY(-180%);
    transition: transform var(--speed) var(--ease);
}

.skip-link:focus {
    transform: translateY(0);
}

/* Marca ------------------------------------------------------------------ */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--ink);
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    color: var(--surface);
    background:
        radial-gradient(circle at 25% 15%, rgba(255, 255, 255, 0.26), transparent 45%),
        var(--forest);
    font-family: var(--font-display);
    font-size: calc((23px) * var(--text-scale, 1));
    line-height: 1;
    letter-spacing: -0.04em;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.brand-name {
    font-family: var(--font-display);
    font-size: calc((26px) * var(--text-scale, 1));
    line-height: 1;
    letter-spacing: -0.035em;
}

.brand-dot {
    color: var(--accent);
}

/* Botones ---------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    font-size: calc((13px) * var(--text-scale, 1));
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition:
        transform var(--speed) var(--ease),
        background var(--speed) var(--ease),
        border-color var(--speed) var(--ease),
        box-shadow var(--speed) var(--ease),
        color var(--speed) var(--ease);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0) scale(0.985);
}

.btn[disabled],
.btn.is-loading {
    cursor: wait;
    opacity: 0.65;
    transform: none;
}

.btn .icon {
    width: 17px;
    height: 17px;
}

.btn-primary {
    color: var(--inverse-ink);
    background: var(--ink);
    box-shadow: 0 8px 20px -10px rgba(20, 33, 26, 0.55);
}

.btn-primary:hover {
    background: var(--ink-soft);
}

.btn-accent {
    color: #fff;
    background: var(--accent);
    box-shadow: 0 8px 22px -12px color-mix(in srgb, var(--accent) 75%, black);
}

.btn-soft {
    color: var(--ink);
    background: var(--surface-muted);
    border-color: var(--line);
}

.btn-soft:hover {
    background: var(--surface-elevated);
    border-color: var(--line-strong);
}

.btn-ghost {
    color: var(--ink-soft);
    background: transparent;
    border-color: var(--line);
}

.btn-ghost:hover {
    color: var(--ink);
    background: color-mix(in srgb, var(--ink) 5%, transparent);
}

.btn-danger {
    color: var(--danger);
    background: var(--danger-soft);
    border-color: color-mix(in srgb, var(--danger) 20%, transparent);
}

.btn-sm {
    min-height: 34px;
    padding: 0 13px;
    font-size: calc((12px) * var(--text-scale, 1));
}

.btn-block {
    width: 100%;
}

.icon-button {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    background: var(--surface-glass);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition:
        transform var(--speed) var(--ease),
        background var(--speed) var(--ease),
        box-shadow var(--speed) var(--ease);
}

.icon-button:hover {
    transform: translateY(-1px);
    background: var(--surface-glass-strong);
    box-shadow: var(--shadow-md);
}

.icon-button:active {
    transform: scale(0.96);
}

.icon-button.is-active {
    color: var(--surface);
    background: var(--ink);
    border-color: var(--ink);
}

.icon-button .icon {
    width: 19px;
    height: 19px;
}

.glass {
    border: 1px solid color-mix(in srgb, var(--line) 84%, white);
    background: var(--surface-glass);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
}

/* Etiquetas -------------------------------------------------------------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted-strong);
    font-size: calc((10px) * var(--text-scale, 1));
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.live-dot {
    position: relative;
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
}

.live-dot::after {
    position: absolute;
    inset: -3px;
    content: "";
    border: 1px solid var(--success);
    border-radius: 50%;
    opacity: 0;
    animation: livePulse 2.4s ease-out infinite;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    color: var(--muted-strong);
    background: var(--surface-muted);
    font-size: calc((11px) * var(--text-scale, 1));
    font-weight: 700;
    white-space: nowrap;
}

.chip--accent {
    color: var(--accent-ink);
    background: var(--accent-soft);
    border-color: color-mix(in srgb, var(--accent) 16%, transparent);
}

.chip--forest {
    color: var(--forest);
    background: var(--forest-soft);
    border-color: color-mix(in srgb, var(--forest) 16%, transparent);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 24px;
    padding: 0 9px;
    border-radius: var(--r-pill);
    color: var(--success);
    background: var(--success-soft);
    font-size: calc((10px) * var(--text-scale, 1));
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.status-badge::before {
    width: 5px;
    height: 5px;
    content: "";
    border-radius: 50%;
    background: currentColor;
}

.status-badge--reserved {
    color: var(--warning);
    background: var(--warning-soft);
}

.status-badge--muted {
    color: var(--muted);
    background: var(--surface-muted);
}

/* Formularios ------------------------------------------------------------ */
.field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.field label,
.field-label {
    color: var(--ink-soft);
    font-size: calc((11px) * var(--text-scale, 1));
    font-weight: 800;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.field-hint {
    color: var(--muted);
    font-size: calc((11px) * var(--text-scale, 1));
    line-height: 1.45;
}

.field-error {
    display: none;
    color: var(--danger);
    font-size: calc((11px) * var(--text-scale, 1));
    font-weight: 600;
}

.field-error.is-visible {
    display: block;
}

.field.has-error .field-error {
    display: block;
}

.field.has-error .input {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 10%, transparent);
}

.input {
    width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    color: var(--ink);
    background: var(--surface-elevated);
    font-size: calc((13px) * var(--text-scale, 1));
    outline: none;
    transition:
        border-color var(--speed) var(--ease),
        box-shadow var(--speed) var(--ease),
        background var(--speed) var(--ease);
}

.input::placeholder {
    color: color-mix(in srgb, var(--muted) 78%, transparent);
}

.input:hover {
    border-color: color-mix(in srgb, var(--ink) 28%, transparent);
}

.input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

textarea.input {
    min-height: 110px;
    resize: vertical;
}

select.input {
    padding-right: 34px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236e7a73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group > .icon {
    position: absolute;
    left: 13px;
    z-index: 1;
    width: 17px;
    height: 17px;
    color: var(--muted);
    pointer-events: none;
}

.input-group .input {
    padding-left: 39px;
}

.switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface-muted);
}

.switch-row__copy {
    display: grid;
    gap: 3px;
}

.switch-row__copy strong {
    font-size: calc((12px) * var(--text-scale, 1));
    font-weight: 800;
}

.switch-row__copy span {
    color: var(--muted);
    font-size: calc((11px) * var(--text-scale, 1));
}

.switch {
    position: relative;
    width: 42px;
    height: 24px;
    flex: 0 0 auto;
}

.switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch-track {
    position: absolute;
    inset: 0;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-pill);
    background: var(--surface);
    transition: background var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.switch-track::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    content: "";
    border-radius: 50%;
    background: var(--muted);
    transition: transform var(--speed) var(--ease-spring), background var(--speed) var(--ease);
}

.switch input:checked + .switch-track {
    border-color: var(--forest);
    background: var(--forest);
}

.switch input:checked + .switch-track::after {
    background: var(--surface);
    transform: translateX(18px);
}

.switch input:focus-visible + .switch-track {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted-strong);
    font-size: calc((11.5px) * var(--text-scale, 1));
    line-height: 1.45;
    cursor: pointer;
}

.checkbox input {
    width: 17px;
    height: 17px;
    margin: 1px 0 0;
    flex: 0 0 auto;
    accent-color: var(--forest);
}

/* Diálogos y overlays ---------------------------------------------------- */
dialog.app-dialog {
    width: var(--dialog-width, min(560px, calc(100vw - 32px)));
    max-height: min(88vh, 820px);
    padding: 0;
    overflow: hidden;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

dialog.app-dialog[open] {
    animation: dialogIn 260ms var(--ease-spring) both;
}

dialog.app-dialog::backdrop {
    background: rgba(9, 16, 12, 0.48);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    animation: backdropIn 220ms ease both;
}

.dialog-shell {
    display: flex;
    max-height: min(88vh, 820px);
    flex-direction: column;
}

.dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 24px 18px;
    border-bottom: 1px solid var(--line);
}

.dialog-head h2 {
    margin-top: 3px;
    font-family: var(--font-display);
    font-size: calc((clamp(26px, 4vw, 32px)) * var(--text-scale, 1));
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.dialog-head p {
    margin-top: 5px;
    color: var(--muted);
    font-size: calc((12px) * var(--text-scale, 1));
}

.dialog-close {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border-radius: 50%;
    color: var(--muted-strong);
    background: var(--surface-muted);
    transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
}

.dialog-close:hover {
    color: var(--ink);
    background: var(--line);
}

.dialog-body {
    padding: 22px 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.dialog-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 24px calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
}

/* Toast ------------------------------------------------------------------ */
.toast-region {
    position: fixed;
    z-index: 10000;
    left: 50%;
    bottom: 24px;
    display: flex;
    width: min(420px, calc(100vw - 28px));
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    pointer-events: none;
    transform: translateX(-50%);
}

.toast {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 15px;
    border: 1px solid var(--line);
    border-radius: 15px;
    color: var(--ink);
    background: var(--surface-glass-strong);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    font-size: calc((12px) * var(--text-scale, 1));
    font-weight: 600;
    pointer-events: auto;
    animation: toastIn 280ms var(--ease-spring) both;
}

.toast.is-leaving {
    animation: toastOut 200ms ease both;
}

.toast__icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    border-radius: 50%;
    color: var(--success);
    background: var(--success-soft);
}

.toast--error .toast__icon {
    color: var(--danger);
    background: var(--danger-soft);
}

.toast__text {
    flex: 1;
    line-height: 1.35;
}

.toast__close {
    padding: 5px;
    color: var(--muted);
}

/* Estados de carga ------------------------------------------------------- */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid color-mix(in srgb, currentColor 24%, transparent);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 700ms linear infinite;
}

.skeleton {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: color-mix(in srgb, var(--ink) 7%, transparent);
}

.skeleton::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 65%, transparent), transparent);
    transform: translateX(-100%);
    animation: shimmer 1.35s infinite;
}

.empty-state {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 42px 24px;
    text-align: center;
}

.empty-state__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--muted);
    background: var(--surface-muted);
}

.empty-state h3 {
    font-family: var(--font-display);
    font-size: calc((22px) * var(--text-scale, 1));
    font-weight: 400;
}

.empty-state p {
    max-width: 260px;
    color: var(--muted);
    font-size: calc((12px) * var(--text-scale, 1));
}

/* Scrollbars ------------------------------------------------------------- */
* {
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--ink) 20%, transparent) transparent;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: var(--r-pill);
    background: color-mix(in srgb, var(--ink) 20%, transparent);
    background-clip: content-box;
}

/* Animaciones ------------------------------------------------------------ */
@keyframes livePulse {
    0% { opacity: 0.7; transform: scale(0.65); }
    70%, 100% { opacity: 0; transform: scale(1.9); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes shimmer {
    to { transform: translateX(100%); }
}

@keyframes dialogIn {
    from { opacity: 0; transform: translateY(14px) scale(0.97); }
    to { opacity: 1; transform: none; }
}

@keyframes backdropIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to { opacity: 1; transform: none; }
}

@keyframes toastOut {
    to { opacity: 0; transform: translateY(8px) scale(0.98); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 640px) {
    .toast-region {
        bottom: calc(18px + env(safe-area-inset-bottom));
    }

    dialog.app-dialog {
        width: calc(100vw - 20px);
        max-height: calc(100dvh - 24px);
        border-radius: 24px;
    }

    .dialog-shell {
        max-height: calc(100dvh - 24px);
    }

    .dialog-head,
    .dialog-body {
        padding-right: 18px;
        padding-left: 18px;
    }

    .dialog-foot {
        padding-right: 18px;
        padding-left: 18px;
    }
}

/* Logo de marca personalizado ------------------------------------------- */
.brand-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    flex: 0 0 auto;
}

.brand-logo {
    display: block;
    width: auto;
    max-width: 154px;
    height: 30px;
    object-fit: contain;
}

.brand-logo--on-dark {
    display: none;
}

html[data-theme="dark"] .brand-logo--on-light {
    display: none;
}

html[data-theme="dark"] .brand-logo--on-dark {
    display: block;
}

.brand-logo-wrap--paper {
    padding: 4px 7px;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

html[data-theme="dark"] .brand-logo-wrap--paper-on-dark {
    padding: 3px 6px;
    border-radius: 6px;
    background: #fff;
}

.brand--floating .brand-logo {
    max-width: 145px;
    height: 30px;
}

.brand--studio .brand-logo {
    max-width: 128px;
    height: 26px;
}

.login-brand .brand-logo {
    max-width: 150px;
    height: 32px;
}

.brand--floating {
    max-width: 220px;
}

.brand--studio {
    max-width: 220px;
}

html[data-theme="dark"] .brand--studio .brand-logo-wrap--paper,
.login-brand .brand-logo-wrap--paper {
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.24);
}
