:root {
  --ink: #111111;
  --ink-2: #333333;
  --muted: #666666;
  --line: #e8e8e8;
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --bg-dark: #111111;
  --accent: #0b7a6a;
  --accent-hover: #096556;
  --accent-soft: rgba(11, 122, 106, 0.08);
  --danger: #c4442a;
  --nav-h: 64px;
  --bottom-nav: 64px;
  --max: 1180px;
  --font: "Noto Sans TC", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
  min-height: 100vh;
  padding-bottom: var(--bottom-nav);
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.25; color: var(--ink); letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

/* Top free strip — thin corporate bar */
.free-banner {
  background: var(--bg-dark);
  color: #fff;
  text-align: center;
  font-size: 13px;
  padding: 8px 16px;
  letter-spacing: 0.02em;
}
.free-banner a { color: #9fe8d8; }

/* Header — Tencent-like clean bar */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--line);
  height: var(--nav-h);
}
.site-header-inner {
  height: 100%;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  font-size: 22px; font-weight: 700; color: var(--ink) !important;
  letter-spacing: -0.04em; text-decoration: none !important;
}
.brand:hover { opacity: 0.75; }
.nav-main { display: none; gap: 28px; align-items: center; flex: 1; justify-content: center; }
.nav-main a {
  color: var(--ink-2); font-size: 14px; font-weight: 500;
  text-decoration: none; position: relative; padding: 4px 0;
}
.nav-main a:hover, .nav-main a.active { color: var(--accent); }
.nav-main a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -22px;
  height: 2px; background: var(--accent);
}
.header-actions { display: flex; align-items: center; gap: 16px; }
.lang-switch { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.lang-switch a { color: var(--muted); font-weight: 500; text-decoration: none; }
.lang-switch a.active { color: var(--ink); font-weight: 700; }
.lang-switch .sep { opacity: 0.4; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 20px; border: 1px solid transparent;
  font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none !important;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--accent); color: #fff !important; }
.btn-primary:hover { background: var(--accent-hover); color: #fff !important; }
.btn-dark { background: var(--ink); color: #fff !important; }
.btn-dark:hover { background: #333; color: #fff !important; }
.btn-outline {
  background: transparent; border-color: var(--ink); color: var(--ink) !important;
}
.btn-outline:hover { background: var(--ink); color: #fff !important; }
.btn-ghost { background: transparent; color: var(--ink-2) !important; padding: 0 8px; height: auto; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* Hero — full bleed corporate */
.hero-bleed {
  position: relative;
  min-height: min(72vh, 620px);
  display: flex; align-items: flex-end;
  background:
    linear-gradient(105deg, rgba(10,20,18,0.88) 0%, rgba(10,20,18,0.45) 55%, rgba(11,122,106,0.35) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='900'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%230d3d36'/%3E%3Cstop offset='1' stop-color='%231a1a1a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect fill='url(%23g)' width='1600' height='900'/%3E%3Cg fill='%230b7a6a' fill-opacity='0.15'%3E%3Ccircle cx='1200' cy='200' r='280'/%3E%3Ccircle cx='400' cy='700' r='320'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 72px 0 64px;
}
.hero-bleed .kicker {
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0.8; margin-bottom: 16px; font-weight: 600;
}
.hero-bleed h1 {
  color: #fff; font-size: clamp(32px, 5vw, 56px);
  margin: 0 0 16px; max-width: 16ch; font-weight: 700;
}
.hero-bleed .lead {
  font-size: clamp(15px, 2vw, 18px); max-width: 36rem;
  opacity: 0.88; margin-bottom: 28px; line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn-outline {
  border-color: rgba(255,255,255,0.7); color: #fff !important;
}
.hero-actions .btn-outline:hover { background: #fff; color: var(--ink) !important; }

/* Sections */
.section { padding: 64px 0; }
.section-muted { background: var(--bg-soft); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 28px;
}
.section-head h2 { margin: 0; font-size: clamp(22px, 3vw, 28px); }
.section-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.section-head .more {
  color: var(--ink); font-weight: 600; font-size: 14px;
  border-bottom: 1px solid var(--ink); padding-bottom: 2px;
}
.section-head .more:hover { color: var(--accent); border-color: var(--accent); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }

/* Field / feature cards — flat, editorial */
.feature-card {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 28px 24px;
  transition: border-color .2s, box-shadow .2s;
  color: inherit; text-decoration: none !important; display: block;
}
.feature-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
  color: inherit;
}
.feature-card .icon { font-size: 28px; margin-bottom: 12px; line-height: 1; }
.feature-card h3 { margin: 0 0 8px; font-size: 18px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; }

.connect-row {
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}
.connect-item {
  background: var(--bg); padding: 36px 28px;
}
.connect-item h3 { margin: 0 0 8px; font-size: 20px; }
.connect-item p { margin: 0; color: var(--muted); }

/* List rows / news style */
.news-list { border-top: 1px solid var(--line); }
.news-item {
  display: grid; gap: 8px; padding: 22px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 1fr;
  text-decoration: none !important; color: inherit;
}
.news-item:hover h3 { color: var(--accent); }
.news-item .date { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.news-item h3 { margin: 0; font-size: 17px; font-weight: 600; }
.news-item .meta { color: var(--muted); font-size: 13px; }

.tag {
  display: inline-block; font-size: 12px; font-weight: 600;
  padding: 2px 8px; border: 1px solid var(--line); color: var(--ink-2);
  background: var(--bg);
}
.tag-free { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.tag-muted { color: var(--muted); }
.price-old { text-decoration: line-through; color: var(--muted); margin-right: 8px; font-size: 13px; }

.panel-box {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 24px;
}
.list-row {
  display: flex; gap: 16px; align-items: flex-start; justify-content: space-between;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.list-row:last-child { border-bottom: 0; }
.meta { color: var(--muted); font-size: 13px; }

.flash {
  width: min(var(--max), calc(100% - 40px)); margin: 12px auto 0;
  padding: 12px 16px; font-size: 14px; font-weight: 500;
}
.flash-success { background: #e8f6f2; color: #0b5c4f; border: 1px solid #b7e0d4; }
.flash-error { background: #fceb e8; color: #8a2f22; border: 1px solid #f0c4ba; }
.flash-error { background: #fcebe8; }

.form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 13px; color: var(--ink-2); }
input, select, textarea {
  width: 100%; height: 42px; padding: 0 12px;
  border: 1px solid #d0d0d0; background: #fff;
  font: inherit; color: var(--ink);
}
textarea { height: auto; min-height: 110px; padding: 10px 12px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
}
.help { font-weight: 400; color: var(--muted); font-size: 12px; }

.tabs { display: flex; gap: 0; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs a {
  white-space: nowrap; padding: 12px 16px; color: var(--muted);
  font-weight: 500; font-size: 14px; text-decoration: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs a.active, .tabs a:hover { color: var(--ink); border-bottom-color: var(--accent); }

.path-filter-bar { margin-bottom: 12px; }
.path-filter-status {
  margin-bottom: 14px; padding: 10px 14px;
  background: var(--accent-soft); border-left: 3px solid var(--accent);
  font-size: 13px; color: var(--ink-2);
}
.path-filter-status a { font-weight: 600; }

/* Compact jobs filter */
.jobs-note {
  display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline;
  font-size: 13px; margin-bottom: 14px; color: var(--ink-2);
}
.jobs-note code {
  font-size: 13px; letter-spacing: 0.06em; padding: 2px 8px;
  background: var(--bg-soft); border: 1px solid var(--line);
}
.jobs-filter {
  margin-bottom: 14px; padding: 12px 14px;
  border: 1px solid var(--line); background: #fff;
}
.jobs-filter-main {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.jobs-filter-main input[name="q"] {
  flex: 1 1 180px; min-width: 140px; height: 36px; margin: 0;
}
.jobs-company-chips {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin-top: 10px;
}
.chip {
  display: inline-block; padding: 4px 10px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--line); color: var(--ink-2); text-decoration: none;
  background: var(--bg-soft);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-on {
  border-color: var(--accent); color: var(--accent); background: var(--accent-soft);
}
.jobs-filter-extra {
  display: none; grid-template-columns: 1fr; gap: 8px;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line);
}
.jobs-filter-extra.is-open { display: grid; }
.jobs-filter-extra select,
.jobs-filter-extra input {
  height: 36px; margin: 0;
}
.jobs-active-filter { margin: 0 0 12px; }
@media (min-width: 700px) {
  .jobs-filter-extra.is-open {
    grid-template-columns: 1fr 1fr 1.2fr auto;
    align-items: center;
  }
}

/* Home student dashboard */
.dash-board {
  border: 1px solid var(--line); background: #fff; padding: 20px;
  margin-bottom: 8px;
}
.dash-board-head {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.dash-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.dash-next {
  padding: 12px 14px; margin-bottom: 14px;
  background: var(--accent-soft); border-left: 3px solid var(--accent);
}
.dash-actions {
  display: grid; gap: 8px;
  grid-template-columns: 1fr;
}
.dash-action {
  display: block; padding: 12px 14px; border: 1px solid var(--line);
  text-decoration: none; color: inherit; background: var(--bg-soft);
}
.dash-action:hover { border-color: var(--accent); }
.dash-action strong { display: block; margin-bottom: 2px; }
.apps-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-bottom: 16px;
}
.apps-stat {
  border: 1px solid var(--line); background: #fff; padding: 12px; text-align: center;
}
.apps-stat strong { display: block; font-size: 1.25rem; }
@media (min-width: 720px) {
  .dash-actions { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .apps-stats { grid-template-columns: repeat(2, 1fr); }
}

.quiz-progress {
  height: 2px; background: var(--line); margin-bottom: 24px;
}
.quiz-progress > span {
  display: block; height: 100%; background: var(--accent); width: 0; transition: width .25s;
}
.quiz-card { display: none; }
.quiz-card.active { display: block; }
.option {
  display: block; width: 100%; text-align: left; padding: 14px 16px; margin: 8px 0;
  border: 1px solid var(--line); background: #fff;
  font: inherit; cursor: pointer; font-weight: 500;
}
.option:hover, .option.selected {
  border-color: var(--accent); background: var(--accent-soft);
}

.avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--bg-dark); color: #fff;
  display: grid; place-items: center; font-weight: 700; flex-shrink: 0;
}

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  display: none; align-items: center; justify-content: center; z-index: 80; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  width: min(560px, 100%); background: #fff; padding: 28px;
  max-height: 85vh; overflow: auto;
}

/* Chatbot */
.chat-fab {
  position: fixed; right: 20px; bottom: calc(var(--bottom-nav) + 16px); z-index: 60;
  width: 52px; height: 52px; border: 0; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 20px; cursor: pointer;
}
.chat-panel {
  position: fixed; right: 20px; bottom: calc(var(--bottom-nav) + 76px); z-index: 70;
  width: min(380px, calc(100vw - 24px)); height: min(520px, 70vh);
  background: #fff; border: 1px solid var(--line);
  display: none; flex-direction: column; overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}
.chat-panel.open { display: flex; }
.chat-head {
  background: var(--ink); color: #fff; padding: 14px 16px;
  font-weight: 600; display: flex; justify-content: space-between; align-items: center;
}
.chat-messages { flex: 1; overflow: auto; padding: 14px; display: grid; gap: 8px; background: var(--bg-soft); }
.bubble { max-width: 88%; padding: 10px 12px; font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.bubble.bot { background: #fff; border: 1px solid var(--line); }
.bubble.user { background: var(--accent); color: #fff; margin-left: auto; }
.chat-quick { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; border-top: 1px solid var(--line); }
.chat-quick button {
  white-space: nowrap; border: 1px solid var(--line); background: #fff;
  padding: 6px 10px; font-size: 12px; cursor: pointer; font-family: inherit;
}
.chat-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; height: 38px; }

/* Footer — dark like Tencent */
.site-footer {
  background: var(--bg-dark); color: rgba(255,255,255,0.72);
  padding: 56px 0 28px; margin-top: 0;
}
.site-footer a { color: rgba(255,255,255,0.72); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid; gap: 32px; grid-template-columns: 1fr;
  margin-bottom: 40px;
}
.footer-grid h4 { color: #fff; margin: 0 0 14px; font-size: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 0 0 10px; font-size: 13px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px; font-size: 12px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
}

.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: repeat(6, 1fr);
  background: #fff; border-top: 1px solid var(--line);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 10px; font-weight: 600; color: var(--muted);
  text-decoration: none; padding: 4px 2px;
}
.bottom-nav a.active, .bottom-nav a:hover { color: var(--accent); }
.bottom-nav .ico { font-size: 16px; }

/* Panel admin */
.panel-body { padding-bottom: 0 !important; background: var(--bg-soft); }
.panel-shell { display: grid; min-height: 100vh; }
.panel-side { display: none; background: var(--ink); color: #fff; padding: 24px 20px; }
.panel-side .brand { color: #fff !important; }
.panel-side a { color: rgba(255,255,255,0.7); display: block; padding: 8px 6px; text-decoration: none; font-size: 14px; }
.panel-side a:hover, .panel-side a.active { color: #fff; }
.panel-main { padding: 24px; }
.panel-nav-mobile { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 16px; }
.panel-nav-mobile a {
  white-space: nowrap; padding: 8px 12px; border: 1px solid var(--line);
  background: #fff; font-size: 12px; font-weight: 600; color: var(--ink-2); text-decoration: none;
}
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.stat { background: #fff; border: 1px solid var(--line); padding: 16px; }
.stat strong { display: block; font-size: 24px; margin-top: 4px; }
table.data { width: 100%; border-collapse: collapse; background: #fff; font-size: 13px; border: 1px solid var(--line); }
table.data th, table.data td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.data th { background: var(--bg-soft); font-weight: 600; }

.path-progress-label {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 13px; color: var(--muted); margin-bottom: 6px;
}
.path-progress-bar {
  height: 6px; background: var(--bg-soft); border: 1px solid var(--line); overflow: hidden;
}
.path-progress-bar > span {
  display: block; height: 100%; background: var(--accent); width: 0;
}
.list-row.is-done strong { text-decoration: line-through; color: var(--muted); }
.path-item-actions {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end;
}
.inline-form { display: inline; margin: 0; }

.profile-banner {
  background: #f3faf8; color: var(--ink); border-bottom: 1px solid var(--line);
  padding: 10px 16px; font-size: 13px; text-align: center;
}
.profile-banner a { color: var(--accent); font-weight: 600; margin-left: 4px; }
.points-chip {
  display: inline-flex; align-items: center; padding: 4px 10px;
  border: 1px solid var(--line); font-size: 12px; font-weight: 600;
  color: var(--accent); text-decoration: none; white-space: nowrap;
}

/* Student profile — resume / CV sheet */
.profile-resume { padding-top: 28px; }
.resume-alert {
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline;
  padding: 12px 16px; margin-bottom: 20px;
  background: #f3faf8; border-left: 3px solid var(--accent);
  font-size: 13px;
}
.resume-alert strong { font-size: 14px; }
.resume-layout {
  display: grid; gap: 20px; align-items: start;
}
.resume-sheet {
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px 24px 24px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.resume-head {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  padding-bottom: 20px; margin-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}
.resume-head-main { flex: 1; min-width: min(100%, 240px); }
.resume-head-side {
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.resume-name {
  width: 100%; border: 0; background: transparent; padding: 0;
  font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 700;
  letter-spacing: -0.03em; color: var(--ink); font-family: inherit;
  outline: none;
}
.resume-name:focus { background: var(--accent-soft); }
.resume-tagline input,
.resume-meta-row input {
  width: 100%; border: 0; background: transparent; padding: 2px 0;
  font-family: inherit; color: var(--ink-2); outline: none;
}
.resume-tagline input {
  font-size: 15px; color: var(--muted); margin-top: 6px;
}
.resume-tagline input:focus,
.resume-meta-row input:focus { background: var(--accent-soft); }
.resume-meta-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px;
  margin-top: 10px; font-size: 13px;
}
.resume-meta-row input {
  width: auto; min-width: 4.5rem; flex: 1 1 auto; max-width: 14rem;
  font-size: 13px;
}
.resume-meta-row .dot { color: var(--muted); }
.resume-field-pick {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-top: 12px; font-size: 12px; font-weight: 600; color: var(--muted);
}
.resume-field-pick select {
  min-width: 10rem; height: 34px; border: 1px solid var(--line);
  background: var(--bg-soft); padding: 0 10px; font-family: inherit;
  font-size: 13px; color: var(--ink);
}
.resume-pill {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 4px 8px; background: var(--bg-soft); color: var(--ink-2);
  border: 1px solid var(--line);
}
.resume-block {
  padding: 16px 0 8px;
  border-bottom: 1px solid var(--line);
}
.resume-block:last-of-type { border-bottom: 0; }
.resume-block h3 {
  margin: 0 0 8px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
.resume-block textarea {
  width: 100%; border: 0; background: transparent; resize: vertical;
  padding: 4px 0; font-family: inherit; font-size: 14px; line-height: 1.55;
  color: var(--ink); outline: none; min-height: 2.6em;
}
.resume-block textarea:focus { background: var(--accent-soft); }
.resume-chips {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px;
}
.resume-chips span {
  font-size: 12px; padding: 3px 8px; border: 1px solid var(--line);
  background: var(--bg-soft); color: var(--ink-2);
}
.resume-actions {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line);
}
.resume-rail { display: grid; gap: 12px; }
.resume-rail-card {
  background: var(--bg-soft); border: 1px solid var(--line); padding: 16px;
}
.resume-rail-card h3 {
  margin: 0 0 10px; font-size: 13px; font-weight: 700;
}
.resume-links {
  display: grid; gap: 2px;
}
.resume-links a {
  display: block; padding: 8px 0; font-size: 13px; font-weight: 500;
  color: var(--ink-2); text-decoration: none;
  border-bottom: 1px solid transparent;
}
.resume-links a:hover {
  color: var(--accent); border-bottom-color: var(--line);
}
.resume-invite-label {
  display: block; font-size: 12px; font-weight: 600; color: var(--muted);
  margin: 10px 0 4px;
}
.resume-invite-label input {
  width: 100%; height: 36px; border: 1px solid var(--line);
  background: #fff; padding: 0 10px; font-size: 12px; font-family: inherit;
  color: var(--ink);
}

/* Circles & friends */
.circle-card-top {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.circle-icon { font-size: 1.4rem; }
.circle-post { margin-bottom: 10px; }
.circle-post-meta {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px;
}
.circle-member-list {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 10px;
}
.circle-member-list li {
  display: grid; gap: 2px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.circle-member-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.circle-member-list a:hover { color: var(--accent); }
.dm-thread {
  display: flex; flex-direction: column; gap: 10px;
  max-height: 420px; overflow-y: auto;
}
.dm-bubble {
  max-width: 85%; padding: 10px 12px; border: 1px solid var(--line);
  background: var(--bg-soft);
}
.dm-bubble.mine {
  align-self: flex-end; background: var(--accent-soft); border-color: transparent;
}
.dm-bubble.theirs { align-self: flex-start; }
.dm-body { white-space: pre-wrap; font-size: 14px; }

.circle-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.circle-post-body { margin-top: 10px; font-size: 14px; line-height: 1.55; }
.mention {
  color: var(--accent); font-weight: 600; text-decoration: none;
  background: var(--accent-soft); padding: 0 4px;
}
.mention:hover { text-decoration: underline; }
.mention-me { outline: 1px solid var(--accent); }
.mention-form { position: relative; }
.mention-menu {
  position: absolute; z-index: 20; left: 16px; right: 16px;
  background: #fff; border: 1px solid var(--line); max-height: 200px; overflow: auto;
}
.mention-item {
  display: block; width: 100%; text-align: left; border: 0; background: #fff;
  padding: 10px 12px; font-family: inherit; font-size: 13px; cursor: pointer;
}
.mention-item:hover, .mention-item.is-active { background: var(--accent-soft); color: var(--accent); }

.circle-chat { display: flex; flex-direction: column; gap: 12px; padding: 0; overflow: hidden; }
.circle-chat-stream {
  height: min(52vh, 480px); overflow-y: auto; padding: 16px;
  background: var(--bg-soft); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.circle-chat-msg {
  max-width: 88%; padding: 10px 12px; background: #fff; border: 1px solid var(--line);
  align-self: flex-start;
}
.circle-chat-msg.mine {
  align-self: flex-end; background: var(--accent-soft); border-color: transparent;
}
.circle-chat-meta {
  display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-bottom: 4px; font-size: 13px;
}
.circle-chat-meta a { color: var(--ink); text-decoration: none; }
.circle-chat-body { font-size: 14px; line-height: 1.5; word-break: break-word; }
.circle-chat-composer {
  display: grid; gap: 8px; padding: 12px 16px 4px; position: relative;
}
.circle-chat-composer textarea {
  width: 100%; border: 1px solid var(--line); padding: 10px; font-family: inherit;
  font-size: 14px; resize: vertical; min-height: 56px;
}
.circle-chat-composer .btn { justify-self: end; }

@media (min-width: 900px) {
  .resume-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 28px;
  }
  .resume-sheet { padding: 36px 40px 32px; }
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .bottom-nav { display: none !important; }
  .chat-fab { bottom: 24px; }
  .chat-panel { bottom: 88px; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .connect-row { grid-template-columns: repeat(3, 1fr); }
  .news-item { grid-template-columns: 110px 1fr auto; align-items: baseline; }
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .nav-main { display: flex; }
  .panel-shell { grid-template-columns: 220px 1fr; }
  .panel-side { display: block; }
  .panel-nav-mobile { display: none; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Circle create */
.circle-create {
  margin-top: 12px;
  padding: 18px 20px;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #e2e8e6);
  border-radius: 12px;
}

/* PWA install prompt */
.pwa-install {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  max-width: 520px;
  margin: 0 auto;
  animation: pwa-in .28s ease-out;
}
@keyframes pwa-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.pwa-install-inner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: #0f1f1c;
  color: #f4fffc;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(15, 31, 28, .35);
}
.pwa-install-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  flex-shrink: 0;
}
.pwa-install-copy {
  flex: 1 1 160px;
  min-width: 0;
}
.pwa-install-copy strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}
.pwa-install-copy p {
  margin: 0;
  font-size: 13px;
  opacity: .88;
  line-height: 1.4;
}
.pwa-install-ios { margin-top: 6px !important; color: #9ee0d0 !important; opacity: 1 !important; }
.pwa-install-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-left: auto;
}
.pwa-install-actions .btn-outline {
  border-color: rgba(255,255,255,.35);
  color: #fff;
}
@media (min-width: 768px) {
  .pwa-install { bottom: 24px; left: auto; right: 24px; width: min(420px, calc(100vw - 48px)); }
}
