:root {
  color-scheme: light;
  --page: #f7f8f5;
  --surface: #fff;
  --sidebar: #f1f4ef;
  --ink: #182720;
  --muted: #55645a;
  --line: #dfe6dc;
  --accent: #245844;
  --accent-dark: #184532;
  --soft: #e5efe5;
  --danger: #a23e3b;
  --radius: 13px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: var(--page); color: var(--ink); }
button, input, textarea, select { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
a { color: var(--accent); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #598c70; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.85rem, 3.4vw, 2.65rem); font-weight: 720; line-height: 1.22; letter-spacing: -.04em; overflow-wrap: anywhere; }
h2 { font-size: 1.13rem; letter-spacing: -.015em; }
h3 { font-size: 1rem; overflow-wrap: anywhere; }
svg.icon { width: 19px; height: 19px; flex: 0 0 auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.loading, .empty { text-align: center; padding: 3rem 1.25rem; color: var(--muted); }
.empty { display: grid; justify-items: center; gap: .6rem; }
.empty h3 { color: var(--ink); }
.empty-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--soft); color: var(--accent); }
.empty-icon .icon { width: 24px; height: 24px; }
.empty .button { margin-top: .45rem; }
.layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.sidebar { display: flex; flex-direction: column; min-height: 100vh; position: sticky; top: 0; height: 100vh; padding: 26px 16px 20px; background: var(--sidebar); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; font-size: 1.1rem; font-weight: 740; color: var(--ink); text-decoration: none; letter-spacing: -.035em; }
.brand img { flex: none; }
.sidebar .brand { margin: 0 10px 30px; }
.nav { display: grid; gap: 5px; }
.nav a, .nav button { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: .6rem .8rem; border: 0; border-radius: 9px; background: transparent; color: var(--muted); text-decoration: none; font-size: .94rem; text-align: left; }
.nav a:hover, .nav button:hover { background: #e9eee7; color: var(--ink); }
.nav [aria-current="page"] { background: #dfece0; color: var(--accent-dark); font-weight: 690; }
.side-footer { margin-top: auto; border-top: 1px solid var(--line); padding-top: 10px; }
.main { width: 100%; max-width: 1390px; min-width: 0; padding: 30px clamp(22px, 4vw, 62px) 60px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 31px; }
.topbar .mobile-logout { display: none; }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .875rem; }
.breadcrumb a { font-weight: 620; text-decoration: none; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 25px; }
.page-heading p { margin-top: .5rem; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; color: var(--accent); font-size: .875rem; font-weight: 680; margin-bottom: .6rem; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #50876a; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 1px solid #cdd9ce; border-radius: 8px; padding: .6rem .85rem; min-height: 42px; background: var(--surface); color: var(--accent-dark); font-weight: 650; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.button:hover { border-color: #7faa90; background: #f0f6ef; }
.button.primary { background: var(--accent); color: white; border-color: var(--accent); }
.button.primary:hover { background: var(--accent-dark); }
.button.subtle { background: transparent; border-color: transparent; }
.button.subtle:hover { background: var(--soft); }
.button.danger { color: var(--danger); }
.actions { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); border-radius: 8px; }
.icon-button:hover { background: var(--soft); color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 24px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 17px; min-width: 0; }
.stat:first-child { background: #eaf2e9; border-color: #d6e6d6; }
.stat-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: var(--muted); font-size: .885rem; font-weight: 620; }
.stat-icon { display: grid; place-items: center; border-radius: 9px; width: 32px; height: 32px; background: var(--sidebar); color: var(--accent); }
.stat:first-child .stat-icon { background: #dceadd; }
.stat strong { display: block; font-size: 1.8rem; letter-spacing: -.045em; line-height: 1.15; font-variant-numeric: tabular-nums; margin-top: 7px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; overflow: hidden; }
.panel + .panel { margin-top: 18px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 17px 20px; }
.panel-heading h2 { display: flex; align-items: center; gap: 9px; }
.panel-heading h2 .icon { color: var(--accent); }
.panel-body { padding: 0 20px 20px; }
.follow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.follow-grid .panel + .panel { margin: 0; }
.follow-list { display: grid; gap: 8px; }
.follow-item { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.follow-item span:first-child { overflow-wrap: anywhere; }
.follow-item strong { display: block; font-size: .94rem; }
.follow-item:hover strong { color: var(--accent); text-decoration: underline; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; background: #edf1ec; color: #46554c; font-size: .81rem; font-weight: 650; border-radius: 999px; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.applied { color: #275683; background: #e9f1fb; }
.pill.assessment, .pill.interview { color: #74541c; background: #fff3d8; }
.pill.offer, .pill.accepted { color: #215944; background: #e1f2e6; }
.pill.rejected { color: #903736; background: #fbe9e7; }
.pill.due { color: #914238; background: #f9ebe7; }
.toolbar { display: flex; flex-wrap: wrap; gap: 9px; padding: 0 20px 15px; }
.search { display: flex; align-items: center; gap: 9px; padding-left: 11px; flex: 1 1 225px; max-width: 360px; background: var(--surface); border: 1px solid #cfd9cf; border-radius: 8px; color: var(--muted); }
.search:focus-within { outline: 3px solid #598c70; outline-offset: 2px; }
.search input { border: none; padding-left: 0; outline: none; background: transparent; }
input:not([type="checkbox"]), textarea, select { color: var(--ink); width: 100%; min-width: 0; border: 1px solid #cfd9cf; background: var(--surface); border-radius: 8px; padding: .55rem .7rem; }
.search input { border: 0; padding-left: 0; }
.toolbar select { width: auto; font-size: .875rem; }
select { appearance: none; padding-right: 2rem; background-image: url("/chevron.svg"); background-repeat: no-repeat; background-size: 16px; background-position: right 9px center; }
textarea { resize: vertical; min-height: 84px; }
.table-container { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .9rem; }
th { background: #f2f5f0; color: var(--muted); text-align: left; white-space: nowrap; font-size: .86rem; font-weight: 670; }
th, td { padding: 13px 14px; border-top: 1px solid var(--line); }
th:first-child, td:first-child { padding-left: 20px; }
th:last-child, td:last-child { padding-right: 20px; }
td:nth-child(2), td:nth-child(4) { white-space: nowrap; }
td { overflow-wrap: anywhere; }
.t-position { min-width: 155px; }
.t-position a { text-decoration: none; font-weight: 720; display: inline-block; }
.t-position a:hover { text-decoration: underline; }
.t-position .muted { display: block; }
tbody tr:hover { background: #fbfcfa; }
.list-footer { padding: 10px 20px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .48fr); gap: 18px; align-items: start; }
.detail-layout > div { min-width: 0; }
.detail-heading { align-items: flex-start; }
.detail-heading .actions { flex-shrink: 0; }
.detail-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem .8rem; margin-top: .7rem; }
.meta { display: grid; gap: 0; margin: 0; }
.meta div { border-top: 1px solid var(--line); padding: .7rem 0; }
.meta dt { font-size: .875rem; color: var(--muted); }
.meta dd { margin: .2rem 0 0; overflow-wrap: anywhere; }
.meta div:last-child { padding-bottom: 0; }
.snapshots { display: grid; gap: 11px; }
.snapshot { border: 1px solid var(--line); border-radius: 9px; padding: 11px 13px; min-width: 0; }
.snapshot summary { cursor: pointer; color: var(--accent); font-size: .91rem; font-weight: 680; }
.snapshot p, .timeline p { overflow-wrap: anywhere; white-space: pre-wrap; }
.snapshot p { margin-top: .75rem; }
.snapshot .actions { margin-top: .75rem; }
.timeline { list-style: none; padding: 0; margin: 0 0 0 6px; }
.timeline > li { position: relative; border-left: 1px solid #cdded0; padding: 2px 0 17px 18px; }
.timeline > li::before { content: ""; width: 9px; height: 9px; background: #5d8c72; border-radius: 50%; position: absolute; left: -5px; top: 8px; }
.timeline > li:last-child { padding-bottom: 3px; }
.timeline details { margin-top: 7px; }
.timeline summary { cursor: pointer; color: var(--accent); font-size: .89rem; }
.interview-copy { display: grid; gap: 9px; padding-top: 8px; }
.resume-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 0; border-top: 1px solid var(--line); }
.resume-row h3, .resume-row p { overflow-wrap: anywhere; }
.share-box { display: grid; gap: 12px; }
.share-box label { display: grid; gap: 4px; }
dialog { border: 1px solid var(--line); border-radius: 17px; color: var(--ink); padding: 0; width: min(640px, calc(100% - 24px)); max-height: calc(100vh - 24px); background: var(--surface); box-shadow: 0 22px 75px #13241d35; }
dialog::backdrop { background: #13241d66; }
.editor-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.editor-head h2 { font-size: 1.25rem; }
.form-body { display: grid; gap: 13px; padding: 18px 22px; }
.form-body label { display: grid; gap: .3rem; min-width: 0; font-size: .9rem; font-weight: 650; }
.form-body label small { font-weight: 400; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-body .check { display: flex; align-items: center; gap: 8px; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
.form-footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); padding: 13px 22px; }
.form-error { color: var(--danger); font-size: .89rem; }
.form-error:empty { display: none; }
#toast:not(:empty) { position: fixed; z-index: 2; bottom: 24px; right: 24px; background: var(--accent-dark); color: white; padding: .8rem 1rem; max-width: calc(100% - 40px); border-radius: 9px; box-shadow: 0 4px 22px #18272030; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login { width: min(100%, 435px); background: white; border: 1px solid var(--line); border-radius: 18px; padding: 32px; }
.login .brand { margin-bottom: 30px; }
.login h1 { font-size: 1.9rem; }
.login form { margin-top: 19px; display: grid; gap: 10px; }
.login label { font-size: .92rem; font-weight: 670; }
.login .button { margin-top: 5px; }
.family-wrap { max-width: 780px; margin: 0 auto; padding: 25px clamp(16px, 5vw, 50px) 50px; }
.family-heading { border: 1px solid #d6e6d6; border-radius: 17px; padding: 25px; background: #eaf2e9; margin: 28px 0 19px; }
.family-heading h1 { margin-top: .6rem; }
.family-list { display: grid; }
.family-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.family-row:last-child { border: 0; }
.family-row p { overflow-wrap: anywhere; }
.family-right { display: grid; justify-items: end; gap: 5px; white-space: nowrap; }

@media (max-width: 1060px) {
  .layout { grid-template-columns: 192px minmax(0, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-layout .details-side { grid-row: 1; }
}
@media (max-width: 770px) {
  .layout { display: block; }
  .sidebar { position: relative; min-height: 0; height: auto; padding: 14px 15px 9px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar .brand { margin: 0 0 10px; }
  .nav { display: flex; flex-wrap: wrap; gap: 3px; }
  .nav a, .nav button { padding: .5rem .65rem; font-size: .875rem; gap: 6px; }
  .nav .icon { width: 17px; height: 17px; }
  .side-footer { display: none; }
  .topbar { margin-bottom: 17px; }
  .topbar .mobile-logout { display: inline-flex; }
  .main { padding: 13px 15px 32px; }
  .page-heading { flex-wrap: wrap; gap: 13px; margin-bottom: 17px; }
  .stats { gap: 7px; margin-bottom: 15px; }
  .stat { padding: 9px 10px; }
  .stat-head { font-size: .8rem; }
  .stat-icon { display: none; }
  .stat strong { font-size: 1.6rem; }
  .follow-grid { gap: 8px; margin-bottom: 15px; }
  .panel-heading { padding: 13px; }
  .panel-body { padding: 0 13px 13px; }
  .toolbar { padding: 0 13px 13px; }
  .search { flex-basis: 100%; max-width: none; }
  th, td { padding: 10px; }
  th:first-child, td:first-child { padding-left: 13px; }
  .table-extra { display: none; }
}
@media (max-width: 420px) {
  .follow-grid, .form-row { grid-template-columns: 1fr; }
  .editor-head, .form-body, .form-footer { padding-left: 14px; padding-right: 14px; }
  .login { padding: 22px; }
}

.brand span { white-space: nowrap; }
td:nth-child(3) { white-space: nowrap; }
.file-link { max-width: 100%; white-space: normal; text-align: left; }
.file-link span { min-width: 0; overflow-wrap: anywhere; }
