:root { --counsel-bg:#0f172a; --counsel-card:rgba(30,41,59,.74); --counsel-text:#f8fafc; --counsel-muted:#b9c5d6; --counsel-line:rgba(255,255,255,.12); --counsel-blue:#60a5fa; --counsel-violet:#8b5cf6; }
* { box-sizing:border-box; }
body.student-counseling-page { min-width:320px; min-height:100vh; margin:0; background:radial-gradient(circle at 15% 5%,rgba(244,114,182,.13),transparent 34%),radial-gradient(circle at 85% 25%,rgba(96,165,250,.15),transparent 36%),var(--counsel-bg); color:var(--counsel-text); font-family:Pretendard,"Noto Sans KR","Apple SD Gothic Neo",sans-serif; }
.student-counseling-shell { width:min(752px,100%); margin:0 auto; padding:24px 16px 100px; }
.student-counseling-page-head { min-height:48px; display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:20px; color:var(--counsel-muted); font-size:13px; font-weight:800; }
.student-counseling-page-head a { min-height:44px; display:inline-flex; align-items:center; gap:8px; color:inherit; text-decoration:none; }
.student-counseling-page-head span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.student-counseling-card { margin-bottom:18px; border:1px solid var(--counsel-line); border-radius:24px; background:var(--counsel-card); padding:24px; box-shadow:0 12px 38px rgba(2,6,23,.26); backdrop-filter:blur(12px); }
.student-counseling-hero { display:flex; align-items:center; justify-content:space-between; gap:18px; background:linear-gradient(135deg,rgba(244,114,182,.2),rgba(96,165,250,.18)); }
.student-counseling-hero-copy { min-width:0; display:flex; align-items:center; gap:14px; }
.student-counseling-hero-copy img { width:58px; height:58px; object-fit:contain; flex:none; }
.student-counseling-hero h1 { margin:0; font-size:24px; font-weight:950; }
.student-counseling-hero p { max-width:480px; margin:7px 0 0; color:var(--counsel-muted); font-size:14px; line-height:1.6; }
.student-counseling-hero > button,.student-counseling-history-dialog > header button { min-height:44px; flex:none; border:1px solid var(--counsel-line); border-radius:999px; background:rgba(255,255,255,.07); padding:0 16px; color:var(--counsel-text); font:inherit; font-size:13px; font-weight:900; cursor:pointer; }
.student-counseling-hero > button { display:inline-flex; align-items:center; gap:7px; }
.student-counseling-hero > button strong { min-width:20px; border-radius:99px; background:rgba(96,165,250,.25); padding:2px 6px; }
.student-counseling-compose h2 { margin:0; font-size:20px; }
.student-counseling-categories { display:flex; flex-wrap:wrap; gap:10px; margin:14px 0 0; border:0; padding:0; }
.student-counseling-categories label { position:relative; }
.student-counseling-categories input { position:absolute; opacity:0; pointer-events:none; }
.student-counseling-categories span { min-height:44px; display:inline-flex; align-items:center; border:1px solid var(--counsel-line); border-radius:999px; background:rgba(255,255,255,.04); padding:0 15px; color:var(--counsel-text); font-size:13px; font-weight:800; cursor:pointer; transition:.16s ease; }
.student-counseling-categories input:checked + span { border-color:rgba(96,165,250,.62); background:rgba(96,165,250,.2); transform:translateY(-1px); }
.student-counseling-categories input:focus-visible + span { outline:3px solid rgba(147,197,253,.45); outline-offset:2px; }
.student-counseling-label { display:block; margin:20px 0 10px; font-size:14px; font-weight:900; }
.student-counseling-compose textarea { width:100%; min-height:180px; resize:vertical; border:1px solid var(--counsel-line); border-radius:18px; background:rgba(15,23,42,.7); padding:16px; color:var(--counsel-text); font:inherit; font-size:15px; line-height:1.65; }
.student-counseling-compose textarea::placeholder { color:#8190a5; }
.student-counseling-counter { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:10px; color:var(--counsel-muted); font-size:12px; }
.student-counseling-counter span:first-child { display:inline-flex; align-items:center; gap:6px; }
.student-counseling-help { margin:12px 0 0; color:var(--counsel-muted); font-size:12px; line-height:1.55; }
.student-counseling-submit { width:100%; min-height:50px; margin-top:18px; border:0; border-radius:18px; background:linear-gradient(135deg,var(--counsel-blue),var(--counsel-violet)); color:#fff; font:inherit; font-size:15px; font-weight:950; cursor:pointer; box-shadow:0 10px 24px rgba(96,165,250,.18); }
.student-counseling-submit:disabled,.student-counseling-categories input:disabled + span,.student-counseling-compose textarea:disabled { opacity:.52; cursor:wait; }
.student-counseling-status { min-height:22px; margin:13px 0 0; color:var(--counsel-muted); font-size:13px; line-height:1.5; }
.student-counseling-status[data-tone="good"] { color:#bbf7d0; }.student-counseling-status[data-tone="warn"] { color:#fde68a; }.student-counseling-status[data-tone="bad"] { color:#fda4af; }
.student-counseling-history { position:fixed; inset:0; z-index:100; display:grid; place-items:center; background:rgba(2,6,23,.78); padding:16px; backdrop-filter:blur(7px); }
.student-counseling-history[hidden] { display:none; }
.student-counseling-history-dialog { width:min(760px,100%); max-height:min(88dvh,900px); display:flex; flex-direction:column; overflow:hidden; border:1px solid var(--counsel-line); border-radius:28px; background:rgba(15,23,42,.97); box-shadow:0 28px 70px rgba(2,6,23,.55); }
.student-counseling-history-dialog > header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:18px 20px; border-bottom:1px solid rgba(255,255,255,.08); }
.student-counseling-history-dialog h2 { margin:0; font-size:20px; }.student-counseling-history-dialog header p { margin:4px 0 0; color:var(--counsel-muted); font-size:12px; }
.student-counseling-history-list { display:grid; gap:12px; overflow:auto; padding:18px; }
.student-counseling-history-card { border:1px solid rgba(255,255,255,.09); border-radius:20px; background:rgba(255,255,255,.045); padding:16px; }
.student-counseling-history-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }.student-counseling-history-head strong { font-size:14px; }
.student-counseling-state { border-radius:99px; background:rgba(255,255,255,.07); padding:5px 9px; color:var(--counsel-muted); font-size:11px; font-weight:900; }.student-counseling-state.is-replied,.student-counseling-state.is-resolved { background:rgba(16,185,129,.16); color:#bbf7d0; }
.student-counseling-history-message,.student-counseling-reply p { margin:12px 0 6px; color:var(--counsel-text); font-size:14px; line-height:1.65; white-space:pre-wrap; overflow-wrap:anywhere; }.student-counseling-history-card time { color:var(--counsel-muted); font-size:11px; }
.student-counseling-reply { margin-top:14px; border-top:1px dashed var(--counsel-line); padding:14px; border-radius:0 0 14px 14px; background:rgba(96,165,250,.11); }.student-counseling-reply strong { color:#bfdbfe; font-size:12px; }
.student-counseling-history-card.is-locked { color:var(--counsel-muted); }.student-counseling-history-card.is-locked p,.student-counseling-empty { margin:8px 0 0; color:var(--counsel-muted); font-size:13px; line-height:1.55; }.student-counseling-empty { padding:28px 16px; text-align:center; }
@media (max-width:640px) { .student-counseling-shell { padding:18px 12px 88px; }.student-counseling-card { padding:18px; border-radius:20px; }.student-counseling-hero { align-items:flex-start; flex-direction:column; }.student-counseling-hero > button { width:100%; justify-content:center; }.student-counseling-counter { align-items:flex-start; }.student-counseling-history-dialog { max-height:94dvh; border-radius:22px; } }
.student-v4-counseling-dialog { width:100vw; max-width:none; height:100dvh; max-height:none; margin:0; border:0; background:var(--counsel-bg); padding:0; color:var(--counsel-text); }
.student-v4-counseling-dialog::backdrop { background:rgba(2,6,23,.7); }
.student-counseling-mobile-shell { min-height:100dvh; padding-top:max(14px,env(safe-area-inset-top)); padding-bottom:calc(72px + env(safe-area-inset-bottom)); }
.student-counseling-mobile-shell .student-counseling-page-head button { min-height:44px; display:inline-flex; align-items:center; gap:8px; border:0; background:transparent; color:var(--counsel-muted); font:inherit; font-weight:900; }
