

/* =====================================================
GLOBAL
===================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #eef2f6;
    color: #222;
}


/* =====================================================
OTP GATE
===================================================== */

.identity-overlay {

    position: fixed;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(15,23,42,.97),
            rgba(18,61,122,.96)
        );

    z-index: 99999;

    display: flex;

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

    padding: 20px;

}

.identity-card {

    width: 100%;
    max-width: 450px;

    background: white;

    border-radius: 14px;

    box-shadow:
        0 20px 60px
        rgba(0,0,0,.35);

    overflow: hidden;

}

.identity-header {

    background: #1a252f;

    color: white;

    padding: 24px;

}

.identity-brand {

    color: #64b5f6;

    font-size: 20px;

    font-weight: bold;

    margin-bottom: 8px;

}

.identity-header h1 {

    margin: 0 0 6px;

    font-size: 24px;

}

.identity-header p {

    margin: 0;

    color: #d6dee5;

    font-size: 13px;

    line-height: 1.5;

}

.identity-body {

    padding: 25px;

}

.identity-field {

    margin-bottom: 17px;

}

.identity-field label {

    display: block;

    margin-bottom: 6px;

    font-size: 13px;

    font-weight: bold;

    color: #334155;

}

.identity-field input {

    width: 100%;

    padding: 12px 13px;

    border: 1px solid #cbd5e1;

    border-radius: 6px;

    font-size: 15px;

}

.identity-field input:focus {

    outline: none;

    border-color: #1d4ed8;

    box-shadow:
        0 0 0 3px
        rgba(29,78,216,.12);

}

.identity-button {

    width: 100%;

    padding: 13px;

    border: 0;

    border-radius: 6px;

    background: #123d7a;

    color: white;

    font-size: 14px;

    font-weight: bold;

    cursor: pointer;

}

.identity-button:hover {

    background: #0d2f61;

}

.identity-button:disabled {

    opacity: .55;

    cursor: wait;

}

.identity-secondary {

    margin-top: 10px;

    background: #64748b;

}

.identity-message {

    display: none;

    padding: 10px 12px;

    border-radius: 5px;

    margin-bottom: 15px;

    font-size: 13px;

    line-height: 1.5;

}

.identity-message.success {

    display: block;

    background: #e8f5e9;

    color: #1b5e20;

    border-left: 4px solid #2e7d32;

}

.identity-message.error {

    display: block;

    background: #ffebee;

    color: #a51d27;

    border-left: 4px solid #d32f2f;

}

.identity-message.info {

    display: block;

    background: #eef5ff;

    color: #1e3a8a;

    border-left: 4px solid #2563eb;

}

.identity-privacy {

    margin-top: 17px;

    padding-top: 14px;

    border-top: 1px solid #eee;

    font-size: 11px;

    color: #64748b;

    line-height: 1.5;

}

#otpStep {
    display: none;
}


/* =====================================================
TOP BAR
===================================================== */

.top-bar {

    background: #1a252f;

    color: white;

    padding: 12px 20px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    position: sticky;

    top: 0;

    z-index: 100;

}

.brand {

    font-size: 17px;

    font-weight: bold;

    color: #64b5f6;

}

.top-right {

    display: flex;

    align-items: center;

    gap: 20px;

}

.top-info {

    font-size: 13px;

    color: #ddd;

}

.student-chip {

    display: none;

    background: #263746;

    padding: 6px 10px;

    border-radius: 20px;

    font-size: 11px;

    color: #e2e8f0;

}


/* =====================================================
MAIN
===================================================== */

.app-container {

    display: flex;

    max-width: 1500px;

    margin: auto;

    background: white;

    min-height: 100vh;

}


/* =====================================================
WORKPAPER
===================================================== */

.floating-tb {

    width: 340px;

    flex-shrink: 0;

    border-right: 2px solid #ccc;

    background: white;

    position: sticky;

    top: 48px;

    height: calc(100vh - 48px);

    overflow-y: auto;

}

.tb-header {

    background: #1a252f;

    color: white;

    padding: 12px;

    font-weight: bold;

}

.tb-table {

    width: 100%;

    border-collapse: collapse;

    font-size: 12px;

}

.tb-table th,
.tb-table td {

    padding: 7px 8px;

    border-bottom: 1px solid #ddd;

}

.tb-table th {

    background: #f0f4f8;

    text-align: left;

}

.tb-table .num {

    text-align: right;

    font-family: monospace;

}

.tb-table tr {

    transition:
        background-color .18s ease,
        border-color .18s ease;

}

.tb-table tr.wp-verified {

    border-left: 4px solid #2e7d32;

}

.tb-table tr.wp-verified td {

    background: #e8f5e9 !important;

    color: #1b5e20;

    font-weight: 600;

}

.note {

    background: #fff7d6;

    padding: 12px;

    margin: 12px;

    border: 1px solid #e1d69b;

    border-radius: 5px;

    font-size: 12px;

    transition: .2s ease;

}

.note.wp-verified {

    background: #e8f5e9 !important;

    border:
        1px solid #2e7d32 !important;

    border-left:
        4px solid #2e7d32 !important;

    color: #1b5e20;

}


/* =====================================================
FORM
===================================================== */

.form-workspace {

    flex: 1;

    padding: 25px;

}

.irs-1065 {

    max-width: 1000px;

    margin: auto;

    background: white;

    border: 1px solid #333;

    padding: 20px;

}

.irs-header {

    display: flex;

    border-bottom: 3px solid #111;

    padding-bottom: 10px;

    margin-bottom: 15px;

}

.irs-title-box {

    width: 120px;

    border-right: 2px solid #222;

    margin-right: 20px;

}

.irs-title-box small {

    font-size: 13px;

}

.irs-title-box h2 {

    font-size: 42px;

    margin: 0;

}

.irs-title-main h1 {

    margin: 0 0 5px;

    font-size: 25px;

}

.irs-title-main small {

    color: #555;

}


/* =====================================================
SECTION TITLE
===================================================== */

.irs-section-title {

    background: #1a252f;

    color: white;

    padding: 8px 10px;

    font-weight: bold;

    margin-top: 22px;

}


/* =====================================================
TABLE
===================================================== */

.irs-grid {

    width: 100%;

    border-collapse: collapse;

}

.irs-grid td,
.irs-grid th {

    border: 1px solid #777;

    padding: 7px;

    font-size: 13px;

}

.irs-line-num {

    width: 50px;

    text-align: center;

    font-weight: bold;

}

.irs-input-cell {

    width: 170px;

}

.irs-input-cell input {

    width: 100%;

    padding: 7px;

    text-align: right;

    border: 1px solid #777;

    font-size: 13px;

    transition: .15s ease;

}

.irs-input-cell input:focus {

    outline:
        2px solid #1976d2;

}

input[readonly] {

    background: #eef5ff;

    font-weight: bold;

}


/* =====================================================
VALIDATION
===================================================== */

.irs-input-cell input.valid {

    background:
        #e8f5e9 !important;

    border:
        2px solid #2e7d32 !important;

    color: #1b5e20;

    font-weight: bold;

}

.irs-input-cell input.invalid {

    background:
        #ffebee !important;

    border:
        2px solid #d32f2f !important;

    color: #b71c1c;

}


/* =====================================================
BUTTONS
===================================================== */

.action-bar {

    display: flex;

    gap: 10px;

    margin-top: 25px;

    padding: 15px;

    background: #f4f6f8;

    border: 1px solid #ccc;

}

.btn {

    background: #123d7a;

    color: white;

    border: none;

    padding: 11px 18px;

    border-radius: 5px;

    cursor: pointer;

    font-weight: bold;

}

.btn:hover {

    background: #0d2f61;

}

.btn-secondary {

    background: #757575;

}

.btn-secondary:hover {

    background: #616161;

}


/* =====================================================
PROFESSIONAL REVIEW PANEL
===================================================== */

.review-dashboard {

    margin-top: 22px;

    border: 1px solid #cbd5e1;

    border-radius: 8px;

    overflow: hidden;

    background: #fff;

}

.review-dashboard-header {

    background: #1a252f;

    color: white;

    padding: 18px 20px;

}

.review-dashboard-header h2 {

    margin: 0 0 5px;

    font-size: 19px;

}

.review-dashboard-header p {

    margin: 0;

    font-size: 13px;

    color: #d6dee5;

}

.review-status-banner {

    padding: 16px 20px;

    font-weight: bold;

    border-bottom: 1px solid #ddd;

}

.review-status-pass {

    background: #e8f5e9;

    color: #1b5e20;

}

.review-status-progress {

    background: #fff8e1;

    color: #7a5200;

}

.review-status-fail {

    background: #ffebee;

    color: #a51d27;

}

.review-metrics {

    display: grid;

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

    gap: 1px;

    background: #d7dde3;

}

.review-metric {

    background: white;

    padding: 15px;

}

.review-metric-label {

    color: #64748b;

    font-size: 11px;

    text-transform: uppercase;

    font-weight: bold;

}

.review-metric-value {

    margin-top: 5px;

    font-size: 24px;

    font-weight: bold;

    color: #1a252f;

}

.review-body {

    padding: 20px;

}

.review-section {

    margin-bottom: 22px;

}

.review-section-title {

    font-weight: bold;

    color: #1a252f;

    border-bottom:
        2px solid #1a252f;

    padding-bottom: 7px;

    margin-bottom: 10px;

}

.review-point {

    padding: 12px 14px;

    margin-bottom: 8px;

    border-radius: 4px;

    background: #fafafa;

    border-left:
        4px solid #d32f2f;

}

.review-point.incomplete {

    border-left-color: #ef6c00;

    background: #fffaf2;

}

.review-point-title {

    font-weight: bold;

    margin-bottom: 4px;

}

.review-point-status {

    font-size: 10px;

    text-transform: uppercase;

    font-weight: bold;

    margin-left: 8px;

    color: #d32f2f;

}

.review-point.incomplete
.review-point-status {

    color: #ef6c00;

}

.review-point-text {

    font-size: 13px;

    color: #475569;

    line-height: 1.5;

}

.review-positive {

    background: #edf7ee;

    border-left:
        4px solid #2e7d32;

    padding: 12px 14px;

    color: #1b5e20;

}

.sheet-status {

    margin-top: 10px;

    font-size: 11px;

    color: #64748b;

}


/* =====================================================
MOBILE
===================================================== */

@media(max-width:900px) {

    .app-container {
        display: block;
    }

    .floating-tb {

        width: 100%;

        height: auto;

        position: relative;

        top: 0;

        border-right: none;

    }

    .form-workspace {
        padding: 10px;
    }

    .top-info {
        display: none;
    }

    .review-metrics {

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

    }

}


[hidden]{display:none!important}.case-facts{font-size:13px;line-height:1.6;background:#f0f4f8;padding:15px;margin:15px 0}.case-facts h2{font-size:18px;margin:0}.note{line-height:1.5}.nav{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0}.nav a{color:#12477d;font-size:13px}.hint{font-size:12px;line-height:1.5;color:#475569;margin:8px 0}details{margin:12px 0}summary{cursor:pointer;font-weight:bold;padding:8px;background:#eef2f6}input.invalid{border:2px solid #c62828}output{display:block;text-align:right;font-weight:bold}.status{font-size:13px;padding:10px}.checks{line-height:1.6;font-size:13px}.checks .pass{color:#166534}.checks .fail{color:#a51d27}textarea{width:100%;min-height:80px}.locked-card{max-width:600px;margin:80px auto;padding:32px;background:white;border-radius:12px}.irs-input-cell{width:150px}.irs-grid td label{display:block}.error-text{display:block;font-size:11px;color:#a51d27}.correct-text{color:#166534}.key-table{font-size:12px;width:100%;border-collapse:collapse}.key-table td{padding:7px;border-bottom:1px solid #ddd}.top-bar a{color:#a6d6ff}button:disabled{opacity:.5;cursor:wait}@media(max-width:500px){.irs-title-box{width:100px;margin-right:10px}.irs-title-box h2{font-size:28px}.irs-title-main h1{font-size:19px}.irs-1065{padding:10px}.irs-input-cell{width:105px}.irs-line-num{width:30px}.irs-grid td{font-size:12px;padding:4px}.top-right{gap:8px}.floating-tb{max-height:55vh;overflow:auto}}@media print{.top-bar,.action-bar,.nav,#instructorKey,.floating-tb{display:none!important}.app-container{display:block}.form-workspace{padding:0}.irs-1065{max-width:none}input{border:0!important}details{break-inside:avoid}.irs-grid{break-inside:auto}.irs-grid tr{break-inside:avoid}.irs-section-title{break-after:avoid}}
.form-workspace{min-width:0}.irs-grid{table-layout:fixed}.irs-grid td:first-child{width:52px}.irs-grid td:last-child{width:150px}.irs-grid td{overflow-wrap:anywhere}.irs-input-cell input{min-width:0}.hint,.case-facts,.checks{overflow-wrap:anywhere}@media(max-width:500px){.irs-grid td:first-child{width:32px}.irs-grid td:last-child{width:105px}.irs-header{min-width:0}.irs-title-main{min-width:0}.irs-title-box{flex-shrink:0;width:96px}.top-bar{gap:8px;padding:12px 10px}.top-right{flex-wrap:wrap;justify-content:flex-end}.student-chip{max-width:170px;overflow-wrap:anywhere}.top-bar .brand{font-size:14px;flex-shrink:0}}
.action-bar{flex-wrap:wrap}.action-bar button{max-width:100%}
