:root {
  --bg: #f3f4f2;
  --surface: #ffffff;
  --ink: #14201a;
  --muted: #5f6b64;
  --line: #dde3de;
  --accent: #0f766e;
  --accent-soft: #e6f4f1;
  --warn: #b45309;
  --radius: 16px;
  --font: "DM Sans", "Noto Sans SC", system-ui, sans-serif;
  --brand: #00BEBD;
  --brand-dark: #00A6A7;
  --brand-light: #E8F8F5;
  --success: #00C4A2;
  --border-light: #E8ECF0;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font-family: var(--font); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
#root { min-height: 100vh; }

.kx-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.kx-side {
  background: var(--surface); border-right: 1px solid var(--line);
  padding: 28px 18px; display: flex; flex-direction: column; gap: 8px;
  position: sticky; top: 0; height: 100vh;
}
.kx-brand { font-weight: 700; font-size: 20px; letter-spacing: -0.03em; margin-bottom: 18px; }
.kx-brand span { display: block; font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 4px; }
.kx-nav-btn {
  border: 0; background: transparent; text-align: left; padding: 10px 12px; border-radius: 10px;
  color: var(--muted); font-weight: 500;
}
.kx-nav-btn.active, .kx-nav-btn:hover { background: var(--accent-soft); color: var(--accent); }
.kx-side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.kx-main { padding: 28px 32px 48px; max-width: 1120px; }
.kx-top {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px;
}
.kx-top h1 { margin: 0; font-size: 22px; letter-spacing: -0.03em; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 16px;
}
.card h2 { margin: 0 0 6px; font-size: 17px; }
.card .desc { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.55; }

.hero {
  background:
    radial-gradient(900px 280px at 10% -20%, #cfece7 0%, transparent 55%),
    radial-gradient(700px 240px at 100% 0%, #e8efe6 0%, transparent 50%),
    var(--surface);
  border: 1px solid var(--line); border-radius: 20px; padding: 36px 32px; margin-bottom: 18px;
}
.hero h2 { margin: 0 0 10px; font-size: 32px; letter-spacing: -0.04em; line-height: 1.2; }
.hero p { margin: 0 0 22px; color: var(--muted); max-width: 520px; line-height: 1.65; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 10px; border: 1px solid transparent; padding: 10px 16px; font-weight: 600; font-size: 14px;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(0.95); }
.btn-secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-secondary:hover { border-color: #b7c2bb; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.feature-tile {
  border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: #fafcfb;
  min-height: 140px; display: flex; flex-direction: column; gap: 8px;
}
.feature-tile strong { font-size: 15px; }
.feature-tile span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.feature-tile:hover { background: #fff; border-color: #c5d0ca; }

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.55; }

.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.topic-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; text-align: left;
}
.topic-card.active { border-color: var(--accent); background: var(--accent-soft); }
.topic-card strong { display: block; margin-bottom: 4px; }
.topic-card span { font-size: 12px; color: var(--muted); }

.consultant-list { display: grid; gap: 12px; }
.consultant-card {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #fff;
}
.consultant-card h3 { margin: 0 0 4px; font-size: 15px; }
.consultant-card .meta { color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.consultant-card .reason { font-size: 13px; line-height: 1.5; }
.pill {
  display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
}
.sku-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.sku-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; }
.sku-card .price { font-size: 20px; font-weight: 700; margin: 8px 0; }

.upload-zone {
  border: 1.5px dashed #b7c2bb; border-radius: 14px; padding: 28px; text-align: center; background: #fafcfb;
}
.upload-zone.drag { border-color: var(--accent); background: var(--accent-soft); }
.hint { font-size: 12px; color: var(--muted); line-height: 1.55; }
.warn { color: var(--warn); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.stat b { display: block; font-size: 22px; letter-spacing: -0.03em; }
.stat span { font-size: 12px; color: var(--muted); }
.ent-tip { font-size: 13px; color: var(--muted); margin-bottom: 16px; padding: 8px 14px; background: #f0faf9; border-radius: 8px; border-left: 3px solid var(--brand); }
.ent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; }
.ent-cell { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-align: center; }
.ent-cell b { display: block; font-size: 22px; letter-spacing: -0.03em; color: var(--brand-dark, #00A6A7); }
.ent-cell span { font-size: 12px; color: var(--muted); }

.login-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(800px 300px at 20% 0%, #cfece7, transparent 60%),
    var(--bg);
}
.login-card { width: min(420px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.login-card h1 { margin: 0 0 8px; font-size: 26px; letter-spacing: -0.04em; }
.login-card p { margin: 0 0 20px; color: var(--muted); }

.kx-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 13px;
  opacity: 0; pointer-events: none; transition: .2s ease; z-index: 99;
}
.kx-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.list-item { border-bottom: 1px solid var(--line); padding: 12px 0; }
.list-item:last-child { border-bottom: 0; }
.list-item h4 { margin: 0 0 4px; font-size: 14px; }
.list-item p { margin: 0; color: var(--muted); font-size: 12px; white-space: pre-wrap; line-height: 1.5; }

.resume-preview {
  background: #fafcfb; border: 1px solid var(--line); border-radius: 12px; padding: 16px; max-height: 420px; overflow: auto;
  font-size: 13px; line-height: 1.6; white-space: pre-wrap;
}
.signal-bar {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px;
}

.kx-top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; font-size: 20px; line-height: 1; color: var(--accent); font-weight: 700;
}
.icon-btn:hover { background: var(--accent-soft); }
.modal-mask {
  position: fixed; inset: 0; background: rgba(20,32,26,.35); z-index: 80;
  display: flex; align-items: flex-start; justify-content: flex-end; padding: 72px 28px 28px;
}
.modal-panel {
  width: min(420px, 100%); background: #fff; border-radius: 16px; border: 1px solid var(--line);
  padding: 20px; max-height: calc(100vh - 100px); overflow: auto;
}
.modal-panel h3 { margin: 0 0 8px; font-size: 16px; }
.resume-edit .section-title {
  font-size: 14px; font-weight: 700; margin: 18px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line);
}
.resume-edit .grid-2 { margin-bottom: 4px; }
.exp-block {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: #fafcfb;
}
.exp-block .field { margin-bottom: 8px; }
.status-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.status-table th, .status-table td {
  text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top;
}
.status-table th { color: var(--muted); font-weight: 600; font-size: 12px; }
.progress-bar { height: 6px; background: #e8eee9; border-radius: 99px; overflow: hidden; min-width: 64px; }
.progress-bar > i { display: block; height: 100%; background: var(--accent); }
.status-dot {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600;
  background: #f4f4f5; color: #52525b;
}
.status-dot.doing { background: #ecfdf5; color: #047857; }
.status-dot.done { background: #eff6ff; color: #1d4ed8; }
.status-dot.overdue { background: #fff7ed; color: #c2410c; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 12px; margin: 4px 0 20px; }
.tpl-card {
  border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; text-align: left; background: #fff;
  display: flex; flex-direction: column; gap: 6px; min-height: 78px; cursor: pointer; transition: .16s;
}
.tpl-card strong, .tpl-card .tpl-card-title {
  display: block; font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--ink, #0F2623); margin: 0;
}
.tpl-card .hint, .tpl-card .tpl-card-desc {
  display: block; margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted, #6C7B76); font-weight: 400;
}
.tpl-card:hover, .tpl-card.active { border-color: var(--brand, var(--accent)); background: var(--brand-mist, var(--accent-soft)); }
.modal-panel.modal-wide .modal-body { padding: 8px 4px 4px; }
.modal-panel.modal-wide .modal-body > .desc { margin: 0 0 18px !important; line-height: 1.55; color: var(--muted, #6C7B76); }
.modal-panel.modal-wide .field { margin: 0 0 16px; }
.modal-panel.modal-wide .field label {
  display: block; margin: 0 0 8px; font-size: 13px; font-weight: 650; color: var(--ink, #0F2623); letter-spacing: .02em;
}
.modal-panel.modal-wide .field input,
.modal-panel.modal-wide .field textarea,
.modal-panel.modal-wide .field select {
  margin-top: 0;
}
.me-hero {
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center;
}
.me-hero .avatar {
  width: 64px; height: 64px; border-radius: 16px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 24px; font-weight: 700;
}

/* ?????? */
.resume-mod { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; background: #fff; }
.resume-mod-head {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 16px; border: 0; background: #fafcfb; text-align: left; cursor: pointer;
}
.resume-mod-head strong { display: block; font-size: 15px; }
.resume-mod-head .hint { display: block; margin-top: 4px; }
.resume-mod-head .chev { color: var(--accent); font-size: 12px; font-weight: 600; flex-shrink: 0; }
.resume-mod-body { padding: 16px; border-top: 1px solid var(--line); }
.resume-mod-body[hidden], .exp-body[hidden] { display: none !important; }
.form-grid.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; width: 100%; }
.form-grid .span-2, .field.span-2 { grid-column: span 2; }
.exp-body { padding: 12px 14px 14px; background: #fff; display: block; width: 100%; box-sizing: border-box; }
.exp-body .form-grid { width: 100%; }
.ym-pick { display: flex; flex-wrap: nowrap; gap: 8px; align-items: center; }
.ym-pick select { flex: 1 1 0; min-width: 0; width: auto; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.field .ym-pick select { width: auto; }
.ym-present { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.exp-block { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: #fafcfb; overflow: hidden; }
.exp-head { display: flex; gap: 8px; align-items: stretch; border-bottom: 1px solid transparent; }
.exp-block.open .exp-head { border-bottom-color: var(--line); }
.exp-toggle {
  flex: 1; border: 0; background: transparent; text-align: left; padding: 12px 14px; cursor: pointer;
  display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center;
}
.exp-toggle strong { font-size: 14px; }
.exp-toggle .chev { margin-left: auto; color: var(--accent); font-size: 12px; }
.exp-head .btn-sm { margin: 8px 10px 8px 0; padding: 6px 10px; font-size: 12px; }
.exp-body { padding: 12px 14px 14px; background: #fff; }
.field select {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff;
}
.field input[type="date"] {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff;
}
.ym-pick .hm-h, .ym-pick .hm-m { min-width: 88px; }

/* ???? ? ???????? */
.btn-sm { padding: 6px 10px; font-size: 12px; }
.sched-shell {
  display: grid;
  grid-template-columns: minmax(320px, 42%) 1fr;
  gap: 0;
  padding: 0 !important;
  overflow: hidden;
}
.sched-shell-desktop {
  display: grid !important;
  grid-template-columns: minmax(340px, 42%) minmax(0, 1fr) !important;
}
.pager {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line);
}
.pager button:disabled { opacity: 0.45; cursor: not-allowed; }
.period-range { font-size: 12px; }
.sched-left {
  padding: 18px 16px 16px;
  border-right: 1px solid var(--line);
  background: #fafcfb;
}
.sched-right { padding: 18px 20px 20px; min-height: 420px; }
.sched-cal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px;
}
.sched-cal-head strong { font-size: 18px; letter-spacing: -0.02em; }
.sched-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.sched-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.sched-wh {
  text-align: center; font-size: 12px; color: var(--muted); font-weight: 600;
  padding: 8px 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: #fff;
}
.sched-cell {
  min-height: 72px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: #fff; padding: 6px 4px; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
}
.sched-cell.other .sched-daynum { color: #b8c0ba; }
.sched-cell.today { background: #f0f9f7; }
.sched-cell.selected { background: #dff3ef; box-shadow: inset 0 0 0 2px var(--accent); }
.sched-daynum { font-size: 13px; font-weight: 700; color: #14201a; padding-left: 2px; }
.sched-badges { display: flex; flex-wrap: wrap; gap: 3px; }
.sched-badge {
  display: inline-block; font-style: normal; font-size: 10px; line-height: 1.2;
  padding: 1px 5px; border-radius: 4px; font-weight: 600; color: #fff;
}
.sched-badge.interview { background: #2563eb; }
.sched-badge.todo { background: #ea580c; }
.sched-badge.task { background: #64748b; }
.sched-legend {
  display: flex; gap: 14px; margin-top: 12px; font-size: 12px; color: var(--muted); align-items: center;
}
.sched-legend .sched-badge { margin-right: 4px; }
.sched-day-head {
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
  padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 4px;
}
.sched-day-head h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.03em; }
.sched-list { display: flex; flex-direction: column; }
.sched-item {
  display: grid; grid-template-columns: 64px 1fr; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.sched-time { color: #0f766e; font-weight: 700; font-size: 13px; padding-top: 2px; }
.sched-title-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.sched-tag {
  font-size: 11px; padding: 2px 8px; border-radius: 4px; background: #f1f5f4; color: #475569; font-weight: 600;
}
.sched-tag.interview { background: #dbeafe; color: #1d4ed8; }
.sched-tag.todo { background: #ffedd5; color: #c2410c; }
.sched-tag.task { background: #e2e8f0; color: #475569; }
.sched-item-actions { margin-top: 8px; }
.link-btn {
  border: 0; background: transparent; color: #0f766e; font-size: 13px; font-weight: 600;
  padding: 0; cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }
.sched-empty { padding: 28px 8px; }
.sched-meta { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.modal-wide { max-width: 720px; width: min(720px, 94vw); max-height: 90vh; overflow: auto; }
.tpl-body { margin-top: 8px; }
.tpl-body.form-grid { margin-bottom: 8px; }
.tpl-section { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 2px; padding-top: 8px; border-top: 1px dashed #e2e8f0; }
.tpl-section:first-child { border-top: 0; padding-top: 0; }
.tpl-section b { font-size: 13px; color: #0e5550; }
.tpl-section .hint { font-size: 12px; color: #94a3b8; }
.tpl-body .span-2 { grid-column: 1 / -1; }

.kx-promo {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 14px; margin-bottom: 14px; border-radius: 14px;
  background: linear-gradient(120deg, #e6f4f1, #f7faf8); border: 1px solid #cce5df;
}
.kx-promo strong { display: block; color: #0f766e; font-size: 14px; }
.kx-promo .hint { display: block; margin-top: 4px; }
.hist-card, .review-card, .search-card { margin-top: 14px; }
.hist-head { margin-bottom: 10px; }
.hist-head h2, .review-card h2 { margin: 0 0 4px; font-size: 18px; }
.hist-filters {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 8px; margin-bottom: 12px;
}
.hist-filters input, .hist-filters select {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; width: 100%;
}
.hist-list { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow: auto; }
.hist-row {
  display: grid; grid-template-columns: 96px 1fr; gap: 12px; text-align: left;
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fafcfb; cursor: pointer;
}
.hist-row:hover { border-color: var(--accent); background: #f0f9f7; }
.hist-date { font-size: 12px; font-weight: 700; color: #0f766e; }
.hist-main .status-dot { margin-left: auto; }
.review-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.review-text {
  white-space: pre-wrap; background: #fafcfb; border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 1.65;
  font-family: inherit; color: #14201a; margin: 0;
}
.review-text.ai { background: #f0f9f7; border-color: #cce5df; }
.review-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; }

/* AI ??????? */
.review-summary {
  background: linear-gradient(135deg, #f0f9f7 0%, #e8f5f3 100%);
  border-left: 3px solid var(--brand);
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
  margin: 12px 0;
  font-size: 14px;
  line-height: 1.7;
  color: #1a3a32;
}
.review-section { margin: 16px 0; }
.review-section h4 {
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.review-section ul, .review-section ol {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.7;
  color: #3a4a45;
}
.review-section li { margin-bottom: 4px; }
.review-raw { margin-top: 12px; }
.review-raw summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--muted);
  padding: 6px 0;
  user-select: none;
}
.review-raw summary:hover { color: var(--brand); }
.review-raw .review-text { margin-top: 8px; }

@media (max-width: 900px) {
  .hist-filters { grid-template-columns: 1fr; }
  .review-tabs { grid-template-columns: 1fr; }
  .kx-promo { flex-direction: column; align-items: flex-start; }
  .sched-shell, .sched-shell-desktop { grid-template-columns: 1fr !important; }
  .sched-left { border-right: 0; border-bottom: 1px solid var(--line); }
  .sched-cell { min-height: 56px; }
  .sched-day-head { flex-direction: column; }
  .form-grid.grid-2 { grid-template-columns: 1fr; }
  .form-grid .span-2, .field.span-2 { grid-column: span 1; }
}
@media (max-width: 900px) {
  .kx-shell { grid-template-columns: 1fr; }
  .kx-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .kx-brand { width: 100%; margin-bottom: 0; }
  .kx-side-foot { margin-top: 0; border: 0; padding: 0; width: 100%; }
  .kx-main { padding: 16px; }
  .grid-3, .grid-2, .stat-row { grid-template-columns: 1fr; }
  .hero h2 { font-size: 26px; }
  .modal-mask { justify-content: center; padding: 24px; }
  .me-hero { grid-template-columns: 1fr; }
  .status-table { display: block; overflow-x: auto; }
}

/* ????? ?????? ? ???? ????? */
.sv-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 9999; background: #f3f4f2;
  display: flex; flex-direction: column;
}
.sv-topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 16px; background: #fff; border-bottom: 1px solid #dde3de;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04); z-index: 10; min-height: 48px;
}
.sv-topbar-left { display: flex; align-items: center; gap: 12px; }
.sv-topbar-right { display: flex; gap: 8px; }
.sv-source-tag {
  font-size: 12px; color: var(--accent); background: var(--accent-soft);
  padding: 2px 8px; border-radius: 4px; font-weight: 500;
}
.sv-topbar-title { font-size: 15px; font-weight: 600; color: var(--ink); }

.sv-body { flex: 1; display: flex; overflow: hidden; }

/* ????????? */
.sv-left {
  width: 42%; min-width: 320px; max-width: 560px;
  border-right: 2px solid #dde3de; background: #f8f9fa;
  display: flex; flex-direction: column; overflow: hidden;
}
.sv-left-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; background: #fff; border-bottom: 2px solid #e8ece9;
  font-size: 14px; font-weight: 600; color: var(--ink); flex-shrink: 0;
}
.sv-left-content {
  flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 12px;
}
.sv-left-card {
  background: #fff; border: 1px solid #e8ece9; border-radius: 8px;
  overflow: hidden; transition: box-shadow .2s, border-color .2s;
  border-left: 3px solid var(--brand);
  flex-shrink: 0;
}
.sv-left-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border-color: #d0d6d2;
}
.sv-left-card-empty { border-left-color: #ccc; opacity: 0.7; }
.sv-left-card-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; background: #f5f7f6; border-bottom: 1px solid #eef0f0;
}
.sv-left-card-title { font-size: 13px; font-weight: 600; color: #3a423d; }
.sv-left-card-actions { display: flex; gap: 4px; align-items: center; }
.btn-accent {
  background: var(--accent); color: #fff; border: none;
  padding: 3px 10px; font-size: 11px; border-radius: 4px; cursor: pointer;
  font-weight: 500; transition: opacity .2s;
}
.btn-accent:hover { opacity: 0.85; }
.btn-xs { padding: 3px 10px; font-size: 11px; border-radius: 4px; }
.sv-left-card-body { padding: 0; }
.sv-left-raw-text {
  margin: 0; padding: 12px 14px; font-size: 12.5px; line-height: 1.75;
  color: #4a5260; white-space: pre-wrap; word-break: break-word;
  max-height: 200px; overflow-y: auto;
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  background: #fbfcfc;
}
.sv-left-raw-text::-webkit-scrollbar { width: 5px; }
.sv-left-raw-text::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

/* ????????? */
.sv-right {
  flex: 1; background: #fff;
  display: flex; flex-direction: column; overflow: hidden;
}
.sv-right-header {
  padding: 10px 14px; background: #f5f7f6; border-bottom: 1px solid #eef0f0;
  font-size: 13px; font-weight: 600; color: var(--ink); flex-shrink: 0;
}
.sv-right-content {
  flex: 1; overflow-y: auto; padding: 12px;
}
.sv-right-content #sv-resume-root { max-width: 800px; margin: 0 auto; }
.sv-right-content #resume-editor-root { max-width: 800px; margin: 0 auto; }

.sv-left-fulltext { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.sv-fulltext-body {
  flex: 1; margin: 0; padding: 14px; font-size: 13px; line-height: 1.65;
  white-space: pre-wrap; word-break: break-word; background: #fff;
  border: 1px solid #e8ece9; border-radius: 8px; overflow-y: auto; max-height: 100%;
  user-select: text; cursor: text;
}
.sv-fulltext-body mark.kx-fill-used {
  background: rgba(0, 190, 189, 0.18);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}

/* ????? ?????? ????? */
.kx-fill-toolbar {
  position: absolute; z-index: 10050;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 6px 8px; background: #fff; border: 1px solid #dde3de;
  border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  max-width: min(520px, 92vw); font-size: 12px;
}
.kx-fill-tb-count { color: #6b7280; margin-right: 2px; white-space: nowrap; }
.kx-fill-mode { display: inline-flex; align-items: center; gap: 4px; color: #4b5563; cursor: pointer; white-space: nowrap; }
.kx-fill-drag {
  cursor: grab; padding: 2px 6px; border: 1px dashed #aab4ad; border-radius: 4px;
  color: #4b5563; user-select: none; white-space: nowrap;
}
.kx-fill-drag:active { cursor: grabbing; }
.kx-fill-hint { font-size: 11px; font-weight: 400; color: #6b7280; margin-left: 8px; }
.kx-fill-menu-wrap {
  position: absolute; z-index: 10060; max-height: min(420px, 60vh); overflow-y: auto;
  width: min(300px, 90vw); background: #fff; border: 1px solid #dde3de;
  border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.14); padding: 6px 0;
}
.kx-fill-menu-section { padding: 4px 0; border-bottom: 1px solid #f0f2f1; }
.kx-fill-menu-section:last-child { border-bottom: none; }
.kx-fill-menu-title {
  font-size: 11px; color: #6b7280; padding: 4px 12px; font-weight: 600;
}
.kx-fill-menu-sub { padding: 2px 0 2px 8px; }
.kx-fill-menu-sub-title { font-size: 11px; color: #374151; padding: 2px 12px; font-weight: 500; }
.kx-fill-menu-item {
  display: block; width: 100%; text-align: left; border: none; background: transparent;
  padding: 6px 14px; font-size: 12px; color: #1f2937; cursor: pointer;
}
.kx-fill-menu-item:hover { background: #f3f6f4; }
.kx-fill-suggest { color: var(--accent, #00bebd); font-weight: 500; }
.kx-fill-target-flash {
  outline: 2px solid var(--accent, #00bebd) !important;
  outline-offset: 2px;
  transition: outline 0.2s;
}
.kx-fill-drop-hover {
  outline: 2px dashed var(--accent, #00bebd) !important;
  background: rgba(0, 190, 189, 0.06) !important;
}
.sv-overlay.kx-fill-dragging .field input,
.sv-overlay.kx-fill-dragging .field textarea,
.sv-overlay.kx-fill-dragging .field select,
.sv-overlay.kx-fill-dragging [data-add] {
  outline: 1px dashed #c5d0c9;
}
.sv-overlay.kx-fill-picking .sv-fulltext-body {
  box-shadow: inset 0 0 0 2px var(--accent, #00bebd);
}
.kx-fill-pick-btn { margin-left: 4px; }

.sv-ai-status { font-size: 12px; color: #6b7280; margin-left: 8px; }
.sv-module-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: auto;
}
.sv-toolbar-label { font-size: 12px; color: #6b7280; }
.sv-mod-select {
  font-size: 12px; padding: 2px 6px; border: 1px solid #dde3de; border-radius: 4px;
  background: #fff;
}
.sv-right-header {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}

/* ?? */
.btn-xs { padding: 2px 8px; font-size: 11px; border-radius: 4px; }
.btn-sm { padding: 5px 12px; font-size: 12px; border-radius: 6px; }

/* ????? AI ?? & ?? ????? */
.ai-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.45); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: aiFadeIn 0.2s ease;
}
@keyframes aiFadeIn { from { opacity: 0; } to { opacity: 1; } }

.ai-modal {
  background: #fff; border-radius: 14px; max-width: 640px; width: 100%;
  max-height: 85vh; display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2); animation: aiSlideUp 0.25s ease;
}
@keyframes aiSlideUp { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.ai-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid #eef0f4;
}
.ai-modal-head h3 { margin: 0; font-size: 17px; font-weight: 700; color: #1a1a2e; }
.ai-modal-close {
  border: none; background: none; font-size: 24px; color: #9fa3b0;
  cursor: pointer; padding: 0 4px; line-height: 1; border-radius: 6px;
}
.ai-modal-close:hover { background: #f5f5f5; color: #414a60; }

.ai-modal-body { padding: 20px 24px; overflow-y: auto; flex: 1; }

/* ???? */
.ai-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.ai-compare-col { border-radius: 10px; overflow: hidden; }
.ai-compare-label {
  padding: 6px 12px; font-size: 12px; font-weight: 600;
  background: #f0f1f5; color: #61687c;
}
.ai-compare-label.polished { background: #e0f7f5; color: #00a6a7; }
.ai-compare-text {
  padding: 12px; font-size: 14px; line-height: 1.7; color: #414a60;
  background: #fafbfc; border: 1px solid #eef0f4; border-top: none;
  white-space: pre-wrap; word-break: break-word; min-height: 80px;
}
.ai-compare-text.polished {
  background: #f0faf9; border-color: #d5ece8;
}

/* AI ?? section */
.ai-section { margin: 16px 0; }
.ai-section h4 {
  margin: 0 0 8px; font-size: 14px; font-weight: 700;
  color: #414a60; display: flex; align-items: center; gap: 6px;
}
.ai-section h4.ai-section-good { color: #52c41a; }
.ai-section h4.ai-section-bad { color: #ff4d4f; }
.ai-changes, .ai-suggestions, .ai-list-good, .ai-list-bad {
  margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.8; color: #61687c;
}
.ai-list-good li { color: #389e0d; }
.ai-list-bad li { color: #cf3a3a; }

/* ?????? */
.ai-analyze-score {
  display: flex; align-items: center; gap: 24px;
  padding: 20px; background: linear-gradient(135deg, #f8fafb, #f0f7f5);
  border-radius: 12px; margin-bottom: 16px;
}
.ai-score-circle {
  width: 88px; height: 88px; border-radius: 50%; border: 4px solid #faad14;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex-shrink: 0; background: #fff;
}
.ai-score-num { font-size: 32px; font-weight: 800; line-height: 1; }
.ai-score-unit { font-size: 12px; color: #9fa3b0; margin-top: 2px; }
.ai-score-bars { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.ai-score-bar { display: flex; align-items: center; gap: 8px; }
.ai-score-label { font-size: 12px; color: #61687c; width: 50px; flex-shrink: 0; }
.ai-score-track {
  flex: 1; height: 8px; background: #eef0f4; border-radius: 4px; overflow: hidden;
}
.ai-score-fill { height: 100%; border-radius: 4px; transition: width 0.6s ease; }
.ai-score-value { font-size: 13px; font-weight: 700; color: #414a60; width: 28px; text-align: right; }

.ai-analyze-summary {
  font-size: 14px; color: #414a60; line-height: 1.6;
  padding: 12px 16px; background: #f8f9fb; border-radius: 8px; margin: 12px 0;
}

/* ????? */
.ai-priority {
  padding: 12px 16px; border: 1px solid #eef0f4; border-radius: 10px;
  margin-bottom: 10px; background: #fafbfc;
}
.ai-priority-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ai-priority-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; background: #00beb9;
  color: #fff; font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.ai-priority-head strong { font-size: 14px; color: #414a60; }
.ai-priority-fix { font-size: 13px; color: #61687c; margin: 4px 0; line-height: 1.6; }
.ai-priority-impact { font-size: 12px; color: #00a6a7; margin: 4px 0 0; }

.ai-modal-foot {
  padding: 14px 24px; border-top: 1px solid #eef0f4;
  display: flex; gap: 10px; justify-content: flex-end;
}

/* 头部企业岗位库 */
.jl-tag {
  display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 600;
  color: #00857F; background: #E3F5F2; padding: 1px 8px; border-radius: 999px;
}
.jl-disc { font-size: 12px; color: #6B7B77; margin: 0 0 10px; line-height: 1.5; }
.jl-card, .jl-row {
  border: 1px solid #E4ECE9; border-radius: 12px; padding: 12px 14px; margin: 8px 0;
  background: #FAFCFB; text-align: left; width: 100%; cursor: pointer;
}
.jl-row { display: block; background: #fff; }
.jl-row:hover, .jl-card:hover { border-color: #00B4AD; }
.jl-card-head, .jl-row-title { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.jl-score {
  flex-shrink: 0; font-size: 12px; font-weight: 700; color: #00857F;
  background: #E3F5F2; border-radius: 8px; padding: 2px 8px;
}
.jl-meta { font-size: 12px; color: #6B7B77; margin-top: 4px; }
.jl-reason { font-size: 12px; color: #3D4A47; margin-top: 6px; }
.jl-skills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.jl-skill {
  font-size: 11px; color: #00857F; background: #E3F5F2; padding: 2px 8px; border-radius: 6px;
}
.jl-gaps { margin: 8px 0 0; padding-left: 18px; font-size: 12px; color: #61687c; }
.jl-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 12px; }
.jl-input, .jl-select {
  flex: 1 1 140px; min-width: 0; border: 1px solid #E4ECE9; border-radius: 10px;
  padding: 8px 12px; font-size: 13px; background: #fff;
}
.jl-stats { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: #6B7B77; margin-bottom: 10px; }
.jl-stats b { color: #0F2623; font-size: 15px; margin-right: 2px; }
.jl-list { max-height: 48vh; overflow: auto; }
.jl-empty { padding: 28px 12px; text-align: center; color: #6B7B77; font-size: 13px; }
.jl-modal { max-width: 560px; }
.jl-bench .btn { margin-top: 8px; }

/* 个人账号 */
.acc-page .acc-hero { margin-bottom: 14px; }
.acc-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.acc-status {
  border: 1px solid #E4ECE9;
  border-radius: 12px;
  padding: 12px 14px;
  background: #FAFCFB;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.acc-status .acc-k { font-size: 12px; color: #6B7B77; }
.acc-status b { font-size: 16px; color: #0F2623; }
.acc-panel .field { margin-bottom: 12px; }
@media (max-width: 600px) {
  .acc-status-grid { grid-template-columns: 1fr; }
}

/* 复盘结构化区块：结果区样式见 ui-shell.css .review-result */
.review-card .review-section {
  padding: 14px 16px; border-radius: 10px; margin: 10px 0;
  background: #fafbfc; border: 1px solid #eef0f4;
}
.review-card .review-section h4 {
  margin: 0 0 8px; font-size: 14px; font-weight: 700;
}

@media (max-width: 600px) {
  .ai-compare { grid-template-columns: 1fr; }
  .ai-analyze-score { flex-direction: column; gap: 16px; text-align: center; }
  .ai-score-bars { width: 100%; }
}

/* ????? ??? AI ?? ????? */
.field-ai { position: relative; }
.field-ai-actions {
  display: flex; gap: 8px; margin-top: 8px;
}
.btn-ai-polish {
  border: 1px solid #00BEBD; background: transparent; color: #00BEBD;
  padding: 5px 12px; font-size: 12px; font-weight: 600; border-radius: 8px;
  cursor: pointer; transition: all 0.15s;
}
.btn-ai-polish:hover { background: rgba(0,190,189,0.08); }
.btn-ai-fill {
  font-size: 12px; padding: 2px 8px; border-radius: 4px; cursor: pointer;
  border: 1px solid var(--accent, #00bebd); color: var(--accent, #00bebd); background: #fff;
}
.btn-ai-fill:hover { background: rgba(0,190,189,0.08); }
.btn-ai-fill:disabled { opacity: 0.6; cursor: wait; }
.company-intro-hint { margin: 4px 0 0; font-size: 12px; color: #6b7280; }
.btn-ai-summarize {
  border: 1px solid #FC6C38; background: #FC6C38; color: #fff;
  padding: 5px 12px; font-size: 12px; font-weight: 600; border-radius: 8px;
  cursor: pointer; transition: all 0.15s;
}
.btn-ai-summarize:hover { filter: brightness(0.95); }

/* ????? ???????? ????? */
.parse-source-tag {
  display: inline-block; font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 20px; background: #f0f1f3; margin-bottom: 12px;
}
.parse-summary-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0;
}
.parse-summary-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-radius: 10px; background: #f8f9fb; border: 1px solid #eef0f4;
}
.parse-summary-item.empty { background: #fff4f0; border-color: #ffe4d6; }
.parse-summary-label { font-size: 13px; color: #61687c; }
.parse-summary-value { font-size: 14px; font-weight: 600; color: #414a60; }
.parse-summary-item.empty .parse-summary-value { color: #e74c3c; }
.parse-guide-tip {
  margin-top: 14px; padding: 12px 14px; background: #f0fbfa; border: 1px solid #d4f5f3;
  border-radius: 10px; font-size: 13px; color: #414a60; line-height: 1.6;
}
.parse-guide-tip strong { color: var(--brand); }

/* ??????????????? */
.parse-modules-grid {
  display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 12px;
}
.parse-module-card {
  border: 1px solid #eef0f4; border-radius: 12px; padding: 14px;
  background: #fafbfc; transition: box-shadow .2s;
}
.parse-module-card.mod-filled { border-color: #d4f5e3; background: #f0fcf5; }
.parse-module-card.mod-partial { border-color: #ffe4d6; background: #fff8f5; }
.parse-mod-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px;
}
.parse-mod-title { font-size: 14px; font-weight: 600; color: #414a60; }
.parse-mod-status { font-size: 12px; font-weight: 500; }
.mod-filled .parse-mod-status { color: #27ae60; }
.mod-partial .parse-mod-status { color: #e67e22; }
.parse-mod-tip { font-size: 12px; color: #8892a6; margin-bottom: 10px; }
.parse-mod-raw {
  background: #fff; border: 1px solid #eef0f4; border-radius: 8px; overflow: hidden;
}
.parse-mod-raw-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 10px; background: #f5f7fa; border-bottom: 1px solid #eef0f4;
  font-size: 12px; color: #8892a6;
}
.parse-mod-raw-text {
  margin: 0; padding: 10px; font-size: 12px; line-height: 1.6;
  color: #5b6478; white-space: pre-wrap; word-break: break-all;
  max-height: 100px; overflow-y: auto;
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans CJK SC", sans-serif;
}
.parse-mod-actions { margin-top: 10px; text-align: right; }
.parse-guide-intro {
  font-size: 13px; color: #61687c; line-height: 1.6; margin: 0 0 8px;
}
.btn-xs { padding: 2px 8px; font-size: 11px; border-radius: 4px; }
.btn-sm { padding: 5px 12px; font-size: 12px; border-radius: 6px; }

/* ????? AI ???? ????? */
.customize-desc {
  font-size: 13px; color: #61687c; line-height: 1.6; margin: 0 0 16px;
  padding: 10px 14px; background: #f8f9fb; border-radius: 8px;
}
.customize-form .field { margin-bottom: 14px; }
.customize-form .field label { font-size: 13px; font-weight: 600; color: #414a60; margin-bottom: 6px; }
.customize-form .field input, .customize-form .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  font-size: 14px; background: #fff;
}
.customize-form .field textarea { min-height: 100px; resize: vertical; line-height: 1.55; }
.hint-inline { font-size: 11px; color: #9fa3b0; font-weight: 400; margin-left: 6px; }

/* ?????? */
.cz-preview {
  border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-top: 12px;
  background: #fafbfc; max-height: 360px; overflow-y: auto;
}
.cz-preview-header {
  text-align: center; padding-bottom: 12px; margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.cz-preview-name { font-size: 18px; font-weight: 700; color: #1a1a2e; }
.cz-preview-target { font-size: 13px; color: #00a6a7; margin-top: 4px; font-weight: 600; }
.cz-preview-company { font-size: 12px; color: #61687c; margin-top: 2px; }
.cz-preview-item { padding: 10px 0; border-bottom: 1px solid #eef0f4; }
.cz-preview-item:last-child { border-bottom: none; }
.cz-preview-item-title { font-size: 14px; font-weight: 600; color: #414a60; margin-bottom: 4px; }
.cz-preview-item-desc { font-size: 13px; color: #61687c; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }

/* ?????? */
.custom-resume-section {
  margin-top: 16px; padding: 16px 20px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px;
}
.custom-resume-title {
  font-size: 14px; font-weight: 700; color: #414a60; margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 2px solid var(--accent-soft);
}
.custom-resume-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  margin-bottom: 8px; background: #fafbfc; transition: border-color 0.15s;
}
.custom-resume-card:hover { border-color: #c5d0ca; }
.custom-resume-info { display: flex; flex-direction: column; gap: 2px; }
.custom-resume-info strong { font-size: 14px; color: #414a60; }
.custom-resume-info .hint { font-size: 12px; color: #9fa3b0; }
.custom-resume-actions { display: flex; gap: 8px; }

/* ????? AI ?? & ???? ????? */
.ai-bell-btn {
  position: relative; width: 36px; height: 36px; border-radius: 50%;
  border: none; background: #F2F2F4; color: #61687C; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.ai-bell-btn:hover { background: #E8E8EC; color: #414a60; }
.ai-badge {
  position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px;
  border-radius: 9px; background: #FC6C38; color: #fff; font-size: 10px;
  font-weight: 700; display: flex; align-items: center; justify-content: center;
  padding: 0 4px; line-height: 1;
}
.ai-badge.pulse { animation: aiPulse 1.5s ease-in-out infinite; }
@keyframes aiPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(252, 108, 56, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(252, 108, 56, 0); }
}

/* ???? */
.ai-notify {
  position: fixed; top: 20px; right: 20px; z-index: 10000;
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  background: #fff; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border-left: 4px solid #00beb9; cursor: pointer; max-width: 340px;
  transform: translateX(400px); opacity: 0; transition: all 0.3s ease;
}
.ai-notify.show { transform: translateX(0); opacity: 1; }
.ai-notify-icon {
  width: 32px; height: 32px; border-radius: 50%; background: #00beb9;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ai-notify-body { display: flex; flex-direction: column; gap: 2px; }
.ai-notify-body strong { font-size: 14px; color: #414a60; }
.ai-notify-body span { font-size: 12px; color: #9fa3b0; }

/* ?????? */
.ai-center-overlay {
  position: fixed; top: 0; right: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.3); z-index: 9998;
  display: flex; justify-content: flex-end;
  animation: aiFadeIn 0.2s ease;
}
.ai-center {
  width: 100%; max-width: 380px; height: 100%; background: #fff;
  display: flex; flex-direction: column; box-shadow: -4px 0 24px rgba(0,0,0,0.1);
  animation: aiSlideRight 0.25s ease;
}
@keyframes aiSlideRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
.ai-center-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid #eef0f4;
}
.ai-center-head h3 { margin: 0; font-size: 17px; font-weight: 700; color: #1a1a2e; }
.ai-center-close {
  border: none; background: none; font-size: 24px; color: #9fa3b0;
  cursor: pointer; padding: 0 4px; border-radius: 6px;
}
.ai-center-close:hover { background: #f5f5f5; }
.ai-center-body { flex: 1; overflow-y: auto; padding: 12px 16px; }
.ai-center-empty { text-align: center; color: #9fa3b0; padding: 40px 0; font-size: 14px; }

.ai-task-item {
  display: flex; align-items: center; gap: 12px; padding: 14px 12px;
  border-radius: 10px; margin-bottom: 6px; transition: background 0.15s;
}
.ai-task-item.clickable { cursor: pointer; }
.ai-task-item.clickable:hover { background: #f8f9fb; }
.ai-task-icon {
  width: 36px; height: 36px; border-radius: 10px; display: flex;
  align-items: center; justify-content: center; font-size: 14px;
  font-weight: 700; flex-shrink: 0; color: #fff;
}
.ai-task-icon.done { background: #00beb9; }
.ai-task-icon.error { background: #ff4d4f; }
.ai-task-icon.running { background: #faad14; animation: aiBlink 1.2s ease-in-out infinite; }
@keyframes aiBlink { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
.ai-task-info { flex: 1; min-width: 0; }
.ai-task-title { font-size: 14px; font-weight: 600; color: #414a60; }
.ai-task-meta { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.ai-task-status { font-size: 12px; font-weight: 500; }
.ai-task-status.done { color: #00a6a7; }
.ai-task-status.error { color: #ff4d4f; }
.ai-task-status.running { color: #faad14; }
.ai-task-time { font-size: 12px; color: #9fa3b0; }

/* ????? ???? V2.1 ????? */
.booking-modal { max-width: 480px; }
.bk-consultant {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px;
  background: #f0faf9; border-radius: 10px; margin-bottom: 16px;
}
.bk-avatar {
  width: 40px; height: 40px; border-radius: 10px; background: #00beb9;
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; flex-shrink: 0;
}
.bk-consultant strong { font-size: 15px; color: #414a60; }
.bk-consultant .meta { font-size: 12px; color: #9fa3b0; margin-left: 8px; }
.bk-consultant .reason { font-size: 13px; color: #61687c; margin: 4px 0 0; }
.bk-section { margin-bottom: 16px; }
.bk-section label { display: block; font-size: 13px; font-weight: 600; color: #414a60; margin-bottom: 6px; }
.bk-section .hint { font-weight: 400; color: #9fa3b0; font-size: 12px; }
.bk-topic { padding: 8px 12px; background: #f5f5f5; border-radius: 8px; font-size: 14px; color: #414a60; }
.bk-question { font-size: 13px; color: #61687c; padding: 8px 12px; background: #f8f9fb; border-radius: 8px; margin: 0; }
.bk-slot-row {
  display: flex; align-items: center; gap: 6px; margin-bottom: 8px;
}
.bk-date {
  border: 1px solid #e0e0e6; border-radius: 6px; padding: 6px 8px;
  font-size: 13px; color: #414a60; flex: 1; min-width: 0;
}
.bk-hour, .bk-min {
  border: 1px solid #e0e0e6; border-radius: 6px; padding: 6px 4px;
  font-size: 13px; color: #414a60; background: #fff;
}
.bk-slot-del {
  border: none; background: #ff4d4f; color: #fff; width: 28px; height: 28px;
  border-radius: 6px; cursor: pointer; font-size: 16px; line-height: 1;
  flex-shrink: 0;
}
#bk-brief, #cm-takeaways, #cm-nextsteps {
  width: 100%; border: 1px solid #e0e0e6; border-radius: 8px; padding: 10px 12px;
  font-size: 13px; color: #414a60; resize: vertical; min-height: 60px; box-sizing: border-box;
}
#bk-brief:focus, #cm-takeaways:focus, #cm-nextsteps:focus {
  outline: none; border-color: #00beb9;
}
.btn-sm { padding: 4px 12px; font-size: 12px; }

/* ====== ?????? ====== */
.resume-preview-page { padding: 0; overflow: hidden; }

/* ????? */
.rp-header {
  background: linear-gradient(135deg, #00BEBD 0%, #00A6A7 100%);
  padding: 36px 32px 28px; text-align: center; color: #fff;
}
.rp-name { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.rp-target { font-size: 15px; color: rgba(255,255,255,0.9); margin-top: 6px; }
.rp-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.rp-badge {
  font-size: 12px; color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.2); padding: 4px 12px; border-radius: 99px;
}
.rp-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin-top: 12px; }
.rp-contact span { font-size: 13px; color: rgba(255,255,255,0.85); }
.rp-salary { font-size: 13px; color: rgba(255,255,255,0.8); margin-top: 8px; }

/* ?? section */
.rp-section {
  padding: 20px 32px; border-bottom: 1px solid var(--line);
}
.rp-section:last-child { border-bottom: none; }
.rp-sec-title {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-soft);
}
.rp-sec-left { display: flex; align-items: center; gap: 10px; }
.rp-sec-icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; flex-shrink: 0;
}
.rp-sec-left span:last-child { font-size: 16px; font-weight: 700; color: var(--ink); }
.rp-edit-btn {
  font-size: 13px; color: var(--brand, #00BEBD); font-weight: 500;
  padding: 4px 14px; border-radius: 99px;
  background: rgba(0,190,189,0.08); border: none; cursor: pointer;
  flex-shrink: 0; transition: background 0.2s;
}
.rp-edit-btn:hover { background: rgba(0,190,189,0.15); }
.rp-empty-inline { padding: 12px 0; text-align: center; font-size: 13px; color: var(--muted, #999); }

/* ?????? */
.rp-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.rp-info-item { display: flex; align-items: baseline; gap: 8px; }
.rp-info-label { font-size: 12px; color: var(--muted); flex-shrink: 0; min-width: 56px; }
.rp-info-val { font-size: 14px; color: var(--ink); font-weight: 500; }

/* ???? */
.rp-exp { padding: 14px 0; border-bottom: 1px solid var(--line); }
.rp-exp:last-child { border-bottom: none; padding-bottom: 0; }
.rp-exp:first-child { padding-top: 0; }
.rp-exp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
.rp-exp-title { font-size: 15px; font-weight: 600; color: var(--ink); flex: 1; }
.rp-exp-date { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.rp-exp-sub { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.rp-exp-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ????? */
.rp-exp-block { margin-top: 10px; }
.rp-block-label { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.rp-block-text { font-size: 13px; color: var(--ink); line-height: 1.6; }

/* ?????? */
.icon-wrap {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; font-size: 18px; color: #fff;
  width: 36px; height: 36px; flex-shrink: 0;
}
.icon-wrap.sm { width: 32px; height: 32px; font-size: 16px; }
.icon-wrap.lg { width: 44px; height: 44px; font-size: 22px; }
.icon-wrap.ico-success { background: var(--success); }
.icon-wrap.ico-brand { background: var(--brand); }
.icon-wrap.ico-accent { background: var(--accent); }
.icon-wrap.ico-warn { background: var(--warn); }

.ca-status-card {
  text-align: center;
  padding: 40px 24px;
  margin-bottom: 20px;
}
.ca-status-icon {
  width: 64px; height: 64px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 32px; margin-bottom: 16px;
}
.ca-status-icon.ca-pending { background: #fff8e6; color: #b45309; }
.ca-status-icon.ca-approved { background: var(--accent-soft); color: var(--accent); }
.ca-status-icon.ca-rejected { background: #fef2f2; color: #e74c3c; }
.ca-upload-area {
  border: 2px dashed var(--line); border-radius: 10px; padding: 24px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: border-color 0.2s;
}
.ca-upload-area:hover { border-color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 14px; color: var(--ink); background: #fff;
  outline: none; transition: border-color 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 80px; font-family: var(--font); }

/* ??? */
.rp-skill-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rp-skill-row:last-child { border-bottom: none; }
.rp-skill-label { font-size: 13px; color: var(--muted); flex-shrink: 0; min-width: 72px; font-weight: 600; }
.rp-skill-text { font-size: 14px; color: var(--ink); line-height: 1.6; flex: 1; }

/* ???? */
.rp-eval-text { font-size: 14px; color: var(--ink); line-height: 1.7; }

/* ??? */
.rp-empty { text-align: center; padding: 60px 0 48px; }
.rp-empty-icon {
  width: 64px; height: 64px; border-radius: 16px; margin: 0 auto;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700;
}
.rp-empty-text { font-size: 16px; color: var(--ink); font-weight: 600; margin-top: 16px; }
.rp-empty-sub { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ???? */
.bk-card {
  padding: 14px; border-radius: 10px; margin-bottom: 10px;
  border-left: 3px solid #e0e0e6; background: #f8f9fb;
}
.bk-card.pending { border-left-color: #faad14; }
.bk-card.confirmed { border-left-color: #00beb9; }
.bk-card.completed { border-left-color: #52c41a; }
.bk-card.cancelled { border-left-color: #bfbfbf; opacity: 0.7; }
.bk-card-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px;
}
.bk-card-head strong { font-size: 14px; color: #414a60; }
.bk-status {
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px;
}
.bk-status.pending { background: #fff7e6; color: #faad14; }
.bk-status.confirmed { background: #e0faf9; color: #00a6a7; }
.bk-status.completed { background: #f0fbe8; color: #52c41a; }
.bk-status.cancelled { background: #f5f5f5; color: #bfbfbf; }
.bk-card-meta {
  display: flex; gap: 12px; font-size: 12px; color: #9fa3b0; margin-bottom: 4px;
}
.bk-card-q { font-size: 13px; color: #61687c; margin: 4px 0; }
.bk-notes {
  display: flex; flex-direction: column; gap: 2px; margin-top: 6px;
  padding: 8px 10px; background: #fff; border-radius: 6px; font-size: 12px; color: #61687c;
}
.bk-card-actions { display: flex; gap: 8px; margin-top: 8px; }


/* ====== ??????? ====== */
.lib-page { max-width: 880px; }
.lib-page-head { margin-bottom: 24px; }
.lib-page-title { font-size: 26px; font-weight: 700; color: var(--ink); margin: 0 0 6px; letter-spacing: -0.02em; }
.lib-page-sub { font-size: 14px; color: var(--muted); margin: 0; }

/* ???????? ? ??card????????? */
.card.lib-current {
  border: 2px solid var(--accent);
  background: linear-gradient(135deg, var(--surface) 0%, var(--accent-soft) 100%);
  position: relative;
  padding: 28px;
}
.lib-current-badge {
  position: absolute; top: -1px; right: 24px;
  background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 600;
  padding: 6px 16px; border-radius: 0 0 8px 8px;
  letter-spacing: 0.02em;
}
.lib-current-body { display: flex; align-items: center; gap: 24px; }
.lib-current-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 28px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.lib-current-info { flex: 1; min-width: 0; }
.lib-current-name { font-size: 22px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.lib-current-meta { display: flex; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.lib-current-meta span { font-size: 14px; color: var(--muted); }
.lib-current-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.lib-stat-tag {
  background: var(--surface); color: var(--accent);
  font-size: 12px; font-weight: 500;
  padding: 4px 12px; border-radius: 12px;
  border: 1px solid var(--line);
}
.lib-current-right { display: flex; flex-direction: column; align-items: center; gap: 16px; flex-shrink: 0; }

/* ??? ? ??????SVG????????? */
.lib-completion { text-align: center; }
.lib-completion-num { font-size: 28px; font-weight: 700; color: var(--accent); line-height: 1; }
.lib-completion-label { font-size: 12px; color: var(--muted); margin-top: 4px; }
.lib-completion-bar { width: 80px; height: 6px; background: var(--line); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.lib-completion-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.4s ease; }

.lib-current-actions { display: flex; gap: 10px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ?????? */
.lib-section-head { display: flex; align-items: center; justify-content: space-between; margin: 32px 0 16px; }
.lib-section-title { font-size: 18px; font-weight: 700; color: var(--ink); margin: 0; }
.lib-section-count { font-size: 13px; color: var(--muted); }

/* ?????? ? ??card?? */
.card.lib-custom { padding: 20px; transition: all 0.2s; display: flex; flex-direction: column; }
.card.lib-custom:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(15,118,110,0.08); transform: translateY(-2px); }
.lib-custom-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.lib-custom-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.lib-custom-title { font-size: 16px; font-weight: 600; color: var(--ink); flex: 1; }
.lib-custom-meta { flex: 1; margin-bottom: 16px; }
.lib-custom-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; }
.lib-custom-label { color: var(--muted); }
.lib-custom-val { color: var(--ink); font-weight: 500; }
.lib-custom-notes {
  font-size: 12px; color: var(--muted);
  background: var(--bg); padding: 8px 12px;
  border-radius: 8px; margin-top: 8px; line-height: 1.5;
}
.lib-custom-actions { display: flex; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.lib-custom-actions .btn { flex: 1; font-size: 13px; padding: 8px 12px; }

/* ??? */
.lib-empty {
  text-align: center; padding: 56px 32px;
  background: var(--surface); border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.lib-empty-icon { font-size: 40px; margin-bottom: 16px; opacity: 0.6; }
.lib-empty-title { font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.lib-empty-desc { font-size: 14px; color: var(--muted); margin-bottom: 24px; line-height: 1.5; }



/* ====== ?????? ====== */
.upload-panel {
  background: var(--surface); border-radius: 20px;
  width: 520px; max-width: 92vw; max-height: 90vh;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.upload-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 28px 16px;
}
.upload-title { font-size: 20px; font-weight: 700; color: var(--ink); }
.upload-close {
  border: none; background: none; font-size: 28px; color: var(--muted);
  cursor: pointer; line-height: 1; padding: 0 4px;
}
.upload-close:hover { color: var(--ink); }
.upload-body { padding: 0 28px 20px; overflow-y: auto; flex: 1; }

/* ???? */
.upload-dropzone {
  border: 2px dashed var(--line); border-radius: 14px;
  padding: 32px 20px; text-align: center; cursor: pointer;
  transition: all 0.2s; background: var(--bg);
}
.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--accent); background: var(--accent-soft);
}
.upload-dropzone-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.7; }
.upload-dropzone-text { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.upload-dropzone-hint { font-size: 12px; color: var(--muted); }

/* ???? */
.upload-file-preview {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; margin-top: 14px;
  background: var(--accent-soft); border-radius: 12px;
  border: 1px solid var(--line);
}
.upload-file-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.upload-file-info { flex: 1; min-width: 0; }
.upload-file-name { font-size: 14px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-file-size { font-size: 12px; color: var(--muted); margin-top: 2px; }
.upload-file-remove {
  border: none; background: none; font-size: 22px; color: var(--muted);
  cursor: pointer; line-height: 1; padding: 0 4px; flex-shrink: 0;
}
.upload-file-remove:hover { color: var(--ink); }

/* ???? */
.upload-mode-section { margin-top: 22px; }
.upload-mode-label { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.upload-mode-cards { display: flex; flex-direction: column; gap: 10px; }
.upload-mode-card {
  display: block; padding: 14px 16px;
  border: 2px solid var(--line); border-radius: 12px;
  cursor: pointer; transition: all 0.15s; position: relative;
}
.upload-mode-card:hover { border-color: var(--accent); }
.upload-mode-card.active { border-color: var(--accent); background: var(--accent-soft); }
.upload-mode-card input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.upload-mode-card-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.upload-mode-card-desc { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.upload-mode-card-tag {
  display: inline-block; font-size: 11px; font-weight: 500;
  padding: 2px 8px; border-radius: 8px;
  background: var(--surface); color: var(--accent);
  border: 1px solid var(--line);
}

/* ??? */
.upload-progress { margin-top: 18px; }
.upload-progress-bar {
  height: 6px; background: var(--line); border-radius: 3px; overflow: hidden;
}
.upload-progress-fill {
  height: 100%; background: var(--accent); border-radius: 3px;
  transition: width 0.4s ease; width: 0%;
}
.upload-progress-text { font-size: 12px; color: var(--muted); margin-top: 8px; text-align: center; }

/* ???? */
.upload-error {
  margin-top: 14px; padding: 12px 14px;
  background: #FEF2F2; border: 1px solid #FECACA;
  border-radius: 10px; color: #DC2626; font-size: 13px;
  line-height: 1.5;
}

/* ???? */
.upload-foot {
  display: flex; gap: 12px; padding: 16px 28px 24px;
  border-top: 1px solid var(--line);
}
.upload-foot .btn { flex: 1; }


/* ===== ???????? ===== */
.consultant-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border: 1px solid #e8eaf0;
  border-radius: 12px;
  margin-bottom: 12px;
  transition: all 0.2s;
}
.consultant-card:hover {
  border-color: #4f6ef7;
  box-shadow: 0 4px 12px rgba(79,110,247,0.1);
}
.consultant-card-main {
  display: flex;
  gap: 14px;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.consultant-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(145deg, #0B3B39, #117C70);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  text-shadow: 0 1px 2px rgba(0,0,0,.28);
  box-shadow: 0 4px 12px rgba(11,59,57,.25);
}
.consultant-info {
  flex: 1;
  min-width: 0;
}
.consultant-info h3 {
  margin: 0 0 4px 0;
  font-size: 16px;
}
.consultant-info .meta {
  color: #6b7280;
  font-size: 13px;
  margin-bottom: 4px;
}
.consultant-info .reason {
  color: #9ca3af;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.consultant-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border-radius: 8px;
  background: #f3f4f6;
  color: #9ca3af;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-icon:hover { background: #eef2ff; color: #4f6ef7; }
.fav-btn.favorited { color: #f59e0b; background: #fef3c7; }
.ai-mini-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: #10b981;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 6px;
  border: 2px solid #fff;
}
.badge {
  display: inline-block;
  background: #eef2ff;
  color: #4f6ef7;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
}

/* ?????? */
.consult-confirm-modal { max-width: 480px; }
.cf-confirm-consultant {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: #f8f9fc;
  border-radius: 12px;
  margin-bottom: 16px;
}
.cf-confirm-consultant .cf-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  position: relative;
}
.cf-confirm-consultant .cf-ai-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: #10b981;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 6px;
  border: 2px solid #fff;
}
.cf-duration-options {
  display: flex;
  gap: 10px;
}
.cf-duration-opt {
  flex: 1;
  position: relative;
  cursor: pointer;
}
.cf-duration-opt input { position: absolute; opacity: 0; }
.cf-duration-opt span {
  display: block;
  padding: 10px;
  text-align: center;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}
.cf-duration-opt input:checked + span {
  border-color: #4f6ef7;
  background: #eef2ff;
  color: #4f6ef7;
}
.cf-confirm-summary {
  padding: 14px;
  background: #f8f9fc;
  border-radius: 10px;
  margin-top: 16px;
}
.cf-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cf-price { font-size: 20px; font-weight: 700; color: #ef4444; }

/* ???? */
.pay-modal { max-width: 440px; }
.pay-amount-box {
  text-align: center;
  padding: 24px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: 12px;
  margin-bottom: 16px;
}
.pay-label { font-size: 13px; color: #92400e; margin-bottom: 6px; }
.pay-number { font-size: 36px; font-weight: 700; color: #92400e; }
.pay-detail {
  padding: 12px 0;
  border-top: 1px solid #f0f2f8;
  border-bottom: 1px solid #f0f2f8;
  margin-bottom: 16px;
}
.pay-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}
.pay-row span:first-child { color: #6b7280; }
.pay-methods h4 { margin: 0 0 12px 0; font-size: 15px; }
.pay-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.pay-method input { display: none; }
.pay-method:has(input:checked) { border-color: #4f6ef7; background: #eef2ff; }
.pay-icon { font-size: 20px; }
.pay-name { flex: 1; font-size: 14px; font-weight: 500; }
.pay-tag {
  font-size: 11px;
  padding: 2px 8px;
  background: #fef3c7;
  color: #92400e;
  border-radius: 8px;
}
.pay-hint {
  text-align: center;
  color: #9ca3af;
  font-size: 12px;
  margin: 12px 0 0 0;
}

/* ???? */
.chat-modal-overlay { background: rgba(0,0,0,0.6); }
.chat-modal {
  width: 90%;
  max-width: 560px;
  height: 80vh;
  background: #fff;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #f0f2f8;
}
.chat-modal-head .modal-close { margin-left: auto; }
.chat-consultant-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  position: relative;
}
.chat-consultant-info strong { font-size: 15px; }
.chat-status {
  font-size: 11px;
  padding: 2px 8px;
  background: #d1fae5;
  color: #065f46;
  border-radius: 8px;
  margin-left: 8px;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  background: #f8f9fc;
}
.chat-empty {
  text-align: center;
  color: #9ca3af;
  padding: 40px 20px;
  font-size: 14px;
}
.chat-msg {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  align-items: flex-start;
}
.chat-msg-user { flex-direction: row-reverse; }
.chat-msg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}
.chat-msg-bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}
.chat-msg-consultant .chat-msg-bubble {
  background: #fff;
  border-top-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.chat-msg-user .chat-msg-bubble {
  background: linear-gradient(135deg, #4f6ef7, #7c3aed);
  color: #fff;
  border-top-right-radius: 4px;
}
.chat-system-msg {
  text-align: center;
  color: #9ca3af;
  font-size: 12px;
  padding: 8px;
}
.chat-input-area {
  display: flex;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid #f0f2f8;
  background: #fff;
  align-items: flex-end;
}
.chat-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  resize: none;
  max-height: 100px;
}
.chat-input:focus { outline: none; border-color: #4f6ef7; }

/* ???? */
.session-item {
  padding: 14px;
  border: 1px solid #e8eaf0;
  border-radius: 10px;
  margin-bottom: 10px;
}
.session-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.session-info strong { font-size: 14px; }
.session-status {
  font-size: 11px;
  padding: 2px 8px;
  background: #eef2ff;
  color: #4f6ef7;
  border-radius: 8px;
}
.session-price {
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
  color: #ef4444;
}
.session-question {
  color: #6b7280;
  font-size: 13px;
  margin: 0 0 10px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.session-actions { display: flex; gap: 8px; }

.empty-fav {
  text-align: center;
  padding: 24px 20px;
  color: #9ca3af;
}
.empty-fav p { margin: 4px 0; }
.empty-fav .hint { font-size: 12px; color: #d1d5db; }


/* ===== ???????? ===== */
.modal-overlay,
.consult-flow-overlay,
.chat-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.consult-flow-overlay { background: rgba(0,0,0,0.55); backdrop-filter: blur(4px); z-index: 10000; }
.chat-modal-overlay { background: rgba(0,0,0,0.6); z-index: 10001; }

.cf-flow-modal {
  width: 92%;
  max-width: 520px;
  max-height: 88vh;
  background: #fff;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: cfSlideUp 0.3s ease;
}
@keyframes cfSlideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.cf-flow-head {
  padding: 14px 20px 12px;
  border-bottom: 1px solid #f0f2f8;
  position: relative;
  flex-shrink: 0;
}
.cf-flow-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: #f3f4f6;
  border-radius: 50%;
  font-size: 18px;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.cf-flow-close:hover { background: #e5e7eb; color: #374151; }

/* ????? */
.cf-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.cf-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.cf-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s;
}
.cf-step.active .cf-step-num { background: linear-gradient(135deg, #4f6ef7, #7c3aed); color: #fff; }
.cf-step.done .cf-step-num { background: #10b981; color: #fff; }
.cf-step-label { font-size: 11px; color: #9ca3af; }
.cf-step.active .cf-step-label { color: #4f6ef7; font-weight: 600; }
.cf-step.done .cf-step-label { color: #10b981; }
.cf-step-line {
  width: 40px;
  height: 2px;
  background: #e5e7eb;
  margin-bottom: 16px;
  transition: all 0.3s;
}
.cf-step-line.done { background: #10b981; }

.cf-flow-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 20px;
}

/* ???? */
.cf-consultant-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: linear-gradient(135deg, #f8f9ff, #f0f4ff);
  border-radius: 12px;
  margin-bottom: 14px;
}
.cf-consultant-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  flex-shrink: 0;
  position: relative;
}
.cf-ai-tag {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #10b981;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  border: 2px solid #fff;
}
.cf-consultant-info { flex: 1; min-width: 0; }
.cf-consultant-name { font-size: 17px; font-weight: 600; color: #1a1a2e; margin-bottom: 2px; }
.cf-consultant-title { font-size: 13px; color: #6b7280; margin-bottom: 8px; }
.cf-consultant-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cf-meta-item { font-size: 12px; color: #6b7280; }
.cf-price-tag { color: #ef4444; font-weight: 600; }

/* ?? */
.cf-form-section { margin-bottom: 14px; }
.cf-form-label { font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 8px; }
.cf-required { color: #ef4444; }
.cf-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  min-height: 64px;
  box-sizing: border-box;
  transition: all 0.2s;
  line-height: 1.5;
}
.cf-textarea:focus { outline: none; border-color: #4f6ef7; box-shadow: 0 0 0 3px rgba(79,110,247,0.1); }
.cf-char-count { text-align: right; font-size: 12px; color: #9ca3af; margin-top: 4px; }

/* ???? */
.cf-duration-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cf-duration-card {
  position: relative;
  padding: 10px 8px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.cf-duration-card input { position: absolute; opacity: 0; }
.cf-duration-card:hover { border-color: #c7d2fe; }
.cf-duration-card.selected { border-color: #4f6ef7; background: #eef2ff; }
.cf-dur-min { font-size: 14px; font-weight: 600; color: #1a1a2e; margin-bottom: 2px; }
.cf-duration-card.selected .cf-dur-min { color: #4f6ef7; }
.cf-dur-price { font-size: 15px; font-weight: 700; color: #ef4444; margin-bottom: 1px; }
.cf-dur-desc { font-size: 11px; color: #9ca3af; }

/* ???? */
.cf-option-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.cf-option-item:hover { border-color: #c7d2fe; background: #f8f9ff; }
.cf-option-item input { accent-color: #4f6ef7; width: 16px; height: 16px; }
.cf-option-icon { font-size: 16px; }
.cf-option-text { font-size: 13px; font-weight: 500; color: #374151; flex: 1; }
.cf-option-desc { font-size: 11px; color: #9ca3af; }

/* ???? */
.cf-summary-box {
  background: #f8f9fc;
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 4px;
}
.cf-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 13px;
  color: #6b7280;
}
.cf-summary-total {
  border-top: 1px dashed #e5e7eb;
  margin-top: 6px;
  padding-top: 8px;
  font-weight: 600;
  color: #1a1a2e;
}
.cf-total-price { font-size: 18px; color: #ef4444; font-weight: 700; }

/* ???? */
.cf-flow-foot {
  padding: 12px 20px;
  border-top: 1px solid #f0f2f8;
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  background: #fff;
}
.cf-btn {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.cf-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.cf-btn-secondary { background: #f3f4f6; color: #374151; }
.cf-btn-secondary:hover { background: #e5e7eb; }
.cf-btn-primary { background: linear-gradient(135deg, #4f6ef7, #7c3aed); color: #fff; }
.cf-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(79,110,247,0.3); }
.cf-btn-pay { background: linear-gradient(135deg, #10b981, #059669); }
.cf-btn-pay:hover { box-shadow: 0 4px 12px rgba(16,185,129,0.3); }

/* ??? */
.cf-pay-amount {
  text-align: center;
  padding: 18px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: 14px;
  margin-bottom: 14px;
}
.cf-pay-label { font-size: 12px; color: #92400e; margin-bottom: 6px; }
.cf-pay-number { font-size: 36px; font-weight: 700; color: #92400e; letter-spacing: -1px; }
.cf-pay-order { font-size: 11px; color: #b45309; margin-top: 6px; font-family: monospace; }

.cf-order-detail {
  background: #f8f9fc;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.cf-order-title { font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 8px; }
.cf-order-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 12px;
}
.cf-order-row span:first-child { color: #6b7280; }
.cf-order-row span:last-child { color: #1a1a2e; font-weight: 500; }
.cf-order-question { max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-ai-inline { background: #10b981; color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 4px; margin-left: 4px; }

/* ???? */
.cf-pay-methods { margin-bottom: 12px; }
.cf-methods-title { font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 8px; }
.cf-method-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.cf-method-card input { position: absolute; opacity: 0; }
.cf-method-card:hover { border-color: #c7d2fe; }
.cf-method-card.selected { border-color: #4f6ef7; background: #f8f9ff; }
.cf-method-icon { font-size: 20px; width: 32px; text-align: center; }
.cf-method-info { flex: 1; }
.cf-method-name { font-size: 13px; font-weight: 600; color: #1a1a2e; display: block; }
.cf-method-desc { font-size: 11px; color: #9ca3af; }
.cf-method-tag { font-size: 10px; padding: 2px 6px; background: #fef3c7; color: #92400e; border-radius: 5px; }
.cf-method-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #4f6ef7;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.cf-method-card.selected .cf-method-check { display: flex; }

.cf-pay-security {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  font-size: 11px;
  color: #9ca3af;
  padding: 8px;
  background: #f9fafb;
  border-radius: 8px;
}

/* ?????? */
.cf-pay-success {
  text-align: center;
  padding: 40px 20px;
}
.cf-success-circle {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  position: relative;
}
.cf-success-check { width: 80px; height: 80px; }
.cf-success-circle-bg { stroke: #10b981; stroke-width: 3; stroke-dasharray: 166; stroke-dashoffset: 166; animation: cfCircleDraw 0.6s ease forwards; }
.cf-success-check-mark { stroke: #10b981; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; animation: cfCheckDraw 0.3s 0.6s ease forwards; }
@keyframes cfCircleDraw { to { stroke-dashoffset: 0; } }
@keyframes cfCheckDraw { to { stroke-dashoffset: 0; } }
.cf-success-title { font-size: 22px; font-weight: 700; color: #1a1a2e; margin-bottom: 8px; }
.cf-success-desc { font-size: 14px; color: #6b7280; margin-bottom: 20px; }
.cf-success-loading { display: flex; gap: 6px; justify-content: center; }
.cf-success-loading span {
  width: 8px;
  height: 8px;
  background: #4f6ef7;
  border-radius: 50%;
  animation: cfBounce 1.4s infinite ease-in-out both;
}
.cf-success-loading span:nth-child(1) { animation-delay: -0.32s; }
.cf-success-loading span:nth-child(2) { animation-delay: -0.16s; }
@keyframes cfBounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }

/* ???? */
.cf-chat-modal {
  width: 92%;
  max-width: 900px;
  height: 85vh;
  max-height: 680px;
  background: #fff;
  border-radius: 20px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: cfSlideUp 0.3s ease;
}
.cf-chat-dual { flex-direction: row; }
.cf-chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right: 1px solid #f0f2f8;
}
.cf-chat-sidebar {
  width: 300px;
  flex-shrink: 0;
  background: #fafbfc;
  overflow-y: auto;
  padding: 16px;
}
@media (max-width: 768px) {
  .cf-chat-sidebar { display: none; }
  .cf-chat-modal { max-width: 560px; }
}
.cf-chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid #f0f2f8;
  background: #fff;
  flex-shrink: 0;
}
.cf-chat-close {
  width: 36px;
  height: 36px;
  border: none;
  background: #f3f4f6;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  position: relative;
  z-index: 5;
  pointer-events: auto;
}
.cf-chat-close:hover { background: #e5e7eb; color: #111827; }
.cf-chat-consultant { display: flex; align-items: center; gap: 10px; flex: 1; }
.cf-chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 600;
  position: relative;
}
.cf-chat-ai-tag {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: #10b981;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 6px;
  border: 2px solid #fff;
}
.cf-chat-info { flex: 1; }
.cf-chat-name { font-size: 15px; font-weight: 600; color: #1a1a2e; }
.cf-chat-status { font-size: 12px; color: #6b7280; display: flex; align-items: center; gap: 4px; }
.cf-online-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  animation: cfPulse 2s infinite;
}
@keyframes cfPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.cf-chat-complete {
  padding: 8px 16px;
  border: 1.5px solid #ef4444;
  background: #fff;
  color: #ef4444;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.cf-chat-complete:hover { background: #fef2f2; }

.cf-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #f8f9fc;
}

/* ??? */
.cf-chat-welcome { display: flex; gap: 10px; margin-bottom: 16px; }
.cf-welcome-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}
.cf-welcome-bubble {
  background: #fff;
  padding: 12px 16px;
  border-radius: 0 14px 14px 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  max-width: 75%;
}
.cf-welcome-name { font-size: 12px; color: #4f6ef7; font-weight: 600; margin-bottom: 4px; }
.cf-welcome-text { font-size: 14px; color: #1a1a2e; line-height: 1.6; }

/* ???? */
.cf-quick-questions { margin-bottom: 16px; }
.cf-quick-title { font-size: 12px; color: #9ca3af; margin-bottom: 8px; }
.cf-quick-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cf-quick-item {
  padding: 6px 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  font-size: 12px;
  color: #4f6ef7;
  cursor: pointer;
  transition: all 0.2s;
}
.cf-quick-item:hover { background: #eef2ff; border-color: #4f6ef7; }

/* ?? */
.cf-chat-msg { display: flex; gap: 10px; margin-bottom: 14px; align-items: flex-start; }
.cf-msg-user { flex-direction: row-reverse; }
.cf-msg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
.cf-msg-bubble {
  max-width: 72%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}
.cf-msg-consultant .cf-msg-bubble { background: #fff; border-top-left-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); color: #1a1a2e; }
.cf-msg-user .cf-msg-bubble { background: linear-gradient(135deg, #4f6ef7, #7c3aed); color: #fff; border-top-right-radius: 4px; }
.cf-chat-system { text-align: center; color: #9ca3af; font-size: 12px; padding: 8px; }

/* ???? */
.cf-chat-typing { display: flex; gap: 10px; margin-bottom: 14px; }
.cf-typing-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}
.cf-typing-bubble {
  background: #fff;
  padding: 14px 16px;
  border-radius: 0 14px 14px 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  display: flex;
  gap: 4px;
  align-items: center;
}
.cf-typing-bubble span {
  width: 8px;
  height: 8px;
  background: #9ca3af;
  border-radius: 50%;
  animation: cfBounce 1.4s infinite ease-in-out both;
}
.cf-typing-bubble span:nth-child(1) { animation-delay: -0.32s; }
.cf-typing-bubble span:nth-child(2) { animation-delay: -0.16s; }

/* ??? */
.cf-chat-input-area {
  padding: 12px 16px 14px;
  border-top: 1px solid #f0f2f8;
  background: #fff;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}
.cf-chat-input-wrap {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  width: 100%;
  min-width: 0;
}
.cf-chat-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  resize: none;
  overflow: hidden;
  max-height: 120px;
  transition: all 0.2s;
  line-height: 1.5;
  box-sizing: border-box;
}
.cf-chat-input:focus { outline: none; border-color: #00B4AD; box-shadow: 0 0 0 3px rgba(0,180,173,0.12); }
.cf-chat-send {
  width: 42px;
  height: 42px;
  border: none;
  background: linear-gradient(135deg, #00B4AD, #117C70);
  color: #fff;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.cf-chat-send:hover:not(:disabled) { transform: scale(1.05); box-shadow: 0 4px 12px rgba(0,180,173,0.3); }
.cf-chat-send:disabled { opacity: 0.5; cursor: not-allowed; }
.cf-chat-tip { font-size: 11px; color: #9AA5A1; text-align: left; margin: 0; line-height: 1.4; width: 100%; }

/* ?????? */
.cf-sidebar-section { margin-bottom: 18px; }
.cf-sidebar-title {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cf-sidebar-title-with-action { display: flex; align-items: center; justify-content: space-between; }
.cf-sidebar-shared-badge {
  font-size: 10px;
  padding: 2px 8px;
  background: #d1fae5;
  color: #059669;
  border-radius: 10px;
  font-weight: 500;
}
.cf-sidebar-consultant {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #f0f2f8;
}
.cf-sidebar-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
  position: relative;
}
.cf-sidebar-ai-tag {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: #10b981;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 6px;
  border: 2px solid #fff;
}
.cf-sidebar-consultant-info { flex: 1; min-width: 0; }
.cf-sidebar-consultant-name { font-size: 14px; font-weight: 600; color: #1a1a2e; margin-bottom: 2px; }
.cf-sidebar-consultant-title { font-size: 12px; color: #6b7280; margin-bottom: 4px; }
.cf-sidebar-consultant-meta { display: flex; gap: 8px; font-size: 11px; color: #9ca3af; }

.cf-sidebar-detail {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #f0f2f8;
  padding: 10px 12px;
}
.cf-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 12px;
}
.cf-detail-row span:first-child { color: #9ca3af; }
.cf-detail-row span:last-child { color: #374151; font-weight: 500; }

.cf-sidebar-resume, .cf-sidebar-profile {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #f0f2f8;
  padding: 12px;
  max-height: 200px;
  overflow-y: auto;
}
.cf-sidebar-loading { font-size: 12px; color: #9ca3af; text-align: center; padding: 10px; }
.cf-sidebar-empty { font-size: 12px; color: #d1d5db; text-align: center; padding: 10px; line-height: 1.5; }

/* ???? */
.cf-resume-basic { margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px dashed #f0f2f8; }
.cf-resume-name { font-size: 14px; font-weight: 600; color: #1a1a2e; margin-bottom: 4px; }
.cf-resume-contact { font-size: 11px; color: #6b7280; margin-bottom: 2px; }
.cf-resume-section { margin-bottom: 10px; }
.cf-resume-section-title { font-size: 11px; font-weight: 600; color: #4f6ef7; margin-bottom: 6px; }
.cf-resume-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  font-size: 11px;
  padding: 4px 0;
  line-height: 1.45;
}
.cf-resume-label { color: #9ca3af; flex: none; white-space: nowrap; }
.cf-resume-value {
  color: #374151; font-weight: 500; min-width: 0;
  word-break: break-word; overflow-wrap: anywhere; text-align: left;
}
.cf-sidebar-auth, #cf-sidebar-auth-note {
  display: block; position: relative; z-index: 1;
  margin: 0 0 10px !important; padding: 8px 10px;
  background: #f8faf9; border-radius: 8px; line-height: 1.5;
}
.cf-sidebar-resume, .cf-sidebar-profile {
  max-height: 280px;
}
.cf-resume-exp { margin-bottom: 6px; }
.cf-exp-company { font-size: 12px; font-weight: 500; color: #1a1a2e; }
.cf-exp-position { font-size: 11px; color: #6b7280; margin-top: 1px; }
.cf-resume-more { font-size: 11px; color: #9ca3af; text-align: center; padding-top: 4px; }
.cf-resume-edu { margin-bottom: 4px; }
.cf-edu-school { font-size: 12px; font-weight: 500; color: #1a1a2e; }
.cf-edu-major { font-size: 11px; color: #6b7280; margin-top: 1px; }

/* ?????? */
.cf-profile-completion { margin-bottom: 10px; }
.cf-completion-bar {
  height: 6px;
  background: #f0f2f8;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}
.cf-completion-fill {
  height: 100%;
  background: linear-gradient(90deg, #4f6ef7, #7c3aed);
  border-radius: 3px;
  transition: width 0.5s ease;
}
.cf-completion-text { font-size: 11px; color: #6b7280; text-align: right; }
.cf-profile-section { margin-bottom: 10px; }
.cf-profile-section-title { font-size: 11px; font-weight: 600; color: #4f6ef7; margin-bottom: 6px; }
.cf-profile-desc { font-size: 11px; color: #6b7280; line-height: 1.5; }
.cf-profile-skills { display: flex; flex-wrap: wrap; gap: 4px; }
.cf-skill-tag {
  font-size: 10px;
  padding: 3px 8px;
  background: #eef2ff;
  color: #4f6ef7;
  border-radius: 8px;
}

/* ??? ???????????? ??? */
.low-confidence {
  position: relative;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 6px 8px;
}
.low-confidence label {
  color: #b45309 !important;
  font-weight: 600;
}
.low-confidence label::after {
  content: " ? ???";
  font-size: 10px;
  color: #d97706;
  font-weight: 500;
  margin-left: 4px;
}
.low-confidence input,
.low-confidence textarea,
.low-confidence select {
  border-color: #fbbf24 !important;
  background: #fffbeb !important;
}
.lc-tip {
  grid-column: 1 / -1;
  font-size: 12px;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 8px;
}

/* v44 home assistant — always visible entry card */
.ast-home-section {
  background: #fff;
  border-radius: 16px;
  padding: 20px 24px 24px;
  margin-top: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid rgba(0, 190, 189, 0.18);
}
.ast-home-section > .home-sec-label {
  margin-bottom: 14px;
  color: #00A6A7;
}
.ast-home-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.ast-home-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #E8F7F6;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.ast-home-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #0B1F2A;
}
.ast-home-head-info { flex: 1; min-width: 0; }
.ast-home-title { font-size: 16px; font-weight: 700; color: #1A1F36; }
.ast-home-desc { font-size: 13px; color: #61687C; margin-top: 4px; }
.ast-home-go {
  padding: 8px 20px;
  border-radius: 20px;
  background: #00BEBD;
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s;
}
.ast-home-go:hover { background: #00A6A7; }

.ast-mod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.ast-mod-card {
  background: #F8F9FB;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid #EEF0F4;
  transition: box-shadow 0.2s;
}
.ast-mod-card.filled {
  border-left: 3px solid #00BEBD;
  background: #F0FBFA;
}
.ast-mod-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.ast-mod-mini-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #00BEBD;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.ast-mod-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #1A1F36;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ast-mod-card-pct {
  font-size: 13px;
  font-weight: 700;
  color: #00A6A7;
  flex-shrink: 0;
}
.ast-mod-mini-bar {
  height: 3px;
  background: #E5E7EB;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}
.ast-mod-mini-bar > div {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s;
}
.ast-mod-card-count {
  font-size: 11px;
  color: #9FA3B0;
}

.ast-home-insights {
  background: #FFF5F0;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.ast-home-insight {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
.ast-home-insight-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FC6C38;
  flex-shrink: 0;
}
.ast-home-insight-text {
  font-size: 13px;
  color: #414A60;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ast-home-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ast-home-qa-btn {
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid #00BEBD;
  color: #00BEBD;
  background: rgba(0,190,189,0.06);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.ast-home-qa-btn:hover {
  background: rgba(0,190,189,0.12);
}

/* ?? ???? ?? */
.nc-bell-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #F2F2F4;
  color: #61687C;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.nc-bell-btn:hover { background: #E8E8EC; color: #00BEBD; }
.nc-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: #FC6C38;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
}
.nc-panel {
  position: absolute;
  top: 56px;
  right: 80px;
  width: 380px;
  max-height: 520px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: ncFadeIn 0.2s ease;
}
@keyframes ncFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.nc-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #EEF0F4;
}
.nc-panel-title {
  font-size: 15px;
  font-weight: 700;
  color: #1A1F36;
}
.nc-panel-actions {
  display: flex;
  gap: 4px;
}
.nc-mini-btn {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
  border: none;
  background: #F2F2F4;
  color: #61687C;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.nc-mini-btn:hover { background: #00BEBD; color: #fff; }
.nc-mini-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.nc-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.nc-panel-body::-webkit-scrollbar { width: 4px; }
.nc-panel-body::-webkit-scrollbar-thumb { background: #E5E7EB; border-radius: 2px; }
.nc-empty {
  text-align: center;
  padding: 48px 0;
  color: #9FA3B0;
  font-size: 13px;
}
.nc-item {
  display: flex;
  gap: 12px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid #F8F9FB;
}
.nc-item:hover { background: #F8F9FB; }
.nc-item.read { opacity: 0.6; }
.nc-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.nc-item-body { flex: 1; min-width: 0; }
.nc-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #1A1F36;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.nc-item-content {
  font-size: 12px;
  color: #61687C;
  margin-top: 4px;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.nc-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.nc-item-time {
  font-size: 11px;
  color: #9FA3B0;
}
.nc-item-read {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  border: none;
  background: rgba(0,190,189,0.1);
  color: #00BEBD;
  cursor: pointer;
  white-space: nowrap;
}
.nc-item-read:hover { background: #00BEBD; color: #fff; }
.nc-item-go {
  font-size: 11px;
  color: #00BEBD;
  font-weight: 500;
  margin-left: auto;
}

/* ?????? ??????? ?????? */
.rh-promo {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 0 16px; padding: 14px 16px;
  background: linear-gradient(120deg, #e6f4f1 0%, #f0f9f7 50%, #fff 100%);
  border: 1px solid #d5ebe6; border-radius: 12px;
}
.rh-quota {
  margin-bottom: 12px; padding: 10px 14px; font-size: 13px; color: #414A60;
  background: #f7faf9; border-radius: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.rh-hero .rh-bullets { margin: 12px 0 20px; padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.rh-label { display: block; margin: 14px 0 6px; font-size: 13px; font-weight: 600; color: #414A60; }
.rh-ann-hint { margin: 0 0 12px !important; }
.rh-mod-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.rh-chip {
  appearance: none; border: 1px solid #E5E7EB; background: #fff; color: #61687C;
  border-radius: 999px; padding: 6px 12px; font-size: 12px; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.rh-chip:hover { border-color: #00BEBD; color: #00A6A7; }
.rh-chip.on { border-color: #00BEBD; background: #E8F8F5; color: #0f766e; font-weight: 600; }
.rh-chip-custom { border-style: dashed; }
.rh-ann-divider { height: 1px; background: #EEF0F4; margin: 18px 0 8px; }
.rh-input {
  width: 100%; box-sizing: border-box; margin-bottom: 8px; padding: 10px 12px;
  border: 1px solid #E0E0E0; border-radius: 8px; font-family: inherit; font-size: 14px;
}
.rh-choice-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.rh-choice {
  border: 1px solid #E0E0E0; background: #fff; border-radius: 999px;
  padding: 8px 14px; font-size: 13px; cursor: pointer;
}
.rh-choice.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.rh-consultant-card {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px; margin-bottom: 8px;
  border: 1px solid #eee; border-radius: 10px; cursor: pointer;
}
.rh-consultant-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.rh-status-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.rh-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rh-disclaimer { margin-top: 12px; }
.rh-insight, .rh-rec, .rh-ann { padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.rh-insight:last-child, .rh-rec:last-child, .rh-ann:last-child { border-bottom: none; }
.rh-rec-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 6px; }
.rh-suggest {
  background: #f5f7fa; padding: 10px; border-radius: 8px; white-space: pre-wrap;
  font-size: 13px; overflow: auto; max-height: 160px;
}
.rh-feed-item { padding: 10px 0; border-bottom: 1px solid #f3f3f3; }
.rh-feed-actor, .rh-feed-type { font-size: 12px; font-weight: 600; margin-right: 8px; color: var(--accent); }
.rh-pill-warn { background: #FFF7E6 !important; color: #FF9500 !important; }
.rh-c-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.rh-c-check { margin-top: 4px; }
.rh-tri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
@media (max-width: 960px) { .rh-tri { grid-template-columns: 1fr; } }
.rh-resume-snip { font-size: 13px; max-height: 360px; overflow: auto; }
.rh-tpl-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.btn-sm { padding: 6px 12px !important; font-size: 13px !important; }

/* ?????? ??? ?? ??????????? ?????? */
.me-desk-card {
  margin-top: 16px; padding: 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e8f7f6 0%, #f7fbfa 45%, #ffffff 100%);
  border: 1px solid #d5ebe6;
}
.me-desk-card.me-desk-apply { background: linear-gradient(135deg, #fff8f3 0%, #fff 60%); border-color: #f3e0d4; }
.me-desk-card.me-desk-pending { background: linear-gradient(135deg, #fff7e6 0%, #fff 60%); border-color: #f5e2b8; }
.me-desk-card.me-desk-reject { background: linear-gradient(135deg, #fff1f0 0%, #fff 60%); border-color: #f0d4d2; }
.me-desk-badge {
  display: inline-block; font-size: 12px; font-weight: 600; color: #0f766e;
  background: rgba(15,118,110,.1); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}
.me-desk-badge.soft { color: #b45309; background: rgba(180,83,9,.1); }
.me-desk-title { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.me-desk-sub { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 14px; }
.me-desk-bullets { margin: 0 0 16px; padding-left: 18px; color: #414A60; font-size: 13px; line-height: 1.7; }
.me-desk-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px;
}
.me-desk-stat {
  text-align: center; padding: 12px 8px; background: #fff; border-radius: 12px; border: 1px solid #e8efed;
}
.me-desk-stat b { display: block; font-size: 22px; color: var(--accent); }
.me-desk-stat span { font-size: 12px; color: var(--muted); }
.me-desk-alert {
  font-size: 13px; padding: 10px 12px; border-radius: 10px; margin-bottom: 12px;
  background: #FFF7E6; color: #8a5a00;
}
.me-desk-ok {
  font-size: 13px; padding: 10px 12px; border-radius: 10px; margin-bottom: 12px;
  background: #eef9f4; color: #0f766e;
}
.me-desk-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.me-section-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.me-quick-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.me-quick {
  border: 1px solid #e8efed; background: #fff; border-radius: 12px;
  padding: 14px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer; font-size: 13px; color: #414A60; position: relative;
  text-decoration: none; font: inherit; box-sizing: border-box;
}
.me-quick:hover { border-color: var(--accent); background: var(--accent-soft); }
.me-quick-ico {
  width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 700;
}
.me-quick-dot {
  position: absolute; top: 8px; right: 10px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: #FC6C38; color: #fff; font-size: 11px; line-height: 18px; font-style: normal;
}
@media (max-width: 720px) {
  .me-desk-stats { grid-template-columns: repeat(2, 1fr); }
  .me-quick-grid { grid-template-columns: repeat(2, 1fr); }
}
.cdesk-assist-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.cdesk-assist-card {
  text-align: left; border: 1px solid #e8efed; background: #fff; border-radius: 12px;
  padding: 14px; cursor: pointer;
}
.cdesk-assist-card b { display: block; margin-bottom: 4px; }
.cdesk-assist-card span { font-size: 12px; color: var(--muted); }
.cdesk-assist-card:hover { border-color: var(--accent); background: var(--accent-soft); }
.cdesk-assist-out {
  margin-top: 14px; padding: 14px; background: #f7faf9; border-radius: 12px; min-height: 80px;
}
.cdesk-notice {
  padding: 12px 0; border-bottom: 1px solid #f0f0f0; cursor: pointer;
}
.cdesk-notice.read { opacity: .72; }
.cdesk-notice-title { font-weight: 600; margin-bottom: 4px; }
.cdesk-price-preview {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px;
  margin: 12px 0 16px;
}
.cdesk-price-preview div {
  background: #f7faf9; border-radius: 10px; padding: 12px; text-align: center; font-size: 13px; color: var(--muted);
}
.cdesk-price-preview b { display: block; margin-top: 4px; font-size: 18px; color: var(--ink); }

/* v13 hosting consult + me cta */
.rh-consult-card{border:1px solid #d5ebe6;background:linear-gradient(120deg,#f3faf9,#fff);}
.rh-consult-card .desc{margin:10px 0 14px;}
.me-cta-primary{margin-top:16px;}
.me-cta-secondary{margin-top:8px;}
.me-cta-secondary .btn{opacity:.92;}

/* v14 home NBA + consult dual CTA */
.nba-card{
  background:#f4faf8;border:1px solid #d5ebe6;border-radius:14px;
  padding:16px 18px;margin:0 0 18px;max-width:560px;
}
.nba-kicker{font-size:12px;font-weight:700;color:var(--brand-dark);letter-spacing:.04em;}
.nba-title{font-size:18px;font-weight:700;margin:4px 0 6px;}
.nba-desc{font-size:13px;color:var(--muted);margin-bottom:12px;line-height:1.55;}
.nba-pending{margin-top:6px;color:var(--accent);}
.consultant-actions{display:flex;flex-direction:column;gap:6px;align-items:stretch;min-width:108px;}
.consultant-actions .btn{width:100%;}
.aw-record-card{border:1px solid #d5ebe6;background:#f7fbfa;}

/* ???? / Native ?? */
.mem-status{
  background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px 24px;
}
.mem-status.is-on{border-color:#b7e4df;background:#f4fbfa;}
.mem-status-kicker{font-size:12px;font-weight:700;color:var(--brand-dark);letter-spacing:.04em;}
.mem-status-title{font-size:26px;font-weight:700;margin:6px 0 8px;letter-spacing:-0.03em;}
.mem-status-sub{color:var(--muted);font-size:14px;}
.mem-quota-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.mem-quota-head{display:flex;justify-content:space-between;font-size:13px;margin-bottom:6px;}
.mem-quota-period{font-size:12px;color:var(--muted);margin-top:4px;}
.mem-plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
.mem-plan{
  position:relative;border:1px solid var(--line);border-radius:16px;padding:18px 16px 16px;
  background:#fff;display:flex;flex-direction:column;gap:8px;
}
.mem-plan.highlight{border-color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand);}
.mem-plan.current{background:#f7fbfa;}
.mem-plan h3{margin:8px 0 0;font-size:18px;}
.mem-plan-price{display:flex;align-items:baseline;gap:8px;}
.mem-plan-price b{font-size:28px;letter-spacing:-0.04em;color:var(--brand-dark);}
.mem-plan-price s{color:var(--muted);font-size:13px;}
.mem-plan-dur{font-size:12px;color:var(--muted);}
.mem-plan-list{margin:0 0 8px;padding-left:18px;color:var(--muted);font-size:13px;line-height:1.55;flex:1;}
.mem-plan-badge{
  display:inline-block;font-size:12px;font-weight:600;color:var(--brand-dark);
  background:var(--brand-light);border-radius:999px;padding:2px 8px;
}
.mem-plan-flag{
  position:absolute;top:12px;right:12px;font-size:11px;font-weight:700;
  color:#fff;background:#FC6C38;border-radius:999px;padding:2px 8px;
}
.mem-tabs{display:flex;gap:8px;margin-top:16px;}
.mem-tab{border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 16px;font-size:13px;cursor:pointer;color:var(--text);}
.mem-tab.on{border-color:var(--brand);background:var(--brand-light);color:var(--brand-dark);font-weight:600;}
.mem-loading{padding:28px;text-align:center;color:var(--muted);}
.mem-table-wrap{overflow:auto;}
.mem-table{width:100%;border-collapse:collapse;font-size:13px;}
.mem-table th,.mem-table td{padding:10px 8px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle;}
.mem-table th{color:var(--muted);font-weight:600;}
.mem-coupon{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);}
.mem-coupon b{color:var(--brand-dark);font-size:20px;}
.mem-disc-coupon b{font-size:16px}
.cf-coupon-box{margin:12px 0;padding:12px;border:1px solid var(--line,#e8ebe9);border-radius:12px;background:rgba(255,255,255,.55)}
.cf-coupon-list{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.cf-coupon-opt{display:flex;align-items:flex-start;gap:8px;font-size:13px;color:var(--ink,#1a2e28);cursor:pointer}
.cf-coupon-opt input{margin-top:3px}
.cf-star-rating{display:flex;justify-content:center;gap:4px;padding:8px 0}
.mem-pay-overlay,.pay-overlay.modal-overlay{position:fixed;inset:0;z-index:10020;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(20,32,26,.45)}
.mem-pay-modal,.pay-modal.modal-card{background:#fff;border-radius:16px;width:360px;max-width:100%;padding:0}
.mem-pay-amt,.pay-amt{font-size:16px;font-weight:600;margin:10px 0 8px}
.mem-pay-qr,.pay-qr{width:240px;height:240px;margin:0 auto;background:#fff}
.mem-pay-qr svg,.pay-qr svg{width:100%;height:100%;display:block}
.mem-pay-hint,.pay-hint{font-size:13px;color:var(--muted);text-align:center;line-height:1.5}
.mem-pay-actions{margin-top:8px;display:flex;flex-wrap:wrap;gap:8px}
.mem-badge{display:inline-block;font-size:12px;font-weight:600;border-radius:999px;padding:2px 8px;background:#F5F7FA;color:#61687C;}
.mem-badge.is-pending{background:#FFF7E6;color:#D48806;}
.mem-badge.is-paid{background:#E6F7F6;color:#00A6A7;}
.mem-badge.is-cancel{background:#F5F7FA;color:#8A90A0;}
.mem-badge.is-fail{background:#FFF1F0;color:#CF1322;}
.mem-detail-modal,.order-detail-modal{width:420px}
.mem-detail-row,.order-detail-row{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--line);font-size:13px}
.mem-detail-row span,.order-detail-row span{color:var(--muted)}
.mem-invoice-card{margin-top:16px;padding:12px 14px;border:1px dashed #b7e4df;border-radius:12px;background:#f7fbfa;}
.btn-sm{padding:4px 10px;font-size:12px;border-radius:8px;}
@media (max-width: 900px){
  .mem-plan-grid,.mem-quota-grid{grid-template-columns:1fr;}
}

/* v42 home layout + calendar memo + hosting advice/history */
.home-quota-section {
  margin-top: 20px;
  padding: 4px 0 8px;
}
.home-sec-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}
.home-quota-section .stat-row { margin-bottom: 12px; }
.home-quota-section .stat-row:last-of-type { margin-bottom: 8px; }
@media (max-width: 720px) {
  .home-quota-section .stat-row { grid-template-columns: repeat(2, 1fr); }
}

.sched-badge.memo { background: #0d9488; }
.sched-tag.memo { background: #ccfbf1; color: #0f766e; }
.sched-memo-box {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid #c5e8e2;
  border-radius: 14px;
  background: linear-gradient(135deg, #f3fbf9 0%, #fff 70%);
}
.sched-memo-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.sched-memo-head b { font-size: 15px; color: #14201a; }
.sched-memo-head span { font-size: 12px; color: var(--muted); }
.sched-memo-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d5ebe6;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  line-height: 1.55;
  resize: vertical;
  min-height: 110px;
  background: #fff;
}
.sched-memo-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 190, 189, 0.15);
}
.sched-memo-preview {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f7fbfa;
  border: 1px dashed #b7e4df;
  color: #334155;
  font-size: 13px;
  line-height: 1.6;
  white-space: normal;
}

.rh-advice-card {
  border: 1px solid #c5e8e2;
  background: linear-gradient(120deg, #f3faf9, #fff);
}
.rh-advice-card > h2 { margin-top: 0; }
.rh-hist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 800px) {
  .rh-hist-grid { grid-template-columns: 1fr; }
}
.rh-hist-grid .rh-insight,
.rh-hist-grid .rh-ann {
  background: #fafbfc;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-bottom: none;
}
