@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Manrope:wght@500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600;1,700&display=swap');

:root{
 --ink:#1e302b;--ink-2:#344740;--muted:#78877f;--forest:#244b3e;--forest-2:#356b56;--sage:#dce9dc;--mint:#edf4eb;--lime:#d9ed91;--paper:#f7f7f1;--white:#fffefa;--line:#e4e8de;--line-strong:#d5ddd1;--coral:#d97860;--gold:#bd9451;--red:#b94d4d;--yellow:#a8792e;--green:#3f7959;--shadow:0 16px 45px rgba(34,58,46,.075);--shadow-soft:0 5px 20px rgba(34,58,46,.045);--radius:22px
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.7 'DM Sans',sans-serif;letter-spacing:-.08px}body:before{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;background:radial-gradient(ellipse at 8% 0%,rgba(217,237,145,.18),transparent 32%),radial-gradient(ellipse at 100% 22%,rgba(220,233,220,.45),transparent 29%)}a{color:var(--forest-2);text-decoration:none;transition:color .2s}a:hover{color:var(--coral)}button,input,textarea,select{font:inherit}button{cursor:pointer}h1,h2,h3,h4{font-family:'Manrope',sans-serif;line-height:1.23;letter-spacing:-.8px;color:var(--ink)}h1{font-size:clamp(31px,4vw,48px);font-weight:800}h2{font-size:22px;font-weight:800}h3{font-size:17px}p{margin-top:8px}.muted{color:var(--muted)}.small{font-size:12px}.eyebrow{display:inline-flex;align-items:center;gap:9px;color:var(--forest-2);font-size:10px;letter-spacing:2px;font-weight:800;text-transform:uppercase}.eyebrow:before{content:"";width:22px;height:1px;background:var(--coral)}
/* Navigation */
.topbar{min-height:82px;padding:0 max(calc((100% - 1320px)/2),4.5%);display:flex;align-items:center;justify-content:space-between;gap:28px;background:rgba(255,254,250,.91);border-bottom:1px solid rgba(213,221,209,.85);position:sticky;top:0;z-index:30;backdrop-filter:blur(18px)}.brand{display:flex;align-items:center;gap:11px;color:var(--ink);flex:none}.brand:hover{color:var(--ink)}.brand-mark{width:42px;height:42px;border-radius:14px 14px 14px 5px;background:var(--forest);color:var(--lime);display:grid;place-items:center;font:700 28px 'Playfair Display',serif;box-shadow:0 7px 17px rgba(36,75,62,.2);transform:rotate(-3deg)}.brand-word{font:800 22px 'Manrope',sans-serif;letter-spacing:-1.2px;line-height:1.05}.brand-dot{color:var(--coral)}.brand-word small{display:block;font:700 8px 'DM Sans';letter-spacing:1.35px;color:#829087;margin-top:5px}.topbar nav{display:flex;align-items:center;justify-content:flex-end;gap:5px;font-size:12px;font-weight:700;flex-wrap:wrap}.topbar nav>a{color:#62736a;padding:10px 12px;border-radius:11px;white-space:nowrap}.topbar nav>a:hover{color:var(--forest);background:var(--mint)}.topbar nav .nav-chat{display:inline-flex;align-items:center;gap:7px;background:#f0f4ec;color:var(--forest);padding:9px 13px}.nav-chat-symbol{font-size:15px;color:var(--coral)}.unread-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:20px;background:var(--coral);color:white;font-size:10px;font-weight:800;line-height:1;box-shadow:0 0 0 3px rgba(217,120,96,.12)}.nav-user{display:inline-flex;align-items:center;gap:9px;padding:5px 11px 5px 6px!important;background:#f4f5ef;border:1px solid var(--line);border-radius:30px!important;color:var(--ink)!important;margin-left:8px}.nav-user b{display:block;font-size:11px;max-width:130px;overflow:hidden;text-overflow:ellipsis}.nav-user small{display:block;font-size:9px;color:var(--muted);font-weight:600}.nav-avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--forest);color:var(--lime);font:800 13px 'Manrope'}.topbar nav>a.nav-logout{color:#a65a4c}.topbar nav>a.nav-login{background:var(--forest);color:white;padding:11px 17px}.topbar nav>a.nav-login:hover{background:var(--forest-2);color:white}
/* Main frame and typography */
.container{width:min(1280px,91%);margin:0 auto;min-height:76vh;padding:0 0 70px}.footer{padding:26px max(calc((100% - 1280px)/2),4.5%);border-top:1px solid var(--line);color:#87948b;font-size:11px;display:flex;justify-content:space-between;gap:20px;background:rgba(255,254,250,.82)}.page-head{padding:54px 0 28px;position:relative}.page-head h1{margin:12px 0 8px;max-width:900px;letter-spacing:-1.8px}.page-head p{color:var(--muted);max-width:720px;font-size:14px;line-height:1.85}.dashboard-head{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;padding-top:46px}.dashboard-head h1{margin:10px 0}.back-link{display:inline-flex;margin-bottom:16px;color:var(--forest-2);font-size:12px;font-weight:800}.section{padding:55px 0 75px}.section-heading{text-align:center;margin:0 auto 34px;max-width:700px}.section-heading h2{font:700 36px 'Playfair Display',serif;letter-spacing:-.8px;margin:12px}.section-heading p{color:var(--muted)}
/* Buttons and surfaces */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid transparent;border-radius:12px;padding:12px 18px;font-weight:800;font-size:12px;letter-spacing:.1px;cursor:pointer;transition:transform .2s,box-shadow .2s,background .2s;white-space:nowrap;text-decoration:none!important}.btn:hover{transform:translateY(-2px)}.primary{background:var(--forest);color:#fffefa;box-shadow:0 8px 18px rgba(36,75,62,.18)}.primary:hover{background:var(--forest-2);color:#fffefa;box-shadow:0 12px 24px rgba(36,75,62,.2)}.secondary{background:#edf2e9;color:var(--forest);border-color:#e0e8dc}.secondary:hover{background:#e1eadc;color:var(--forest)}.danger{background:#fff0ed!important;color:#a74f42!important;border:1px solid #f0d6d0!important}.full{width:100%;margin-top:12px}.small-btn{padding:8px 12px!important;font-size:11px!important}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}.feature,.panel,.form-card,.consent-box,.stat,.profile-card,.question-group{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-soft)}.panel{padding:28px;margin-bottom:19px}.panel h2{font-size:20px;margin:2px 0 12px}.panel p{color:var(--muted);font-size:13px;line-height:1.8}.panel-icon{width:48px;height:48px;border-radius:15px;background:var(--mint);color:var(--forest);display:grid;place-items:center;font-size:23px;margin-bottom:17px}.feature{padding:26px;transition:.25s}.feature:hover{transform:translateY(-5px);box-shadow:var(--shadow);border-color:#cbd9c7}.feature b{display:inline-flex;padding:5px 9px;border-radius:7px;background:var(--mint);color:var(--forest-2);font-size:10px;letter-spacing:.5px}.feature h3{margin:13px 0 7px;font-size:18px}.feature p{color:var(--muted);font-size:13px}.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.section-note{border:1px solid #dce6d7;border-radius:17px;background:linear-gradient(110deg,#eff5e9,#f8f6ed);padding:19px 22px}
/* Landing page */
.hero{display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:55px;padding:76px 0 70px;min-height:590px}.hero h1{font:700 clamp(45px,5.7vw,72px)/1.06 'Playfair Display',serif;letter-spacing:-2.4px;margin:19px 0 17px;max-width:690px}.hero h1 em{font-style:italic;color:var(--forest-2)}.hero-copy>p{color:var(--muted);max-width:590px;font-size:15px;line-height:1.9}.hero-art{height:420px;position:relative;display:grid;place-items:center;border-radius:46% 54% 42% 58%/48% 42% 58% 52%;background:radial-gradient(circle at 48% 44%,#f4f6df 0,#e8efdf 38%,#dce9dc 75%);overflow:hidden}.hero-art:before,.hero-art:after{content:'';position:absolute;border:1px solid rgba(53,107,86,.24);border-radius:50%;width:330px;height:330px}.hero-art:after{width:460px;height:260px;transform:rotate(-28deg)}.hero-symbol{z-index:1;width:158px;height:158px;border-radius:42px 42px 42px 12px;background:var(--forest);color:var(--lime);display:grid;place-items:center;font:700 91px 'Playfair Display';box-shadow:0 25px 55px rgba(36,75,62,.27);transform:rotate(-7deg)}.float-card{position:absolute;z-index:2;background:var(--white);padding:13px 16px;border:1px solid rgba(213,221,209,.8);border-radius:13px;box-shadow:var(--shadow);font-size:11px;font-weight:800;color:var(--ink)}.card-a{top:43px;left:7%}.card-b{right:4%;top:150px}.card-c{bottom:38px;left:13%}.consent-box{display:flex;align-items:center;justify-content:space-between;gap:30px;margin:20px 0 55px;padding:30px 34px;background:linear-gradient(110deg,#eaf1e5,#f5f3e8);border-color:#e0e8d9}.consent-box h2{margin:7px 0}.consent-box p{max-width:790px;color:#63736a;font-size:13px}
/* Forms and authentication */
.form-wrap{display:flex;justify-content:center;padding:45px 0}.form-card{width:min(530px,100%);padding:38px;box-shadow:var(--shadow)}.form-card h1,.auth-card h1{font-size:30px;margin:10px 0;letter-spacing:-1.2px}.form-card form,.panel form{display:flex;flex-direction:column;gap:10px}.form-card label,.panel label,.auth-card label{font-size:11px;font-weight:800;color:var(--ink-2);margin-top:7px}.form-card input,.panel input,.panel textarea,.panel select,.form-card textarea,.auth-card input{font:14px 'DM Sans';padding:13px 15px;border:1px solid var(--line-strong);border-radius:11px;background:#fffefa;color:var(--ink);width:100%;transition:.2s}.form-card input:focus,.panel input:focus,.panel textarea:focus,.panel select:focus,.auth-card input:focus{outline:3px solid rgba(217,237,145,.5);border-color:#8ca58a}.check{display:flex!important;align-items:flex-start;gap:9px;font-weight:500!important;line-height:1.55}.check input{width:auto;margin-top:4px}.auth-bg{min-height:100vh;display:grid;place-items:center;padding:28px;background:radial-gradient(circle at 15% 15%,#e4ecd9,transparent 35%),radial-gradient(circle at 90% 85%,#f3e7d8,transparent 32%),#f7f7f1}.auth-card{background:var(--white);border:1px solid var(--line);border-radius:26px;padding:40px;width:min(470px,92vw);box-shadow:0 25px 70px rgba(34,58,46,.13);position:relative;overflow:hidden}.auth-card:before{content:'SELVIA  /  RUANG TUMBUH & PENDAMPINGAN';display:block;color:var(--forest-2);font:800 9px 'DM Sans';letter-spacing:2px;margin-bottom:20px}.auth-card:after{content:'';position:absolute;width:170px;height:170px;border-radius:50%;background:#edf3df;right:-90px;top:-95px;z-index:0}.auth-card h1{position:relative;z-index:1}.auth-card form{display:grid;gap:10px}.auth-card input{border-radius:12px;padding:14px 15px}
/* Dashboard */
.dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:10px 0 45px}.dashboard-quicklinks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}.quicklink-card{display:flex;align-items:center;gap:13px;padding:18px 19px;border:1px solid var(--line);border-radius:17px;background:var(--white);text-decoration:none;color:var(--ink);box-shadow:var(--shadow-soft);transition:.2s}.quicklink-card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:#cbd9c7;color:var(--forest)}.quicklink-card small{display:block;color:var(--muted);margin-top:4px;font-size:11px}.quicklink-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:var(--mint);color:var(--forest);font-size:21px}.quicklink-arrow{margin-left:auto;font-size:22px;color:var(--coral)}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:20px}.stat{padding:22px 23px;position:relative;overflow:hidden;background:var(--white)}.stat:after{content:'';position:absolute;width:90px;height:90px;border-radius:50%;background:#eff3e6;right:-32px;top:-38px}.stat span,.stat small{display:block;color:var(--muted);font-size:11px;position:relative;z-index:1}.stat strong{display:block;font:800 36px 'Manrope';letter-spacing:-1.6px;margin:5px 0;position:relative;z-index:1;color:var(--forest)}.red-text{color:var(--red)!important}.priority{display:inline-block;padding:5px 11px;border-radius:99px;font-size:10px;font-weight:800;white-space:nowrap;letter-spacing:.3px}.priority.red{background:#f8e7e3;color:#a7473f}.priority.yellow{background:#f7efdc;color:#966b2c}.priority.green{background:#e6f0e4;color:#3d7452}.priority.large{font-size:14px;padding:9px 15px;margin-top:7px}.notice{padding:15px 18px;border-radius:13px;background:#f8f0dc;color:#795d28;margin:18px 0;font-size:12px;border:1px solid #eadfc2}.notice.soft{background:#edf3e9;color:#4e6953;border-color:#dce8d7}
/* Assessment and result */
.survey-form{padding-bottom:50px}.question-group{padding:27px 30px;margin-bottom:17px}.group-title{border-bottom:1px solid var(--line);padding-bottom:15px;margin-bottom:8px}.group-title span{color:var(--forest-2);font-size:10px;font-weight:800;letter-spacing:1.5px;text-transform:uppercase}.group-title h2{font:700 22px 'Playfair Display',serif;margin:5px 0}.question{border:0;border-bottom:1px solid #edf0e9;padding:18px 0;margin:0}.question:last-child{border:0}.question legend{font-size:13px;font-weight:700;width:100%;display:flex;gap:12px;align-items:flex-start}.q-number{flex:none;width:28px;height:28px;border-radius:9px;background:#edf3e8;color:var(--forest);display:grid;place-items:center;font-size:11px;font-weight:800}.options{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:13px 0 0 40px}.option{font-size:11px;display:flex;align-items:center;gap:7px;color:#63736a;cursor:pointer;padding:10px 11px;border:1px solid #e9ede5;border-radius:10px;transition:.15s;background:#fffefa}.option:hover{background:#f3f6ed;border-color:#cbd9c7}.option:has(input:checked){background:#edf3e8;border-color:#8ea98b;color:var(--forest);box-shadow:inset 0 0 0 1px #d2e1c9}.option input{width:auto;accent-color:var(--forest)}.submit-panel{position:sticky;bottom:12px;background:rgba(255,254,250,.96);border:1px solid var(--line-strong);padding:17px 20px;border-radius:15px;display:flex;align-items:center;justify-content:space-between;gap:20px;box-shadow:var(--shadow);backdrop-filter:blur(12px)}.result-summary{background:linear-gradient(110deg,#fffefa,#f0f4e9 75%,#f8f0e6);border:1px solid var(--line);border-radius:21px;padding:27px;display:flex;align-items:center;gap:35px;margin:10px 0 18px}.result-summary p{color:var(--muted);margin:0}.score-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:20px}.score-top{display:flex;justify-content:space-between;margin-bottom:8px}.progress{height:9px;border-radius:20px;background:#edf0e8;overflow:hidden;margin-bottom:7px}.progress span{display:block;height:100%;background:linear-gradient(90deg,var(--forest-2),#a5bf77);border-radius:20px}.guidance-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px}.guidance-card{background:#fffefa;border:1px solid var(--line);border-radius:17px;padding:20px;box-shadow:var(--shadow-soft)}.guidance-card h3{margin:0 0 10px;color:var(--forest)}.guidance-card p{color:#66766c;line-height:1.75}.guidance-card ol{padding-left:20px;color:#66766c;line-height:1.7}.guidance-card li{padding:4px 0}
/* Tables and requests */
.table-wrap{overflow-x:auto;border-radius:17px}.table-wrap table{width:100%;border-collapse:collapse;font-size:12px;min-width:760px}.table-wrap th{text-align:left;color:#728177;background:#f1f4ed;font-size:10px;text-transform:uppercase;letter-spacing:.7px;font-weight:800}.table-wrap td,.table-wrap th{padding:14px 13px;border-bottom:1px solid #edf0e9;vertical-align:top}.table-wrap tbody tr:hover{background:#f8f9f3}.table-sub{display:block;color:var(--muted);font-size:10px;margin-top:3px}.inline-form{min-width:180px;display:flex;gap:6px;flex-direction:column}.inline-form select,.inline-form textarea{font-size:11px;padding:8px}.table-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.table-heading h2{margin:0}.table-link{font-size:11px;font-weight:800;color:var(--forest-2)}.tag{display:inline-flex;align-items:center;padding:5px 10px;border-radius:30px;font-size:10px;font-weight:800}.tag-green{background:#e7f1e4;color:#3f7651}.tag-blue{background:#e8eee5;color:#456c4d}.tag-orange{background:#f7eddb;color:#946b30}.tag-muted{background:#eff1eb;color:#768078}.request-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-top:18px}.request-column{background:#f2f4ed;border:1px solid #e5e9df;border-radius:17px;padding:15px;min-width:0}.request-column h3{font-size:14px;margin:0 0 12px;color:var(--ink)}.count-pill{display:inline-flex;align-items:center;justify-content:center;min-width:23px;height:23px;padding:0 7px;border-radius:99px;background:#e3eade;color:var(--forest);font-size:11px;font-weight:800}.request-card{background:var(--white);border:1px solid var(--line);border-radius:13px;padding:14px;margin:10px 0;box-shadow:var(--shadow-soft)}.request-card p{font-size:12px;line-height:1.65;color:#64746a;margin:9px 0}.request-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
/* Messaging center */
.chat-panel{max-width:1000px}.inbox-layout{display:grid;grid-template-columns:minmax(300px,420px) 1fr;min-height:570px;overflow:hidden;border:1px solid var(--line);border-radius:22px;background:var(--white);box-shadow:var(--shadow)}.inbox-list{border-right:1px solid var(--line);background:#fffefa}.inbox-title{display:flex;align-items:center;justify-content:space-between;padding:21px 20px 15px;border-bottom:1px solid #edf0e9}.inbox-title h2{margin:0;font-size:18px}.inbox-thread{display:flex;align-items:center;gap:12px;padding:15px 17px;border-bottom:1px solid #f0f1eb;text-decoration:none;color:#263a31;transition:background .15s}.inbox-thread:hover{background:#f1f5ed;color:var(--forest)}.avatar-circle{flex:0 0 43px;width:43px;height:43px;border-radius:50%;display:grid;place-items:center;background:#e5eddf;color:var(--forest);font-weight:800;font-size:16px}.inbox-thread-body{min-width:0;flex:1}.inbox-thread-top{display:flex;justify-content:space-between;gap:8px}.inbox-thread-top small{color:#87948a;white-space:nowrap}.inbox-thread-body p{margin:5px 0 0;color:#78867d;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.inbox-thread-body>small{display:block;margin-top:3px}.inbox-welcome{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:35px;text-align:center;background:radial-gradient(circle at 50% 35%,#f1f5e9,#fffefa 62%)}.inbox-welcome h2{font:700 27px 'Playfair Display',serif;margin:16px 0 6px}.inbox-welcome p{max-width:360px;color:#78867d;line-height:1.75;font-size:13px}.welcome-chat-icon{display:grid;place-items:center;width:78px;height:78px;border-radius:26px 26px 26px 8px;background:var(--forest);color:var(--lime);font-size:31px;box-shadow:0 13px 26px rgba(36,75,62,.18)}.empty-inbox{padding:18px;line-height:1.6}.chat-list{display:flex;flex-direction:column;gap:12px;padding:18px 0;max-height:560px;overflow:auto}.chat-message{max-width:82%;padding:13px 16px;border-radius:16px 16px 16px 5px;background:#f0f3ec;border:1px solid #e7ece2}.chat-message.mine{align-self:flex-end;background:#e8f0e2;border-color:#dce8d4;border-radius:16px 16px 5px 16px}.chat-message.theirs{align-self:flex-start}.chat-meta{display:flex;justify-content:space-between;gap:16px;font-size:10px;color:#78867d}.chat-message p{margin:7px 0 0;line-height:1.7;white-space:normal;overflow-wrap:anywhere;color:var(--ink-2);font-size:13px}.chat-compose{border-top:1px solid var(--line);padding-top:16px}.radio-line{display:flex;align-items:center;gap:9px;margin:10px 0;color:#344a3f}.radio-line input{width:auto}.schedule-card{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;background:#f3f5ee}.schedule-card p{margin:7px 0 0;color:#64746a}
/* Profile, avatar, misc */
.avatar{border-radius:22px;background:var(--forest);color:var(--lime);box-shadow:0 12px 25px rgba(36,75,62,.18)}.tag-blue{background:#e8eee5;color:#456c4d}.tag-orange{background:#f7eddb;color:#946b30}.back-link:hover{color:var(--coral)}.form-grid{display:grid;grid-template-columns:1fr 2fr;gap:18px;align-items:start}.form-actions{display:flex;flex-direction:column;gap:9px}.form-actions .actions{margin:0}.profile-card{padding:24px}.auth-card .btn{width:100%;margin-top:8px}.chat-compose textarea{min-height:90px}
@media(max-width:1050px){.topbar{padding:0 3.5%;gap:15px}.topbar nav{gap:2px}.topbar nav>a{padding:9px}.brand-word{font-size:20px}.feature-grid{grid-template-columns:repeat(2,1fr)}.stats-grid{grid-template-columns:repeat(2,1fr)}.hero{gap:30px}.request-columns{grid-template-columns:1fr 1fr}.request-column:last-child{grid-column:1/-1}}
@media(max-width:760px){.topbar{min-height:auto;padding:12px 4%;align-items:flex-start;flex-direction:column;gap:9px}.topbar nav{width:100%;justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;padding-bottom:3px}.topbar nav>a{font-size:11px;flex:none}.nav-user{margin-left:0;flex:none}.container{width:92%}.hero{grid-template-columns:1fr;padding:48px 0 35px;min-height:auto}.hero h1{font-size:clamp(42px,10vw,58px)}.hero-art{height:300px;max-width:520px;width:100%;margin:0 auto}.dashboard-head{align-items:flex-start;flex-direction:column}.dashboard-grid{grid-template-columns:1fr}.request-columns{grid-template-columns:1fr}.request-column:last-child{grid-column:auto}.inbox-layout{grid-template-columns:1fr}.inbox-welcome{display:none}.inbox-list{border-right:0}.inbox-thread{padding:13px}.inbox-thread-body p{white-space:normal}.result-summary{align-items:flex-start;flex-direction:column;gap:12px}.form-grid{grid-template-columns:1fr}}
@media(max-width:560px){.container{width:92%}.brand-mark{width:37px;height:37px}.brand-word{font-size:19px}.hero h1{font-size:42px;letter-spacing:-1.7px}.hero-art{height:250px}.hero-symbol{width:112px;height:112px;font-size:65px;border-radius:32px}.float-card{font-size:9px;padding:10px 12px}.feature-grid,.dashboard-quicklinks,.stats-grid,.score-grid,.guidance-grid{grid-template-columns:1fr}.feature{padding:21px}.section-heading h2{font-size:29px}.consent-box{padding:22px;align-items:flex-start;flex-direction:column}.auth-card,.form-card{padding:27px 22px}.page-head{padding-top:37px}.panel{padding:20px;border-radius:18px}.question-group{padding:19px}.options{grid-template-columns:1fr 1fr;margin-left:0}.submit-panel{align-items:stretch;flex-direction:column}.submit-panel .btn{width:100%}.stat{padding:19px}.chat-message{max-width:95%}.schedule-card{grid-template-columns:1fr}.footer{padding:22px 4%;flex-direction:column}.table-heading{align-items:flex-start;flex-direction:column}}

/* SELVIA v7 interaction refinements */
.inbox-thread-clickable{display:flex;align-items:center;gap:14px;text-decoration:none;color:inherit;cursor:pointer;transition:background .18s ease,transform .18s ease}
.inbox-thread-clickable:hover{background:#edf3eb;transform:translateX(2px)}
.inbox-thread-clickable:focus-visible{outline:3px solid #b8cf72;outline-offset:-3px}
.profile-link{display:inline-block;color:#2f725b;font-weight:700;margin-top:5px;cursor:pointer}
.profile-link:hover{text-decoration:underline}
.chat-room-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:18px;border-bottom:1px solid #e8ece3;margin-bottom:18px}
.chat-room-heading h2{margin:0 0 9px}
.chat-room-meta{display:flex;flex-direction:column;gap:6px;text-align:right;color:#77877e;font-size:.86rem}
.chat-inline-tools{background:#f7f8f2;border:1px solid #e4eadd;border-radius:18px;padding:20px;margin:20px 0}
.chat-inline-tools h3{margin:0 0 14px;color:#244b3e}
.chat-inline-tools .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.chat-inline-tools .form-grid>div:last-child{grid-column:1/-1}
.chat-inline-tools textarea{min-height:74px}
.schedule-inline{border:1px solid #dce8d5;background:#f1f6ed;border-radius:16px;padding:18px;margin:18px 0}
.schedule-inline>p{font-weight:700;color:#244b3e;font-size:1.08rem}
.schedule-inline form{display:grid;gap:12px}
.schedule-inline .radio-line{display:flex;align-items:center;gap:9px}
.chat-locked{margin-top:20px}
.manage-grid{display:grid;grid-template-columns:minmax(250px,.8fr) minmax(0,1.2fr);gap:20px;align-items:start}
.aspect-list{display:grid;gap:9px;margin-top:18px}
.aspect-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid #e7ebe2;border-radius:12px}
.aspect-row form{margin:0}
.question textarea{width:100%;min-height:110px}
@media(max-width:760px){.chat-room-heading{display:block}.chat-room-meta{text-align:left;margin-top:12px}.chat-inline-tools .form-grid{grid-template-columns:1fr}.manage-grid{grid-template-columns:1fr}.inbox-thread-clickable{padding:14px}.aspect-row{flex-wrap:wrap}}


/* ==========================================================
   SELVIA MOTION SYSTEM v8
   Responsive page entrance/exit + refined micro-interactions
   ========================================================== */
:root{
  --motion-ease:cubic-bezier(.22,.8,.24,1);
  --motion-fast:180ms;
  --motion-medium:420ms;
  --motion-slow:620ms;
}
@keyframes selviaPageEnter{
  0%{opacity:0;transform:translate3d(0,18px,0);filter:blur(3px)}
  65%{filter:blur(0)}
  100%{opacity:1;transform:translate3d(0,0,0);filter:blur(0)}
}
@keyframes selviaSoftReveal{
  from{opacity:0;transform:translate3d(0,13px,0)}
  to{opacity:1;transform:translate3d(0,0,0)}
}
@keyframes selviaNavReveal{
  from{opacity:0;transform:translateY(-9px)}
  to{opacity:1;transform:translateY(0)}
}
@keyframes selviaExit{
  to{opacity:0;transform:translate3d(0,-9px,0);filter:blur(2px)}
}
@keyframes selviaBackdropExit{to{opacity:.35}}

/* Every full PHP navigation gets a calm entrance on all viewport sizes. */
body:not(.auth-bg){animation:selviaSoftReveal .38s var(--motion-ease) both}
.topbar{animation:selviaNavReveal .42s var(--motion-ease) both}
.container{animation:selviaPageEnter .62s var(--motion-ease) both;transform-origin:50% 0}
.footer{animation:selviaSoftReveal .55s .08s var(--motion-ease) both}
.page-head,.hero-copy,.hero-art,.form-wrap,.panel,.stat,.feature,.profile-card,.question-group,.request-card,.guidance-card,.quicklink-card{
  animation:selviaSoftReveal .55s var(--motion-ease) both;
}
.page-head{animation-delay:.06s}
.hero-copy{animation-delay:.08s}.hero-art{animation-delay:.16s}
.stats-grid .stat:nth-child(1),.feature-grid .feature:nth-child(1){animation-delay:.08s}
.stats-grid .stat:nth-child(2),.feature-grid .feature:nth-child(2){animation-delay:.14s}
.stats-grid .stat:nth-child(3),.feature-grid .feature:nth-child(3){animation-delay:.20s}
.stats-grid .stat:nth-child(4),.feature-grid .feature:nth-child(4){animation-delay:.26s}
.stats-grid .stat:nth-child(n+5),.feature-grid .feature:nth-child(n+5){animation-delay:.30s}
.question-group:nth-of-type(2){animation-delay:.08s}.question-group:nth-of-type(3){animation-delay:.14s}
.question-group:nth-of-type(4){animation-delay:.20s}

/* Outgoing transition is triggered by the navigation helper below. */
body.selvia-leaving .container{animation:selviaExit .22s ease-in both;pointer-events:none}
body.selvia-leaving .topbar,body.selvia-leaving .footer{animation:selviaBackdropExit .22s ease-in both;pointer-events:none}
body.selvia-leaving{overflow:hidden}

/* Consistent tactile feedback, without exaggerated movement. */
.btn,.quicklink-card,.inbox-thread,.feature,.request-card,.nav-chat,.avatar-circle{
  transition:transform .22s var(--motion-ease),box-shadow .22s var(--motion-ease),background-color .22s ease,border-color .22s ease;
}
.btn:active{transform:translateY(0) scale(.985)}
.feature:hover,.quicklink-card:hover,.request-card:hover{transform:translateY(-3px)}
.inbox-thread:active{transform:scale(.995)}
input,textarea,select{transition:border-color .2s ease,box-shadow .2s ease,background-color .2s ease}

/* Chat messages arrive gently when the conversation is rendered. */
.chat-message{animation:selviaSoftReveal .34s var(--motion-ease) both}
.chat-message:nth-child(2n){animation-delay:.035s}
.notice,.section-note{animation:selviaSoftReveal .45s .05s var(--motion-ease) both}

/* Avoid animation clipping and keep mobile motion subtle. */
@media(max-width:760px){
  :root{--motion-medium:360ms;--motion-slow:480ms}
  .container{animation-duration:.48s}
  .page-head,.panel,.stat,.feature,.profile-card,.question-group,.request-card,.guidance-card,.quicklink-card{animation-duration:.42s}
  .feature:hover,.quicklink-card:hover,.request-card:hover{transform:none}
}
@media(max-width:560px){
  body:not(.auth-bg){animation-duration:.28s}
  .container{animation-duration:.42s}
  .topbar{animation-duration:.32s}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-delay:0ms!important;transition-duration:.01ms!important;transition-delay:0ms!important}
  body.selvia-leaving .container{opacity:1;transform:none}
}


/* =========================================================
   SELVIA v8.1 — noticeable, accessible page transitions
   ========================================================= */
:root {
  --sv-motion-ease: cubic-bezier(.22,.75,.2,1);
  --sv-enter-time: 680ms;
  --sv-exit-time: 360ms;
}

/* A brief soft reveal makes every fresh page load perceptible. */
body:not(.sv-reduced-motion)::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: var(--paper, #f7f7f1);
  animation: svCurtainReveal 620ms var(--sv-motion-ease) forwards;
}

@keyframes svCurtainReveal {
  0% { opacity: 1; }
  38% { opacity: .72; }
  100% { opacity: 0; visibility: hidden; }
}

@keyframes svPageEnter {
  0% { opacity: 0; transform: translate3d(0, 28px, 0) scale(.992); filter: blur(5px); }
  65% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }
}
@keyframes svHeaderEnter {
  0% { opacity: 0; transform: translate3d(0, -16px, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes svStaggerEnter {
  0% { opacity: 0; transform: translate3d(0, 20px, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes svPageExit {
  to { opacity: 0; transform: translate3d(0, -16px, 0) scale(.995); filter: blur(3px); }
}
@keyframes svCurtainExit {
  from { opacity: 0; }
  to { opacity: .88; }
}

body:not(.sv-reduced-motion) .topbar {
  animation: svHeaderEnter 560ms var(--sv-motion-ease) both;
}
body:not(.sv-reduced-motion) main.container {
  animation: svPageEnter var(--sv-enter-time) var(--sv-motion-ease) both;
  transform-origin: 50% 0;
}
body:not(.sv-reduced-motion) .footer {
  animation: svStaggerEnter 620ms 120ms var(--sv-motion-ease) both;
}
body:not(.sv-reduced-motion) main.container > .page-head,
body:not(.sv-reduced-motion) main.container > .panel,
body:not(.sv-reduced-motion) main.container > .stat,
body:not(.sv-reduced-motion) main.container > .feature,
body:not(.sv-reduced-motion) main.container > .profile-card,
body:not(.sv-reduced-motion) main.container > .question-group,
body:not(.sv-reduced-motion) main.container > .request-card,
body:not(.sv-reduced-motion) main.container > .guidance-card {
  animation: svStaggerEnter 620ms var(--sv-motion-ease) both;
}
body:not(.sv-reduced-motion) main.container > :nth-child(2) { animation-delay: 70ms; }
body:not(.sv-reduced-motion) main.container > :nth-child(3) { animation-delay: 130ms; }
body:not(.sv-reduced-motion) main.container > :nth-child(4) { animation-delay: 190ms; }
body:not(.sv-reduced-motion) main.container > :nth-child(5) { animation-delay: 250ms; }

body.sv-leaving main.container {
  animation: svPageExit var(--sv-exit-time) var(--sv-motion-ease) both !important;
  pointer-events: none;
}
body.sv-leaving::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: var(--paper, #f7f7f1);
  animation: svCurtainExit var(--sv-exit-time) ease-out both;
}
body.sv-leaving { overflow: hidden; }

/* Small screens: retain the effect without making navigation feel slow. */
@media (max-width: 760px) {
  :root { --sv-enter-time: 520ms; --sv-exit-time: 280ms; }
  body:not(.sv-reduced-motion) main.container { animation-duration: 520ms; }
}
@media (prefers-reduced-motion: reduce) {
  body::after { display: none !important; }
  body .topbar, body main.container, body .footer,
  body main.container > * {
    animation: none !important;
    transition: none !important;
    filter: none !important;
    transform: none !important;
  }
}


/* =========================================================
   SELVIA v8.2 — Subtle, elegant aspect-card motion
   Page transitions are intentionally disabled. Motion is
   limited to the feature/aspect cards (Pribadi, Sosial,
   Karier, Belajar) and their hover/touch feedback.
   ========================================================= */

/* Cancel the previous global page, header, footer and curtain effects. */
body:not(.auth-bg),
body:not(.auth-bg)::after,
body .topbar,
body .container,
body .footer,
body .page-head,
body .hero-copy,
body .hero-art,
body .form-wrap,
body .panel,
body .stat,
body .profile-card,
body .question-group,
body .request-card,
body .guidance-card,
body .quicklink-card,
body main.container,
body.sv-leaving::after {
  animation: none !important;
  filter: none !important;
}

body.sv-leaving .container,
body.selvia-leaving .container {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Quiet entrance, reserved for aspect/feature cards only. */
@keyframes selviaAspectCardIn {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-grid .feature {
  animation: selviaAspectCardIn 460ms cubic-bezier(.2,.65,.25,1) both !important;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
  will-change: opacity, transform;
}

.feature-grid .feature:nth-child(1) { animation-delay: 40ms !important; }
.feature-grid .feature:nth-child(2) { animation-delay: 100ms !important; }
.feature-grid .feature:nth-child(3) { animation-delay: 160ms !important; }
.feature-grid .feature:nth-child(4) { animation-delay: 220ms !important; }

/* Very restrained hover: lift by only two pixels. */
@media (hover: hover) and (pointer: fine) {
  .feature-grid .feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(31, 65, 53, .075);
    border-color: rgba(39, 91, 73, .20);
  }
}

/* Touch feedback on phones/tablets, without sticky hover states. */
@media (hover: none) {
  .feature-grid .feature:active {
    transform: scale(.992);
    transition-duration: 120ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feature-grid .feature {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}


/* =========================================================
   SELVIA v8.3 — Consistent, restrained motion across the app
   Applies to student, teacher, auth, survey, profile, inbox,
   conversation, instrument-management and dashboard pages.
   ========================================================= */
:root {
  --selvia-motion-ease: cubic-bezier(.2,.65,.25,1);
}

/* Remove the earlier curtain / blur / large global transitions. */
body::after { display: none !important; }
body:not(.auth-bg) { animation: none !important; }
body .topbar,
body .footer,
body .container,
body main.container,
body .page-head,
body .hero-copy,
body .hero-art,
body .form-wrap,
body .form-card,
body .panel,
body .stat,
body .feature,
body .profile-card,
body .question-group,
body .request-card,
body .guidance-card,
body .quicklink-card,
body .inbox-layout,
body .chat-panel,
body .result-summary,
body .consent-box {
  animation: none !important;
  filter: none !important;
}

/* One quiet page entrance on every route. */
@keyframes selviaPageArrive {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes selviaElementArrive {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes selviaMessageArrive {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes selviaPageLeave {
  to { opacity: 0; transform: translateY(-4px); }
}

body:not(.sv-leaving) .container {
  animation: selviaPageArrive 390ms var(--selvia-motion-ease) both !important;
}
body:not(.sv-leaving) .topbar {
  animation: selviaElementArrive 330ms var(--selvia-motion-ease) both !important;
}

/* Main content blocks: consistent and restrained across all pages. */
body:not(.sv-leaving) .page-head,
body:not(.sv-leaving) .hero-copy,
body:not(.sv-leaving) .hero-art,
body:not(.sv-leaving) .form-wrap,
body:not(.sv-leaving) .form-card,
body:not(.sv-leaving) .panel,
body:not(.sv-leaving) .stat,
body:not(.sv-leaving) .feature,
body:not(.sv-leaving) .profile-card,
body:not(.sv-leaving) .question-group,
body:not(.sv-leaving) .request-card,
body:not(.sv-leaving) .guidance-card,
body:not(.sv-leaving) .quicklink-card,
body:not(.sv-leaving) .inbox-layout,
body:not(.sv-leaving) .chat-panel,
body:not(.sv-leaving) .result-summary,
body:not(.sv-leaving) .consent-box {
  animation: selviaElementArrive 420ms var(--selvia-motion-ease) both !important;
}

/* Small stagger only for sibling cards; no long cascading delays. */
body:not(.sv-leaving) .stats-grid > :nth-child(2),
body:not(.sv-leaving) .feature-grid > :nth-child(2),
body:not(.sv-leaving) .guidance-grid > :nth-child(2),
body:not(.sv-leaving) .request-columns > :nth-child(2) { animation-delay: 45ms !important; }

body:not(.sv-leaving) .stats-grid > :nth-child(3),
body:not(.sv-leaving) .feature-grid > :nth-child(3),
body:not(.sv-leaving) .guidance-grid > :nth-child(3),
body:not(.sv-leaving) .request-columns > :nth-child(3) { animation-delay: 90ms !important; }

body:not(.sv-leaving) .stats-grid > :nth-child(4),
body:not(.sv-leaving) .feature-grid > :nth-child(4),
body:not(.sv-leaving) .guidance-grid > :nth-child(4),
body:not(.sv-leaving) .request-columns > :nth-child(4) { animation-delay: 135ms !important; }

/* Interactive surfaces: restrained hover and press feedback. */
.btn, .quicklink-card, .inbox-thread, .feature, .request-card,
.nav-chat, .avatar-circle, .table-link, .small-btn {
  transition:
    transform 190ms var(--selvia-motion-ease),
    box-shadow 190ms var(--selvia-motion-ease),
    border-color 190ms ease,
    background-color 190ms ease,
    color 190ms ease !important;
}
@media (hover: hover) and (pointer: fine) {
  .feature:hover, .quicklink-card:hover, .request-card:hover,
  .inbox-thread:hover {
    transform: translateY(-2px);
  }
  .btn:hover, .small-btn:hover {
    transform: translateY(-1px);
  }
}
.btn:active, .small-btn:active, .inbox-thread:active {
  transform: scale(.992);
}

/* Inputs respond gently when focused, without jumping. */
input, textarea, select {
  transition: border-color 180ms ease, box-shadow 180ms ease,
              background-color 180ms ease !important;
}

/* Chat messages and inline notices arrive softly. */
.chat-message, .notice, .section-note {
  animation: selviaMessageArrive 300ms var(--selvia-motion-ease) both !important;
}

/* Existing navigation helper uses .sv-leaving before changing URL. */
body.sv-leaving .container {
  animation: selviaPageLeave 180ms ease-in both !important;
  pointer-events: none;
}
body.sv-leaving .topbar { opacity: .98; }
body.sv-leaving { overflow: hidden; }

/* Mobile/tablet: same character, slightly shorter timing and no hover lift. */
@media (max-width: 760px) {
  body:not(.sv-leaving) .container { animation-duration: 340ms !important; }
  body:not(.sv-leaving) .page-head,
  body:not(.sv-leaving) .hero-copy,
  body:not(.sv-leaving) .hero-art,
  body:not(.sv-leaving) .form-wrap,
  body:not(.sv-leaving) .form-card,
  body:not(.sv-leaving) .panel,
  body:not(.sv-leaving) .stat,
  body:not(.sv-leaving) .feature,
  body:not(.sv-leaving) .profile-card,
  body:not(.sv-leaving) .question-group,
  body:not(.sv-leaving) .request-card,
  body:not(.sv-leaving) .guidance-card,
  body:not(.sv-leaving) .quicklink-card,
  body:not(.sv-leaving) .inbox-layout,
  body:not(.sv-leaving) .chat-panel,
  body:not(.sv-leaving) .result-summary,
  body:not(.sv-leaving) .consent-box {
    animation-duration: 360ms !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
    transform: none !important;
    filter: none !important;
  }
}


/* =========================================================
   SELVIA v8.4 — No page entrance/exit motion
   Keep only useful micro-interactions (hover, press, focus).
   ========================================================= */
body,
body .topbar,
body .footer,
body .container,
body main.container,
body .page-head,
body .hero-copy,
body .hero-art,
body .form-wrap,
body .form-card,
body .panel,
body .stat,
body .feature,
body .profile-card,
body .question-group,
body .request-card,
body .guidance-card,
body .quicklink-card,
body .inbox-layout,
body .chat-panel,
body .result-summary,
body .consent-box,
body .chat-message,
body .notice,
body .section-note {
  animation: none !important;
  filter: none !important;
}

body.sv-leaving,
body.sv-leaving .container,
body.sv-leaving .topbar,
body.sv-leaving .footer {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  overflow: visible !important;
}

/* Preserve subtle feedback on interactive elements only. */
.btn, .quicklink-card, .inbox-thread, .feature, .request-card,
.nav-chat, .avatar-circle, .table-link, .small-btn,
input, textarea, select {
  transition-duration: 180ms !important;
}


/* =========================================================
   SELVIA v8.5 — Component-only motion
   No page transitions, no whole-container fade/slide.
   Animate only visible cards, panels, and interactive columns.
   ========================================================= */
:root {
  --sv-motion-ease: cubic-bezier(.22,.68,.2,1);
}

/* Keep the page, header, and footer completely still. */
html, body, .topbar, .container, main.container, .footer {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Quiet entrance for content cards/columns only. */
@keyframes svCardReveal {
  0% {
    opacity: .72;
    transform: translateY(9px) scale(.992);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes svSideReveal {
  0% {
    opacity: .78;
    transform: translateX(9px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Main cards and information panels across student and teacher routes. */
body .panel,
body .stat,
body .feature,
body .quicklink-card,
body .profile-card,
body .result-summary,
body .guidance-card,
body .request-card,
body .form-card,
body .question-group,
body .score-item,
body .aspect-row,
body .inbox-thread,
body .chat-panel,
body .schedule-inline,
body .consent-box,
body .float-card {
  animation: svCardReveal 340ms var(--sv-motion-ease) both !important;
  will-change: opacity, transform;
}

/* Two-column and inbox layouts: the secondary column enters softly from the side. */
body .dashboard-grid > :nth-child(2),
body .profile-layout > :nth-child(2),
body .request-columns > :nth-child(2),
body .inbox-layout > :nth-child(2),
body .manage-grid > :nth-child(2) {
  animation: svSideReveal 360ms var(--sv-motion-ease) both !important;
}

/* Short, restrained stagger: enough to create rhythm, never a long cascade. */
body .stats-grid > :nth-child(2),
body .feature-grid > :nth-child(2),
body .guidance-grid > :nth-child(2),
body .dashboard-quicklinks > :nth-child(2),
body .aspect-list > :nth-child(2),
body .inbox-list > :nth-child(2) {
  animation-delay: 45ms !important;
}
body .stats-grid > :nth-child(3),
body .feature-grid > :nth-child(3),
body .guidance-grid > :nth-child(3),
body .dashboard-quicklinks > :nth-child(3),
body .aspect-list > :nth-child(3),
body .inbox-list > :nth-child(3) {
  animation-delay: 85ms !important;
}
body .stats-grid > :nth-child(4),
body .feature-grid > :nth-child(4),
body .guidance-grid > :nth-child(4),
body .dashboard-quicklinks > :nth-child(4),
body .aspect-list > :nth-child(4),
body .inbox-list > :nth-child(4) {
  animation-delay: 125ms !important;
}

/* Existing content remains responsive: lighter movement on phones and tablets. */
@media (max-width: 900px) {
  body .panel,
  body .stat,
  body .feature,
  body .quicklink-card,
  body .profile-card,
  body .result-summary,
  body .guidance-card,
  body .request-card,
  body .form-card,
  body .question-group,
  body .score-item,
  body .aspect-row,
  body .inbox-thread,
  body .chat-panel,
  body .schedule-inline,
  body .consent-box,
  body .float-card {
    animation-duration: 290ms !important;
  }
  body .dashboard-grid > :nth-child(2),
  body .profile-layout > :nth-child(2),
  body .request-columns > :nth-child(2),
  body .inbox-layout > :nth-child(2),
  body .manage-grid > :nth-child(2) {
    animation-name: svCardReveal !important;
    animation-duration: 290ms !important;
  }
}

/* Hover/press feedback stays subtle and only applies where supported. */
@media (hover: hover) and (pointer: fine) {
  body .panel,
  body .stat,
  body .feature,
  body .quicklink-card,
  body .guidance-card,
  body .request-card,
  body .inbox-thread,
  body .aspect-row {
    transition: transform 180ms var(--sv-motion-ease),
                box-shadow 180ms ease,
                border-color 180ms ease !important;
  }
  body .feature:hover,
  body .quicklink-card:hover,
  body .request-card:hover,
  body .inbox-thread:hover {
    transform: translateY(-2px);
  }
}
body .btn:active,
body .small-btn:active {
  transform: scale(.99);
}

/* Accessibility: respect users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
  body .panel,
  body .stat,
  body .feature,
  body .quicklink-card,
  body .profile-card,
  body .result-summary,
  body .guidance-card,
  body .request-card,
  body .form-card,
  body .question-group,
  body .score-item,
  body .aspect-row,
  body .inbox-thread,
  body .chat-panel,
  body .schedule-inline,
  body .consent-box,
  body .float-card {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}


/* SELVIA v8.6 — Chat room is intentionally conversation-only. */
.chat-room-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line, #e5e9df);
  margin-bottom: 18px;
}
.chat-room-heading h2 { margin: 0 0 5px; }
.chat-room-heading .muted { display: block; }
.chat-panel .chat-inline-tools,
.chat-panel .schedule-inline,
.chat-panel .chat-room-meta { display: none !important; }
.chat-panel .chat-compose { margin-top: 22px; }


/* Profil siswa: identitas permanen ditampilkan jelas, tetapi tetap mudah dibaca/disalin. */
.profile-form .identity-locked { margin: 0 0 18px; }
.profile-form .identity-locked label { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.profile-form .identity-locked input[readonly] {
  background: #f0f3ed;
  border-color: #e0e6dc;
  color: #64736a;
  cursor: default;
  box-shadow: none;
}
.profile-form .identity-locked input[readonly]:focus {
  outline: none;
  border-color: #e0e6dc;
  box-shadow: none;
}
.profile-form .identity-locked small {
  display:block;
  margin-top:7px;
  color:var(--muted);
  font-size:12px;
  line-height:1.6;
}
.profile-form .lock-label {
  color:#718276;
  background:#edf2e9;
  border-radius:999px;
  padding:5px 9px;
  font-size:11px;
  font-weight:650;
  white-space:nowrap;
}
