:root {
    --barbie-blue: #008fd5;
    --barbie-blue-dark: #006cae;
    --sky: #38c6f4;
    --aqua: #65e3df;
    --pink: #ff63b6;
    --pink-soft: #ffe5f4;
    --yellow: #ffd95a;
    --ink: #17324d;
    --muted: #64788b;
    --surface: #ffffff;
    --radius: 24px;
    --shadow: 0 14px 38px rgba(0, 111, 178, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 5% 12%, rgba(255, 99, 182, .13), transparent 18rem),
        radial-gradient(circle at 95% 30%, rgba(56, 198, 244, .15), transparent 24rem),
        linear-gradient(180deg, #f9fdff 0%, #ecfaff 55%, #fff7fc 100%);
    font-family: "Kanit", system-ui, -apple-system, sans-serif;
    font-size: 1.05rem;
}

a { color: var(--barbie-blue-dark); }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 9999; padding: .75rem 1rem; color: #fff; background: #111; border-radius: 10px; }
.skip-link:focus { top: 1rem; }

.site-header { position: relative; overflow: hidden; background: linear-gradient(145deg, rgba(235,249,255,.96), rgba(255,236,247,.9)); border-bottom: 1px solid rgba(0,143,213,.12); }
.site-header::before, .site-header::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.site-header::before { width: 180px; height: 180px; top: -80px; left: -60px; background: rgba(101,227,223,.25); }
.site-header::after { width: 220px; height: 220px; right: -90px; top: 20px; background: rgba(255,99,182,.14); }
.brand-logo-link { display: flex; width: fit-content; margin-inline: auto; position: relative; z-index: 1; }
.brand-logo { width: 140px; height: 140px; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0,116,181,.14)); transition: transform .25s ease; }
.brand-logo-link:hover .brand-logo { transform: translateY(-3px) rotate(-2deg); }
.title-badge { display: table; margin-inline: auto; padding: .3rem .9rem; border: 2px solid rgba(0,143,213,.18); border-radius: 999px; color: var(--barbie-blue-dark); background: rgba(255,255,255,.75); font-size: .78rem; font-weight: 700; letter-spacing: .09em; }
.site-title { margin-bottom: .15rem; color: var(--barbie-blue-dark); font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 700; line-height: 1; text-shadow: 0 3px 0 rgba(255,255,255,.9); }
.site-subtitle { max-width: 930px; margin-inline: auto; color: #345973; font-size: clamp(.98rem, 2.1vw, 1.18rem); }
.live-datetime { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; padding: .45rem 1rem; border: 1px solid rgba(0,143,213,.16); border-radius: 999px; color: var(--barbie-blue-dark); background: rgba(255,255,255,.72); font-size: .9rem; }
.skc-navbar { position: relative; z-index: 5; background: linear-gradient(100deg, #0076bd, #00a9df 60%, #22c6cc); box-shadow: 0 8px 22px rgba(0,111,178,.18); }
.skc-navbar .nav-link { padding-inline: .9rem !important; border-radius: 999px; }
.skc-navbar .nav-link:hover, .skc-navbar .nav-link.active { color: var(--ink); background: rgba(255,255,255,.86); }

.site-main { min-height: 46vh; }
.page-section { padding-block: clamp(2rem, 5vw, 4rem); }
.page-heading { color: var(--barbie-blue-dark); font-size: clamp(1.75rem, 4vw, 2.65rem); font-weight: 700; }
.section-kicker { margin-bottom: .45rem; color: var(--pink); font-size: .84rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.text-muted-soft { color: var(--muted); }

.glass-card, .form-card, .feature-card, .score-card, .admin-card {
    border: 1px solid rgba(0,143,213,.11);
    border-radius: var(--radius);
    background: rgba(255,255,255,.93);
    box-shadow: var(--shadow);
}
.form-card { max-width: 860px; margin-inline: auto; padding: clamp(1.25rem, 4vw, 2.5rem); }
.feature-card { height: 100%; padding: 1.45rem; transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 20px 42px rgba(0,111,178,.18); }
.feature-icon { display: grid; width: 58px; height: 58px; place-items: center; margin-bottom: 1rem; border-radius: 18px; font-size: 1.7rem; background: linear-gradient(145deg, #dff7ff, #ffe4f4); }

.hero-panel { position: relative; overflow: hidden; padding: clamp(1.5rem, 5vw, 4rem); border-radius: 32px; color: #fff; background: linear-gradient(120deg, #006fb8 0%, #00a6df 55%, #35cfcc 100%); box-shadow: 0 24px 55px rgba(0,113,181,.22); }
.hero-panel::after { content: "✦"; position: absolute; right: 5%; top: 8%; color: rgba(255,255,255,.25); font-size: 7rem; transform: rotate(15deg); }
.hero-panel h2 { font-size: clamp(2rem, 5vw, 3.7rem); font-weight: 700; line-height: 1.08; }
.hero-panel p { max-width: 720px; color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-panel-visual {
    color: var(--ink);
    border: 1px solid rgba(0,143,213,.13);
    background: linear-gradient(135deg, #f7fdff 0%, #e9f8ff 58%, #fff1f9 100%);
}
.hero-panel-visual::after { display: none; }
.hero-panel-visual .title-badge { margin-inline: 0; }
.hero-panel-visual h2 { color: var(--barbie-blue-dark); }
.hero-panel-visual p { color: #345973; }
.hero-illustration {
    display: block;
    width: 50%;
    height: auto;
    margin-inline: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center;
    border: 5px solid rgba(255,255,255,.88);
    border-radius: 28px;
    box-shadow: 0 18px 38px rgba(0,111,178,.16);
}

.visual-banner, .profile-visual-card {
    overflow: hidden;
    border: 1px solid rgba(0,143,213,.12);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(236,250,255,.94) 62%, rgba(255,236,247,.9));
    box-shadow: var(--shadow);
}
.section-illustration, .profile-illustration {
    display: block;
    width: 50%;
    height: auto;
    margin-inline: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.section-illustration { min-height: 0; }
.profile-illustration { max-height: 330px; object-position: center; }
.visual-chip {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: .45rem .85rem;
    border: 1px solid rgba(0,143,213,.16);
    border-radius: 999px;
    color: var(--barbie-blue-dark);
    background: rgba(255,255,255,.86);
    font-size: .9rem;
    font-weight: 500;
}

.btn { min-height: 44px; font-weight: 500; }
.btn-lg { min-height: 54px; }
.btn-primary { border-color: transparent; background: linear-gradient(100deg, var(--barbie-blue-dark), var(--sky)); box-shadow: 0 8px 18px rgba(0,143,213,.22); }
.btn-primary:hover, .btn-primary:focus { border-color: transparent; background: linear-gradient(100deg, #005b96, #009dd2); transform: translateY(-1px); }
.btn-pink { color: #fff; border: 0; background: linear-gradient(100deg, #e83e96, var(--pink)); box-shadow: 0 8px 18px rgba(232,62,150,.2); }
.btn-pink:hover { color: #fff; background: linear-gradient(100deg, #cf2a82, #f249a2); }

.form-label, legend { font-weight: 600; }
.form-control, .form-select { min-height: 50px; border: 2px solid #d9edf6; border-radius: 15px; background-color: #fbfeff; }
.form-control:focus, .form-select:focus { border-color: var(--sky); box-shadow: 0 0 0 .22rem rgba(56,198,244,.17); }
.input-group-text { border: 2px solid #d9edf6; border-right: 0; border-radius: 15px 0 0 15px; background: #effaff; }
.field-help { color: var(--muted); font-size: .88rem; }
.required-mark { color: #d82672; }

.notice { padding: 1rem 1.2rem; border-left: 5px solid var(--barbie-blue); border-radius: 16px; background: #ebf9ff; }
.notice-warning { border-left-color: #ed9b00; background: #fff7dc; }
.notice-danger { border-left-color: #d92b50; background: #fff0f3; }
.warning-banner { border: 2px solid #f0a3b3; border-radius: 20px; background: linear-gradient(145deg,#fff1f4,#fffafa); }

.progress { height: 14px; border-radius: 999px; background: #dff3fb; }
.progress-bar { background: linear-gradient(90deg, var(--pink), var(--sky)); }
.question-step { display: none; }
.question-step.active { display: block; animation: fadeSlide .28s ease; }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.question-card { margin-bottom: 1.25rem; padding: 1.35rem; border: 2px solid #e4f3f9; border-radius: 20px; background: #fff; }
.question-card:focus-within { border-color: var(--sky); box-shadow: 0 8px 24px rgba(56,198,244,.12); }
.question-number { display: inline-grid; min-width: 42px; min-height: 34px; place-items: center; margin-right: .45rem; border-radius: 999px; color: #fff; background: linear-gradient(120deg,var(--pink),var(--barbie-blue)); font-size: .84rem; }
.answer-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: .55rem; margin-top: 1rem; }
.answer-option { position: relative; }
.answer-option input { position: absolute; opacity: 0; pointer-events: none; }
.answer-option label { display: flex; min-height: 66px; height: 100%; align-items: center; justify-content: center; padding: .65rem .45rem; border: 2px solid #dceef6; border-radius: 16px; cursor: pointer; text-align: center; font-size: .92rem; transition: all .15s ease; background: #fbfeff; }
.answer-option input:focus-visible + label { outline: 3px solid rgba(0,143,213,.32); outline-offset: 2px; }
.answer-option input:checked + label { color: #fff; border-color: transparent; background: linear-gradient(135deg,var(--barbie-blue),var(--sky)); box-shadow: 0 7px 16px rgba(0,143,213,.2); transform: translateY(-2px); }
.answer-option.option-na { grid-column: 1 / -1; }
.answer-option.option-na label { min-height: 48px; }
.question-error { border-color: #dc3545 !important; }

.score-card { position: relative; overflow: hidden; padding: 1.25rem; }
.score-value { color: var(--barbie-blue-dark); font-size: 2.35rem; font-weight: 700; }
.score-card::after { content: ""; position: absolute; width: 70px; height: 70px; right: -25px; bottom: -25px; border-radius: 50%; background: rgba(255,99,182,.14); }
.score-meter { height: 9px; overflow: hidden; border-radius: 999px; background: #e2eff4; }
.score-meter > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--pink),var(--sky),var(--aqua)); }
.radar-wrap { display: grid; place-items: center; min-height: 360px; }
.radar-chart { width: min(100%, 430px); height: auto; overflow: visible; }
.domain-bar { display: grid; grid-template-columns: minmax(130px, 1.4fr) 3fr 64px; gap: .8rem; align-items: center; margin-bottom: .9rem; }
.domain-bar-track { height: 16px; overflow: hidden; border-radius: 99px; background: #e3f0f5; }
.domain-bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--pink),var(--sky)); }

.table-responsive { border-radius: 18px; }
.table { --bs-table-bg: transparent; margin-bottom: 0; }
.table thead th { color: #fff; border: 0; background: var(--barbie-blue-dark); white-space: nowrap; }
.table tbody tr:hover { background: rgba(56,198,244,.06); }
.badge-role { padding: .45rem .7rem; border-radius: 99px; font-weight: 500; }
.role-staff { color: #075b68; background: #d7f6f3; }
.role-admin { color: #734500; background: #fff0c4; }
.role-superadmin { color: #82265b; background: #ffe0f1; }

.data-source-card { display: flex; min-height: 92px; align-items: center; gap: .8rem; padding: 1rem; border: 2px solid rgba(0,143,213,.12); border-radius: 20px; color: var(--ink); background: rgba(255,255,255,.9); box-shadow: 0 8px 24px rgba(0,111,178,.08); text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.data-source-card:hover, .data-source-card.active { color: var(--ink); border-color: var(--sky); box-shadow: 0 14px 30px rgba(0,111,178,.16); transform: translateY(-2px); }
.data-source-card.active { background: linear-gradient(135deg,#e7f8ff,#fff0f9); }
.data-source-icon { display: grid; flex: 0 0 46px; width: 46px; height: 46px; place-items: center; border-radius: 15px; background: linear-gradient(145deg,#dff7ff,#ffe4f4); font-size: 1.4rem; }
.data-source-card strong, .data-source-card small { display: block; }
.data-source-card small { margin-top: .18rem; color: var(--muted); }

.manual-toc { position: sticky; top: 1rem; }
.manual-toc a { display: block; padding: .65rem .8rem; border-radius: 12px; text-decoration: none; }
.manual-toc a:hover, .manual-toc a:focus { color: var(--barbie-blue-dark); background: #e9f8ff; }
.manual-section { scroll-margin-top: 1.5rem; }
.manual-step-number { display: inline-grid; width: 38px; height: 38px; place-items: center; margin-right: .55rem; border-radius: 13px; color: #fff; background: linear-gradient(135deg, var(--pink), var(--barbie-blue)); font-weight: 700; }
.manual-checklist li { margin-bottom: .55rem; }

.site-footer { position: relative; color: #31556d; background: linear-gradient(180deg,transparent,#dff6ff 32%,#d5f1fb); }
.footer-wave { height: 64px; background: radial-gradient(70% 50px at 50% 0, transparent 62%, #dff6ff 64%); }
.footer-logo { width: min(300px, 90vw); height: 120px; object-fit: contain; }
.footer-credit { color: var(--barbie-blue-dark); font-weight: 600; }
.footer-disclaimer { color: var(--muted); font-size: .85rem; }
.floating-sticker { position: fixed; z-index: 0; pointer-events: none; color: rgba(255,99,182,.22); font-size: 2.2rem; }
.sticker-one { left: 2%; top: 48%; animation: floaty 4s ease-in-out infinite; }
.sticker-two { right: 2%; top: 72%; animation: floaty 5s ease-in-out infinite reverse; }
@keyframes floaty { 50% { transform: translateY(-10px) rotate(8deg); } }

@media (max-width: 991.98px) {
    .skc-navbar .nav-link { margin-bottom: .25rem; }
    .manual-toc { position: static; }
    .answer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .answer-option:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .hero-panel-visual .title-badge { margin-inline: auto; }
    .hero-panel-visual .hero-copy { text-align: center; }
    .hero-panel-visual .hero-actions { justify-content: center; }
    .section-illustration { min-height: 0; max-height: 430px; }
}
@media (max-width: 575.98px) {
    body { font-size: 1rem; }
    .site-header .container { padding-inline: 1rem; }
    .brand-logo { width: 120px; height: 120px; }
    .live-datetime { border-radius: 16px; }
    .hero-panel { border-radius: 24px; }
    .hero-illustration { border-width: 3px; border-radius: 20px; }
    .visual-banner, .profile-visual-card { border-radius: 20px; }
    .hero-actions .btn { width: 100%; }
    .form-card { border-radius: 20px; }
    .answer-grid { grid-template-columns: 1fr; }
    .answer-option:last-child:nth-child(odd) { grid-column: auto; }
    .answer-option label { min-height: 56px; }
    .domain-bar { grid-template-columns: 1fr 55px; }
    .domain-bar-track { grid-column: 1 / -1; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
    .skc-navbar, .floating-sticker, .btn, .site-footer, .no-print { display: none !important; }
    body { background: #fff; color: #111; }
    .site-header { background: #fff; border-bottom: 1px solid #ccc; }
    .brand-logo { width: 90px; height: 90px; }
    .glass-card, .score-card { box-shadow: none; break-inside: avoid; }
}
