:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --border: #e2e8f0;
    --text: #0f172a;
    --muted: #64748b;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #d97706;
    --shadow: 0 10px 30px rgba(15, 23, 42, .06);
    --radius: 18px;
}

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

body {
    min-height: 100vh;
    font-family:
        "Noto Sans Sinhala",
        "Inter",
        sans-serif;
    background: var(--bg);
    color: var(--text);
}

button {
    font: inherit;
}

.hidden {
    display: none !important;
}


/* Selection */

.paper-selection {
    min-height: 100vh;
    padding: 70px 24px;
}

.selection-container {
    width: min(1100px, 100%);
    margin: auto;
}

.selection-header {
    text-align: center;
    margin-bottom: 45px;
}

.brand-icon {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background: #eff6ff;
    color: var(--primary);
}

.brand-icon svg {
    width: 22px;
    height: 22px;
}

.brand-icon.large {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 18px;
}

.brand-icon.large svg {
    width: 32px;
    height: 32px;
}

.eyebrow {
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
}

.selection-header h1 {
    margin-top: 8px;
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 800;
}

.selection-header p {
    max-width: 600px;
    margin: 12px auto 0;
    color: var(--muted);
    line-height: 1.8;
}

.papers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.paper-card {
    padding: 22px;

    background: white;

    border: 1px solid var(--border);

    border-radius: 18px;

    box-shadow: var(--shadow);

    transition: .25s;
}

.paper-card:hover {
    transform: translateY(-4px);
    border-color: #bfdbfe;
    box-shadow:
        0 18px 45px rgba(15, 23, 42, .09);
}

.paper-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 22px;
}

.paper-number {
    color: var(--primary);
    font-weight: 800;
}

.paper-status {
    padding: 5px 9px;

    border-radius: 7px;

    background: #f1f5f9;

    color: var(--muted);

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;
}

.paper-card h2 {
    font-size: 18px;
    line-height: 1.5;
}

.paper-card p {
    min-height: 58px;

    margin-top: 8px;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.7;
}

.paper-meta {
    display: flex;
    gap: 8px;

    margin: 18px 0;

    color: var(--muted);

    font-size: 12px;
}

.paper-meta span {
    padding: 6px 9px;

    border-radius: 7px;

    background: var(--surface-soft);
}

.paper-start {
    width: 100%;
    min-height: 45px;

    border: none;

    border-radius: 10px;

    background: var(--text);

    color: white;

    font-weight: 700;

    cursor: pointer;

    transition: .2s;
}

.paper-start:hover {
    background: var(--primary);
}


/* Topbar */

.topbar {
    height: 74px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 32px;

    background: white;

    border-bottom: 1px solid var(--border);

    position: sticky;
    top: 0;

    z-index: 50;
}

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

.brand strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
}

.brand span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.exam-status {
    display: flex;
    align-items: center;
    gap: 24px;
}

.question-counter {
    display: flex;
    gap: 5px;
    font-size: 14px;
    font-weight: 700;
}

.question-counter span:last-child {
    color: var(--muted);
}

.timer {
    display: flex;
    align-items: center;
    gap: 7px;

    padding: 9px 13px;

    border-radius: 10px;

    background: #f8fafc;

    font-weight: 800;
}

.timer svg {
    width: 18px;
    height: 18px;
}

.timer.warning {
    color: var(--danger);
    background: #fef2f2;
}


/* Exam */

main {
    width: min(1320px, calc(100% - 48px));
    margin: auto;
    padding: 34px 0 60px;
}

.exam-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
}

.progress-container {
    margin-bottom: 18px;
}

.progress-info {
    display: flex;
    justify-content: space-between;

    margin-bottom: 8px;

    color: var(--muted);

    font-size: 13px;
    font-weight: 600;
}

.progress {
    height: 7px;
    overflow: hidden;
    background: #e2e8f0;
    border-radius: 999px;
}

.progress div {
    height: 100%;
    width: 0;
    background: var(--primary);
    border-radius: inherit;
    transition: width .3s ease;
}

.question-card {
    padding: 34px;

    background: white;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);
}

.question-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 24px;
}

.question-number {
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}

.mark-button {
    display: flex;
    align-items: center;
    gap: 7px;

    padding: 8px 11px;

    border: 1px solid var(--border);

    background: white;

    border-radius: 9px;

    color: var(--muted);

    cursor: pointer;
}

.mark-button.active {
    color: var(--warning);
    background: #fffbeb;
    border-color: #fde68a;
}

.mark-button svg {
    width: 17px;
    height: 17px;
}

.question-card h1 {
    max-width: 900px;

    font-size: clamp(20px, 2vw, 27px);

    line-height: 1.65;

    margin-bottom: 30px;
}

.options {
    display: grid;
    gap: 12px;
}

.option {
    position: relative;

    display: flex;
    align-items: center;
    gap: 14px;

    padding: 16px 18px;

    border: 1px solid var(--border);

    border-radius: 13px;

    background: white;

    cursor: pointer;

    transition: .2s;
}

.option:hover {
    border-color: #bfdbfe;
    background: #f8fbff;
}

.option input {
    position: absolute;
    opacity: 0;
}

.option-marker {
    width: 23px;
    height: 23px;

    flex: 0 0 23px;

    display: grid;
    place-items: center;

    border: 2px solid #cbd5e1;

    border-radius: 50%;
}

.option-marker::after {
    content: "";

    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: white;

    transform: scale(0);
}

.option.selected {
    border-color: var(--primary);
    background: #eff6ff;
}

.option.selected .option-marker {
    border-color: var(--primary);
    background: var(--primary);
}

.option.selected .option-marker::after {
    transform: scale(1);
}

.option-letter {
    width: 30px;
    color: var(--muted);
    font-weight: 800;
}

.option.selected .option-letter {
    color: var(--primary);
}

.option-text {
    width: 100%;
    font-size: 15px;
    line-height: 1.6;
}

.navigation {
    display: flex;
    justify-content: space-between;

    gap: 12px;

    margin-top: 30px;
    padding-top: 24px;

    border-top: 1px solid var(--border);
}

.nav-button {
    min-height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 10px 17px;

    border: 1px solid transparent;

    border-radius: 10px;

    font-weight: 700;

    cursor: pointer;
}

.nav-button.primary {
    color: white;
    background: var(--primary);
}

.nav-button.primary:hover {
    background: var(--primary-dark);
}

.nav-button.secondary {
    color: var(--text);
    background: white;
    border-color: var(--border);
}

.nav-button:disabled {
    opacity: .4;
    cursor: not-allowed;
}


/* Sidebar */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.side-card {
    padding: 20px;

    background: white;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);
}

.side-title {
    margin-bottom: 17px;
}

.side-title strong {
    display: block;
    font-size: 15px;
}

.side-title span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.question-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.question-grid button {
    aspect-ratio: 1;

    border: 1px solid var(--border);

    border-radius: 9px;

    background: white;

    color: var(--muted);

    font-weight: 700;

    cursor: pointer;
}

.question-grid button.answered {
    color: var(--primary);
    background: #eff6ff;
    border-color: #bfdbfe;
}

.question-grid button.current {
    color: white;
    background: var(--primary);
    border-color: var(--primary);
}

.question-grid button.marked {
    color: var(--warning);
    background: #fffbeb;
    border-color: #fde68a;
}

.question-grid button.current.marked {
    color: white;
    background: var(--warning);
    border-color: var(--warning);
}

.legend-card {
    display: grid;
    gap: 11px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 12px;
}

.legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #e2e8f0;
}

.legend-dot.answered {
    background: #93c5fd;
}

.legend-dot.current {
    background: var(--primary);
}

.legend-dot.marked {
    background: var(--warning);
}

.submit-button {
    min-height: 50px;

    border: none;

    border-radius: 12px;

    background: var(--text);

    color: white;

    font-weight: 800;

    cursor: pointer;
}


/* Code */

.code-block {
    margin-top: 22px;

    overflow: hidden;

    border: 1px solid #1e293b;

    border-radius: 14px;

    background: #0f172a;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 10px 14px;

    background: #1e293b;

    color: #cbd5e1;

    font-size: 12px;
    font-weight: 700;
}

.copy-code {
    border: none;

    background: transparent;

    color: #cbd5e1;

    cursor: pointer;
}

.code-block pre {
    margin: 0;

    padding: 20px;

    overflow-x: auto;

    color: #e2e8f0;

    font-family:
        "Consolas",
        "Monaco",
        monospace;

    font-size: 14px;

    line-height: 1.7;
}

.option-code {
    width: 100%;

    overflow: hidden;

    border-radius: 9px;

    background: #0f172a;
}

.option-code-language {
    display: block;

    padding: 6px 10px;

    background: #1e293b;

    color: #94a3b8;

    font-family: monospace;

    font-size: 10px;

    font-weight: 700;
}

.option-code pre {
    margin: 0;

    padding: 10px 12px;

    overflow-x: auto;
}

.option-code code {
    color: #e2e8f0;

    font-family:
        "Consolas",
        "Monaco",
        monospace;

    font-size: 13px;
}


/* Modal */

.modal {
    position: fixed;
    inset: 0;

    z-index: 100;

    display: grid;
    place-items: center;

    padding: 20px;

    background: rgba(15, 23, 42, .55);

    backdrop-filter: blur(7px);
}

.modal-box {
    width: min(440px, 100%);

    padding: 30px;

    background: white;

    border-radius: 20px;
}

.modal-box h2 {
    margin-bottom: 8px;
}

.modal-box p {
    color: var(--muted);
    line-height: 1.7;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
}


/* Result */

.result-screen {
    min-height: 100vh;

    padding: 60px 20px;

    background: var(--bg);
}

.result-container {
    width: min(850px, 100%);
    margin: auto;
}

.result-header {
    text-align: center;
    margin-bottom: 28px;
}

.result-icon {
    width: 52px;
    height: 52px;

    display: grid;
    place-items: center;

    margin: auto auto 15px;

    border-radius: 15px;

    color: var(--primary);

    background: #eff6ff;
}

.result-icon svg {
    width: 26px;
}

.result-header > span {
    color: var(--primary);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: .12em;
}

.result-header h1 {
    margin-top: 7px;
    font-size: 30px;
}

.score-card {
    display: grid;

    grid-template-columns: 220px 1fr;

    align-items: center;

    gap: 30px;

    padding: 28px;

    background: white;

    border: 1px solid var(--border);

    border-radius: 20px;

    box-shadow: var(--shadow);
}

.score-circle {
    width: 170px;
    height: 170px;

    margin: auto;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    border: 10px solid #dbeafe;

    border-radius: 50%;
}

.score-circle strong {
    font-size: 38px;
    color: var(--primary);
}

.score-circle span {
    color: var(--muted);
    font-size: 12px;
}

.score-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.score-details div {
    padding: 16px;

    border: 1px solid var(--border);

    border-radius: 12px;

    background: var(--surface-soft);
}

.score-details span {
    display: block;

    color: var(--muted);

    font-size: 12px;
}

.score-details strong {
    display: block;

    margin-top: 4px;

    font-size: 23px;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.review-container {
    margin-top: 25px;
}

.review-item {
    margin-bottom: 12px;

    padding: 20px;

    background: white;

    border: 1px solid var(--border);

    border-radius: 14px;
}

.review-item.correct {
    border-left: 4px solid var(--success);
}

.review-item.wrong {
    border-left: 4px solid var(--danger);
}

.review-question {
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 12px;
}

.review-answer {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}


/* Responsive */

@media (max-width: 950px) {

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

    .exam-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: -1;
    }

    .question-grid {
        grid-template-columns: repeat(10, 1fr);
    }
}


@media (max-width: 650px) {

    .paper-selection {
        padding: 40px 16px;
    }

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

    .topbar {
        height: auto;
        padding: 14px 16px;
    }

    .question-counter {
        display: none;
    }

    main {
        width: calc(100% - 24px);
        padding-top: 20px;
    }

    .question-card {
        padding: 22px 18px;
    }

    .question-card h1 {
        font-size: 19px;
    }

    .navigation {
        flex-direction: column-reverse;
    }

    .nav-button {
        width: 100%;
    }

    .question-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .score-card {
        grid-template-columns: 1fr;
    }

    .score-details {
        grid-template-columns: repeat(2, 1fr);
    }

    .result-actions {
        flex-direction: column;
    }
}

/* =========================================================
   A/L Prediction Dashboard
========================================================= */

.prediction-dashboard {
    display: grid;
    grid-template-columns: 1.2fr 1fr;

    margin-bottom: 28px;

    overflow: hidden;

    border: 1px solid var(--border);

    border-radius: 20px;

    background: white;

    box-shadow: var(--shadow);
}

.prediction-main {
    padding: 25px 28px;

    background:
        linear-gradient(
            135deg,
            #eff6ff,
            #ffffff
        );
}

.prediction-label {
    color: var(--primary);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: .1em;

    text-transform: uppercase;
}

.prediction-score {
    display: flex;

    align-items: baseline;

    gap: 7px;

    margin-top: 5px;
}

.prediction-score strong {
    font-size: 48px;

    line-height: 1;

    font-weight: 800;

    color: var(--text);
}

.prediction-score span {
    color: var(--muted);

    font-size: 15px;

    font-weight: 700;
}

.prediction-main p {
    margin-top: 9px;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.6;
}

.prediction-stats {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    align-items: center;
}

.prediction-stats div {
    padding: 20px;

    border-left: 1px solid var(--border);
}

.prediction-stats span {
    display: block;

    color: var(--muted);

    font-size: 11px;
}

.prediction-stats strong {
    display: block;

    margin-top: 4px;

    font-size: 22px;
}


/* =========================================================
   Sidebar Prediction
========================================================= */

.prediction-side-card {
    padding: 20px;

    background: white;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);
}

.prediction-side-header {
    display: flex;

    justify-content: space-between;

    align-items: flex-start;
}

.prediction-side-header strong {
    display: block;

    font-size: 14px;

    font-weight: 800;
}

.prediction-side-header span {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 10px;
}

.prediction-side-header svg {
    width: 23px;
    height: 23px;

    color: var(--primary);
}

.prediction-number {
    display: flex;

    align-items: baseline;

    gap: 5px;

    margin-top: 20px;
}

.prediction-number strong {
    font-size: 40px;

    line-height: 1;

    color: var(--primary);

    font-weight: 800;
}

.prediction-number span {
    color: var(--muted);

    font-size: 13px;

    font-weight: 700;
}

.prediction-range {
    margin-top: 8px;

    color: var(--muted);

    font-size: 11px;

    font-weight: 600;
}

.prediction-progress {
    height: 7px;

    margin-top: 14px;

    overflow: hidden;

    background: #e2e8f0;

    border-radius: 999px;
}

.prediction-progress div {
    width: 0;

    height: 100%;

    background: var(--primary);

    border-radius: inherit;

    transition: width .5s ease;
}

.prediction-message {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 10px;

    margin-top: 13px;

    padding-top: 13px;

    border-top: 1px solid var(--border);
}

.prediction-message span {
    color: var(--muted);

    font-size: 11px;
}

.prediction-message strong {
    color: var(--text);

    font-size: 11px;
}

.prediction-mini-stats {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 6px;

    margin-top: 14px;
}

.prediction-mini-stats div {
    padding: 9px;

    border-radius: 9px;

    background: var(--surface-soft);

    text-align: center;
}

.prediction-mini-stats span {
    display: block;

    color: var(--muted);

    font-size: 9px;
}

.prediction-mini-stats strong {
    display: block;

    margin-top: 2px;

    font-size: 14px;
}

.prediction-note {
    margin-top: 13px;

    color: #94a3b8;

    font-size: 9px;

    line-height: 1.5;
}


/* =========================================================
   Result Prediction
========================================================= */

.result-prediction {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-top: 20px;

    padding: 20px 24px;

    background:
        linear-gradient(
            135deg,
            #eff6ff,
            #f8fafc
        );

    border: 1px solid #bfdbfe;

    border-radius: 16px;
}

.result-prediction > div {
    display: flex;

    align-items: baseline;

    gap: 6px;
}

.result-prediction span {
    color: var(--muted);

    font-size: 12px;
}

.result-prediction strong {
    color: var(--primary);

    font-size: 30px;

    font-weight: 800;
}

.result-prediction small {
    color: var(--muted);

    font-weight: 700;
}

.result-prediction p {
    max-width: 400px;

    color: var(--muted);

    font-size: 11px;

    line-height: 1.6;

    text-align: right;
}


/* =========================================================
   Responsive
========================================================= */

@media (max-width: 950px) {

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

    .prediction-stats div {
        border-top: 1px solid var(--border);
        border-left: none;
    }

    .prediction-stats {
        border-top: 1px solid var(--border);
    }

    .prediction-side-card {
        order: -2;
    }

}


@media (max-width: 650px) {

    .prediction-dashboard {
        border-radius: 15px;
    }

    .prediction-main {
        padding: 20px;
    }

    .prediction-score strong {
        font-size: 40px;
    }

    .prediction-stats div {
        padding: 15px 10px;
    }

    .prediction-stats strong {
        font-size: 18px;
    }

    .result-prediction {
        flex-direction: column;

        align-items: flex-start;
    }

    .result-prediction p {
        text-align: left;
    }
}

/* ZentryCloud realtime profile, leaderboard and integrity UI */
.cloud-profile-panel,
.cloud-leaderboard-panel {
    margin: 0 0 22px;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.cloud-profile-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
}

.cloud-profile-main,
.cloud-section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cloud-profile-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #eff6ff;
    color: var(--primary);
}
.cloud-profile-icon svg { width: 23px; }

.cloud-eyebrow {
    display: block;
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.cloud-profile-main h2,
.cloud-section-heading h2 { margin-top: 3px; font-size: 19px; }
.cloud-profile-main p,
.cloud-section-heading p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.cloud-profile-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.cloud-profile-actions input {
    width: min(270px, 45vw);
    height: 44px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    background: white;
    color: var(--text);
}
.cloud-profile-actions input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }

.cloud-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 10px;
    padding: 0 14px;
    cursor: pointer;
    font-weight: 700;
}
.cloud-button svg { width: 17px; height: 17px; }
.cloud-button.primary { color: #fff; background: var(--primary); }

.cloud-section-heading { justify-content: space-between; margin-bottom: 16px; }
.cloud-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f0fdf4;
    color: #166534;
    font-size: 11px;
}
.cloud-live-badge > span,
.cloud-online-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
}

.cloud-leaderboard {
    display: grid;
    gap: 8px;
}
.cloud-rank-row {
    display: grid;
    grid-template-columns: 38px minmax(0,1fr) 72px;
    gap: 10px;
    align-items: center;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
}
.cloud-rank-row.me { border-color: #93c5fd; background: #eff6ff; }
.cloud-rank { font-size: 13px; font-weight: 900; color: var(--muted); text-align: center; }
.cloud-rank-user { display: flex; min-width: 0; align-items: center; gap: 9px; }
.cloud-avatar {
    width: 32px; height: 32px; flex: 0 0 32px;
    display: grid; place-items: center; border-radius: 9px;
    background: #fff; color: var(--primary); border: 1px solid var(--border);
}
.cloud-avatar svg { width: 15px; }
.cloud-rank-user strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.cloud-rank-user span { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.cloud-rank-score { text-align: right; }
.cloud-rank-score strong { display: block; font-size: 15px; color: var(--primary); }
.cloud-rank-score span { color: var(--muted); font-size: 9px; }
.cloud-empty { padding: 25px; display:flex; align-items:center; justify-content:center; gap:8px; color:var(--muted); font-size:12px; }
.cloud-empty svg { width:18px; }

.zentry-anticheat-notice {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1000;
    width: min(430px, calc(100vw - 36px));
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    background: #fff;
    color: var(--text);
    border: 1px solid #fecaca;
    border-radius: 14px;
    box-shadow: 0 20px 55px rgba(15,23,42,.18);
}
.zentry-anticheat-notice > svg { color: var(--danger); flex: 0 0 auto; }
.zentry-anticheat-notice strong,
.zentry-anticheat-notice span { display:block; }
.zentry-anticheat-notice strong { font-size: 13px; }
.zentry-anticheat-notice span { margin-top: 3px; color: var(--muted); font-size: 11px; line-height:1.55; }
.zentry-anticheat-notice button { margin-left:auto; border:0; background:transparent; color:var(--muted); cursor:pointer; }
.zentry-anticheat-notice button svg { width:16px; }

@media (max-width: 720px) {
    .cloud-profile-panel { flex-direction: column; align-items: stretch; }
    .cloud-profile-actions { flex-direction: column; align-items: stretch; }
    .cloud-profile-actions input { width: 100%; }
    .cloud-section-heading { align-items: flex-start; }
}
