/* Shared TechHarbor brand primitives */

:root {
    --th-logo-accent: #328aca;
    --th-logo-light-main: #011a4e;
    --th-logo-light-sub: #1e3a5f;
    --th-logo-dark-main: #ffffff;
    --th-logo-dark-sub: #8896ab;
    --th-sidebar-width: 18rem;
    --th-sidebar-collapsed-width: 5.25rem;
    --th-sidebar-brand-pad-x: 1.25rem;
    --th-sidebar-brand-pad-y: 1rem;
    --th-sidebar-row-pad-x: 1rem;
    --th-sidebar-collapsed-pad-x: 0.75rem;
    --th-sidebar-row-height: 3rem;
    --th-sidebar-submenu-row-height: 2.5rem;
    --th-sidebar-row-radius: 0.875rem;
    --th-sidebar-utility-lane: 2.75rem;
    --th-sidebar-utility-glyph-size: 1.25rem;
    --th-sidebar-utility-glyph-right-inset: 1.25rem;
    --th-sidebar-status-icon-size: 1rem;
    --th-sidebar-utility-icon: 1.25rem;
    --th-sidebar-utility-edge-inset: 0.75rem;
    --th-sidebar-utility-visual-inset: 19px;
    --th-sidebar-shell-border: rgba(255, 255, 255, 0.08);
    --th-sidebar-hover-bg: rgba(255, 255, 255, 0.06);
    --th-sidebar-active-bg: #328aca;
    --th-sidebar-submenu-active-bg: rgba(50, 138, 202, 0.18);
    --th-sidebar-muted: #8896ab;
    --th-app-header-pad-x: 2rem;
    --th-app-header-pad-y: 1.5rem;
    --th-app-body-pad-x: 2rem;
    --th-app-body-pad-y: 2rem;
    --th-page-width-fixed: 64rem;
    --th-page-width-fixed-wide: 80rem;
    --th-page-layout-gap: 1.5rem;
}

.th-logo-icon {
    display: inline-block;
    flex-shrink: 0;
    vertical-align: middle;
}

.th-logo-icon--light {
    color: var(--th-logo-light-main);
}

.th-logo-icon--dark {
    color: var(--th-logo-dark-main);
}

.th-logo-icon--xs {
    width: 1.5rem;
    height: 1.5rem;
}

.th-logo-icon--sm {
    width: 2rem;
    height: 2rem;
}

.th-logo-icon--md {
    width: 2.25rem;
    height: 2.25rem;
}

.th-logo-icon--lg {
    width: 2.75rem;
    height: 2.75rem;
}

.th-logo-icon--xl {
    width: 4rem;
    height: 4rem;
}

.th-logo-lockup {
    --th-logo-icon-size: 2.25rem;
    --th-logo-gap: 0.375rem;
    --th-logo-main-size: 1.25rem;
    --th-logo-sub-size: 0.75rem;
    --th-logo-sub-offset: 0.125rem;
    --th-logo-underline-top: 1px;
    --th-logo-underline-bottom: 2px;
    display: inline-flex;
    align-items: center;
    gap: var(--th-logo-gap);
    line-height: 1;
}

.th-logo-lockup__icon {
    width: var(--th-logo-icon-size);
    height: var(--th-logo-icon-size);
    color: var(--th-logo-main-color);
}

.th-logo-lockup__wordmark {
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-align: center;
}

.th-logo-lockup__brand {
    color: var(--th-logo-main-color);
    font-size: var(--th-logo-main-size);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1;
    white-space: nowrap;
}

.th-logo-lockup__underline {
    width: 100%;
    height: 2px;
    margin-top: var(--th-logo-underline-top);
    margin-bottom: var(--th-logo-underline-bottom);
    background: var(--th-logo-accent);
}

.th-logo-lockup__descriptor {
    color: var(--th-logo-sub-color);
    font-size: var(--th-logo-sub-size);
    font-weight: 500;
    letter-spacing: 0.025em;
    line-height: 1;
    margin-left: 0;
    white-space: nowrap;
}

.th-logo-lockup--light {
    --th-logo-main-color: var(--th-logo-light-main);
    --th-logo-sub-color: var(--th-logo-light-sub);
}

.th-logo-lockup--dark {
    --th-logo-main-color: var(--th-logo-dark-main);
    --th-logo-sub-color: var(--th-logo-dark-sub);
}

.th-logo-lockup--sm {
    --th-logo-icon-size: 2rem;
    --th-logo-gap: 0.3125rem;
    --th-logo-main-size: 1.125rem;
    --th-logo-sub-size: 0.6875rem;
}

.th-logo-lockup--md {
    --th-logo-icon-size: 2.25rem;
    --th-logo-gap: 0.375rem;
    --th-logo-main-size: 1.25rem;
    --th-logo-sub-size: 0.75rem;
}

.th-logo-lockup--lg {
    --th-logo-icon-size: 2.75rem;
    --th-logo-gap: 0.5rem;
    --th-logo-main-size: 1.5rem;
    --th-logo-sub-size: 0.875rem;
    --th-logo-underline-top: 2px;
    --th-logo-underline-bottom: 2px;
}

.th-logo-lockup--xl {
    --th-logo-icon-size: 4rem;
    --th-logo-gap: 0.625rem;
    --th-logo-main-size: 2.25rem;
    --th-logo-sub-size: 1.25rem;
    --th-logo-sub-offset: 1px;
    --th-logo-underline-top: 2px;
    --th-logo-underline-bottom: 2px;
}

.th-app-sidebar {
    width: var(--th-sidebar-width);
    overflow: hidden;
    transition: width 0.2s ease, transform 0.2s ease;
}

.th-app-sidebar.collapsed {
    width: var(--th-sidebar-collapsed-width) !important;
    overflow: visible;
}

.th-app-main {
    margin-left: var(--th-sidebar-width);
    min-width: 0;
    transition: margin-left 0.2s ease;
}

.th-app-sidebar.collapsed ~ .th-app-main {
    margin-left: var(--th-sidebar-collapsed-width);
}

.th-sidebar-brand {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--th-sidebar-utility-lane);
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 5rem;
    padding: var(--th-sidebar-brand-pad-y) var(--th-sidebar-utility-edge-inset) var(--th-sidebar-brand-pad-y) var(--th-sidebar-brand-pad-x);
    border-bottom: 1px solid var(--th-sidebar-shell-border);
}

.th-sidebar-brand__lockup {
    display: flex;
    align-items: center;
    min-width: 0;
}

.th-sidebar-brand__logo-toggle {
    display: none !important;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: 0.875rem;
    background: transparent;
    color: #ffffff;
    visibility: hidden;
    pointer-events: none;
    justify-self: center;
}

.th-sidebar-brand__logo-toggle:hover {
    background: var(--th-sidebar-hover-bg);
    text-decoration: none;
}

.th-sidebar-brand .th-logo-lockup {
    max-width: 100%;
    user-select: none;
}

.th-sidebar-utility-control,
.th-shell-toggle-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: 0.75rem;
    background: transparent;
    color: var(--th-sidebar-muted);
    flex-shrink: 0;
    transition: background-color 150ms ease, color 150ms ease;
}

.th-sidebar-brand__toggle {
    justify-self: end;
    justify-content: flex-start;
    padding-left: calc(var(--th-sidebar-utility-lane) - var(--th-sidebar-utility-glyph-right-inset) - var(--th-sidebar-utility-glyph-size) + 0.5rem);
    box-sizing: border-box;
    transform: translateX(-0.5rem);
}

.th-sidebar-utility-control:hover,
.th-shell-toggle-button:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    text-decoration: none;
}

.th-sidebar-brand__toggle:hover,
.sidebar-logout:hover {
    background: transparent;
}

.th-sidebar-utility-control.is-active {
    background: rgba(50, 138, 202, 0.18);
    color: #ffffff;
}

.th-sidebar-utility-icon,
.th-shell-toggle-button__icon {
    width: var(--th-sidebar-utility-glyph-size);
    height: var(--th-sidebar-utility-glyph-size);
    flex: 0 0 var(--th-sidebar-utility-glyph-size);
}

.th-shell-toggle-button--light {
    color: var(--th-logo-light-main);
}

.th-shell-toggle-button--light:hover {
    background: rgba(136, 150, 171, 0.08);
    color: var(--th-logo-light-main);
}

.th-app-sidebar.collapsed .th-sidebar-brand {
    grid-template-columns: 1fr;
    justify-items: center;
    justify-content: center;
    gap: 0;
    padding-left: var(--th-sidebar-collapsed-pad-x);
    padding-right: var(--th-sidebar-collapsed-pad-x);
}

.th-app-sidebar.collapsed .th-sidebar-brand__lockup {
    display: none;
}

.th-app-sidebar.collapsed .th-sidebar-brand__logo-toggle {
    display: inline-flex !important;
    visibility: visible;
    pointer-events: auto;
    width: 2.75rem;
    min-width: 2.75rem;
    justify-self: center;
}

.th-app-sidebar.collapsed .th-sidebar-brand__toggle {
    display: none;
}

.th-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem var(--th-sidebar-utility-edge-inset) 1.5rem var(--th-sidebar-utility-edge-inset);
}

.th-sidebar-nav-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.th-sidebar-nav-group--split {
    padding-top: 1rem;
    border-top: 1px solid var(--th-sidebar-shell-border);
}

.th-sidebar-section-label {
    margin: 0 0 0.375rem;
    padding: 0 var(--th-sidebar-utility-edge-inset);
    color: var(--th-sidebar-muted);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
}

.th-sidebar-link {
    display: grid;
    grid-template-columns: 1.25rem minmax(0, 1fr) var(--th-sidebar-utility-lane);
    align-items: center;
    gap: 0.75rem;
    min-height: var(--th-sidebar-row-height);
    padding: 0.75rem 0 0.75rem var(--th-sidebar-row-pad-x);
    border-radius: var(--th-sidebar-row-radius);
    color: var(--th-sidebar-muted);
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.2;
    transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.th-sidebar-link:hover {
    background: var(--th-sidebar-hover-bg);
    color: #ffffff;
}

.th-sidebar-link--active {
    background: var(--th-sidebar-active-bg);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.th-sidebar-link--muted {
    border: 1px solid var(--th-sidebar-shell-border);
    background: rgba(255, 255, 255, 0.02);
}

.th-sidebar-link--button {
    width: 100%;
    border: 0;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.th-sidebar-link--disabled {
    cursor: default;
}

.th-sidebar-link--disabled:hover {
    background: rgba(255, 255, 255, 0.02);
    color: var(--th-sidebar-muted);
}

.th-sidebar-link--placeholder {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--th-sidebar-muted);
    cursor: default;
}

.th-sidebar-link--placeholder:hover {
    background: transparent;
    color: var(--th-sidebar-muted);
    box-shadow: none;
    text-decoration: none;
}

.th-sidebar-link__icon {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 1.25rem;
    justify-self: center;
}

.th-sidebar-link__text {
    min-width: 0;
    white-space: nowrap;
}

.th-sidebar-link__utility {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    color: currentColor;
    pointer-events: none;
    justify-self: end;
}

.th-sidebar-link__utility--glyph {
    width: var(--th-sidebar-utility-lane);
    min-width: var(--th-sidebar-utility-lane);
    justify-content: flex-start;
    padding-left: calc(var(--th-sidebar-utility-lane) - var(--th-sidebar-utility-glyph-right-inset) - var(--th-sidebar-utility-glyph-size));
    box-sizing: border-box;
}

.th-sidebar-link__chevron {
    width: var(--th-sidebar-utility-glyph-size);
    height: var(--th-sidebar-utility-glyph-size);
    flex-shrink: 0;
    pointer-events: none;
    transform-origin: center;
}

.th-sidebar-link__status-icon {
    width: var(--th-sidebar-status-icon-size);
    height: var(--th-sidebar-status-icon-size);
    flex-shrink: 0;
    opacity: 0.82;
}

.th-sidebar-submenu {
    margin-left: 1rem;
    margin-top: 0.75rem;
    padding: 0 1rem 0 1rem;
    border-left: 1px solid var(--th-sidebar-shell-border);
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.th-sidebar-submenu-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-height: var(--th-sidebar-submenu-row-height);
    padding: 0.625rem 0.875rem;
    border-radius: 0.75rem;
    color: var(--th-sidebar-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.2;
    transition: background-color 150ms ease, color 150ms ease;
}

.th-sidebar-submenu-link:hover {
    background: var(--th-sidebar-hover-bg);
    color: #ffffff;
}

.th-sidebar-submenu-link--active {
    background: var(--th-sidebar-submenu-active-bg);
    color: #ffffff;
}

.th-sidebar-submenu-link--placeholder {
    background: transparent;
    color: var(--th-sidebar-muted);
    cursor: default;
}

.th-sidebar-submenu-link--placeholder:hover {
    background: transparent;
    color: var(--th-sidebar-muted);
}

.th-sidebar-submenu-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    color: currentColor;
    flex-shrink: 0;
}

.th-sidebar-submenu-dot {
    width: 0.375rem;
    height: 0.375rem;
    flex: 0 0 0.375rem;
    border-radius: 9999px;
    background: var(--th-logo-accent);
}

.th-sidebar-soon-badge {
    margin-left: auto;
    padding: 0.25rem 0.375rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--th-sidebar-muted);
    font-size: 0.625rem;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.th-sidebar-link__utility .th-sidebar-soon-badge {
    margin-left: 0;
}

.th-sidebar-footer {
    margin-top: auto;
    padding: 1rem var(--th-sidebar-utility-edge-inset) 1rem var(--th-sidebar-utility-edge-inset);
    border-top: 1px solid var(--th-sidebar-shell-border);
    background: linear-gradient(180deg, rgba(1, 26, 78, 0) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.sidebar-footer-row {
    display: flex;
    align-items: center;
    justify-content: stretch;
    min-height: 2.75rem;
    position: relative;
    width: 100%;
}

.sidebar-profile-link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) var(--th-sidebar-utility-lane);
    align-items: center;
    gap: 0.75rem;
    width: calc(100% + 0.5rem);
    min-width: 0;
    min-height: 2.75rem;
    margin: -0.375rem 0 -0.375rem -0.5rem;
    padding: 0.5rem 0 0.5rem 0.5rem;
    border: 0;
    border-radius: 0.875rem;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.sidebar-profile-link:hover {
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
}

.sidebar-profile-link:focus-visible {
    outline: 2px solid rgba(50, 138, 202, 0.55);
    outline-offset: 2px;
}

.sidebar-profile-link__utility {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: var(--th-sidebar-utility-lane);
    min-width: var(--th-sidebar-utility-lane);
    height: auto;
    padding-left: calc(var(--th-sidebar-utility-lane) - var(--th-sidebar-utility-glyph-right-inset) - var(--th-sidebar-utility-glyph-size));
    box-sizing: border-box;
    color: var(--th-sidebar-muted);
    justify-self: end;
    transition: color 150ms ease;
}

.sidebar-profile-link:hover .sidebar-profile-link__utility {
    color: #ffffff;
}

.sidebar-profile-link__utility.is-open {
    color: #ffffff;
}

.sidebar-profile-link__chevron {
    width: var(--th-sidebar-utility-glyph-size);
    height: var(--th-sidebar-utility-glyph-size);
    flex: 0 0 var(--th-sidebar-utility-glyph-size);
    transform-origin: center;
    transition: transform 200ms ease;
}

.sidebar-profile-link__utility.is-open .sidebar-profile-link__chevron {
    transform: rotate(-90deg);
}

.sidebar-avatar-button {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 0.875rem;
    pointer-events: none;
}

.sidebar-avatar-button.is-collapsed {
    pointer-events: auto;
}

.sidebar-user-meta {
    display: grid;
    justify-items: start;
    gap: 0.25rem;
    flex: 1 1 auto;
    min-width: 0;
}

.sidebar-user-role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: -0.125rem;
    padding: 0.125rem 0.375rem;
    border: 1px solid rgba(136, 150, 171, 0.3);
    border-radius: 0.3125rem;
    color: var(--th-sidebar-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.sidebar-account-menu {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 0.75rem);
    display: grid;
    gap: 0.5rem;
    padding: 0.9rem;
    border: 1px solid rgba(136, 150, 171, 0.22);
    border-radius: 1rem;
    background: rgba(5, 26, 78, 0.98);
    box-shadow: 0 20px 40px rgba(5, 32, 84, 0.22);
    z-index: 25;
}

.sidebar-account-menu__eyebrow {
    margin: 0;
    color: var(--th-sidebar-muted);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
}

.sidebar-account-menu__name {
    margin: 0;
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
}

.sidebar-account-menu__email {
    margin: 0;
    color: var(--th-sidebar-muted);
    font-size: 0.8125rem;
    line-height: 1.4;
}

.sidebar-account-menu__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sidebar-account-menu__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.45rem;
    border-radius: 9999px;
    border: 1px solid rgba(136, 150, 171, 0.28);
    color: #ffffff;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.sidebar-account-menu__action {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    min-height: 2.5rem;
    padding: 0.75rem 0.875rem;
    border-radius: 0.875rem;
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
}

.sidebar-account-menu__action:hover {
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.th-app-header {
    padding: var(--th-app-header-pad-y) var(--th-app-header-pad-x);
}

.th-app-body {
    padding: var(--th-app-body-pad-y) var(--th-app-body-pad-x);
}

.th-page-shell {
    width: 100%;
    min-width: 0;
    margin-inline: auto;
}

.th-page-shell--fixed {
    max-width: var(--th-page-width-fixed);
}

.th-page-shell--fixed-wide {
    max-width: var(--th-page-width-fixed-wide);
}

.th-page-shell--fluid {
    max-width: none;
}

.th-page-section {
    min-width: 0;
}

.th-page-grid {
    display: grid;
    gap: var(--th-page-layout-gap);
    min-width: 0;
}

.th-page-grid--detail-aside {
    grid-template-columns: minmax(0, 1.35fr) minmax(20rem, 1fr);
}

.th-page-grid--data-heavy {
    grid-template-columns: minmax(18rem, 22rem) minmax(0, 1fr);
}

.th-page-supporting-column {
    display: flex;
    flex-direction: column;
    gap: var(--th-page-layout-gap);
    min-width: 0;
}

.th-context-sheet {
    position: relative;
    height: 100%;
    width: 100%;
    max-width: 32rem;
    overflow-y: auto;
    border-left: 1px solid rgba(136, 150, 171, 0.2);
    background: #f8fafc;
    padding: 1rem;
    box-shadow: 0 10px 15px rgba(5, 32, 84, 0.1), 0 4px 6px rgba(5, 32, 84, 0.05);
}

.th-shell-toggle-rail,
.th-mobile-shell-overlay {
    display: none;
}

.th-app-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    padding: 1.25rem var(--th-app-body-pad-x) 1.5rem;
    border-top: 0;
    background: transparent;
    box-shadow: none;
}

.th-app-footer--with-devtools {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
}

.th-app-footer__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0.625rem;
    color: #64748b;
    font-size: 0.9375rem;
    line-height: 1.4;
    text-align: center;
}

.th-app-footer__utility-spacer,
.th-app-footer__utility {
    display: flex;
    align-items: center;
    min-width: var(--th-sidebar-utility-lane);
}

.th-app-footer__utility-spacer {
    justify-content: flex-start;
}

.th-app-footer__utility {
    justify-content: flex-end;
}

.th-app-footer__dev-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--th-sidebar-utility-lane);
    height: var(--th-sidebar-utility-lane);
    min-height: var(--th-sidebar-utility-lane);
    border: 0;
    border-radius: 0.75rem;
    background: transparent;
    color: #64748b;
    transition: background-color 150ms ease, color 150ms ease;
}

.th-app-footer__dev-button:hover {
    background: rgba(136, 150, 171, 0.08);
    color: #011a4e;
}

.th-app-footer__dev-button.is-active {
    background: rgba(50, 138, 202, 0.12);
    color: #1e3a5f;
}

.th-app-footer__dev-icon {
    width: var(--th-sidebar-utility-icon);
    height: var(--th-sidebar-utility-icon);
    flex: 0 0 var(--th-sidebar-utility-icon);
}

.th-panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid rgba(136, 150, 171, 0.2);
    border-radius: 1.25rem;
    box-shadow: 0 1px 2px rgba(5, 32, 84, 0.05);
}

.th-panel--tinted {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.92) 0%, rgba(255, 255, 255, 1) 100%);
}

.th-panel__header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.th-panel__eyebrow {
    margin: 0;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
}

.th-panel__title {
    margin: 0;
    color: #011a4e;
    font-size: 1.625rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.th-panel__copy,
.th-panel__meta-copy {
    margin: 0;
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.55;
}

.th-panel__metric {
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.th-panel__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.th-field-grid {
    display: grid;
    gap: 1rem;
}

.th-field-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.th-field {
    display: grid;
    gap: 0.5rem;
}

.th-field__label {
    color: #1e3a5f;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
}

.th-field__hint {
    color: #64748b;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.th-input {
    width: 100%;
    min-height: 2.875rem;
    padding: 0.75rem 0.875rem;
    border: 1px solid rgba(136, 150, 171, 0.28);
    border-radius: 0.875rem;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.9375rem;
    line-height: 1.4;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.th-input::placeholder {
    color: #94a3b8;
}

.th-input:hover {
    border-color: rgba(50, 138, 202, 0.28);
}

.th-input:focus {
    outline: none;
    border-color: rgba(50, 138, 202, 0.56);
    box-shadow: 0 0 0 4px rgba(50, 138, 202, 0.12);
}

.th-input[readonly],
.th-input:disabled {
    background: #f8fafc;
    color: #64748b;
}

.th-stat-list {
    display: grid;
}

.th-stat-list__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 0;
    border-top: 1px solid rgba(136, 150, 171, 0.16);
}

.th-stat-list__row:first-child {
    padding-top: 0;
    border-top: 0;
}

.th-stat-list__row:last-child {
    padding-bottom: 0;
}

.th-stat-list__label {
    color: #64748b;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.35;
    text-transform: uppercase;
}

.th-stat-list__value {
    color: #011a4e;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.45;
    text-align: right;
}

.th-callout {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem 1.125rem;
    border: 1px solid rgba(50, 138, 202, 0.18);
    border-radius: 1rem;
}

.th-callout--info {
    background: rgba(224, 242, 254, 0.55);
    color: #0f172a;
}

.th-callout--subtle {
    background: rgba(248, 250, 252, 0.92);
    color: #0f172a;
}

.th-callout__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.875rem;
    background: rgba(50, 138, 202, 0.12);
    color: #328aca;
    flex: 0 0 2.25rem;
}

.th-callout__icon svg {
    width: 1.125rem;
    height: 1.125rem;
}

.th-callout__title {
    margin: 0;
    color: #011a4e;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.35;
}

.th-callout__copy {
    margin: 0;
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.55;
}

.th-guidance-list {
    display: grid;
    gap: 1rem;
}

.th-guidance-list__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.875rem;
    align-items: start;
    color: #1e3a5f;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.th-guidance-list__item strong {
    color: #011a4e;
}

.th-guidance-list__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: rgba(50, 138, 202, 0.14);
    color: #328aca;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
}

.th-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.625rem 1rem;
    border: 1px solid transparent;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.th-btn:hover {
    text-decoration: none;
}

.th-btn:disabled,
.th-btn[aria-disabled="true"] {
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

.th-btn--primary {
    background: var(--th-logo-accent);
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(5, 32, 84, 0.08);
}

.th-btn--primary:hover {
    background: #2a7ab8;
}

.th-btn--secondary {
    background: #ffffff;
    border-color: rgba(136, 150, 171, 0.28);
    color: var(--th-logo-light-main);
}

.th-btn--secondary:hover {
    background: rgba(136, 150, 171, 0.08);
}

.th-btn--secondary:disabled,
.th-btn--secondary[aria-disabled="true"] {
    background: rgba(136, 150, 171, 0.12);
    border-color: rgba(136, 150, 171, 0.24);
    color: #64748b;
}

.th-btn__icon {
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
}

.th-kpi-card {
    --th-kpi-accent: var(--th-logo-accent);
    --th-kpi-accent-rgb: 50, 138, 202;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    min-height: 8rem;
    padding: 1.25rem;
    background: #ffffff;
    border: 1px solid rgba(136, 150, 171, 0.2);
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgba(5, 32, 84, 0.05);
}

.th-kpi-card--compact {
    min-height: 6.5rem;
    padding: 1rem;
}

.th-kpi-card--success {
    --th-kpi-accent: #10b981;
    --th-kpi-accent-rgb: 16, 185, 129;
}

.th-kpi-card--warning {
    --th-kpi-accent: #f59e0b;
    --th-kpi-accent-rgb: 245, 158, 11;
}

.th-kpi-card--danger {
    --th-kpi-accent: #ef4444;
    --th-kpi-accent-rgb: 239, 68, 68;
}

.th-kpi-card--blue {
    --th-kpi-accent: #1e3a5f;
    --th-kpi-accent-rgb: 30, 58, 95;
}

.th-kpi-card--slate {
    --th-kpi-accent: #64748b;
    --th-kpi-accent-rgb: 100, 116, 139;
}

.th-kpi-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.th-kpi-card__icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.875rem;
    background: rgba(var(--th-kpi-accent-rgb), 0.12);
    color: var(--th-kpi-accent);
}

.th-kpi-card--compact .th-kpi-card__icon-wrap {
    width: 2rem;
    height: 2rem;
    border-radius: 0.75rem;
}

.th-kpi-card__icon {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 1.25rem;
}

.th-kpi-card--compact .th-kpi-card__icon {
    width: 1rem;
    height: 1rem;
    flex-basis: 1rem;
}

.th-kpi-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.th-kpi-card__label {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.3;
    text-transform: uppercase;
}

.th-kpi-card__value {
    color: #0f172a;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.th-kpi-card--compact .th-kpi-card__value {
    font-size: 1.5rem;
}

.th-kpi-card__meta {
    color: #64748b;
    font-size: 0.8125rem;
    line-height: 1.35;
}

.th-module-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 1.25rem 1.5rem;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid rgba(136, 150, 171, 0.2);
    border-radius: 1.25rem;
    box-shadow: 0 1px 2px rgba(5, 32, 84, 0.05);
}

.th-module-card--landscape {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.th-module-card__icon-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
}

.th-module-card__icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    background: rgba(50, 138, 202, 0.12);
    color: #328aca;
}

.th-module-card__icon {
    width: 1.5rem;
    height: 1.5rem;
    flex: 0 0 1.5rem;
}

.th-module-card__intro {
    display: grid;
    gap: 0.75rem;
    min-width: 0;
    align-self: center;
}

.th-module-card__title {
    margin: 0;
    color: #011a4e;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.th-module-card__summary {
    margin: 0;
    color: #64748b;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.th-module-card__fact-list {
    display: grid;
    gap: 0.75rem;
    grid-column: 1 / -1;
    width: 100%;
}

.th-module-card__fact-list--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.th-module-card__fact {
    margin: 0;
    padding: 0.9375rem 1rem;
    border: 1px solid rgba(136, 150, 171, 0.18);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, rgba(241, 245, 249, 0.92) 100%);
    color: #1e3a5f;
    font-size: 0.875rem;
    line-height: 1.45;
}

.th-module-card__fact strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #64748b;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.th-module-card__action-rail {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    align-self: center;
}

.th-module-card--coming-soon .th-module-card__icon-wrap {
    background: rgba(136, 150, 171, 0.12);
    color: #8896ab;
}

.th-module-card--coming-soon .th-module-card__summary,
.th-module-card--coming-soon .th-module-card__fact {
    color: #64748b;
}

.th-layout-inspector {
    position: fixed;
    inset: 0;
    z-index: 120;
    pointer-events: none;
}

.th-layout-inspector__highlight {
    position: fixed;
    border: 2px solid rgba(50, 138, 202, 0.92);
    border-radius: 0.9rem;
    background: rgba(50, 138, 202, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
    pointer-events: none;
}

.th-layout-inspector__tag,
.th-layout-inspector__measure {
    position: absolute;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    background: rgba(1, 26, 78, 0.96);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 10px 20px rgba(5, 32, 84, 0.18);
}

.th-layout-inspector__tag {
    top: -0.875rem;
    left: 0.625rem;
    pointer-events: none;
}

.th-layout-inspector__measure {
    right: 0.625rem;
    bottom: -0.875rem;
    pointer-events: none;
}

.th-layout-inspector__guide {
    position: fixed;
    background: rgba(50, 138, 202, 0.45);
    pointer-events: none;
}

.th-layout-inspector__guide--vertical {
    top: 0;
    bottom: 0;
    width: 1px;
}

.th-layout-inspector__guide--horizontal {
    left: 0;
    right: 0;
    height: 1px;
}

.th-layout-inspector__panel {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: min(21rem, calc(100vw - 2rem));
    padding: 1rem;
    border: 1px solid rgba(50, 138, 202, 0.2);
    border-radius: 1rem;
    background: rgba(1, 26, 78, 0.96);
    color: #ffffff;
    box-shadow: 0 24px 48px rgba(5, 32, 84, 0.22);
    pointer-events: auto;
}

.th-layout-inspector--with-footer-toggle .th-layout-inspector__panel {
    right: 4.5rem;
    bottom: 4.5rem;
}

.th-layout-inspector__eyebrow {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
}

.th-layout-inspector__state {
    margin: 0.5rem 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.8125rem;
    line-height: 1.45;
}

.th-layout-inspector__meta {
    display: grid;
    gap: 0.375rem;
    margin-top: 0.875rem;
}

.th-layout-inspector__label {
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.th-layout-inspector__kind,
.th-layout-inspector__classes,
.th-layout-inspector__edges {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.8125rem;
    line-height: 1.45;
}

.th-layout-inspector__classes {
    color: rgba(186, 230, 253, 0.92);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    word-break: break-word;
}

body[data-th-debug-layout="true"] [data-th-inspect-label],
body[data-th-debug-layout="true"] .th-sidebar-brand__lockup,
body[data-th-debug-layout="true"] .th-logo-lockup,
body[data-th-debug-layout="true"] .th-logo-lockup__icon,
body[data-th-debug-layout="true"] .th-sidebar-utility-control,
body[data-th-debug-layout="true"] .th-sidebar-utility-icon,
body[data-th-debug-layout="true"] .th-shell-toggle-button__icon,
body[data-th-debug-layout="true"] .th-sidebar-link,
body[data-th-debug-layout="true"] .th-sidebar-link__icon,
body[data-th-debug-layout="true"] .th-sidebar-link__utility,
body[data-th-debug-layout="true"] .th-sidebar-link__chevron,
body[data-th-debug-layout="true"] .th-sidebar-submenu,
body[data-th-debug-layout="true"] .th-sidebar-submenu-link,
body[data-th-debug-layout="true"] .th-sidebar-submenu-dot,
body[data-th-debug-layout="true"] .th-sidebar-soon-badge,
body[data-th-debug-layout="true"] .sidebar-footer-row,
body[data-th-debug-layout="true"] .sidebar-profile-link,
body[data-th-debug-layout="true"] .sidebar-avatar-button,
body[data-th-debug-layout="true"] .sidebar-avatar,
body[data-th-debug-layout="true"] .th-kpi-card,
body[data-th-debug-layout="true"] .th-kpi-card__top,
body[data-th-debug-layout="true"] .th-kpi-card__icon-wrap,
body[data-th-debug-layout="true"] .th-kpi-card__icon,
body[data-th-debug-layout="true"] .th-kpi-card__body,
body[data-th-debug-layout="true"] .th-kpi-card__label,
body[data-th-debug-layout="true"] .th-kpi-card__value,
body[data-th-debug-layout="true"] .th-kpi-card__meta,
body[data-th-debug-layout="true"] .th-module-card,
body[data-th-debug-layout="true"] .th-module-card__icon-shell,
body[data-th-debug-layout="true"] .th-module-card__icon-wrap,
body[data-th-debug-layout="true"] .th-module-card__icon,
body[data-th-debug-layout="true"] .th-module-card__intro,
body[data-th-debug-layout="true"] .th-module-card__title,
body[data-th-debug-layout="true"] .th-module-card__summary,
body[data-th-debug-layout="true"] .th-module-card__fact-list,
body[data-th-debug-layout="true"] .th-module-card__fact,
body[data-th-debug-layout="true"] .th-module-card__action-rail,
body[data-th-debug-layout="true"] .th-module-note,
body[data-th-debug-layout="true"] .th-btn,
body[data-th-debug-layout="true"] table {
    cursor: crosshair !important;
}

body[data-th-debug-layout="true"] .th-sidebar-link__utility,
body[data-th-debug-layout="true"] .th-sidebar-link__chevron {
    pointer-events: auto;
}

.th-app-sidebar.collapsed .nav-text,
.th-app-sidebar.collapsed .logo-text,
.th-app-sidebar.collapsed .sidebar-user-meta,
.th-app-sidebar.collapsed .th-sidebar-section-label,
 .th-app-sidebar.collapsed .th-sidebar-link__utility,
 .th-app-sidebar.collapsed .th-sidebar-link__chevron {
    display: none;
}

.th-app-sidebar.collapsed .sidebar-footer {
    padding-left: var(--th-sidebar-collapsed-pad-x);
    padding-right: var(--th-sidebar-collapsed-pad-x);
}

.th-app-sidebar.collapsed .sidebar-footer-row {
    justify-content: center;
}

.th-app-sidebar.collapsed .sidebar-profile-link {
    display: none;
}

.th-app-sidebar.collapsed .sidebar-avatar-button {
    display: inline-flex;
    width: 2.75rem;
}

.th-app-sidebar.collapsed .th-sidebar-submenu {
    display: none !important;
}

.th-app-sidebar.collapsed .sidebar-account-menu {
    left: calc(100% + 0.75rem);
    right: auto;
    bottom: 0;
    width: 15rem;
}

.th-app-sidebar.collapsed .th-sidebar-nav {
    padding-left: var(--th-sidebar-collapsed-pad-x);
    padding-right: var(--th-sidebar-collapsed-pad-x);
}

.th-app-sidebar.collapsed .th-sidebar-link {
    grid-template-columns: 1.25rem;
    justify-content: center;
    justify-items: center;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

[x-cloak] {
    display: none !important;
}

@media (max-width: 1024px) {
    :root {
        --th-app-header-pad-x: 1.5rem;
        --th-app-header-pad-y: 1.25rem;
        --th-app-body-pad-x: 1.5rem;
        --th-app-body-pad-y: 1.5rem;
    }

    .th-field-grid--two {
        grid-template-columns: 1fr;
    }

    .th-page-grid--detail-aside,
    .th-page-grid--data-heavy {
        grid-template-columns: 1fr;
    }

    .th-panel__title {
        font-size: 1.5rem;
    }

    .th-module-card,
    .th-module-card--landscape {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
        gap: 1rem;
    }

    .th-module-card__fact-list--two {
        grid-template-columns: 1fr;
    }

    .th-module-card__icon-shell {
        grid-column: 1;
        grid-row: 1;
        align-self: center;
    }

    .th-module-card__action-rail {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        justify-content: flex-start;
    }

    .th-module-card__intro {
        grid-column: 1 / -1;
        grid-row: 2;
        align-self: start;
    }
}

@media (max-width: 1023px) {
    .th-app-sidebar,
    .th-app-sidebar.collapsed {
        width: min(18rem, calc(100vw - 2rem)) !important;
        transform: translateX(-100%);
        box-shadow: 0 24px 48px rgba(5, 32, 84, 0.24);
    }

    .th-app-sidebar.is-mobile-open {
        transform: translateX(0);
    }

    .th-app-main,
    .th-app-sidebar.collapsed ~ .th-app-main {
        margin-left: 0 !important;
    }

    .th-app-sidebar .th-sidebar-brand {
        padding-left: var(--th-sidebar-brand-pad-x);
        padding-right: var(--th-sidebar-utility-edge-inset);
    }

    .th-app-sidebar.collapsed .th-sidebar-brand {
        grid-template-columns: minmax(0, 1fr) var(--th-sidebar-utility-lane);
        justify-items: stretch;
        gap: 0.75rem;
        padding-left: var(--th-sidebar-brand-pad-x);
        padding-right: var(--th-sidebar-utility-edge-inset);
    }

    .th-app-sidebar.collapsed .th-sidebar-brand__lockup {
        display: flex;
    }

    .th-app-sidebar.collapsed .th-sidebar-brand__logo-toggle {
        display: none !important;
        visibility: hidden;
        pointer-events: none;
    }

    .th-app-sidebar.collapsed .th-sidebar-brand__toggle {
        display: inline-flex;
    }

    .th-app-sidebar.collapsed .sidebar-user-meta,
    .th-app-sidebar.collapsed .logo-text,
    .th-app-sidebar.collapsed .th-sidebar-section-label {
        display: block;
    }

    .th-app-sidebar.collapsed .th-sidebar-link__utility {
        display: inline-flex;
    }

    .th-app-sidebar.collapsed .th-sidebar-link__chevron {
        display: block;
    }

    .th-app-sidebar.collapsed .sidebar-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .th-app-sidebar.collapsed .sidebar-footer-row {
        justify-content: stretch;
    }

    .th-app-sidebar.collapsed .sidebar-profile-link {
        display: flex;
    }

    .th-app-sidebar.collapsed .sidebar-avatar-button,
    .th-app-sidebar.collapsed .sidebar-account-menu {
        display: none !important;
    }

    .th-app-sidebar.collapsed .th-sidebar-submenu {
        display: flex !important;
    }

    .th-app-sidebar.collapsed .th-sidebar-nav {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .th-app-sidebar.collapsed .th-sidebar-link {
        grid-template-columns: 1.25rem minmax(0, 1fr) var(--th-sidebar-utility-lane);
        justify-content: stretch;
        justify-items: stretch;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .th-mobile-shell-overlay {
        position: fixed;
        inset: 0;
        z-index: 35;
        background: rgba(15, 23, 42, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 150ms ease;
        display: block;
    }

    .th-mobile-shell-overlay.is-visible {
        opacity: 1;
        pointer-events: auto;
    }
}

body[data-th-shell-state="mobile-closed"] .th-shell-toggle-rail {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(136, 150, 171, 0.16);
    backdrop-filter: blur(12px);
}

@media (max-width: 768px) {
    :root {
        --th-app-header-pad-x: 1rem;
        --th-app-header-pad-y: 1rem;
        --th-app-body-pad-x: 1rem;
        --th-app-body-pad-y: 1rem;
    }

    .th-app-footer--with-devtools {
        grid-template-columns: auto;
        justify-items: center;
    }

    .th-app-footer__utility-spacer {
        display: none;
    }

    .th-app-footer__utility {
        justify-content: center;
        order: 2;
    }

    .th-app-footer__inner {
        order: 1;
    }

    .th-layout-inspector__panel {
        right: 0.75rem;
        bottom: 0.75rem;
        width: min(18.5rem, calc(100vw - 1.5rem));
    }

    .th-layout-inspector--with-footer-toggle .th-layout-inspector__panel {
        right: 0.75rem;
        bottom: 5.5rem;
    }
}
