/* ════════════════════════════════════════════════════════════════════
   eSITE ERP — app shell
   Design tokens, the mobile navigation drawer, toasts and the touch
   refinements that make the site behave like an installed application.
   Loaded on every page before the page's own stylesheet.
   ════════════════════════════════════════════════════════════════════ */

:root {
    --es-font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --es-font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --es-font-display: 'Bebas Neue', 'IBM Plex Sans', sans-serif;

    --es-bg: #0b1220;
    --es-bg-soft: #111a2c;
    --es-surface: #162033;
    --es-surface-2: #1c2942;
    --es-surface-glass: rgba(22, 32, 51, .82);

    --es-text: #f1f5f9;
    --es-text-dim: #93a3b8;
    --es-border: rgba(255, 255, 255, .12);
    --es-border-strong: rgba(255, 255, 255, .2);

    --es-accent: #b8541c;
    --es-accent-soft: rgba(184, 84, 28, .16);
    --es-accent-ring: rgba(184, 84, 28, .3);
    --es-info: #38bdf8;
    --es-good: #22c55e;
    --es-warn: #f59e0b;
    --es-bad: #ef4444;

    --es-radius: 14px;
    --es-shadow: 0 8px 24px -10px rgba(0, 0, 0, .6);
    --es-shadow-lg: 0 28px 60px -18px rgba(0, 0, 0, .7);

    --es-nav-h: 58px;
    --es-safe-top: env(safe-area-inset-top, 0px);
    --es-safe-bottom: env(safe-area-inset-bottom, 0px);
    --es-safe-left: env(safe-area-inset-left, 0px);
}

/* ── touch & app-like behaviour ──────────────────────────────────── */
html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    overscroll-behavior-y: contain;
}

/* Stop iOS zooming when a field is focused. */
@media (max-width: 820px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

button, a, [role="button"] {
    -webkit-tap-highlight-color: transparent;
}

/* Comfortable touch targets on phones without disturbing desktop. */
@media (pointer: coarse) {
    button, .btn, a.btn, input[type="button"], input[type="submit"] {
        min-height: 42px;
    }
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, .32); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 184, .5); }

/* ════════════════════════════════════════════════════════════════════
   GLOBAL NAVIGATION

   The same everywhere: a slim bar across the top with the brand and the
   signed-in user, and a button anchored bottom-left that slides the full
   menu in from the left. Phones and desktops behave identically; only the
   sizes change.
   ════════════════════════════════════════════════════════════════════ */

.esite-nav {
    color: var(--es-text);
    position: sticky;
    top: 0;
    z-index: 900;
    background: #0d1524;
    border-bottom: 1px solid var(--es-border);
    padding-top: var(--es-safe-top);
    font-family: var(--es-font-sans);
}

/* The drawer lives inside the bar, so the bar's stacking context has to
   rise above the scrim while it is open — otherwise the scrim's dim would
   be painted over the menu itself. */
.esite-nav.drawer-open { z-index: 937; }

.esite-nav-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 16px;
    min-height: var(--es-nav-h);
}

.esite-nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: var(--es-text);
    flex-shrink: 0;
    margin-right: auto;
}

.esite-nav-mark {
    width: 30px; height: 30px;
    border-radius: 9px;
    display: grid; place-items: center;
    background: linear-gradient(145deg, #fff, #e3ddcf);
    color: #10141c;
    font-family: var(--es-font-display);
    font-size: 21px;
    line-height: 1;
}

.esite-nav-word {
    font-family: var(--es-font-display);
    font-size: 22px;
    letter-spacing: .04em;
    white-space: nowrap;
}
.esite-nav-word b { color: var(--es-accent); font-weight: inherit; }

.esite-nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.esite-nav-id { text-align: right; line-height: 1.25; }
.esite-nav-name { display: block; font-size: 12.5px; font-weight: 600; }
.esite-nav-role {
    display: block;
    font-family: var(--es-font-mono);
    font-size: 9px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--es-accent);
}

.esite-nav-logout {
    background: rgba(239, 68, 68, .16);
    border: 1px solid rgba(239, 68, 68, .38);
    color: #fca5a5;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 600;
    padding: 7px 13px;
    border-radius: 9px;
    cursor: pointer;
    transition: background .16s, color .16s;
}
.esite-nav-logout:hover { background: rgba(239, 68, 68, .3); color: #fff; }

/* connection dot */
.esite-sync-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--es-text-dim);
    flex-shrink: 0;
    transition: background .2s;
}
.esite-sync-dot.ok { background: var(--es-good); box-shadow: 0 0 8px rgba(34, 197, 94, .8); }
.esite-sync-dot.offline { background: var(--es-warn); box-shadow: 0 0 8px rgba(245, 158, 11, .7); }

/* unread badge */
.esite-badge {
    display: inline-grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--es-bad);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    font-family: var(--es-font-mono);
    line-height: 1;
}

/* ── the menu button ─────────────────────────────────────────────── */
/* ── the menu button (top navigation area, adjacent to logo) ─────── */
.esite-fab {
    position: relative;
    z-index: 940;

    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 14px 0 12px;
    margin-right: 4px;

    border: 0;
    border-radius: 10px;
    background: linear-gradient(140deg, var(--es-accent), #d2691f);
    color: #fff;
    font-family: var(--es-font-sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    cursor: pointer;

    box-shadow: 0 4px 12px rgba(184, 84, 28, .4);
    transition: transform .18s cubic-bezier(.2,.8,.25,1), box-shadow .2s, filter .2s;
    flex-shrink: 0;
}
.esite-fab:hover { filter: brightness(1.08); box-shadow: 0 6px 16px rgba(184, 84, 28, .55); }
.esite-fab:active { transform: scale(.95); }
.esite-fab:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.esite-fab-bars {
    position: relative;
    width: 17px; height: 13px;
    flex-shrink: 0;
}
.esite-fab-bars span {
    position: absolute;
    left: 0;
    width: 100%; height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .28s cubic-bezier(.2,.8,.25,1), opacity .18s;
}
.esite-fab-bars span:nth-child(1) { top: 0; }
.esite-fab-bars span:nth-child(2) { top: 5px; }
.esite-fab-bars span:nth-child(3) { top: 10px; }

.esite-fab.open .esite-fab-bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.esite-fab.open .esite-fab-bars span:nth-child(2) { opacity: 0; }
.esite-fab.open .esite-fab-bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.esite-fab-label { white-space: nowrap; }
.esite-fab.open .esite-fab-label { display: none; }
.esite-fab.open { padding: 0; width: 38px; justify-content: center; }

.esite-fab .esite-badge {
    position: absolute;
    top: -4px; right: -4px;
    border: 2px solid var(--es-bg);
}

/* ── Home Page Live Chat Widget Box ─────────────────────────────── */
.esite-home-chat-widget {
    position: fixed !important;
    right: 24px !important;
    left: auto !important;
    bottom: 24px !important;
    top: auto !important;
    z-index: 950 !important;
    font-family: var(--es-font-sans);
}

.esite-home-chat-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 18px 0 15px;
    border-radius: 23px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 25px -6px rgba(2, 132, 199, .6), 0 4px 10px rgba(0,0,0,.3);
    transition: transform .18s, filter .18s;
}
.esite-home-chat-btn:hover { filter: brightness(1.1); transform: translateY(-2px); }
.esite-home-chat-btn:active { transform: scale(.96); }

.esite-home-chat-box {
    position: absolute !important;
    bottom: 58px !important;
    right: 0 !important;
    left: auto !important;
    top: auto !important;
    width: 360px !important;
    max-width: calc(100vw - 32px) !important;
    height: 450px !important;
    max-height: calc(100vh - 100px) !important;
    background: #0f172a !important;
    border: 1px solid var(--es-border-strong) !important;
    border-radius: 18px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .75) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(.95);
    transition: opacity .22s cubic-bezier(.2,.8,.25,1), transform .22s cubic-bezier(.2,.8,.25,1), visibility .22s;
}
.esite-home-chat-box.open {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
}

.esite-chat-box-head {
    padding: 12px 16px;
    background: #1e293b;
    border-bottom: 1px solid var(--es-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.esite-chat-box-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #fff;
}
.esite-chat-box-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.esite-chat-open-full {
    color: #38bdf8;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(56, 189, 248, .12);
}
.esite-chat-open-full:hover { background: rgba(56, 189, 248, .22); }

.esite-chat-close-btn {
    background: transparent;
    border: none;
    color: var(--es-text-dim);
    font-size: 16px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
}
.esite-chat-close-btn:hover { color: #fff; background: rgba(255,255,255,.1); }

.esite-chat-box-body {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #0b1220;
}
.esite-chat-loading, .esite-chat-empty {
    text-align: center;
    font-size: 12.5px;
    color: var(--es-text-dim);
    margin: auto 0;
    padding: 20px;
}

.esite-chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 82%;
}
.esite-chat-msg.me {
    align-self: flex-end;
    align-items: flex-end;
}
.esite-chat-msg.them {
    align-self: flex-start;
    align-items: flex-start;
}
.esite-chat-msg-sender {
    font-size: 10px;
    color: var(--es-text-dim);
    margin-bottom: 3px;
    padding: 0 4px;
}
.esite-chat-msg-bubble {
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
}
.esite-chat-msg.me .esite-chat-msg-bubble {
    background: #0284c7;
    color: #fff;
    border-bottom-right-radius: 2px;
}
.esite-chat-msg.them .esite-chat-msg-bubble {
    background: #1e293b;
    color: #f1f5f9;
    border-bottom-left-radius: 2px;
}

.esite-chat-box-foot {
    padding: 10px;
    background: #1e293b;
    border-top: 1px solid var(--es-border);
    display: flex;
    gap: 8px;
}
.esite-chat-box-foot input {
    flex: 1;
    background: #0f172a;
    border: 1px solid var(--es-border);
    border-radius: 8px;
    padding: 8px 12px;
    color: #fff;
    font-size: 13px;
    outline: none;
}
.esite-chat-box-foot input:focus {
    border-color: #0284c7;
}
.esite-chat-box-foot button {
    background: #0284c7;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
}
.esite-chat-box-foot button:hover {
    background: #0369a1;
}

/* ── the drawer ──────────────────────────────────────────────────── */
.esite-scrim {
    position: fixed;
    inset: 0;
    z-index: 930;
    background: rgba(4, 8, 16, .6);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .26s ease, visibility .26s;
}
.esite-scrim.open { opacity: 1; visibility: visible; }

.esite-nav-links {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 935;
    width: min(86vw, 348px);

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    overflow-y: auto;
    overflow-x: hidden;

    background: linear-gradient(180deg, #131d31, #0d1524);
    border-right: 1px solid var(--es-border);
    box-shadow: 24px 0 60px -24px rgba(0, 0, 0, .9);

    padding: calc(20px + var(--es-safe-top)) 14px calc(96px + var(--es-safe-bottom));

    transform: translateX(-102%);
    visibility: hidden;
    transition: transform .3s cubic-bezier(.22,.85,.28,1), visibility .3s;
}
.esite-nav-links.open { transform: translateX(0); visibility: visible; }
.esite-nav-links::-webkit-scrollbar { width: 6px; }

.esite-nav-links::before {
    content: attr(data-title);
    display: block;
    font-family: var(--es-font-mono);
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--es-text-dim);
    padding: 4px 12px 12px;
}

.esite-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--es-text-dim);
    text-decoration: none;
    transition: background .16s, color .16s;
}
.esite-nav-link:hover { background: rgba(255, 255, 255, .07); color: var(--es-text); }
.esite-nav-link.active {
    background: var(--es-accent-soft);
    color: #f7c9a8;
    box-shadow: inset 3px 0 0 var(--es-accent);
}
.esite-nav-link .esite-nav-ico {
    width: 22px;
    text-align: center;
    font-size: 15px;
    opacity: .9;
    flex-shrink: 0;
}
.esite-nav-link .esite-badge { margin-left: auto; }

/* staggered entrance */
.esite-nav-links.open .esite-nav-link {
    animation: drawerIn .32s cubic-bezier(.2,.8,.25,1) both;
}
.esite-nav-links.open .esite-nav-link:nth-child(1)  { animation-delay: .03s; }
.esite-nav-links.open .esite-nav-link:nth-child(2)  { animation-delay: .05s; }
.esite-nav-links.open .esite-nav-link:nth-child(3)  { animation-delay: .07s; }
.esite-nav-links.open .esite-nav-link:nth-child(4)  { animation-delay: .09s; }
.esite-nav-links.open .esite-nav-link:nth-child(5)  { animation-delay: .11s; }
.esite-nav-links.open .esite-nav-link:nth-child(6)  { animation-delay: .13s; }
.esite-nav-links.open .esite-nav-link:nth-child(7)  { animation-delay: .15s; }
.esite-nav-links.open .esite-nav-link:nth-child(8)  { animation-delay: .17s; }
.esite-nav-links.open .esite-nav-link:nth-child(n+9) { animation-delay: .19s; }

@keyframes drawerIn {
    from { opacity: 0; transform: translateX(-14px); }
    to   { opacity: 1; transform: none; }
}

/* signed-in identity pinned to the bottom of the drawer */
.esite-drawer-foot {
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 939;   /* above the open drawer, below the menu button */
    width: min(86vw, 348px);
    box-sizing: border-box;
    padding: 14px 16px calc(14px + var(--es-safe-bottom));
    padding-left: 84px;   /* clears the menu button, which sits over this strip */

    color: var(--es-text);
    font-family: var(--es-font-sans);
    background: rgba(9, 15, 26, .97);
    border-top: 1px solid var(--es-border);
    border-right: 1px solid var(--es-border);

    display: flex;
    align-items: center;
    gap: 10px;

    transform: translateX(-102%);
    visibility: hidden;
    transition: transform .3s cubic-bezier(.22,.85,.28,1), visibility .3s;
}
.esite-drawer-foot.open { transform: translateX(0); visibility: visible; }

.esite-drawer-avatar {
    width: 36px; height: 36px;
    border-radius: 11px;
    background: var(--es-accent);
    color: #fff;
    display: grid; place-items: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
.esite-drawer-who { line-height: 1.3; min-width: 0; flex: 1; overflow: hidden; }
.esite-drawer-who b {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--es-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.esite-drawer-who span {
    display: block;
    font-family: var(--es-font-mono);
    font-size: 9.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--es-accent);
}
.esite-drawer-foot .esite-nav-logout { margin-left: auto; flex-shrink: 0; }

/* ── phones ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .esite-nav-inner { gap: 10px; padding: 0 12px; }
    .esite-nav-user .esite-nav-id { display: none; }

    .esite-fab {
        height: 36px;
        padding: 0 10px 0 9px;
        border-radius: 8px;
        font-size: 12px;
    }
    .esite-fab.open { width: 36px; padding: 0; }

    .esite-drawer-foot { padding-left: 20px; }

    .esite-home-chat-widget {
        right: 14px !important;
        bottom: 14px !important;
    }
    .esite-home-chat-box {
        width: calc(100vw - 28px) !important;
        right: 0 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .esite-nav-links,
    .esite-drawer-foot,
    .esite-scrim { transition: none; }
    .esite-nav-links.open .esite-nav-link { animation: none; }
}

/* ════════════════════════════════════════════════════════════════════
   TOASTS
   ════════════════════════════════════════════════════════════════════ */
#esiteToastHost {
    position: fixed;
    z-index: 999990;
    left: 50%;
    bottom: calc(20px + var(--es-safe-bottom));
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    pointer-events: none;
    width: min(92vw, 460px);
}

.esite-toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border-radius: 13px;
    background: rgba(22, 32, 51, .97);
    border: 1px solid var(--es-border-strong);
    color: var(--es-text);
    font-family: var(--es-font-sans);
    font-size: 13px;
    box-shadow: var(--es-shadow-lg);
    opacity: 0;
    transform: translateY(14px) scale(.97);
    transition: opacity .25s, transform .25s cubic-bezier(.2,.8,.25,1);
}
.esite-toast.in { opacity: 1; transform: none; }
.esite-toast-msg { flex: 1; min-width: 0; line-height: 1.4; }
.esite-toast.good { border-color: rgba(34, 197, 94, .5); }
.esite-toast.bad { border-color: rgba(239, 68, 68, .5); }

.esite-toast-action {
    flex-shrink: 0;
    background: var(--es-accent);
    border: 0;
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 13px;
    border-radius: 9px;
    cursor: pointer;
}

@media (max-width: 900px) {
    #esiteToastHost { bottom: calc(84px + var(--es-safe-bottom)); }
}

/* ════════════════════════════════════════════════════════════════════
   Shared small pieces used across the app
   ════════════════════════════════════════════════════════════════════ */
.esite-empty {
    display: grid;
    place-items: center;
    gap: 10px;
    padding: 48px 20px;
    text-align: center;
    color: var(--es-text-dim);
    font-family: var(--es-font-sans);
}
.esite-empty .ico { font-size: 40px; opacity: .55; }

.esite-skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,.05) 25%, rgba(255,255,255,.11) 37%, rgba(255,255,255,.05) 63%);
    background-size: 400% 100%;
    animation: shimmer 1.3s ease infinite;
    border-radius: 8px;
}
@keyframes shimmer {
    from { background-position: 100% 50%; }
    to { background-position: 0 50%; }
}

@media print {
    .esite-nav, .esite-fab, .esite-scrim, #esiteToastHost, .esite-drawer-foot { display: none !important; }
    body { padding-bottom: 0 !important; }
}

/* ════════════════════════════════════════════════════════════════════
   IN-PAGE DIALOGS
   Replaces the browser's own alert / confirm / prompt boxes, which the
   browser draws at the top of the window with its own styling. These are
   centred on the page and match the rest of the app.
   ════════════════════════════════════════════════════════════════════ */

.esite-dialog-scrim {
    position: fixed;
    inset: 0;
    z-index: 999995;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    padding-top: max(22px, var(--es-safe-top));
    padding-bottom: max(22px, var(--es-safe-bottom));

    background: rgba(4, 8, 16, .68);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);

    opacity: 0;
    transition: opacity .18s ease;
}
.esite-dialog-scrim.in { opacity: 1; }

.esite-dialog {
    width: 100%;
    max-width: 430px;
    max-height: 84dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;

    background: #18233a;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 18px;
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .85);

    font-family: var(--es-font-sans, system-ui, sans-serif);
    color: #f1f5f9;
    text-align: left;

    transform: translateY(14px) scale(.96);
    opacity: 0;
    transition: transform .22s cubic-bezier(.2,.8,.25,1), opacity .22s;
}
.esite-dialog-scrim.in .esite-dialog { transform: none; opacity: 1; }

.esite-dialog-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 24px 24px 4px;
}

.esite-dialog-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-size: 21px;
    line-height: 1;
    background: rgba(56, 189, 248, .14);
}
.esite-dialog.ask .esite-dialog-icon { background: rgba(184, 84, 28, .18); }
.esite-dialog.danger .esite-dialog-icon { background: rgba(239, 68, 68, .16); }
.esite-dialog.good .esite-dialog-icon { background: rgba(34, 197, 94, .16); }

.esite-dialog-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    padding-top: 8px;
    word-break: break-word;
}

.esite-dialog-body {
    padding: 12px 24px 4px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
    color: #c6d1e0;
    white-space: pre-wrap;
    word-break: break-word;
}
.esite-dialog-body:empty { display: none; }

.esite-dialog-input {
    margin: 14px 24px 0;
    width: calc(100% - 48px);
    box-sizing: border-box;
    background: rgba(8, 13, 24, .7);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 11px;
    padding: 12px 14px;
    color: #f1f5f9;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    outline: none;
    resize: vertical;
    min-height: 46px;
}
.esite-dialog-input:focus {
    border-color: #b8541c;
    box-shadow: 0 0 0 3px rgba(184, 84, 28, .3);
}

.esite-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 24px 22px;
    flex-wrap: wrap;
}

.esite-dialog-btn {
    min-width: 96px;
    padding: 11px 20px;
    border-radius: 11px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: filter .15s, background .15s;
}
.esite-dialog-btn:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }

.esite-dialog-btn.primary { background: linear-gradient(135deg, #b8541c, #d2691f); color: #fff; }
.esite-dialog-btn.primary:hover { filter: brightness(1.09); }
.esite-dialog-btn.destructive { background: #dc2626; color: #fff; }
.esite-dialog-btn.destructive:hover { filter: brightness(1.09); }
.esite-dialog-btn.ghost {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .18);
    color: #e2e8f0;
}
.esite-dialog-btn.ghost:hover { background: rgba(255, 255, 255, .15); }

@media (max-width: 480px) {
    .esite-dialog-actions { flex-direction: column-reverse; }
    .esite-dialog-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .esite-dialog-scrim, .esite-dialog { transition: none; }
}
