/* =============================================================
   MMC Growth — 대졸공채 인사 평가 시스템
   Design System : Musinsa B&W · High-Contrast · Enterprise Density
   ============================================================= */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

:root {
  /* Monochrome scale */
  --ink:        #0A0A0A;   /* near-black, primary text & brand */
  --ink-2:      #1A1A1A;
  --gray-900:   #2B2B2B;
  --gray-700:   #4A4A4A;
  --gray-500:   #8A8A8A;
  --gray-400:   #ABABAB;
  --gray-300:   #D4D4D4;
  --gray-200:   #E5E5E5;
  --gray-100:   #F1F1F1;
  --gray-50:    #F8F8F8;
  --paper:      #FFFFFF;

  /* Functional accents (kept muted; B&W-first) */
  --pos:        #1A7F37;   /* positive / done */
  --pos-bg:     #E8F5EC;
  --neg:        #B42318;   /* negative / overdue */
  --neg-bg:     #FBEAE8;
  --warn:       #8A6D00;   /* pending / attention */
  --warn-bg:    #FBF4E0;
  --info:       #1A1A1A;

  --border:     #E5E5E5;
  --border-str: #0A0A0A;

  --radius:     10px;
  --radius-sm:  6px;
  --shadow:     0 1px 2px rgba(0,0,0,.04), 0 1px 3px rgba(0,0,0,.06);
  --shadow-lg:  0 8px 30px rgba(0,0,0,.12);

  --sidebar-w:  248px;
  --header-h:   60px;

  --fs-xs: 11px; --fs-sm: 12px; --fs-base: 13px; --fs-md: 14px;
  --fs-lg: 16px; --fs-xl: 20px; --fs-2xl: 26px; --fs-3xl: 34px;

  --font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  font-size: var(--fs-base);
  color: var(--ink);
  background: var(--gray-100);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 8px; border: 2px solid var(--gray-100); }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ============================ LOGIN ============================ */
.login-wrap {
  min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr;
  grid-template-rows: minmax(100vh, auto);
  background: var(--paper);
}
.login-hero {
  background: var(--ink); color: #fff; padding: 56px 56px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.login-hero::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px; pointer-events: none;
}
.login-hero .brand-mark { font-size: 13px; letter-spacing: .35em; font-weight: 800; opacity: .7; }
.login-hero h1 { font-size: 46px; line-height: 1.05; font-weight: 800; margin-top: 18px; letter-spacing: -.03em; }
.login-hero h1 span { display:block; color: var(--gray-400); }
.login-hero .hero-foot { font-size: 12px; color: var(--gray-400); line-height: 1.7; z-index: 1; }
.login-hero .hero-stats { display:flex; gap: 36px; margin-top: 28px; z-index:1; }
.login-hero .hero-stats b { display:block; font-size: 30px; font-weight: 800; }
.login-hero .hero-stats span { font-size: 11px; color: var(--gray-400); letter-spacing: .04em; }

.login-form-side { display:flex; align-items:center; justify-content:center; padding: 40px; }
.login-card { width: 100%; max-width: 360px; }
.login-card h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.login-card .sub { color: var(--gray-500); margin-top: 6px; margin-bottom: 28px; font-size: var(--fs-md); }
.field { margin-bottom: 16px; }
.field label { display:block; font-size: var(--fs-sm); font-weight: 700; margin-bottom: 7px; }
.field input, .field select {
  width: 100%; padding: 12px 13px; border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm); background: var(--paper); transition: border-color .15s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); }
.btn-primary {
  width: 100%; padding: 13px; background: var(--ink); color: #fff; border: none;
  border-radius: var(--radius-sm); font-weight: 700; font-size: var(--fs-md); transition: opacity .15s;
}
.btn-primary:hover { opacity: .88; }
.login-err { color: var(--neg); font-size: var(--fs-sm); margin-top: 10px; min-height: 16px; font-weight: 600; }
.login-hint { margin-top: 22px; padding: 14px; background: var(--gray-50); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: var(--fs-sm); color: var(--gray-700); }
.login-hint b { color: var(--ink); }
.demo-accounts { margin-top: 10px; display: grid; gap: 5px; }
.demo-accounts button { text-align: left; background: var(--paper); border: 1px solid var(--border); border-radius: 5px; padding: 7px 9px; font-size: var(--fs-xs); display:flex; justify-content: space-between; align-items:center; }
.demo-accounts button:hover { border-color: var(--ink); }
.demo-accounts .role-tag { font-weight: 700; }

/* ============================ APP SHELL ============================ */
.app { display: none; min-height: 100vh; }
.app.active { display: grid; grid-template-columns: var(--sidebar-w) 1fr; }

.sidebar {
  background: var(--ink); color: #fff; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; overflow: hidden;
}
.sidebar .logo { padding: 20px 22px 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar .logo b { font-size: 16px; font-weight: 800; letter-spacing: .12em; }
.sidebar .logo small { display:block; color: var(--gray-400); font-size: 10.5px; letter-spacing: .18em; margin-top: 3px; }
.nav { flex: 1; overflow-y: auto; padding: 12px 12px; }
.nav .nav-group { font-size: 10px; color: var(--gray-500); letter-spacing: .12em; font-weight: 700; padding: 14px 10px 6px; text-transform: uppercase; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: var(--radius-sm);
  color: var(--gray-300); font-size: var(--fs-md); font-weight: 600; margin-bottom: 2px; transition: all .12s;
}
.nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav a.active { background: #fff; color: var(--ink); font-weight: 700; }
.nav a .ic { width: 17px; height: 17px; flex-shrink: 0; }
.nav a .badge-n { margin-left: auto; background: var(--neg); color:#fff; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 9px; }
.nav a.active .badge-n { background: var(--ink); }
.sidebar .side-foot { padding: 14px; border-top: 1px solid rgba(255,255,255,.1); }
.user-chip { display:flex; align-items:center; gap: 10px; }
.user-chip .avatar { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--ink); display:flex; align-items:center; justify-content:center; font-weight: 800; font-size: 13px; flex-shrink:0; }
.user-chip .u-meta { overflow: hidden; }
.user-chip .u-meta b { display:block; font-size: var(--fs-md); font-weight: 700; white-space: nowrap; overflow:hidden; text-overflow: ellipsis; }
.user-chip .u-meta span { font-size: 11px; color: var(--gray-400); }
.btn-logout { margin-top: 11px; width: 100%; background: transparent; border: 1px solid rgba(255,255,255,.2); color: var(--gray-300); padding: 8px; border-radius: var(--radius-sm); font-size: var(--fs-sm); font-weight: 600; }
.btn-logout:hover { border-color: #fff; color: #fff; }

.scrim { display: none; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: var(--header-h); background: var(--paper); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px; padding: 0 26px; position: sticky; top: 0; z-index: 40;
}
.topbar .menu-toggle { display:none; background: none; border: none; padding: 4px; }
.topbar .crumb { font-size: var(--fs-sm); color: var(--gray-500); font-weight: 600; }
.topbar .crumb b { color: var(--ink); }
.topbar .page-title { font-size: var(--fs-lg); font-weight: 800; letter-spacing: -.02em; }
.topbar .spacer { flex: 1; }
.topbar .month-pill { display:flex; align-items:center; gap: 8px; border: 1px solid var(--border); border-radius: 20px; padding: 5px 13px; font-size: var(--fs-sm); font-weight: 700; }
.topbar .month-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }

.content { padding: 24px 26px 60px; flex: 1; max-width: 1320px; width: 100%; }
.page-head { margin-bottom: 20px; }
.page-head h1 { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.025em; }
.page-head p { color: var(--gray-500); margin-top: 5px; font-size: var(--fs-md); }

/* ============================ GRID / CARDS ============================ */
.grid { display: grid; gap: 14px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }

.card {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.card.tight { padding: 14px; }
.card-head { display:flex; align-items:center; justify-content: space-between; margin-bottom: 14px; }
.card-head h3 { font-size: var(--fs-md); font-weight: 800; letter-spacing: -.01em; }
.card-head .head-sub { font-size: var(--fs-sm); color: var(--gray-500); }
.card-head .link { font-size: var(--fs-sm); font-weight: 700; color: var(--gray-700); }
.card-head .link:hover { color: var(--ink); text-decoration: underline; }

/* KPI / stat */
.stat { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat .label { font-size: var(--fs-sm); color: var(--gray-500); font-weight: 600; display:flex; align-items:center; gap:6px; }
.stat .value { font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -.03em; margin-top: 6px; line-height: 1; }
.stat .value small { font-size: 15px; color: var(--gray-400); font-weight: 700; }
.stat .delta { font-size: var(--fs-sm); font-weight: 700; margin-top: 8px; display:inline-flex; align-items:center; gap: 4px; }
.stat .delta.up { color: var(--pos); }
.stat .delta.down { color: var(--neg); }
.stat .delta.flat { color: var(--gray-500); }
.stat .bar { height: 6px; background: var(--gray-100); border-radius: 4px; margin-top: 12px; overflow: hidden; }
.stat .bar > i { display:block; height: 100%; background: var(--ink); border-radius: 4px; }

/* ============================ BADGES / PILLS ============================ */
.badge { display:inline-flex; align-items:center; gap: 5px; padding: 2px 9px; border-radius: 20px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .01em; }
.badge.b-ink { background: var(--ink); color: #fff; }
.badge.b-out { background: transparent; border: 1px solid var(--gray-300); color: var(--gray-700); }
.badge.b-pos { background: var(--pos-bg); color: var(--pos); }
.badge.b-neg { background: var(--neg-bg); color: var(--neg); }
.badge.b-warn { background: var(--warn-bg); color: var(--warn); }
.badge.b-gray { background: var(--gray-100); color: var(--gray-700); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag-lock { display:inline-flex; align-items:center; gap: 5px; font-size: var(--fs-xs); font-weight: 700; color: var(--gray-500); }

/* ============================ TABLES ============================ */
.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-md); }
.tbl th { text-align: left; font-size: var(--fs-xs); color: var(--gray-500); font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 9px 12px; border-bottom: 1.5px solid var(--ink); white-space: nowrap; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:hover td { background: var(--gray-50); }
.tbl .row-click { cursor: pointer; }
.tbl .name-cell { display:flex; align-items:center; gap: 10px; }
.avatar-sm { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color:#fff; display:flex; align-items:center; justify-content:center; font-weight: 800; font-size: 12px; flex-shrink:0; }
.avatar-sm.gray { background: var(--gray-200); color: var(--gray-700); }
.mini-bar { width: 70px; height: 6px; background: var(--gray-100); border-radius: 4px; display:inline-block; overflow:hidden; vertical-align: middle; }
.mini-bar > i { display:block; height: 100%; background: var(--ink); }

/* ============================ TO-DO WIDGET ============================ */
.todo-item { display:flex; align-items:center; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.todo-item:last-child { border-bottom: none; }
.todo-item .t-ic { width: 34px; height: 34px; border-radius: 8px; background: var(--gray-100); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.todo-item .t-body { flex:1; min-width:0; }
.todo-item .t-body b { display:block; font-size: var(--fs-md); font-weight: 700; }
.todo-item .t-body span { font-size: var(--fs-sm); color: var(--gray-500); }
.todo-item .t-act { background: var(--ink); color:#fff; border:none; border-radius: var(--radius-sm); padding: 6px 12px; font-size: var(--fs-sm); font-weight: 700; white-space:nowrap; }
.todo-item .t-act.ghost { background: var(--paper); color: var(--ink); border: 1px solid var(--gray-300); }
.empty-state { text-align:center; padding: 36px 16px; color: var(--gray-400); }
.empty-state .e-ic { font-size: 30px; margin-bottom: 8px; }
.empty-state b { display:block; color: var(--gray-700); font-size: var(--fs-md); }

/* ============================ FORMS / FIELDS ============================ */
.btn { display:inline-flex; align-items:center; gap: 7px; padding: 9px 15px; border-radius: var(--radius-sm); font-weight: 700; font-size: var(--fs-md); border: 1px solid var(--ink); background: var(--ink); color:#fff; transition: all .12s; }
.btn:hover { opacity: .88; }
.btn.ghost { background: var(--paper); color: var(--ink); border-color: var(--gray-300); }
.btn.ghost:hover { border-color: var(--ink); opacity: 1; }
.btn.sm { padding: 6px 11px; font-size: var(--fs-sm); }
.btn.danger { background: var(--neg); border-color: var(--neg); }
.btn:disabled { background: var(--gray-200); border-color: var(--gray-200); color: var(--gray-400); cursor: not-allowed; }
.btn-row { display:flex; gap: 10px; flex-wrap: wrap; }

.form-grid { display:grid; gap: 14px; }
.inp, textarea.inp, select.inp { width:100%; padding: 10px 12px; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm); background: var(--paper); }
.inp:focus, textarea.inp:focus, select.inp:focus { outline:none; border-color: var(--ink); }
textarea.inp { resize: vertical; min-height: 90px; line-height: 1.6; }
.lbl { font-size: var(--fs-sm); font-weight: 700; margin-bottom: 6px; display:block; }
.hint-txt { font-size: var(--fs-xs); color: var(--gray-500); margin-top: 5px; }
.readonly-banner { display:flex; align-items:center; gap: 10px; background: var(--gray-100); border: 1px solid var(--gray-300); border-radius: var(--radius-sm); padding: 11px 14px; font-size: var(--fs-sm); font-weight: 600; color: var(--gray-700); margin-bottom: 16px; }

/* metric input grid (daily note) */
.metric-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: 10px; }
.metric-box { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px; }
.metric-box label { font-size: var(--fs-xs); color: var(--gray-500); font-weight: 700; }
.metric-box input { width:100%; border:none; background:transparent; font-size: var(--fs-lg); font-weight: 800; padding: 4px 0 0; }
.metric-box input:focus { outline:none; }
.metric-box .unit { font-size: var(--fs-sm); color: var(--gray-400); font-weight:600; }

/* ============================ EVAL FORM ============================ */
.eval-cat { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow:hidden; }
.eval-cat-head { display:flex; align-items:center; justify-content: space-between; background: var(--ink); color:#fff; padding: 10px 16px; }
.eval-cat-head b { font-size: var(--fs-md); font-weight: 800; letter-spacing: .01em; }
.eval-cat-head .cat-score { font-size: var(--fs-sm); font-weight: 700; color: var(--gray-300); }
.eval-row { display:grid; grid-template-columns: 150px 1fr 64px 132px; gap: 12px; align-items:center; padding: 11px 16px; border-bottom: 1px solid var(--border); }
.eval-row:last-child { border-bottom:none; }
.eval-row:hover { background: var(--gray-50); }
.eval-row .e-item { font-weight: 700; font-size: var(--fs-md); }
.eval-row .e-desc { font-size: var(--fs-sm); color: var(--gray-700); line-height: 1.5; }
.eval-row .e-points { text-align:center; font-weight: 800; color: var(--gray-400); font-size: var(--fs-sm); }
.eval-row .e-input { display:flex; gap: 4px; }
.score-btn { flex:1; border: 1.5px solid var(--gray-300); background: var(--paper); border-radius: 5px; padding: 7px 0; font-weight: 800; font-size: var(--fs-sm); color: var(--gray-500); transition: all .1s; }
.score-btn:hover { border-color: var(--ink); }
.score-btn.on { background: var(--ink); color:#fff; border-color: var(--ink); }
.eval-summary { position: sticky; bottom: 0; background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 16px 20px; display:flex; align-items:center; gap: 22px; box-shadow: var(--shadow-lg); margin-top: 16px; }
.eval-summary .big-score { font-size: 38px; font-weight: 800; letter-spacing: -.03em; }
.eval-summary .big-score small { font-size: 17px; color: var(--gray-400); }
.eval-summary .sum-meta { font-size: var(--fs-sm); color: var(--gray-500); }
.eval-summary .spacer { flex:1; }

/* progress checklist (육성진척표) */
.prog-row { display:grid; grid-template-columns: 1fr 230px; gap: 14px; align-items:center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.prog-row .p-label b { font-weight: 700; }
.prog-row .p-label span { display:block; font-size: var(--fs-sm); color: var(--gray-500); }
.lvl-track { display:flex; gap: 5px; }
.lvl-btn { flex:1; border: 1.5px solid var(--gray-300); background: var(--paper); border-radius: 5px; padding: 6px 0; font-size: var(--fs-xs); font-weight: 700; color: var(--gray-500); }
.lvl-btn.on { background: var(--ink); color:#fff; border-color: var(--ink); }
.lvl-btn.on.l1 { background: var(--gray-400); border-color: var(--gray-400); }
.lvl-btn.on.l2 { background: var(--gray-700); border-color: var(--gray-700); }

/* ============================ TIMELINE (성장노트) ============================ */
.timeline { position: relative; }
.tl-item { display:flex; gap: 14px; padding-bottom: 18px; position: relative; }
.tl-item::before { content:''; position:absolute; left: 16px; top: 34px; bottom: -4px; width: 2px; background: var(--border); }
.tl-item:last-child::before { display:none; }
.tl-date { width: 34px; flex-shrink:0; text-align:center; }
.tl-date .d { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color:#fff; font-weight: 800; font-size: var(--fs-sm); display:flex; align-items:center; justify-content:center; }
.tl-date .m { font-size: 10px; color: var(--gray-500); margin-top: 4px; font-weight: 700; }
.tl-card { flex:1; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; background: var(--paper); }
.tl-card .tl-head { display:flex; align-items:center; gap: 8px; margin-bottom: 8px; }
.tl-card .tl-head b { font-weight: 700; }
.tl-card .tl-body { font-size: var(--fs-md); color: var(--gray-900); line-height: 1.6; white-space: pre-wrap; }
.comment { background: var(--gray-50); border-left: 3px solid var(--ink); padding: 9px 12px; border-radius: 0 6px 6px 0; margin-top: 10px; font-size: var(--fs-sm); }
.comment b { font-weight: 700; }
.comment .c-role { color: var(--gray-500); font-weight: 600; font-size: var(--fs-xs); }

/* read receipts */
.read-chips { display:flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.read-chip { font-size: var(--fs-xs); font-weight:700; padding: 2px 8px; border-radius: 20px; background: var(--gray-100); color: var(--gray-500); display:inline-flex; gap:4px; align-items:center; }
.read-chip.read { background: var(--pos-bg); color: var(--pos); }

/* ============================ CHART ============================ */
.chart-wrap { width: 100%; }
.chart-legend { display:flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: var(--fs-sm); }
.chart-legend .lg { display:flex; align-items:center; gap: 6px; font-weight: 600; color: var(--gray-700); }
.chart-legend .lg i { width: 14px; height: 3px; border-radius: 2px; display:inline-block; }
.svg-chart { width: 100%; height: auto; display:block; }
.svg-chart text { font-family: var(--font); }

/* ============================ MODAL / TOAST ============================ */
.modal-bg { position: fixed; inset: 0; background: rgba(10,10,10,.5); display:none; align-items:center; justify-content:center; z-index: 100; padding: 20px; }
.modal-bg.open { display:flex; }
.modal { background: var(--paper); border-radius: var(--radius); width: 100%; max-width: 540px; max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal-head { display:flex; align-items:center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); position: sticky; top:0; background: var(--paper); }
.modal-head h3 { font-size: var(--fs-lg); font-weight: 800; }
.modal-head .x { background:none; border:none; font-size: 22px; color: var(--gray-500); line-height:1; }
.modal-body { padding: 20px; }
.modal-foot { padding: 16px 20px; border-top: 1px solid var(--border); display:flex; justify-content: flex-end; gap: 10px; position: sticky; bottom: 0; background: var(--paper); }

.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display:flex; flex-direction: column; gap: 8px; align-items:center; }
.toast { background: var(--ink); color:#fff; padding: 11px 18px; border-radius: 30px; font-size: var(--fs-md); font-weight: 600; box-shadow: var(--shadow-lg); animation: toastIn .25s ease; }
.toast.pos { background: var(--pos); }
.toast.neg { background: var(--neg); }
@keyframes toastIn { from { opacity:0; transform: translateY(10px); } to { opacity:1; transform: translateY(0); } }

/* file upload */
.upload-zone { border: 1.5px dashed var(--gray-300); border-radius: var(--radius); padding: 26px; text-align:center; cursor:pointer; transition: all .15s; }
.upload-zone:hover { border-color: var(--ink); background: var(--gray-50); }
.upload-zone .uz-ic { font-size: 26px; margin-bottom: 8px; }
.file-pill { display:flex; align-items:center; gap: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 12px; margin-top: 8px; font-size: var(--fs-sm); }
.file-pill .fp-x { margin-left:auto; color: var(--neg); background:none; border:none; font-weight: 700; }

/* segmented control */
.seg { display:inline-flex; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); overflow:hidden; }
.seg button { padding: 7px 14px; background: var(--paper); border:none; font-weight: 700; font-size: var(--fs-sm); color: var(--gray-500); border-right: 1px solid var(--gray-300); }
.seg button:last-child { border-right: none; }
.seg button.on { background: var(--ink); color:#fff; }

.section-divider { display:flex; align-items:center; gap: 12px; margin: 26px 0 14px; }
.section-divider h2 { font-size: var(--fs-lg); font-weight: 800; }
.section-divider .line { flex:1; height:1px; background: var(--border); }

/* roadmap (curriculum) */
.roadmap { display:grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.rm-col { border: 1px solid var(--border); border-radius: var(--radius); overflow:hidden; }
.rm-col .rm-h { background: var(--gray-50); padding: 10px; text-align:center; border-bottom: 1px solid var(--border); }
.rm-col .rm-h b { font-size: var(--fs-md); font-weight: 800; }
.rm-col .rm-h span { font-size: var(--fs-xs); color: var(--gray-500); display:block; }
.rm-col.cur .rm-h { background: var(--ink); }
.rm-col.cur .rm-h b, .rm-col.cur .rm-h span { color:#fff; }
.rm-body { padding: 11px; font-size: var(--fs-sm); line-height: 1.6; }
.rm-body .rm-theme { font-weight: 700; margin-bottom: 7px; }
.rm-body ul { list-style: none; }
.rm-body li { padding-left: 11px; position: relative; color: var(--gray-700); }
.rm-body li::before { content:'·'; position:absolute; left:2px; font-weight:800; }
.rm-body .offjt-list { margin-top: 4px; }

.score-pill { font-weight: 800; font-size: var(--fs-md); }

/* ============================ CALENDAR (육성 캘린더) ============================ */
.cal { width: 100%; border: 1px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-h { background: var(--ink); color: #fff; font-size: var(--fs-sm); font-weight: 700; text-align: center; padding: 9px 0; }
.cal-h.sun { color: #FF8A8A; } .cal-h.sat { color: #9DC0FF; }
.cal-cell { min-height: 96px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 5px 6px; overflow: hidden; }
.cal-cell:nth-child(7n) { border-right: none; }
.cal-cell.empty { background: var(--gray-50); }
.cal-cell .dnum { font-size: var(--fs-sm); font-weight: 800; }
.cal-cell.sun .dnum { color: var(--neg); }
.cal-cell.sat .dnum { color: #1A56DB; }
.cal-cell.today { background: #FAFAFA; box-shadow: inset 0 0 0 2px var(--ink); }
.cal-ev { font-size: 10px; font-weight: 700; line-height: 1.3; padding: 2px 5px; border-radius: 4px; margin-top: 3px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-side .side-block { padding: 12px 0; border-bottom: 1px solid var(--border); }
.cal-side .side-block:last-child { border-bottom: none; }
.cal-side .sb-title { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .04em; color: var(--gray-500); text-transform: uppercase; margin-bottom: 8px; }
.ojt-line { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 5px 0; font-size: var(--fs-sm); border-bottom: 1px dashed var(--border); }
.ojt-line:last-child { border-bottom: none; }
.ojt-line .ojt-w { font-weight: 800; font-size: var(--fs-xs); color: var(--gray-500); }
.ojt-line .ojt-chk { width: 16px; height: 16px; border: 1.5px solid var(--gray-300); border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.ojt-line .ojt-chk.done { background: var(--ink); color: #fff; border-color: var(--ink); }
.target-box { display: flex; gap: 10px; }
.target-box .tb { flex: 1; border: 1.5px solid var(--ink); border-radius: var(--radius-sm); padding: 10px; text-align: center; }
.target-box .tb b { font-size: 24px; font-weight: 800; }
.target-box .tb span { font-size: var(--fs-xs); color: var(--gray-500); font-weight: 700; display: block; }
.recur-list { list-style: none; }
.recur-list li { font-size: var(--fs-sm); padding: 5px 0 5px 14px; position: relative; color: var(--gray-700); line-height: 1.5; }
.recur-list li::before { content: '·'; position: absolute; left: 3px; font-weight: 800; color: var(--ink); }
.cal-legend { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.cal-legend .lg { display: flex; align-items: center; gap: 5px; font-size: var(--fs-sm); font-weight: 600; }
.cal-legend .lg i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* ============================ HEATMAP (역량 진단) ============================ */
.heat-tbl { width: 100%; border-collapse: separate; border-spacing: 4px; }
.heat-tbl th { font-size: var(--fs-xs); color: var(--gray-500); font-weight: 700; padding: 4px; text-align: center; }
.heat-tbl th:first-child { text-align: left; }
.heat-cell { text-align: center; font-weight: 800; font-size: var(--fs-md); border-radius: var(--radius-sm); position: relative; height: 46px; display: flex; align-items: center; justify-content: center; }
.heat-cell.weak { box-shadow: inset 0 0 0 2px var(--neg); }
/* 비교 히트맵: 카테고리 컬럼 균등 고정폭으로 네모 크기 통일 */
.heat-tbl.cmp-heat { table-layout: fixed; width: 100%; min-width: 720px; }
.heat-tbl.cmp-heat th:first-child, .heat-tbl.cmp-heat .heat-name { width: 116px; }
.heat-tbl.cmp-heat th:last-child, .heat-tbl.cmp-heat td:last-child { width: 96px; }
.heat-cell.cur { box-shadow: inset 0 0 0 2px var(--ink); }
.heat-tbl th.th-cur { color: var(--ink); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.trend-tbl .heat-name { min-width: 86px; }
/* 월별 추이표: 컬럼 균등 고정폭 + 추이 차트 가운데 정렬 */
.heat-tbl.trend-tbl { table-layout: fixed; width: 100%; min-width: 660px; }
.heat-tbl.trend-tbl th:first-child, .heat-tbl.trend-tbl .heat-name { width: 92px; }
.heat-tbl.trend-tbl th:last-child, .heat-tbl.trend-tbl td:last-child { width: 92px; text-align: center; }
.heat-tbl.trend-tbl td:last-child svg { margin: 0 auto; display: block; }
.heat-name { font-weight: 700; font-size: var(--fs-md); white-space: nowrap; padding-right: 8px; }
.diag-reco { background: var(--gray-50); border-left: 3px solid var(--ink); border-radius: 0 8px 8px 0; padding: 12px 14px; font-size: var(--fs-md); }
.diag-reco b { font-weight: 800; }
.radar-legend { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 6px; font-size: var(--fs-sm); }
.radar-legend .lg { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--gray-700); }
.radar-legend .lg i { width: 14px; height: 3px; border-radius: 2px; }

/* ============================ 면담 가이드 ============================ */
.guide-card { padding: 0; overflow: hidden; }
.guide-card > summary { list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 800; font-size: var(--fs-md); display: flex; align-items: center; gap: 8px; background: var(--gray-50); }
.guide-card > summary::-webkit-details-marker { display: none; }
.guide-card > summary::after { content: '▾'; margin-left: auto; color: var(--gray-400); transition: transform .15s; }
.guide-card[open] > summary::after { transform: rotate(180deg); }
.guide-list { list-style: none; padding: 12px 18px 16px; display: grid; gap: 9px; }
.guide-list li { font-size: var(--fs-md); color: var(--gray-900); line-height: 1.55; padding-left: 24px; position: relative; }
.guide-list li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 17px; height: 17px; background: var(--ink); color: #fff; border-radius: 50%; font-size: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.guide-list li b { font-weight: 800; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1100px) {
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .g-3 { grid-template-columns: repeat(2, 1fr); }
  .roadmap { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 860px) {
  :root { --sidebar-w: 0px; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-hero { display:none; }
  .app.active { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 0; width: 264px; z-index: 90;
    transform: translateX(-100%); transition: transform .25s ease;
  }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .topbar .menu-toggle { display:block; }
  .scrim { display:none; position: fixed; inset:0; background: rgba(0,0,0,.4); z-index: 85; }
  .scrim.open { display:block; }
  .g-2, .span-2, .span-3 { grid-template-columns: 1fr; grid-column: auto; }
  .content { padding: 18px 16px 50px; }
  .eval-row { grid-template-columns: 1fr; gap: 6px; }
  .eval-row .e-points { text-align:left; }
  .prog-row { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: repeat(2,1fr); }
  .topbar .page-title { font-size: var(--fs-md); }
  .topbar .month-pill { display:none; }
  .cal-cell { min-height: 64px; padding: 3px; }
  .cal-cell .dnum { font-size: 11px; }
  .cal-ev { font-size: 8.5px; padding: 1px 3px; }
  .cal-h { font-size: 11px; padding: 6px 0; }
  .heat-cell { padding: 7px 3px; font-size: var(--fs-sm); }
}
@media (max-width: 520px) {
  .g-4, .g-3 { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr; }
  .eval-summary { flex-direction: column; align-items: flex-start; gap: 12px; }
}
