/* 스카이항공승무학원 상담관리 — 무채색 바탕 + 파스텔 포인트, 카드뉴스형 레이아웃 */
:root{
  --bg:#F4F5F7; --surface:#fff; --ink:#15171C; --ink2:#3A3F47; --muted:#5B616B; --line:#E6E8EC; --line2:#D5D9DF;
  --brand:#2B5C94; --brand-d:#1F4A7A; --sky:#DCEAF8; --sky2:#CFE3F8; --sky-pale:#EAF2FB;
  --mint:#E2F3EC; --peach:#FCEBDD; --lav:#ECE8F8; --blue:#E3EEFA;
  --r-card:28px; --r-in:14px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:'Noto Sans KR',system-ui,-apple-system,'Malgun Gothic',sans-serif;background:var(--bg);color:var(--ink);font-size:16px;line-height:1.5}
a{color:inherit;text-decoration:none}
h1,h2,h3{margin:0}
p{margin:0}
ul.plain,ol.plain{list-style:none;margin:0;padding:0}
.gap12{display:flex;flex-direction:column;gap:12px}
.gap14{display:flex;flex-direction:column;gap:14px}
.small{font-size:14px;color:var(--muted)}
.muted{color:var(--muted)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.grow{flex:1 1 180px;min-width:0;display:flex;flex-direction:column;gap:2px}
.grow small{font-size:14px;color:var(--muted)}
.between{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap}
.inline{display:inline-flex;margin:0}
.empty{padding:32px 8px;text-align:center;color:var(--muted)}
:focus-visible{outline:2px solid var(--brand);outline-offset:2px}

/* 상단 바 */
.topbar{background:var(--surface);border-bottom:1px solid var(--line)}
.topbar-in{max-width:1200px;margin:0 auto;padding:12px 32px;display:flex;flex-wrap:wrap;align-items:center;gap:12px 32px}
.brand{display:flex;align-items:center;gap:12px}
.brand-mark{width:40px;height:40px;border-radius:12px;background:var(--sky2);color:var(--brand);display:flex;align-items:center;justify-content:center}
.brand-mark-white{width:44px;height:44px;border-radius:14px;background:#fff}
.brand-text{display:flex;flex-direction:column;line-height:1.25}
.brand-text strong{font-size:16px}
.brand-text small{font-size:12px;color:var(--muted);letter-spacing:.08em}
.tabs{display:flex;flex-wrap:wrap;gap:4px;flex:1 1 auto}
.tab{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:999px;font-size:15px;color:var(--ink2)}
.tab:hover{background:#F1F3F5}
.tab.on{background:var(--sky-pale);color:var(--brand-d);font-weight:700}
.topbar-right{display:flex;align-items:center;gap:12px}
.me{position:relative}
.me summary{list-style:none;cursor:pointer;display:block;border-radius:50%}
.me summary::-webkit-details-marker{display:none}
.me-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:10;min-width:200px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:8px;box-shadow:0 12px 32px rgba(21,23,28,.12);display:flex;flex-direction:column}
.me-menu a,.me-name{padding:12px 14px;border-radius:12px;font-size:15px}
.me-menu a:hover{background:#F4F5F7}
.me-name{color:var(--ink);font-weight:700;border-bottom:1px solid var(--line);border-radius:0;margin-bottom:4px}
.me-name small{font-weight:400;color:var(--muted);margin-left:4px}

/* 버튼 */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 22px;border-radius:999px;border:1px solid transparent;font:inherit;font-size:15px;font-weight:500;cursor:pointer;white-space:nowrap}
.btn-primary{background:var(--brand);color:#fff}
.btn-primary:hover{background:var(--brand-d)}
.btn-dark{background:var(--ink);color:#fff}
.btn-ghost{background:#fff;border-color:var(--line2);color:var(--ink2)}
.btn-ghost:hover{background:#F7F8FA}
.btn-outline{background:#fff;border-color:var(--brand);color:var(--brand-d)}
.btn-danger{background:#fff;border-color:#E3B3B3;color:#9B2C2C}
.btn-block{width:100%}
.btn-sm{min-height:44px;padding:0 16px;font-size:14px}
.btn-lg{min-height:54px;padding:0 36px;font-size:16px;font-weight:700}
button:disabled,input:disabled{opacity:.6;cursor:not-allowed}

/* 아바타·칩 */
.avatar{width:44px;height:44px;flex:0 0 44px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;color:var(--ink)}
.avatar-lg{width:48px;height:48px;flex-basis:48px}
.av0{background:#DCEBFA}.av1{background:#DDF1EA}.av2{background:#FBE9DB}.av3{background:#EDE9F8;color:#4B3F86}.av4{background:#F9E3E8}
.chip{display:inline-block;font-size:13px;font-weight:500;padding:6px 14px;border-radius:999px;white-space:nowrap}
.chip-lg{padding:6px 16px}
.s-new{background:#DCEBFA;color:#25507F}
.s-ing{background:#DDF1EA;color:#1F6B54}
.s-visit{background:#FBE9DB;color:#8A4A1C}
.s-done{background:var(--ink);color:#fff}
.s-hold{background:#ECEEF1;color:#4B515A}
.s-lav{background:#EDE9F8;color:#4B3F86}

/* 레이아웃 */
.page{max-width:1200px;margin:0 auto;padding:40px 32px 72px;display:flex;flex-direction:column;gap:32px}
.narrow{max-width:760px;margin:0 auto;padding:40px 32px 80px;display:flex;flex-direction:column;gap:20px}
.narrow.wide{max-width:880px}
.page-head{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between;align-items:flex-end}
.page-title{font-size:36px;font-weight:700;letter-spacing:-.02em;line-height:1.25}
.title-row{display:flex;flex-wrap:wrap;gap:14px;align-items:center}
.back{display:inline-flex;align-items:center;min-height:44px;font-size:14px;font-weight:500;color:var(--brand)}
.actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:flex-end;align-items:center}
.card{background:var(--surface);border-radius:var(--r-card);padding:32px}
.card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}
.card-head h2,.card h2{font-size:20px}
.card-sky{background:var(--sky)}
.link{font-size:14px;font-weight:500;color:var(--brand);min-height:44px;display:inline-flex;align-items:center}
.stack{display:flex;flex-direction:column;gap:20px}
.stack-lg{display:flex;flex-direction:column;gap:20px}
.flash{max-width:1136px;margin:20px auto 0;padding:14px 20px;border-radius:18px;font-size:15px}
.flash-ok{background:var(--mint);color:#1F6B54}
.flash-err{background:#FBE3E3;color:#8A2A2A}
.form-error{background:#FBE3E3;color:#8A2A2A;border-radius:16px;padding:14px 18px;font-size:15px;line-height:1.6}

/* 말풍선 */
.bubbles{display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.bubble{display:inline-flex;align-items:center;gap:12px;background:#fff;border-radius:22px 22px 22px 6px;padding:12px 20px;font-size:15px;max-width:100%}
.bubble-link:hover{background:#F8FAFC}
.bubble-row{display:flex;gap:12px;align-items:flex-end}
.bubble-row .bubble{background:var(--sky)}
.card-sky .bubble-row .bubble{background:#fff}
.bot-avatar{width:36px;height:36px;flex:0 0 36px;border-radius:50%;background:var(--sky2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B5C94' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 3 3 10.5l7 2.5 2.5 7z'/%3E%3Cpath d='M10 13 21 3'/%3E%3C/svg%3E") center/18px no-repeat}
.dot{width:10px;height:10px;border-radius:50%;flex:0 0 10px}
.dot-blue{background:var(--brand)}.dot-amber{background:#C77A3B}

/* 대시보드 */
.grid-hero{display:flex;flex-wrap:wrap;gap:24px;align-items:stretch}
.grid-hero>.hero{flex:3 1 560px}
.grid-hero>.card{flex:2 1 340px;min-width:0}
.hero{background:var(--sky);border-radius:var(--r-card);padding:44px;display:flex;flex-direction:column;gap:28px;min-width:0}
.hero h1{font-size:40px;line-height:1.3;font-weight:700;letter-spacing:-.02em;margin-top:10px}
.hero .small{color:#33506E}
.visit{display:flex;gap:16px;align-items:center;background:#F7F8FA;border-radius:18px;padding:14px 18px}
.visit .time{font-size:15px;font-weight:700;background:#fff;border-radius:12px;padding:8px 12px}
.visit-main{display:flex;flex-direction:column;gap:2px;min-width:0}
.visit-main small{font-size:13px;color:var(--muted)}
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:20px}
.tile{border-radius:var(--r-card);padding:28px 30px;display:flex;flex-direction:column;gap:14px;color:var(--ink2);font-size:15px}
.tile b{font-size:52px;font-weight:700;line-height:1;letter-spacing:-.02em;color:var(--ink)}
.tile b small{font-size:18px;font-weight:500;margin-left:6px;color:var(--ink2)}
.tile b.b-sm{font-size:22px;letter-spacing:0}
.tiles-3{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.tiles-3 .tile{padding:26px 30px}.tiles-3 .tile b{font-size:44px}
.t-blue{background:var(--blue)}.t-mint{background:var(--mint)}.t-peach{background:var(--peach)}.t-lav{background:var(--lav)}.t-gray{background:#ECEEF1}
.tile-link:hover{filter:brightness(.98)}
.link-inline{font-size:14px;color:var(--brand-d);font-weight:500}
.meter{height:10px;border-radius:999px;background:#fff;overflow:hidden}
.meter span{display:block;height:100%;border-radius:999px;background:var(--brand)}
.card .meter{background:#EEF0F3}
.grid-2{display:flex;flex-wrap:wrap;gap:24px;align-items:flex-start}
.grid-2>.card:first-child{flex:1 1 360px;min-width:0}
.grid-2>.card:last-child{flex:2 1 520px;min-width:0}
.stack-bar{display:flex;height:16px;border-radius:999px;overflow:hidden;gap:3px;margin-bottom:24px}
.stack-bar span{border-radius:4px}
.legend{display:flex;align-items:center;gap:12px;font-size:15px}
.legend span:nth-child(2){flex:1}
.legend-dot{width:12px;height:12px;border-radius:50%;flex:0 0 12px}
.recent{display:flex;flex-wrap:wrap;gap:12px 16px;align-items:center;padding:16px 0;border-top:1px solid #EEF0F3}
.recent a{font-size:16px;font-weight:500}

/* 목록 */
.filters{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;margin-bottom:24px}
.pills{display:flex;flex-wrap:wrap;gap:8px}
.pill{display:inline-flex;align-items:center;gap:4px;min-height:44px;padding:0 18px;border-radius:999px;font-size:14px;font-weight:500;border:1px solid var(--line2);background:#fff;color:var(--ink2)}
.pill b{color:var(--brand)}
.pill.on{background:var(--ink);border-color:var(--ink);color:#fff}
.pill.on b{color:#BCD3EC}
.search{display:flex;flex-wrap:wrap;gap:8px}
.round,.round-lg{font:inherit;font-size:15px;border:1px solid var(--line2);background:#F7F8FA;color:var(--ink)}
.round{height:44px;padding:0 16px;border-radius:999px}
.round-lg{padding:14px 18px;border-radius:22px;line-height:1.6;resize:vertical}
.row-item{display:flex;flex-wrap:wrap;gap:12px 20px;align-items:center;padding:18px 24px;border-radius:22px;background:#F7F8FA}
.row-item:hover{background:#F0F4F9}
.row-item strong{font-size:17px}
.row-item strong small{font-size:13px;font-weight:400;color:var(--muted);margin-left:4px}
.cell{flex:0 1 150px;display:flex;flex-direction:column;gap:2px;font-size:15px;font-weight:500}
.cell small{font-size:12px;font-weight:400;color:var(--muted)}
.cell-sm{flex-basis:90px}
.pager{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:center;margin-top:24px;font-size:14px;color:var(--muted)}
.pager nav{display:flex;gap:8px;align-items:center}
.pager-now{padding:0 8px}

/* 상세 */
.cols{display:flex;flex-wrap:wrap;gap:24px;align-items:flex-start}
.col-side{flex:1 1 340px;max-width:420px;min-width:0;display:flex;flex-direction:column;gap:24px}
.col-main{flex:2 1 520px;min-width:0;display:flex;flex-direction:column;gap:24px}
section.col-main.card{display:block}
.profile-top{display:flex;gap:20px;align-items:center}
.photo-sm{width:96px;height:124px;flex:0 0 96px;border-radius:18px;background:#E8EEF5;display:flex;align-items:center;justify-content:center;overflow:hidden}
.photo-sm img,.photo-box img{width:100%;height:100%;object-fit:cover}
.profile-name{display:flex;flex-direction:column;gap:4px;min-width:0}
.profile-name strong{font-size:20px}
.profile-name small{font-size:14px;color:var(--muted)}
.info{margin:0;display:grid;grid-template-columns:96px 1fr;gap:14px 12px;font-size:15px}
.info dt{color:var(--muted)}
.info dd{margin:0;word-break:break-all}
.steps{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.step{font-size:14px;font-weight:500;padding:10px 20px;border-radius:999px;background:var(--bg);color:var(--muted)}
.step.done{background:#DCEBFA;color:#25507F}
.step.now{background:var(--ink);color:#fff;font-weight:700}
.chat{display:flex;flex-direction:column;gap:22px;max-height:640px;overflow-y:auto;padding:4px 4px 8px}
.msg{display:flex;gap:12px;align-items:flex-end}
.msg.me{flex-direction:row-reverse}
.msg .avatar{width:36px;height:36px;flex-basis:36px;font-size:14px}
.msg-col{display:flex;flex-direction:column;gap:6px;max-width:78%;min-width:0;align-items:flex-start}
.msg.me .msg-col{align-items:flex-end}
.bubble-msg{font-size:15px;line-height:1.7;padding:14px 20px;background:var(--bg);border-radius:22px 22px 22px 6px;word-break:break-word}
.msg.me .bubble-msg{background:var(--sky);border-radius:22px 22px 6px 22px}
.mini{font-size:12px;font-weight:500;padding:4px 10px;border-radius:999px;background:var(--bg);color:var(--ink2)}
.composer{border-top:1px solid #EEF0F3;margin-top:24px;padding-top:24px;display:flex;flex-direction:column;gap:14px}
.composer-opts{display:flex;flex-wrap:wrap;gap:10px}
.composer-row{display:flex;gap:12px;align-items:flex-end}
.composer-row textarea{flex:1;min-width:0}
.send{width:52px;height:52px;flex:0 0 52px;border:0;border-radius:50%;background:var(--brand);display:flex;align-items:center;justify-content:center;cursor:pointer}
.send:hover{background:var(--brand-d)}
.danger-zone{display:flex;justify-content:flex-end}

/* 폼 */
.field{display:flex;flex-direction:column;gap:6px;min-width:0}
.field label,.field .label,.label{font-size:14px;color:var(--muted);font-weight:500}
.field input,.field select,.field textarea,.fields>input{font:inherit;font-size:15px;min-height:48px;padding:0 16px;border:1px solid var(--line2);border-radius:var(--r-in);background:#F7F8FA;color:var(--ink);width:100%}
.field textarea{padding:14px 16px;min-height:96px;border-radius:18px;line-height:1.6;resize:vertical}
.field select{padding:0 12px}
.fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:18px 20px}
.span-all{grid-column:1 / -1}
.divider{border-top:1px solid #EEF0F3;padding-top:22px}
.w150{max-width:150px}
.hint{font-size:13px;color:var(--muted)}
.pair{display:flex;gap:8px;align-items:center}
.check{display:flex;align-items:center;gap:8px;min-height:44px;font-size:14px;color:var(--ink2);cursor:pointer}
.check input{width:20px;height:20px;accent-color:var(--brand)}
.with-photo{display:flex;flex-wrap:wrap;gap:28px;align-items:flex-start}
.with-photo .fields{flex:1 1 340px}
.photo-col{flex:0 0 180px;display:flex;flex-direction:column;gap:12px}
.photo-box{width:180px;height:232px;border-radius:22px;background:var(--bg);border:1px dashed #B5BCC6;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:var(--muted);font-size:13px;text-align:center;padding:16px;overflow:hidden}
.photo-box img{border-radius:0}
.file-hidden{position:absolute;width:1px;height:1px;opacity:0}
label.btn{cursor:pointer}

/* 계정 */
.acct{display:flex;flex-wrap:wrap;gap:12px 16px;align-items:center;padding:16px 20px;border-radius:20px;background:#F7F8FA}
.acct.off{background:#fff;border:1px solid var(--line);opacity:.75}
.acct strong small{font-weight:400;color:var(--muted)}
.role-select{height:44px}
.switch{position:relative;width:56px;height:44px;border:0;background:transparent;padding:0;cursor:pointer}
.switch span{position:absolute;left:0;top:8px;width:52px;height:28px;border-radius:999px;background:#A9B0BA}
.switch span::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;transition:left .15s}
.switch.on span{background:var(--brand)}
.switch.on span::after{left:27px}
.roles-help{display:flex;flex-direction:column;gap:14px;font-size:14px;color:var(--ink2);line-height:1.6}
.roles-help .chip{margin-bottom:6px}

/* 설문 */
.summary{display:flex;flex-wrap:wrap;gap:20px 40px;align-items:center;padding:28px 32px}
.summary .big{display:block;font-size:48px;line-height:1;letter-spacing:-.02em;margin-top:6px}
.summary .big small{font-size:18px;font-weight:500;color:var(--muted);margin-left:6px}
.sum-sec{flex:1 1 220px;min-width:0;display:flex;flex-direction:column;gap:10px;font-size:14px}
.survey-sec{display:flex;flex-direction:column;gap:20px}
.survey-sec h2{font-size:22px}
.tint-blue{background:var(--blue)}.tint-lav{background:var(--lav)}
.q-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(380px,100%),1fr));gap:10px}
.q{display:flex;gap:14px;align-items:flex-start;min-height:44px;padding:14px 18px;border-radius:18px;cursor:pointer;border:1.5px solid transparent;background:#fff}
.q.on{border-color:var(--brand)}
.q input{width:22px;height:22px;flex:0 0 22px;margin:1px 0 0;accent-color:var(--brand);cursor:pointer}
.q span{font-size:15px;line-height:1.55}
.q em{font-style:normal;color:var(--muted);font-size:13px;margin-right:8px}

/* 로그인 */
.login-body{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:40px 24px}
.login-wrap{width:100%;max-width:1080px;display:flex;flex-wrap:wrap;gap:24px;align-items:stretch}
.login-brand{flex:1 1 440px;min-height:560px;background:var(--sky);border-radius:32px;padding:48px;display:flex;flex-direction:column;justify-content:space-between;gap:40px}
.login-brand h1{font-size:38px;line-height:1.3;font-weight:700;letter-spacing:-.02em;margin-bottom:24px}
.login-card{flex:1 1 400px;background:#fff;border-radius:32px;padding:48px;display:flex;flex-direction:column;justify-content:center;gap:24px}
.login-card h2{font-size:28px;margin-bottom:8px}

@media (max-width:720px){
  .topbar-in,.page,.narrow{padding-left:16px;padding-right:16px}
  .flash{margin-left:16px;margin-right:16px}
  .page-title{font-size:28px}
  .hero{padding:28px}.hero h1{font-size:28px}
  .card{padding:24px}
  .login-brand,.login-card{padding:28px}
  .login-brand{min-height:0}
  .login-brand h1{font-size:28px}
  .tile b{font-size:42px}
  .msg-col{max-width:88%}
  .cols{flex-direction:column}
  .col-side{max-width:none;width:100%}
}
