:root {
    --bg: #edf4ff;
    --bg-deep: #dbe9ff;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #ffffff;
    --surface-alt: #f4f8ff;
    --text: #11213f;
    --muted: #62779f;
    --line: rgba(100, 134, 201, 0.18);
    --primary: #1f6fff;
    --primary-dark: #1552c7;
    --accent: #2fd1ff;
    --success: #25b58a;
    --success-soft: rgba(37, 181, 138, 0.14);
    --danger: #d33d5c;
    --sidebar-top: #0d43c8;
    --sidebar-bottom: #081f65;
    --shadow: 0 16px 42px rgba(26, 74, 163, 0.12);
    --shadow-soft: 0 10px 24px rgba(26, 74, 163, 0.08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(47, 209, 255, 0.26), transparent 26%),
        radial-gradient(circle at top right, rgba(31, 111, 255, 0.12), transparent 20%),
        linear-gradient(135deg, #eff5ff 0%, #edf4ff 46%, #f8fbff 100%);
}

body.mobile-menu-open {
    overflow: hidden;
}

.marketing-body {
    min-height: 100vh;
}

.marketing-shell {
    width: min(100%, 1240px);
    margin: 0 auto;
    padding: 24px 18px 40px;
    display: grid;
    gap: 18px;
}

.marketing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.marketing-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #0d2b69;
}

.marketing-brand-mark {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.marketing-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.marketing-nav a {
    padding: 9px 12px;
    border-radius: 12px;
    color: var(--muted);
    font-weight: 700;
}

.marketing-nav a.active,
.marketing-nav a:hover {
    background: rgba(31, 111, 255, 0.08);
    color: var(--primary-dark);
}

.marketing-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.marketing-main {
    display: grid;
    gap: 18px;
}

.marketing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
    gap: 18px;
    padding: 28px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(47, 209, 255, 0.2), transparent 24%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(229, 239, 255, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
}

.marketing-hero-copy {
    display: grid;
    gap: 14px;
    align-content: center;
}

.marketing-hero-copy h1 {
    margin: 0;
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    font-size: clamp(2rem, 4.3vw, 4rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.marketing-lead {
    margin: 0;
    max-width: 58ch;
    color: var(--muted);
    font-size: 1.06rem;
    line-height: 1.7;
}

.marketing-feature-card,
.marketing-card,
.pricing-card,
.marketing-cta {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.marketing-feature-card,
.marketing-card,
.pricing-card {
    padding: 20px;
}

.marketing-feature-card {
    display: grid;
    gap: 12px;
    align-content: start;
}

.marketing-mini-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.marketing-mini-metrics div {
    padding: 12px;
    border-radius: 14px;
    background: rgba(244, 248, 255, 0.9);
    border: 1px solid rgba(31, 111, 255, 0.08);
}

.marketing-mini-metrics span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.marketing-mini-metrics strong {
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    color: var(--primary-dark);
}

.marketing-section {
    display: grid;
    gap: 18px;
}

.marketing-section-head {
    display: grid;
    gap: 8px;
}

.marketing-section-head h2,
.marketing-card h3,
.pricing-card h2,
.pricing-card h3,
.marketing-cta h2,
.marketing-feature-card h3 {
    margin: 0;
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
}

.marketing-grid {
    display: grid;
    gap: 18px;
}

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

.marketing-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.marketing-card p:last-child,
.marketing-feature-card p:last-child {
    margin-bottom: 0;
}

.marketing-highlight-section {
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(17, 85, 199, 0.08), rgba(47, 209, 255, 0.08));
    border: 1px solid rgba(31, 111, 255, 0.08);
}

.pricing-card {
    position: relative;
    display: grid;
    gap: 14px;
    align-content: start;
}

.pricing-card.featured {
    background: linear-gradient(180deg, rgba(31, 111, 255, 0.98), rgba(22, 82, 199, 0.95));
    color: #ffffff;
    border-color: rgba(31, 111, 255, 0.2);
    box-shadow: 0 20px 42px rgba(21, 82, 199, 0.24);
}

.pricing-card.featured .eyebrow,
.pricing-card.featured .muted,
.pricing-card.featured h2,
.pricing-card.featured p,
.pricing-card.featured li {
    color: #ffffff;
}

.pricing-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pricing-feature-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
    color: var(--muted);
}

.marketing-table-wrap {
    background: rgba(255, 255, 255, 0.7);
}

.marketing-table td:first-child {
    font-weight: 700;
    color: var(--text);
}

.marketing-cta {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.marketing-contact-card {
    padding: 24px;
}

.marketing-contact-form {
    display: grid;
    gap: 12px;
}

.marketing-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 4px 4px;
    color: var(--muted);
}

.marketing-footer strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
}

.marketing-footer-links {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 18px;
}

.auth-stage {
    width: min(100%, 440px);
    display: grid;
    gap: 18px;
}

.auth-brand {
    display: grid;
    justify-items: center;
    gap: 12px;
    text-align: center;
}

.auth-brand-mark {
    width: 110px;
    height: 110px;
    object-fit: contain;
    display: block;
}

.auth-brand h1 {
    margin: 0;
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.08em;
    color: #0d2b69;
}

a {
    color: var(--primary-dark);
    text-decoration: none;
}

img {
    max-width: 100%;
}

.shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 18px;
    padding: 18px;
}

.mobile-menu-toggle {
    display: none;
}

.sidebar {
    padding: 0 18px 22px;
    background:
        radial-gradient(circle at top right, rgba(47, 209, 255, 0.3), transparent 22%),
        linear-gradient(180deg, var(--sidebar-top), var(--sidebar-bottom));
    color: #f8fbff;
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-self: start;
    position: sticky;
    top: 18px;
    height: calc(100vh - 36px);
    max-height: calc(100vh - 36px);
    border-radius: 22px;
    box-shadow: 0 18px 44px rgba(8, 31, 101, 0.26);
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.sidebar::after {
    content: "";
    position: absolute;
    inset: auto -60px -80px auto;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: rgba(47, 209, 255, 0.14);
    filter: blur(10px);
    pointer-events: none;
}

.sidebar-main,
.sidebar-footer {
    position: relative;
    z-index: 1;
}

.sidebar-main {
    display: grid;
    gap: 18px;
    padding-top: 18px;
}

.brand-panel {
    margin: 0 -18px;
    padding: 26px 22px 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96));
    border-radius: 22px 22px 0 0;
    box-shadow: inset 0 -1px 0 rgba(31, 111, 255, 0.08);
}

.brand-lockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.brand-mark {
    width: 82px;
    height: 82px;
    border-radius: 0;
    object-fit: contain;
    display: block;
    box-shadow: none;
}

.sidebar h1,
.hero h2,
.panel h2,
.panel h3,
.record-card h4,
.stat-card strong {
    margin: 0;
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
}

.sidebar h1 {
    font-size: 0.98rem;
    line-height: 1.1;
    letter-spacing: 0.06em;
    text-align: center;
    color: #0d2b69;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.64rem;
    font-weight: 700;
    color: #7a92bd;
    margin: 0 0 6px;
}

.sidebar .eyebrow {
    color: rgba(207, 228, 255, 0.72);
}

.nav {
    display: grid;
    gap: 14px;
    padding: 0 10px;
}

.nav-section {
    display: grid;
    gap: 7px;
}

.nav-section-label {
    margin: 0 0 2px;
    padding: 0 6px;
    color: rgba(207, 228, 255, 0.62);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.nav a,
.button {
    border-radius: 12px;
    padding: 9px 12px;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.nav a {
    color: rgba(242, 247, 255, 0.92);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-weight: 600;
    font-size: 0.9rem;
}

.nav-link-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-indicator {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffd24a, #ff8f4a);
    box-shadow: 0 0 0 4px rgba(255, 210, 74, 0.16);
    flex-shrink: 0;
}

.nav-count-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, #ff7b5c, #ff4f8a);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

.nav a:hover,
.nav a.active,
.button:hover {
    transform: translateY(-1px);
}

.nav a.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(47, 209, 255, 0.22));
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.sidebar-footer {
    display: grid;
    gap: 6px;
    font-size: 0.86rem;
    color: #d9e7ff;
    padding-top: 16px;
    padding-left: 10px;
    padding-right: 10px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.notification-card-unread {
    border-color: rgba(31, 111, 255, 0.34);
    box-shadow: 0 16px 34px rgba(31, 111, 255, 0.12);
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 16px;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(31, 111, 255, 0.12);
    color: var(--primary-dark);
    font-weight: 700;
}

.filter-pill span {
    display: inline-flex;
    min-width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(31, 111, 255, 0.1);
    font-size: 0.78rem;
}

.filter-pill.active {
    background: linear-gradient(135deg, rgba(31, 111, 255, 0.16), rgba(47, 209, 255, 0.18));
    border-color: rgba(31, 111, 255, 0.22);
    box-shadow: 0 12px 22px rgba(31, 111, 255, 0.1);
}

.empty-state-card {
    padding: 20px 22px;
    border-radius: 18px;
    border: 1px dashed rgba(31, 111, 255, 0.24);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(243, 248, 255, 0.92));
}

.empty-state-card h3 {
    margin-bottom: 8px;
}

.sidebar-aircraft-selector {
    display: grid;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.sidebar-aircraft-selector label {
    display: grid;
    gap: 8px;
}

.sidebar-aircraft-selector span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(207, 228, 255, 0.72);
}

.sidebar-aircraft-selector select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #f8fbff;
    font: inherit;
}

.sidebar-aircraft-selector option {
    color: var(--text);
}

.content {
    padding: 2px 0;
    display: grid;
    gap: 14px;
    align-content: start;
    align-items: start;
}

.content-owner {
    gap: 8px;
    align-content: start;
}

.content-owner > section:first-of-type.panel {
    padding-top: 14px;
}

.content-owner > section:first-of-type.collapsible-panel summary {
    padding-top: 14px;
    padding-bottom: 14px;
}

.content-owner > section:first-of-type.stats,
.content-owner > section:first-of-type.dashboard-grid {
    margin-top: -2px;
}

.content-owner > section:first-of-type .panel-heading {
    margin-bottom: 10px;
}

.topbar {
    position: relative;
    z-index: 30;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    height: 62px;
    padding: 8px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-soft);
    overflow: visible;
}

.topbar > div:first-child {
    display: grid;
    align-content: center;
    gap: 1px;
    min-width: 0;
    flex: 1 1 auto;
}

.topbar strong {
    display: block;
    font-size: 0.88rem;
    line-height: 1.1;
    white-space: nowrap;
}

.topbar-context {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-meta {
    display: flex;
    gap: 7px;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-end;
    flex-shrink: 0;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.78rem;
}

.account-menu {
    position: relative;
    z-index: 35;
}

.account-menu summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.account-menu summary::-webkit-details-marker {
    display: none;
}

.account-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 18px rgba(31, 111, 255, 0.18);
}

.account-menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 190px;
    padding: 10px;
    display: grid;
    gap: 4px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(31, 111, 255, 0.12);
    box-shadow: 0 18px 36px rgba(17, 43, 105, 0.16);
    z-index: 60;
}

.account-menu-header {
    display: grid;
    gap: 2px;
    padding: 4px 6px 8px;
    border-bottom: 1px solid rgba(31, 111, 255, 0.08);
    margin-bottom: 4px;
}

.account-menu-header strong {
    font-size: 0.88rem;
    color: var(--text);
}

.account-menu-header span {
    font-size: 0.74rem;
    color: var(--muted);
    text-transform: capitalize;
}

.account-menu-dropdown a {
    display: block;
    padding: 9px 10px;
    border-radius: 10px;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 700;
}

.account-menu-dropdown a:hover {
    background: rgba(31, 111, 255, 0.08);
    color: var(--primary-dark);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--success-soft);
    color: var(--success);
}

.status-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.access-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid transparent;
    white-space: nowrap;
}

.access-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.access-pill.global-admin {
    background: rgba(31, 111, 255, 0.12);
    color: var(--primary-dark);
    border-color: rgba(31, 111, 255, 0.16);
}

.access-pill.aircraft-admin {
    background: rgba(47, 209, 255, 0.14);
    color: #0a77a0;
    border-color: rgba(47, 209, 255, 0.2);
}

.access-pill.owner {
    background: rgba(99, 119, 159, 0.12);
    color: #51637f;
    border-color: rgba(99, 119, 159, 0.16);
}

.booking-notice-strip {
    margin-top: 16px;
    background: linear-gradient(135deg, rgba(255, 194, 61, 0.18), rgba(255, 255, 255, 0.72));
    border: 1px solid rgba(255, 194, 61, 0.24);
}

.booking-alert-panel {
    border-color: rgba(255, 194, 61, 0.26);
    background:
        radial-gradient(circle at top right, rgba(255, 194, 61, 0.18), transparent 24%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 232, 0.9));
}

.hero,
.panel,
.stat-card,
.record-card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.hero {
    position: relative;
    padding: 24px 28px;
    overflow: hidden;
    background:
        radial-gradient(circle at right center, rgba(47, 209, 255, 0.16), transparent 20%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(230, 240, 255, 0.88));
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero::before {
    width: 130px;
    height: 130px;
    top: -54px;
    right: -16px;
    background: rgba(31, 111, 255, 0.08);
}

.hero::after {
    width: 88px;
    height: 88px;
    right: 88px;
    bottom: -28px;
    background: rgba(47, 209, 255, 0.12);
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    letter-spacing: -0.03em;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.85fr);
    gap: 18px;
    align-items: stretch;
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.hero-summary-card {
    align-self: stretch;
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(226, 239, 255, 0.78));
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-soft);
}

.hero-notice-board {
    align-self: stretch;
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(17, 85, 199, 0.96), rgba(31, 111, 255, 0.92) 55%, rgba(47, 209, 255, 0.82));
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    box-shadow: 0 18px 40px rgba(21, 82, 199, 0.22);
    display: grid;
    gap: 14px;
}

.hero-notice-board .eyebrow,
.hero-notice-board .muted,
.hero-notice-board h2,
.hero-notice-board h4,
.hero-notice-board strong,
.hero-notice-board a {
    color: #ffffff;
}

.hero-notice-board .eyebrow {
    color: rgba(226, 239, 255, 0.84);
}

.hero-notice-board .muted {
    color: rgba(240, 247, 255, 0.86);
}

.hero-notice-board .panel-heading {
    margin-bottom: 0;
}

.hero-notice-board .button {
    background: #ffffff;
    color: var(--primary-dark);
    box-shadow: none;
}

.hero-summary-card h3 {
    margin: 0 0 4px;
    font-size: 1.35rem;
}

.mini-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
    align-self: start;
    align-content: start;
}

.mini-stat-grid div {
    padding: 10px 11px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(31, 111, 255, 0.08);
    align-self: start;
}

.mini-stat-grid span {
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mini-stat-grid strong {
    font-size: 1.15rem;
    color: var(--primary-dark);
}

.panel {
    padding: 18px;
}

.panel.narrow {
    max-width: 620px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    justify-self: center;
}

.collapsible-panel {
    padding: 0;
    overflow: hidden;
}

.collapsible-panel summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 18px;
}

.collapsible-panel summary::-webkit-details-marker {
    display: none;
}

.collapsible-panel summary::after {
    content: "Expand";
    font-size: 0.82rem;
    font-weight: 700;
    color: #5d739e;
    background: rgba(122, 146, 189, 0.12);
    border: 1px solid rgba(122, 146, 189, 0.2);
    border-radius: 999px;
    padding: 6px 10px;
}

.collapsible-panel details[open] summary::after {
    content: "Collapse";
}

.collapsible-panel-body {
    padding: 0 18px 18px;
    display: grid;
    gap: 12px;
}

.panel-heading,
.record-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
    margin-bottom: 12px;
}

.notice-board-panel {
    background:
        radial-gradient(circle at top right, rgba(47, 209, 255, 0.18), transparent 24%),
        linear-gradient(135deg, rgba(229, 241, 255, 0.94), rgba(255, 255, 255, 0.96));
    border-color: rgba(31, 111, 255, 0.14);
}

.muted {
    color: var(--muted);
    line-height: 1.5;
    font-size: 0.92rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.stats.single {
    grid-template-columns: minmax(0, 240px);
}

.stat-card {
    position: relative;
    padding: 16px 18px;
    overflow: hidden;
}

.stat-card::after {
    content: "";
    position: absolute;
    inset: auto -22px -28px auto;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: rgba(31, 111, 255, 0.08);
}

.stat-card span,
.stat-card strong {
    position: relative;
    z-index: 1;
}

.stat-card span {
    display: block;
    color: var(--muted);
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.84rem;
}

.stat-card strong {
    font-size: 1.6rem;
    color: var(--primary-dark);
}

.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) minmax(0, 1.1fr);
    gap: 18px;
    align-items: start;
}

.span-2 {
    grid-column: span 2;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.activity-list {
    display: grid;
    gap: 10px;
}

.activity-list.compact .activity-item {
    padding: 12px 13px;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    padding: 13px 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.92));
    border: 1px solid rgba(31, 111, 255, 0.1);
    box-shadow: var(--shadow-soft);
}

.activity-item-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.activity-item-main h4 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.25;
}

.activity-item-main p {
    margin: 0;
}

.activity-item-meta {
    display: grid;
    gap: 6px;
    justify-items: end;
    text-align: right;
    flex-shrink: 0;
}

.activity-item-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(31, 111, 255, 0.1);
    color: var(--primary-dark);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

.dashboard-intro {
    margin-top: 10px;
    max-width: 62ch;
    color: var(--muted);
    line-height: 1.6;
}

.dashboard-checklist {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.dashboard-checklist li {
    padding: 11px 13px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(31, 111, 255, 0.1);
    color: var(--muted);
    line-height: 1.55;
}

.dashboard-checklist strong {
    display: block;
    margin-bottom: 2px;
    color: var(--text);
}

.dashboard-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-metric-card {
    padding: 14px 15px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 247, 255, 0.92));
    border: 1px solid rgba(31, 111, 255, 0.08);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 6px;
}

.dashboard-metric-card span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dashboard-metric-card strong {
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    font-size: 1.35rem;
    color: var(--primary-dark);
    line-height: 1.05;
}

.dashboard-metric-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.dashboard-dual-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 18px;
    align-items: start;
}

.owner-admin-ops-grid {
    margin-bottom: 18px;
}

.dashboard-stack {
    display: grid;
    gap: 18px;
}

.dashboard-action-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.dashboard-action-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 11px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(31, 111, 255, 0.08);
}

.dashboard-action-list strong {
    display: block;
    margin-bottom: 2px;
    font-size: 0.92rem;
}

.dashboard-action-list p {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.dashboard-action-list a {
    flex-shrink: 0;
    font-weight: 700;
}

.notice-board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.notice-board-grid.featured {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.notice-board-feed {
    grid-template-columns: 1fr;
}

.notice-board-posts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.stacked-collapsible-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.stacked-collapsible-card {
    padding: 0;
    overflow: hidden;
}

.stacked-collapsible-card details {
    display: block;
}

.stacked-collapsible-card summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 18px;
}

.stacked-collapsible-card summary::-webkit-details-marker {
    display: none;
}

.stacked-collapsible-card summary::after {
    content: "Expand";
    font-size: 0.82rem;
    font-weight: 700;
    color: #5d739e;
    background: rgba(122, 146, 189, 0.12);
    border: 1px solid rgba(122, 146, 189, 0.2);
    border-radius: 999px;
    padding: 6px 10px;
    flex-shrink: 0;
}

.stacked-collapsible-card details[open] summary::after {
    content: "Collapse";
}

.stacked-collapsible-body {
    padding: 0 18px 18px;
    display: grid;
    gap: 12px;
}

.stacked-collapsible-card summary h4 {
    margin-bottom: 4px;
}

.stacked-collapsible-card summary p:last-child {
    margin: 0;
}

.notice-post-card .record-head {
    margin-bottom: 0;
}

.notice-board-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(235, 244, 255, 0.95), rgba(255, 255, 255, 0.96));
    border: 1px solid rgba(31, 111, 255, 0.12);
    box-shadow: var(--shadow-soft);
}

.notice-board-card.highlight {
    background: linear-gradient(145deg, rgba(31, 111, 255, 0.16), rgba(47, 209, 255, 0.12) 60%, rgba(255, 255, 255, 0.92));
    border: 1px solid rgba(31, 111, 255, 0.16);
    box-shadow: 0 12px 24px rgba(26, 74, 163, 0.08);
}

.notice-board-card.highlight .button {
    background: rgba(255, 255, 255, 0.96);
    color: var(--primary-dark);
}

.notice-board-feature {
    padding: 14px 15px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(31, 111, 255, 0.12), rgba(47, 209, 255, 0.1));
    border: 1px solid rgba(31, 111, 255, 0.12);
}

.notice-board-feature.empty {
    background: linear-gradient(135deg, rgba(31, 111, 255, 0.08), rgba(47, 209, 255, 0.08));
}

.notice-board-card h4 {
    margin: 0;
    font-size: 1.05rem;
}

.notice-board-card .button {
    justify-self: start;
    margin-top: 4px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.photo-card {
    margin: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(241, 247, 255, 0.96));
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.photo-card img {
    width: 100%;
    height: 148px;
    object-fit: cover;
    display: block;
}

.photo-card-placeholder {
    display: none;
    height: 148px;
    place-items: center;
    background: linear-gradient(135deg, rgba(31, 111, 255, 0.16), rgba(47, 209, 255, 0.22));
    color: var(--primary-dark);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.photo-card figcaption {
    padding: 12px;
    display: grid;
    gap: 6px;
}

.aircraft-profile-media {
    margin: 0 0 14px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(31, 111, 255, 0.12), rgba(51, 207, 255, 0.18));
    border: 1px solid rgba(31, 111, 255, 0.12);
}

.aircraft-profile-media img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.aircraft-profile-placeholder {
    height: 180px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(31, 111, 255, 0.2), rgba(51, 207, 255, 0.32));
}

.aircraft-profile-placeholder span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--primary-dark);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.owner-selector {
    grid-template-columns: minmax(0, 320px);
}

.top-gap {
    margin-top: 18px;
}

.motion-editor {
    display: grid;
    gap: 14px;
}

.voting-step-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.voting-step-card {
    padding: 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 247, 255, 0.94));
    border: 1px solid rgba(31, 111, 255, 0.1);
    box-shadow: var(--shadow-soft);
}

.voting-step-card h4 {
    margin: 2px 0 6px;
}

.voting-step-card p:last-child {
    margin-bottom: 0;
}

.form-section-label {
    display: grid;
    gap: 2px;
    margin-top: 4px;
}

.form-section-label h3 {
    margin: 0;
}

.motion-form-card {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.motion-form-card .panel-heading {
    margin-bottom: 2px;
}

.motion-form-card textarea {
    min-height: 220px;
    padding-top: 14px;
}

.motion-form-card label {
    gap: 8px;
}

.attachment-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.attachment-list a {
    display: inline-flex;
    align-items: center;
    padding: 9px 12px;
    border: 1px solid rgba(31, 111, 255, 0.14);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(31, 111, 255, 0.1), rgba(47, 209, 255, 0.06));
    color: var(--primary-dark);
    width: fit-content;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.vote-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.vote-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-alt);
    font-size: 0.9rem;
}

.vote-option input[type="radio"] {
    width: auto;
}

.record-card {
    padding: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.92));
}

.reply-thread {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 12px;
}

.reply-thread-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.reply-card {
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(238, 245, 255, 0.94), rgba(255, 255, 255, 0.96));
    border: 1px solid rgba(31, 111, 255, 0.1);
    box-shadow: var(--shadow-soft);
}

.reply-card .record-head {
    margin-bottom: 10px;
}

.reply-card p:last-child {
    margin-bottom: 0;
}

.reply-form {
    padding: 14px;
    border-radius: 14px;
    background: rgba(245, 249, 255, 0.9);
    border: 1px solid rgba(31, 111, 255, 0.08);
}

.emphasis-panel {
    display: grid;
    gap: 14px;
    background: linear-gradient(180deg, rgba(233, 242, 255, 0.92), rgba(255, 255, 255, 0.92));
}

.compact-metric-list {
    display: grid;
    gap: 10px;
}

.compact-metric-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(31, 111, 255, 0.08);
}

.compact-metric-list span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.compact-metric-list strong {
    font-size: 0.92rem;
}

.info-strip {
    padding: 12px 13px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(31, 111, 255, 0.1), rgba(47, 209, 255, 0.08));
    border: 1px solid rgba(31, 111, 255, 0.1);
}

.info-strip strong {
    display: block;
    margin: 2px 0 4px;
}

.meta {
    display: grid;
    gap: 8px;
}

.meta div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 7px;
}

.meta dt {
    color: var(--muted);
    font-weight: 600;
}

.meta dd {
    margin: 0;
    font-weight: 700;
    color: var(--text);
}

.form-grid {
    display: grid;
    gap: 10px;
}

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

.full-width {
    grid-column: 1 / -1;
}

label {
    display: grid;
    gap: 6px;
    font-weight: 700;
    color: var(--text);
    font-size: 0.92rem;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(93, 126, 186, 0.18);
    background: rgba(245, 249, 255, 0.95);
    border-radius: 12px;
    padding: 9px 11px;
    font: inherit;
    color: inherit;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(31, 111, 255, 0.45);
    box-shadow: 0 0 0 4px rgba(31, 111, 255, 0.12);
}

textarea {
    resize: vertical;
}

.form-actions,
.inline-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.inline-form {
    display: inline-flex;
    margin: 0;
}

.link-button {
    border: 0;
    background: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: var(--primary-dark);
    cursor: pointer;
}

.link-button:hover {
    text-decoration: underline;
}

.checkbox-row {
    display: flex;
    align-items: center;
}

.checkbox-row span {
    display: flex;
    gap: 10px;
    align-items: center;
    font-weight: 700;
}

.checkbox-row input[type="checkbox"] {
    width: auto;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary), #458eff);
    color: white;
    font: inherit;
    font-weight: 700;
    box-shadow: 0 12px 22px rgba(31, 111, 255, 0.2);
}

.button.subtle {
    background: linear-gradient(135deg, rgba(31, 111, 255, 0.1), rgba(47, 209, 255, 0.1));
    color: var(--primary-dark);
    box-shadow: none;
}

.table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.5);
}

.booking-filter-grid {
    align-items: end;
}

.schedule-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.schedule-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    display: inline-block;
}

.legend-swatch.approved {
    background: rgba(31, 111, 255, 0.9);
}

.legend-swatch.pending {
    background: rgba(255, 194, 61, 0.95);
}

.legend-swatch.cancelled {
    background: rgba(211, 61, 92, 0.9);
}

.legend-swatch.maintenance {
    background: rgba(37, 181, 138, 0.9);
}

.legend-swatch.blackout {
    background: rgba(17, 33, 63, 0.75);
}

.status-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.status-pill.inline {
    padding: 6px 10px;
    white-space: nowrap;
}

.status-pill.approved,
.status-pill.approved-booking,
.status-pill.approved\/awaiting-flight {
    background: rgba(31, 111, 255, 0.12);
    color: #1557d6;
}

.status-pill.pending,
.status-pill.pending-approval {
    background: rgba(255, 194, 61, 0.18);
    color: #9a6300;
}

.status-pill.cancelled,
.status-pill.cancelled-or-declined,
.status-pill.declined {
    background: rgba(211, 61, 92, 0.12);
    color: #a12f4a;
}

.status-pill.neutral {
    background: rgba(17, 33, 63, 0.08);
    color: #35517f;
}

.booking-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

.booking-agenda {
    display: grid;
    gap: 12px;
}

.booking-agenda-item {
    padding: 14px 15px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 247, 255, 0.96));
    border: 1px solid rgba(31, 111, 255, 0.12);
    box-shadow: var(--shadow-soft);
}

.booking-agenda-item.blocked {
    background: linear-gradient(180deg, rgba(244, 248, 255, 0.96), rgba(234, 242, 255, 0.96));
}

.booking-agenda-item-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 8px;
}

.booking-agenda-item h4 {
    margin: 0;
}

.booking-agenda-item-time {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--primary-dark);
    white-space: nowrap;
}

.booking-agenda-item-meta {
    display: grid;
    gap: 4px;
    color: var(--muted);
    font-size: 0.9rem;
}

.booking-calendar-head {
    padding: 0 4px 4px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.booking-calendar-day {
    min-height: 150px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(31, 111, 255, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 247, 255, 0.92));
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 10px;
    align-content: start;
}

.booking-calendar-day.outside {
    background: rgba(255, 255, 255, 0.58);
    border-color: rgba(100, 134, 201, 0.12);
}

.booking-calendar-date {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.booking-calendar-day.outside .booking-calendar-date {
    color: var(--muted);
}

.booking-calendar-events {
    display: grid;
    gap: 8px;
}

.booking-chip {
    display: grid;
    gap: 2px;
    padding: 8px 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(31, 111, 255, 0.12), rgba(47, 209, 255, 0.12));
    border: 1px solid rgba(31, 111, 255, 0.12);
    color: var(--primary-dark);
    font-size: 0.8rem;
    line-height: 1.35;
}

.booking-chip strong {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.booking-chip.cancelled {
    background: rgba(211, 61, 92, 0.08);
    border-color: rgba(211, 61, 92, 0.16);
    color: #9d2945;
}

.booking-chip.pending {
    background: rgba(255, 194, 61, 0.14);
    border-color: rgba(255, 194, 61, 0.24);
    color: #9a6300;
}

.booking-chip.declined {
    background: rgba(211, 61, 92, 0.1);
    border-color: rgba(211, 61, 92, 0.2);
    color: #9d2945;
}

.booking-chip.maintenance {
    background: rgba(37, 181, 138, 0.12);
    border-color: rgba(37, 181, 138, 0.22);
    color: #16785b;
}

.booking-chip.blackout {
    background: rgba(17, 33, 63, 0.08);
    border-color: rgba(17, 33, 63, 0.14);
    color: #24385e;
}

.log-snapshots {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.log-snapshots div {
    display: grid;
    gap: 5px;
}

.log-snapshots span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.log-snapshots code {
    display: block;
    white-space: pre-wrap;
    word-break: break-word;
    padding: 9px 10px;
    border-radius: 12px;
    background: rgba(240, 246, 255, 0.92);
    border: 1px solid rgba(31, 111, 255, 0.1);
    color: var(--primary-dark);
    font-size: 0.82rem;
}

.audit-entry-body {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.audit-field-list,
.audit-diff {
    display: grid;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(240, 246, 255, 0.72);
    border: 1px solid rgba(31, 111, 255, 0.1);
}

.audit-field-list > span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.audit-raw-section {
    padding-top: 8px;
}

.audit-raw-section .audit-diff,
.audit-raw-section .audit-field-list {
    margin-top: 10px;
}

.audit-field-grid,
.audit-diff-grid {
    display: grid;
    gap: 8px;
}

.audit-field-row,
.audit-diff-row {
    display: grid;
    gap: 4px;
    padding-top: 6px;
    border-top: 1px solid rgba(31, 111, 255, 0.08);
}

.audit-field-row:first-child,
.audit-diff-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.audit-field-row strong,
.audit-diff-row strong {
    font-size: 0.82rem;
    color: var(--primary-dark);
}

.audit-field-row span,
.audit-diff-values span {
    font-size: 0.84rem;
    color: var(--text);
}

.audit-diff-values {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
}

.audit-diff-values span {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(31, 111, 255, 0.08);
}

.audit-raw {
    border-top: 1px dashed rgba(100, 134, 201, 0.26);
    padding-top: 8px;
}

.audit-raw summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.84rem;
}

.audit-raw summary::-webkit-details-marker {
    display: none;
}

.audit-raw summary::after {
    content: "Expand";
    font-size: 0.78rem;
    font-weight: 700;
    color: #5d739e;
    background: rgba(122, 146, 189, 0.12);
    border: 1px solid rgba(122, 146, 189, 0.18);
    border-radius: 999px;
    padding: 6px 10px;
    white-space: nowrap;
}

.audit-raw[open] summary::after {
    content: "Collapse";
}

.chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.summary-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(242, 247, 255, 0.92));
    border: 1px solid rgba(31, 111, 255, 0.12);
    color: var(--primary-dark);
    font-size: 0.86rem;
    font-weight: 700;
}

.summary-chip strong {
    font-size: 0.82rem;
    color: #1557d6;
}

.finance-summary-panel {
    background:
        radial-gradient(circle at top right, rgba(47, 209, 255, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 247, 255, 0.94));
}

.finance-metric-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

th,
td {
    text-align: left;
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
}

tbody tr:hover {
    background: rgba(31, 111, 255, 0.035);
}

th {
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.6);
}

.alert {
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 700;
    border: 1px solid transparent;
    font-size: 0.92rem;
}

.alert.success {
    background: rgba(37, 181, 138, 0.12);
    color: #137958;
    border-color: rgba(37, 181, 138, 0.18);
}

.alert.error {
    background: rgba(211, 61, 92, 0.1);
    color: var(--danger);
    border-color: rgba(211, 61, 92, 0.16);
}

@media (max-width: 1180px) {
    .shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        top: 16px;
        left: 16px;
        bottom: 16px;
        width: min(320px, calc(100vw - 32px));
        min-height: 0;
        z-index: 120;
        transform: translateX(calc(-100% - 26px));
        transition: transform 0.24s ease;
        overflow-y: auto;
    }

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

    .mobile-menu-toggle {
        position: fixed;
        top: 16px;
        left: 16px;
        z-index: 130;
        width: 52px;
        height: 52px;
        border: 1px solid rgba(255, 255, 255, 0.78);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.88);
        box-shadow: var(--shadow-soft);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        flex-direction: column;
        cursor: pointer;
        backdrop-filter: blur(18px);
    }

    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
        border-radius: 999px;
        background: var(--primary-dark);
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .content {
        padding-top: 56px;
    }
}

@media (max-width: 980px) {
    .marketing-header,
    .marketing-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .marketing-hero,
    .marketing-grid-2,
    .marketing-grid-3 {
        grid-template-columns: 1fr;
    }

    .hero-grid,
    .dashboard-dual-grid,
    .dashboard-summary-grid,
    .dashboard-grid,
    .split,
    .stats,
    .form-grid.two-column {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: auto;
    }

    .shell {
        padding: 16px;
        gap: 16px;
    }

    .content {
        gap: 16px;
    }

    .topbar,
    .panel-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .hero,
    .panel {
        padding: 16px;
    }

    .booking-calendar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .marketing-shell {
        padding: 16px 14px 28px;
    }

    .marketing-header,
    .marketing-hero,
    .marketing-highlight-section,
    .marketing-contact-card,
    .marketing-cta {
        padding: 18px;
    }

    .marketing-footer {
        flex-direction: column;
    }

    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }

    .panel h2,
    .panel h3 {
        font-size: clamp(1.2rem, 5vw, 1.55rem);
        line-height: 1.2;
    }

    .table-wrap.table-stack {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .table-wrap.table-stack table,
    .table-wrap.table-stack thead,
    .table-wrap.table-stack tbody {
        display: block;
        width: 100%;
    }

    .table-wrap.table-stack thead {
        display: none;
    }

    .table-wrap.table-stack tbody {
        display: grid;
        gap: 12px;
    }

    .table-wrap.table-stack tr {
        display: grid;
        gap: 10px;
        padding: 14px;
        border-radius: 14px;
        border: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.88);
        box-shadow: var(--shadow-soft);
    }

    .table-wrap.table-stack td {
        display: grid;
        gap: 4px;
        padding: 0;
        border: 0;
        text-align: left;
    }

    .table-wrap.table-stack td::before {
        content: attr(data-label);
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: #7a92bd;
    }

    .table-wrap.table-stack td.inline-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
    }

    .table-wrap.table-stack td.inline-actions::before {
        width: 100%;
    }

    .table-wrap.table-stack td[colspan] {
        text-align: left;
    }

    .table-wrap.table-stack td[colspan]::before {
        display: none;
    }

    .voting-step-grid {
        grid-template-columns: 1fr;
    }

    .filter-pills,
    .schedule-legend,
    .status-strip {
        gap: 8px;
    }
}

@media (max-width: 640px) {
    .booking-calendar {
        grid-template-columns: 1fr;
    }

    .desktop-calendar {
        display: none;
    }

    .booking-agenda-item-head {
        flex-direction: column;
    }

    .activity-item {
        flex-direction: column;
    }

    .activity-item-meta {
        justify-items: start;
        text-align: left;
    }
}
