/* ═══════════════════════════════════════════════════════════════
   NEXUS MEET — SaaS Shared Design System
   Font: JetBrains Mono EVERYWHERE — 100% consistent
   Responsive: 1400 → 1200 → 991 → 767 → 540 → 480 → 360px
═══════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');

:root {
    --f: 'JetBrains Mono', monospace;
    --bg: #060810;
    --bg1: #0b0e17;
    --bg2: #0f1420;
    --bg3: #141a28;
    --bg4: #192030;
    --bg5: #1f2838;
    --bg6: #263042;
    --b0: rgba(255, 255, 255, 0.05);
    --b1: rgba(255, 255, 255, 0.09);
    --b2: rgba(255, 255, 255, 0.14);
    --ba: rgba(99, 202, 255, 0.3);
    --cy: #63caff;
    --cy1: rgba(99, 202, 255, 0.14);
    --cy2: rgba(99, 202, 255, 0.07);
    --vi: #a78bfa;
    --vi1: rgba(167, 139, 250, 0.14);
    --vi2: rgba(167, 139, 250, 0.07);
    --gn: #34d399;
    --gn1: rgba(52, 211, 153, 0.14);
    --gn2: rgba(52, 211, 153, 0.07);
    --ro: #fb7185;
    --ro1: rgba(251, 113, 133, 0.14);
    --ro2: rgba(251, 113, 133, 0.07);
    --am: #fbbf24;
    --am1: rgba(251, 191, 36, 0.14);
    --am2: rgba(251, 191, 36, 0.07);
    --t1: #eef2ff;
    --t2: #8892aa;
    --t3: #48546a;
    --t4: #2a3244;
    --rs: 5px;
    --r: 10px;
    --rl: 16px;
    --rx: 22px;
    --ez: cubic-bezier(0.4, 0, 0.2, 1);
    --ezs: cubic-bezier(0.34, 1.56, 0.64, 1);
    --sh: 0 8px 28px rgba(0, 0, 0, 0.55);
    --shg: 0 20px 60px rgba(0, 0, 0, 0.72);
    --shc: 0 0 22px rgba(99, 202, 255, 0.18);
    --nav-h: 58px;
    --sb-w: 244px;
    --pg: #63caff;
    --pg1: rgba(99, 202, 255, 0.16);
    --pg2: rgba(99, 202, 255, 0.07);
    --sb-bg: #0f2e1d;
    --hd-bg: #0b2417;
}

body.pg-dashboard {
    --pg: #63caff;
    --pg1: rgba(99, 202, 255, 0.16);
    --pg2: rgba(99, 202, 255, 0.07);
}

body.pg-schedule {
    --pg: #34d399;
    --pg1: rgba(52, 211, 153, 0.16);
    --pg2: rgba(52, 211, 153, 0.07);
}

body.pg-recordings {
    --pg: #a78bfa;
    --pg1: rgba(167, 139, 250, 0.16);
    --pg2: rgba(167, 139, 250, 0.07);
}

body.pg-team {
    --pg: #60a5fa;
    --pg1: rgba(96, 165, 250, 0.16);
    --pg2: rgba(96, 165, 250, 0.07);
}

body.pg-analytics {
    --pg: #c084fc;
    --pg1: rgba(192, 132, 252, 0.16);
    --pg2: rgba(192, 132, 252, 0.07);
}

body.pg-reports {
    --pg: #fbbf24;
    --pg1: rgba(251, 191, 36, 0.16);
    --pg2: rgba(251, 191, 36, 0.07);
}

body.pg-billing {
    --pg: #2dd4bf;
    --pg1: rgba(45, 212, 191, 0.16);
    --pg2: rgba(45, 212, 191, 0.07);
}

body.pg-settings {
    --pg: #a3e635;
    --pg1: rgba(163, 230, 53, 0.16);
    --pg2: rgba(163, 230, 53, 0.07);
}

body.pg-admin {
    --pg: #fb7185;
    --pg1: rgba(251, 113, 133, 0.16);
    --pg2: rgba(251, 113, 133, 0.07);
}

body.pg-integrations {
    --pg: #f472b6;
    --pg1: rgba(244, 114, 182, 0.16);
    --pg2: rgba(244, 114, 182, 0.07);
}

body.pg-support {
    --pg: #fb923c;
    --pg1: rgba(251, 146, 60, 0.16);
    --pg2: rgba(251, 146, 60, 0.07);
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--f);
    background: var(--bg);
    color: var(--t1);
    font-size: 13px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

button,
input,
select,
textarea,
label {
    font-family: var(--f);
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

::-webkit-scrollbar {
    width: 3px;
    height: 3px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--bg5);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--b2);
}

.ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient::before {
    content: '';
    position: absolute;
    width: 680px;
    height: 680px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(99, 202, 255, 0.04) 0%,
        transparent 70%
    );
    top: -200px;
    right: -150px;
    animation: aD1 22s ease-in-out infinite alternate;
}

.ambient::after {
    content: '';
    position: absolute;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(167, 139, 250, 0.04) 0%,
        transparent 70%
    );
    bottom: -140px;
    left: -80px;
    animation: aD2 27s ease-in-out infinite alternate;
}

.ambient-mid {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(52, 211, 153, 0.025) 0%,
        transparent 70%
    );
    top: 42%;
    left: 36%;
    animation: aD1 19s ease-in-out infinite alternate-reverse;
}

@keyframes aD1 {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(55px, 38px) scale(1.14);
    }
}

@keyframes aD2 {
    from {
        transform: translate(0, 0) scale(1.1);
    }

    to {
        transform: translate(-44px, -28px) scale(1);
    }
}

.app-shell {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.app-main {
    flex: 1;
    margin-left: var(--sb-w);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
}

.page-content {
    flex: 1;
    padding: 26px;
}

.sidebar {
    width: var(--sb-w);
    background: var(--sb-bg);
    border-right: 1px solid rgba(52, 211, 153, 0.22);
    box-shadow: 1px 0 24px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 200;
    transition: transform 0.3s var(--ez);
    overflow: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--pg), transparent 70%);
    opacity: 0.55;
    z-index: 1;
}

.sb-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 16px 14px;
    border-bottom: 1px solid var(--pg1);
    flex-shrink: 0;
    background: linear-gradient(90deg, var(--pg2), transparent 70%);
}

.sb-logo-mark {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--pg), var(--vi));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f);
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 0 16px var(--pg1);
}

.sb-logo-name {
    font-family: var(--f);
    font-size: 17px;
    color: var(--t1);
    white-space: nowrap;
    letter-spacing: -0.3px;
}

.sb-logo-name span {
    color: #fff;
}

.sb-nav {
    flex: 1;
    overflow-y: auto;
    padding: 10px 8px;
    scrollbar-width: none;
}

.sb-nav::-webkit-scrollbar {
    display: none;
}

.sb-sec {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--f);
    font-size: 9px;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 14px 10px 6px;
}

.sb-sec::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.25);
}

.sb-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--rs);
    font-family: var(--f);
    font-size: 12px;
    color: #fff;
    cursor: pointer;
    transition: all 0.16s;
    position: relative;
    border: 1px solid transparent;
    text-decoration: none;
    margin-bottom: 1px;
}

.sb-item:hover {
    color: #fff;
    background: rgba(0, 0, 0, 0.35);
}

.sb-item.active {
    color: #fff;
    background: #000;
    border-color: #000;
}

.sb-item.active::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 56%;
    background: #fff;
    border-radius: 0 2px 2px 0;
}

.sb-item i {
    font-size: 14px;
    width: 17px;
    flex-shrink: 0;
    text-align: center;
}

.sb-badge {
    margin-left: auto;
    min-width: 17px;
    height: 17px;
    border-radius: 9px;
    font-family: var(--f);
    font-size: 8.5px;
    font-weight: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    flex-shrink: 0;
}

.sb-badge.red {
    background: var(--ro);
    color: #fff;
}

.sb-badge.cy {
    background: var(--cy);
    color: var(--bg);
}

.sb-badge.gn {
    background: var(--gn);
    color: var(--bg);
}

.sb-footer {
    border-top: 1px solid var(--b0);
    padding: 10px 8px;
    flex-shrink: 0;
}

.sb-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--rs);
    cursor: pointer;
    transition: background 0.14s;
}

.sb-user:hover {
    background: var(--bg3);
}

.sb-user-info {
    flex: 1;
    min-width: 0;
}

.sb-user-name {
    font-family: var(--f);
    font-size: 12.5px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sb-user-role {
    font-family: var(--f);
    font-size: 10px;
    color: #fff;
}

.sb-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 199;
    display: none;
}

.sb-overlay.show {
    display: block;
}

.app-topnav {
    height: var(--nav-h);
    background: var(--hd-bg);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-bottom: 1px solid rgba(52, 211, 153, 0.22);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
}

.app-topnav::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, var(--pg), transparent 55%);
    opacity: 0.45;
}

.topnav-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--f);
    font-size: 17px;
    color: var(--t1);
    letter-spacing: -0.3px;
}

.topnav-title::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--pg);
    box-shadow: 0 0 10px var(--pg);
    flex-shrink: 0;
}

.topnav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 7px;
}

.tn-btn {
    width: 34px;
    height: 34px;
    border: 1px solid var(--b1);
    background: var(--bg3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--t2);
    cursor: pointer;
    transition: all 0.14s;
    position: relative;
    flex-shrink: 0;
}

.tn-btn:hover {
    border-color: var(--pg);
    color: var(--pg);
    background: var(--pg2);
}

.tn-btn .nd {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ro);
    border: 1.5px solid var(--bg);
}

.menu-btn {
    display: none;
    width: 34px;
    height: 34px;
    border: 1px solid var(--b1);
    background: var(--bg3);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--t2);
    cursor: pointer;
    flex-shrink: 0;
}

.sb-user-av {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pg), var(--vi));
    border: 2px solid var(--pg1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f);
    font-size: 11px;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.14s;
}

.sb-user-av:hover {
    border-color: var(--pg);
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.page-title {
    font-family: var(--f);
    font-size: 24px;
    color: var(--t1);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.page-sub {
    font-family: var(--f);
    font-size: 11.5px;
    color: var(--t3);
    margin-top: 4px;
    letter-spacing: 0.1px;
}

.page-acts {
    display: flex;
    gap: 7px;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--rs);
    font-family: var(--f);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.18s var(--ez);
    border: 1px solid transparent;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
}

.btn-cy {
    background: linear-gradient(135deg, var(--cy), #3b9edd);
    color: var(--bg);
    box-shadow: 0 2px 12px rgba(99, 202, 255, 0.26);
}

.btn-cy:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(99, 202, 255, 0.38);
}

.btn-out {
    background: transparent;
    color: var(--t1);
    border-color: var(--b2);
}

.btn-out:hover {
    border-color: var(--ba);
    background: var(--cy2);
    color: var(--cy);
}

.btn-gh {
    background: transparent;
    color: var(--t2);
}

.btn-gh:hover {
    color: var(--t1);
    background: var(--bg3);
}

.btn-dk {
    background: var(--bg4);
    color: var(--t2);
    border-color: var(--b1);
}

.btn-dk:hover {
    color: var(--t1);
    border-color: var(--b2);
}

.btn-ro {
    background: var(--ro1);
    color: var(--ro);
    border-color: rgba(251, 113, 133, 0.22);
}

.btn-ro:hover {
    background: rgba(251, 113, 133, 0.22);
}

.btn-gn {
    background: var(--gn1);
    color: var(--gn);
    border-color: rgba(52, 211, 153, 0.22);
}

.btn-gn:hover {
    background: rgba(52, 211, 153, 0.22);
}

.btn-vi {
    background: var(--vi1);
    color: var(--vi);
    border-color: rgba(167, 139, 250, 0.22);
}

.btn-vi:hover {
    background: rgba(167, 139, 250, 0.22);
}

.btn-am {
    background: var(--am1);
    color: var(--am);
    border-color: rgba(251, 191, 36, 0.22);
}

.btn-am:hover {
    background: rgba(251, 191, 36, 0.22);
}

.btn-sm {
    padding: 6px 13px;
    font-size: 11px;
}

.btn-xs {
    padding: 4px 9px;
    font-size: 10.5px;
}

.btn-lg {
    padding: 12px 26px;
    font-size: 13.5px;
}

.btn-ico {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: var(--rs);
}

.btn-ico-sm {
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: var(--rs);
}

.w-100 {
    width: 100%;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-family: var(--f);
    font-size: 9.5px;
    color: var(--t3);
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    background: var(--bg3);
    border: 1px solid var(--b0);
    border-radius: var(--rs);
    color: var(--t1);
    font-family: var(--f);
    font-size: 12.5px;
    padding: 9px 13px;
    outline: none;
    transition: all 0.18s;
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus {
    border-color: var(--ba);
    box-shadow: 0 0 0 3px rgba(99, 202, 255, 0.07);
}

.form-input::placeholder {
    color: var(--t3);
}

.form-input:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

select.form-input {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2348546a'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 30px;
}

textarea.form-input {
    resize: vertical;
    min-height: 82px;
}

.form-hint {
    font-family: var(--f);
    font-size: 10.5px;
    color: var(--t3);
    margin-top: 4px;
}

.form-err {
    font-family: var(--f);
    font-size: 10.5px;
    color: var(--ro);
    margin-top: 4px;
}

.inp-wrap {
    position: relative;
}

.inp-wrap .inp-ico {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--t3);
    font-size: 13px;
    pointer-events: none;
}

.inp-wrap .form-input {
    padding-left: 36px;
}

.toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.tog {
    width: 38px;
    height: 20px;
    background: var(--bg5);
    border: 1px solid var(--b1);
    border-radius: 10px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.22s;
    cursor: pointer;
}

.tog::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--t3);
    transition: all 0.22s var(--ezs);
}

.tog.on {
    background: var(--cy);
    border-color: rgba(99, 202, 255, 0.4);
}

.tog.on::after {
    left: calc(100% - 16px);
    background: var(--bg);
}

.toggle-label {
    font-family: var(--f);
    font-size: 12.5px;
    color: var(--t2);
    flex: 1;
}

.card {
    background: var(--bg2);
    border: 1px solid var(--b0);
    border-radius: var(--rl);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.card-sm {
    padding: 14px;
    border-radius: var(--r);
}

.card-hov {
    transition:
        border-color 0.18s,
        transform 0.18s,
        box-shadow 0.18s;
    cursor: pointer;
}

.card-hov:hover {
    border-color: var(--b1);
    transform: translateY(-2px);
    box-shadow: var(--sh);
}

.card-glow {
    border-color: rgba(99, 202, 255, 0.14);
    box-shadow: 0 0 38px rgba(99, 202, 255, 0.05);
}

.bdg {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 50px;
    font-family: var(--f);
    font-size: 10.5px;
    white-space: nowrap;
    border: 1px solid transparent;
}

.bdg::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}

.bdg-gn {
    background: var(--gn1);
    color: var(--gn);
    border-color: rgba(52, 211, 153, 0.2);
}

.bdg-gn::before {
    background: var(--gn);
}

.bdg-cy {
    background: var(--cy1);
    color: var(--cy);
    border-color: rgba(99, 202, 255, 0.2);
}

.bdg-cy::before {
    background: var(--cy);
}

.bdg-vi {
    background: var(--vi1);
    color: var(--vi);
    border-color: rgba(167, 139, 250, 0.2);
}

.bdg-vi::before {
    background: var(--vi);
}

.bdg-ro {
    background: var(--ro1);
    color: var(--ro);
    border-color: rgba(251, 113, 133, 0.2);
}

.bdg-ro::before {
    background: var(--ro);
}

.bdg-am {
    background: var(--am1);
    color: var(--am);
    border-color: rgba(251, 191, 36, 0.2);
}

.bdg-am::before {
    background: var(--am);
}

.bdg-gr {
    background: var(--bg4);
    color: var(--t3);
    border-color: var(--b0);
}

.bdg-gr::before {
    background: var(--t3);
}

.bdg-sm {
    padding: 2px 7px;
    font-size: 9.5px;
}

.av {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f);
    flex-shrink: 0;
}

.av-xs {
    width: 24px;
    height: 24px;
    font-size: 9px;
}

.av-sm {
    width: 32px;
    height: 32px;
    font-size: 11px;
}

.av-md {
    width: 40px;
    height: 40px;
    font-size: 14px;
}

.av-lg {
    width: 52px;
    height: 52px;
    font-size: 18px;
}

.av-xl {
    width: 72px;
    height: 72px;
    font-size: 24px;
}

.av-cy {
    background: linear-gradient(135deg, #0284c7, var(--cy));
    color: var(--bg);
}

.av-vi {
    background: linear-gradient(135deg, #7c3aed, var(--vi));
    color: #fff;
}

.av-gn {
    background: linear-gradient(135deg, #059669, var(--gn));
    color: var(--bg);
}

.av-ro {
    background: linear-gradient(135deg, #dc2626, var(--ro));
    color: #fff;
}

.av-am {
    background: linear-gradient(135deg, #d97706, var(--am));
    color: var(--bg);
}

.av-bl {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: #fff;
}

.av-te {
    background: linear-gradient(135deg, #0891b2, #22d3ee);
    color: var(--bg);
}

.av-stack {
    display: flex;
}

.av-stack .av {
    border: 2px solid var(--bg2);
    margin-left: -8px;
}

.av-stack .av:first-child {
    margin-left: 0;
}

.stat-card {
    background: var(--bg2);
    border: 1px solid var(--b0);
    border-radius: var(--rl);
    padding: 18px;
    position: relative;
    overflow: hidden;
    transition:
        border-color 0.18s,
        transform 0.18s;
}

.stat-card:hover {
    border-color: var(--b1);
    transform: translateY(-2px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 14px;
    right: 14px;
    height: 1px;
}

.sc-cy::before {
    background: linear-gradient(90deg, transparent, var(--cy), transparent);
}

.sc-vi::before {
    background: linear-gradient(90deg, transparent, var(--vi), transparent);
}

.sc-gn::before {
    background: linear-gradient(90deg, transparent, var(--gn), transparent);
}

.sc-ro::before {
    background: linear-gradient(90deg, transparent, var(--ro), transparent);
}

.sc-am::before {
    background: linear-gradient(90deg, transparent, var(--am), transparent);
}

.stat-ico {
    width: 36px;
    height: 36px;
    border-radius: var(--rs);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    margin-bottom: 13px;
}

.si-cy {
    background: var(--cy1);
    color: var(--cy);
}

.si-vi {
    background: var(--vi1);
    color: var(--vi);
}

.si-gn {
    background: var(--gn1);
    color: var(--gn);
}

.si-ro {
    background: var(--ro1);
    color: var(--ro);
}

.si-am {
    background: var(--am1);
    color: var(--am);
}

.stat-val {
    font-family: var(--f);
    font-size: 26px;
    color: var(--t1);
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.stat-lbl {
    font-family: var(--f);
    font-size: 11px;
    color: var(--t3);
    letter-spacing: 0.2px;
}

.stat-delta {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-family: var(--f);
    font-size: 10.5px;
    margin-top: 8px;
    padding: 2px 7px;
    border-radius: 50px;
}

.delta-up {
    background: var(--gn1);
    color: var(--gn);
}

.delta-dn {
    background: var(--ro1);
    color: var(--ro);
}

.delta-nu {
    background: var(--bg4);
    color: var(--t3);
}

.progress {
    height: 5px;
    background: var(--bg4);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s var(--ez);
}

.pb-cy {
    background: linear-gradient(90deg, var(--cy), #3b9edd);
}

.pb-vi {
    background: linear-gradient(90deg, var(--vi), #7c3aed);
}

.pb-gn {
    background: linear-gradient(90deg, var(--gn), #059669);
}

.pb-ro {
    background: linear-gradient(90deg, var(--ro), #dc2626);
}

.pb-am {
    background: linear-gradient(90deg, var(--am), #d97706);
}

.tbl-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--r);
    border: 1px solid var(--b0);
}

.tbl {
    width: 100%;
    border-collapse: collapse;
    min-width: 480px;
}

.tbl thead th {
    background: var(--bg3);
    font-family: var(--f);
    font-size: 9.5px;
    color: var(--t3);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 11px 14px;
    text-align: left;
    border-bottom: 1px solid var(--b0);
    white-space: nowrap;
}

.tbl tbody tr {
    border-bottom: 1px solid var(--b0);
    transition: background 0.13s;
}

.tbl tbody tr:last-child {
    border-bottom: none;
}

.tbl tbody tr:hover {
    background: var(--bg3);
}

.tbl tbody td {
    padding: 12px 14px;
    font-family: var(--f);
    font-size: 12.5px;
    color: var(--t2);
    vertical-align: middle;
}

.tbl tbody td:first-child {
    color: var(--t1);
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    padding: 14px;
    overflow-y: auto;
}

.modal-overlay.open {
    display: flex;
}

.modal-box {
    background: var(--bg2);
    border: 1px solid var(--b2);
    border-radius: var(--rx);
    width: 100%;
    max-width: 520px;
    box-shadow: var(--shg);
    animation: mdIn 0.24s var(--ezs);
    margin: auto;
}

.modal-box.lg {
    max-width: 720px;
}

@keyframes mdIn {
    from {
        opacity: 0;
        transform: scale(0.93) translateY(12px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.md-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 16px;
    border-bottom: 1px solid var(--b0);
}

.md-title {
    font-family: var(--f);
    font-size: 17px;
    color: var(--t1);
    letter-spacing: -0.3px;
}

.md-close {
    width: 27px;
    height: 27px;
    border-radius: var(--rs);
    background: var(--bg3);
    border: 1px solid var(--b0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--t3);
    cursor: pointer;
    transition: all 0.13s;
}

.md-close:hover {
    background: var(--ro1);
    color: var(--ro);
}

.md-body {
    padding: 22px;
    max-height: 74vh;
    overflow-y: auto;
    font-family: var(--f);
}

.md-ft {
    padding: 13px 22px;
    border-top: 1px solid var(--b0);
    display: flex;
    justify-content: flex-end;
    gap: 7px;
    background: var(--bg1);
    border-radius: 0 0 var(--rx) var(--rx);
    flex-wrap: wrap;
}

.tab-bar {
    display: flex;
    border-bottom: 1px solid var(--b0);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-shrink: 0;
}

.tab-bar::-webkit-scrollbar {
    display: none;
}

.tab-item {
    padding: 11px 16px;
    font-family: var(--f);
    font-size: 11.5px;
    color: var(--t3);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.16s;
    white-space: nowrap;
    flex-shrink: 0;
}

.tab-item:hover {
    color: var(--t2);
    background: rgba(255, 255, 255, 0.02);
}

.tab-item.active {
    color: var(--cy);
    border-bottom-color: var(--cy);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.seg-tabs {
    display: flex;
    background: var(--bg2);
    border: 1px solid var(--b0);
    border-radius: var(--rs);
    padding: 3px;
    gap: 2px;
    flex-wrap: wrap;
}

.seg-tab {
    flex: 1;
    text-align: center;
    padding: 5px 11px;
    font-family: var(--f);
    font-size: 11px;
    color: var(--t3);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.13s;
    white-space: nowrap;
}

.seg-tab.active {
    background: var(--bg4);
    color: var(--t1);
    border: 1px solid var(--b1);
}

.toast-stack {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 7px;
    max-width: 320px;
    pointer-events: none;
}

.toast-stack .toast {
    background: var(--bg3);
    border: 1px solid var(--b2);
    border-radius: var(--r);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shg);
    animation: tIn 0.28s var(--ezs);
    pointer-events: all;
    border-left: 3px solid transparent;
}

.toast.success {
    border-left-color: var(--gn);
}

.toast.error {
    border-left-color: var(--ro);
}

.toast.info {
    border-left-color: var(--cy);
}

.toast.warn {
    border-left-color: var(--am);
}

.toast-ico {
    font-size: 15px;
    flex-shrink: 0;
}

.toast-msg {
    font-family: var(--f);
    font-size: 12px;
    color: var(--t1);
    flex: 1;
    line-height: 1.45;
}

.toast-x {
    font-size: 12px;
    color: var(--t3);
    cursor: pointer;
    transition: color 0.13s;
    background: none;
    border: none;
    font-family: var(--f);
    flex-shrink: 0;
}

.toast-x:hover {
    color: var(--t1);
}

@keyframes tIn {
    from {
        opacity: 0;
        transform: translateX(14px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.dropdown {
    position: relative;
}

.drop-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: var(--bg3);
    border: 1px solid var(--b2);
    border-radius: var(--r);
    padding: 5px;
    min-width: 175px;
    box-shadow: var(--shg);
    z-index: 300;
    display: none;
    animation: dropIn 0.16s var(--ez);
}

.drop-menu.open {
    display: block;
}

@keyframes dropIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.drop-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 11px;
    border-radius: var(--rs);
    font-family: var(--f);
    font-size: 12px;
    color: var(--t2);
    cursor: pointer;
    transition: all 0.13s;
}

.drop-item:hover {
    background: var(--bg4);
    color: var(--t1);
}

.drop-item.danger:hover {
    background: var(--ro1);
    color: var(--ro);
}

.drop-item i {
    font-size: 13px;
    width: 15px;
    text-align: center;
    flex-shrink: 0;
}

.drop-div {
    height: 1px;
    background: var(--b0);
    margin: 4px 0;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 0;
    border-bottom: 1px solid var(--b0);
}

.list-item:last-child {
    border-bottom: none;
}

.list-item-info {
    flex: 1;
    min-width: 0;
}

.list-item-title {
    font-family: var(--f);
    font-size: 13px;
    color: var(--t1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-item-sub {
    font-family: var(--f);
    font-size: 10.5px;
    color: var(--t3);
    margin-top: 1px;
}

.list-item-end {
    flex-shrink: 0;
    text-align: right;
}

.divider {
    height: 1px;
    background: var(--b0);
    margin: 14px 0;
}

.divider-v {
    width: 1px;
    background: var(--b0);
    align-self: stretch;
}

.sec-label {
    font-family: var(--f);
    font-size: 9px;
    color: var(--t3);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 9px;
}

.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid var(--b0);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row-lbl {
    font-family: var(--f);
    font-size: 12.5px;
    color: var(--t3);
}

.info-row-val {
    font-family: var(--f);
    font-size: 12.5px;
    color: var(--t1);
    text-align: right;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 44px 20px;
    text-align: center;
    gap: 10px;
}

.empty-ico {
    font-size: 34px;
    opacity: 0.18;
}

.empty-title {
    font-family: var(--f);
    font-size: 15px;
    color: var(--t2);
}

.empty-sub {
    font-family: var(--f);
    font-size: 12px;
    color: var(--t3);
    max-width: 260px;
}

.dot-live {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gn);
    animation: lPulse 2s ease-in-out infinite;
    box-shadow: 0 0 7px var(--gn);
}

@keyframes lPulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.78);
    }
}

.code-block {
    background: var(--bg1);
    border: 1px solid var(--b0);
    border-radius: var(--rs);
    padding: 14px;
    font-family: var(--f);
    font-size: 12px;
    color: var(--cy);
    overflow-x: auto;
    white-space: pre;
    line-height: 1.7;
}

.pill-tabs {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.pill-tab {
    padding: 5px 14px;
    border-radius: 50px;
    border: 1px solid var(--b0);
    font-family: var(--f);
    font-size: 11.5px;
    color: var(--t3);
    cursor: pointer;
    transition: all 0.13s;
    background: var(--bg2);
}

.pill-tab:hover {
    border-color: var(--b1);
    color: var(--t2);
}

.pill-tab.active {
    background: var(--cy1);
    border-color: rgba(99, 202, 255, 0.24);
    color: var(--cy);
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 100%;
    padding: 0 2px;
}

.chart-bar {
    flex: 1;
    border-radius: 3px 3px 0 0;
    transition: opacity 0.16s;
    cursor: pointer;
    min-width: 0;
    position: relative;
}

.chart-bar:hover {
    opacity: 0.72;
}

.chart-bar .btip {
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg4);
    border: 1px solid var(--b1);
    font-family: var(--f);
    font-size: 9.5px;
    color: var(--t1);
    padding: 3px 7px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.12s;
    z-index: 10;
}

.chart-bar:hover .btip {
    opacity: 1;
}

.chart-labels {
    display: flex;
    gap: 3px;
    margin-top: 5px;
}

.chart-label {
    flex: 1;
    text-align: center;
    font-family: var(--f);
    font-size: 9px;
    color: var(--t3);
    min-width: 0;
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════
    CALENDAR — Google-calendar-like dynamic layout
    ═══════════════════════════════════════════════════════════════ */

.cal-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cal-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cal-nav .btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: var(--rs);
    font-size: 14px;
}

.cal-range-label {
    font-family: var(--f);
    font-size: 15px;
    color: var(--t1);
    min-width: 200px;
    letter-spacing: -0.2px;
    text-align: center;
}

.cal-today-btn {
    font-size: 11px;
}

.cal-col-header {
    display: grid;
    grid-template-columns: 56px repeat(7, 1fr);
    border-bottom: 1px solid var(--b0);
    padding-bottom: 8px;
    gap: 0;
}

.cal-col-header > div {
    text-align: center;
    padding: 0 2px;
}

.cal-day-name {
    font-family: var(--f);
    font-size: 9px;
    letter-spacing: 1px;
    color: var(--t3);
    text-transform: uppercase;
    margin-bottom: 3px;
}

.cal-day-num {
    font-family: var(--f);
    font-size: 16px;
    font-weight: 600;
    color: var(--t1);
    line-height: 1.1;
}

.cal-day-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    border-radius: var(--rs);
    transition: background 0.12s;
}

.cal-day-cell:hover {
    background: var(--bg3);
}

.cal-day-cell.is-today {
    background: var(--cy2);
}

.cal-day-cell.is-today .cal-day-num {
    color: var(--cy);
}

.cal-day-cell.has-meeting {
    background: var(--cy1);
}

.cal-day-cell.has-meeting .cal-day-num {
    color: var(--cy);
}

.cal-hour-rows {
    display: grid;
    grid-template-columns: 56px repeat(7, 1fr);
}

.cal-hour-label {
    grid-column: 1;
    font-family: var(--f);
    font-size: 9.5px;
    color: var(--t3);
    padding: 0 7px;
    text-align: right;
    border-right: 1px solid var(--b0);
    display: flex;
    align-items: flex-start;
    padding-top: 3px;
    height: 40px;
}

.cal-hour-cell {
    min-height: 40px;
    border-bottom: 1px solid var(--b0);
    border-right: 1px solid var(--b0);
    position: relative;
}

.cal-hour-cell.is-today {
    background: rgba(99, 202, 255, 0.04);
}

.cal-event {
    position: absolute;
    left: 3px;
    right: 3px;
    border-radius: var(--rs);
    padding: 3px 6px;
    cursor: pointer;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    transition:
        opacity 0.12s,
        transform 0.12s;
    pointer-events: auto;
}

.cal-event:hover {
    opacity: 1 !important;
    transform: scale(1.02);
    z-index: 3;
}

.cal-event .ev-title {
    font-family: var(--f);
    font-size: 10.5px;
    color: var(--bg);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cal-event .ev-time {
    font-family: var(--f);
    font-size: 8.5px;
    color: rgba(6, 8, 16, 0.7);
    margin-top: 1px;
}

.cal-event.type-standard {
    background: linear-gradient(135deg, #63caff, #3b9edd);
}

.cal-event.type-webinar {
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
}

.cal-event.type-interview {
    background: linear-gradient(135deg, #fb7185, #dc2626);
}

.cal-event.type-training {
    background: linear-gradient(135deg, #34d399, #059669);
}

.cal-event.type-standup {
    background: linear-gradient(135deg, #fbbf24, #d97706);
}

.cal-event.type-meeting,
.cal-event.no-type {
    background: linear-gradient(135deg, #63caff, #3b9edd);
}

.cal-day-view {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cal-day-view-header {
    font-family: var(--f);
    font-size: 15px;
    color: var(--t1);
    padding: 8px 0;
    border-bottom: 1px solid var(--b0);
    margin-bottom: 8px;
}

.cal-day-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg2);
    border: 1px solid var(--b0);
    border-radius: var(--rs);
    cursor: pointer;
    transition: background 0.12s;
}

.cal-day-row:hover {
    background: var(--bg3);
    border-color: var(--b1);
}

.cal-day-row .cal-day-row-av {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f);
    font-size: 13px;
    color: var(--bg);
    flex-shrink: 0;
}

.cal-day-row .cal-day-row-info {
    flex: 1;
    min-width: 0;
}

.cal-day-row .cal-day-row-title {
    font-family: var(--f);
    font-size: 13px;
    color: var(--t1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cal-day-row .cal-day-row-sub {
    font-family: var(--f);
    font-size: 11px;
    color: var(--t3);
    margin-top: 1px;
}

.cal-day-row .cal-day-row-badge {
    flex-shrink: 0;
}

.cal-month-grid {
    display: grid;
    grid-template-columns: 1;
    gap: 4px;
}

.cal-month-cell {
    min-height: 72px;
    border: 1px solid var(--b0);
    border-radius: var(--rs);
    padding: 6px;
    cursor: pointer;
    transition:
        background 0.12s,
        border-color 0.12s;
    position: relative;
}

.cal-month-cell:hover {
    background: var(--bg3);
    border-color: var(--b1);
}

.cal-month-cell.outside {
    opacity: 0.4;
}

.cal-month-cell.is-today {
    background: var(--cy2);
    border-color: rgba(99, 202, 255, 0.3);
}

.cal-month-cell .cm-date {
    font-family: var(--f);
    font-size: 12px;
    font-weight: 600;
    color: var(--t1);
    margin-bottom: 4px;
}

.cal-month-cell .cm-meeting-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cy);
    margin-right: 3px;
}

.cal-month-cell .cm-meeting-count {
    font-family: var(--f);
    font-size: 9px;
    color: var(--cy);
}

.cal-upcoming-card {
    margin-top: 0;
}

.cal-upcoming-header {
    font-family: var(--f);
    font-size: 15px;
    color: var(--t1);
    margin-bottom: 12px;
}

.cal-upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cal-upcoming-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--b0);
    cursor: pointer;
    transition: background 0.12s;
}

.cal-upcoming-item:hover {
    background: var(--bg3);
}

.cal-upcoming-item:last-child {
    border-bottom: none;
}

.cal-upcoming-item .cu-av {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f);
    font-size: 13px;
    color: var(--bg);
    flex-shrink: 0;
}

.cal-upcoming-item .cu-info {
    flex: 1;
    min-width: 0;
}

.cal-upcoming-item .cu-title {
    font-family: var(--f);
    font-size: 13px;
    color: var(--t1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cal-upcoming-item .cu-sub {
    font-family: var(--f);
    font-size: 11px;
    color: var(--t3);
    margin-top: 1px;
}

.cal-upcoming-item .cu-details-btn {
    flex-shrink: 0;
}

.cal-empty {
    text-align: center;
    padding: 32px 16px;
    font-family: var(--f);
    font-size: 12.5px;
    color: var(--t3);
}

@media (max-width: 900px) {
    .cal-toolbar {
        gap: 6px;
    }

    .cal-range-label {
        min-width: 140px;
        font-size: 13px;
    }

    .cal-col-header {
        grid-template-columns: 40px repeat(7, 1fr);
        font-size: 11px;
    }

    .cal-hour-rows {
        grid-template-columns: 40px repeat(7, 1fr);
    }

    .cal-hour-label {
        font-size: 8px;
        padding: 0 4px;
        height: 34px;
    }

    .cal-hour-cell {
        min-height: 34px;
    }

    .cal-event {
        font-size: 9px;
        padding: 2px 4px;
    }

    .cal-event .ev-title {
        font-size: 9px;
    }

    .cal-event .ev-time {
        font-size: 7.5px;
    }

    .cal-month-cell {
        min-height: 52px;
        padding: 4px;
    }

    .cal-month-cell .cm-date {
        font-size: 10px;
    }
}

@media (max-width: 640px) {
    .cal-toolbar {
        flex-wrap: wrap;
        gap: 4px;
    }

    .cal-range-label {
        min-width: 100px;
        font-size: 12px;
    }

    .cal-col-header {
        grid-template-columns: 32px repeat(7, 1fr);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .cal-hour-rows {
        grid-template-columns: 32px repeat(7, 1fr);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .cal-hour-label {
        font-size: 7px;
        height: 28px;
    }

    .cal-hour-cell {
        min-height: 28px;
    }

    .cal-event {
        font-size: 8px;
        padding: 1px 3px;
        border-radius: 3px;
    }

    .cal-event .ev-title {
        font-size: 8px;
    }

    .cal-day-row {
        padding: 8px 10px;
        gap: 8px;
        flex-wrap: wrap;
    }

    .cal-day-row .cal-day-row-av {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }

    .cal-upcoming-item {
        padding: 8px 10px;
        gap: 8px;
    }

    .cal-month-cell {
        min-height: 44px;
        padding: 3px;
    }

    .cal-month-cell .cm-date {
        font-size: 9px;
        margin-bottom: 2px;
    }

    .cal-month-cell .cm-meeting-count {
        font-size: 8px;
    }
}

.cal-mobile-strip {
    display: none;
}

@media (max-width: 640px) {
    .cal-mobile-strip {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        margin-bottom: 12px;
    }

    .cal-mobile-strip-item {
        flex: 0 0 auto;
        min-width: 72px;
        padding: 8px 10px;
        background: var(--bg2);
        border: 1px solid var(--b0);
        border-radius: var(--rs);
        cursor: pointer;
        transition: border-color 0.12s;
    }

    .cal-mobile-strip-item:hover,
    .cal-mobile-strip-item.is-today {
        border-color: var(--cy);
    }

    .cal-mobile-strip-item .cms-dow {
        font-family: var(--f);
        font-size: 9px;
        color: var(--t3);
        text-transform: uppercase;
    }

    .cal-mobile-strip-item .cms-date {
        font-family: var(--f);
        font-size: 16px;
        font-weight: 600;
        color: var(--t1);
    }

    .cal-mobile-strip-item .cms-count {
        font-family: var(--f);
        font-size: 9px;
        color: var(--cy);
        margin-top: 2px;
    }
}

.det-event-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.det-event-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg3);
    border-radius: var(--rs);
    border-left: 3px solid var(--cy);
}

.det-event-item .dei-title {
    font-family: var(--f);
    font-size: 12.5px;
    color: var(--t1);
    flex: 1;
}

.det-event-item .dei-time {
    font-family: var(--f);
    font-size: 11px;
    color: var(--t3);
}

@media (max-width: 1100px) {
    :root {
        --sb-w: 220px;
    }
}

@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 26px rgba(0, 0, 0, 0.65);
    }

    .app-main {
        margin-left: 0;
    }

    .menu-btn {
        display: flex;
    }
}

@media (max-width: 640px) {
    .page-content {
        padding: 14px;
    }

    .page-title {
        font-size: 20px;
    }

    .page-header {
        gap: 9px;
    }

    .page-acts {
        width: 100%;
    }

    .modal-box,
    .modal-box.lg {
        border-radius: var(--rx) var(--rx) 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-width: 100%;
        margin: 0;
        animation: shUp 0.24s var(--ez);
    }

    .modal-overlay.open {
        align-items: flex-end;
        padding: 0;
    }

    @keyframes shUp {
        from {
            transform: translateY(100%);
        }

        to {
            transform: translateY(0);
        }
    }

    .md-body {
        max-height: 70vh;
    }
}

@media (max-width: 480px) {
    .page-content {
        padding: 10px;
    }

    :root {
        --nav-h: 52px;
    }

    .toast-stack {
        right: 10px;
        bottom: 10px;
        max-width: calc(100vw - 20px);
    }
}

/* ═══════════════════════════════════════════════════════════════
   UI CAPITALIZATION — markup is written lowercase; interface chrome
   renders capitalized. Data content (table cells, list titles,
   emails, names, code, inputs, chat) is intentionally untouched.
   ═══════════════════════════════════════════════════════════════ */
.sb-item,
.sb-sec,
.sb-user-role,
.topnav-title,
.page-title,
.btn,
.bdg,
.seg-tab,
.drop-item,
.stat-lbl,
.form-label,
.sec-label,
.md-title:not(#ticketViewTitle),
.tbl th,
h3 {
    text-transform: capitalize;
}

.page-sub::first-letter,
.toast-msg::first-letter,
.form-hint::first-letter {
    text-transform: uppercase;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 2px solid var(--cy, #63caff);
    outline-offset: 2px;
}
