:root {
    --ink: #111328;
    --muted: #72758f;
    --paper: rgba(255, 255, 255, 0.86);
    --sidebar: #173a42;
    --sidebar-deep: #0b252c;
    --purple: #1b756f;
    --pink: #c76a3d;
    --cyan: #45b9ad;
    --gold: #e0b45b;
    --red: #ff5e6c;
    --line: rgba(21, 21, 47, 0.10);
    --shadow: 0 22px 70px rgba(24, 20, 67, 0.18);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    overflow: hidden;
    background:
        radial-gradient(circle at 5% 10%, rgba(124, 77, 255, 0.20), transparent 30%),
        radial-gradient(circle at 92% 80%, rgba(255, 79, 154, 0.16), transparent 28%),
        linear-gradient(135deg, #f8f7ff 0%, #eefbff 48%, #fff8fb 100%);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
a,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.ambient {
    position: fixed;
    z-index: 0;
    border-radius: 999px;
    filter: blur(20px);
    opacity: 0.8;
    pointer-events: none;
}

.ambient-one {
    top: -170px;
    right: 12%;
    width: 410px;
    height: 410px;
    background: linear-gradient(135deg, rgba(46, 214, 207, 0.20), rgba(124, 77, 255, 0.16));
}

.ambient-two {
    right: -160px;
    bottom: -180px;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(255, 79, 154, 0.20), rgba(247, 200, 107, 0.17));
}

.dashboard-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    width: 100vw;
    height: 100vh;
}

.sidebar {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 22px 18px 18px;
    overflow-y: auto;
    background:
        linear-gradient(170deg, rgba(255, 255, 255, 0.05), transparent 24%),
        linear-gradient(150deg, var(--sidebar) 0%, var(--sidebar-deep) 100%);
    color: #fff;
    box-shadow: 18px 0 50px rgba(16, 13, 48, 0.18);
}

.sidebar::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 15%, rgba(124, 77, 255, 0.26), transparent 25%),
        radial-gradient(circle at 90% 60%, rgba(46, 214, 207, 0.10), transparent 30%);
}

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

.brand-wrap {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
}

.brand-lockup {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
}

.brand-lockup img {
    display: block;
    width: min(168px, calc(100% - 74px));
    max-height: 42px;
    object-fit: contain;
    object-position: left center;
    filter: none;
}

.brand-divider {
    width: 1px;
    height: 31px;
    flex: 0 0 1px;
    border-radius: 999px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.82), transparent);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.22);
}

.vip-word {
    color: #fff;
    font-size: 19px;
    font-weight: 750;
    letter-spacing: 0.24em;
    line-height: 1;
    text-shadow: 0 0 22px rgba(247, 200, 107, 0.32);
}

.sidebar-close {
    display: none;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    cursor: pointer;
}

.client-chip {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 18px 0 16px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
}

.client-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 0 5px rgba(46, 214, 207, 0.12);
}

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

.nav-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 30px;
    gap: 10px;
    align-items: center;
    width: 100%;
    min-height: 52px;
    padding: 7px 8px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: transparent;
    color: rgba(255, 255, 255, 0.74);
    text-align: left;
    cursor: pointer;
    transition: 180ms ease;
}

.nav-item:hover,
.nav-item:focus-visible {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    outline: none;
}

.nav-item.active {
    border-color: rgba(255, 255, 255, 0.16);
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.68), rgba(255, 79, 154, 0.40));
    color: #fff;
    box-shadow: 0 12px 24px rgba(124, 77, 255, 0.20);
}

.nav-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.09);
}

.nav-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.nav-label {
    font-size: 14px;
    font-weight: 650;
}

.nav-external {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    transition: 160ms ease;
}

.nav-external:hover,
.nav-external:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    outline: none;
}

.checklist-card {
    margin-top: 18px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(16px);
}

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

.eyebrow {
    color: var(--gold);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.checklist-heading h2 {
    margin: 2px 0 0;
    font-size: 17px;
}

.checklist-progress {
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    font-weight: 700;
}

.progress-track {
    height: 4px;
    margin: 11px 0 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
}

.progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--cyan), var(--gold), var(--pink));
    transition: width 220ms ease;
}

.checklist-items {
    display: grid;
    gap: 4px;
}

.check-item {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 30px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 12px;
    line-height: 1.25;
    cursor: pointer;
}

.check-item input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.checkmark {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.06);
    transition: 160ms ease;
}

.checkmark::after {
    content: "✓";
    color: #10132a;
    font-size: 13px;
    font-weight: 900;
    opacity: 0;
    transform: scale(0.5);
    transition: 160ms ease;
}

.check-item input:checked + .checkmark {
    border-color: transparent;
    background: linear-gradient(135deg, var(--cyan), var(--gold));
}

.check-item input:checked + .checkmark::after {
    opacity: 1;
    transform: scale(1);
}

.check-item input:checked ~ span:last-child {
    color: rgba(255, 255, 255, 0.42);
    text-decoration: line-through;
}

.reset-button {
    width: 100%;
    margin-top: 11px;
    padding: 9px 11px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.76);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 160ms ease;
}

.reset-button:hover,
.reset-button:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    outline: none;
}

.sos-link {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
    padding: 12px;
    border: 1px solid rgba(255, 111, 117, 0.30);
    border-radius: 17px;
    background: linear-gradient(135deg, rgba(255, 65, 90, 0.18), rgba(255, 117, 90, 0.09));
    color: #fff;
    text-decoration: none;
    transition: 180ms ease;
}

.sos-link:hover,
.sos-link:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 111, 117, 0.50);
    background: linear-gradient(135deg, rgba(255, 65, 90, 0.28), rgba(255, 117, 90, 0.14));
    outline: none;
}

.sos-pulse {
    position: relative;
    width: 13px;
    height: 13px;
    margin-left: 8px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 7px rgba(255, 94, 108, 0.12);
}

.sos-pulse::after {
    content: "";
    position: absolute;
    inset: -7px;
    border: 1px solid rgba(255, 94, 108, 0.55);
    border-radius: inherit;
    animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
    to {
        transform: scale(1.5);
        opacity: 0;
    }
}

.sos-link small,
.sos-link strong {
    display: block;
}

.sos-link small {
    margin-bottom: 1px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 10px;
}

.sos-link strong {
    font-size: 13px;
}

.sos-arrow {
    color: rgba(255, 255, 255, 0.72);
}

.workspace {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    min-width: 0;
    min-height: 0;
    padding: 18px 18px 18px 20px;
}

.workspace-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    min-height: 72px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 21px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 12px 40px rgba(29, 25, 83, 0.08);
    backdrop-filter: blur(18px);
}

.workspace-heading {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.workspace-kicker {
    color: var(--purple);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.workspace-heading h1 {
    margin: 2px 0 0;
    overflow: hidden;
    font-size: clamp(20px, 2.2vw, 30px);
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
}

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

.status-pill {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 9px 12px;
    border: 1px solid rgba(46, 214, 207, 0.25);
    border-radius: 999px;
    background: rgba(46, 214, 207, 0.09);
    color: #236c70;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.status-pill i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 0 4px rgba(46, 214, 207, 0.13);
}

.open-button {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 13px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: #fff;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(124, 77, 255, 0.20);
    transition: 170ms ease;
}

.open-button:hover,
.open-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(124, 77, 255, 0.28);
    outline: none;
}

.credential-strip {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    min-height: 48px;
    margin-top: 10px;
    padding: 7px 11px 7px 14px;
    border: 1px solid rgba(124, 77, 255, 0.15);
    border-radius: 15px;
    background: linear-gradient(90deg, rgba(124, 77, 255, 0.08), rgba(46, 214, 207, 0.07));
    box-shadow: 0 8px 24px rgba(29, 25, 83, 0.06);
}

.credential-message {
    display: flex;
    gap: 8px;
    align-items: center;
    min-width: 180px;
    color: #62657d;
    font-size: 11px;
}

.credential-lock {
    color: var(--purple);
    font-size: 11px;
}

.credential-values {
    display: flex;
    gap: 8px;
    min-width: 0;
}

.credential-field {
    display: flex;
    gap: 7px;
    align-items: center;
    min-width: 0;
    height: 34px;
    padding: 4px 5px 4px 9px;
    border: 1px solid rgba(17, 19, 40, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.76);
}

.credential-label {
    color: #85879c;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.credential-field code {
    max-width: 240px;
    overflow: hidden;
    color: #252842;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-button,
.eye-button {
    display: grid;
    place-items: center;
    height: 25px;
    border: 0;
    border-radius: 7px;
    background: rgba(17, 19, 40, 0.06);
    color: #5f627b;
    cursor: pointer;
}

.copy-button {
    padding: 0 8px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.eye-button {
    width: 27px;
}

.eye-button::before {
    content: "";
    width: 15px;
    height: 10px;
    border: 1.6px solid currentColor;
    border-radius: 50% / 60%;
}

.eye-button::after {
    content: "";
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
}

.eye-button {
    position: relative;
}

.copy-button:hover,
.copy-button:focus-visible,
.eye-button:hover,
.eye-button:focus-visible {
    background: rgba(124, 77, 255, 0.11);
    color: var(--purple);
    outline: none;
}

.workspace-content {
    position: relative;
    min-height: 0;
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 24px;
    background: var(--paper);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.welcome-view,
.external-view,
.files-view,
.tutorials-view {
    height: 100%;
    overflow-y: auto;
    padding: clamp(22px, 4vw, 54px);
}

.welcome-view {
    display: grid;
    align-content: center;
    min-height: 100%;
    background:
        radial-gradient(circle at 90% 8%, rgba(255, 79, 154, 0.12), transparent 24%),
        radial-gradient(circle at 10% 90%, rgba(46, 214, 207, 0.12), transparent 28%);
}

.welcome-badge {
    display: inline-flex;
    width: max-content;
    margin-bottom: 18px;
    padding: 8px 11px;
    border: 1px solid rgba(124, 77, 255, 0.16);
    border-radius: 999px;
    background: rgba(124, 77, 255, 0.07);
    color: var(--purple);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.welcome-view h2 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(34px, 5vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.gradient-text {
    background: linear-gradient(90deg, var(--purple), var(--pink), #df981f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.welcome-view > p {
    max-width: 720px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 920px;
    margin-top: 30px;
}

.quick-card {
    display: block;
    min-height: 120px;
    padding: 17px;
    border: 1px solid rgba(17, 19, 40, 0.08);
    border-radius: 19px;
    background: rgba(255, 255, 255, 0.72);
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: 180ms ease;
}

.quick-card:hover,
.quick-card:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(124, 77, 255, 0.24);
    box-shadow: 0 16px 30px rgba(24, 20, 67, 0.10);
    outline: none;
}

.quick-card .quick-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.14), rgba(255, 79, 154, 0.12));
    color: var(--purple);
}

.quick-card strong,
.quick-card span {
    display: block;
}

.quick-card strong {
    margin-bottom: 4px;
    font-size: 14px;
}

.quick-card span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.frame-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    background: #fff;
}

.frame-loading {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #f7f6ff, #f4fcff);
    color: #777a91;
    font-size: 13px;
}

.frame-loading span {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.frame-loading span::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid rgba(124, 77, 255, 0.16);
    border-top-color: var(--purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.dashboard-frame {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: 0;
    background: #fff;
}

.external-view {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 12% 18%, rgba(124, 77, 255, 0.13), transparent 30%),
        radial-gradient(circle at 88% 82%, rgba(255, 79, 154, 0.11), transparent 30%);
}

.external-card {
    width: min(620px, 100%);
    padding: clamp(24px, 5vw, 48px);
    border: 1px solid rgba(17, 19, 40, 0.08);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    text-align: center;
    box-shadow: 0 20px 50px rgba(24, 20, 67, 0.10);
}

.external-mark {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: #fff;
    font-size: 28px;
    box-shadow: 0 16px 32px rgba(124, 77, 255, 0.25);
}

.external-card h2,
.files-view h2,
.tutorials-view h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -0.04em;
}

.external-card p {
    max-width: 480px;
    margin: 13px auto 22px;
    color: var(--muted);
    line-height: 1.65;
}

.external-note {
    margin-top: 18px;
    color: #9294a6;
    font-size: 11px;
}

.external-card .open-button {
    min-width: 180px;
    min-height: 47px;
}

.tutorials-view {
    background:
        radial-gradient(circle at 100% 0%, rgba(46, 214, 207, 0.11), transparent 25%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(248, 247, 255, 0.72));
}

.view-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 24px;
}

.view-heading p {
    max-width: 550px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

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

.video-card {
    overflow: hidden;
    border: 1px solid rgba(17, 19, 40, 0.08);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(24, 20, 67, 0.08);
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #101229;
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-meta {
    padding: 15px 17px 17px;
}

.video-meta span,
.video-meta strong {
    display: block;
}

.video-meta span {
    margin-bottom: 4px;
    color: var(--purple);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.video-meta strong {
    font-size: 15px;
}

.files-view {
    background:
        radial-gradient(circle at 5% 90%, rgba(247, 200, 107, 0.14), transparent 28%),
        radial-gradient(circle at 95% 10%, rgba(124, 77, 255, 0.10), transparent 24%);
}

.files-intro {
    max-width: 720px;
    margin: 12px 0 26px;
    color: var(--muted);
    line-height: 1.65;
}

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

.file-card {
    padding: 22px;
    border: 1px solid rgba(17, 19, 40, 0.08);
    border-radius: 21px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 14px 34px rgba(24, 20, 67, 0.07);
}

.file-card.vip {
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.10), rgba(255, 79, 154, 0.07));
}

.file-card small {
    display: block;
    margin-bottom: 7px;
    color: var(--purple);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.file-card h3 {
    margin: 0 0 10px;
    font-size: 19px;
}

.file-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.file-path {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-top: 15px;
    padding: 10px 12px;
    border: 1px solid rgba(17, 19, 40, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
}

.file-path code {
    overflow: hidden;
    color: #34364e;
    font-size: 12px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.error-card {
    margin: 30px;
    padding: 24px;
    border: 1px solid rgba(255, 94, 108, 0.25);
    border-radius: 20px;
    background: rgba(255, 94, 108, 0.08);
}

@media (max-width: 1080px) {
    .dashboard-shell {
        grid-template-columns: 286px minmax(0, 1fr);
    }

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

    .credential-strip {
        align-items: flex-start;
    }

    .credential-values {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 820px) {
    body {
        overflow: hidden;
    }

    .dashboard-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 20;
        width: min(320px, 88vw);
        transform: translateX(-104%);
        transition: transform 220ms ease;
    }

    .dashboard-shell.menu-open .sidebar {
        transform: translateX(0);
    }

    .dashboard-shell.menu-open::after {
        content: "";
        position: fixed;
        z-index: 19;
        inset: 0;
        background: rgba(10, 10, 30, 0.42);
        backdrop-filter: blur(5px);
    }

    .sidebar-close,
    .menu-toggle {
        display: grid;
        place-items: center;
    }

    .workspace {
        padding: 10px;
    }

    .workspace-header {
        min-height: 64px;
        padding: 8px 10px;
        border-radius: 17px;
    }

    .status-pill {
        display: none;
    }

    .header-open {
        padding: 8px 10px;
        font-size: 0;
    }

    .header-open span {
        font-size: 14px;
    }

    .credential-strip {
        display: block;
        max-height: 104px;
        overflow-x: auto;
        padding: 7px;
        white-space: nowrap;
    }

    .credential-message {
        display: none;
    }

    .credential-values {
        display: flex;
        flex-direction: row;
        width: max-content;
    }

    .workspace-content {
        border-radius: 18px;
    }

    .video-grid,
    .file-grid {
        grid-template-columns: 1fr;
    }

    .view-heading {
        display: block;
    }
}

@media (max-width: 560px) {
    .workspace-heading h1 {
        max-width: 190px;
        font-size: 19px;
    }

    .workspace-kicker {
        display: none;
    }

    .welcome-view,
    .external-view,
    .files-view,
    .tutorials-view {
        padding: 21px;
    }

    .welcome-view {
        align-content: start;
        padding-top: 40px;
    }

    .welcome-view h2 {
        font-size: 42px;
    }

    .quick-grid {
        grid-template-columns: 1fr;
    }

    .quick-card {
        min-height: 100px;
    }

    .credential-field code {
        max-width: 155px;
    }
}

/* Email-code login gate */
.pin-page {
    min-height: 100vh;
    overflow: auto;
}

.pin-gate {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 28px 18px;
}

.pin-card {
    position: relative;
    width: min(100%, 470px);
    padding: 34px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 30px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(250, 248, 255, 0.86)),
        rgba(255, 255, 255, 0.9);
    box-shadow: 0 32px 90px rgba(30, 22, 82, 0.22);
    backdrop-filter: blur(24px);
    text-align: center;
}

.pin-card::before {
    content: "";
    position: absolute;
    top: -90px;
    right: -80px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.20), rgba(255, 79, 154, 0.14));
    filter: blur(4px);
    pointer-events: none;
}

.pin-card::after {
    content: "";
    position: absolute;
    right: 42px;
    bottom: 0;
    left: 42px;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, var(--purple), var(--pink), var(--cyan), var(--gold));
}

.pin-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 45px;
    margin-bottom: 25px;
    padding: 9px 18px;
    border-radius: 16px;
    background: linear-gradient(145deg, var(--sidebar), var(--sidebar-deep));
    box-shadow: 0 14px 30px rgba(21, 21, 47, 0.16);
}

.pin-brand img {
    display: block;
    width: min(185px, calc(100% - 78px));
    max-height: 34px;
    object-fit: contain;
    object-position: right center;
    filter: none;
}

.pin-brand-divider {
    width: 1px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.82), transparent);
}

.pin-brand strong {
    color: #fff;
    font-size: 18px;
    font-weight: 780;
    letter-spacing: 0.22em;
}

.pin-lock {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border: 1px solid rgba(124, 77, 255, 0.14);
    border-radius: 21px;
    background: linear-gradient(145deg, rgba(124, 77, 255, 0.13), rgba(255, 79, 154, 0.10));
    color: var(--purple);
    box-shadow: 0 14px 32px rgba(124, 77, 255, 0.14);
}

.pin-lock svg {
    width: 29px;
    height: 29px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pin-eyebrow {
    position: relative;
    z-index: 1;
    color: var(--purple);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.pin-card h1 {
    position: relative;
    z-index: 1;
    margin: 7px 0 8px;
    font-size: clamp(25px, 5vw, 34px);
    line-height: 1.13;
    letter-spacing: -0.035em;
}

.pin-card > p {
    position: relative;
    z-index: 1;
    max-width: 350px;
    margin: 0 auto 25px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.pin-form {
    position: relative;
    z-index: 1;
    text-align: left;
}

.pin-form label {
    display: block;
    margin: 0 0 8px 3px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 750;
}

.pin-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 58px;
    border: 1px solid rgba(21, 21, 47, 0.13);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: 180ms ease;
}

.pin-input-wrap:focus-within {
    border-color: rgba(124, 77, 255, 0.55);
    box-shadow: 0 0 0 4px rgba(124, 77, 255, 0.10), 0 13px 30px rgba(124, 77, 255, 0.10);
}

.pin-input-wrap.has-error {
    border-color: rgba(255, 94, 108, 0.72);
    box-shadow: 0 0 0 4px rgba(255, 94, 108, 0.09);
}

.pin-input-wrap input {
    width: 100%;
    min-width: 0;
    height: 56px;
    padding: 0 55px 0 20px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 24px;
    font-weight: 780;
    letter-spacing: 0.34em;
}

.pin-input-wrap input::placeholder {
    color: rgba(17, 19, 40, 0.28);
}

.pin-eye {
    position: absolute;
    right: 9px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: rgba(124, 77, 255, 0.08);
    color: var(--purple);
    cursor: pointer;
}

.pin-eye:hover,
.pin-eye:focus-visible {
    background: rgba(124, 77, 255, 0.14);
    outline: none;
}

.pin-eye svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pin-message {
    min-height: 25px;
    padding: 7px 3px 0;
    color: var(--red);
    font-size: 12px;
    font-weight: 650;
    opacity: 0;
}

.pin-message.visible {
    opacity: 1;
}

.pin-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 56px;
    margin-top: 4px;
    border: 0;
    border-radius: 17px;
    background: linear-gradient(120deg, var(--purple), var(--pink));
    color: #fff;
    font-weight: 760;
    cursor: pointer;
    box-shadow: 0 17px 35px rgba(124, 77, 255, 0.25);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.pin-submit:hover,
.pin-submit:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 21px 42px rgba(124, 77, 255, 0.31);
    outline: none;
}

.pin-submit span {
    font-size: 20px;
    line-height: 1;
}

.pin-note {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--muted);
    font-size: 11px;
}

.pin-note span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 0 5px rgba(46, 214, 207, 0.11);
}

@media (max-width: 540px) {
    .pin-gate {
        align-items: center;
        padding: 16px;
    }

    .pin-card {
        padding: 25px 20px 27px;
        border-radius: 24px;
    }

    .pin-brand {
        margin-bottom: 22px;
    }

    .pin-brand img {
        width: min(160px, calc(100% - 72px));
    }
}


/* BCASW 2.0 customizations */
.sidebar-spacer {
    flex: 1 1 auto;
    min-height: 28px;
}

.account-card {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.07);
}

.account-card small,
.account-card strong {
    display: block;
}

.account-card small {
    color: rgba(255, 255, 255, 0.54);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-card strong {
    margin-top: 5px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.90);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-button {
    width: 100%;
    margin-top: 12px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
}

.logout-button:hover,
.logout-button:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    outline: none;
}

.default-access-card {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    max-width: 920px;
    margin-top: 26px;
    padding: 16px 18px;
    border: 1px solid rgba(27, 117, 111, 0.16);
    border-radius: 18px;
    background: linear-gradient(110deg, rgba(27, 117, 111, 0.08), rgba(224, 180, 91, 0.10));
}

.default-access-card small,
.default-access-card strong {
    display: block;
}

.default-access-card small {
    color: var(--purple);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.default-access-card strong {
    margin-top: 5px;
    font-size: 12px;
}

.default-access-values {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.default-access-values span {
    padding: 8px 10px;
    border: 1px solid rgba(17, 19, 40, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--muted);
    font-size: 10px;
}

.default-access-values code {
    color: var(--ink);
    font-size: 11px;
    font-weight: 750;
}

.email-input input {
    padding: 0 18px 0 52px;
    font-size: 16px;
    font-weight: 650;
    letter-spacing: 0;
}

.code-input input {
    padding: 0 20px;
    text-align: center;
    font-size: 25px;
    letter-spacing: 0.28em;
}

.input-leading {
    position: absolute;
    left: 17px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 8px;
    background: rgba(27, 117, 111, 0.10);
    color: var(--purple);
    font-size: 12px;
    font-weight: 850;
}

.pin-message.success {
    color: #20766e;
}

.login-secondary-actions {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}

.text-button {
    padding: 5px;
    border: 0;
    background: transparent;
    color: var(--purple);
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
}

.text-button:hover,
.text-button:focus-visible {
    text-decoration: underline;
    outline: none;
}

@media (max-width: 760px) {
    .default-access-card {
        display: grid;
    }

    .default-access-values {
        justify-content: flex-start;
    }
}

@media (max-width: 540px) {
    .login-secondary-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 4px;
    }

    .default-access-values {
        display: grid;
    }

    .default-access-values span {
        overflow-wrap: anywhere;
    }
}
