.login-card { max-width: 520px; padding: 22px 24px 22px; }
.login-head p { margin-bottom: 12px; }
.login-field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 6px;
}
.login-field-head label { margin: 0; min-width: 0; }

body.is-welcome .page-main {
    width: 100%;
    max-width: none;
    padding: 0;
    position: relative;
    z-index: 1;
}
body.is-welcome .site-header {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 80;
    background: transparent;
    pointer-events: auto;
    overflow: visible;
}
body.is-welcome .alert {
    width: min(1120px, calc(100% - 32px));
    margin: 88px auto 0;
}

.welcome-band {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}
.welcome-hero-full {
    position: relative;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(900px 420px at 12% 0%, rgba(90, 180, 255, 0.28), transparent 55%),
        radial-gradient(700px 320px at 92% 20%, rgba(196, 92, 38, 0.35), transparent 50%),
        linear-gradient(165deg, #071422 0%, var(--navy) 42%, #0a1c2e 100%);
    color: #fff;
    padding: 108px 0 12px;
    text-align: center;
    overflow: hidden;
}
.welcome-hero-full > .welcome-band {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
    pointer-events: none;
}
.hero-orb-a {
    width: 280px;
    height: 280px;
    left: -60px;
    top: 80px;
    background: radial-gradient(circle, rgba(120, 210, 255, 0.45), transparent 70%);
    animation: orb-drift 12s ease-in-out infinite;
}
.hero-orb-b {
    width: 220px;
    height: 220px;
    right: 8%;
    top: 40px;
    background: radial-gradient(circle, rgba(255, 140, 80, 0.4), transparent 70%);
    animation: orb-drift 9s ease-in-out infinite reverse;
}
@keyframes orb-drift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(24px, 18px, 0) scale(1.08); }
}
.welcome-hero-full h1 em {
    font-style: normal;
    font-weight: 800;
    background: linear-gradient(90deg, #fff, #9fd4ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.welcome-cta-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: min(320px, 100%);
    max-width: 100%;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: 16px;
    padding: 14px 20px;
    text-align: center;
    box-shadow: 0 16px 40px rgba(0,0,0,0.28), 0 0 0 1px rgba(255,255,255,0.08) inset;
    transform: translateZ(0);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.welcome-cta-btn:hover { transform: translateY(-4px) scale(1.02); }
.welcome-kicker,
.welcome-hero-full h1,
.welcome-sub,
.welcome-cta {
    position: relative;
    z-index: 6;
    pointer-events: auto;
}
.welcome-device {
    position: relative;
    z-index: 1;
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    margin: 8px 0 0;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    align-items: center;
    justify-items: center;
    gap: 4px;
    overflow: visible;
    perspective: 1600px;
    container-type: size;
}
.laptop {
    width: min(100%, 100cqw, calc((100cqh - 8px) * 16 / 9 * 0.9), 640px);
    max-height: 100%;
    height: auto;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    transform: rotateX(10deg) rotateY(-18deg);
    transform-origin: center center;
    transform-style: preserve-3d;
    animation: laptop-float 7s ease-in-out infinite;
    grid-column: 2;
}
@keyframes laptop-float {
    0%, 100% { transform: rotateX(10deg) rotateY(-18deg) translateY(0); }
    50% { transform: rotateX(7deg) rotateY(-12deg) translateY(-6px); }
}
@keyframes laptop-float-sm {
    0%, 100% { transform: rotateX(6deg) rotateY(-8deg) translateY(0); }
    50% { transform: rotateX(4deg) rotateY(-4deg) translateY(-4px); }
}
.laptop-lid {
    background: linear-gradient(165deg, #f3f4f7 0%, #d5d8df 48%, #aeb3bc 100%);
    border-radius: 16px;
    padding: 9px;
    box-shadow:
        0 22px 48px rgba(0,0,0,0.38),
        0 0 0 1px rgba(255,255,255,0.45) inset,
        0 0 0 1px rgba(0,0,0,0.12);
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
}
.laptop-cam { display: none; }
.laptop-screen {
    position: relative;
    background: linear-gradient(180deg, #eef5ff, #d9e6f4);
    border-radius: 8px;
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.28);
    pointer-events: none;
    container-type: size;
}
.laptop-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.65s ease;
    z-index: 0;
    pointer-events: none;
}
.laptop-poster.is-on { opacity: 1; }
.screen-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.22), transparent 40%, rgba(80,160,255,0.1));
    pointer-events: none;
    z-index: 1;
}
.laptop-hinge,
.laptop-deck,
.laptop-keys,
.laptop-track,
.laptop-base,
.laptop-shadow { display: none; }
.laptop-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: clamp(26px, 16cqmin, 72px);
    height: clamp(26px, 16cqmin, 72px);
    border: 0;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow:
        0 0.16em 0.42em rgba(196, 92, 38, 0.35),
        0 0 0 0.14em rgba(196, 92, 38, 0.22);
    font-size: clamp(26px, 16cqmin, 72px);
    transition: transform 0.2s ease;
    pointer-events: auto;
    z-index: 4;
}
.laptop-play:hover { transform: translate(-50%, -50%) scale(1.08); }
.laptop-nav {
    position: static;
    align-self: center;
    justify-self: center;
    z-index: 5;
    pointer-events: auto;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(196, 92, 38, 0.35);
}
.laptop-prev { grid-column: 1; }
.laptop-next { grid-column: 3; }
.laptop-nav:hover { background: #a84c1f; }
.laptop-nav.is-off {
    visibility: hidden;
    pointer-events: none;
}
.welcome-kicker {
    margin: 8px 0 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    opacity: 0.8;
    color: #fff;
    flex-shrink: 0;
}
.welcome-hero-full h1 {
    margin: 0 auto 14px;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.15;
    max-width: 16em;
    font-weight: 650;
    flex-shrink: 0;
}
.welcome-sub {
    margin: 0 auto 20px;
    max-width: 38em;
    line-height: 1.55;
    font-size: clamp(14px, 1.6vw, 16px);
    opacity: 0.9;
    flex-shrink: 0;
}
.welcome-cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 16px;
    flex-shrink: 0;
}
.welcome-stats {
    flex: 0 0 auto;
    position: relative;
    z-index: 6;
    width: 100%;
    margin: 2px 0 10px;
    padding: 0;
}
.welcome-stats-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-width: 560px;
    margin-inline: auto;
}
.welcome-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 0;
}
.welcome-stat strong {
    font-size: clamp(26px, 3.4vw, 36px);
    font-weight: 750;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
    color: #fff;
}
.welcome-stat span {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.72;
    font-weight: 650;
}
.welcome-cta-btn strong { font-size: 17px; }
.welcome-cta-btn small {
    display: block;
    opacity: 0.88;
    font-size: 12px;
    margin-top: 4px;
    line-height: 1.35;
}

.mock-ui { padding: 14px; height: 100%; box-sizing: border-box; }
.mock-ui[hidden] { display: none !important; }
.laptop-play[hidden] { display: none !important; }
.mock-top { display: flex; gap: 6px; margin-bottom: 14px; }
.mock-top span {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent);
}
.mock-top span:nth-child(2) { background: #e8a07a; }
.mock-top span:nth-child(3) { background: #d7c4b4; }
.mock-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.mock-stats i {
    display: block;
    height: 56px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(196, 92, 38, 0.16);
}
.mock-stats i:first-child { background: linear-gradient(180deg, #fff, #f7e4d8); }
.mock-lines i {
    display: block;
    height: 10px;
    border-radius: 6px;
    background: #d7e0ea;
    margin-bottom: 8px;
}
.mock-lines i:nth-child(2) { width: 86%; }
.mock-lines i:nth-child(3) { width: 72%; }
.mock-caption {
    position: absolute;
    left: 14px;
    bottom: 14px;
    background: rgba(22,50,79,0.88);
    color: #fff;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    z-index: 2;
}
.laptop-play span {
    display: block;
    width: 0;
    height: 0;
    margin-left: 0.08em;
    border-style: solid;
    border-width: 0.16em 0 0.16em 0.26em;
    border-color: transparent transparent transparent var(--navy);
}

.welcome-panel { padding: 56px 0 48px; }
.welcome-panel.is-soft { background: #fff; }
.welcome-panel h2 { font-size: 26px; margin: 0 0 8px; }
.welcome-news-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.welcome-news-head h2 { margin: 0; }
.news-more {
    font-weight: 650;
    color: var(--navy);
    text-decoration: none;
    white-space: nowrap;
}
.news-more:hover { color: var(--accent); }
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.news-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    min-width: 0;
    height: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.news-card:hover { transform: translateY(-2px); }
.news-card-img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(160deg, #d7e3ef, #e8ddd4);
    overflow: hidden;
    flex: 0 0 auto;
}
.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.news-card-body { padding: 10px 12px 12px; min-width: 0; }
.news-card-meta {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
    gap: 8px;
}
.news-card-date,
.news-card-views {
    font-size: 11px;
    font-weight: 650;
    color: var(--muted);
}
.news-card-views {
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
}
.news-card h3 {
    margin: 6px 0 0;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 650;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}
.news-card-author {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.news-read { max-width: none; width: 100%; }
.welcome-news .news-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 980px) {
    .welcome-news .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .welcome-news .news-grid { grid-template-columns: 1fr; }
}
.news-list-tools { margin: 0 0 18px; }
.news-meta {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px 28px;
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.55;
}
.news-meta > p { margin: 0; }
.news-read h1 { margin: 14px 0 12px; font-size: 28px; line-height: 1.25; }
.news-read-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: none;
    object-fit: cover;
    border-radius: 14px;
    margin: 0;
    display: block;
}
.news-share {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 0 auto;
    font-size: 14px;
    flex: 0 0 auto;
}
@media (max-width: 860px) {
    .news-meta {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "date views"
            "author author"
            "share share";
        justify-content: start;
        align-items: baseline;
        column-gap: 20px;
        row-gap: 6px;
    }
    .news-fact-date { grid-area: date; }
    .news-fact-views { grid-area: views; justify-self: start; }
    .news-fact-author { grid-area: author; }
    .news-share {
        grid-area: share;
        margin-left: 0;
        flex-wrap: wrap;
    }
}
.news-read-body { font-size: 16px; line-height: 1.65; }
.news-read-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 10px 0;
}
.news-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
}
.news-gallery img,
.news-read-body .news-gal-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin: 0;
    border-radius: 12px;
    cursor: zoom-in;
    display: block;
    background: #eef2f6;
}
@media (max-width: 720px) {
    .news-gallery { grid-template-columns: 1fr; }
}
.news-read-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}
.news-read-body td,
.news-read-body th {
    border: 1px solid var(--line);
    padding: 8px 10px;
}
.news-author-more {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--line, #d4cfc4);
}
.news-author-more h2 { font-size: 20px; margin: 0 0 14px; }
.news-author-more h2 a {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.news-author-more h2 a:hover { color: var(--accent); }
.news-author-more .news-more-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 980px) {
    .news-author-more .news-more-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .news-author-more .news-more-row { grid-template-columns: 1fr; }
    .news-more-row .news-card:nth-child(n + 2) { display: none; }
}
.news-yt {
    position: relative;
    width: 100%;
    max-width: 720px;
    aspect-ratio: 16 / 9;
    margin: 14px auto;
    border-radius: 14px;
    overflow: hidden;
    background: #111 center / cover no-repeat;
}
.news-read-body .news-yt.is-portrait {
    width: min(280px, 100%);
    max-width: 280px;
    aspect-ratio: 9 / 16;
    margin-left: auto;
    margin-right: auto;
}
.news-yt-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
}
.news-yt.is-started .news-yt-poster,
.news-yt:not(.is-paused):not(.is-ended) .news-yt-poster {
    opacity: 0;
}
@media (max-width: 700px) {
    .news-read-body .news-yt:not(.is-portrait) {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0;
        margin-right: 0;
    }
}
.news-yt iframe,
.news-yt .news-yt-host {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    pointer-events: none;
    z-index: 2;
}
.news-yt .edu-yt-ui {
    z-index: 4;
}
.news-yt:not(.is-paused):not(.is-ended) .news-yt-play::after {
    left: 10px;
    top: 9px;
    width: 4px;
    height: 14px;
    border: 0;
    background: #fff;
    box-shadow: 8px 0 0 #fff;
}
.news-share-label { font-weight: 700; margin-right: 4px; }
.news-share-ico {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: #fff;
    border: 0;
    cursor: pointer;
    text-decoration: none;
}
.news-share-ico:hover { background: var(--accent); color: #fff; }
.news-filter { margin: 0 0 22px; }
.news-pager {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 22px;
    flex-wrap: wrap;
}
.welcome-lead { margin: 0 0 22px; color: var(--muted); }
.welcome-cats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 12px;
}
.welcome-cat {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    min-height: 118px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.welcome-cat:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.welcome-cat h3 { margin: 0 0 6px; font-size: 16px; }
.welcome-cat p { margin: 0; color: var(--muted); font-size: 13px; }
.welcome-cat span {
    display: inline-block;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
}

.welcome-acc details {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    margin-bottom: 10px;
    overflow: hidden;
}
.welcome-acc summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 18px;
    font-weight: 650;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.welcome-acc summary::-webkit-details-marker { display: none; }
.welcome-acc summary::after {
    content: "+";
    font-size: 20px;
    color: var(--navy);
    font-weight: 400;
}
.welcome-acc details[open] summary::after { content: "–"; }
.welcome-acc details p {
    margin: 0;
    padding: 0 18px 16px;
    color: var(--muted);
    line-height: 1.6;
}

.welcome-dialog {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    padding: 0;
    width: min(800px, calc(100% - 24px));
    background: linear-gradient(180deg, rgba(48, 70, 94, 0.72), rgba(22, 40, 60, 0.78));
    backdrop-filter: blur(22px) saturate(1.15);
    -webkit-backdrop-filter: blur(22px) saturate(1.15);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    color: #fff;
}
.welcome-dialog::backdrop { background: rgba(4, 10, 18, 0.72); }
.welcome-dialog-x {
    position: absolute;
    right: 10px;
    top: 8px;
    border: 0;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
    color: #fff;
    z-index: 2;
}
.edu-guide-in { padding: 40px 20px 22px; }
.edu-guide-dialog {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.edu-guide-yt {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
}
.edu-guide-yt:fullscreen,
.edu-guide-yt:-webkit-full-screen {
    aspect-ratio: auto;
    width: 100%;
    height: 100%;
    border-radius: 0;
    background: #000;
}
.edu-guide-yt.is-portrait {
    width: min(340px, 100%);
    max-height: min(70vh, 640px);
    aspect-ratio: 9 / 16;
    margin-inline: auto;
}
.edu-guide-yt.is-portrait:fullscreen,
.edu-guide-yt.is-portrait:-webkit-full-screen {
    width: min(100%, calc(100vh * 9 / 16));
    height: 100%;
    max-height: 100%;
    aspect-ratio: 9 / 16;
    margin: auto;
    border-radius: 0;
}
.edu-guide-yt iframe,
#edu-guide-yt {
    position: absolute;
    left: 0;
    top: -6%;
    width: 100%;
    height: 118%;
    border: 0;
    display: block;
    pointer-events: none;
    transform: none;
    filter: none;
}
.edu-yt-ui {
    position: absolute;
    inset: 0;
    z-index: 2;
}
.edu-yt-stage {
    position: absolute;
    inset: 0 0 86px;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    cursor: pointer;
}
.edu-yt-big {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    border-radius: 50%;
    background: rgba(8, 12, 18, 0.55);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}
.edu-yt-big::after {
    content: "";
    position: absolute;
    left: 26px;
    top: 20px;
    border-style: solid;
    border-width: 12px 0 12px 18px;
    border-color: transparent transparent transparent #fff;
}
.edu-guide-yt.is-paused .edu-yt-big,
.edu-guide-yt.is-ended .edu-yt-big {
    opacity: 1;
}
.edu-yt-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 86px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 0 10px 10px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.55) 42%, #000 78%);
    box-sizing: border-box;
}
.edu-yt-btn {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border: 0;
    padding: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    position: relative;
}
.edu-yt-btn::after {
    content: "";
    position: absolute;
    left: 11px;
    top: 8px;
    border-style: solid;
    border-width: 8px 0 8px 12px;
    border-color: transparent transparent transparent #fff;
}
.edu-guide-yt:not(.is-paused):not(.is-ended) #edu-yt-play::after {
    left: 10px;
    top: 9px;
    width: 4px;
    height: 14px;
    border: 0;
    background: #fff;
    box-shadow: 8px 0 0 #fff;
}
.edu-yt-btn-fs::after {
    left: 8px;
    top: 8px;
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-radius: 2px;
    background: transparent;
    box-sizing: border-box;
}
.edu-yt-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    min-width: 36px;
    font-variant-numeric: tabular-nums;
}
.edu-yt-seek {
    flex: 1 1 auto;
    height: 4px;
    margin: 0;
    accent-color: var(--accent, #e07a4a);
    cursor: pointer;
}
#edu-guide-file,
#edu-guide-photo {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 14px;
    background: #000;
    display: block;
    object-fit: cover;
    object-position: center;
}
.edu-guide-yt[hidden],
#edu-guide-file[hidden],
#edu-guide-photo[hidden],
#edu-guide-copy[hidden] {
    display: none !important;
}
.welcome-tour {
    margin: 14px 0 0;
    padding: 0;
    text-align: left;
}
.welcome-tour h2 {
    margin: 0 0 8px;
    padding: 0;
    color: #fff;
    text-align: left;
}
.welcome-tour p {
    margin: 0;
    padding: 0;
    color: rgba(255,255,255,0.78);
    line-height: 1.6;
    text-align: left;
}
.welcome-tour h2:empty,
.welcome-tour p:empty { display: none; }
.welcome-tour-kicker {
    margin: 0 0 8px;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffb089;
    font-weight: 700;
}

@media (max-width: 860px) {
    .welcome-cats { grid-template-columns: 1fr 1fr; }
    .welcome-cta { gap: 8px; }
    .welcome-panel { padding: 40px 0 36px; }
    .welcome-hero-full {
        height: 100vh;
        height: 100dvh;
        height: 100svh;
        min-height: 100svh;
        max-height: 100svh;
        padding: 96px 0 8px;
        overflow: hidden;
    }
    .welcome-device {
        flex: 1 1 0;
        min-height: 0;
        margin-top: 44px;
        grid-template-columns: minmax(0, 1fr);
        padding: 0 8px 10px;
        align-items: start;
        touch-action: pan-y;
    }
    .laptop {
        grid-column: 1;
        animation-name: laptop-float-sm;
        transform: rotateX(6deg) rotateY(-8deg);
    }
    .laptop-nav {
        display: none;
    }
    .welcome-cta-btn { padding: 10px 16px; }
}
@media (max-width: 520px) {
    .welcome-cats { grid-template-columns: 1fr; }
    .welcome-hero-full h1 { font-size: clamp(24px, 8vw, 32px); }
    .welcome-kicker { font-size: 11px; }
}
@media (max-height: 820px) and (min-width: 861px) {
    .welcome-hero-full { padding: 96px 0 10px; }
    .welcome-hero-full h1 { font-size: clamp(24px, 3.2vw, 34px); margin-bottom: 8px; }
    .welcome-sub { margin-bottom: 10px; }
    .welcome-cta { margin-bottom: 10px; }
    .welcome-cta-btn { padding: 10px 16px; }
    .welcome-stat strong { font-size: 22px; }
    .welcome-stats { padding: 0 0 2px; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-orb { animation: none; }
    .laptop {
        animation: none;
        transform: rotateX(10deg) rotateY(-18deg);
    }
}

.page-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 12px;
    width: 100%;
    margin: 0 0 8px;
}
.page-head-row h1 {
    margin: 0;
    min-width: 0;
    flex: 1 1 auto;
}
.page-head-row .guide-chip,
.page-head-row .page-guide-head {
    position: static;
    flex: 0 0 auto;
    margin-left: auto;
}
@media (min-width: 861px) {
    .students-list-admin {
        table-layout: fixed !important;
        width: 100%;
    }
    .students-list-admin th,
    .students-list-admin td {
        min-width: 0;
        overflow-wrap: anywhere;
    }
    .students-list-admin th.col-name,
    .students-list-admin td.col-name { width: 22% !important; }
    .students-list-admin th.col-code,
    .students-list-admin td.col-code { width: 12% !important; }
    .students-list-admin th.col-school,
    .students-list-admin td.col-school { width: 16% !important; }
    .students-list-admin th.col-grade,
    .students-list-admin td.col-grade { width: 8% !important; }
    .students-list-admin th.col-track,
    .students-list-admin td.col-track { width: 10% !important; }
    .students-list-admin th.col-status,
    .students-list-admin td.col-status { width: 12% !important; white-space: nowrap; }
    .students-list-admin th.col-actions,
    .students-list-admin td.col-actions { width: 20% !important; }
    .students-list td.col-status,
    .students-list td.col-period,
    .students-list th.col-status,
    .students-list th.col-period { white-space: nowrap; overflow: visible; }
    .parents-list-admin {
        table-layout: fixed !important;
        width: 100%;
    }
    .parents-list-admin th,
    .parents-list-admin td {
        min-width: 0;
        overflow-wrap: anywhere;
    }
    .parents-list-admin th.col-pname,
    .parents-list-admin td.col-pname { width: 18% !important; }
    .parents-list-admin th.col-pcode,
    .parents-list-admin td.col-pcode { width: 12% !important; }
    .parents-list-admin th.col-rel,
    .parents-list-admin td.col-rel { width: 10% !important; }
    .parents-list-admin th.col-student,
    .parents-list-admin td.col-student { width: 16% !important; }
    .parents-list-admin th.col-pstatus,
    .parents-list-admin td.col-pstatus { width: 12% !important; white-space: nowrap; }
    .parents-list-admin th.col-conf,
    .parents-list-admin td.col-conf { width: 14% !important; }
    .parents-list-admin th.col-actions,
    .parents-list-admin td.col-actions { width: 18% !important; }
}
.parents-list td.col-actions .row-actions,
.sign-list td.col-actions .row-actions {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 6px;
    width: 100%;
}
.parents-list td.col-actions .row-actions > a,
.parents-list td.col-actions .row-actions > form,
.parents-list td.col-actions .row-actions > .btn,
.sign-list td.col-actions .row-actions > a,
.sign-list td.col-actions .row-actions > form,
.sign-list td.col-actions .row-actions > .btn {
    width: 100% !important;
    margin: 0 !important;
    display: flex !important;
    box-sizing: border-box;
}
.parents-list td.col-actions .btn,
.sign-list td.col-actions .btn {
    width: 100% !important;
    justify-content: center;
    box-sizing: border-box;
}

.pw-field {
    position: relative;
}
.pw-field input {
    width: 100%;
    padding-right: 46px;
    box-sizing: border-box;
}
.pw-peek {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    padding: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}
.pw-peek:hover,
.pw-peek:focus-visible {
    background: rgba(22, 50, 79, 0.07);
    color: var(--navy);
    outline: none;
}
.pw-peek::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    margin: 0 auto;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pw-peek.is-on::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18'/%3E%3Cpath d='M10.6 10.7A3 3 0 0012 15a3 3 0 002.5-4.8'/%3E%3Cpath d='M9.9 5.2A11 11 0 0112 5c6.5 0 10 7 10 7a17 17 0 01-4.1 4.7'/%3E%3Cpath d='M6.7 6.7C4.1 8.6 2 12 2 12s3.5 7 10 7c1.5 0 2.9-.3 4.1-.8'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18'/%3E%3Cpath d='M10.6 10.7A3 3 0 0012 15a3 3 0 002.5-4.8'/%3E%3Cpath d='M9.9 5.2A11 11 0 0112 5c6.5 0 10 7 10 7a17 17 0 01-4.1 4.7'/%3E%3Cpath d='M6.7 6.7C4.1 8.6 2 12 2 12s3.5 7 10 7c1.5 0 2.9-.3 4.1-.8'/%3E%3C/svg%3E") center / contain no-repeat;
}

.auth-links {
    margin-top: 14px;
    display: flex;
}
.auth-links .btn {
    width: 100%;
    text-align: center;
}
.login-card-tools { flex: 0 0 auto; margin: 0; }
.login-card-tools .guide-chip { margin: 0; }
.register-card-act {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}
.register-choice .register-card-act {
    margin-top: auto;
    padding-top: 18px;
}
.register-card-act .guide-chip {
    flex: 0 0 auto;
    margin: 0;
}
.legal-box { margin: 18px 0 8px; }
.legal-fold {
    border: 1px solid rgba(22, 50, 79, 0.12);
    border-radius: 14px;
    background: #fff;
    margin-bottom: 12px;
}
.legal-fold summary {
    cursor: pointer;
    font-weight: 650;
    padding: 12px 14px;
    list-style: none;
}
.legal-fold summary::-webkit-details-marker { display: none; }
.legal-body {
    padding: 0 14px 14px;
    max-height: 240px;
    overflow: auto;
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink);
    white-space: pre-wrap;
}
.legal-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.45;
}
.legal-check input { margin-top: 3px; flex: 0 0 auto; }

.useful-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.useful-head h2 { margin: 0; font-size: 28px; }
.useful-nav { display: flex; gap: 8px; }
.useful-prev,
.useful-next {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #edf1f6;
    color: #334155;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}
.useful-prev:hover,
.useful-next:hover { background: #e2e8f0; }
.useful-prev:disabled,
.useful-next:disabled { opacity: 0.4; cursor: default; }
.useful-viewport { overflow: hidden; }
.useful-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}
.useful-track::-webkit-scrollbar { display: none; }
.useful-card {
    flex: 0 0 280px;
    min-height: 168px;
    border-radius: 22px;
    text-decoration: none;
    color: inherit;
    scroll-snap-align: start;
    box-sizing: border-box;
    position: relative;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.useful-card.is-feature {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    color: #fff;
    background: linear-gradient(145deg, #1d6ee5 0%, #1558c7 55%, #0f4db8 100%);
}
.useful-badge {
    font-weight: 700;
    font-size: 15px;
    opacity: 0.95;
}
.useful-card.is-feature strong {
    display: block;
    font-size: 22px;
    margin: 8px 0 10px;
}
.useful-card.is-feature small {
    display: block;
    max-width: 78%;
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.92;
}
.useful-go {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: #1558c7;
    display: grid;
    place-items: center;
    font-size: 16px;
    font-weight: 700;
}
.useful-card.is-person {
    background: #e8eef8;
    color: #1e293b;
}
.useful-face {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 auto;
    background: #c9d6ea;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #334155;
}
.useful-face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.useful-name {
    font-weight: 650;
    font-size: 17px;
    line-height: 1.3;
}
@media (max-width: 640px) {
    .useful-card { flex-basis: 78vw; min-height: 150px; }
    .useful-head h2 { font-size: 22px; }
}
@media (max-width: 860px) {
    .register-card-act {
        flex-direction: column;
        align-items: stretch;
    }
    .register-card-act .btn,
    .register-card-act .guide-chip {
        width: 100%;
        justify-content: center;
    }
}
