:root {
    --bg: #07110C;
    --surface: rgba(7, 17, 12, 0.74);
    --surface-strong: rgba(7, 17, 12, 0.9);
    --panel: rgba(39, 59, 48, 0.36);
    --panel-strong: rgba(39, 59, 48, 0.58);
    --border: rgba(209, 250, 229, 0.14);
    --border-strong: rgba(209, 250, 229, 0.24);
    --green-dark: #273B30;
    --green-light: #22733F;
    --green-glow: #7EDC9F;
    --blue: var(--green-light);
    --blue-soft: rgba(34, 115, 63, 0.2);
    --orange: var(--green-glow);
    --orange-soft: rgba(39, 59, 48, 0.28);
    --green: #22C55E;
    --text: #F8FAFC;
    --muted: #94A3B8;
    --muted-strong: #CBD5E1;
    --shadow: 0 22px 80px rgba(0, 0, 0, 0.45);
    --radius: 8px;
    --header-height: 76px;
    --container: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background:
        linear-gradient(135deg, rgba(34, 115, 63, 0.2), transparent 34%),
        linear-gradient(315deg, rgba(39, 59, 48, 0.42), transparent 38%),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

main {
    flex: 1 0 auto;
    width: 100%;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 76%);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

button {
    cursor: pointer;
}

::selection {
    background: rgba(34, 115, 63, 0.42);
    color: var(--text);
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 18px;
    background:
        radial-gradient(circle at 50% 42%, rgba(34, 115, 63, 0.24), transparent 34%),
        linear-gradient(135deg, rgba(34, 115, 63, 0.2), transparent 36%),
        linear-gradient(315deg, rgba(39, 59, 48, 0.5), transparent 42%),
        var(--bg);
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-visual {
    position: relative;
    width: min(58vw, 260px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 0 54px rgba(34, 115, 63, 0.32), 0 0 34px rgba(126, 220, 159, 0.16);
}

.loader-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.loader-progress {
    width: min(68vw, 320px);
    height: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
}

.loader-progress span {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), var(--orange));
    box-shadow: 0 0 22px rgba(126, 220, 159, 0.36);
    transition: width 0.12s linear;
}

.loader-percent {
    font-size: 2rem;
    font-weight: 900;
}

.page-loader p {
    margin: 0;
    color: var(--muted);
}

.site-header {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 1000;
    width: calc(100% - 28px);
    max-width: 1100px;
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 14px 12px 16px;
    border: 1px solid var(--border);
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(39, 59, 48, 0.42), rgba(7, 17, 12, 0.78)),
        var(--surface);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.36), 0 0 38px rgba(34, 115, 63, 0.12);
    backdrop-filter: blur(22px);
    transform: translateX(-50%);
    transition: min-height 0.22s ease, padding 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.site-header.is-scrolled {
    min-height: 62px;
    padding: 8px 12px;
    background:
        linear-gradient(135deg, rgba(39, 59, 48, 0.5), rgba(7, 17, 12, 0.92)),
        var(--surface-strong);
    border-color: var(--border-strong);
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
}

.brand-logo {
    width: clamp(132px, 17vw, 210px);
    height: 48px;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.32));
}

.brand-mark {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-light), var(--green-glow));
    color: white;
    font-weight: 950;
    box-shadow: 0 0 34px rgba(34, 115, 63, 0.42);
}

.primary-nav {
    display: none;
    align-items: center;
    gap: 2px;
}

.primary-nav a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--muted-strong);
    font-size: 0.92rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    outline: none;
}

.drivershub-link {
    gap: 0;
}

.drivershub-hub {
    position: relative;
}

.nav-beta {
    position: absolute;
    left: 50%;
    bottom: calc(100% - 2px);
    transform: translateX(-50%);
    color: #FF4D4D;
    font-size: 0.52rem;
    font-weight: 950;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 77, 77, 0.55);
    animation: betaBlink 1.05s ease-in-out infinite;
}

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

.icon-link,
.menu-toggle {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.icon-link {
    font-size: 0.72rem;
    font-weight: 900;
}

.icon-link img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}

.icon-link i {
    color: #fff;
    font-size: 22px;
}

.icon-link[aria-label="TruckersMP"] img {
    width: 24px;
    height: 24px;
}

.icon-link[aria-label="TrucksBook"] img {
    border-radius: 4px;
}

.intern-login-link {
    background: linear-gradient(135deg, rgba(34, 115, 63, 0.68), rgba(126, 220, 159, 0.2));
    border-color: rgba(126, 220, 159, 0.34);
}

.intern-login-link i {
    font-size: 19px;
}

.icon-link:not([aria-label="TruckersMP"]) img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
}

.icon-link:hover,
.menu-toggle:hover {
    border-color: rgba(126, 220, 159, 0.5);
    box-shadow: 0 0 22px rgba(34, 115, 63, 0.24);
}

.menu-toggle {
    border: 0;
    padding: 0;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    display: block;
    margin: 2px 0;
    border-radius: 99px;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

.primary-nav.is-open {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(39, 59, 48, 0.48), rgba(7, 17, 12, 0.96)),
        var(--surface-strong);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.primary-nav.is-open a {
    justify-content: center;
}

.hero {
    position: relative;
    min-height: 88svh;
    display: grid;
    align-items: center;
    isolation: isolate;
    overflow: hidden;
    padding: 148px 18px 64px;
}

.hero-image {
    position: absolute;
    inset: 0;
    z-index: -4;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 42% center;
    opacity: 0.82;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(90deg, rgba(7, 17, 12, 0.36) 0%, rgba(7, 17, 12, 0.5) 42%, rgba(7, 17, 12, 0.86) 100%),
        linear-gradient(180deg, rgba(7, 17, 12, 0.18), rgba(7, 17, 12, 0.96));
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    opacity: 0.45;
}

.hero-content {
    width: min(100%, var(--container));
    margin: 0 auto;
    padding-top: 18px;
    display: grid;
    justify-items: center;
    text-align: center;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--orange);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 100%;
    margin: 0;
    font-size: 3.05rem;
    line-height: 0.96;
    letter-spacing: 0;
    white-space: nowrap;
}

.hero-subtitle {
    max-width: 650px;
    margin: 22px 0 0;
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 650;
    white-space: nowrap;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--text);
    font-weight: 800;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--green-light), var(--green-glow));
    box-shadow: 0 16px 38px rgba(34, 115, 63, 0.28), 0 10px 30px rgba(126, 220, 159, 0.14);
}

.btn-secondary {
    border-color: rgba(126, 220, 159, 0.46);
    background: rgba(34, 115, 63, 0.22);
}

.btn-ghost {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.06);
}

.stat-card,
.driver-card,
.job-card,
.event-card,
.member-card,
.partner-card,
.blog-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 48px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px);
}

.section {
    width: min(100% - 36px, var(--container));
    margin: 0 auto;
    padding: 76px 0;
}

.section-compact {
    padding-top: 20px;
}

.apply-band {
    width: 100%;
    border-top: 1px solid rgba(126, 220, 159, 0.12);
    border-bottom: 1px solid rgba(126, 220, 159, 0.12);
    background:
        linear-gradient(90deg, rgba(34, 115, 63, 0.2), rgba(7, 17, 12, 0.2)),
        rgba(7, 17, 12, 0.56);
}

.apply-inner {
    width: min(100% - 36px, var(--container));
    min-height: 190px;
    margin: 0 auto;
    display: grid;
    gap: 22px;
    align-items: center;
    padding: 42px 0;
}

.apply-content {
    max-width: 100%;
}

.apply-content h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.02;
}

.apply-lead {
    max-width: 760px;
    margin: 16px 0 0;
    color: var(--muted-strong);
    font-size: 1.02rem;
}

.apply-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 22px;
}

.apply-detail {
    padding-left: 14px;
    border-left: 2px solid rgba(126, 220, 159, 0.48);
}

.apply-detail h3 {
    margin: 0;
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.2;
}

.apply-detail p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.55;
}

.apply-list {
    display: grid;
    gap: 7px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.45;
}

.apply-list li {
    position: relative;
    padding-left: 15px;
}

.apply-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.68em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green-glow);
    transform: translateY(-50%);
}

.apply-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 4px;
}

.section-head {
    margin-bottom: 24px;
}

.section-head h2 {
    margin: 0;
    font-size: 2.25rem;
    line-height: 1.08;
}

.section-head.split {
    display: grid;
    gap: 16px;
    align-items: end;
}

.section-link,
.refresh-pill {
    justify-self: start;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted-strong);
    font-size: 0.88rem;
    font-weight: 750;
}

.carousel-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-self: start;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.carousel-btn span {
    line-height: 1;
    font-size: 1.7rem;
    font-weight: 800;
}

.carousel-btn:hover,
.carousel-btn:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(126, 220, 159, 0.5);
    box-shadow: 0 0 22px rgba(34, 115, 63, 0.24);
    outline: none;
}

.carousel-btn:disabled {
    cursor: not-allowed;
    opacity: 0.38;
    transform: none;
    box-shadow: none;
}

.stats-band {
    padding-top: 58px;
}

.stats-grid,
.podium-grid,
.job-grid,
.event-grid,
.event-carousel,
.member-grid,
.partner-grid,
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.event-carousel {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 2px 2px 16px;
    scrollbar-color: rgba(126, 220, 159, 0.36) rgba(255, 255, 255, 0.06);
    scrollbar-width: thin;
}

.event-grid {
    display: flex;
    flex-wrap: wrap;
}

.event-grid .event-card,
.event-grid .skeleton-card {
    flex: 0 1 min(88vw, 420px);
    width: min(88vw, 420px);
}

.event-carousel .event-card,
.event-carousel .skeleton-card {
    flex: 0 0 min(88vw, 420px);
    scroll-snap-align: start;
}

.event-carousel .empty-state,
.event-carousel .error-state {
    flex: 0 0 100%;
}

.stat-card {
    min-height: 132px;
    display: grid;
    align-content: end;
    gap: 6px;
    padding: 22px;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(34, 115, 63, 0.2), rgba(126, 220, 159, 0.08), transparent 65%);
    opacity: 0.7;
}

.stat-value,
.stat-label {
    position: relative;
}

.stat-value {
    font-size: 2.3rem;
    line-height: 1;
    font-weight: 950;
}

.stat-label {
    color: var(--muted);
}

.stats-note {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.5;
    text-align: center;
}

.policy-page {
    padding-top: 142px;
}

.internal-page {
    min-height: 100svh;
    padding-top: 118px;
}

.internal-shell {
    padding-top: 26px;
}

.internal-shell.is-authenticated {
    width: min(100% - 28px, 1540px);
}

.internal-head h1 {
    margin: 0;
    font-size: clamp(2.35rem, 7vw, 5.2rem);
    line-height: 0.98;
}

.internal-lead {
    max-width: 700px;
    margin: 16px 0 0;
    color: var(--muted-strong);
    font-size: 1.02rem;
}

.internal-user-card,
.internal-login-panel,
.internal-login-hero-card,
.internal-sheet-panel,
.internal-block,
.internal-form,
.internal-record-card,
.internal-action-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 48px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px);
}

.internal-user-card {
    min-width: min(100%, 340px);
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 12px;
    padding: 12px;
}

.internal-user-avatar {
    width: 48px;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 50%;
    object-fit: cover;
}

.internal-user-card strong,
.internal-user-card span {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.internal-user-card span {
    color: var(--muted);
    font-size: 0.86rem;
}

.internal-logout i {
    font-size: 1rem;
}

.internal-login-grid,
.internal-manager-grid,
.internal-dashboard-grid {
    display: grid;
    gap: 18px;
}

.internal-login-grid {
    position: relative;
    align-items: stretch;
}

.internal-login-panel {
    min-height: 440px;
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 18px;
    padding: clamp(24px, 4vw, 42px);
    overflow: hidden;
    position: relative;
    background:
        linear-gradient(135deg, rgba(34, 115, 63, 0.34), transparent 42%),
        linear-gradient(315deg, rgba(126, 220, 159, 0.13), transparent 46%),
        rgba(7, 17, 12, 0.74);
    animation: internalLoginIn 0.7s ease both;
}

.internal-login-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.08) 42%, transparent 70%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 36%);
    opacity: 0.72;
    transform: translateX(-22%);
    animation: internalLoginSweep 5.2s ease-in-out infinite;
}

.internal-login-panel::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 34%;
    max-width: 180px;
    aspect-ratio: 1;
    pointer-events: none;
    border: 1px solid rgba(126, 220, 159, 0.2);
    border-radius: 50%;
    background:
        linear-gradient(rgba(126, 220, 159, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(126, 220, 159, 0.12) 1px, transparent 1px);
    background-size: 18px 18px;
    mask-image: linear-gradient(135deg, transparent, #000 38%, transparent 82%);
    opacity: 0.5;
}

.internal-login-panel > * {
    position: relative;
    z-index: 1;
}

.internal-login-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.internal-live-pill {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid rgba(126, 220, 159, 0.36);
    border-radius: 999px;
    background: rgba(34, 115, 63, 0.22);
    color: #D1FAE5;
    font-size: 0.84rem;
    font-weight: 850;
    box-shadow: 0 0 28px rgba(34, 115, 63, 0.18);
}

.internal-login-panel h2 {
    margin: 0;
    max-width: 680px;
    font-size: clamp(2.2rem, 6vw, 4.55rem);
    line-height: 0.98;
}

.internal-login-panel p {
    max-width: 620px;
    margin: 0;
    color: var(--muted-strong);
    font-size: 1.04rem;
}

.internal-login-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 14px;
}

.internal-alert,
.internal-setup-note {
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(248, 198, 91, 0.3);
    border-radius: var(--radius);
    background: rgba(248, 198, 91, 0.08);
    color: #FDE68A;
}

.internal-setup-note strong,
.internal-setup-note p {
    display: block;
}

.internal-setup-note p {
    margin-top: 4px;
    color: var(--muted-strong);
    font-size: 0.92rem;
}

.internal-setup-note code {
    color: var(--green-glow);
    font-size: 0.88em;
}

.is-disabled {
    cursor: not-allowed;
    opacity: 0.52;
}

.internal-login-showcase {
    display: grid;
    min-width: 0;
    min-height: 300px;
    animation: internalLoginIn 0.7s 0.12s ease both;
}

.internal-login-hero-card {
    min-height: 300px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: rgba(7, 17, 12, 0.7);
}

.internal-login-hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(7, 17, 12, 0.06), rgba(7, 17, 12, 0.94)),
        linear-gradient(100deg, rgba(34, 115, 63, 0.28), transparent 58%);
}

.internal-login-hero-card > img:first-child {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.7;
    transform: scale(1.04);
    animation: internalImageDrift 12s ease-in-out infinite alternate;
}

.internal-hero-card-overlay {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 2;
    display: grid;
    gap: 2px;
}

.internal-hero-card-overlay span {
    color: var(--green-glow);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.internal-hero-card-overlay strong {
    color: var(--text);
    font-size: clamp(1.3rem, 3vw, 1.85rem);
    line-height: 1;
}

.internal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.internal-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--muted-strong);
    font-weight: 800;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.internal-nav a:hover,
.internal-nav a:focus-visible,
.internal-nav a.is-active {
    transform: translateY(-2px);
    border-color: rgba(126, 220, 159, 0.48);
    background: rgba(34, 115, 63, 0.24);
    color: var(--text);
    outline: none;
}

.internal-action-grid {
    display: grid;
    gap: 14px;
    margin-bottom: 20px;
}

.internal-action-card {
    min-height: 128px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.internal-action-card:hover,
.internal-action-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(126, 220, 159, 0.44);
    box-shadow: 0 18px 58px rgba(34, 115, 63, 0.16), 0 16px 50px rgba(0, 0, 0, 0.32);
    outline: none;
}

.internal-action-card i {
    width: 52px;
    height: 52px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 52px;
    border: 1px solid rgba(126, 220, 159, 0.32);
    border-radius: 50%;
    background: rgba(34, 115, 63, 0.24);
    color: var(--green-glow);
    font-size: 1.25rem;
}

.internal-action-card span {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.internal-action-card strong {
    font-size: 1.12rem;
    line-height: 1.25;
}

.internal-action-card small {
    color: var(--muted);
    font-size: 0.9rem;
}

.internal-block {
    min-height: 260px;
    padding: 18px;
}

.internal-sheet-page {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.internal-sheet-switch {
    width: fit-content;
    max-width: 100%;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.internal-sheet-tab {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--muted-strong);
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1.1;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.internal-sheet-tab i {
    color: var(--green-glow);
    font-size: 0.88rem;
}

.internal-sheet-tab span {
    min-width: 24px;
    min-height: 22px;
    display: inline-grid;
    place-items: center;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    color: var(--text);
    font-size: 0.75rem;
}

.internal-sheet-tab:hover,
.internal-sheet-tab:focus-visible {
    color: var(--text);
    outline: none;
    border-color: rgba(126, 220, 159, 0.28);
}

.internal-sheet-tab.is-active {
    border-color: rgba(126, 220, 159, 0.38);
    background: linear-gradient(135deg, rgba(34, 115, 63, 0.72), rgba(126, 220, 159, 0.16));
    color: #fff;
    box-shadow: 0 12px 28px rgba(34, 115, 63, 0.18);
}

.internal-sheet-panel {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.internal-sheet-panel[hidden] {
    display: none;
}

.internal-sheet-panel-former {
    border-color: rgba(148, 163, 184, 0.18);
}

.internal-sheet-panel-former .internal-sheet-toolbar {
    background:
        linear-gradient(135deg, rgba(148, 163, 184, 0.12), transparent 54%),
        rgba(255, 255, 255, 0.028);
}

.internal-sheet-toolbar {
    min-width: 0;
    display: grid;
    gap: 14px;
    padding: 18px;
    border-bottom: 1px solid var(--border);
    background:
        linear-gradient(135deg, rgba(34, 115, 63, 0.18), transparent 52%),
        rgba(255, 255, 255, 0.035);
}

.internal-sheet-toolbar h2 {
    margin: 0;
    font-size: clamp(1.45rem, 3vw, 2.05rem);
    line-height: 1.1;
}

.internal-sheet-count {
    display: inline-block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 750;
}

.internal-sheet-order-status {
    display: inline-block;
    min-height: 20px;
    margin-top: 3px;
    color: var(--green-glow);
    font-size: 0.82rem;
    font-weight: 800;
}

.internal-sheet-order-status[data-tone="error"] {
    color: #FCA5A5;
}

.internal-sheet-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.internal-search,
.internal-filter {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--muted-strong);
}

.internal-search {
    flex: 1 1 240px;
    gap: 9px;
    padding: 0 13px;
}

.internal-search i {
    color: var(--green-glow);
    font-size: 0.9rem;
}

.internal-search input,
.internal-filter select {
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 750;
    outline: none;
}

.internal-search input {
    width: 100%;
    min-width: 0;
}

.internal-search input::placeholder {
    color: var(--muted);
}

.internal-filter {
    padding: 0 11px;
}

.internal-filter select {
    min-width: 116px;
}

.internal-filter option {
    color: #07110C;
}

.internal-sheet-scroll {
    max-width: 100%;
    max-height: min(78svh, 920px);
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-color: rgba(126, 220, 159, 0.36) rgba(255, 255, 255, 0.06);
    scrollbar-width: thin;
}

.internal-sheet-scroll-compact {
    max-height: min(78svh, 920px);
}

.internal-sheet-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--text);
    font-size: 0.82rem;
    line-height: 1.35;
}

.sheet-col-number {
    width: 6.2%;
}

.sheet-col-person {
    width: 17.2%;
}

.sheet-col-position {
    width: 16.6%;
}

.sheet-col-platforms {
    width: 17.2%;
}

.sheet-col-member {
    width: 13.2%;
}

.sheet-col-tour {
    width: 11.4%;
}

.sheet-col-notes {
    width: 7.8%;
}

.sheet-col-actions {
    width: 10.4%;
}

.internal-sheet-table th,
.internal-sheet-table td {
    height: 46px;
    padding: 8px;
    border-right: 1px solid rgba(209, 250, 229, 0.08);
    border-bottom: 1px solid rgba(209, 250, 229, 0.08);
    background: rgba(7, 17, 12, 0.5);
    vertical-align: middle;
    overflow: hidden;
    overflow-wrap: anywhere;
    text-overflow: ellipsis;
}

.internal-sheet-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    height: 42px;
    background:
        linear-gradient(180deg, rgba(39, 59, 48, 0.98), rgba(7, 17, 12, 0.98));
    color: var(--muted-strong);
    font-size: 0.74rem;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
    box-shadow: 0 1px 0 rgba(126, 220, 159, 0.22);
}

.internal-sheet-table tbody tr {
    animation: floatIn 0.35s ease both;
}

.internal-sheet-table tbody tr.is-dragging td,
.internal-sheet-table tbody tr.is-dragging th {
    opacity: 0.42;
}

.internal-sheet-table tbody tr.is-drag-over-before td,
.internal-sheet-table tbody tr.is-drag-over-before th {
    box-shadow: inset 0 2px 0 var(--green-glow);
}

.internal-sheet-table tbody tr.is-drag-over-after td,
.internal-sheet-table tbody tr.is-drag-over-after th {
    box-shadow: inset 0 -2px 0 var(--green-glow);
}

.internal-sheet-table tbody tr:nth-child(even) td,
.internal-sheet-table tbody tr:nth-child(even) th {
    background: rgba(255, 255, 255, 0.035);
}

.internal-sheet-table tbody tr:hover td,
.internal-sheet-table tbody tr:hover th {
    background: rgba(34, 115, 63, 0.16);
}

.internal-sheet-table tbody tr.is-former-member td,
.internal-sheet-table tbody tr.is-former-member th {
    background: rgba(148, 163, 184, 0.055);
}

.internal-sheet-table .sheet-corner,
.internal-sheet-table .sheet-row-number {
    text-align: center;
}

.internal-sheet-table .sheet-row-number {
    z-index: 2;
    padding-inline: 5px;
    color: var(--muted);
    font-weight: 850;
}

.sheet-drag-handle {
    width: 56px;
    min-width: 56px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid rgba(126, 220, 159, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted-strong);
    cursor: grab;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}

.sheet-drag-handle:active {
    cursor: grabbing;
}

.sheet-drag-handle:hover,
.sheet-drag-handle:focus-visible {
    border-color: rgba(126, 220, 159, 0.5);
    color: var(--text);
    outline: none;
    box-shadow: 0 0 16px rgba(34, 115, 63, 0.18);
}

.sheet-drag-handle i {
    flex: 0 0 auto;
    color: var(--green-glow);
    font-size: 0.72rem;
}

.sheet-drag-handle span {
    min-width: 2ch;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

.sheet-row-static {
    min-width: 42px;
    min-height: 28px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: var(--muted-strong);
    font-size: 0.74rem;
    font-weight: 900;
}

.internal-sheet-table .sheet-action-head,
.internal-sheet-table .sheet-actions {
    box-shadow: -1px 0 0 rgba(126, 220, 159, 0.12);
}

.internal-sheet-table .sheet-action-head {
    z-index: 4;
}

.internal-sheet-table .sheet-actions {
    background: rgba(7, 17, 12, 0.82);
    padding: 6px;
}

.sheet-action-buttons {
    width: max-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px;
    margin-inline: auto;
    border: 1px solid rgba(126, 220, 159, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sheet-action-buttons .icon-link {
    width: 32px;
    height: 32px;
    border-color: transparent;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.045);
    box-shadow: none;
    color: var(--muted-strong);
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.sheet-action-buttons .icon-link i {
    color: currentColor;
    font-size: 0.9rem;
}

.sheet-action-buttons .icon-link[data-action="edit"] {
    color: #D9FFE6;
    background: rgba(34, 115, 63, 0.22);
}

.sheet-action-buttons .icon-link[data-action="archive"] {
    color: #FCD34D;
    background: rgba(161, 98, 7, 0.22);
}

.sheet-action-buttons .icon-link[data-action="restore"] {
    color: #86EFAC;
    background: rgba(34, 115, 63, 0.26);
}

.sheet-action-buttons .icon-link[data-action="hard-delete"] {
    color: #FCA5A5;
    background: rgba(185, 28, 28, 0.24);
}

.sheet-action-buttons .icon-link:hover,
.sheet-action-buttons .icon-link:focus-visible {
    outline: none;
    transform: translateY(-1px);
}

.sheet-action-buttons .danger:hover,
.sheet-action-buttons .danger:focus-visible {
    border-color: rgba(252, 211, 77, 0.44);
    box-shadow: 0 0 18px rgba(252, 211, 77, 0.14);
}

.sheet-action-buttons .success:hover,
.sheet-action-buttons .success:focus-visible {
    border-color: rgba(126, 220, 159, 0.6);
    box-shadow: 0 0 18px rgba(126, 220, 159, 0.18);
}

.sheet-action-buttons .icon-link[data-action="edit"]:hover,
.sheet-action-buttons .icon-link[data-action="edit"]:focus-visible {
    border-color: rgba(126, 220, 159, 0.52);
    box-shadow: 0 0 18px rgba(126, 220, 159, 0.16);
}

.sheet-action-buttons .destructive:hover,
.sheet-action-buttons .destructive:focus-visible {
    border-color: rgba(248, 113, 113, 0.55);
    box-shadow: 0 0 18px rgba(248, 113, 113, 0.18);
}

.sheet-name-cell {
    min-width: 0;
}

.sheet-name-cell strong,
.sheet-name-cell span {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.sheet-name-cell strong {
    font-size: 0.92rem;
}

.sheet-name-cell span,
.sheet-muted {
    color: var(--muted);
}

.sheet-stack-cell {
    display: grid;
    gap: 5px;
}

.sheet-position-stack {
    gap: 6px;
}

.sheet-position-line {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sheet-position-line .sheet-chip {
    flex: 1 1 auto;
    width: auto;
    justify-content: flex-start;
}

.sheet-stack-cell small {
    min-width: 0;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 750;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sheet-platforms {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.sheet-platforms > span {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sheet-platforms b {
    min-width: 34px;
    color: var(--green-glow);
    font-size: 0.7rem;
    font-weight: 950;
}

.sheet-service-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(126, 220, 159, 0.22);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

.sheet-service-icon i {
    color: #fff;
    font-size: 0.82rem;
}

.sheet-service-icon img {
    width: 15px;
    height: 15px;
    object-fit: contain;
}

.sheet-service-trucksbook img {
    width: 17px;
    height: 17px;
    border-radius: 3px;
}

.sheet-profile-link {
    display: inline-block;
    max-width: 100%;
    min-width: 0;
    color: var(--green-glow);
    font-weight: 850;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: underline;
    text-decoration-color: rgba(126, 220, 159, 0.45);
    text-underline-offset: 3px;
    white-space: nowrap;
}

.sheet-profile-link:hover,
.sheet-profile-link:focus-visible {
    color: #D9FFE6;
    outline: none;
    text-decoration-color: currentColor;
}

.sheet-note-cell {
    max-width: none;
    color: var(--muted-strong);
}

.sheet-note-preview {
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
}

.sheet-note-button {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted-strong);
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.sheet-note-button:hover,
.sheet-note-button:focus-visible {
    color: var(--text);
    outline: none;
    text-decoration: underline;
    text-decoration-color: rgba(126, 220, 159, 0.55);
    text-underline-offset: 3px;
}

.sheet-chip,
.sheet-tour {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    padding: 3px 10px;
    border-radius: 999px;
    color: #F8FAFC;
    font-size: 0.74rem;
    font-weight: 900;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sheet-tour {
    gap: 6px;
}

.sheet-tour.sheet-tour-vacation {
    min-height: 38px;
    align-items: center;
    padding-block: 5px;
    text-align: center;
}

.sheet-tour i {
    flex: 0 0 auto;
    font-size: 0.76rem;
}

.sheet-tour.sheet-tour-vacation i {
    margin-top: 1px;
}

.sheet-tour span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sheet-tour-content {
    display: grid;
    gap: 2px;
    justify-items: center;
    text-align: center;
}

.sheet-tour-date {
    display: block;
}

.sheet-tour-vacation-period {
    min-width: 0;
    overflow: hidden;
    color: #E0F2FE;
    font-size: 0.68rem;
    font-weight: 850;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sheet-chip-green {
    background: #11734b;
}

.sheet-chip-veteran,
.sheet-chip-light {
    background: #d4edbc;
    color: #07110C;
}

.sheet-chip-executive {
    background: #ffcfc9;
    color: #07110C;
}

.sheet-chip-owner,
.sheet-chip-hr,
.sheet-chip-red {
    background: #b10202;
}

.sheet-chip-event,
.sheet-chip-blue {
    background: #0a53a8;
}

.sheet-chip-modding,
.sheet-chip-yellow {
    background: #ffe5a0;
    color: #07110C;
}

.sheet-chip-purple {
    background: #5a3286;
}

.sheet-chip-muted {
    background: rgba(148, 163, 184, 0.26);
    color: var(--muted-strong);
}

.sheet-tour-fresh {
    background: #11734b;
    color: #F8FAFC;
}

.sheet-tour-soon {
    background: #A16207;
    color: #F8FAFC;
}

.sheet-tour-late {
    background: #DC2626;
}

.sheet-tour-vacation {
    background: #236AA6;
    color: #F8FAFC;
}

.sheet-tour-not-found {
    background: #F97316;
    color: #FFFFFF;
}

.sheet-tour-empty {
    background: rgba(148, 163, 184, 0.16);
    color: var(--muted);
}

.sheet-tour-link {
    text-decoration: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.sheet-tour-link:hover,
.sheet-tour-link:focus-visible {
    outline: none;
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 0 18px rgba(126, 220, 159, 0.2);
    transform: translateY(-1px);
}

.sheet-empty-row {
    height: 120px;
    text-align: center;
    color: var(--muted);
}

.internal-sheet-editor {
    animation: floatIn 0.45s ease both;
}

.is-modal-open {
    overflow: hidden;
}

.internal-modal[hidden] {
    display: none;
}

.internal-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 20px;
}

.internal-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 8, 6, 0.78);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.18s ease;
}

.internal-modal-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 760px);
    opacity: 0;
    transform: translateY(16px) scale(0.98);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.internal-modal.is-open .internal-modal-backdrop,
.internal-modal.is-open .internal-modal-panel {
    opacity: 1;
}

.internal-modal.is-open .internal-modal-panel {
    transform: translateY(0) scale(1);
}

.internal-modal .internal-form {
    max-height: calc(100svh - 44px);
    overflow-y: auto;
    padding: clamp(18px, 3vw, 24px);
    scrollbar-color: rgba(126, 220, 159, 0.36) rgba(255, 255, 255, 0.06);
    scrollbar-width: thin;
}

.internal-read-panel {
    width: min(100%, 680px);
}

.internal-read-card {
    display: grid;
    gap: 18px;
    padding: clamp(18px, 3vw, 24px);
    border: 1px solid rgba(209, 250, 229, 0.14);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
        rgba(7, 17, 12, 0.96);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.internal-read-text {
    max-height: min(58svh, 520px);
    margin: 0;
    overflow-y: auto;
    padding: 16px;
    border: 1px solid rgba(126, 220, 159, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--text);
    font-size: 1rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
    scrollbar-color: rgba(126, 220, 159, 0.42) rgba(255, 255, 255, 0.06);
    scrollbar-width: thin;
    white-space: pre-wrap;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.section-head.compact {
    margin-bottom: 16px;
}

.section-head.compact h2 {
    font-size: 1.35rem;
}

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

.internal-mini-item {
    display: grid;
    gap: 3px;
    padding: 11px 0 12px;
    border-bottom: 1px solid rgba(209, 250, 229, 0.1);
}

.internal-mini-item:hover,
.internal-mini-item:focus-visible {
    color: var(--green-glow);
    outline: none;
}

.internal-mini-item span {
    color: var(--muted);
    font-size: 0.88rem;
}

.internal-form {
    align-self: start;
    display: grid;
    gap: 13px;
    padding: 18px;
}

.form-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
}

.form-head h2 {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.14;
}

.internal-form label {
    display: grid;
    gap: 7px;
    color: var(--muted-strong);
    font-size: 0.9rem;
    font-weight: 800;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 13px;
}

.internal-form input,
.internal-form select,
.internal-form textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
    font: inherit;
    font-weight: 650;
    padding: 10px 12px;
    outline: none;
}

.internal-form textarea {
    min-height: 112px;
    resize: vertical;
}

.internal-form input:focus,
.internal-form select:focus,
.internal-form textarea:focus {
    border-color: rgba(126, 220, 159, 0.56);
    box-shadow: 0 0 0 3px rgba(126, 220, 159, 0.12);
}

.internal-form select option {
    color: #07110C;
}

.internal-form-status {
    min-height: 22px;
    margin: 0;
    color: var(--green-glow);
    font-size: 0.9rem;
    font-weight: 750;
}

.internal-form-status[data-tone="error"] {
    color: #FCA5A5;
}

.internal-records {
    min-width: 0;
}

.internal-record-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.internal-record-card {
    min-height: 235px;
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 18px;
    position: relative;
    overflow: hidden;
}

.internal-record-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--green-glow);
    opacity: 0.85;
}

.record-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.record-title-line,
.record-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.record-actions {
    margin-top: 2px;
}

.record-actions .icon-link {
    border-radius: 50%;
}

.record-actions .icon-link[data-action="hard-delete"] {
    border-color: rgba(248, 113, 113, 0.2);
    background: rgba(185, 28, 28, 0.2);
    color: #FCA5A5;
}

.record-actions .icon-link[data-action="hard-delete"] i {
    color: currentColor;
}

.record-actions .danger:hover,
.record-actions .danger:focus-visible,
.record-actions .destructive:hover,
.record-actions .destructive:focus-visible {
    border-color: rgba(248, 113, 113, 0.55);
    box-shadow: 0 0 22px rgba(248, 113, 113, 0.18);
}

.internal-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.policy-page .section-head {
    max-width: 860px;
}

.policy-page h1 {
    margin: 0;
    font-size: clamp(2.4rem, 7vw, 5.4rem);
    line-height: 0.96;
}

.policy-updated {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 750;
}

.policy-panel {
    display: grid;
    gap: 22px;
    max-width: 920px;
}

.policy-block {
    padding-left: 18px;
    border-left: 2px solid rgba(126, 220, 159, 0.36);
}

.policy-block h2 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.3;
}

.policy-block p {
    margin: 8px 0 0;
    color: var(--muted-strong);
    font-size: 0.98rem;
    line-height: 1.7;
}

.policy-block a {
    color: var(--green-glow);
}

.driver-card,
.job-card,
.event-card,
.member-card,
.partner-card,
.blog-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 18px;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.driver-card:hover,
.job-card:hover,
.event-card:hover,
.member-card:hover,
.partner-card:hover,
.blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(126, 220, 159, 0.44);
    box-shadow: 0 18px 58px rgba(34, 115, 63, 0.16), 0 16px 50px rgba(0, 0, 0, 0.32);
}

.driver-card {
    --driver-accent: var(--green-light);
    --driver-accent-soft: rgba(126, 220, 159, 0.16);
    min-height: 338px;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 14px;
    padding: 0;
    background:
        radial-gradient(circle at 86% 18%, var(--driver-accent-soft), transparent 38%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
        var(--panel);
}

.driver-card > *,
.job-card > * {
    position: relative;
    z-index: 1;
}

.driver-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    border-top: 3px solid var(--driver-accent);
    background:
        linear-gradient(180deg, var(--driver-accent-soft), transparent 44%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07), transparent 48%);
    opacity: 0.85;
}

.driver-card-rank-1 {
    --driver-accent: #F8C65B;
    --driver-accent-soft: rgba(248, 198, 91, 0.18);
}

.driver-card-rank-2 {
    --driver-accent: #B8C3D4;
    --driver-accent-soft: rgba(184, 195, 212, 0.16);
}

.driver-card-rank-3 {
    --driver-accent: #C98557;
    --driver-accent-soft: rgba(201, 133, 87, 0.17);
}

.driver-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 0;
}

.driver-card.card-refresh,
.job-card.card-refresh {
    animation: cardRefresh 0.62s ease both;
    animation-delay: var(--refresh-delay, 0ms);
}

.driver-card.card-refresh::after,
.job-card.card-refresh::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 20%, rgba(126, 220, 159, 0.24), transparent 78%);
    transform: translateX(-120%);
    animation: cardRefreshSweep 0.9s ease both;
    animation-delay: var(--refresh-delay, 0ms);
}

.driver-rank {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.38), transparent 42%),
        var(--driver-accent);
    color: #07110C;
    font-weight: 950;
    box-shadow: 0 12px 28px color-mix(in srgb, var(--driver-accent) 24%, transparent);
}

.driver-podium-label {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid color-mix(in srgb, var(--driver-accent) 38%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--driver-accent) 14%, transparent);
    color: var(--muted-strong);
    font-size: 0.78rem;
    font-weight: 850;
}

.driver-banner-panel {
    aspect-ratio: 2048 / 683;
    display: grid;
    place-items: center;
    margin: 0 16px;
    border: 1px solid rgba(126, 220, 159, 0.16);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.38);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.avatar {
    width: 58px;
    height: 58px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(34, 115, 63, 0.3), rgba(126, 220, 159, 0.16));
    color: var(--text);
    font-weight: 900;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-driver-banner {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.driver-info {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 0 18px;
}

.driver-info .card-title {
    font-size: 1.22rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.driver-info .card-muted {
    margin: 0;
    font-size: 0.9rem;
}

.driver-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 16px 16px;
}

.driver-stat {
    min-height: 74px;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
}

.driver-stat span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 750;
}

.driver-stat strong {
    color: var(--text);
    font-size: clamp(1rem, 2vw, 1.24rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.card-title {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.25;
}

.card-muted {
    color: var(--muted);
}

.meta-list {
    display: grid;
    gap: 8px;
    margin: 16px 0 0;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: var(--muted);
    font-size: 0.92rem;
}

.meta-row strong {
    color: var(--text);
    font-weight: 800;
    text-align: right;
}

.event-card {
    min-height: 390px;
    display: grid;
    grid-template-rows: 150px auto;
    padding: 0;
}

.event-media {
    position: relative;
    min-height: 150px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(34, 115, 63, 0.34), rgba(126, 220, 159, 0.16)),
        rgba(255, 255, 255, 0.06);
}

.event-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(7, 11, 20, 0.72));
}

.event-body {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.event-badges,
.job-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted-strong);
    font-size: 0.78rem;
    font-weight: 750;
}

.badge.hot {
    border-color: rgba(126, 220, 159, 0.46);
    background: rgba(126, 220, 159, 0.12);
    color: #D1FAE5;
}

.badge.blue {
    border-color: rgba(34, 115, 63, 0.5);
    background: rgba(34, 115, 63, 0.2);
    color: #BBF7D0;
}

.job-card {
    min-height: 286px;
    display: grid;
    align-content: start;
    gap: 12px;
    color: inherit;
}

a.job-card {
    cursor: pointer;
}

a.driver-card,
a.driver-card:hover,
a.driver-card:focus-visible {
    color: inherit;
    text-decoration: none;
}

a.driver-card {
    cursor: pointer;
}

a.driver-card:focus-visible,
a.job-card:focus-visible {
    border-color: rgba(126, 220, 159, 0.58);
    box-shadow: 0 18px 58px rgba(34, 115, 63, 0.18), 0 0 0 3px rgba(126, 220, 159, 0.16);
    outline: none;
}

.job-route {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: stretch;
}

.route-dot {
    width: 100%;
    height: 24px;
    min-height: 24px;
    position: relative;
    display: block;
}

.route-dot::before {
    content: "";
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 50%;
    width: 2px;
    border-radius: 99px;
    background: linear-gradient(180deg, var(--blue), var(--orange));
    transform: translateX(-50%);
}

.route-dot::after {
    content: "";
    position: absolute;
    bottom: 1px;
    left: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--orange);
    border-bottom: 2px solid var(--orange);
    transform: translateX(-50%) rotate(45deg);
}

.route-point {
    min-width: 0;
    display: grid;
    gap: 5px;
    align-content: start;
    padding: 12px;
    border: 1px solid rgba(209, 250, 229, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.045);
}

.route-label {
    color: var(--green-glow);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.route-value {
    min-width: 0;
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.route-value span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.route-flag {
    width: 22px;
    height: 15px;
    flex: 0 0 auto;
    margin-top: 2px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.job-driver {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.job-driver span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.job-avatar {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid rgba(209, 250, 229, 0.18);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(34, 115, 63, 0.3), rgba(126, 220, 159, 0.14));
    color: var(--text);
    font-size: 0.68rem;
    font-weight: 900;
}

.job-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-card {
    min-height: 230px;
    display: grid;
    gap: 14px;
    align-content: start;
}

.member-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--member-role-color, var(--green-light));
    opacity: 0.9;
}

.member-head,
.partner-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.member-info {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.member-rank {
    margin: 0;
    color: var(--member-role-color, var(--green-glow));
    font-size: 0.86rem;
    font-weight: 850;
    line-height: 1.25;
}

.partner-card {
    min-height: 245px;
    display: grid;
    align-content: start;
    gap: 14px;
    padding-top: 0;
}

.partner-banner {
    min-height: 112px;
    margin: 0 -18px 2px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background:
        linear-gradient(135deg, rgba(34, 115, 63, 0.34), rgba(126, 220, 159, 0.12)),
        rgba(255, 255, 255, 0.05);
}

.partner-banner img {
    width: 100%;
    height: 112px;
    object-fit: cover;
}

.partner-logo {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(34, 115, 63, 0.3), rgba(126, 220, 159, 0.14));
    font-weight: 950;
    overflow: hidden;
}

.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partner-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.social-link {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.social-link:hover,
.social-link:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(126, 220, 159, 0.52);
    background: rgba(34, 115, 63, 0.22);
    color: var(--green-glow);
    outline: none;
}

.social-link i {
    font-size: 1rem;
    line-height: 1;
}

.blog-card {
    min-height: 220px;
    display: grid;
    align-content: start;
    gap: 12px;
    padding-top: 0;
}

.blog-banner {
    min-height: 124px;
    margin: 0 -18px 2px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background: #fff;
}

.blog-banner img {
    width: 100%;
    height: 124px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.site-footer {
    flex-shrink: 0;
    width: 100%;
    margin-top: auto;
    border-top: 1px solid var(--border);
    background: rgba(7, 17, 12, 0.9);
    backdrop-filter: blur(18px);
}

.footer-inner {
    width: min(100%, var(--container));
    margin: 0 auto;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px 22px;
    padding: 14px 18px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    order: 1;
}

.footer-logo {
    width: 116px;
    height: 42px;
    object-fit: contain;
    object-position: left center;
}

.footer-links {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    order: 3;
}

.footer-text-link {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-text-link:hover,
.footer-text-link:focus-visible {
    color: var(--text);
    outline: none;
}

.footer-credit {
    flex: 1 1 auto;
    display: grid;
    gap: 4px;
    justify-items: center;
    text-align: center;
    order: 2;
}

.footer-copy {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 750;
    white-space: nowrap;
}

.footer-copy strong {
    color: var(--text);
    font-weight: 900;
}

.footer-heart {
    color: var(--green-glow);
    font-size: 0.82rem;
}

.skeleton-grid {
    min-height: 220px;
}

.skeleton-card {
    min-height: 220px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent),
        rgba(255, 255, 255, 0.055);
    background-size: 220% 100%;
    animation: shimmer 1.35s infinite;
}

.skeleton-card.large {
    min-height: 390px;
}

.empty-state,
.error-state {
    min-height: 180px;
    display: grid;
    place-items: center;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    color: var(--muted);
    text-align: center;
}

@keyframes shimmer {
    from {
        background-position: 160% 0;
    }
    to {
        background-position: -60% 0;
    }
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes betaBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.28;
    }
}

@keyframes cardRefresh {
    0% {
        opacity: 0.86;
        transform: translateY(10px) scale(0.985);
        border-color: rgba(126, 220, 159, 0.24);
    }
    55% {
        opacity: 1;
        transform: translateY(-2px) scale(1.006);
        border-color: rgba(126, 220, 159, 0.5);
        box-shadow: 0 20px 62px rgba(34, 115, 63, 0.18), 0 12px 42px rgba(0, 0, 0, 0.28);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cardRefreshSweep {
    from {
        transform: translateX(-120%);
    }
    to {
        transform: translateX(120%);
    }
}

@keyframes internalLoginIn {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes internalLoginSweep {
    0%, 46%, 100% {
        transform: translateX(-48%);
    }
    68% {
        transform: translateX(42%);
    }
}

@keyframes internalImageDrift {
    from {
        transform: scale(1.04) translateX(-10px);
    }
    to {
        transform: scale(1.1) translateX(12px);
    }
}

.driver-card,
.job-card,
.event-card,
.member-card,
.partner-card,
.blog-card,
.stat-card {
    animation: floatIn 0.55s ease both;
}

@media (min-width: 640px) {
    .hero h1 {
        font-size: 4rem;
    }

    .carousel-head {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .stats-grid,
    .internal-action-grid,
    .podium-grid,
    .job-grid,
    .member-grid,
    .partner-grid,
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .event-grid {
        grid-template-columns: none;
    }

    .apply-details {
        grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
    }

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

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

}

@media (min-width: 900px) {
    .primary-nav {
        display: inline-flex;
    }

    .primary-nav.is-open {
        position: static;
        inset: auto;
        display: inline-flex;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    .menu-toggle {
        display: none;
    }

    .hero {
        padding-top: 126px;
    }

    .hero-content > * {
        width: min(100%, 570px);
    }

    .hero h1 {
        font-size: 5.2rem;
    }

    .section-head.split {
        grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
    }

    .section-head.split.carousel-head {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .apply-actions {
        justify-content: flex-start;
    }

    .section-link,
    .refresh-pill,
    .carousel-controls {
        justify-self: end;
    }

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

    .internal-login-grid {
        grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
        align-items: stretch;
        gap: 22px;
    }

    .internal-login-panel {
        min-height: 560px;
    }

    .internal-login-showcase {
        min-height: 560px;
    }

    .internal-login-hero-card {
        min-height: 560px;
    }

    .internal-sheet-toolbar {
        grid-template-columns: minmax(0, 1fr) minmax(420px, 0.88fr);
        align-items: end;
    }

    .internal-sheet-tools {
        justify-content: flex-end;
    }

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

    .internal-manager-grid {
        grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
        align-items: start;
    }

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

    .podium-grid,
    .job-grid,
    .member-grid,
    .partner-grid,
    .blog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .event-grid .event-card,
    .event-grid .skeleton-card,
    .event-carousel .event-card,
    .event-carousel .skeleton-card {
        flex-basis: calc((100% - 28px) / 3);
        min-width: 340px;
        width: auto;
    }
}

@media (min-width: 1200px) {
    .hero h1 {
        font-size: 5.8rem;
    }
}

@media (max-width: 1100px) {
    .internal-sheet-scroll {
        max-height: none;
        overflow: visible;
    }

    .internal-sheet-table,
    .internal-sheet-table thead,
    .internal-sheet-table tbody,
    .internal-sheet-table tr,
    .internal-sheet-table th,
    .internal-sheet-table td {
        display: block;
        width: 100%;
    }

    .internal-sheet-table colgroup,
    .internal-sheet-table thead {
        display: none;
    }

    .internal-sheet-table {
        min-width: 0;
    }

    .internal-sheet-table tbody {
        display: grid;
        gap: 12px;
        padding: 12px;
    }

    .internal-sheet-table tbody tr {
        display: grid;
        gap: 10px;
        padding: 14px;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        background:
            linear-gradient(135deg, rgba(34, 115, 63, 0.14), transparent 58%),
            rgba(255, 255, 255, 0.045);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
    }

    .internal-sheet-table .sheet-row-number {
        height: auto;
        display: flex;
        justify-content: flex-start;
        padding: 0;
        border: 0;
        background: transparent !important;
    }

    .sheet-drag-handle {
        width: auto;
        padding: 0 12px;
    }

    .internal-sheet-table td {
        min-height: 0;
        height: auto;
        display: grid;
        grid-template-columns: 105px minmax(0, 1fr);
        align-items: start;
        gap: 10px;
        padding: 0;
        border: 0;
        background: transparent !important;
        overflow: visible;
        white-space: normal;
    }

    .internal-sheet-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 0.72rem;
        font-weight: 900;
        text-transform: uppercase;
    }

    .sheet-name-cell strong,
    .sheet-name-cell span,
    .sheet-platforms > span,
    .sheet-profile-link,
    .sheet-stack-cell small,
    .sheet-note-cell {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .sheet-note-preview {
        display: block;
        overflow: visible;
        -webkit-line-clamp: unset;
    }

    .sheet-note-button.sheet-note-preview {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }

    .sheet-chip,
    .sheet-tour {
        width: auto;
        justify-content: flex-start;
        white-space: normal;
        text-align: left;
    }

    .sheet-action-buttons {
        justify-content: flex-start;
        margin-inline: 0;
    }

    .internal-sheet-table .sheet-action-head,
    .internal-sheet-table .sheet-actions {
        box-shadow: none;
    }

    .sheet-empty-row {
        height: auto;
        padding: 18px !important;
    }
}

@media (max-width: 520px) {
    .brand-logo {
        width: 118px;
        height: 42px;
    }

    .icon-link {
        width: 38px;
        height: 38px;
    }

    .hero {
        min-height: 86svh;
        padding-top: 128px;
    }

    .hero h1 {
        font-size: 2.45rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .section {
        width: min(100% - 28px, var(--container));
        padding: 58px 0;
    }

    .internal-page {
        padding-top: 104px;
    }

    .internal-shell {
        padding-top: 18px;
    }

    .internal-login-panel {
        min-height: 390px;
    }

    .internal-login-actions,
    .internal-login-actions .btn {
        width: 100%;
    }

    .internal-sheet-toolbar {
        padding: 15px;
    }

    .internal-sheet-tools,
    .internal-search,
    .internal-filter,
    .internal-filter select,
    .internal-sheet-tools .btn {
        width: 100%;
    }

    .internal-sheet-scroll {
        max-height: none;
    }

    .section-head h2,
    .apply-content h2 {
        font-size: 1.8rem;
    }

    .apply-inner {
        width: min(100% - 28px, var(--container));
        padding: 34px 0;
    }

    .apply-actions .btn {
        width: 100%;
    }

    .footer-inner {
        justify-content: center;
        padding: 16px 14px;
        text-align: center;
    }

    .footer-logo {
        object-position: center;
    }

    .footer-links {
        flex-basis: 100%;
        gap: 6px 12px;
    }

    .footer-credit {
        width: 100%;
        justify-items: center;
        text-align: center;
    }

    .footer-copy {
        width: 100%;
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
