:root {
  --bg: #f5f4f0;
  --surface: #ffffff;
  --surface-2: #fafaf8;
  --ink: #111111;
  --ink-2: #3a3a3a;
  --muted: #74726d;
  --faint: #a8a59e;
  --line: #e6e3dc;
  --line-2: #efede8;
  --accent: #e5322d;
  --accent-soft: #fdecea;
  --green: #17804f;
  --green-soft: #e5f4ec;
  --amber: #a86400;
  --amber-soft: #fdf1dc;
  --blue: #2457c5;
  --blue-soft: #e8eefc;
  --violet: #6741c7;
  --violet-soft: #efe9fc;
  --red: #c4261f;
  --red-soft: #fbe7e5;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(17, 17, 17, .04), 0 4px 16px rgba(17, 17, 17, .04);
  --shadow-lg: 0 12px 48px rgba(17, 17, 17, .16);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: #111; color: #fff; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(245, 244, 240, .86); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top-inner { max-width: 1240px; margin: 0 auto; height: 64px; padding: 0 24px; display: flex; align-items: center; gap: 28px; }
.brand { font-family: var(--serif); font-size: 30px; letter-spacing: -.01em; text-decoration: none; line-height: 1; }
.brand span { color: var(--accent); }
.tabs { display: flex; gap: 2px; background: #ebe9e3; padding: 3px; border-radius: 11px; }
.tab { border: 0; background: none; padding: 7px 14px; border-radius: 8px; font-weight: 500; color: var(--muted); cursor: pointer; display: flex; align-items: center; gap: 7px; transition: color .15s, background .15s; }
.tab:hover { color: var(--ink); }
.tab.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.tab .n { font-size: 11px; font-weight: 600; background: var(--line); color: var(--ink-2); border-radius: 20px; padding: 0 6px; min-width: 18px; text-align: center; line-height: 17px; }
.tab .n.hot { background: var(--accent); color: #fff; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }

/* ---------- layout ---------- */
.view { max-width: 1240px; margin: 0 auto; padding: 28px 24px 120px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-head h1 { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; margin: 0; letter-spacing: -.015em; }
.page-head h1 em { color: var(--accent); }
.page-head p { margin: 8px 0 0; color: var(--muted); max-width: 640px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grow { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.sep { width: 1px; align-self: stretch; background: var(--line); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px 22px; }
.section-title { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.section-title .step { width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-grid; place-items: center; font-size: 11px; letter-spacing: 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; transition: border-color .15s, background .15s, transform .05s; }
.btn:hover { border-color: #cfccc4; background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: #2a2a2a; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.accent:hover { background: #cf2722; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: rgba(0, 0, 0, .04); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn.xs { height: 26px; padding: 0 8px; font-size: 12px; border-radius: 7px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.ico { width: 15px; height: 15px; flex: none; }
.btn.busy { position: relative; color: transparent !important; }
.btn.busy::after { content: ''; position: absolute; width: 14px; height: 14px; border: 2px solid currentColor; border-color: #fff #fff transparent transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn:not(.primary):not(.accent).busy::after { border-color: #111 #111 transparent transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.linkish { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; cursor: pointer; }
.linkish:hover { text-decoration-color: var(--ink); }

/* ---------- form ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.field > small { color: var(--muted); font-size: 12px; }
.input, .select, .textarea { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); padding: 8px 11px; outline: none; transition: border-color .15s, box-shadow .15s; }
.input, .select { height: 38px; }
.input:focus, .select:focus, .textarea:focus { border-color: #111; box-shadow: 0 0 0 3px rgba(17, 17, 17, .07); }
.textarea { resize: vertical; min-height: 90px; line-height: 1.55; }
.textarea.letter { font-family: var(--font); font-size: 14.5px; line-height: 1.7; min-height: 460px; padding: 22px 26px; background: #fffefc; }
.select { appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23777' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.toggle { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; font-weight: 500; font-size: 13px; }
.toggle input { appearance: none; width: 34px; height: 20px; background: #d8d5ce; border-radius: 20px; position: relative; cursor: pointer; transition: background .15s; margin: 0; flex: none; }
.toggle input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.toggle input:checked { background: var(--ink); }
.toggle input:checked::after { transform: translateX(14px); }
.search-box { position: relative; }
.search-box svg { position: absolute; left: 11px; top: 11px; width: 16px; height: 16px; color: var(--faint); }
.search-box .input { padding-left: 34px; }

/* ---------- chips & pills ---------- */
.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 20px; font-size: 12px; font-weight: 500; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.chip.new { background: var(--accent); color: #fff; }
.chip.dream { background: #111; color: #fff; }
.chip.money { background: var(--green-soft); color: var(--green); }
.chip.due { background: var(--amber-soft); color: var(--amber); }
.chip.due.urgent { background: var(--red-soft); color: var(--red); }
.chip.gone { background: transparent; border: 1px dashed var(--faint); color: var(--muted); }
.chip.src { background: transparent; border: 1px solid var(--line); color: var(--muted); }
a.chip { text-decoration: none; }
a.chip:hover, button.chip:hover { background: #e4e1da; }
button.chip { border: 0; cursor: pointer; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tone-grey { background: var(--line-2); color: var(--ink-2); }
.tone-blue { background: var(--blue-soft); color: var(--blue); }
.tone-violet { background: var(--violet-soft); color: var(--violet); }
.tone-ink { background: #111; color: #fff; }
.tone-amber { background: var(--amber-soft); color: var(--amber); }
.tone-green { background: var(--green-soft); color: var(--green); }
.tone-greenSolid { background: var(--green); color: #fff; }
.tone-red { background: var(--red-soft); color: var(--red); }
.tone-muted { background: transparent; color: var(--muted); border: 1px solid var(--line); }
select.pill-select { appearance: none; border: 0; cursor: pointer; padding: 0 24px 0 11px; height: 26px; border-radius: 20px; font-weight: 600; font-size: 12px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M1 1l3 3 3-3' stroke='currentColor' stroke-width='1.4' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; }
select.pill-select.tone-ink, select.pill-select.tone-greenSolid { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M1 1l3 3 3-3' stroke='white' stroke-width='1.4' fill='none'/%3E%3C/svg%3E"); }

/* ---------- segmented ---------- */
.seg { display: inline-flex; border-bottom: 1px solid var(--line); gap: 22px; margin-bottom: 18px; width: 100%; }
.seg button { background: none; border: 0; padding: 10px 0 12px; font-weight: 500; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; display: flex; gap: 7px; align-items: center; }
.seg button.on { color: var(--ink); border-color: var(--ink); }
.seg button .n { font-size: 12px; color: var(--faint); font-weight: 500; }

/* ---------- find: LinkedIn bar ---------- */
.li-bar { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 18px 22px; margin-bottom: 26px; background: #111; color: #fff; border-radius: var(--radius); border: 0; }
.li-bar h3 { margin: 0 0 3px; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.li-bar p { margin: 0 0 12px; color: #a9a7a1; font-size: 13px; }
.li-bar .chip { background: #262626; color: #eee; }
.li-bar a.chip:hover { background: #333; }
.li-bar .btn { background: #fff; color: #111; border-color: #fff; }
.li-bar .btn.dark { background: #262626; color: #fff; border-color: #333; }
.li-logo { width: 18px; height: 18px; border-radius: 4px; background: #0a66c2; display: inline-grid; place-items: center; font-weight: 700; font-size: 11px; color: #fff; }
.bookmarklet { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 8px; background: var(--accent); color: #fff !important; text-decoration: none; font-weight: 600; font-size: 13px; cursor: grab; }

/* ---------- find: filters + list ---------- */
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.filters .search-box { flex: 1; min-width: 220px; }
.filters .select { width: auto; min-width: 140px; }
.jobs { display: flex; flex-direction: column; gap: 8px; }
.job { display: grid; grid-template-columns: 22px 44px 1fr auto; gap: 14px; align-items: start; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; cursor: pointer; }
.job:hover { border-color: #d4d1c9; box-shadow: var(--shadow); }
.job.sel { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.job.gone { opacity: .55; }
.job.done { background: var(--surface-2); }
.job h4 { margin: 1px 0 2px; font-size: 15px; font-weight: 600; letter-spacing: -.005em; }
.job .meta { color: var(--muted); font-size: 13px; }
.job .why { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; color: var(--green); }
.job .why .ico { width: 13px; height: 13px; }
.chip.side { background: var(--blue-soft); color: var(--blue); }
.job .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.job .desc { margin-top: 10px; color: var(--ink-2); font-size: 13px; line-height: 1.6; max-height: 180px; overflow: auto; padding-right: 8px; }
.job .actions { display: flex; gap: 4px; align-items: center; }
.check { appearance: none; width: 20px; height: 20px; border: 1.5px solid #c9c6be; border-radius: 6px; margin: 11px 0 0; cursor: pointer; display: grid; place-items: center; background: #fff; transition: all .12s; }
.check:checked { background: var(--ink); border-color: var(--ink); }
.check:checked::after { content: ''; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.mono { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; font-weight: 700; font-size: 15px; letter-spacing: -.02em; color: #fff; flex: none; }
.match { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 11px; color: var(--muted); }
.match .bar { width: 54px; height: 4px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.match .bar i { display: block; height: 100%; background: var(--ink); border-radius: 4px; }
.selbar { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 40; background: #111; color: #fff; padding: 8px 8px 8px 20px; border-radius: 14px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow-lg); }
.selbar .btn.ghost { color: #bbb; }
.selbar .btn.ghost:hover { background: #222; color: #fff; }
@keyframes rise { from { transform: translate(-50%, 12px); opacity: 0; } }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.tile { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.tile .top-line { display: flex; align-items: center; gap: 12px; }
.tile .mono { width: 36px; height: 36px; font-size: 13px; border-radius: 9px; }
.tile h4 { margin: 0; font-size: 14.5px; }

.empty { text-align: center; padding: 64px 20px; color: var(--muted); }
.empty h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; color: var(--ink); margin: 0 0 6px; }
.banner { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid #f6cdca; margin-bottom: 22px; }
.banner b { display: block; }
.report { margin-top: 26px; }
.report summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.report ul { columns: 3; padding-left: 18px; font-size: 12.5px; color: var(--muted); }

/* ---------- apply ---------- */
.apply { display: grid; grid-template-columns: 300px 1fr; gap: 22px; align-items: start; }
.apply > *, .profile > *, .editor > * { min-width: 0; }
.queue { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow: auto; }
.queue-head { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.queue-head b { font-size: 13px; }
.q-item { display: block; width: 100%; text-align: left; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line-2); background: none; cursor: pointer; }
.q-item:hover { background: var(--surface-2); }
.q-item.on { background: #f3f1ec; box-shadow: inset 3px 0 0 var(--ink); }
.q-item .c { font-weight: 600; font-size: 13.5px; }
.q-item .r { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-item .pill { height: 20px; font-size: 11px; padding: 0 8px; margin-top: 7px; }
.editor { display: flex; flex-direction: column; gap: 14px; }
.ed-head { padding: 22px 24px; display: flex; align-items: center; gap: 16px; }
.ed-head h2 { margin: 0; font-size: 22px; letter-spacing: -.015em; }
.ed-head .meta { color: var(--muted); }
.sugs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; align-items: center; }
.proj-list { display: flex; flex-direction: column; gap: 8px; max-height: 340px; overflow: auto; padding-right: 4px; }
.proj { display: grid; grid-template-columns: 18px 1fr; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; transition: border-color .12s; }
.proj:hover { border-color: #cfccc4; }
.proj.on { border-color: var(--ink); background: var(--surface-2); }
.proj input { margin: 3px 0 0; accent-color: #111; }
.proj b { font-size: 13.5px; }
.proj p { margin: 3px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.fit { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--green); margin-left: 6px; }
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; }
.callout.warn { background: var(--amber-soft); border-color: #f2dcb4; color: #6b4300; }
.letter-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.pack { display: flex; flex-direction: column; }
.pack-row { display: grid; grid-template-columns: 190px 1fr auto; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line-2); align-items: start; }
.pack-row:last-child { border-bottom: 0; }
.pack-row .q { font-size: 12.5px; color: var(--muted); font-weight: 500; padding-top: 2px; }
.pack-row .a { font-size: 13.5px; white-space: pre-wrap; }
.ed-foot { position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 20px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); }

/* ---------- tracker ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 20px; }
.stat { padding: 16px 18px; }
.stat .v { font-family: var(--serif); font-size: 38px; line-height: 1; letter-spacing: -.01em; }
.stat .l { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table th { text-align: left; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); position: sticky; top: 64px; z-index: 2; }
.table th:first-child { border-top-left-radius: var(--radius); }
.table th:last-child { border-top-right-radius: var(--radius); }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { cursor: pointer; transition: background .1s; }
.table tbody tr:hover { background: var(--surface-2); }
.table .co { display: flex; align-items: center; gap: 11px; }
.table .co .mono { width: 32px; height: 32px; font-size: 12px; border-radius: 8px; }
.table .co b { display: block; font-size: 13.5px; }
.table .co span { color: var(--muted); font-size: 12.5px; }
.filters-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.filters-chips button { border: 1px solid var(--line); background: var(--surface); height: 30px; padding: 0 12px; border-radius: 20px; cursor: pointer; font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.filters-chips button.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- drawer & modal ---------- */
.drawer { position: fixed; inset: 0; z-index: 50; background: rgba(17, 17, 17, .28); animation: fade .15s; }
.drawer .panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(640px, 100%); background: var(--bg); box-shadow: var(--shadow-lg); overflow: auto; animation: slide .2s ease; }
.drawer .panel-head { position: sticky; top: 0; z-index: 2; background: rgba(245, 244, 240, .94); backdrop-filter: blur(10px); padding: 20px 26px; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: center; }
.drawer .panel-body { padding: 22px 26px 60px; display: flex; flex-direction: column; gap: 14px; }
.drawer.still, .drawer.still .panel { animation: none; }
@keyframes slide { from { transform: translateX(30px); opacity: .4; } }
@keyframes fade { from { opacity: 0; } }
.sent-letter { white-space: pre-wrap; font-size: 13.5px; line-height: 1.7; background: #fffefc; border: 1px solid var(--line); border-radius: 11px; padding: 18px 20px; max-height: 420px; overflow: auto; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; white-space: pre-wrap; word-break: break-word; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 22px; font-size: 13px; }
.timeline li::before { content: ''; position: absolute; left: 4px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.timeline li::after { content: ''; position: absolute; left: 7.5px; top: 16px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline .d { color: var(--muted); font-size: 12px; }
.lock { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }

.modal { position: fixed; inset: 0; z-index: 60; background: rgba(17, 17, 17, .32); display: grid; place-items: center; padding: 20px; animation: fade .15s; }
.modal .box { width: min(620px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); animation: pop .18s ease; }
.modal .box-head { padding: 22px 24px 0; }
.modal .box-head h3 { margin: 0; font-size: 19px; letter-spacing: -.01em; }
.modal .box-head p { margin: 6px 0 0; color: var(--muted); }
.modal .box-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.modal .box-foot { padding: 14px 24px 20px; display: flex; justify-content: flex-end; gap: 8px; }
@keyframes pop { from { transform: scale(.97); opacity: 0; } }

.toast { position: fixed; left: 50%; top: 76px; transform: translateX(-50%); z-index: 80; background: #111; color: #fff; padding: 11px 18px; border-radius: 11px; font-weight: 500; box-shadow: var(--shadow-lg); animation: drop .2s ease; max-width: 90vw; }
@keyframes drop { from { transform: translate(-50%, -8px); opacity: 0; } }
.toast.err { background: var(--red); }

/* ---------- profile ---------- */
.profile { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: start; }
.pnav { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 2px; }
.pnav a { padding: 7px 12px; border-radius: 8px; text-decoration: none; color: var(--muted); font-weight: 500; }
.pnav a:hover { background: rgba(0, 0, 0, .04); color: var(--ink); }
.psections { display: flex; flex-direction: column; gap: 16px; }
.psec { scroll-margin-top: 90px; }
.psec h2 { margin: 0 0 4px; font-size: 17px; letter-spacing: -.01em; }
.psec > .card-pad > p.lead { margin: 0 0 18px; color: var(--muted); }
.vars { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.vars code { font-size: 11.5px; background: var(--line-2); padding: 2px 7px; border-radius: 6px; cursor: pointer; }
.vars code:hover { background: #e2dfd8; }
.tags-input { display: flex; flex-wrap: wrap; gap: 6px; padding: 7px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); min-height: 42px; }
.tags-input .chip { background: var(--line-2); padding-right: 4px; }
.tags-input .chip button { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 0 4px; font-size: 14px; line-height: 1; }
.tags-input input { border: 0; outline: none; flex: 1; min-width: 160px; padding: 2px 6px; background: none; }
.list-rows { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.list-rows > div { display: grid; grid-template-columns: 1fr 120px 130px 96px 60px 34px; gap: 10px; align-items: center; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.list-rows > div:last-child { border-bottom: 0; }
.list-rows .input, .list-rows .select { height: 32px; font-size: 13px; }

@media (max-width: 960px) {
  .top-inner { gap: 14px; padding: 0 14px; }
  .top-right .when { display: none; }
  .apply, .profile { grid-template-columns: 1fr; }
  .queue, .pnav { position: static; max-height: none; }
  .pnav { flex-direction: row; overflow: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .li-bar { grid-template-columns: 1fr; }
  .report ul { columns: 1; }
}
@media (max-width: 640px) {
  .top-inner { gap: 10px; }
  .brand { font-size: 22px; }
  .tabs { padding: 2px; }
  .tab { padding: 6px 7px; font-size: 13px; gap: 4px; }
  .tab .n { display: none; }
  .top-right .lbl { display: none; }
  .top-right .btn { width: 34px; padding: 0; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .ed-head { flex-wrap: wrap; padding: 18px; gap: 12px; }
  .ed-head > .grow { flex: 1 1 calc(100% - 60px); }
  .ed-head h2 { font-size: 19px; }
  .ed-foot { flex-wrap: wrap; position: static; }
  .ed-foot .small { display: none; }
  .filters .select { flex: 1; }
  .selbar { width: calc(100% - 28px); justify-content: space-between; }
  .view { padding: 18px 14px 120px; }
  .page-head h1 { font-size: 34px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .job { grid-template-columns: 22px 1fr; }
  .job .mono, .job .match { display: none; }
  .job .actions { grid-column: 2; }
  .pack-row { grid-template-columns: 1fr auto; }
  .pack-row .q { grid-column: 1 / -1; }
  .table .hide-sm { display: none; }
  .list-rows > div { grid-template-columns: 1fr 1fr 34px; }
}

