/* Shared workspace navigation and existing business workspace page styles. */
.shell-skip{position:fixed;top:8px;left:8px;z-index:600;transform:translateY(-160%);padding:var(--space-3) var(--space-4);background:var(--color-brand);color:var(--color-on-brand);border-radius:var(--radius-md)}
.shell-skip:focus{transform:translateY(0)}
.shell-user-details{flex:1;min-width:0}
.shell-topbar-actions{display:flex;align-items:center;gap:var(--space-2)}
.shell-compact-toggle,.shell-mobile-nav{display:none}
/* Keep the canonical lettering; composite its black backing into the shell. */
.flye-wordmark{width:120px;height:20px;isolation:auto}
.flye-wordmark img{width:138px;left:-8px;bottom:-5px;filter:invert(1) hue-rotate(180deg);mix-blend-mode:multiply}
[data-theme="dark"] .flye-wordmark img{filter:none;mix-blend-mode:screen}
.flye-compact-mark{display:none;width:24px;height:20px;color:var(--primary)}
.theme-business{
    grid-template-columns:248px minmax(0,1fr);min-height:100dvh;
    font-family:var(--font-display);font-variant-numeric:tabular-nums;
}
.app-shell .sidebar{position:sticky;top:0;height:100dvh;min-height:0;border-right:1px solid var(--border);background:var(--sidebar-bg)}
.theme-business .sidebar-overlay{display:none}
.theme-business .brand{padding:var(--space-6) var(--space-6) var(--space-6);min-height:104px;flex-shrink:0;border-bottom:0}
.theme-business .brand-title{color:var(--ink-soft);font-size:var(--text-xs);letter-spacing:0;margin-top:var(--space-2);max-width:180px}
.app-shell .nav-menu{overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:0 var(--space-4) var(--space-6);scrollbar-width:thin;scrollbar-color:var(--border) transparent}
.theme-business .nav-group-label{margin:var(--space-6) var(--space-3) var(--space-2);font-size:var(--text-mono-label);letter-spacing:.12em;text-transform:uppercase;color:var(--ink-lighter);line-height:1.6}
.app-shell .nav-menu>.nav-group-label:first-child{margin-top:var(--space-2)}
.theme-business .nav-item{min-height:44px;gap:var(--space-3);padding:var(--space-3) var(--space-3);border-radius:var(--radius-md);font-size:var(--text-sm);line-height:1.4;color:var(--nav-item-color);transition:background var(--motion-panel),color var(--motion-panel)}
.theme-business .nav-item i{color:inherit;font-size:var(--text-md);flex:0 0 20px}
.theme-business .nav-item:hover{background:var(--nav-hover);color:var(--ink)}
.theme-business .sidebar-footer{padding:var(--space-3);border-top:1px solid var(--border);flex-shrink:0}
.theme-business .user-chip{gap:var(--space-3);padding:var(--space-3) var(--space-1) var(--space-1);min-width:0}
.theme-business .user-name{color:var(--ink);font-size:var(--text-xs)}
.theme-business .user-role{color:var(--ink-soft);font-size:var(--text-mono-label)}
.theme-business .sidebar-user-avatar{border-radius:var(--radius-md);border-color:var(--border);color:var(--primary)}
.theme-business .btn-logout{color:var(--ink-soft);min-width:44px;min-height:44px;display:grid;place-items:center}
.app-shell .shell-compact-toggle{display:flex;align-items:center;gap:var(--space-3);width:100%;min-height:44px;padding:var(--space-2) var(--space-3);border:0;border-radius:var(--radius-md);background:transparent;color:var(--ink-soft);font-size:var(--text-xs);text-align:left}
.app-shell .shell-compact-toggle:hover{color:var(--ink);background:var(--surface-alt)}
.theme-business .topbar{min-height:76px;padding:var(--space-4) var(--space-8);gap:var(--space-3);background:var(--bg);z-index:100}
.shell-context{display:flex;gap:var(--space-3);align-items:center;min-width:0;font-size:var(--text-xs);color:var(--ink-soft)}
.shell-context strong{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:30ch}
.theme-business .notif-btn,.theme-business .dark-toggle-btn,.theme-business .hamburger-btn,.theme-business .sidebar-close-btn{min-height:44px;min-width:44px;color:var(--ink-soft)}
.theme-business .page-body{padding:36px clamp(20px,3vw,48px) 48px;min-width:0;flex:1}
.theme-business .page-title{font-size:var(--text-page-heading);font-weight:600;line-height:1.12;letter-spacing:-.045em;text-wrap:balance}
.theme-business .page-subtitle{color:var(--ink-soft);line-height:1.75;font-size:var(--text-sm);max-width:65ch}
.theme-business .card{color:var(--ink)}
.theme-business .btn.btn-primary{background:var(--primary);border-color:var(--primary);color:var(--button-ink);font-weight:600;box-shadow:none}
.theme-business .btn.btn-primary:hover{background:var(--primary-dark);border-color:var(--primary-dark);color:var(--button-ink)}
.theme-business .btn.btn-primary i{color:inherit}
.theme-business .btn{min-height:44px;border-radius:var(--radius-md);transition:background var(--motion-panel),transform var(--motion-panel)}
.theme-business .btn:active{transform:translateY(1px)}
.theme-business :is(a,button,input,select,textarea,summary):focus-visible{outline:2px solid var(--primary);outline-offset:4px}
.theme-business #app-main:focus{outline:none}
.app-shell .shell-notifications-close{display:grid;place-items:center;flex-shrink:0;min-width:44px;min-height:44px;padding:0;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);color:var(--ink)}
.app-shell .notif-header{gap:var(--space-3)}.app-shell .notif-header>span:first-child{flex:1}.app-shell .notif-dropdown{max-height:calc(100dvh - 100px);display:flex;flex-direction:column}.app-shell .notif-list{min-height:0;overscroll-behavior:contain}
.app-shell .notif-header{flex-shrink:0}.theme-business .brand-title{overflow-wrap:anywhere}
@media(min-width:901px){
    .app-shell.sidebar-compact{grid-template-columns:76px minmax(0,1fr)}
    .app-shell.sidebar-compact .brand{padding:var(--space-6) var(--space-3);justify-content:center;overflow:hidden}
    .app-shell.sidebar-compact .flye-wordmark{width:24px;height:20px}
    .app-shell.sidebar-compact .flye-wordmark img{display:none}
    .app-shell.sidebar-compact .flye-compact-mark{display:block}
    .app-shell.sidebar-compact .brand-title,.app-shell.sidebar-compact .shell-user-details,.app-shell.sidebar-compact .btn-logout{display:none}
    .app-shell.sidebar-compact .nav-menu{padding-inline:var(--space-3)}
    .app-shell.sidebar-compact .nav-item{justify-content:center;padding:var(--space-3);gap:0}
    .app-shell.sidebar-compact .nav-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
    .app-shell.sidebar-compact .nav-item:is(:hover,:focus-visible) .nav-label{position:fixed;left:84px;z-index:510;width:max-content;height:auto;margin:0;padding:var(--space-2) var(--space-3);clip-path:none;overflow:visible;background:var(--surface);color:var(--ink);border:1px solid var(--border);border-radius:var(--radius-md);pointer-events:none}
    .app-shell.sidebar-compact .nav-group-label{height:1px;margin:var(--space-4) var(--space-3);background:var(--border);font-size:0;overflow:hidden}
    .app-shell.sidebar-compact .shell-compact-toggle{justify-content:center;padding:var(--space-3)}
    .app-shell.sidebar-compact .user-chip{justify-content:center}
}
@media(max-width:1100px){.theme-business .topbar{padding-inline:var(--space-6)}.shell-context strong{max-width:20ch}}
@media(max-width:900px){
    .app-shell{grid-template-columns:minmax(0,1fr)}
    .app-shell .sidebar{position:fixed;top:0;left:0;width:min(304px,calc(100vw - 44px));height:100dvh;z-index:500;visibility:hidden}
    .app-shell.sidebar-open .sidebar{visibility:visible}
    .app-shell.sidebar-open .sidebar-overlay{display:block;border:0;padding:0;background:color-mix(in srgb, var(--color-shadow) 65%, transparent)}
    .theme-business .brand{padding:var(--space-6);min-height:96px}
    .app-shell .shell-compact-toggle{display:none}
    .theme-business .topbar{min-height:68px;padding:var(--space-3) var(--space-3)}
    .app-shell .notif-dropdown{position:fixed;top:76px;right:12px;left:auto;width:min(360px,calc(100vw - 24px));max-height:calc(100dvh - 160px)}
    .shell-context{gap:var(--space-2)}.shell-context>span{display:none}.shell-context strong{max-width:24ch;font-size:var(--text-sm)}
    .theme-business .page-body{padding:var(--space-6) var(--space-4) calc(100px + env(safe-area-inset-bottom))}
    .app-shell .shell-mobile-nav{position:fixed;left:0;right:0;bottom:0;z-index:110;display:flex;align-items:stretch;justify-content:space-around;padding:8px 8px calc(8px + env(safe-area-inset-bottom));border-top:1px solid var(--border);background:var(--sidebar-bg)}
    .app-shell .shell-mobile-nav a{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-1);min-height:52px;min-width:44px;border-radius:var(--radius-md);text-decoration:none;color:var(--ink-soft);font-size:var(--text-mono-label)}
    .app-shell .shell-mobile-nav a i{font-size:var(--text-lg)}.app-shell .shell-mobile-nav a.active{color:var(--primary);background:var(--nav-active)}
    /* Until the dedicated Inbox redesign, never cover its existing message composer. */
    .app-shell:has(.mobile-thread-open) .shell-mobile-nav,.app-shell .page-body:has(.mobile-thread-open) .workspace-tabs{display:none}
    .app-shell .page-body:has(.mobile-thread-open){padding-bottom:var(--space-4)}
}
@media(max-width:400px){.shell-context strong{max-width:17ch}.theme-business .page-body{padding-inline:var(--space-4)}.shell-topbar-actions{gap:0}}
@media(max-width:900px){.theme-business .topbar>div:first-child{flex:1;min-width:0}.theme-business .shell-context{min-width:0;flex:1}.theme-business .shell-context strong{max-width:100%}.theme-business .shell-topbar-actions{flex-shrink:0}.theme-business :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea){font-size:var(--text-md)}}
dialog[data-workspace-dialog]{max-width:calc(100% - 32px);max-height:calc(100dvh - 32px);margin:auto;overscroll-behavior:contain;overflow:auto}
.workspace-dialog::backdrop{background:color-mix(in srgb, var(--color-shadow) 55%, transparent)}
.workspace-dialog :is(a,button,input,select,textarea,summary):focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.workspace-dialog-actions{display:flex;gap:var(--space-3);flex-wrap:wrap;justify-content:flex-end;margin-top:var(--space-6)}
.workspace-dialog :is(.btn,.form-control,.form-select){min-height:44px}
.workspace-dialog .workspace-form-error{color:var(--ink);border-inline-start:3px solid var(--danger);background:var(--surface-alt);border-radius:var(--radius-sm);padding:var(--space-3) var(--space-3);font-size:var(--text-xs);margin:0 0 var(--space-4)}
@media(max-width:600px){.workspace-dialog :is(.form-control,.form-select){font-size:var(--text-md)}}
@media (prefers-reduced-motion: reduce) {
    .app-shell *, .app-shell *::before, .app-shell *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

.app-shell .main-content { min-width: 0; }
.app-shell .topbar .hamburger-btn {
    min-inline-size: var(--target-min);
    min-block-size: var(--target-min);
}
.app-shell .nav-item { min-height: var(--target-min); }
.app-shell .sidebar-footer { flex-shrink: 0; }
.app-shell .shell-menu-disclosure > summary, .shell-user-menu > summary {
    list-style: none;
    cursor: pointer;
}
.app-shell .shell-menu-disclosure > summary::-webkit-details-marker,
.shell-user-menu > summary::-webkit-details-marker { display: none; }
.app-shell .shell-menu-disclosure .shell-menu-chevron {
    margin-inline-start: auto;
    flex: 0 0 auto;
    font-size: var(--text-sm);
}
.shell-menu-disclosure[open] .shell-menu-chevron { transform: rotate(180deg); }
.shell-subnav { padding-inline-start: var(--space-3); }
.sidebar-footer .shell-subnav { max-height: 35dvh; overflow-y: auto; }
.shell-user-menu { position: relative; }
.shell-topbar-actions .dark-toggle-btn {
    display: grid; place-items: center;
    min-width: var(--target-min); min-height: var(--target-min);
}
.shell-user-menu-panel {
    position: absolute;
    inset-block-start: calc(100% + var(--space-2));
    inset-inline-end: 0;
    z-index: 200;
    display: grid;
    min-width: max-content;
    padding: var(--space-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-panel);
}
.shell-user-menu-panel .ui-button { justify-content: flex-start; text-decoration: none; }
.shell-push-toggle { margin: var(--space-2); }
.shell-notification-count { color: var(--ink-soft); font-size: var(--text-sm); }
.shell-topbar-actions .notif-btn { min-width: var(--target-min); min-height: var(--target-min); }
.app-shell :is(.sidebar,.shell-mobile-nav,.shell-topbar-actions,.workspace-tabs) :focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}
@media (min-width: 901px) {
    .app-shell.sidebar-compact .shell-subnav,
    .app-shell.sidebar-compact .shell-menu-disclosure .shell-menu-chevron { display: none; }
}
@media (max-width: 900px) {
    .app-shell:has(.shell-mobile-nav) .page-body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
    .app-shell:has(.mobile-thread-open) .page-body { padding-bottom: var(--space-4); }
    .app-shell .topbar { padding-inline: var(--space-2); gap: var(--space-2); }
    .app-shell .breadcrumb-area { min-width: 0; }
    .app-shell .shell-context { min-width: 0; }
    .app-shell .shell-context strong { min-width: 0; }
    .app-shell .hotel-live-status { display: none; }
}
