:root {
    --bg: #f4f7fb;
    --canvas: #eef3f8;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --soft: #f8fafc;
    --surface-tint: #edf5ff;
    --line: #dbe4ee;
    --line-strong: #cbd7e4;
    --ink: #101b2d;
    --ink-soft: #33435a;
    --muted: #68788f;
    --primary: #124f8c;
    --primary-2: #1d6fb8;
    --primary-soft: #e8f2fc;
    --race-yellow: #f5b72e;
    --race-red: #cf3f35;
    --race-yellow-soft: #fff6dc;
    --race-red-soft: #fff0ee;
    --green: #13795b;
    --amber: #a46205;
    --red: #bf3434;
    --shadow: 0 20px 60px rgba(17, 39, 69, .10);
    --shadow-soft: 0 10px 28px rgba(17, 39, 69, .08);
    --shadow-quiet: 0 8px 22px rgba(17, 39, 69, .06);
    --focus-ring: 0 0 0 4px rgba(29,111,184,.13);
    --radius: 8px;
    --ease: cubic-bezier(.2,.8,.2,1);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img,
canvas,
svg,
video {
    max-width: 100%;
}

body:before {
    content: "";
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--race-red), var(--race-yellow), var(--primary));
    z-index: 20;
    opacity: .86;
}

body {
    margin: 0;
    font-family: "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background:
        linear-gradient(135deg, rgba(255,255,255,.95) 0%, rgba(244,247,251,.98) 42%, rgba(235,241,248,1) 100%);
    font-size: 14px;
    line-height: 1.45;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-synthesis: none;
}

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

.app-shell {
    min-height: 100vh;
    display: block;
    padding-left: 288px;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 18;
    width: 288px;
    height: 100vh;
    padding: 24px 20px;
    background: rgba(255, 255, 255, .86);
    border-right: 1px solid var(--line);
    backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    overflow: hidden auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 6px 22px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
}

.brand-logo-button {
    position: relative;
    display: block;
    flex: 0 0 auto;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(145deg, #0d447c 0%, #1d6fb8 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 12px 24px rgba(18,79,140,.24);
}

.brand-mark.image-mark {
    border-radius: 50%;
    border: 2px solid var(--race-red);
    padding: 3px;
    background: #fff;
    overflow: hidden;
}

.shell-logo {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    object-fit: cover;
}

.shell-logo-upload-wrap .brand-mark {
    transition: transform .16s ease, box-shadow .16s ease;
}

.shell-logo-upload-wrap:hover .brand-mark {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(207,63,53,.17);
}

.logo-camera-fab {
    position: absolute;
    right: -7px;
    bottom: -7px;
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--primary), #0f6ab1);
    box-shadow: 0 10px 22px rgba(17,39,69,.24);
    cursor: pointer;
    z-index: 4;
    transition: transform .15s ease, box-shadow .15s ease;
}

.logo-camera-fab:hover {
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 14px 28px rgba(17,39,69,.30);
}

.logo-camera-fab span {
    position: relative;
    display: block;
    width: 13px;
    height: 10px;
    border-radius: 3px;
    background: #fff;
}

.logo-camera-fab span:before {
    content: "";
    position: absolute;
    left: 3px;
    top: 2px;
    width: 5px;
    height: 5px;
    border: 1px solid var(--primary);
    border-radius: 50%;
    background: #fff;
}

.logo-camera-fab span:after {
    content: "";
    position: absolute;
    left: 2px;
    top: -3px;
    width: 6px;
    height: 3px;
    border-radius: 2px 2px 0 0;
    background: var(--race-yellow);
}

.image-mark > div {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #0d447c 0%, #1d6fb8 100%);
    color: #fff;
}

.brand-title {
    font-size: 19px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
    max-width: 172px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-subtitle {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.side-meta {
    margin: 0 6px 18px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #fff, #f7fbff);
}

.side-meta-label {
    font-size: 11px;
    font-weight: 850;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.side-meta-value {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 850;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav {
    display: grid;
    gap: 5px;
}

.nav a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 12px 0 40px;
    border-radius: var(--radius);
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 800;
}

.nav a:before {
    content: "";
    position: absolute;
    left: 14px;
    width: 9px;
    height: 9px;
    border-radius: 3px;
    border: 2px solid #9aacbf;
    background: #fff;
}

.nav a:hover,
.nav a.active {
    background: var(--primary-soft);
    color: var(--primary);
}

.nav a.active:before {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 11px 0 0 -3px var(--race-yellow);
}

.sidebar-logout-pill {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 40px;
    margin-top: auto;
    margin-bottom: 38px;
    padding: 0 14px;
    border: 1px solid rgba(255,62,93,.18);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(255,246,248,.94)),
        radial-gradient(circle at 18% 10%, rgba(255,62,93,.11), transparent 34%);
    color: #d7284c;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: none;
    box-shadow: 0 10px 24px rgba(215,40,76,.10);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.sidebar-logout-pill:hover {
    transform: translateY(-1px);
    border-color: rgba(255,62,93,.34);
    box-shadow: 0 14px 30px rgba(215,40,76,.15);
}

.sidebar-logout-pill .power-icon {
    position: relative;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff3158, #ff5a76);
    box-shadow: inset 0 -3px 8px rgba(130,0,28,.16), 0 7px 14px rgba(255,49,88,.20);
}

.sidebar-logout-pill .power-icon:before {
    content: "";
    position: absolute;
    inset: 5px;
    background: #fff;
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2v10' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round'/%3E%3Cpath d='M6.35 5.85a8 8 0 1 0 11.3 0' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2v10' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round'/%3E%3Cpath d='M6.35 5.85a8 8 0 1 0 11.3 0' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    mask-size: contain;
    -webkit-mask-size: contain;
}

.content {
    position: relative;
    min-width: 0;
    padding: 24px 32px 38px;
}

.workspace-actions {
    position: absolute;
    top: 22px;
    right: 32px;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-top-button {
    min-height: 42px;
    padding: 0 15px 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, #fff, #f4f9ff);
    color: var(--primary);
    box-shadow: var(--shadow-soft);
    font-size: 13px;
    font-weight: 950;
}

.profile-top-button span {
    width: 21px;
    height: 21px;
    border-radius: 50%;
    display: inline-block;
    background: var(--primary);
    mask-position: center;
    mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='7' r='4' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='7' r='4' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
}

.shell-icon-button {
    position: relative;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.90);
    box-shadow: var(--shadow-soft);
}

.shell-icon-button:before {
    content: "";
    width: 19px;
    height: 19px;
    display: block;
    background: var(--ink);
    mask-position: center;
    mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
}

.shell-icon-button.bell:before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.shell-icon-button.whatsapp {
    background: #e9f7f1;
    border-color: #ccefe0;
}

.shell-icon-button.whatsapp:before {
    background: var(--green);
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.5 11.8a8.5 8.5 0 0 1-12.6 7.4L4 20l.9-3.8a8.5 8.5 0 1 1 15.6-4.4z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M8.6 8.7c.2-.5.4-.5.7-.5h.5c.2 0 .4 0 .6.5l.6 1.4c.1.3.1.5-.1.7l-.4.5c.8 1.4 1.8 2.2 3.2 2.8l.5-.6c.2-.2.4-.3.7-.2l1.5.7c.3.1.5.3.5.6 0 .7-.5 1.7-1.2 1.8-2 .3-5.9-1.8-7.3-4.9-.5-1.1-.7-2.1-.3-2.8z' fill='black'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.5 11.8a8.5 8.5 0 0 1-12.6 7.4L4 20l.9-3.8a8.5 8.5 0 1 1 15.6-4.4z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M8.6 8.7c.2-.5.4-.5.7-.5h.5c.2 0 .4 0 .6.5l.6 1.4c.1.3.1.5-.1.7l-.4.5c.8 1.4 1.8 2.2 3.2 2.8l.5-.6c.2-.2.4-.3.7-.2l1.5.7c.3.1.5.3.5.6 0 .7-.5 1.7-1.2 1.8-2 .3-5.9-1.8-7.3-4.9-.5-1.1-.7-2.1-.3-2.8z' fill='black'/%3E%3C/svg%3E");
}

.shell-icon-button.has-alert {
    animation: bellPulse 1.7s ease-in-out infinite;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -3px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--race-red);
    color: #fff;
    border: 2px solid #fff;
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
}

@keyframes bellPulse {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-4deg); }
    75% { transform: rotate(4deg); }
}

.page-frame {
    max-width: 1480px;
    margin: 0 auto;
}

.topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
    padding-right: 220px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-drawer {
    position: fixed;
    inset: 0;
    z-index: 40;
    pointer-events: none;
    visibility: hidden;
}

.profile-drawer:target {
    pointer-events: auto;
    visibility: visible;
}

.notification-drawer {
    position: fixed;
    inset: 0;
    z-index: 41;
    pointer-events: none;
    visibility: hidden;
}

.notification-drawer:target {
    pointer-events: auto;
    visibility: visible;
}

.drawer-scrim {
    position: absolute;
    inset: 0;
    background: rgba(16,27,45,.30);
    opacity: 0;
    transition: opacity .18s ease;
}

.profile-drawer:target .drawer-scrim {
    opacity: 1;
}

.notification-drawer:target .drawer-scrim {
    opacity: 1;
}

.drawer-panel {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(360px, 92vw);
    padding: 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(255,255,255,.98);
    border-right: 1px solid var(--line);
    box-shadow: 28px 0 70px rgba(17,39,69,.20);
    transform: translateX(-102%);
    transition: transform .22s ease;
    -webkit-overflow-scrolling: touch;
}

.profile-drawer:target .drawer-panel {
    transform: translateX(0);
}

.profile-drawer .drawer-panel {
    left: auto;
    right: 0;
    border-right: 0;
    border-left: 1px solid var(--line);
    box-shadow: -28px 0 70px rgba(17,39,69,.20);
    transform: translateX(102%);
}

.profile-drawer:target .drawer-panel {
    transform: translateX(0);
}

.notification-drawer .drawer-panel {
    left: auto;
    right: 0;
    border-right: 0;
    border-left: 1px solid var(--line);
    transform: translateX(102%);
}

.notification-drawer:target .drawer-panel {
    transform: translateX(0);
}

.notification-panel {
    width: min(420px, 94vw);
}

.drawer-head {
    clear: both;
    margin-top: 34px;
    padding: 20px 0 14px;
    border-bottom: 1px solid var(--line);
}

.drawer-notifications {
    display: grid;
    gap: 10px;
    padding-top: 14px;
}

.drawer-notification {
    border: 1px solid var(--line);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius);
    padding: 12px;
    background: linear-gradient(180deg, #fff, #f8fbff);
}

.drawer-notification.high {
    border-left-color: var(--race-red);
}

.drawer-notification.low {
    border-left-color: var(--green);
}

.drawer-notification strong {
    display: block;
    color: var(--ink);
    font-size: 13px;
}

.drawer-notification span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.drawer-notification p {
    margin: 8px 0 10px;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.45;
    font-weight: 650;
}

.drawer-close {
    float: right;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
}

.drawer-hero {
    clear: both;
    margin-top: 34px;
    padding: 20px 0;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--line);
}

.drawer-name {
    margin-top: 5px;
    color: var(--ink);
    font-size: 20px;
    line-height: 1.1;
    font-weight: 950;
}

.drawer-hero p {
    margin: 6px 0 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.drawer-actions {
    display: grid;
    gap: 8px;
    padding-top: 16px;
}

.drawer-actions a {
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    color: var(--ink-soft);
    background: linear-gradient(180deg, #fff, #f8fbff);
    font-size: 13px;
    font-weight: 850;
}

.premium-profile-actions {
    gap: 10px;
    padding-bottom: 22px;
}

.drawer-action {
    min-height: 64px !important;
    padding: 10px 12px !important;
    gap: 12px;
    border-left: 3px solid var(--primary) !important;
}

.drawer-action > span {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--primary-soft);
}

.drawer-action > span:before {
    content: "";
    width: 18px;
    height: 18px;
    background: var(--primary);
    mask-position: center;
    mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
}

.drawer-action b,
.drawer-action em {
    display: block;
}

.drawer-action b {
    color: var(--ink);
    font-size: 13px;
    line-height: 1.15;
}

.drawer-action em {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.25;
    font-style: normal;
    font-weight: 750;
}

.drawer-action.profile > span:before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='7' r='4' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='7' r='4' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
}

.drawer-action.lock > span:before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='5' y='11' width='14' height='10' rx='2' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='5' y='11' width='14' height='10' rx='2' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.drawer-action.admin > span:before,
.drawer-action.key > span:before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 7a4 4 0 1 1-3.2-3.9' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M14 14l6-6m-2 0h2v2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M4 21a7 7 0 0 1 10-6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 7a4 4 0 1 1-3.2-3.9' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M14 14l6-6m-2 0h2v2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M4 21a7 7 0 0 1 10-6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.drawer-action.attendance > span:before,
.drawer-action.onsite > span:before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='5' width='18' height='16' rx='2' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 11h18' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='5' width='18' height='16' rx='2' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 11h18' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.drawer-action.whatsapp {
    border-left-color: var(--green) !important;
}

.drawer-action.whatsapp > span {
    background: #e9f7f1;
}

.drawer-action.whatsapp > span:before {
    background: var(--green);
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.5 11.8a8.5 8.5 0 0 1-12.6 7.4L4 20l.9-3.8a8.5 8.5 0 1 1 15.6-4.4z' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.5 11.8a8.5 8.5 0 0 1-12.6 7.4L4 20l.9-3.8a8.5 8.5 0 1 1 15.6-4.4z' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
}

.drawer-action.red {
    border-left-color: var(--race-red) !important;
}

.drawer-action.red > span {
    background: var(--race-red-soft);
}

.drawer-action.red > span:before {
    background: var(--race-red);
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 5h16M4 12h10M4 19h8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M16 14l2 2 4-5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 5h16M4 12h10M4 19h8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M16 14l2 2 4-5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.drawer-action.logout {
    border-left-color: var(--race-red) !important;
}

.drawer-action.logout > span {
    background: var(--race-red-soft);
}

.drawer-action.logout > span:before {
    background: var(--race-red);
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M16 17l5-5-5-5M21 12H9' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M16 17l5-5-5-5M21 12H9' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.eyebrow {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .10em;
}

h1,
.page-title {
    margin: 4px 0 0;
    font-size: 24px;
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: 0;
}

.page-subtitle {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.pill,
.status-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.status-chip.success {
    background: #e9f7f1;
    color: var(--green);
}

.status-chip.warning {
    background: var(--race-yellow-soft);
    color: var(--amber);
}

.status-chip.neutral {
    background: var(--soft);
    color: var(--muted);
}

.notice {
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--primary);
    border-radius: 8px;
    background: rgba(255,255,255,.94);
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
    box-shadow: var(--shadow-soft);
}

.notice.success {
    border-left-color: var(--green);
    background: #f1fbf6;
    color: var(--green);
}

.notice.warning {
    border-left-color: var(--race-yellow);
    background: #fffaf0;
    color: var(--amber);
}

.grid {
    display: grid;
    gap: 16px;
}

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

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

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

.card {
    background: rgba(255,255,255,.94);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 15px;
}

.card.constrained-form-card {
    max-width: 520px;
}

.section-gap {
    margin-top: 16px;
}

.hero-card {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr);
    gap: 20px;
    align-items: stretch;
    padding: 22px;
    background:
        linear-gradient(135deg, #ffffff 0%, #f7fbff 52%, #eaf4ff 100%);
    box-shadow: var(--shadow);
}

.command-hero {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .72fr);
}

.hero-main {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.team-logo-ring {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    border-radius: 50%;
    border: 2px solid var(--race-red);
    padding: 4px;
    background: #fff;
    box-shadow: 0 14px 26px rgba(207,63,53,.14);
}

.team-logo-ring.large {
    width: 96px;
    height: 96px;
    flex-basis: 96px;
}

.team-logo,
.team-logo-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: grid;
    place-items: center;
}

.team-logo-fallback {
    background: linear-gradient(145deg, #0d447c, #1d6fb8);
    color: #fff;
    font-weight: 950;
    font-size: 22px;
}

.hero-card:after {
    content: "";
    position: absolute;
    inset: auto -80px -130px auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 34px solid rgba(18,79,140,.07);
}

.hero-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 8px 0 0;
    font-size: 30px;
    line-height: 1;
    font-weight: 950;
}

.dashboard-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
    gap: 16px;
    align-items: stretch;
}

.team-overview-card,
.member-synopsis-card {
    min-height: 314px;
    background:
        radial-gradient(circle at 94% 10%, rgba(245,183,46,.12), transparent 28%),
        linear-gradient(135deg, rgba(255,255,255,.98) 0%, rgba(248,251,255,.96) 62%, rgba(255,250,237,.72) 100%);
    border: 1px solid var(--line);
    border: 1px solid #155a9c;
    box-shadow: var(--shadow);
}

.team-overview-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    height: 314px;
    min-height: 314px;
    padding: 14px 18px 16px;
}

.team-overview-card:after {
    inset: auto -90px -150px auto;
    border-color: rgba(207,63,53,.045);
}

.team-overview-card .hero-main {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 18px;
    min-height: 0;
    max-height: none;
    overflow: visible;
}

.team-overview-card .team-logo-ring {
    width: 90px;
    height: 90px;
    flex-basis: 90px;
    align-self: start;
}

.team-overview-identity {
    min-width: 0;
    flex: 1 1 auto;
}

.team-overview-card .hero-title {
    max-width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    font-size: 26px;
    margin-top: 6px;
    line-height: 1.04;
}

.team-overview-name {
    min-width: 0;
    max-width: calc(100% - 32px);
    display: inline-block;
    overflow: visible;
    white-space: normal;
    line-height: 1.04;
    overflow-wrap: break-word;
    word-break: normal;
}

.team-name-short {
    font-size: 27px;
    max-height: none;
}

.team-name-medium {
    font-size: 24px;
    max-height: none;
}

.team-name-long {
    font-size: 22px;
    max-height: none;
}

.team-name-xlong {
    font-size: 20px;
    max-height: none;
}

.team-overview-card .team-verified-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    flex: 0 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    filter: drop-shadow(0 5px 9px rgba(0,149,246,.18));
}

.team-overview-card .team-unverified-icon {
    filter: drop-shadow(0 5px 9px rgba(255,0,0,.16));
}

.team-overview-card .team-verified-icon svg {
    display: block;
    width: 24px;
    height: 24px;
}

.team-overview-card .status-chip {
    flex: 0 0 auto;
    align-self: center;
    margin-top: 0;
}

.team-overview-card .page-subtitle {
    max-width: 100%;
    margin-top: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-overview-meta {
    display: grid;
    gap: 2px;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 760;
}

.team-overview-meta span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-overview-copy {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: none;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 720;
    align-self: stretch;
}

.executive-stat-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 0;
    align-self: stretch;
}

.executive-stat-item {
    min-height: 60px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255,255,255,.80);
    border-top: 3px solid var(--primary);
}

.executive-stat-item.blue { border-top-color: var(--primary); }
.executive-stat-item.amber { border-top-color: var(--race-yellow); }
.executive-stat-item.green { border-top-color: var(--green); }

.executive-stat-item .identity-value {
    font-size: 17px;
    margin-top: 2px;
}

.team-overview-action {
    position: relative;
    z-index: 1;
    align-self: center;
    width: min(100%, 300px);
    min-height: 38px;
    margin: 0 auto;
    padding: 0 18px;
    border: 1px solid rgba(18,79,140,.22);
    border-radius: 10px;
    background: linear-gradient(180deg, #2477c8 0%, #165897 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.20),
        0 10px 22px rgba(18,79,140,.20);
    font-size: 13.5px;
    letter-spacing: .01em;
    transform: translateZ(0);
}

.team-overview-action:hover {
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.28),
        0 18px 34px rgba(18,79,140,.26);
}

.member-synopsis-card {
    display: flex;
    flex-direction: column;
    height: 314px;
    min-height: 314px;
    overflow: hidden;
    border-left-color: var(--primary);
}

.member-synopsis-card .panel-title {
    margin-bottom: 10px;
}

.member-synopsis-card .panel-title .field-help {
    margin: 3px 0 0;
    line-height: 1.2;
}

.member-card-row.compact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc((76px * 3) + (8px * 2));
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 6px 0 0;
    margin-right: -6px;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.member-card-row.compact::-webkit-scrollbar {
    width: 6px;
}

.member-card-row.compact::-webkit-scrollbar-track {
    background: transparent;
}

.member-card-row.compact::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(104,120,143,.28);
}

.member-card-row.compact:hover::-webkit-scrollbar-thumb {
    background: rgba(18,79,140,.34);
}

.member-card-row.compact .member-preview-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    align-content: center;
    gap: 3px 10px;
    min-height: 76px;
    padding: 9px 11px;
    text-align: left;
    border-color: rgba(190,207,226,.82);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,255,.88));
    box-shadow: 0 8px 20px rgba(18,79,140,.08);
}

.member-card-row.compact .member-preview-photo,
.member-card-row.compact .member-preview-avatar {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 42px;
    height: 42px;
    margin: 0;
    border-width: 2px;
    padding: 1px;
}

.member-card-row.compact .member-preview-card strong {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    font-size: 13px;
    line-height: 1.15;
}

.member-card-row.compact .member-preview-card span {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    margin-top: 0;
    color: #687891;
    font-size: 11px;
    line-height: 1.2;
}

.member-click-card {
    display: block;
    min-width: 0;
    color: inherit;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.member-click-card:hover {
    border-color: rgba(18,79,140,.48);
    box-shadow: 0 10px 24px rgba(18,79,140,.12);
    transform: translateY(-1px);
}

.member-detail-drawer {
    display: none;
}

.member-detail-drawer:target {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 61;
}

.member-detail-drawer:target .drawer-scrim {
    display: block;
    opacity: 1;
}

.member-detail-panel {
    position: fixed;
    left: auto;
    right: 22px;
    top: 22px;
    bottom: 22px;
    z-index: 62;
    width: min(430px, calc(100vw - 44px));
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 24px 74px rgba(17,39,69,.28);
    padding: 18px;
}

.member-detail-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 0 16px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.member-detail-hero h2 {
    margin: 4px 0 3px;
    color: var(--ink);
    font-size: 22px;
    line-height: 1.12;
}

.member-detail-hero p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.compact-detail-list .detail-row strong {
    max-width: 240px;
    overflow-wrap: anywhere;
}

.dashboard-section {
    margin-top: 18px;
}

.section-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .10em;
}

.section-line:after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--line);
}

.chip-link {
    order: 2;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: none;
}

.member-card-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.member-preview-card {
    flex: 0 0 150px;
    min-height: 154px;
    padding: 14px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #fff, #f8fbff);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.member-preview-photo,
.member-preview-avatar {
    width: 68px;
    height: 68px;
    margin: 0 auto 10px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e47a6c;
    padding: 2px;
    background: #fff;
}

.member-preview-avatar {
    display: grid;
    place-items: center;
    color: var(--primary);
    font-weight: 900;
    background: var(--primary-soft);
}

.member-preview-card strong {
    display: block;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-preview-card span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

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

.quick-tile {
    position: relative;
    min-height: 96px;
    padding: 14px 12px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #fff, var(--surface-soft));
    box-shadow: var(--shadow-soft);
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
    text-align: center;
    gap: 9px;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.quick-tile:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    box-shadow: 0 18px 34px rgba(17,39,69,.12);
}

.quick-tile:before {
    content: "";
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: block;
    background: var(--tile-bg, var(--primary-soft));
    border: 1px solid var(--tile-border, var(--line));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.78);
}

.quick-tile:after {
    content: "";
    position: absolute;
    top: 27px;
    left: 50%;
    width: 21px;
    height: 21px;
    display: block;
    background: var(--tile-color, currentColor);
    transform: translateX(-50%);
    mask-position: center;
    mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
}

.quick-tile.icon-book:after {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M4 4.5A2.5 2.5 0 0 1 6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M4 4.5A2.5 2.5 0 0 1 6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.quick-tile.icon-flag:after {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 22V4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M5 4h12l-2 4 2 4H5' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 22V4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M5 4h12l-2 4 2 4H5' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.quick-tile.icon-calendar:after {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='4' width='18' height='17' rx='2' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M8 2v4M16 2v4M3 10h18' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='4' width='18' height='17' rx='2' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M8 2v4M16 2v4M3 10h18' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.quick-tile.icon-doc:after,
.quick-tile.icon-file:after {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M14 2v6h6M8 13h8M8 17h6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M14 2v6h6M8 13h8M8 17h6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.quick-tile.icon-map:after {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m9 18-6 3V6l6-3 6 3 6-3v15l-6 3z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M9 3v15M15 6v15' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m9 18-6 3V6l6-3 6 3 6-3v15l-6 3z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M9 3v15M15 6v15' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.quick-tile.purple { color: #6a1b9a; --tile-color: #6a1b9a; --tile-bg: #f6edfb; --tile-border: #ead8f4; }
.quick-tile.teal { color: #00838f; --tile-color: #00838f; --tile-bg: #e8f7f8; --tile-border: #cdecee; }
.quick-tile.blue { color: #1976d2; --tile-color: #1976d2; --tile-bg: #eaf3ff; --tile-border: #d4e7fb; }
.quick-tile.green { color: #388e3c; --tile-color: #2f7d35; --tile-bg: #eaf7ec; --tile-border: #d2ebd5; }
.quick-tile.amber { color: #b76e00; --tile-color: #b76e00; --tile-bg: #fff4dc; --tile-border: #f0ddb8; }
.quick-tile.red { color: var(--race-red); --tile-color: var(--race-red); --tile-bg: #fff0ee; --tile-border: #f3d8d5; }

.timeline-list {
    position: relative;
    display: grid;
    gap: 18px;
    margin-bottom: 14px;
    padding-left: 36px;
}

/* Continuous vertical timeline line */
.timeline-list:before {
    content: "";
    position: absolute;
    left: 13px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: #dce4ed;
}

.timeline-item {
    position: relative;
    min-height: 78px;
    padding: 16px 20px 16px 40px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.94));
    box-shadow: 0 8px 22px rgba(17,39,69,.05);
}

/* Yellow outlined timeline node */
.timeline-item:before {
    content: "";
    position: absolute;
    left: -47px;
    top: 27px;
    width: 13px;
    height: 13px;
    border: 3px solid var(--race-yellow);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(245,183,46,.08);
    z-index: 2;
}

/* Small pointer connecting the card to the timeline */
.timeline-item:after {
    content: "";
    position: absolute;
    left: -8px;
    top: 28px;
    width: 14px;
    height: 14px;
    border-left: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #fff;
    transform: rotate(45deg);
    z-index: 1;
}

.timeline-item strong,
.schedule-item strong {
    display: block;
    font-size: 14px;
    color: var(--ink);
}

.timeline-item span,
.schedule-item em {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.timeline-item strong {
    position: relative;
    z-index: 2;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 900;
}

.timeline-item span {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    line-height: 1.3;
    font-weight: 750;
}

.timeline-item span:before {
    content: "";
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    background: var(--muted);
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='5' width='18' height='16' rx='2' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='5' width='18' height='16' rx='2' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    mask-size: contain;
    -webkit-mask-size: contain;
}

.schedule-card {
    background: linear-gradient(180deg, #fff, #fffaf0);
}

.dashboard-summary-grid {
    align-items: stretch;
}

.dashboard-scroll-card {
    height: 360px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dashboard-scroll-list {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    scrollbar-gutter: stable;
    min-height: 0;
}

.dashboard-scroll-list::-webkit-scrollbar {
    width: 8px;
}

.dashboard-scroll-list::-webkit-scrollbar-track {
    background: transparent;
}

.dashboard-scroll-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(104, 119, 145, .28);
}

.booked-schedule-list {
    min-height: 120px;
}

.schedule-item {
    padding: 13px;
    border-radius: var(--radius);
    border: 1px solid #ead5b0;
    background: #fff7ec;
}

.schedule-item + .schedule-item {
    margin-top: 10px;
}

.schedule-item span {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e9f6eb;
    color: var(--green);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.button.compact {
    min-height: 34px;
    width: fit-content;
    padding-inline: 13px;
    font-size: 12px;
}

.danger-button {
    background: var(--race-red);
}

.disabled-link {
    pointer-events: none;
    opacity: .62;
    filter: grayscale(.12);
}

.profile-topbar {
    margin-bottom: 18px;
}

.profile-hub-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
    gap: 16px;
    align-items: stretch;
}

.profile-app-hero,
.profile-session-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255,255,255,.96);
    box-shadow: var(--shadow-soft);
}

.profile-app-hero {
    min-height: 318px;
    padding: 22px;
    border-left: 4px solid var(--race-yellow);
    background:
        radial-gradient(circle at 89% 105%, rgba(211, 58, 50, .07) 0, rgba(211, 58, 50, .07) 16%, transparent 16.5%),
        linear-gradient(135deg, #ffffff 0%, #fffdf7 58%, #fff4cf 100%);
}

.profile-app-hero:after {
    content: "";
    position: absolute;
    right: -76px;
    bottom: -94px;
    width: 240px;
    height: 240px;
    border: 30px solid rgba(34, 91, 154, .04);
    border-radius: 999px;
    pointer-events: none;
}

.profile-hero-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 18px;
}

.profile-app-hero .team-logo-ring.large {
    width: 78px;
    height: 78px;
    flex-basis: 78px;
    box-shadow: 0 12px 22px rgba(207,63,53,.12);
}

.profile-identity-copy h1 {
    margin: 4px 0 0;
    font-size: 30px;
    line-height: 1.05;
    letter-spacing: 0;
}

.profile-identity-copy p,
.profile-overview-copy,
.profile-session-card p,
.profile-section-subtitle {
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.profile-identity-copy p {
    margin: 7px 0 0;
}

.profile-overview-copy {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 18px 0 0;
}

.profile-chip-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 12px;
}

.profile-hero-stat-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
}

.profile-hero-stat {
    padding: 12px 14px;
    min-height: 68px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--primary);
    border-radius: 8px;
    background: rgba(255,255,255,.84);
}

.profile-hero-stat span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.profile-hero-stat strong {
    display: block;
    margin-top: 7px;
    color: var(--ink);
    font-size: 20px;
    line-height: 1;
}

.profile-hero-stat.blue { border-top-color: var(--primary); }
.profile-hero-stat.amber { border-top-color: var(--race-yellow); }
.profile-hero-stat.green { border-top-color: var(--green); }

.profile-wide-button {
    position: relative;
    z-index: 1;
    width: min(340px, 100%);
    margin-top: 18px;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
}

.logo-upload-submit {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.logo-upload-message {
    position: relative;
    z-index: 2;
    display: inline-block;
    margin-top: 14px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.logo-upload-message.success {
    border-color: rgba(27,125,82,.22);
    background: #eaf7f0;
    color: var(--green);
}

.logo-upload-message.warning {
    border-color: rgba(255,190,42,.35);
    background: #fff7df;
    color: #9b6400;
}

.logo-upload-message.error {
    border-color: rgba(211,58,50,.24);
    background: #fff0ee;
    color: var(--race-red);
}

.shell-logo-toast {
    margin: 0 0 14px;
}

.profile-session-card {
    padding: 20px;
    border-left: 4px solid var(--primary);
    background:
        radial-gradient(circle at 96% 0%, rgba(18, 79, 140, .075), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(249,252,255,.95));
}

.profile-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.profile-card-head h2 {
    margin: 4px 0 0;
    font-size: 24px;
    line-height: 1.1;
}

.profile-session-card .compact-detail-list {
    margin-top: 22px;
}

.profile-session-card .detail-row {
    min-height: 35px;
    padding-bottom: 8px;
}

.profile-session-card .detail-row span {
    font-size: 13px;
    font-weight: 850;
}

.profile-session-card .detail-row strong {
    color: var(--ink);
    font-size: 15px;
    font-weight: 950;
}

.profile-session-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
}

.profile-session-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.78);
}

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

.profile-metric {
    min-height: 108px;
    border-top: 3px solid var(--primary);
}

.profile-metric span,
.profile-action-copy span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.profile-metric strong {
    display: block;
    margin-top: 8px;
    font-size: 22px;
    line-height: 1;
}

.profile-metric em {
    display: block;
    margin-top: 9px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.profile-metric.blue { border-top-color: var(--primary); }
.profile-metric.green,
.profile-metric.paid { border-top-color: var(--green); }
.profile-metric.amber { border-top-color: var(--race-yellow); }

.profile-section-title {
    margin-top: 20px;
}

.profile-section-subtitle {
    margin: -7px 0 10px;
    max-width: 820px;
    line-height: 1.35;
}

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

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

.profile-action {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 18px;
    gap: 12px;
    align-items: center;
    min-height: 76px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 104% 0%, rgba(18, 79, 140, .045), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(249,252,255,.94));
    box-shadow: 0 12px 30px rgba(17,39,69,.07);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.profile-action:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    box-shadow: 0 18px 38px rgba(15, 40, 65, .11);
}

.profile-action.disabled {
    cursor: default;
    opacity: .68;
    background: rgba(248,251,255,.86);
    box-shadow: none;
}

.profile-action.disabled:hover {
    transform: none;
}

.profile-action.static {
    cursor: default;
}

.profile-action.static:hover {
    transform: none;
}

.profile-action-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .04em;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.74);
}

.profile-action-arrow {
    display: block;
    justify-self: end;
    width: 9px;
    height: 9px;
    border-top: 2px solid var(--line-strong);
    border-right: 2px solid var(--line-strong);
    transform: rotate(45deg);
    opacity: .9;
}

.profile-action:hover .profile-action-arrow {
    border-color: var(--primary);
}

.profile-action.static .profile-action-arrow {
    opacity: 0;
}

.profile-action b {
    display: block;
    color: var(--ink);
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 1.14;
}

.profile-action-copy span {
    line-height: 1.26;
}

.profile-action.warm { border-left-color: #8a4b12; }
.profile-action.warm { background: radial-gradient(circle at 104% 0%, rgba(245,183,46,.10), transparent 35%), linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,252,245,.95)); }
.profile-action.warm .profile-action-icon { background: #fff4df; color: #8a4b12; }
.profile-action.amber { border-left-color: var(--race-yellow); }
.profile-action.amber .profile-action-icon { background: var(--race-yellow-soft); color: #8a5a00; }
.profile-action.blue { border-left-color: #225b9a; }
.profile-action.purple { border-left-color: #7a3ff2; }
.profile-action.purple { background: radial-gradient(circle at 104% 0%, rgba(122,63,242,.08), transparent 35%), linear-gradient(180deg, rgba(255,255,255,.98), rgba(251,249,255,.95)); }
.profile-action.purple .profile-action-icon { background: #f0eaff; color: #6531d8; }
.profile-action.green { border-left-color: var(--green); }
.profile-action.green { background: radial-gradient(circle at 104% 0%, rgba(19,121,91,.08), transparent 35%), linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,253,250,.95)); }
.profile-action.green .profile-action-icon { background: #eaf7ec; color: var(--green); }
.profile-action.red { border-left-color: var(--race-red); }
.profile-action.red { background: radial-gradient(circle at 104% 0%, rgba(207,63,53,.08), transparent 35%), linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,249,248,.95)); }
.profile-action.red .profile-action-icon { background: var(--race-red-soft); color: var(--race-red); }
.profile-action.neutral { border-left-color: #5f6b7a; }
.profile-action.neutral .profile-action-icon { background: #eef3f8; color: #5f6b7a; }
.profile-action.destructive { border-left-color: #8a3b2e; background: #fff8f7; }
.profile-action.destructive .profile-action-icon { background: #ffe9e5; color: #8a3b2e; }

.onsite-web-card,
.attendance-web-card,
.policy-card,
.desk-card {
    margin-bottom: 16px;
}

.desk-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background:
        radial-gradient(circle at 92% 10%, rgba(255, 184, 31, .08), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,253,255,.95));
}

.onsite-web-card h2,
.attendance-web-card h2,
.policy-card h2,
.desk-card h2 {
    margin: 4px 0 4px;
    font-size: 20px;
    line-height: 1.08;
}

.desk-layout {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: 16px;
    align-items: start;
}

.desk-console-layout {
    display: grid;
    gap: 16px;
}

.desk-create-card,
.desk-inbox-card {
    width: 100%;
}

.desk-collapse-toggle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 38px;
    gap: 12px;
    align-items: center;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
}

.desk-collapse-toggle:hover .desk-toggle-icon {
    border-color: rgba(29, 111, 184, .28);
    box-shadow: 0 12px 22px rgba(29,111,184,.12);
}

.desk-toggle-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: linear-gradient(180deg, #fff, #f4f8fd);
    color: var(--primary);
    font-size: 16px;
    font-weight: 950;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.desk-toggle-copy {
    display: grid;
    gap: 2px;
}

.desk-toggle-copy strong {
    color: var(--ink);
    font-size: 19px;
    line-height: 1.05;
}

.desk-toggle-copy em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 760;
}

.desk-collapse-body {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.desk-collapse-body.expanded {
    display: block;
}

.desk-topbar {
    align-items: flex-start;
    margin-bottom: 20px;
}

.desk-topbar .page-subtitle {
    max-width: 760px;
}

.compact-form {
    gap: 12px 16px;
    margin-bottom: 14px;
}

.compact-form .field {
    margin-bottom: 0;
}

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

.desk-card .field label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.desk-card input[type="text"],
.desk-card input[type="search"],
.desk-card input[type="file"],
.desk-card textarea,
.desk-card select,
.compact-select,
.compact-input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(249,252,255,.96));
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    font-weight: 780;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 8px 18px rgba(17,39,69,.04);
    transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}

.desk-card input[type="text"],
.desk-card input[type="search"],
.desk-card textarea,
.desk-card select,
.compact-select,
.compact-input {
    padding: 0 12px;
}

.desk-card textarea {
    min-height: 92px;
    padding-top: 11px;
    resize: vertical;
    line-height: 1.45;
}

.desk-card select,
.compact-select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%),
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(249,252,255,.96));
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 13px) 50%,
        0 0;
    background-size: 5px 5px, 5px 5px, 100% 100%;
    background-repeat: no-repeat;
    padding-right: 34px;
}

.desk-card input[type="file"] {
    min-height: 46px;
    padding: 7px;
    color: var(--muted);
}

.desk-card input[type="file"]::file-selector-button {
    margin-right: 12px;
    border: 0;
    border-radius: 8px;
    background: var(--primary-soft);
    color: var(--primary);
    min-height: 30px;
    padding: 0 13px;
    font: inherit;
    font-size: 12px;
    font-weight: 950;
    cursor: pointer;
}

.desk-card .checkbox-row,
.declaration-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 0 14px;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
}

.desk-card .checkbox-row input,
.declaration-row input {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--primary);
}

.desk-card input[type="text"]:focus,
.desk-card input[type="search"]:focus,
.desk-card textarea:focus,
.desk-card select:focus,
.compact-select:focus,
.compact-input:focus {
    outline: 4px solid rgba(29,111,184,.12);
    border-color: var(--primary-2);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 12px 24px rgba(18,79,140,.10);
}

.filter-bar {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr) auto;
    gap: 10px;
    margin: 12px 0 16px;
}

.ticket-list,
.feedback-list,
.message-thread {
    display: grid;
    gap: 10px;
}

.desk-inbox-shell {
    display: grid;
    grid-template-columns: minmax(300px, .82fr) minmax(420px, 1.18fr);
    gap: 14px;
    align-items: start;
}

.desk-ticket-pane {
    max-height: 640px;
    overflow: auto;
    padding-right: 4px;
}

.desk-ticket-pane::-webkit-scrollbar {
    width: 8px;
}

.desk-ticket-pane::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(119, 143, 170, .28);
}

.desk-ticket-list {
    gap: 9px;
}

.desk-thread-pane {
    min-height: 420px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background:
        radial-gradient(circle at 96% 3%, rgba(255,184,31,.08), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(249,252,255,.95));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

.desk-thread-empty {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    min-height: 360px;
    text-align: center;
}

.desk-thread-empty span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 950;
}

.desk-thread-empty strong {
    color: var(--ink);
    font-size: 16px;
    font-weight: 950;
}

.desk-thread-empty em {
    max-width: 280px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 760;
    line-height: 1.45;
}

.desk-empty-state {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 96px;
    padding: 16px;
    border: 1px dashed var(--line-strong);
    border-radius: 10px;
    background: rgba(248,251,255,.82);
}

.desk-empty-state span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 950;
}

.desk-empty-state b {
    display: block;
    color: var(--ink);
    font-size: 14px;
    margin-bottom: 3px;
}

.desk-empty-state em {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 750;
}

.ticket-card,
.feedback-card {
    position: relative;
    display: block;
    padding: 14px 14px 13px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--primary);
    border-radius: 8px;
    background: rgba(255,255,255,.94);
    box-shadow: var(--shadow-soft);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.ticket-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(15,40,65,.10);
}

.desk-ticket-card {
    padding-left: 16px;
}

.desk-ticket-card.selected {
    border-color: rgba(29,111,184,.36);
    border-left-color: var(--race-yellow);
    background:
        radial-gradient(circle at 96% 0%, rgba(255,184,31,.13), transparent 42%),
        linear-gradient(180deg, #fff, #f8fbff);
    box-shadow: 0 16px 32px rgba(17,55,95,.12);
}

.desk-ticket-card.selected:after {
    content: "Reading";
    background: rgba(255,184,31,.18);
    color: #986200;
}

.desk-ticket-card.loading:after {
    content: "Opening";
    background: rgba(29,111,184,.12);
    color: var(--primary);
}

.ticket-card > span,
.feedback-card span,
.message-bubble span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ticket-card b,
.feedback-card b {
    display: block;
    margin: 5px 92px 4px 0;
    color: var(--ink);
    font-size: 15px;
}

.ticket-card em,
.feedback-card em {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 750;
}

.ticket-card p,
.feedback-card p {
    margin: 10px 0 0;
    color: var(--text);
    font-size: 13px;
    line-height: 1.45;
}

.ticket-card:after {
    content: "Open thread";
    display: inline-flex;
    margin-top: 11px;
    min-height: 28px;
    align-items: center;
    padding: 0 11px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 11px;
    font-weight: 950;
}

.ticket-card .status-chip,
.feedback-card .status-chip {
    position: absolute;
    top: 12px;
    right: 12px;
}

.ticket-status-front {
    display: inline-flex;
    width: auto;
    min-height: 24px;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ticket-card > .ticket-status-front {
    display: inline-flex;
    width: fit-content;
    max-width: max-content;
}

.ticket-status-front.open {
    background: rgba(255,184,31,.17);
    color: #9b6200;
}

.ticket-status-front.closed {
    background: rgba(22,137,94,.12);
    color: var(--green);
}

.feedback-card dl {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 8px 12px;
    margin: 12px 0 0;
}

.feedback-card dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.feedback-card dd {
    margin: 0;
    color: var(--ink);
    font-size: 13px;
    font-weight: 750;
}

.followup-panel {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.closed-thread-notice {
    display: grid;
    gap: 3px;
    margin-top: 14px;
    padding: 13px 14px;
    border: 1px solid rgba(22, 137, 94, .20);
    border-left: 3px solid var(--green);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(234, 249, 242, .78), rgba(255, 255, 255, .92));
}

.closed-thread-notice strong {
    color: var(--ink);
    font-size: 14px;
    font-weight: 950;
}

.closed-thread-notice span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.4;
}

.detail-desk-card {
    margin-top: 0;
}

.message-bubble {
    max-width: 88%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.message-bubble.own {
    justify-self: end;
    border-left: 3px solid var(--primary);
    background: #f8fbff;
}

.message-bubble.desk {
    justify-self: start;
    border-left: 3px solid var(--race-yellow);
}

.message-bubble p {
    margin: 7px 0 0;
    font-size: 13px;
    line-height: 1.45;
}

.attachment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding-top: 6px;
}

.attachment-list b {
    width: 100%;
    color: var(--ink);
    font-size: 13px;
}

.attachment-list a {
    padding: 8px 10px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
}

.followup-panel {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.checkbox-row.declaration-row {
    margin: 2px 0 14px;
}

.result-empty-card {
    max-width: 760px;
}

.result-empty-card h2 {
    margin: 6px 0 8px;
    font-size: 18px;
}

.results-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
    overflow: hidden;
    border-left: 4px solid var(--race-yellow);
    background:
        radial-gradient(circle at 96% 82%, rgba(219, 58, 52, .08), transparent 30%),
        linear-gradient(135deg, #fff, #fff8e5);
}

.results-hero-card.compact {
    grid-template-columns: minmax(0, 1fr) 560px;
    min-height: 0;
    padding: 12px 14px;
}

.results-hero-card h1 {
    margin: 4px 0;
    font-size: 22px;
    line-height: 1.12;
}

.results-hero-card.compact h1 {
    font-size: 19px;
}

.results-hero-card p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.results-hero-card.compact p {
    margin-bottom: 0;
}

.result-notice {
    display: inline-flex;
    max-width: 760px;
    padding: 9px 12px;
    border: 1px solid rgba(247, 181, 0, .38);
    border-radius: 999px;
    background: rgba(255,255,255,.76);
    color: #8a5a00;
    font-size: 12px;
    font-weight: 850;
}

.result-hero-grid,
.result-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.result-hero-grid div,
.result-metric {
    min-height: 58px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--primary);
    border-radius: 8px;
    background: rgba(255,255,255,.9);
}

.results-hero-card.compact .result-hero-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.results-hero-card.compact .result-hero-grid div {
    min-height: 50px;
    padding: 8px 10px;
}

.results-hero-card.compact .result-hero-grid b {
    font-size: 14px;
}

.result-hero-grid span,
.result-metric span {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.result-hero-grid b,
.result-metric b {
    display: block;
    margin-top: 5px;
    color: var(--ink);
    font-size: 16px;
    line-height: 1;
}

.result-metric em {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
    font-weight: 750;
}

.result-metric.red {
    border-top-color: var(--race-red);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.results-grid.gate-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 12px;
}

.result-summary-card h2,
.result-scorecard h2,
.driver-log-card h2 {
    margin: 4px 0 4px;
    font-size: 16px;
    line-height: 1.12;
}

.gate-card {
    display: flex;
    min-height: 154px;
    flex-direction: column;
    gap: 7px;
    padding: 12px;
}

.gate-card .panel-title {
    align-items: flex-start;
    min-height: 32px;
    gap: 10px;
}

.gate-card h2 {
    max-width: 320px;
    font-size: 15px;
    line-height: 1.12;
}

.gate-action {
    min-width: 96px;
    padding: 8px 11px;
    text-align: center;
}

.gate-primary {
    position: relative;
    min-height: 58px;
    padding: 9px 34px 9px 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,255,.92));
}

.gate-primary::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--primary);
}

.gate-primary.red::before {
    background: var(--race-red);
}

.gate-primary.green::before {
    background: var(--green);
}

.gate-primary.success {
    border-color: rgba(28, 154, 88, .22);
    background:
        radial-gradient(circle at 96% 18%, rgba(28,154,88,.13), transparent 34%),
        linear-gradient(180deg, rgba(250,255,252,.98), rgba(239,250,244,.92));
}

.gate-primary.success::before {
    background: var(--green);
}

.gate-primary.success::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 8px 18px rgba(28,154,88,.18);
}

.gate-primary.success strong {
    color: #0c7b45;
}

.gate-primary.success span::after {
    content: "";
    position: absolute;
    top: 16px;
    right: 17px;
    z-index: 1;
    width: 8px;
    height: 4px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

.gate-primary.danger::before {
    background: var(--race-red);
}

.gate-primary span,
.gate-facts span {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.gate-primary strong {
    display: block;
    margin-top: 4px;
    color: var(--ink);
    font-size: 19px;
    line-height: 1;
}

.gate-primary em {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.35;
}

.gate-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: auto;
}

.gate-card:nth-child(2) .gate-facts,
.gate-card:nth-child(3) .gate-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gate-facts div {
    min-height: 38px;
    padding: 7px 8px;
    border: 1px solid rgba(215, 225, 238, .82);
    border-radius: 8px;
    background: rgba(248, 251, 255, .74);
}

.gate-facts b {
    display: block;
    margin-top: 4px;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.08;
}

.gate-facts em {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
    font-weight: 750;
    line-height: 1.25;
}

.scorecard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.result-scorecard {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(200px, .48fr) minmax(0, 1.52fr);
    gap: 10px;
    align-items: start;
    padding: 12px;
    border-radius: 9px;
    background:
        radial-gradient(circle at 96% 0%, rgba(245, 183, 46, .10), transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,252,255,.94));
}

.result-scorecard:before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--race-red), var(--race-yellow), var(--primary));
}

.result-scorecard h2 {
    margin-top: 6px;
    font-size: 16px;
    line-height: 1.12;
    letter-spacing: 0;
}

.scorecard-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    min-width: 0;
}

.scorecard-head .status-chip {
    flex: 0 0 auto;
}

.scorecard-head span:first-child {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 8px;
    border: 1px solid rgba(207, 63, 53, .16);
    border-radius: 999px;
    background: rgba(255, 240, 238, .72);
    color: var(--race-red);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ti-section-head span {
    display: block;
    color: var(--race-red);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.scorecard-head p {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    margin: 2px 0 0;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(232,242,252,.78);
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
}

.result-metric-grid.compact {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.result-metric-grid.compact .result-metric {
    min-height: 46px;
    padding: 8px 9px;
    border-top-width: 3px;
}

.result-metric-grid.compact .result-metric b {
    font-size: 13px;
}

.attempt-list {
    display: grid;
    gap: 6px;
    padding: 10px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(248,251,255,.82);
    grid-column: 1 / -1;
}

.attempt-list > b {
    color: var(--ink);
    font-size: 13px;
}

.attempt-list div {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 10px;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.attempt-list .attempt-selected {
    border: 1px solid rgba(224, 185, 110, .62);
    border-radius: 8px;
    background: rgba(255, 247, 229, .78);
    padding: 8px 10px;
}

.attempt-list .attempt-row.selected {
    border: 1px solid rgba(224, 185, 110, .72);
    border-radius: 8px;
    background: rgba(255, 247, 229, .62);
    padding: 8px 10px;
}

.attempt-list span,
.attempt-list em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 750;
}

.attempt-list strong {
    color: var(--ink);
    font-size: 13px;
}

.timing-benchmark-box {
    display: grid;
    gap: 0;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(248,251,255,.72);
    grid-column: 1 / -1;
}

.timing-benchmark-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    min-height: 29px;
    padding: 2px 0;
}

.timing-benchmark-row + .timing-benchmark-row {
    border-top: 1px solid rgba(213,226,239,.78);
    padding-top: 7px;
    margin-top: 5px;
}

.timing-benchmark-row span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.timing-benchmark-row strong {
    font-size: 13px;
    font-weight: 950;
}

.timing-benchmark-row.fastest strong {
    color: #2E8B57;
}

.timing-benchmark-row.slowest strong {
    color: #C62828;
}

.scorecard-footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    grid-column: 1 / -1;
}

.score-review-panel,
.score-help-panel {
    display: grid;
    grid-template-columns: minmax(130px, .32fr) minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    min-height: 58px;
    padding: 10px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(249,252,255,.86));
}

.score-help-panel {
    grid-template-columns: minmax(120px, .3fr) minmax(0, 1fr) auto;
}

.score-review-panel b,
.score-help-panel b {
    display: block;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.05;
}

.score-review-panel div > span,
.score-help-panel div > span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.score-review-panel p,
.score-help-panel p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.28;
}

.scorecard-footer .status-chip {
    justify-self: end;
    min-height: 30px;
}

.scorecard-footer-action,
.scorecard-footer .button {
    justify-self: end;
    min-height: 34px;
    padding: 0 12px;
}

.result-help-panel {
    margin-bottom: 16px;
    border-left: 4px solid var(--primary);
}

.driver-log-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.driver-log-card {
    position: relative;
    overflow: hidden;
    border-left: 3px solid var(--primary);
    background:
        radial-gradient(circle at 100% 0%, rgba(18, 79, 140, .07), transparent 28%),
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,252,255,.94));
}

.driver-log-card .eyebrow {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    padding: 3px 8px;
    border: 1px solid rgba(18, 79, 140, .14);
    border-radius: 999px;
    background: rgba(232,242,252,.8);
    color: var(--primary);
}

.driver-log-card h2 {
    margin-top: 6px;
    font-size: 16px;
    line-height: 1.08;
}

.ti-hero-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(460px, .66fr);
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
    border-left: 4px solid var(--race-yellow);
    background:
        radial-gradient(circle at 94% 85%, rgba(219, 58, 52, .08), transparent 30%),
        linear-gradient(135deg, #fff, #fff8e5);
}

.ti-hero-card > .status-chip {
    position: absolute;
    top: 18px;
    right: 18px;
    min-height: 28px;
    padding: 0 14px;
}

.ti-hero-card h1 {
    margin: 5px 0;
    font-size: 22px;
    line-height: 1.12;
}

.ti-hero-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.ti-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.ti-summary-grid div {
    min-height: 58px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--primary);
    border-radius: 8px;
    background: rgba(255,255,255,.88);
}

.ti-summary-grid span {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ti-summary-grid b {
    display: block;
    margin-top: 6px;
    color: var(--ink);
    font-size: 14px;
}

.ti-report-stack {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.ti-section {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--race-red);
    border-radius: 8px;
    background: rgba(255,255,255,.88);
}

.ti-section + .ti-section {
    margin-top: 12px;
}

.ti-section-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.ti-section-head .status-chip {
    align-self: flex-start;
    flex: 0 0 auto;
}

.ti-section-head b {
    display: block;
    margin-top: 5px;
    color: var(--ink);
    font-size: 15px;
}

.ti-section-head em {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 750;
}

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

.ti-metrics span {
    padding: 10px 12px;
    border-radius: 8px;
    background: #f8fbff;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.ti-metrics b {
    display: block;
    margin-top: 4px;
    color: var(--ink);
    font-size: 16px;
}

.ti-rule-table th:first-child,
.ti-rule-table td:first-child {
    width: 38%;
}

.onsite-clause-list {
    display: grid;
    gap: 8px;
    margin: 14px 0;
}

.onsite-clause-list div {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--green);
    border-radius: 8px;
    background: #fbfefd;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 800;
}

.reentry-panel {
    margin-top: 18px;
}

.onsite-topbar {
    margin-bottom: 18px;
}

.onsite-module-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.onsite-module-tile {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 78px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background:
        radial-gradient(circle at 92% 10%, rgba(255,184,31,.09), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(249,252,255,.95));
    box-shadow: var(--shadow-soft);
    color: inherit;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.onsite-module-tile:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(17,39,69,.10);
}

.onsite-module-tile.active {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    border-color: rgba(18,79,140,.24);
    box-shadow: 0 20px 42px rgba(17,39,69,.13);
}

.onsite-module-tile.active:after {
    content: "Viewing";
    justify-self: end;
    align-self: center;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 11px;
    font-weight: 950;
}

.onsite-module-tile:not(.active) {
    opacity: .78;
}

.onsite-module-tile.consent {
    border-left: 4px solid var(--green);
}

.onsite-module-tile.vehicle {
    border-left: 4px solid var(--race-red);
}

.onsite-module-tile.consent.active:after {
    background: #eaf7ec;
    color: var(--green);
}

.onsite-module-tile.vehicle.active:after {
    background: var(--race-red-soft);
    color: var(--race-red);
}

.onsite-module-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--primary-soft);
}

.onsite-module-tile.consent .onsite-module-icon {
    background: #eaf7ec;
}

.onsite-module-tile.vehicle .onsite-module-icon {
    background: var(--race-red-soft);
}

.onsite-module-icon:before {
    content: "";
    width: 19px;
    height: 23px;
    border: 2px solid var(--primary);
    border-radius: 5px;
    box-shadow: inset 0 6px 0 rgba(18,79,140,.10);
}

.onsite-module-tile.consent .onsite-module-icon:before {
    border-color: var(--green);
}

.onsite-module-tile.vehicle .onsite-module-icon:before {
    width: 23px;
    height: 14px;
    border-color: var(--race-red);
    border-radius: 8px 8px 5px 5px;
    box-shadow: none;
}

.onsite-module-tile.vehicle .onsite-module-icon:after {
    content: "";
    position: absolute;
    bottom: 10px;
    width: 23px;
    height: 5px;
    border-radius: 999px;
    background: var(--race-yellow);
}

.onsite-module-tile b {
    display: block;
    color: var(--ink);
    font-size: 14px;
    font-weight: 950;
    margin-bottom: 2px;
}

.onsite-module-tile em {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
    font-weight: 750;
    line-height: 1.35;
}

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

.onsite-module-card {
    position: relative;
    overflow: hidden;
    border-radius: 9px;
    background:
        radial-gradient(circle at 94% 8%, rgba(255,184,31,.08), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,253,255,.95));
    padding: 18px 20px;
}

.onsite-module-card:before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--primary);
}

.onsite-module-card.consent-module:before {
    background: var(--green);
}

.onsite-module-card.vehicle-module:before {
    background: linear-gradient(180deg, var(--race-red), var(--race-yellow));
}

.onsite-module-card .panel-title {
    align-items: flex-start;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
    margin-bottom: 13px;
}

.onsite-module-card h2 {
    margin: 4px 0;
    font-size: 20px;
    line-height: 1.08;
}

.onsite-module-card .compact-detail-list {
    margin-bottom: 13px;
}

.onsite-module-card .detail-row {
    min-height: 34px;
    padding: 8px 0;
}

.onsite-module-card .detail-row strong {
    max-width: min(520px, 62%);
    line-height: 1.25;
}

.onsite-receipt {
    display: grid;
    grid-template-columns: 1.25fr repeat(2, minmax(0, .9fr));
    gap: 10px;
    margin-bottom: 14px;
}

.onsite-receipt-item {
    min-height: 68px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,252,255,.96));
    box-shadow: 0 10px 24px rgba(17,39,69,.05);
}

.onsite-receipt-item.wide {
    border-top: 3px solid var(--green);
}

.onsite-receipt-item span,
.onsite-metric span,
.onsite-form-head span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.onsite-receipt-item strong {
    display: block;
    margin-top: 7px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 950;
    line-height: 1.2;
}

.onsite-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0 4px;
}

.onsite-metric {
    min-height: 64px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--primary);
    border-radius: 9px;
    background: rgba(255,255,255,.82);
}

.onsite-metric.green {
    border-top-color: var(--green);
}

.onsite-metric.red {
    border-top-color: var(--race-red);
}

.onsite-metric strong {
    display: block;
    margin-top: 7px;
    color: var(--ink);
    font-size: 18px;
    font-weight: 950;
}

.onsite-request-panel,
.reentry-panel {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(248,252,255,.86), rgba(255,255,255,.96));
}

.onsite-form-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--line);
}

.onsite-form-head strong {
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 850;
    text-align: right;
}

.onsite-form-grid {
    gap: 12px;
    margin-top: 12px;
    margin-bottom: 14px;
}

.onsite-form-grid .field {
    margin-bottom: 0;
}

.onsite-module-card .field label {
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.onsite-module-card input[type="text"],
.onsite-module-card select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(249,252,255,.96));
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    font-weight: 780;
    padding: 0 12px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 8px 18px rgba(17,39,69,.04);
}

.onsite-module-card select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%),
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(249,252,255,.96));
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%, 0 0;
    background-size: 5px 5px, 5px 5px, 100% 100%;
    background-repeat: no-repeat;
    padding-right: 34px;
}

.onsite-module-card input[type="text"]:focus,
.onsite-module-card select:focus {
    outline: 4px solid rgba(29,111,184,.12);
    border-color: var(--primary-2);
}

.onsite-module-card .profile-wide-button {
    margin-top: 2px;
}

.policy-card {
    max-width: 920px;
}

.policy-card p {
    margin: 0 0 18px;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.55;
    font-weight: 650;
}

.alert.success {
    border-left-color: var(--green);
    background: #eefaf4;
    color: #11633b;
}

.alert.error {
    border-left-color: var(--race-red);
    background: #fff4f2;
    color: #8a2e26;
}

.table-shell {
    width: 100%;
    overflow-x: auto;
}

.data-table.compact th,
.data-table.compact td {
    padding: 10px 12px;
    font-size: 12px;
}

.data-table td span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
}

.resource-hero {
    margin-bottom: 16px;
    min-height: 132px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, #fff, #f8fbff);
}

.resource-hero h1 {
    margin: 5px 0 0;
    font-size: 26px;
    line-height: 1.1;
}

.resource-hero p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.resource-hero.green { border-left: 4px solid var(--green); }
.resource-hero.amber { border-left: 4px solid var(--race-yellow); }
.resource-hero.red { border-left: 4px solid var(--race-red); }
.resource-hero.purple { border-left: 4px solid #7a3ff2; }
.resource-hero.teal { border-left: 4px solid #00838f; }
.resource-hero.blue { border-left: 4px solid var(--primary); }

.resource-list {
    display: grid;
    gap: 12px;
}

.resource-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
}

.resource-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--primary-soft);
    position: relative;
}

.resource-icon:after {
    content: "";
    position: absolute;
    inset: 10px;
    background: var(--primary);
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M14 2v6h6M8 13h8M8 17h6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M14 2v6h6M8 13h8M8 17h6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.resource-icon.green { background: #eaf7ec; }
.resource-icon.green:after { background: var(--green); }
.resource-icon.amber { background: var(--race-yellow-soft); }
.resource-icon.amber:after { background: var(--amber); }
.resource-icon.red { background: var(--race-red-soft); }
.resource-icon.red:after { background: var(--race-red); }

.resource-card h2 {
    margin: 0;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.25;
}

.resource-card p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 27px;
    padding: 0 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #e8f7f0, var(--race-yellow-soft));
    color: var(--green);
    border: 1px solid #cdeede;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    vertical-align: middle;
    transform: translateY(2px);
}

.verified-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.65);
    position: relative;
    flex: 0 0 18px;
}

.verified-check:after {
    content: "";
    position: absolute;
    left: 5px;
    top: 5px;
    width: 8px;
    height: 4px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

.identity-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    position: relative;
    z-index: 1;
}

.identity-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255,255,255,.78);
    padding: 11px;
    border-left: 3px solid transparent;
}

.identity-item:nth-child(1) {
    border-left-color: var(--race-yellow);
}

.identity-item:nth-child(4) {
    border-left-color: var(--race-red);
}

.identity-label,
.metric {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.identity-value {
    margin-top: 5px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.metric-card {
    min-height: 104px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.metric-value {
    margin-top: 7px;
    font-size: 25px;
    line-height: 1;
    font-weight: 950;
}

.metric-note {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.panel-title {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.selection-card {
    margin-top: 14px;
    padding: 13px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--race-yellow);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #fff, #fffdf6);
}

.selection-card strong {
    display: block;
    color: var(--ink);
    font-size: 15px;
}

.selection-card span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.inline-form {
    margin-top: 16px;
}

.compact-list {
    gap: 10px;
}

.compact-person-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.compact-person-row strong {
    display: block;
    color: var(--ink);
    font-size: 14px;
}

.compact-person-row span,
.compact-person-row em {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 750;
}

.compact-person-row em {
    text-align: right;
    white-space: nowrap;
}

.choice-list {
    display: grid;
    gap: 12px;
}

.choice-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 76px;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid #cfe6d6;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #f7fcf9, #fff);
    box-shadow: var(--shadow-soft);
}

.choice-button {
    min-width: 0;
    width: 76px;
    min-height: 42px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 12px;
    box-shadow: none;
    white-space: nowrap;
}

.choice-card.selected {
    border-color: #4aa56a;
    background: linear-gradient(180deg, #eaf7ef, #fff);
    box-shadow: 0 16px 30px rgba(27,122,69,.12);
}

.choice-card.disabled {
    border-color: var(--line);
    background: #f7f9fb;
    color: var(--muted);
    box-shadow: none;
}

.choice-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--line);
    position: relative;
}

.choice-icon:after {
    content: "";
    position: absolute;
    inset: 11px;
    background: var(--primary);
    mask-position: center;
    mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
}

.choice-icon.icon-book:after {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M4 4.5A2.5 2.5 0 0 1 6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M4 4.5A2.5 2.5 0 0 1 6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.choice-icon.icon-calendar:after {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='4' width='18' height='17' rx='2' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M8 2v4M16 2v4M3 10h18' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='4' width='18' height='17' rx='2' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M8 2v4M16 2v4M3 10h18' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.choice-body strong {
    display: block;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.25;
}

.choice-body span {
    display: block;
    margin-top: 5px;
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
}

.choice-card.disabled .choice-body span {
    color: var(--muted);
}

.choice-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.choice-chips em {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.locked-form {
    margin-top: 16px;
}

.registration-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 42;
    width: min(620px, calc(100vw - 36px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    margin: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 24px 70px rgba(17,39,69,.26), 0 0 0 9999px rgba(12,24,38,.28);
    transform: translate(-50%, -50%);
}

.locked-summary,
.confirm-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #d7e7f5;
    border-left: 3px solid var(--primary);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #f8fbff, #fff);
}

.registration-modal .locked-summary {
    margin-top: 0;
}

.booking-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 40;
    width: min(520px, calc(100vw - 36px));
    margin: 0;
    transform: translate(-50%, -50%);
    box-shadow: 0 24px 70px rgba(17,39,69,.26), 0 0 0 9999px rgba(12,24,38,.28);
    background: #fff;
}

.booking-modal > div:first-child {
    min-width: 0;
}

.locked-summary span,
.confirm-panel span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.locked-summary strong,
.confirm-panel strong {
    display: block;
    margin-top: 4px;
    color: var(--ink);
    font-size: 15px;
}

.locked-summary em,
.confirm-panel em {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 750;
}

.hold-timer {
    display: inline-flex;
    margin-top: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--race-yellow-soft);
    color: var(--amber);
    font-size: 12px;
    font-weight: 900;
}

.hold-progress {
    display: block;
    width: 100%;
    height: 5px;
    margin-top: 12px;
    border-radius: 999px;
    background: var(--primary);
    transform-origin: left center;
    animation: hold-countdown 120s linear forwards;
}

.confirm-notice {
    margin-top: 10px;
    padding: 8px 10px;
    border: 1px solid rgba(30, 132, 93, .22);
    border-radius: 8px;
    background: rgba(232, 247, 240, .78);
    color: var(--green);
    font-size: 12px;
    font-weight: 850;
}

.confirm-notice.error {
    border-color: rgba(214, 63, 54, .24);
    background: rgba(255, 241, 240, .84);
    color: var(--race-red);
}

@keyframes hold-countdown {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

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

.schedule-console {
    max-width: none;
}

.schedule-hero-strip {
    min-height: auto;
    padding: 20px 22px;
}

.schedule-hero-strip h1 {
    font-size: 25px;
}

.schedule-hidden-controls {
    display: none;
}

.schedule-step {
    display: grid;
    gap: 9px;
    margin-top: 14px;
}

.schedule-step:first-of-type {
    margin-top: 4px;
}

.schedule-step-head {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.schedule-step-head span {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 11px;
    font-weight: 950;
}

.schedule-step-head strong {
    color: var(--ink);
    font-size: 13px;
    font-weight: 950;
}

.schedule-step-head em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 750;
}

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

.activity-choice,
.date-choice {
    position: relative;
    display: grid;
    gap: 3px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.92);
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(27, 47, 78, .04);
}

.activity-choice {
    min-height: 62px;
    padding: 11px 12px;
    border-left: 3px solid rgba(21, 90, 150, .28);
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.activity-choice:hover {
    border-color: rgba(21, 90, 150, .28);
    box-shadow: 0 16px 36px rgba(27, 47, 78, .08);
    transform: translateY(-1px);
}

.activity-choice.selected {
    border-color: rgba(21, 90, 150, .52);
    border-left-color: var(--primary);
    box-shadow: inset 0 0 0 1px rgba(21, 90, 150, .10), 0 16px 36px rgba(21, 90, 150, .12);
    background: linear-gradient(135deg, #f4f9ff 0%, #fff 62%);
}

.activity-choice.is-unavailable {
    opacity: .72;
    border-left-color: rgba(108, 126, 150, .28);
    background: rgba(248,251,255,.68);
}

.activity-choice strong {
    padding-right: 82px;
    overflow: hidden;
    color: var(--ink);
    font-size: 13px;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-choice .activity-choice-meta,
.date-choice span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.activity-choice-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.activity-choice-meta em {
    color: var(--primary);
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
}

.activity-choice.is-unavailable .activity-choice-meta em {
    color: var(--muted);
}

.activity-availability {
    position: absolute;
    top: 9px;
    right: 9px;
    max-width: 84px;
    padding: 4px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

.activity-availability.available {
    color: var(--green);
    background: rgba(230, 248, 239, .92);
}

.activity-availability.selected {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 8px 18px rgba(21, 90, 150, .20);
}

.activity-availability.unavailable {
    color: var(--muted);
    background: rgba(235, 240, 247, .92);
}

.date-choice-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.date-choice {
    min-width: 92px;
    padding: 9px 11px;
    text-align: center;
}

.date-choice.selected {
    border-color: rgba(242, 178, 37, .50);
    box-shadow: inset 0 -3px 0 var(--race-yellow);
    background: linear-gradient(180deg, #fffdf6, #fff);
}

.date-choice strong {
    color: var(--ink);
    font-size: 17px;
    font-weight: 950;
    line-height: 1;
}

.slot-step {
    margin-top: 12px;
}

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

.schedule-slot-list {
    max-height: 390px;
    overflow: auto;
    padding-right: 4px;
}

.slot-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 64px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--green);
    border-radius: var(--radius);
    background: #fff;
}

.slot-card.is-full {
    border-left-color: var(--race-red);
    background: #fffafa;
}

.slot-card strong {
    display: block;
    color: var(--ink);
    font-size: 13px;
}

.slot-card span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.compact-button {
    min-height: 34px;
    padding: 0 13px;
    font-size: 12px;
}

.disabled-button {
    cursor: default;
    opacity: .75;
}

.booking-list {
    display: grid;
    gap: 10px;
    max-height: 390px;
    overflow: auto;
    padding-right: 4px;
}

.compact-empty {
    margin: 0;
    padding: 10px 11px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    background: rgba(248,251,255,.72);
}

.notification-list {
    gap: 12px;
}

.notification-card {
    display: grid;
    grid-template-columns: 4px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.notification-strip {
    background: var(--primary);
}

.notification-card.high .notification-strip {
    background: var(--race-red);
}

.notification-card.low .notification-strip {
    background: var(--green);
}

.notification-body {
    padding: 14px 16px;
}

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

.notification-head strong {
    color: var(--ink);
    font-size: 15px;
}

.notification-head span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.notification-body p {
    margin: 8px 0 12px;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 650;
}

.admin-hero {
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    overflow: hidden;
    border-left: 4px solid var(--primary);
    background: linear-gradient(135deg, #0b1f3a, #174a7e);
    color: #fff;
}

.admin-hero h1 {
    color: #fff;
}

.admin-hero p {
    margin: 7px 0 12px;
    color: rgba(255,255,255,.78);
    font-size: 12px;
    font-weight: 700;
}

.admin-hero .eyebrow {
    color: rgba(255,255,255,.72);
}

.admin-hero-stats {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.admin-hero-stats div {
    min-width: 92px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: var(--radius);
    background: rgba(255,255,255,.10);
}

.admin-hero-stats strong {
    display: block;
    color: #fff;
    font-size: 18px;
}

.admin-hero-stats span {
    display: block;
    margin-top: 4px;
    color: rgba(255,255,255,.72);
    font-size: 11px;
    font-weight: 800;
}

.admin-action-card {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-left: 4px solid var(--race-red);
    background: linear-gradient(135deg, #fff, #fff8f6);
}

.admin-action-card.disabled {
    border-left-color: #8a94a3;
    background: #f6f8fb;
}

.admin-action-card h2 {
    margin: 4px 0;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.15;
}

.admin-action-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.admin-role-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-role-form {
    margin-top: 16px;
}

.admin-role-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-left: 4px solid #37474f;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.admin-role-card.captain { border-left-color: #b71c1c; }
.admin-role-card.manager { border-left-color: #00695c; }
.admin-role-card.faculty { border-left-color: #0d47a1; }
.admin-role-card.driver { border-left-color: #6a1b9a; }

.admin-role-card strong {
    display: block;
    color: var(--ink);
    font-size: 14px;
}

.admin-role-card span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
}

.admin-role-card em {
    align-self: start;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
}

.admin-role-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 750;
}

.admin-role-card p b {
    color: var(--muted);
    font-weight: 900;
}

.detail-list {
    display: grid;
    gap: 12px;
}

.detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.detail-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.detail-row span {
    color: var(--muted);
    font-weight: 720;
}

.detail-row strong {
    text-align: right;
    font-weight: 850;
}

.inline-action-link {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
}

.inline-action-link:hover {
    background: #dcecff;
}

.update-list {
    display: grid;
    gap: 12px;
}

.update-item {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #fff, #f9fbfe);
}

.update-title {
    margin: 0;
    color: var(--ink);
    font-size: 15px;
    font-weight: 900;
}

.update-date {
    margin: 3px 0 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.update-content {
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.45;
}

.update-content a {
    display: inline-flex;
    margin-top: 8px;
    min-height: 32px;
    align-items: center;
    padding: 0 11px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 850;
}

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

.status-ok {
    color: var(--green);
}

.status-danger {
    color: var(--red);
}

.public-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(390px, 1fr) minmax(408px, 528px);
}

.login-secondary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 14px;
}

.login-secondary-row a {
    color: var(--brand);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.login-secondary-row a:hover {
    text-decoration: underline;
}

.public-flow-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 36px 20px;
    background: radial-gradient(circle at 18% 12%, rgba(226, 59, 48, .08), transparent 28%), radial-gradient(circle at 82% 86%, rgba(251, 183, 34, .14), transparent 32%), var(--bg);
}

.public-flow-card {
    width: min(980px, 100%);
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .88);
    box-shadow: var(--shadow);
}

.flow-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 22px;
}

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

.registration-choice-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 150px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
}

.registration-choice-card:hover {
    border-color: rgba(21, 90, 150, .45);
    box-shadow: 0 18px 34px rgba(31, 62, 98, .12);
    transform: translateY(-1px);
}

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

.timeline-overview-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .55fr);
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--yellow);
    border-radius: 8px;
    background:
        radial-gradient(circle at 92% 105%, rgba(226, 59, 48, .08), transparent 30%),
        linear-gradient(110deg, rgba(255, 255, 255, .96), rgba(255, 247, 218, .64));
    box-shadow: 0 18px 42px rgba(31, 62, 98, .1);
}

.timeline-overview-copy h2 {
    margin: 4px 0 6px;
    color: var(--ink);
    font-size: 22px;
    line-height: 1.12;
    letter-spacing: 0;
}

.timeline-overview-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.timeline-overview-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.timeline-stat-card {
    min-height: 58px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--brand);
    border-radius: 8px;
    background: rgba(255, 255, 255, .82);
}

.timeline-stat-card span {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.timeline-stat-card strong {
    display: block;
    margin-top: 5px;
    color: var(--ink);
    font-size: 18px;
    line-height: 1;
}

.timeline-stat-card.accent-yellow {
    border-top-color: var(--yellow);
}

.timeline-stat-card.accent-green {
    border-top-color: var(--green);
}

.timeline-section-card {
    margin-bottom: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 18px 42px rgba(31, 62, 98, .09);
}

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

.section-heading h2 {
    margin: 4px 0 4px;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.12;
}

.timeline-alert-section {
    border-left: 4px solid var(--red);
    background:
        radial-gradient(circle at 96% 0%, rgba(226, 59, 48, .08), transparent 30%),
        rgba(255, 255, 255, .9);
}

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

.timeline-alert-card {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: flex-start;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.timeline-alert-card.unread {
    border-color: rgba(226, 59, 48, .25);
    background: linear-gradient(90deg, rgba(226, 59, 48, .06), #fff 46%);
}

.timeline-alert-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(226, 59, 48, .1);
    color: var(--red);
    font-weight: 1000;
}

.timeline-alert-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 5px;
}

.timeline-alert-meta span {
    color: #a15d00;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.timeline-alert-card strong {
    display: block;
    color: var(--ink);
    font-size: 14px;
}

.timeline-alert-card p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.timeline-stream {
    position: relative;
    display: grid;
    gap: 7px;
}

.timeline-stream:before {
    content: "";
    position: absolute;
    left: 14px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: linear-gradient(var(--brand), rgba(21, 90, 150, .14));
}

.timeline-stream-item {
    position: relative;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
}

.timeline-node {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    padding-top: 14px;
}

.timeline-node span {
    width: 9px;
    height: 9px;
    border: 3px solid var(--brand);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(21, 90, 150, .08);
}

.timeline-stream-item.success .timeline-node span {
    border-color: var(--green);
}

.timeline-stream-item.warning .timeline-node span {
    border-color: var(--yellow);
}

.timeline-stream-body {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.timeline-stream-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.timeline-stream-head strong {
    color: var(--ink);
    font-size: 14px;
}

.timeline-stream-body p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.timeline-empty-state {
    display: grid;
    place-items: center;
    min-height: 104px;
    padding: 16px;
    border: 1px dashed rgba(112, 132, 158, .38);
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 0%, rgba(21, 90, 150, .05), transparent 34%),
        rgba(248, 251, 255, .78);
    text-align: center;
}

.timeline-empty-state strong {
    color: var(--ink);
    font-size: 14px;
}

.timeline-empty-state p {
    max-width: 420px;
    margin: 6px auto 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.attendance-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.attendance-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--brand);
    font-size: 12px;
    font-weight: 900;
}

.attendance-badge.success {
    background: rgba(23, 132, 96, .11);
    color: var(--green);
}

.attendance-badge.warning {
    background: rgba(251, 183, 34, .16);
    color: #9b6500;
}

.attendance-badge.danger {
    background: rgba(226, 59, 48, .1);
    color: var(--red);
}

.attendance-badge.neutral {
    background: #f4f7fb;
    color: var(--muted);
}

.app-only-attendance {
    display: grid;
    gap: 6px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(251, 183, 34, .35);
    border-left: 4px solid var(--yellow);
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(251, 183, 34, .09), rgba(255, 255, 255, .86));
}

.app-only-attendance strong {
    color: var(--ink);
}

.app-only-attendance span {
    color: var(--muted);
    font-weight: 800;
}

.login-story {
    position: relative;
    padding: 52px 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        radial-gradient(circle at 84% 82%, rgba(49,151,232,.14), transparent 23%),
        radial-gradient(circle at 22% 12%, rgba(255,255,255,.05), transparent 26%),
        linear-gradient(145deg, #07111f 0%, #0b2138 52%, #0e4779 100%);
    color: #fff;
    overflow: hidden;
}

.login-story .brand {
    border-bottom-color: rgba(255,255,255,.13);
    gap: 12px;
}

.login-story .brand-subtitle {
    color: rgba(255,255,255,.66);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
}

.grid-logo-plate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    border: 1px solid rgba(210,222,235,.86);
    border-radius: 10px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 14px 28px rgba(3,12,24,.18);
}

.grid-logo-plate img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.story-logo {
    width: 108px;
    min-height: 37px;
    padding: 5px 10px;
}

.card-logo {
    width: 104px;
    min-height: 34px;
    padding: 5px 10px;
    margin-bottom: 12px;
    background: #fff;
    border-color: var(--line);
    box-shadow: 0 10px 22px rgba(17,39,69,.08);
}

.login-story:after {
    content: "";
    position: absolute;
    right: -72px;
    bottom: -112px;
    width: 318px;
    height: 318px;
    border-radius: 50%;
    border: 44px solid rgba(255,255,255,.055);
}

.login-story:before {
    content: "";
    position: absolute;
    left: 56px;
    bottom: 142px;
    width: 92px;
    height: 2px;
    border-radius: 999px;
    background: transparent;
    opacity: 0;
}

.login-kicker {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: fit-content;
    margin: 30px 0 15px;
    padding: 5px 10px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 999px;
    background: rgba(255,255,255,.065);
    color: rgba(255,255,255,.74);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.login-story h1 {
    position: relative;
    z-index: 1;
    max-width: 590px;
    margin: 0;
    font-size: 31px;
    line-height: 1.18;
}

.login-story p {
    position: relative;
    z-index: 1;
    max-width: 500px;
    margin: 16px 0 0;
    color: rgba(255,255,255,.70);
    font-size: 13px;
    line-height: 1.55;
    font-weight: 700;
}

.login-track {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    align-items: center;
    gap: 22px;
    width: min(820px, 100%);
    height: 153px;
    margin-top: 14px;
    margin-bottom: 10px;
}

.login-circuit {
    filter: none;
}

.circuit-map {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    transform: translateY(-22px) scale(.82) !important;
    transform-origin: center center !important;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,.14));
}

.circuit-base,
.circuit-edge {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: url(#circuitGlow);
}

.circuit-base {
    stroke: rgba(7,18,32,.94);
    stroke-width: 20;
}

.circuit-edge {
    stroke: rgba(246,250,255,.58);
    stroke-width: 28;
    filter: none;
    opacity: .78;
    paint-order: stroke;
}

.circuit-base {
    filter: url(#circuitGlow);
}

.svg-race-car {
    filter: drop-shadow(0 3px 5px rgba(0,0,0,.32));
    will-change: transform;
}

.svg-race-car.is-race-leader {
    filter: drop-shadow(0 4px 7px rgba(0,0,0,.36)) drop-shadow(0 0 8px rgba(251,183,34,.5));
}

.svg-race-car.is-race-restarting {
    opacity: .25;
    transition: opacity .18s ease;
}

.svg-position-label {
    fill: rgba(255,255,255,.78);
    stroke: rgba(7,18,32,.56);
    stroke-width: 1.2px;
    paint-order: stroke;
    font-size: 7px;
    font-weight: 950;
    letter-spacing: 0;
    text-anchor: middle;
}

.svg-race-car.is-race-leader .svg-position-label {
    fill: #f5b72e;
    stroke: rgba(7,18,32,.72);
}

.svg-race-car-body {
    transform: scale(.52);
}

.svg-race-car rect,
.svg-race-car circle {
    vector-effect: non-scaling-stroke;
}

.race-standings {
    align-self: stretch;
    min-width: 0;
    position: relative;
    z-index: 2;
    padding: 8px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.045));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 12px 24px rgba(0,0,0,.12);
    backdrop-filter: blur(10px);
}

.race-standings-title {
    margin-bottom: 6px;
    color: rgba(255,255,255,.68);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.race-standings-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.race-standing-row {
    display: grid;
    grid-template-columns: 9px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 6px;
    min-height: 19px;
    padding: 4px 5px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 6px;
    background: rgba(4,16,30,.24);
    color: rgba(255,255,255,.68);
    transition: background .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.race-standing-row.is-race-leader {
    border-color: rgba(251,183,34,.55);
    background: linear-gradient(90deg, rgba(251,183,34,.18), rgba(255,255,255,.08));
    box-shadow: inset 2px 0 0 rgba(251,183,34,.92), 0 7px 16px rgba(0,0,0,.14);
}

.race-color {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255,255,255,.16);
}

.race-color-red {
    background: #ed1c2e;
}

.race-color-yellow {
    background: #f4b827;
}

.race-color-green {
    background: #21a67a;
}

.race-color-purple {
    background: #8f54ff;
}

.race-color-blue {
    background: #35a8ff;
}

.race-car-label {
    min-width: 0;
    overflow: hidden;
    color: rgba(255,255,255,.72);
    font-size: 9px;
    font-weight: 850;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.race-standing-row strong {
    justify-self: end;
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    min-height: 15px;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    color: rgba(255,255,255,.76);
    font-size: 8px;
    font-weight: 950;
    line-height: 1;
}

.race-standing-row.is-race-leader strong {
    background: #f5b72e;
    color: #071220;
}

@media (prefers-reduced-motion: reduce) {
    .svg-race-car {
        display: none;
    }
}

@media (max-width: 620px) {
    .login-track {
        width: 100%;
        height: auto;
        grid-template-columns: 1fr;
        aspect-ratio: auto;
    }

    .svg-race-car {
        display: none;
    }

    .race-standings {
        display: none;
    }
}

.login-proof {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: min(820px, 100%);
    max-width: 820px;
}

.login-proof div {
    position: relative;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    background: rgba(255,255,255,.055);
    padding: 11px 13px 11px 14px;
    backdrop-filter: blur(3px);
}

.login-proof div:before {
    content: "";
    position: absolute;
    left: 12px;
    top: -1px;
    width: 34px;
    height: 2px;
    border-radius: 999px;
    background: #3197e8;
}

.login-proof div:nth-child(2):before {
    background: rgba(255,255,255,.42);
}

.login-proof div:nth-child(3):before {
    background: #ed1c2e;
}

.login-proof strong {
    display: block;
    font-size: 15px;
    line-height: 1.1;
}

.login-proof span {
    display: block;
    margin-top: 5px;
    color: rgba(255,255,255,.66);
    font-size: 11px;
    font-weight: 750;
}

.login-pane {
    display: grid;
    place-items: center;
    padding: 30px;
    background:
        radial-gradient(circle at 16% 8%, rgba(49,151,232,.055), transparent 24%),
        radial-gradient(circle at 84% 78%, rgba(237,28,46,.035), transparent 26%),
        linear-gradient(180deg, #f9fbfe, #eef4f9);
}

.form-card {
    width: min(392px, 100%);
    background: rgba(255,255,255,.98);
    border: 1px solid #d8e3ef;
    border-radius: 10px;
    box-shadow: 0 22px 54px rgba(10,28,48,.12);
    padding: 22px;
}

.login-logo {
    text-align: center;
    margin-bottom: 17px;
}

.login-logo .card-logo {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 14px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.login-logo .brand-mark {
    margin-bottom: 12px;
}

.login-logo .brand-title {
    font-size: 21px;
    line-height: 1.1;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.login-logo .brand-subtitle {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    background: #edf3f9;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 3px;
    margin: 16px 0;
}

.segmented a {
    text-align: center;
    padding: 9px 10px;
    border-radius: 8px;
    font-weight: 900;
    color: var(--muted);
    font-size: 13px;
}

.segmented .selected {
    background: #0f5591;
    color: #fff;
    box-shadow: 0 8px 18px rgba(15,85,145,.16);
}

.login-pane .field {
    gap: 6px;
    margin-bottom: 12px;
}

.login-pane .field label {
    font-size: 11px;
}

.login-pane .input {
    min-height: 39px;
}

.login-pane .password-eye {
    width: 34px;
    height: 34px;
}

.login-pane .checkbox-row {
    margin: 2px 0 14px;
    font-size: 12px;
}

.login-pane .button.full {
    min-height: 41px;
    border-bottom-color: #3197e8;
}

.login-pane .button.full.is-loading {
    cursor: progress;
    background: #104f88;
    box-shadow: 0 10px 24px rgba(15,85,145,.18);
}

.login-loading {
    display: flex;
    justify-content: center;
    height: 16px;
    margin-top: 9px;
    opacity: 0;
    transform: translateY(-3px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.form-card.is-loading .login-loading {
    opacity: 1;
    transform: translateY(0);
}

.loading-rail {
    position: relative;
    display: block;
    width: 116px;
    height: 2px;
    margin-top: 7px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(237,28,46,.42), rgba(49,151,232,.44));
    box-shadow: 0 1px 8px rgba(15,85,145,.12);
}

.loading-dot {
    position: absolute;
    left: 0;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #3197e8;
    box-shadow: 0 0 0 3px rgba(49,151,232,.12), 0 4px 10px rgba(15,85,145,.22);
    transform: translate(0, -50%);
    animation: loginLoadingDot 1.05s ease-in-out infinite alternate;
}

@keyframes loginLoadingDot {
    from {
        transform: translate(0, -50%);
    }

    to {
        transform: translate(109px, -50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .loading-dot {
        animation: none;
        left: 54px;
    }
}

.field {
    display: grid;
    gap: 7px;
    margin-bottom: 13px;
}

.password-wrap {
    position: relative;
}

.password-wrap .input {
    padding-right: 52px;
}

.password-eye {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.password-eye:hover {
    background: var(--primary-soft);
}

.eye-open,
.eye-closed {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.eye-open {
    width: 21px;
    height: 13px;
    border: 2px solid var(--muted);
    border-radius: 999px / 720px;
}

.eye-open:after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--muted);
    transform: translate(-50%, -50%);
}

.eye-closed {
    display: none;
    width: 24px;
    height: 2px;
    background: var(--muted);
    transform: translate(-50%, -50%) rotate(-38deg);
}

.password-eye.is-visible .eye-closed {
    display: block;
}

.field label {
    color: var(--ink-soft);
    font-weight: 850;
    font-size: 12px;
}

.input {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    min-height: 42px;
    padding: 0 13px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-weight: 650;
}

.input:focus {
    outline: 4px solid rgba(29,111,184,.13);
    border-color: var(--primary-2);
}

.checkbox-row {
    margin: 4px 0 16px;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 700;
}

.checkbox-row input {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.button {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    padding: 0 16px;
    background: var(--primary);
    color: #fff;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(18,79,140,.18);
    transition: background .16s var(--ease), border-color .16s var(--ease), box-shadow .16s var(--ease), color .16s var(--ease), transform .16s var(--ease);
    -webkit-appearance: none;
    appearance: none;
}

.button:hover {
    background: #0d447c;
    transform: translateY(-1px);
}

.button.team-overview-action {
    width: min(100%, 300px);
    min-height: 34px;
    height: 34px;
    max-height: 34px;
    padding: 0 18px;
    gap: 8px;
    border: 1px solid rgba(18,79,140,.22);
    border-radius: 10px;
    background: linear-gradient(180deg, #2477c8 0%, #165897 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.20),
        0 10px 22px rgba(18,79,140,.20);
    font-size: 15px;
    line-height: 1;
    white-space: nowrap;
}

.button.team-overview-action:hover {
    background: linear-gradient(180deg, #2a82d8 0%, #0f4f8c 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.24),
        0 14px 28px rgba(18,79,140,.24);
    transform: translateY(-1px);
}

.button.team-overview-action:before {
    content: "";
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    display: inline-block;
    background: currentColor;
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='black'%3E%3Cpath d='M9 11.5a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm0 2c-4.1 0-7 2.2-7 5.1 0 .8.6 1.4 1.4 1.4h9.4c-.5-.7-.8-1.6-.8-2.5 0-1.4.6-2.7 1.6-3.5A10.3 10.3 0 0 0 9 13.5Z'/%3E%3Cpath d='M18 12a1.2 1.2 0 0 1 1.2 1.2v2.1h2.1a1.2 1.2 0 1 1 0 2.4h-2.1v2.1a1.2 1.2 0 1 1-2.4 0v-2.1h-2.1a1.2 1.2 0 1 1 0-2.4h2.1v-2.1A1.2 1.2 0 0 1 18 12Z'/%3E%3C/g%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='black'%3E%3Cpath d='M9 11.5a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm0 2c-4.1 0-7 2.2-7 5.1 0 .8.6 1.4 1.4 1.4h9.4c-.5-.7-.8-1.6-.8-2.5 0-1.4.6-2.7 1.6-3.5A10.3 10.3 0 0 0 9 13.5Z'/%3E%3Cpath d='M18 12a1.2 1.2 0 0 1 1.2 1.2v2.1h2.1a1.2 1.2 0 1 1 0 2.4h-2.1v2.1a1.2 1.2 0 1 1-2.4 0v-2.1h-2.1a1.2 1.2 0 1 1 0-2.4h2.1v-2.1A1.2 1.2 0 0 1 18 12Z'/%3E%3C/g%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    mask-size: contain;
    -webkit-mask-size: contain;
}

.button.secondary {
    background: #eaf2fb;
    color: var(--primary);
    box-shadow: none;
}

.button:focus-visible,
.shell-icon-button:focus-visible,
.profile-top-button:focus-visible,
.nav a:focus-visible,
.drawer-close:focus-visible,
.input:focus-visible,
.compact-input:focus-visible,
.compact-select:focus-visible {
    outline: 0;
    box-shadow: var(--focus-ring);
}

.button.is-processing {
    cursor: progress;
    color: transparent !important;
    text-shadow: none !important;
    pointer-events: none;
    transform: none;
}

.button.is-processing:after,
.grid-button-spinner {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.55);
    border-top-color: #fff;
    animation: gridButtonSpin .72s linear infinite;
}

.button.secondary.is-processing:after,
.grid-button-spinner.secondary {
    border-color: rgba(18,79,140,.25);
    border-top-color: var(--primary);
}

.grid-button-spinner {
    position: absolute;
    z-index: 15;
    pointer-events: none;
}

@keyframes gridButtonSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .button,
    .button:hover {
        transition: none;
        transform: none;
    }

    .button.is-processing:after,
    .grid-button-spinner {
        animation-duration: 1.4s;
    }
}

.action-row,
.form-actions,
.table-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.button.full {
    width: 100%;
    border-bottom: 3px solid var(--race-yellow);
}

.alert {
    border-radius: var(--radius);
    padding: 12px 14px;
    margin: 12px 0;
    background: #fff4f4;
    border: 1px solid #ffd7d7;
    color: var(--red);
    font-size: 13px;
    font-weight: 750;
}

.readonly-banner {
    background: #fff8e8;
    border-color: #f7d99d;
    color: var(--amber);
}

.table-card {
    padding: 0;
    overflow: hidden;
}

.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 15px 17px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #fff, #f9fbfe);
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 920px;
}

.data-table th:nth-child(1),
.data-table td:nth-child(1) {
    width: 26%;
}

.data-table th:nth-child(2),
.data-table td:nth-child(2) {
    width: 13%;
}

.data-table th:nth-child(3),
.data-table td:nth-child(3) {
    width: 20%;
}

.data-table th:nth-child(4),
.data-table td:nth-child(4) {
    width: 9%;
}

.data-table th:nth-child(5),
.data-table td:nth-child(5) {
    width: 8%;
}

.data-table th:nth-child(6),
.data-table td:nth-child(6) {
    width: 10%;
}

.data-table th:nth-child(7),
.data-table td:nth-child(7) {
    width: 14%;
}

.data-table th,
.data-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.member-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.member-photo,
.member-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    flex: 0 0 46px;
    border: 2px solid #fff;
    box-shadow: 0 8px 18px rgba(17,39,69,.12);
}

.member-photo {
    object-fit: cover;
    background: var(--primary-soft);
}

.member-photo.large,
.member-avatar.large {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
}

.member-avatar {
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #0d447c, #1d6fb8);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.member-name {
    color: var(--ink);
    font-weight: 850;
}

.member-id {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.data-table th {
    background: #fbfdff;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 950;
}

.data-table td {
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.data-table tr:hover td {
    background: #f8fbff;
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.mini-action,
.mini-muted {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 850;
}

.mini-action.danger {
    background: var(--race-red-soft);
    color: var(--red);
}

.mini-action.success-action {
    background: #e9f7f1;
    color: var(--green);
}

.status-chip.warning {
    background: var(--race-yellow-soft);
    color: var(--amber);
}

.mini-muted {
    background: #f4f7fb;
    color: var(--muted);
}

.form-panel {
    max-width: 920px;
}

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

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

.field-help {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.native-photo-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.photo-upload-card {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 116px;
    padding: 14px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--race-red);
    border-radius: var(--radius);
    background: linear-gradient(135deg, #ffffff, #f8fbff 62%, var(--race-yellow-soft));
    box-shadow: var(--shadow-soft);
}

.photo-upload-preview {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    border: 2px solid var(--race-red);
    padding: 3px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(17,39,69,.12);
}

.photo-upload-preview img {
    display: none;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.photo-upload-preview span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.photo-upload-copy strong {
    display: block;
    color: var(--ink);
    font-size: 14px;
}

.photo-upload-copy span {
    display: block;
    max-width: 760px;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
    font-weight: 700;
}

.photo-upload-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.photo-picker {
    cursor: pointer;
}

.button:disabled,
.button[disabled] {
    opacity: .55;
    cursor: not-allowed;
}

body.modal-open {
    overflow: hidden;
}

.photo-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 70;
}

.photo-modal.open {
    display: block;
}

.photo-modal-scrim {
    position: absolute;
    inset: 0;
    background: rgba(12,24,38,.34);
    backdrop-filter: blur(3px);
}

.photo-modal-panel {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(880px, calc(100vw - 34px));
    max-height: calc(100vh - 42px);
    overflow: auto;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 30px 86px rgba(17,39,69,.30);
    transform: translate(-50%, -50%);
}

.photo-modal-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    padding: 4px 4px 14px;
    border-bottom: 1px solid var(--line);
}

.photo-modal-head strong {
    display: block;
    margin-top: 3px;
    color: var(--ink);
    font-size: 19px;
    line-height: 1.15;
}

.photo-modal-head em {
    display: block;
    max-width: 620px;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
    font-style: normal;
    font-weight: 700;
}

.photo-studio {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 280px;
    gap: 16px;
    padding-top: 16px;
}

.photo-crop-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 420px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(45deg, rgba(18,79,140,.05) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(18,79,140,.05) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(18,79,140,.05) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(18,79,140,.05) 75%),
        #f8fbff;
    background-size: 26px 26px;
    background-position: 0 0, 0 13px, 13px -13px, -13px 0;
    overflow: hidden;
}

.photo-crop-stage canvas {
    width: min(360px, 72vw);
    height: min(360px, 72vw);
    border-radius: var(--radius);
    box-shadow: 0 18px 48px rgba(17,39,69,.16);
}

.photo-crop-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(360px, 72vw);
    height: min(360px, 72vw);
    border: 3px solid rgba(207,63,53,.95);
    border-radius: 50%;
    box-shadow: 0 0 0 999px rgba(255,255,255,.28), inset 0 0 0 3px rgba(255,255,255,.92);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.photo-studio-side {
    display: grid;
    align-content: start;
    gap: 12px;
}

.photo-output-card {
    display: grid;
    justify-items: center;
    gap: 7px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #fff, #f8fbff);
}

.photo-output-card img {
    display: none;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--race-red);
    padding: 4px;
    background: #fff;
}

.photo-output-card strong {
    color: var(--ink);
    font-size: 13px;
    text-align: center;
}

.photo-output-card span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.photo-controls.advanced {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.photo-controls.advanced label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.photo-controls.advanced input {
    width: 100%;
    accent-color: var(--primary);
}

.photo-modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.form-actions {
    margin-top: 18px;
}

.credential-card {
    max-width: 720px;
    margin-bottom: 16px;
    border-left: 4px solid var(--green);
}

.credential-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 12px;
    padding: 14px 16px;
    background:
        radial-gradient(circle at 96% 8%, rgba(245,183,46,.12), transparent 28%),
        linear-gradient(135deg, #ffffff, #f8fbff 66%, rgba(255,250,237,.70));
    border-left: 4px solid var(--race-yellow);
}

.credential-title {
    margin-top: 4px;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 900;
}

.credential-count {
    min-width: 116px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 12px;
    background: rgba(255,255,255,.78);
}

.credential-count strong {
    display: block;
    font-size: 21px;
    line-height: 1;
}

.credential-count span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.credential-list {
    display: grid;
    gap: 9px;
}

.credential-item {
    padding: 12px;
}

.credential-member {
    display: grid;
    grid-template-columns: minmax(220px, .72fr) minmax(420px, 1.35fr) auto;
    align-items: center;
    gap: 12px;
}

.credential-status {
    margin-top: 5px;
    min-height: 24px;
    padding: 0 9px;
    font-size: 11px;
}

.credential-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.credential-details div {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(251,253,255,.82);
    padding: 9px 10px;
    min-width: 0;
}

.credential-details span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.credential-details strong {
    display: block;
    margin-top: 4px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.password-token {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.credential-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: wrap;
}

.credential-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.credential-grid div {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
    background: #f9fbfe;
}

.credential-grid span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.credential-grid strong {
    display: block;
    margin-top: 5px;
    font-size: 18px;
}

.edit-member-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

@media (max-width: 1240px) {
    .app-shell {
        padding-left: 248px;
    }

    .sidebar {
        width: 248px;
        padding: 20px 16px;
    }

    .brand-title {
        max-width: 142px;
        font-size: 17px;
    }

    .content {
        padding: 22px 24px 34px;
    }

    .topbar {
        padding-right: 190px;
    }

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

    .team-overview-card,
    .member-synopsis-card {
        width: 100%;
    }

    .member-synopsis-card {
        height: 314px;
    }

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

@media (max-width: 1080px) {
    .grid.cols-4,
    .grid.cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-overview {
        grid-template-columns: 1fr;
    }

    .onsite-module-overview {
        grid-template-columns: 1fr;
    }

    .onsite-receipt,
    .onsite-metric-grid {
        grid-template-columns: 1fr;
    }

    .credential-member {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

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

    .hero-card {
        grid-template-columns: 1fr;
    }

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

    .public-shell {
        grid-template-columns: 1fr;
    }

    .login-story {
        min-height: 360px;
    }

    .desk-layout {
        grid-template-columns: 1fr;
    }

    .desk-inbox-shell {
        grid-template-columns: 1fr;
    }

    .desk-ticket-pane {
        max-height: 360px;
    }
}

@media (max-width: 860px) {
    .app-shell {
        padding-left: 0;
    }

    .sidebar {
        position: sticky;
        left: auto;
        bottom: auto;
        width: auto;
        top: 3px;
        z-index: 18;
        height: auto;
        padding: 14px 16px 12px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 10px 26px rgba(17,39,69,.07);
        display: block;
    }

    .brand {
        padding: 0 0 12px;
        margin-bottom: 10px;
    }

    .side-meta {
        display: none;
    }

    .nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 2px 2px 8px;
        margin: 0 -2px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .nav::-webkit-scrollbar {
        display: none;
    }

    .nav a {
        flex: 0 0 auto;
        min-height: 36px;
        padding: 0 12px;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: rgba(255,255,255,.78);
        font-size: 12px;
        white-space: nowrap;
    }

    .nav a:before {
        display: none;
    }

    .sidebar-logout-pill {
        min-height: 38px;
        margin-top: 8px;
        margin-bottom: 0;
        justify-content: flex-start;
        width: fit-content;
        padding: 0 14px 0 8px;
        font-size: 11px;
    }

    .sidebar-logout-pill .power-icon {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
    }

    .content {
        padding: 72px 16px 22px;
    }

    .workspace-actions {
        position: fixed;
        top: 13px;
        right: 14px;
        z-index: 22;
    }

    .profile-top-button {
        width: 42px;
        min-height: 42px;
        padding: 0;
        justify-content: center;
        font-size: 0;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
        padding-right: 0;
        gap: 12px;
        margin-bottom: 16px;
    }

    .topbar-actions,
    .action-row,
    .form-actions {
        width: 100%;
    }

    .topbar-actions .button,
    .form-actions .button,
    .action-row .button {
        flex: 1 1 150px;
    }

    .onsite-module-card {
        padding: 16px;
    }

    .onsite-form-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .onsite-form-head strong {
        text-align: left;
    }

    .timeline-overview-card,
    .timeline-overview-stats,
    .registration-choice-grid,
    .registration-form-grid,
    .grid.cols-4,
    .grid.cols-3,
    .grid.cols-2,
    .profile-hub-grid,
    .profile-metric-grid,
    .member-card-row.compact,
    .results-hero-card,
    .results-grid,
    .scorecard-grid,
    .result-scorecard,
    .ti-hero-card,
    .driver-log-grid,
    .executive-stat-grid,
    .identity-grid,
    .quick-grid,
    .action-card-grid,
    .desk-layout,
    .desk-inbox-shell,
    .login-proof,
    .form-grid,
    .credential-grid,
    .credential-details,
    .profile-action-grid,
    .admin-role-list {
        grid-template-columns: 1fr;
    }

    .credential-hero,
    .credential-member,
    .profile-hero,
    .profile-hero-head,
    .hero-main,
    .resource-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-scroll-card {
        height: 340px;
    }

    .profile-app-hero {
        min-height: 0;
        padding: 20px;
    }

    .profile-identity-copy h1 {
        font-size: 28px;
    }

    .profile-hero-stat-grid,
    .profile-session-actions {
        grid-template-columns: 1fr;
        margin-top: 22px;
    }

    .profile-action {
        min-height: 74px;
    }

    .filter-bar {
        grid-template-columns: 1fr;
    }

    .desk-collapse-toggle {
        grid-template-columns: minmax(0, 1fr) auto 34px;
        gap: 8px;
    }

    .desk-thread-pane {
        min-height: 0;
        padding: 14px;
    }

    .ticket-card .status-chip,
    .feedback-card .status-chip {
        position: static;
        display: inline-flex;
        margin-top: 10px;
    }

    .ticket-card b,
    .feedback-card b {
        margin-right: 0;
    }

    .feedback-card dl {
        grid-template-columns: 1fr;
    }

    .message-bubble {
        max-width: 100%;
    }

    .result-hero-grid,
    .result-metric-grid,
    .result-metric-grid.compact,
    .gate-facts,
    .scorecard-footer,
    .ti-summary-grid,
    .ti-metrics,
    .score-review-panel,
    .score-help-panel,
    .attempt-list div {
        grid-template-columns: 1fr;
    }

    .scorecard-footer .status-chip,
    .scorecard-footer-action,
    .scorecard-footer .button {
        justify-self: flex-start;
    }

    .resource-card {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .resource-card .button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .choice-card {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .choice-card .button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .locked-summary,
    .confirm-panel,
    .notification-head,
    .photo-modal-head,
    .admin-hero,
    .admin-action-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-hero-stats {
        width: 100%;
        flex-wrap: wrap;
    }

    .photo-upload-card,
    .photo-studio {
        grid-template-columns: 1fr;
    }

    .photo-crop-stage {
        min-height: 330px;
    }

    .photo-modal-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

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

    h1,
    .page-title {
        font-size: 24px;
    }

    .hero-title {
        font-size: 27px;
    }

    .team-overview-card .hero-title {
        display: flex;
        column-gap: 10px;
        row-gap: 6px;
    }

    .team-name-short,
    .team-name-medium {
        font-size: 22px;
        max-height: none;
    }

    .team-name-long,
    .team-name-xlong {
        font-size: 19px;
        max-height: none;
    }

    .login-story {
        padding: 34px 24px;
    }

    .login-story h1 {
        font-size: 30px;
    }

    .login-pane {
        padding: 22px;
    }
}

@media (max-width: 520px) {
    body {
        font-size: 13px;
    }

    input,
    select,
    textarea {
        font-size: 16px !important;
    }

    .content {
        padding-left: 12px;
        padding-right: 12px;
    }

    .page-frame {
        width: 100%;
    }

    .brand {
        padding-right: 128px;
    }

    .brand-title {
        max-width: calc(100vw - 210px);
    }

    h1,
    .page-title {
        font-size: 22px;
        line-height: 1.16;
        overflow-wrap: anywhere;
    }

    .page-subtitle,
    .field-help {
        font-size: 12px;
        line-height: 1.45;
    }

    .card,
    .form-card,
    .public-flow-card {
        padding: 14px;
    }

    .hero-card,
    .team-overview-card,
    .member-synopsis-card,
    .profile-app-hero,
    .results-hero-card,
    .ti-hero-card,
    .resource-hero {
        border-left-width: 3px;
        box-shadow: var(--shadow-quiet);
    }

    .team-overview-card,
    .member-synopsis-card {
        height: auto;
        min-height: 0;
    }

    .member-synopsis-card {
        height: 314px;
    }

    .member-card-row.compact {
        max-height: calc((88px * 3) + (9px * 2));
    }

    .member-card-row.compact .member-preview-card {
        min-height: 88px;
    }

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

    .executive-stat-item {
        padding: 11px;
    }

    .quick-tile {
        min-height: 104px;
        padding: 14px 10px;
    }

    .button {
        min-height: 42px;
        padding-left: 13px;
        padding-right: 13px;
        white-space: normal;
        line-height: 1.15;
    }

    .workspace-actions {
        gap: 7px;
    }

    .shell-icon-button,
    .profile-top-button {
        width: 39px;
        height: 39px;
        min-height: 39px;
    }

    .drawer-panel,
    .notification-panel,
    .member-detail-panel,
    .photo-modal-panel {
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
        left: 10px;
        right: 10px;
    }

    .member-detail-panel {
        top: 10px;
        bottom: 10px;
    }

    .table-wrap,
    .table-shell {
        margin-left: -14px;
        margin-right: -14px;
        padding-left: 14px;
        padding-right: 14px;
        -webkit-overflow-scrolling: touch;
    }

    .data-table {
        min-width: 760px;
    }
}

@media (max-width: 380px) {
    .content {
        padding-left: 10px;
        padding-right: 10px;
    }

    .sidebar {
        padding-left: 12px;
        padding-right: 12px;
    }

    .brand-title {
        max-width: calc(100vw - 196px);
    }

    .executive-stat-grid,
    .quick-grid {
        grid-template-columns: 1fr;
    }
}
/* Dashboard timeline: calendar icon for the Open Timeline button */
.timeline-card > .button.compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.timeline-card > .button.compact:before {
    content: "";
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    background: currentColor;
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='5' width='18' height='16' rx='2' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='5' width='18' height='16' rx='2' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    mask-size: contain;
    -webkit-mask-size: contain;
}

/* Keep deadline calendar icons clearly visible */
.timeline-item span:before {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
    background: #667a94;
}

/* =====================================================================
   PREMIUM DASHBOARD OVERVIEW — TEAM IDENTITY + TEAM MEMBERS
   ===================================================================== */

.dashboard-overview {
    grid-template-columns: minmax(0, 1.18fr) minmax(360px, .82fr);
    gap: 18px;
}

.team-overview-card,
.member-synopsis-card {
    position: relative;
    min-height: 348px;
    height: 348px;
    overflow: hidden;
    border: 1px solid rgba(18, 79, 140, .22);
    border-radius: 18px;
    background: linear-gradient(145deg, #ffffff 0%, #fbfdff 58%, #f7faff 100%);
    box-shadow:
        0 18px 46px rgba(17, 39, 69, .11),
        inset 0 1px 0 rgba(255, 255, 255, .94);
}

.team-overview-card {
    padding: 22px 24px 20px;
    gap: 12px;
}

/* Remove the old circular decoration from the generic hero card. */
.team-overview-card::after {
    display: none;
}

/* Very subtle racing texture without heavy corner graphics. */
.team-overview-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 190px;
    height: 92px;
    pointer-events: none;
    opacity: .16;
    background:
        linear-gradient(45deg, rgba(18,79,140,.22) 25%, transparent 25%) 0 0 / 28px 28px,
        linear-gradient(45deg, transparent 75%, rgba(18,79,140,.22) 75%) 0 0 / 28px 28px,
        linear-gradient(45deg, transparent 75%, rgba(18,79,140,.13) 75%) 14px 14px / 28px 28px,
        linear-gradient(45deg, rgba(18,79,140,.13) 25%, transparent 25%) 14px 14px / 28px 28px;
    mask-image: linear-gradient(135deg, transparent 4%, #000 100%);
    -webkit-mask-image: linear-gradient(135deg, transparent 4%, #000 100%);
}

.team-overview-card .hero-main {
    position: relative;
    z-index: 1;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
}

.team-overview-card .team-logo-ring {
    width: 116px;
    height: 116px;
    flex-basis: 116px;
    padding: 5px;
    border: 3px solid #d9a62b;
    outline: 4px solid rgba(245, 183, 46, .17);
    background: #fff;
    box-shadow:
        0 14px 28px rgba(17, 39, 69, .15),
        inset 0 0 0 2px rgba(255,255,255,.95);
}

.team-overview-card .eyebrow {
    color: #73839a;
    letter-spacing: .12em;
}

.team-overview-card .hero-title {
    margin-top: 8px;
    font-size: 31px;
    line-height: 1.02;
    letter-spacing: -.02em;
}

.team-name-short { font-size: 31px; }
.team-name-medium { font-size: 28px; }
.team-name-long { font-size: 25px; }
.team-name-xlong { font-size: 22px; }

.team-overview-card .page-subtitle {
    margin-top: 9px;
    color: #1668c3;
    font-size: 13px;
    font-weight: 850;
}

.team-overview-meta {
    margin-top: 7px;
    gap: 3px;
    font-size: 12.5px;
    color: #596a82;
}

.team-overview-copy {
    padding: 11px 0 10px;
    border-top: 1px solid rgba(203, 215, 228, .82);
    border-bottom: 1px solid rgba(203, 215, 228, .82);
    color: #53657d;
    font-size: 13px;
    line-height: 1.35;
}

.executive-stat-grid {
    gap: 12px;
}

.executive-stat-item {
    position: relative;
    min-height: 76px;
    padding: 11px 12px 10px 58px;
    border: 1px solid rgba(190, 207, 226, .86);
    border-top-width: 3px;
    border-radius: 13px;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,250,254,.95));
    box-shadow: 0 9px 20px rgba(17, 39, 69, .07);
}

.executive-stat-item::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    transform: translateY(-50%);
    background-color: var(--primary);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    box-shadow: inset 0 0 0 1px rgba(18,79,140,.12);
}

.executive-stat-item.blue::before {
    background-color: #edf4ff;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23124f8c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='7' r='3'/%3E%3Cpath d='M3.5 20v-1.5A5.5 5.5 0 0 1 9 13a5.5 5.5 0 0 1 5.5 5.5V20'/%3E%3Cpath d='M16 5.2a3 3 0 0 1 0 5.6M17 13.4a5.5 5.5 0 0 1 3.5 5.1V20'/%3E%3C/g%3E%3C/svg%3E");
}

.executive-stat-item.amber::before {
    background-color: #fff7e8;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23b97900' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 16l1.6-6h10.8L19 16'/%3E%3Cpath d='M3 16h18v4H3z'/%3E%3Ccircle cx='7' cy='18' r='1' fill='%23b97900'/%3E%3Ccircle cx='17' cy='18' r='1' fill='%23b97900'/%3E%3Cpath d='M7 10l1.3-3h7.4L17 10'/%3E%3C/g%3E%3C/svg%3E");
}

.executive-stat-item.green::before {
    background-color: #eaf8f2;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 4h10M7 8h10M8 4c3 0 5 1.4 5 4s-2 4-5 4H6l8 8' fill='none' stroke='%2313795b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.executive-stat-item .identity-label {
    color: #68788f;
    font-size: 11px;
    letter-spacing: .07em;
}

.executive-stat-item .identity-value {
    margin-top: 3px;
    font-size: 21px;
    line-height: 1;
}

.executive-stat-item.green .identity-value {
    color: var(--green);
}

.button.team-overview-action {
    width: min(100%, 360px);
    min-height: 42px;
    height: 42px;
    max-height: 42px;
    border-radius: 13px;
    background: linear-gradient(180deg, #2575d0 0%, #0f4f9d 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.24),
        0 12px 26px rgba(18,79,140,.24);
    font-size: 15px;
}

/* --------------------------- TEAM MEMBERS --------------------------- */
.member-synopsis-card {
    padding: 0 16px 14px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #f9fbff 0%, #ffffff 100%);
}

.member-synopsis-card .panel-title {
    position: relative;
    z-index: 2;
    min-height: 40px;
    margin: 0 -16px 14px;
    padding: 0 22px;
    border-radius: 17px 17px 14px 14px;
    background:
        linear-gradient(115deg, #082b63 0%, #0d458f 55%, #082f70 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(8, 47, 112, .20);
}

.member-synopsis-card .panel-title::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: .10;
    background:
        linear-gradient(45deg, rgba(255,255,255,.50) 25%, transparent 25%) 0 0 / 26px 26px,
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,.50) 75%) 0 0 / 26px 26px;
    mask-image: linear-gradient(90deg, transparent 38%, #000 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 38%, #000 100%);
}

.member-synopsis-card .panel-title .eyebrow {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 13px;
    letter-spacing: .10em;
}

.member-synopsis-card .panel-title .field-help {
    position: absolute;
    right: 22px;
    top: 50%;
    z-index: 1;
    margin: 0;
    transform: translateY(-50%);
    color: rgba(255,255,255,.92);
    font-size: 12px;
    font-weight: 850;
}

/* Move the existing View All link into a premium footer action. */
.member-synopsis-card .panel-title .chip-link {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: -292px;
    z-index: 4;
    min-height: 36px;
    justify-content: center;
    border: 1px solid rgba(18,79,140,.20);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff, #f7faff);
    color: var(--primary);
    box-shadow: 0 7px 18px rgba(17,39,69,.06);
    font-size: 12px;
}

.member-synopsis-card .panel-title .chip-link::before {
    content: "";
    width: 16px;
    height: 16px;
    margin-right: 7px;
    background: currentColor;
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='black'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Cpath d='M3 20v-1c0-3.3 2.7-6 6-6s6 2.7 6 6v1H3Z'/%3E%3Ccircle cx='17' cy='9' r='2.5'/%3E%3Cpath d='M15.8 14.3A5.6 5.6 0 0 1 21 20h-4.2c.1-.5.2-1 .2-1.5 0-1.6-.4-3-1.2-4.2Z'/%3E%3C/g%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='black'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Cpath d='M3 20v-1c0-3.3 2.7-6 6-6s6 2.7 6 6v1H3Z'/%3E%3Ccircle cx='17' cy='9' r='2.5'/%3E%3Cpath d='M15.8 14.3A5.6 5.6 0 0 1 21 20h-4.2c.1-.5.2-1 .2-1.5 0-1.6-.4-3-1.2-4.2Z'/%3E%3C/g%3E%3C/svg%3E");
    mask-position: center;
    -webkit-mask-position: center;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-size: contain;
    -webkit-mask-size: contain;
}

.member-card-row.compact {
    gap: 10px;
    max-height: 222px;
    padding: 0 4px 50px 0;
}

.member-card-row.compact .member-preview-card {
    position: relative;
    grid-template-columns: 54px minmax(0, 1fr) 20px;
    min-height: 66px;
    padding: 8px 13px;
    border: 1px solid rgba(190,207,226,.78);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 9px 22px rgba(17,39,69,.075);
}

.member-card-row.compact .member-preview-card::after {
    content: "";
    grid-column: 3;
    grid-row: 1 / span 2;
    width: 9px;
    height: 9px;
    align-self: center;
    justify-self: end;
    border-top: 2px solid #64758d;
    border-right: 2px solid #64758d;
    transform: rotate(45deg);
}

.member-card-row.compact .member-preview-photo,
.member-card-row.compact .member-preview-avatar {
    width: 46px;
    height: 46px;
    border-color: #d6a128;
    box-shadow: 0 0 0 3px rgba(245,183,46,.12);
}

.member-card-row.compact .member-preview-card strong {
    font-size: 13.5px;
    color: #15243a;
}

.member-card-row.compact .member-preview-card span {
    font-size: 11.5px;
    color: #60718a;
}

.member-click-card:hover {
    border-color: rgba(18,79,140,.38);
    box-shadow: 0 13px 28px rgba(18,79,140,.12);
    transform: translateY(-1px);
}

@media (max-width: 980px) {
    .dashboard-overview {
        grid-template-columns: 1fr;
    }

    .team-overview-card,
    .member-synopsis-card {
        height: auto;
        min-height: 348px;
    }

    .member-synopsis-card .panel-title .chip-link {
        bottom: -262px;
    }
}

@media (max-width: 620px) {
    .team-overview-card {
        padding: 18px 16px;
    }

    .team-overview-card .hero-main {
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 13px;
    }

    .team-overview-card .team-logo-ring {
        width: 78px;
        height: 78px;
        flex-basis: 78px;
    }

    .team-overview-card .hero-title,
    .team-name-short {
        font-size: 23px;
    }

    .executive-stat-grid {
        grid-template-columns: 1fr;
    }

    .executive-stat-item {
        min-height: 64px;
    }

    .member-synopsis-card {
        min-height: 356px;
    }
}


/* =====================================================================
   COMPACT TEAM IDENTITY CONTROLS
   Frees vertical space for long team names without increasing card height.
   ===================================================================== */

.team-overview-card {
    /* Keep the existing fixed card height. */
    height: 348px;
    min-height: 348px;
    padding: 18px 24px 16px;
    gap: 8px;
}

.team-overview-card .hero-main {
    /* Give the identity block priority when the team name wraps. */
    align-items: start;
    gap: 20px;
}

.team-overview-copy {
    padding: 7px 0;
    font-size: 12.5px;
    line-height: 1.25;
}

.executive-stat-grid {
    gap: 10px;
}

.executive-stat-item {
    min-height: 58px;
    height: 58px;
    padding: 7px 10px 7px 47px;
    border-radius: 11px;
}

.executive-stat-item::before {
    left: 10px;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background-size: 17px 17px;
}

.executive-stat-item .identity-label {
    font-size: 9.5px;
    line-height: 1;
    letter-spacing: .065em;
}

.executive-stat-item .identity-value {
    margin-top: 4px;
    font-size: 18px;
    line-height: 1;
}

.button.team-overview-action {
    width: min(100%, 330px);
    min-height: 36px;
    height: 36px;
    max-height: 36px;
    padding: 0 16px;
    border-radius: 11px;
    font-size: 13.5px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.22),
        0 9px 20px rgba(18,79,140,.20);
}

.button.team-overview-action::before {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
}
