body { 
    padding: 0; 
    margin: 0; 
    font-family: 'industry'; 
    overflow: hidden; 
}
body.center-panel-page {
    min-height: 100dvh;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px 16px;
    box-sizing: border-box;
}
#unity-container { position: fixed; inset: 0; }
#unity-container.unity-desktop { left: auto; top: auto; transform: none; display: grid; grid-template-rows: auto minmax(0, 1fr); }
#unity-container.unity-mobile { width: 100%; height: 100% }

#preview-header { height: 120px; display: flex; align-items: center; padding: 24px 32px 12px; box-sizing: border-box; }
#gritec-logo { 
    width: min(550px, 45vw); 
    height: auto; 
    margin: 0; 
}

#preview-layout { min-height: 0; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; padding: 0 32px 32px; box-sizing: border-box; }
#project-info { 
    min-width: 0;
}

#project-name { margin: 0 0 8px; font-size: 1.5rem; max-width: none; color: #535352; text-transform: uppercase; }
#project-description { margin: 0; max-width: none; color: #535352; }

#unity-viewer { 
    position: relative; 
    min-width: 0; 
    min-height: 0; 
    width: 100%;
    height: 100%;
    overflow: hidden;

    display: flex; 
    align-items: center; 
    justify-content: center; 
}
#preview-layout #unity-canvas { 
    position: static; 
    transform: none; 
    width: 100%; 
    height: 100%; 
    max-width: 1360px; 
    max-height: 850px; 
    box-sizing: border-box;

    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(112, 112, 112, 0.45);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(12px);
}
.preview-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(180, 25, 24, 0.08);
    color: #b41918;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.unity-mobile #unity-canvas { width: 100%; height: 100% }
#unity-loading-bar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none }
#unity-logo { width: 550px; height: 90px; background: url('logo_GRITEC_config_xpress.jpg') no-repeat center; background-size: contain; }
#unity-loading-bar p { text-align: center; font-size: 18px; text-transform: uppercase; color: #969696; font-family: industry, sans-serif; font-weight: 700; font-style: normal; }
#unity-loading-bar #loading-icon { display: block; margin: 8vh auto 0; width: 40px; animation: spin 1s linear infinite; }
#unity-progress-bar-empty { width: 550px; height: 14px; margin-top: 150px; border-radius: 20px; background-color: #f7f7f7; box-shadow: inset 0px 3px 6px #d5d5d5; }
#unity-progress-bar-full { width: 0%; height: 12px; margin-top: 10px; border-radius:20px; background-color: #b41918; }
#unity-footer { position: relative }
.unity-mobile #unity-footer { display: none }
#unity-webgl-logo { float:left; width: 204px; height: 38px; background: url('webgl-logo.png') no-repeat center }
#unity-build-title { float: right; margin-right: 10px; line-height: 38px; font-family: arial; font-size: 18px }
#unity-fullscreen-button { float: right; width: 38px; height: 38px; background: url('fullscreen-button.png') no-repeat center }
#unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none }

.login-box { 
    max-width: 600px; 
    width: 90vw; 
    position: static; 
    transform:  none;

    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items:center; 

    font-family: industry, sans-serif; 
    font-weight: 700; 
    font-style: normal; 
}
.login-box img { max-width: 550px; margin: 20px 0; }
.login-box form { display: flex; flex-direction: column; justify-content: center; align-items: center; margin-top: 30px; }
.login-box h1 { color: #535352; font-size: 18px; }
.login-box label { color: #535352; font-size: 18px; }
.login-box p { margin: none; font-size: 14px; max-width: 18rem; }
.login-box p.error { color: #B41918; }
.login-box p.success { color: #567D8F; }
.login-box input[type=email], .login-box input[type=password], .login-box input[type=text] { width: 18rem; border: none; border-bottom: 1px solid #D5D5D5; padding: 3px 0; margin-top: 20px; font-family: 'industry'; font-weight: 500; font-size: 15px; }
.login-box input[type=email]:focus-visible, .login-box input[type=password]:focus-visible, .login-box input[type=text]:focus-visible { border: none; border-bottom: 2px solid #B41918; outline: none; }
.login-box input[type=submit] { background-color: #567D8F; border: none; border-radius: 25px; margin-top: 20px; padding: 12px 40px; color: white; font-family: industry, sans-serif; font-weight: 700; font-style: normal; font-size: 14px; text-transform: uppercase; box-shadow: 0px 2px 7px #a5a5a5; transition: all 0.3s; }
.login-box input[type=submit]:hover { transform: scale(1.03); }
.login-box select { width: 18rem; border: none; border-bottom: 1px solid #D5D5D5; padding: 3px 0; margin-top: 20px; font-family: 'industry'; font-weight: 500; font-size: 15px; }
.login-box select:focus-visible { border: none; border-bottom: 2px solid #B41918; outline: none; }
.login-box a { margin-top: 10px; color: #919191; font-weight: 300; font-size: 14px; }
.login-box a:first-of-type { margin-top: 20px; }

.agreement-row { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 18px; max-width: 18rem; }
.agreement-row span { text-align: left; font-size: 14px; line-height: 1.2; }
.agreement-row input[type="checkbox"] { width: auto; margin-top: 3px; flex-shrink: 0; }
.agreement-row a { text-decoration: underline; }

.request-details { width: 100%; text-align: left; margin: 10px 0 20px 0; }
.request-row { padding: 10px 12px; border-radius: 8px; background: rgba(255,255,255,0.04); }
.request-label { display: block; font-size: 12px; opacity: 0.75; margin-bottom: 4px; }
.request-value { display: block; font-size: 16px; word-break: break-word; }
.decision-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 30px; }
.decision-actions button { background-color: #567D8F; border: none; border-radius: 25px; padding: 12px 70px; color: white; font-family: industry, sans-serif; font-weight: 700; font-style: normal; font-size: 14px; text-transform: uppercase; box-shadow: 0px 2px 7px #a5a5a5; transition: all 0.3s; }
.decision-actions button#reject-btn, .decision-actions button#blacklist-btn { background-color: #B41918; }
.decision-actions button:hover { transform: scale(1.03); }
#decision-buttons-box { display: none; }

body.tutorial-page {
    min-height: 100vh;
    overflow: auto;
    color: #535352;
}

.tutorial-shell {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 36px 0 48px;
    box-sizing: border-box;
}

.tutorial-header {
    display: grid;
    grid-template-columns: 550px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
    margin-bottom: 34px;
}

.tutorial-logo {
    width: min(550px, 100%);
    height: auto;
    display: block;
}

.tutorial-heading {
    padding: 24px 28px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #dededb;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
}

.tutorial-heading h1 {
    margin: 0 0 10px;
    font-size: 2rem;
    line-height: 1.1;
    color: #535352;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tutorial-heading p {
    margin: 0;
    max-width: 620px;
    color: #6a6a68;
    font-size: 1rem;
    line-height: 1.45;
}

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

.tutorial-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #dededb;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.tutorial-video-wrap {
    background: #eeeeeb;
    border-bottom: 1px solid #dededb;
    aspect-ratio: 16 / 9;
}

.tutorial-video {
    display: block;
    width: 100%;
    height: 100%;
    background: #ffffff;
    object-fit: contain;
}

.tutorial-card-content {
    padding: 20px 22px 22px;
}

.tutorial-card-content h2 {
    margin: 0 0 8px;
    color: #535352;
    font-size: 1.2rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.035em;
}

.tutorial-card-content p {
    margin: 0;
    color: #6a6a68;
    font-size: 0.95rem;
    line-height: 1.45;
}



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

@media (max-width: 1200px) {
    #preview-header { height: auto; padding: 20px 20px 10px; }
    #gritec-logo { width: min(420px, 80vw); }
    #preview-layout { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); padding: 0 20px 20px; gap: 16px; }
    #project-info { max-height: 120px; overflow: auto;}
}

@media (max-width: 900px), (pointer: coarse) and (max-height: 600px) {
    html,
    body {
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    #unity-container.unity-mobile,
    #unity-container.unity-desktop {
        position: fixed;
        inset: 0;
        left: auto;
        top: auto;
        transform: none;
        width: 100%;
        height: 100dvh;
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
    }

    #preview-header {
        height: 52px;
        padding: 8px 12px 4px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
    }

    #gritec-logo {
        width: min(220px, 60vw);
        height: auto;
        margin: 0;
    }

    #preview-layout {
        min-height: 0;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
        gap: 6px;
        padding: 0 10px 10px;
        box-sizing: border-box;
    }

    #project-info {
        min-height: 0;
        max-height: 74px;
        overflow: auto;
        padding: 2px 0 4px;
        box-sizing: border-box;
    }

    #project-name {
        margin: 0 0 3px;
        font-size: 0.95rem;
        line-height: 1.15;
        max-width: none;
    }

    #project-description {
        margin: 0;
        font-size: 0.78rem;
        line-height: 1.2;
        max-width: none;
    }

    #unity-viewer {
        position: relative;
        min-width: 0;
        min-height: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;

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

    #preview-layout #unity-canvas {
        position: static;
        transform: none;
        display: block;
        box-sizing: border-box;
        border: 1px solid #707070;
        background: #FFFFFF;
        touch-action: none;
    }

    #unity-loading-bar {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    #unity-logo {
        width: min(260px, 75vw);
        height: 50px;
    }

    #unity-progress-bar-empty {
        width: min(260px, 75vw);
        margin-top: 70px;
    }
}

@media (max-width: 900px) {
    body.tutorial-page {
        overflow: auto;
    }

    .tutorial-shell {
        width: min(100% - 24px, 720px);
        padding: 18px 0 28px;
    }

    .tutorial-header {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 18px;
    }

    .tutorial-logo {
        width: min(240px, 70vw);
    }

    .tutorial-heading {
        padding: 16px;
        border-radius: 16px;
    }

    .tutorial-heading h1 {
        font-size: 1.35rem;
    }

    .tutorial-heading p {
        font-size: 0.9rem;
    }

    .tutorial-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .tutorial-card {
        border-radius: 16px;
    }

    .tutorial-card-content {
        padding: 15px 16px 17px;
    }

    .tutorial-card-content h2 {
        font-size: 1rem;
    }

    .tutorial-card-content p {
        font-size: 0.86rem;
    }
}

@media (max-height: 460px) and (pointer: coarse) {
    #project-info {
        max-height: 34px;
    }

    #project-description {
        display: none;
    }

    #preview-header {
        height: 42px;
        padding-top: 5px;
        padding-bottom: 3px;
    }

    #gritec-logo {
        width: min(180px, 45vw);
    }
}