:root {
  --bg: #f6f7fb; --panel: #ffffff; --ink: #18181b; --muted: #6b7280; --line: #e5e7eb;
  --brand: #4f46e5; --brand-ink: #ffffff; --brand-soft: #eef2ff;
  --side: #111827; --side-ink: #d1d5db; --side-active: #1f2937;
  --ok: #059669; --warn: #d97706; --bad: #dc2626;
  --radius: 10px; --shadow: 0 1px 2px rgba(0,0,0,.05), 0 1px 8px rgba(0,0,0,.04);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0; }
h2 { font-size: 16px; margin: 0 0 12px; }
h3 { font-size: 14px; margin: 0 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
button, .btn { font: inherit; border: 1px solid var(--line); background: var(--panel); color: var(--ink); padding: 7px 12px; border-radius: 8px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
button:hover, .btn:hover { border-color: #c7cad1; text-decoration: none; }
button.primary, .btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
button.primary:hover { filter: brightness(1.08); }
button.small { padding: 3px 8px; font-size: 12px; }
button.ghost { border-color: transparent; background: transparent; }
button.danger { color: var(--bad); }
input, select, textarea { font: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; width: 100%; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
textarea { resize: vertical; min-height: 80px; }
label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin: 10px 0 4px; }

/* layout */
.shell { display: grid; grid-template-columns: 220px 1fr; height: 100vh; }
.main-wrap { display: flex; flex-direction: column; min-width: 0; height: 100vh; }
.main-wrap .main { flex: 1; }
.side { background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; padding: 14px 10px; overflow-y: auto; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; font-size: 16px; padding: 4px 8px 16px; }
.logo img { width: 30px; height: 30px; border-radius: 8px; background: #fff; padding: 2px; object-fit: contain; flex: none; }
.login .logo img { width: 40px; height: 40px; border: 1px solid var(--line); }
.nav a { display: flex; align-items: center; gap: 10px; color: var(--side-ink); padding: 8px 10px; border-radius: 8px; margin-bottom: 2px; }
.nav a:hover { background: var(--side-active); text-decoration: none; color: #fff; }
.nav a.active { background: var(--side-active); color: #fff; font-weight: 600; }
.nav .ico { width: 18px; text-align: center; opacity: .9; }
.nav .badge { margin-left: auto; }
.side .me { margin-top: auto; padding: 10px; border-top: 1px solid #374151; font-size: 13px; }
.side .me button { margin-top: 6px; background: transparent; color: var(--side-ink); border-color: #374151; }
.main { overflow-y: auto; min-width: 0; }
.page { padding: 24px 28px; max-width: 1400px; }
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head .spacer { flex: 1; }
.sub { color: var(--muted); font-size: 13px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.g2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.g-side { grid-template-columns: 340px minmax(0, 1fr); align-items: start; }
.stat .n { font-size: 28px; font-weight: 700; }
.stat .l { color: var(--muted); font-size: 13px; }

/* tables */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); background: #fafafa; }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr.click { cursor: pointer; }
tr.click:hover td { background: #fafaff; }
.table-card { padding: 0; overflow-x: auto; }
.tag { display: inline-block; background: var(--brand-soft); color: var(--brand); border-radius: 999px; padding: 1px 8px; font-size: 12px; margin: 1px 2px 1px 0; }
.pill { display: inline-block; white-space: nowrap; border-radius: 999px; padding: 1px 8px; font-size: 12px; background: #f3f4f6; color: #374151; }
.pill.Open, .pill.active, .pill.Client { background: #d1fae5; color: #065f46; }
.pill.paused, .pill.Prospect { background: #fef3c7; color: #92400e; }
.pill.stopped, .pill.Closed { background: #fee2e2; color: #991b1b; }
.badge { background: var(--bad); color: #fff; border-radius: 999px; font-size: 11px; padding: 0 6px; min-width: 18px; text-align: center; font-weight: 700; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: inline-grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.avatar.lg { width: 56px; height: 56px; font-size: 20px; }
.search { max-width: 340px; }
.empty { color: var(--muted); text-align: center; padding: 30px; }
.kv { display: grid; grid-template-columns: 100px 1fr; gap: 6px 10px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.timeline .k { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #f3f4f6; flex: none; font-size: 14px; }
.timeline .body { white-space: pre-wrap; }
.timeline .meta { color: var(--muted); font-size: 12px; }

/* kanban */
.board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; align-items: flex-start; }
.col { background: #eef0f5; border-radius: var(--radius); width: 240px; flex: none; display: flex; flex-direction: column; max-height: calc(100vh - 210px); }
.col-head { padding: 10px 12px; font-weight: 600; display: flex; justify-content: space-between; }
.col-body { padding: 0 8px 8px; overflow-y: auto; min-height: 60px; flex: 1; }
.col.over { outline: 2px dashed var(--brand); }
.kcard { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin-bottom: 8px; cursor: grab; box-shadow: var(--shadow); }
.kcard:active { cursor: grabbing; }
.kcard.dragging { opacity: .4; }
.kcard .n { font-weight: 600; }
.kcard .t { color: var(--muted); font-size: 12px; }

/* sequences */
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 10px; background: #fff; }
.step-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.step-head .num { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.step-head select, .step-head input { width: auto; }
.wait { color: var(--muted); font-size: 12px; margin: -4px 0 6px 34px; }
.vars code { background: #f3f4f6; padding: 1px 5px; border-radius: 4px; font-size: 12px; cursor: pointer; }

/* chat */
.chat { display: grid; grid-template-columns: 240px 1fr; height: 100vh; }
.chat-side { border-right: 1px solid var(--line); background: #fff; padding: 16px 10px; overflow-y: auto; }
.chat-side h3 { display: flex; justify-content: space-between; align-items: center; padding: 0 8px; margin-top: 14px; }
.chat-side a { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 6px; color: var(--ink); }
.chat-side a:hover { background: #f3f4f6; text-decoration: none; }
.chat-side a.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.chat-side a.unread { font-weight: 700; }
.chat-main { display: flex; flex-direction: column; min-width: 0; height: 100vh; }
.chat-head { padding: 14px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.msgs { flex: 1; overflow-y: auto; padding: 16px 20px; }
.msg { display: flex; gap: 10px; padding: 6px 0; }
.msg .who { font-weight: 700; }
.msg .when { color: var(--muted); font-size: 11px; margin-left: 6px; }
.msg .text { white-space: pre-wrap; word-break: break-word; }
.composer { padding: 12px 20px 18px; background: #fff; border-top: 1px solid var(--line); }
.composer textarea { min-height: 44px; height: 44px; }

/* modal + toast */
.overlay { position: fixed; inset: 0; background: rgba(17,24,39,.45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: #fff; border-radius: 14px; width: min(560px, 100%); max-height: 90vh; overflow-y: auto; padding: 20px 22px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.modal .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.picklist { max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; margin-top: 8px; }
.picklist label { display: flex; gap: 8px; align-items: center; margin: 0; padding: 8px 10px; border-bottom: 1px solid var(--line); font-weight: 400; color: var(--ink); font-size: 14px; cursor: pointer; }
.picklist input { width: auto; }
#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #111827; color: #fff; padding: 10px 16px; border-radius: 8px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 60; }
#toast.show { opacity: 1; }
#toast.err { background: var(--bad); }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #111827, #312e81); padding: 16px; }
.login .card { width: min(380px, 100%); padding: 28px; }
.login .logo { color: var(--ink); padding: 0 0 12px; }
.err { color: var(--bad); font-size: 13px; margin-top: 8px; }


/* ---------- friendlier UI ---------- */
.logo { color: #fff; text-decoration: none !important; }
.side .me { display: flex; gap: 10px; align-items: center; }
.me-name { color: #fff; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.linkish { background: none; border: none; padding: 0; color: var(--brand); cursor: pointer; font: inherit; text-decoration: underline; }
.side .linkish { color: var(--side-ink); font-size: 12px; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; gap: 10px; align-items: center; padding: 10px 24px; background: rgba(246,247,251,.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.gsearch { position: relative; flex: 1; max-width: 640px; }
.gsearch input { padding: 10px 12px 10px 38px; border-radius: 10px; font-size: 15px; background: #fff; }
.gs-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); opacity: .6; }
.gs-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.15); max-height: 70vh; overflow-y: auto; padding: 6px; }
.gs-results a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.gs-results a:hover, .gs-results a.sel { background: var(--brand-soft); }
.gs-results small { display: block; color: var(--muted); }
.gs-sec { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 10px 4px; }
.gs-empty { padding: 16px; color: var(--muted); text-align: center; }
.newmenu { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.15); padding: 6px; min-width: 220px; z-index: 30; }
.menu button { display: flex; width: 100%; border: none; background: none; padding: 10px 12px; border-radius: 8px; text-align: left; }
.menu button:hover { background: var(--brand-soft); }
.iconbtn { width: 38px; height: 38px; border-radius: 50%; justify-content: center; font-weight: 700; padding: 0; }
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.quick button { flex-direction: column; justify-content: center; padding: 14px 10px; border-radius: 12px; font-weight: 600; gap: 4px; box-shadow: var(--shadow); }
.quick button span { font-size: 24px; }
.quick button:hover { border-color: var(--brand); color: var(--brand); }
.tips { margin-top: 14px; background: #fffbeb; border-color: #fde68a; position: relative; padding-right: 40px; }
.tips .x { position: absolute; right: 8px; top: 8px; border: none; background: none; }
kbd { background: #fff; border: 1px solid #d1d5db; border-bottom-width: 2px; border-radius: 5px; padding: 0 6px; font-size: 12px; font-family: inherit; }
.stat { display: flex; gap: 14px; align-items: center; color: inherit; text-decoration: none !important; transition: transform .1s, border-color .1s; }
.stat:hover { border-color: var(--brand); transform: translateY(-1px); }
.stat-ico { font-size: 26px; width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.card-head h2, .card-head h3 { margin: 0; }
.row-link { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 6px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none !important; border-radius: 6px; }
.row-link:hover { background: #fafaff; }
.bar-row { display: flex; align-items: center; gap: 10px; margin: 7px 0; }
.bar-label { width: 130px; font-size: 13px; color: var(--muted); }
.bar { flex: 1; background: #f3f4f6; border-radius: 6px; height: 16px; overflow: hidden; }
.bar > div { background: var(--brand); height: 100%; border-radius: 6px; }
.bar-n { width: 40px; text-align: right; font-weight: 600; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.toolbar .search { max-width: 420px; flex: 1 1 260px; }
.filter { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.filter select { width: auto; padding: 7px 8px; }
.who { display: flex; gap: 10px; align-items: center; }
.owner { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.avatar.xs { width: 22px; height: 22px; font-size: 10px; }
.avatar.sm { width: 28px; height: 28px; font-size: 12px; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions a { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; text-decoration: none !important; opacity: .55; }
tr:hover .row-actions a { opacity: 1; }
.row-actions a:hover { background: var(--brand-soft); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs button { border-radius: 999px; }
.tabs button span { background: #f3f4f6; border-radius: 999px; padding: 0 7px; font-size: 12px; color: var(--muted); }
.tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tabs button.on span { background: rgba(255,255,255,.2); color: #fff; }
.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.job-card { color: inherit; text-decoration: none !important; display: flex; flex-direction: column; gap: 6px; transition: border-color .1s, transform .1s; }
.job-card:hover { border-color: var(--brand); transform: translateY(-1px); }
.jc-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.jc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--muted); }
.back { display: inline-block; margin-bottom: 10px; color: var(--muted); }
.profile { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; font-size: 13px; color: var(--muted); align-items: center; }
.actionbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
button.big, .btn.big { padding: 10px 16px; font-weight: 600; border-radius: 10px; }
button:disabled { opacity: .45; cursor: not-allowed; }
.pipe-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
select.inline { width: auto; max-width: 100%; padding: 5px 8px; font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chips button { border-radius: 999px; padding: 5px 12px; font-size: 13px; }
.chips button.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); font-weight: 600; }
.chips input[type=date] { width: auto; padding: 5px 8px; }
.note-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: center; }
.task-row { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line); }
.task-row input[type=checkbox] { width: 18px; height: 18px; margin-top: 3px; cursor: pointer; flex: none; }
.col-head .count { background: #fff; border-radius: 999px; padding: 0 8px; font-size: 12px; color: var(--muted); }
.col-empty { color: var(--muted); font-size: 12px; text-align: center; padding: 16px 6px; border: 2px dashed #d7dae3; border-radius: 8px; }
.card-stage { margin-top: 8px; padding: 4px 6px; font-size: 12px; color: var(--muted); background: #f9fafb; }
.kcard:hover { border-color: var(--brand); }
.loading { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 60px; color: var(--muted); }
.spinner { width: 18px; height: 18px; border: 3px solid var(--brand-soft); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty.big { padding: 48px 20px; font-size: 15px; }
#toast { display: flex; gap: 12px; align-items: center; pointer-events: auto; }
#toast:not(.show) { pointer-events: none; }
.toast-btn { background: transparent; color: #a5b4fc; border: none; font-weight: 700; padding: 0 4px; text-decoration: underline; }
.help p { margin: 0 0 10px; }
.fu-list { margin-bottom: 10px; }
.fu-task { display: grid; grid-template-columns: auto 1fr 150px; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.fu-done { display: flex; gap: 4px; align-items: center; margin: 0; color: var(--ink); font-weight: 500; }
.fu-done input { width: auto; }
#fu-new { margin-bottom: 8px; }
.modal h3 { margin-top: 12px; }

@media (max-width: 860px) {
  .topbar { padding: 8px 12px; }
  .newmenu .primary { padding: 9px 12px; }
  .g-side, .g2 { grid-template-columns: 1fr; }
  .page { padding: 14px 16px; }
  .profile .avatar.lg { width: 48px; height: 48px; }
  .actionbar button.big, .actionbar .btn.big { flex: 1 1 45%; justify-content: center; }
  .chat { grid-template-columns: 1fr; height: auto; }
  .chat-side { max-height: 180px; }
  .chat-main { height: 70vh; }
  th:nth-child(3), td:nth-child(3) { display: none; }
  .fu-task { grid-template-columns: auto 1fr; }
  .fu-task .fu-date { grid-column: 2; }
  .bar-label { width: 100px; }
}

/* line icons */
[class^="i-"] { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -0.17em; background: currentColor; flex: none; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.i-home { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%209%209-7%209%207v11a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2z%22/%3E%3Cpolyline%20points%3D%229%2022%209%2012%2015%2012%2015%2022%22/%3E%3C/svg%3E"); }
.i-user { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M19%2021v-2a4%204%200%200%200-4-4H9a4%204%200%200%200-4%204v2%22/%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%227%22%20r%3D%224%22/%3E%3C/svg%3E"); }
.i-users { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M16%2021v-2a4%204%200%200%200-4-4H6a4%204%200%200%200-4%204v2%22/%3E%3Ccircle%20cx%3D%229%22%20cy%3D%227%22%20r%3D%224%22/%3E%3Cpath%20d%3D%22M22%2021v-2a4%204%200%200%200-3-3.87%22/%3E%3Cpath%20d%3D%22M16%203.13a4%204%200%200%201%200%207.75%22/%3E%3C/svg%3E"); }
.i-contact { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%224%22%20width%3D%2218%22%20height%3D%2216%22%20rx%3D%222%22/%3E%3Ccircle%20cx%3D%229%22%20cy%3D%2210%22%20r%3D%222%22/%3E%3Cpath%20d%3D%22M15%208h2%22/%3E%3Cpath%20d%3D%22M15%2012h2%22/%3E%3Cpath%20d%3D%22M7%2016h4%22/%3E%3C/svg%3E"); }
.i-building { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%224%22%20y%3D%222%22%20width%3D%2216%22%20height%3D%2220%22%20rx%3D%222%22/%3E%3Cpath%20d%3D%22M9%2022v-4h6v4%22/%3E%3Cpath%20d%3D%22M8%206h.01M16%206h.01M12%206h.01M12%2010h.01M12%2014h.01M16%2010h.01M16%2014h.01M8%2010h.01M8%2014h.01%22/%3E%3C/svg%3E"); }
.i-briefcase { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%222%22%20y%3D%227%22%20width%3D%2220%22%20height%3D%2214%22%20rx%3D%222%22/%3E%3Cpath%20d%3D%22M16%2021V5a2%202%200%200%200-2-2h-4a2%202%200%200%200-2%202v16%22/%3E%3C/svg%3E"); }
.i-check { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%229%2011%2012%2014%2022%204%22/%3E%3Cpath%20d%3D%22M21%2012v7a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2V5a2%202%200%200%201%202-2h11%22/%3E%3C/svg%3E"); }
.i-message { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M21%2015a2%202%200%200%201-2%202H7l-4%204V5a2%202%200%200%201%202-2h14a2%202%200%200%201%202%202z%22/%3E%3C/svg%3E"); }
.i-send { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m22%202-7%2020-4-9-9-4Z%22/%3E%3Cpath%20d%3D%22M22%202%2011%2013%22/%3E%3C/svg%3E"); }
.i-settings { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cline%20x1%3D%224%22%20y1%3D%2221%22%20x2%3D%224%22%20y2%3D%2214%22/%3E%3Cline%20x1%3D%224%22%20y1%3D%2210%22%20x2%3D%224%22%20y2%3D%223%22/%3E%3Cline%20x1%3D%2212%22%20y1%3D%2221%22%20x2%3D%2212%22%20y2%3D%2212%22/%3E%3Cline%20x1%3D%2212%22%20y1%3D%228%22%20x2%3D%2212%22%20y2%3D%223%22/%3E%3Cline%20x1%3D%2220%22%20y1%3D%2221%22%20x2%3D%2220%22%20y2%3D%2216%22/%3E%3Cline%20x1%3D%2220%22%20y1%3D%2212%22%20x2%3D%2220%22%20y2%3D%223%22/%3E%3Cline%20x1%3D%221%22%20y1%3D%2214%22%20x2%3D%227%22%20y2%3D%2214%22/%3E%3Cline%20x1%3D%229%22%20y1%3D%228%22%20x2%3D%2215%22%20y2%3D%228%22/%3E%3Cline%20x1%3D%2217%22%20y1%3D%2216%22%20x2%3D%2223%22%20y2%3D%2216%22/%3E%3C/svg%3E"); }
.i-search { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228%22/%3E%3Cpath%20d%3D%22m21%2021-4.3-4.3%22/%3E%3C/svg%3E"); }
.i-plus { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%2012h14%22/%3E%3Cpath%20d%3D%22M12%205v14%22/%3E%3C/svg%3E"); }
.i-mail { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%222%22%20y%3D%224%22%20width%3D%2220%22%20height%3D%2216%22%20rx%3D%222%22/%3E%3Cpath%20d%3D%22m22%207-10%205L2%207%22/%3E%3C/svg%3E"); }
.i-phone { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M22%2016.92v3a2%202%200%200%201-2.18%202%2019.79%2019.79%200%200%201-8.63-3.07%2019.5%2019.5%200%200%201-6-6%2019.79%2019.79%200%200%201-3.07-8.67A2%202%200%200%201%204.11%202h3a2%202%200%200%201%202%201.72c.13.96.36%201.9.7%202.81a2%202%200%200%201-.45%202.11L8.09%209.91a16%2016%200%200%200%206%206l1.27-1.27a2%202%200%200%201%202.11-.45c.91.34%201.85.57%202.81.7A2%202%200%200%201%2022%2016.92z%22/%3E%3C/svg%3E"); }
.i-linkedin { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M16%208a6%206%200%200%201%206%206v7h-4v-7a2%202%200%200%200-4%200v7h-4v-7a6%206%200%200%201%206-6z%22/%3E%3Crect%20x%3D%222%22%20y%3D%229%22%20width%3D%224%22%20height%3D%2212%22/%3E%3Ccircle%20cx%3D%224%22%20cy%3D%224%22%20r%3D%222%22/%3E%3C/svg%3E"); }
.i-note { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14%202H6a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h12a2%202%200%200%200%202-2V8z%22/%3E%3Cpath%20d%3D%22M14%202v6h6%22/%3E%3Cpath%20d%3D%22M16%2013H8%22/%3E%3Cpath%20d%3D%22M16%2017H8%22/%3E%3C/svg%3E"); }
.i-edit { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M17%203a2.85%202.85%200%201%201%204%204L7.5%2020.5%202%2022l1.5-5.5Z%22/%3E%3C/svg%3E"); }
.i-upload { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M21%2015v4a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2v-4%22/%3E%3Cpolyline%20points%3D%2217%208%2012%203%207%208%22/%3E%3Cline%20x1%3D%2212%22%20y1%3D%223%22%20x2%3D%2212%22%20y2%3D%2215%22/%3E%3C/svg%3E"); }
.i-pin { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%2010c0%206-8%2012-8%2012s-8-6-8-12a8%208%200%200%201%2016%200Z%22/%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2210%22%20r%3D%223%22/%3E%3C/svg%3E"); }
.i-chart { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%203v18h18%22/%3E%3Cpath%20d%3D%22M18%2017V9%22/%3E%3Cpath%20d%3D%22M13%2017V5%22/%3E%3Cpath%20d%3D%22M8%2017v-3%22/%3E%3C/svg%3E"); }
.i-clock { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22/%3E%3Cpolyline%20points%3D%2212%206%2012%2012%2016%2014%22/%3E%3C/svg%3E"); }
.i-sparkle { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%203-1.9%205.8a2%202%200%200%201-1.3%201.3L3%2012l5.8%201.9a2%202%200%200%201%201.3%201.3L12%2021l1.9-5.8a2%202%200%200%201%201.3-1.3L21%2012l-5.8-1.9a2%202%200%200%201-1.3-1.3Z%22/%3E%3C/svg%3E"); }
.i-clipboard { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%228%22%20y%3D%222%22%20width%3D%228%22%20height%3D%224%22%20rx%3D%221%22/%3E%3Cpath%20d%3D%22M16%204h2a2%202%200%200%201%202%202v14a2%202%200%200%201-2%202H6a2%202%200%200%201-2-2V6a2%202%200%200%201%202-2h2%22/%3E%3C/svg%3E"); }
.i-arrow { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%2012h14%22/%3E%3Cpath%20d%3D%22m12%205%207%207-7%207%22/%3E%3C/svg%3E"); }
.i-repeat { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m17%202%204%204-4%204%22/%3E%3Cpath%20d%3D%22M3%2011v-1a4%204%200%200%201%204-4h14%22/%3E%3Cpath%20d%3D%22m7%2022-4-4%204-4%22/%3E%3Cpath%20d%3D%22M21%2013v1a4%204%200%200%201-4%204H3%22/%3E%3C/svg%3E"); }
.i-help { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22/%3E%3Cpath%20d%3D%22M9.09%209a3%203%200%200%201%205.83%201c0%202-3%203-3%203%22/%3E%3Cpath%20d%3D%22M12%2017h.01%22/%3E%3C/svg%3E"); }
.i-logout { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%2021H5a2%202%200%200%201-2-2V5a2%202%200%200%201%202-2h4%22/%3E%3Cpolyline%20points%3D%2216%2017%2021%2012%2016%207%22/%3E%3Cline%20x1%3D%2221%22%20y1%3D%2212%22%20x2%3D%229%22%20y2%3D%2212%22/%3E%3C/svg%3E"); }
.i-x { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M18%206%206%2018%22/%3E%3Cpath%20d%3D%22m6%206%2012%2012%22/%3E%3C/svg%3E"); }
.i-calendar { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%224%22%20width%3D%2218%22%20height%3D%2218%22%20rx%3D%222%22/%3E%3Cpath%20d%3D%22M16%202v4M8%202v4M3%2010h18%22/%3E%3C/svg%3E"); }
.i-layers { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%202%2010%205-10%205L2%207Z%22/%3E%3Cpath%20d%3D%22m2%2017%2010%205%2010-5%22/%3E%3Cpath%20d%3D%22m2%2012%2010%205%2010-5%22/%3E%3C/svg%3E"); }
.i-video { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m22%208-6%204%206%204V8Z%22/%3E%3Crect%20x%3D%222%22%20y%3D%226%22%20width%3D%2214%22%20height%3D%2212%22%20rx%3D%222%22/%3E%3C/svg%3E"); }

.i-file { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14%202H6a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h12a2%202%200%200%200%202-2V8z%22/%3E%3Cpolyline%20points%3D%2214%202%2014%208%2020%208%22/%3E%3Cpath%20d%3D%22M8%2017c1.3-1.8%202.3.8%203.5-.8s2%201%203.5%200%22/%3E%3C/svg%3E"); }

.i-trash { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%206h18%22/%3E%3Cpath%20d%3D%22M19%206v14a2%202%200%200%201-2%202H7a2%202%200%200%201-2-2V6%22/%3E%3Cpath%20d%3D%22M8%206V4a2%202%200%200%201%202-2h4a2%202%200%200%201%202%202v2%22/%3E%3C/svg%3E"); }
/* ================= Recruiterflow-style theme ================= */
:root {
  --bg: #f5f8fc; --panel: #ffffff; --ink: #282828; --muted: #6b7684; --line: #e6eaf0;
  --brand: #1d85f6; --brand-btn: #4aa1ff; --brand-ink: #ffffff; --brand-soft: #eaf3fe;
  --side: #f3f6fa; --side-ink: #1d85f6; --radius: 6px; --shadow: none;
}
body { font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; color: var(--ink); background: var(--bg); }
h1 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 15px; font-weight: 800; }
h3 { font-size: 12px; font-weight: 800; color: #5f6b7a; }
a { color: var(--brand); }
button, .btn { border-radius: 4px; border-color: #d9dee6; font-weight: 600; color: #33393d; }
button.primary, .btn.primary { background: var(--brand-btn); border-color: var(--brand-btn); }
button.primary:hover { background: var(--brand); border-color: var(--brand); filter: none; }
input, select, textarea { border-radius: 4px; border-color: #d9dee6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-btn); box-shadow: 0 0 0 3px rgba(74,161,255,.15); }
.card { border-radius: 6px; border-color: var(--line); box-shadow: none; }

/* icon rail */
.shell { grid-template-columns: 72px 1fr; }
.side { background: var(--side); border-right: 1px solid var(--line); padding: 10px 6px; align-items: center; }
.side .logo { padding: 2px 0 14px; justify-content: center; }
.side .logo span { display: none; }
.side .logo img { width: 34px; height: 34px; }
.nav { width: 100%; }
.nav a { flex-direction: column; gap: 3px; padding: 8px 2px; margin-bottom: 4px; border-radius: 8px; color: var(--side-ink); font-size: 10.5px; font-weight: 700; text-align: center; position: relative; }
.nav .ico { font-size: 20px; width: auto; opacity: 1; }
.nav .label { color: #5f6b7a; font-weight: 700; line-height: 1.1; }
.nav a:hover { background: #e4edf8; color: var(--brand); }
.nav a.active { background: var(--brand); color: #fff; }
.nav a.active .label { color: #fff; }
.nav .badge { position: absolute; top: 4px; right: 8px; margin: 0; }
.side .me { flex-direction: column; border-top: 1px solid var(--line); padding: 10px 0 2px; gap: 4px; width: 100%; }
.side .me .avatar { background: var(--brand-soft) !important; color: var(--brand) !important; }
.side .me-name { display: none; }
.side .linkish { color: #5f6b7a; font-size: 11px; text-decoration: none; }

/* top bar */
.topbar { background: #fff; border-bottom: 1px solid var(--line); padding: 10px 24px; backdrop-filter: none; }
.gsearch input { background: #f0f4f8; border-color: transparent; border-radius: 20px; padding: 9px 14px 9px 38px; font-size: 14px; }
.gsearch input:focus { background: #fff; }
.gs-ico { color: #8a94a3; }
.iconbtn { border-color: transparent; background: transparent; color: #8a94a3; }
.iconbtn:hover { background: #f0f4f8; }

/* pages */
.page { padding: 18px 24px; }
.page-head { margin-bottom: 14px; }
.pill#count, .page-head .pill { background: #fff; border: 1px solid #d9dee6; color: #5f6b7a; border-radius: 4px; padding: 2px 8px; font-size: 12px; }
.sub { color: var(--muted); }
.back { font-size: 13px; color: var(--muted); }

/* toolbar + filters look like Recruiterflow's filter row */
.toolbar { background: #fff; border: 1px solid var(--line); border-bottom: none; border-radius: 6px 6px 0 0; padding: 8px 12px; margin-bottom: 0; gap: 14px; }
.toolbar + .card, .toolbar + .table-card, .toolbar + #list > .card, .toolbar + #list .card.table-card { border-radius: 0 0 6px 6px; }
.toolbar .search { background: #fff; border: 1px solid #d9dee6; border-radius: 4px; padding: 6px 10px; font-size: 13px; order: 9; margin-left: auto; max-width: 320px; }
.filter { color: #29292c; font-weight: 600; font-size: 13px; }
.filter select { border: none; background: transparent; font-weight: 700; color: var(--brand); padding: 4px 2px; cursor: pointer; }
.filter select:focus { box-shadow: none; }
#list:not(.card) > .job-grid, #list > .empty { margin-top: 12px; }

/* tables */
.table-card { border-radius: 0 0 6px 6px; }
table { font-size: 13px; }
th { background: #fff; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; color: #33393d; padding: 12px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
td { padding: 10px 12px; border-bottom: 1px solid #eef1f5; border-right: 1px solid #eef1f5; vertical-align: middle; color: #33393d; }
th:last-child, td:last-child { border-right: none; }
tr.click:hover td { background: #f7faff; }
.who b { color: var(--brand); font-weight: 700; font-size: 14px; }
.avatar { background: #e8eef6; color: #4a5a6e; font-weight: 800; }
.tag { background: #f0f4f8; color: #4a5a6e; border-radius: 4px; }
.pill { background: #eef1f5; color: #33393d; border-radius: 12px; font-weight: 600; }
.pill.Open, .pill.active, .pill.Client { background: #e3f5ec; color: #18794e; }
.pill.Closed, .pill.stopped { background: #f1f3f6; color: #6b7684; }
.row-actions a { color: #8a94a3; opacity: 1; }
.row-actions a:hover { color: var(--brand); }

/* tabs = Recruiterflow segment tabs */
.tabs { gap: 0; margin-bottom: 0; background: #fff; border: 1px solid var(--line); border-bottom: none; border-radius: 6px 6px 0 0; overflow: hidden; }
.tabs button { border: none; border-right: 1px solid var(--line); border-radius: 0; background: #f5f7fa; padding: 10px 18px; color: #33393d; font-weight: 600; }
.tabs button.on { background: #fff; color: var(--ink); box-shadow: inset 0 -2px 0 var(--brand); }
.tabs button span { background: transparent; color: var(--muted); }
.tabs button.on span { background: transparent; color: var(--brand); }
.tabs + .toolbar { border-radius: 0; border-top: 1px solid var(--line); }

/* dashboard */
.quick button { box-shadow: none; flex-direction: row; justify-content: flex-start; gap: 10px; padding: 12px 14px; font-weight: 700; color: #33393d; }
.quick button span { font-size: 18px; color: var(--brand); }
.stat { box-shadow: none; }
.stat-ico { background: var(--brand-soft); color: var(--brand); font-size: 22px; border-radius: 8px; width: 42px; height: 42px; }
.stat .n { font-size: 24px; font-weight: 800; }
.tips { background: #f0f7ff; border-color: #cfe4fd; }
.bar > div { background: var(--brand-btn); }
.card-head a { font-size: 13px; font-weight: 700; }

/* profile */
.profile h1 { font-size: 24px; }
.actionbar button.big, .actionbar .btn.big { background: #fff; padding: 8px 14px; font-weight: 700; color: #33393d; }
.actionbar .big .i, .actionbar [class^="i-"] { color: var(--brand); }
.actionbar button.big:hover, .actionbar .btn.big:hover { border-color: var(--brand-btn); color: var(--brand); text-decoration: none; }
.chips button.on { background: var(--brand-soft); border-color: var(--brand-btn); color: var(--brand); }
.timeline .k { background: var(--brand-soft); color: var(--brand); font-size: 14px; }

/* job board */
.job-card { box-shadow: none; }
.job-card b { color: var(--brand); }
.board { gap: 10px; }
.col { background: #f0f3f7; border: 1px solid var(--line); border-radius: 6px; width: 250px; }
.col-head { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; font-weight: 800; color: #33393d; }
.kcard { box-shadow: none; border-radius: 6px; }
.kcard .n { color: var(--brand); font-weight: 700; }
.card-stage { border-radius: 12px; background: #eef1f5; border: none; color: #33393d; font-weight: 600; }

/* menus, toast */
.menu, .gs-results { border-radius: 8px; box-shadow: 0 10px 30px rgba(20,40,70,.14); }
.menu button { font-weight: 600; gap: 10px; align-items: center; }
.menu [class^="i-"] { color: var(--brand); }
#toast { background: #282828; border-radius: 6px; }
.modal { border-radius: 8px; }
.login { background: linear-gradient(135deg, #eaf3fe, #f5f8fc); }

@media (max-width: 860px) {
  .toolbar .search { order: 0; margin-left: 0; max-width: none; }
}

/* departments on the Jobs page */
.dept-bar { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 0 0 6px 6px; margin-bottom: 16px; }
.dept-bar button { border-radius: 16px; padding: 4px 12px; font-size: 13px; background: #f5f7fa; border-color: transparent; }
.dept-bar button span { color: var(--muted); font-weight: 700; margin-left: 2px; }
.dept-bar button.on { background: var(--brand-soft); border-color: var(--brand-btn); color: var(--brand); }
.dept-bar button.on span { color: var(--brand); }
.dept-group { margin-bottom: 22px; }
.dept-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; }
.dept-head h2 { margin: 0; font-size: 16px; }
.dept-head .linkish { margin-left: auto; font-weight: 700; text-decoration: none; }
.toolbar:has(+ .dept-bar) { border-radius: 0; }

/* home: open jobs table + progressing */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.card-head.pad { padding: 14px 16px 10px; margin: 0; }
.scroll-x { overflow-x: auto; }
.jobs-table th.sc, .jobs-table td.sc { text-align: center; width: 62px; padding-left: 4px; padding-right: 4px; white-space: nowrap; }
.jobs-table th.sc { font-size: 10.5px; }
.jobs-table td.sc { color: #b7bec8; font-weight: 600; }
.jobs-table td.sc.has { color: var(--ink); font-weight: 700; }
.jobs-table td.sc.hot { color: var(--brand); background: #f3f8ff; }
.jobs-table td:first-child { min-width: 230px; }
.seg { display: inline-flex; border: 1px solid #d9dee6; border-radius: 4px; overflow: hidden; }
.seg button { border: none; border-radius: 0; padding: 4px 12px; background: #fff; font-size: 13px; }
.seg button.on { background: var(--brand-soft); color: var(--brand); }
.prog .pill { font-size: 11.5px; }
.pill.stage-client-submission { background: #e8f1fe; color: #1d6fd6; }
.pill.stage-1st-interview, .pill.stage-2nd-interview, .pill.stage-final-interview { background: #fff4e0; color: #a35c00; }
.pill.stage-offer { background: #f1e8ff; color: #6b3fc4; }
.pill.stage-hired { background: #e3f5ec; color: #18794e; }
.page-head .btn { display: inline-flex; gap: 6px; align-items: center; }
@media (max-width: 1100px) { .home-grid { grid-template-columns: 1fr; } }

.toolbar + .dept-bar:has(+ .table-card) { border-radius: 0; margin-bottom: 0; border-bottom: none; }
.dept-bar + .table-card { border-radius: 0 0 6px 6px; }
.dept-tag { font-size: 12px; color: #4a5a6e; background: #f0f4f8; border-radius: 4px; padding: 2px 7px; white-space: nowrap; }

[hidden] { display: none !important; }
.chip-x { border-radius: 16px; padding: 4px 10px; font-size: 13px; background: var(--brand-soft); color: var(--brand); border-color: var(--brand-btn); gap: 6px; }
.dept-head h2 a { color: var(--ink); }
.dept-head h2 a:hover { color: var(--brand); }

/* home: open jobs full width */
.home-grid { grid-template-columns: 1fr !important; }
.jobs-table th.sc, .jobs-table td.sc { width: auto; min-width: 70px; }
.jobs-table td:first-child { min-width: 320px; }

/* ================= Team Chat — Slack look ================= */
.sk { display: grid; grid-template-columns: 260px minmax(0, 1fr) auto; height: calc(100vh - 58px); background: #fff; font-family: "Lato", "Nunito", -apple-system, sans-serif; }
.sk-side { background: #3f0e40; color: #cfc3cf; display: flex; flex-direction: column; min-height: 0; }
.sk-ws { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid #522653; color: #fff; font-size: 17px; }
.sk-ws-btn { background: #fff; color: #3f0e40; border: none; width: 32px; height: 32px; border-radius: 50%; justify-content: center; padding: 0; }
.sk-side-scroll { overflow-y: auto; padding: 10px 0 20px; flex: 1; }
.sk-nav { display: flex; gap: 8px; align-items: center; padding: 5px 16px; color: #cfc3cf; font-size: 15px; text-decoration: none !important; }
.sk-nav:hover { background: #350d36; color: #fff; }
.sk-nav.active { background: #1164a3; color: #fff; }
.sk-dim { color: #a68fa6; font-size: 12px; margin-left: auto; }
.sk-sec { margin-top: 14px; }
.sk-sec-h { background: none; border: none; color: #cfc3cf; font-size: 15px; padding: 4px 16px; width: 100%; justify-content: flex-start; font-weight: 600; }
.sk-sec-h:hover { color: #fff; }
.sk-ch { display: flex; align-items: center; gap: 8px; padding: 3px 16px 3px 22px; color: #cfc3cf; font-size: 15px; text-decoration: none !important; line-height: 26px; }
.sk-ch:hover { background: #350d36; }
.sk-ch.active { background: #1164a3; color: #fff; }
.sk-ch.unread { color: #fff; font-weight: 800; }
.sk-ch-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.sk-hash { opacity: .7; width: 14px; }
.sk-badge { background: #cd2553; color: #fff; border-radius: 9px; font-size: 11px; font-weight: 800; padding: 0 6px; line-height: 18px; }
.sk-add, .sk-dimlink { color: #a68fa6; }
.sk-plus { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; background: #522653; font-size: 13px; }
.sk-side .sk-av { border-radius: 4px; }
.sk-main-col { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 1px solid #ddd; }
.sk-head { display: flex; align-items: center; gap: 10px; padding: 10px 20px; border-bottom: 1px solid #e2e2e2; min-height: 58px; }
.sk-title { font-size: 18px; font-weight: 900; color: #1d1c1d; }
.sk-topic { font-size: 13px; color: #616061; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }
.sk-members { display: inline-flex; align-items: center; gap: 0; border: 1px solid #ddd; border-radius: 6px; padding: 3px 8px 3px 4px; background: #fff; }
.sk-members .sk-av { margin-right: -6px; border: 2px solid #fff; border-radius: 4px; }
.sk-members span { margin-left: 12px; font-weight: 700; color: #1d1c1d; }
.sk-scroll { flex: 1; overflow-y: auto; padding: 8px 0 12px; min-height: 0; }
.sk-day { position: sticky; top: 0; z-index: 2; text-align: center; margin: 14px 0 4px; border-top: 1px solid #e2e2e2; height: 0; }
.sk-day span { position: relative; top: -13px; background: #fff; border: 1px solid #e2e2e2; border-radius: 24px; padding: 3px 14px; font-size: 13px; font-weight: 700; color: #1d1c1d; }
.sk-msg { display: flex; gap: 8px; padding: 6px 20px; position: relative; }
.sk-msg.compact { padding-top: 1px; padding-bottom: 1px; }
.sk-msg:hover { background: #f8f8f8; }
.sk-av { border-radius: 6px; object-fit: cover; flex: none; background: #e8e8e8; }
.sk-av-txt { display: inline-grid; place-items: center; background: #4a154b; color: #fff; font-weight: 800; border-radius: 6px; }
.sk-main { min-width: 0; flex: 1; }
.sk-msg.compact .sk-main { margin-left: 44px; }
.sk-hover-time { position: absolute; left: 20px; width: 36px; text-align: right; font-size: 11px; color: #616061; top: 5px; display: none; }
.sk-msg.compact:hover .sk-hover-time { display: block; }
.sk-meta { display: flex; align-items: baseline; gap: 8px; }
.sk-name { font-weight: 900; color: #1d1c1d; font-size: 15px; }
.sk-time { font-size: 12px; color: #616061; }
.sk-app { background: #e8e8e8; color: #616061; font-size: 10px; font-weight: 700; border-radius: 2px; padding: 0 3px; }
.sk-text { font-size: 15px; line-height: 1.46; color: #1d1c1d; word-wrap: break-word; }
.sk-text a { color: #1264a3; }
.sk-edited { color: #616061; font-size: 12px; }
.sk-pre { background: #f8f8f8; border: 1px solid #ddd; border-radius: 4px; padding: 8px; margin: 4px 0; font: 12px/1.5 Monaco, Menlo, monospace; white-space: pre-wrap; }
.sk-code { background: #f6f6f6; border: 1px solid #ddd; border-radius: 3px; padding: 1px 3px; color: #e01e5a; font: 12px Monaco, Menlo, monospace; }
.sk-quote { border-left: 4px solid #ddd; padding-left: 10px; margin: 2px 0; color: #454245; }
.sk-mention { background: #e8f5fa; color: #1264a3; border-radius: 3px; padding: 0 2px; }
.sk-mention.sk-hl { background: #f2c74466; color: #1d1c1d; }
.sk-files { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.sk-file { display: inline-flex; gap: 8px; align-items: center; border: 1px solid #ddd; border-radius: 8px; padding: 6px 10px; color: #1d1c1d; text-decoration: none !important; max-width: 340px; }
.sk-file:hover { background: #f8f8f8; }
.sk-file-ico { background: #1264a3; color: #fff; font-size: 10px; font-weight: 800; border-radius: 4px; padding: 6px 4px; }
.sk-reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.sk-react { border: 1px solid transparent; background: #efefef; border-radius: 24px; padding: 1px 8px; font-size: 13px; color: #1d1c1d; gap: 4px; }
.sk-react span { font-size: 11.5px; font-weight: 700; color: #616061; }
.sk-react.mine { background: #e8f5fa; border-color: #1264a3; }
.sk-react.mine span { color: #1264a3; }
.sk-react.add { background: #fff; border-color: #ddd; opacity: 0; }
.sk-msg:hover .sk-react.add { opacity: 1; }
.sk-thread-link { display: flex; align-items: center; gap: 6px; border: 1px solid transparent; background: transparent; padding: 4px 6px; margin-top: 2px; border-radius: 6px; color: #1264a3; font-size: 13px; }
.sk-thread-link:hover { background: #fff; border-color: #ddd; }
.sk-thread-link .sk-av { border-radius: 4px; }
.sk-thread-link .sub { margin-left: 4px; }
.sk-tools { position: absolute; right: 20px; top: -14px; display: none; background: #fff; border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.1); padding: 2px; z-index: 3; }
.sk-msg:hover .sk-tools { display: flex; }
.sk-tools button { border: none; background: none; padding: 4px 7px; font-size: 15px; color: #616061; }
.sk-tools button:hover { background: #f1f1f1; }
.sk-older .sk-intro, .sk-intro { padding: 30px 20px 10px; }
.sk-intro h2 { font-size: 22px; margin: 0 0 6px; }
.sk-composer-wrap { padding: 0 20px 18px; }
.sk-composer { border: 1px solid #bbbabb; border-radius: 8px; position: relative; background: #fff; }
.sk-composer:focus-within { border-color: #868686; box-shadow: 0 0 0 1px #868686; }
.sk-fmt { display: flex; gap: 2px; padding: 4px 6px; background: #f8f8f8; border-radius: 8px 8px 0 0; border-bottom: 1px solid #eee; }
.sk-fmt button, .sk-cbar button { border: none; background: none; padding: 3px 7px; color: #616061; font-size: 14px; }
.sk-fmt button:hover, .sk-cbar button:hover { background: #ececec; }
.sk-composer textarea { border: none; resize: none; min-height: 40px; max-height: 220px; padding: 10px 12px; font: 15px/1.46 "Lato", "Nunito", sans-serif; box-shadow: none !important; }
.sk-cbar { display: flex; align-items: center; gap: 2px; padding: 4px 6px; }
.sk-hint { color: #8d8d8d; font-size: 11px; margin-right: 8px; }
.sk-send { background: #007a5a !important; color: #fff !important; border-radius: 4px; padding: 5px 10px !important; }
.sk-mentions { position: absolute; bottom: calc(100% + 6px); left: 10px; background: #fff; border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.15); min-width: 280px; padding: 4px 0; z-index: 20; }
.sk-mopt { display: flex; align-items: center; gap: 8px; padding: 6px 12px; cursor: pointer; }
.sk-mopt.sel, .sk-mopt:hover { background: #1264a3; color: #fff; }
.sk-mopt.sel .sub { color: #e0e0e0; }
.sk-thread { width: 400px; display: flex; flex-direction: column; min-height: 0; background: #fff; }
.sk-tdivider { display: flex; align-items: center; gap: 8px; margin: 8px 20px; color: #616061; font-size: 13px; }
.sk-tdivider::after { content: ""; flex: 1; border-top: 1px solid #e2e2e2; }
.sk-archived { margin: 0 20px 18px; padding: 14px; background: #f8f8f8; border: 1px solid #e2e2e2; border-radius: 8px; text-align: center; color: #1d1c1d; }
.sk-browse { padding: 16px 20px; overflow-y: auto; }
.sk-browse .search { max-width: none; width: 100%; margin-bottom: 8px; }
.sk-check { display: inline-flex; gap: 6px; align-items: center; margin: 0 0 8px; color: #616061; font-weight: 600; }
.sk-check input { width: auto; }
.sk-brow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 6px; border-bottom: 1px solid #eee; }
.sk-brow a { color: #1d1c1d; text-decoration: none !important; min-width: 0; }
.sk-results .sk-result { display: block; border: 1px solid #e2e2e2; border-radius: 8px; margin-bottom: 8px; padding: 8px 0 0; color: inherit; text-decoration: none !important; }
.sk-result > .sub { padding: 0 20px; }
.sk-memlist { max-height: 60vh; overflow-y: auto; }
.sk-mem { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #eee; }
.sk-editbox { width: 100%; min-height: 60px; }
.sk-edit-actions { display: flex; gap: 6px; justify-content: flex-end; margin-top: 4px; }
.sk-picker { position: fixed; z-index: 100; width: 290px; background: #fff; border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 8px 28px rgba(0,0,0,.18); padding: 8px; }
.sk-pgrid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; max-height: 230px; overflow-y: auto; margin-top: 6px; }
.sk-pgrid button { border: none; background: none; font-size: 20px; padding: 3px; justify-content: center; }
.sk-pgrid button:hover { background: #f1f1f1; }
@media (max-width: 860px) {
  .sk { grid-template-columns: 1fr; height: auto; }
  .sk-side { max-height: 220px; }
  .sk-main-col { height: 70vh; }
  .sk-thread { position: fixed; inset: 0; width: auto; z-index: 50; }
}

/* Team Chat in the site's blue instead of Slack purple */
.sk-side { background: #1d85f6; color: #e6f1fe; }
.sk-ws { border-bottom-color: rgba(255,255,255,.18); }
.sk-ws-btn { color: #1d85f6; }
.sk-nav, .sk-sec-h, .sk-ch { color: #e6f1fe; }
.sk-nav:hover, .sk-ch:hover { background: rgba(0,0,0,.12); color: #fff; }
.sk-nav.active, .sk-ch.active { background: #0b5cc2; color: #fff; }
.sk-dim, .sk-add, .sk-dimlink { color: #cfe3fd; }
.sk-plus { background: rgba(255,255,255,.22); }
.sk-badge { background: #fff; color: #1d85f6; }
.sk-av-txt { background: #1d85f6; }
.sk-send { background: #1d85f6 !important; }
.sk-text a, .sk-thread-link, .sk-mention { color: #1d85f6; }
.sk-mention { background: #eaf3fe; }
.sk-react.mine { background: #eaf3fe; border-color: #1d85f6; }
.sk-react.mine span { color: #1d85f6; }
.sk-mopt.sel, .sk-mopt:hover { background: #1d85f6; }
.sk-file-ico { background: #1d85f6; }

/* company logos */
.co-logo { border-radius: 8px; object-fit: contain; background: #fff; border: 1px solid var(--line); flex: none; }
/* home: open jobs with names per stage */
.home-pipe th.hc { text-align: left; min-width: 150px; }
.home-pipe td.hc { vertical-align: top; padding: 8px 10px; }
.home-pipe td.hc.hot { background: #f6faff; }
.home-pipe td.empty-c { color: #c3c9d2; text-align: center; vertical-align: middle; }
.home-pipe td.hj { display: flex; gap: 10px; align-items: flex-start; min-width: 260px; max-width: 320px; }
.hc-n { font-size: 11px; font-weight: 800; color: var(--muted); margin-bottom: 4px; }
.hc-p { display: flex; justify-content: space-between; gap: 6px; align-items: baseline; padding: 2px 0; color: var(--ink); text-decoration: none !important; font-size: 13px; }
.hc-p:hover .hc-name { color: var(--brand); text-decoration: underline; }
.hc-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-own { font-size: 11px; color: var(--muted); background: #eef1f5; border-radius: 4px; padding: 0 5px; white-space: nowrap; flex: none; }
.hc-more { font-size: 12px; font-weight: 700; }

/* home: fit everything on screen (no sideways scrolling) */
.home-pipe { table-layout: fixed; width: 100%; }
.home-pipe col.hcol-job { width: 24%; }
.home-pipe th.hc { min-width: 0; padding: 10px 8px; font-size: 11px; }
.home-pipe td.hc { padding: 6px 8px; min-width: 0; }
.home-pipe td.hj { display: table-cell; min-width: 0; max-width: none; padding: 8px 10px; }
.home-pipe td.hj .co-logo { float: left; margin: 2px 8px 0 0; }
.home-pipe td.hj a b { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hj-sub { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-p { font-size: 12.5px; padding: 1px 0; min-width: 0; }
.hc-name { min-width: 0; }
.hc-own { font-size: 10px; font-weight: 800; padding: 0 4px; }
.home-grid .scroll-x { overflow-x: visible; }
@media (max-width: 1100px) { .home-pipe col.hcol-job { width: 28%; } .hc-own { display: none; } }

/* ================= Proposals & Contracts ================= */
.modal.wide { width: min(1120px, 100%); }
.pill.draft { background: #eef1f5; color: #4b5563; }
.pill.void { background: #f3f4f6; color: #9ca3af; text-decoration: line-through; }
.doc-edit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.doc-edit .preview-col { position: sticky; top: 0; max-height: calc(100vh - 120px); overflow: auto; border-radius: 6px; }
.doc-edit .preview-col .doc-paper { padding: 32px 36px; }
.doc-edit textarea.doc-src { font: 13px/1.6 ui-monospace, Menlo, monospace; min-height: 420px; }
.doc-title { font: inherit; font-size: 20px; font-weight: 800; border: 1px solid transparent; background: transparent; padding: 4px 8px; margin-left: -8px; flex: 1 1 320px; min-width: 0; }
.doc-title:hover, .doc-title:focus { border-color: var(--line); background: #fff; }
.save-state { font-size: 12px; color: var(--muted); }
.blank-warn { background: #fff4d6; border: 1px solid #f6d58f; color: #7c4a03; border-radius: 6px; padding: 8px 12px; font-size: 13px; margin-bottom: 12px; }
.price-row { display: grid; grid-template-columns: minmax(0, 1fr) 64px 110px auto auto; gap: 6px; align-items: center; margin-bottom: 6px; }
.price-row input { padding: 6px 8px; }
.price-row .opt { display: flex; gap: 4px; align-items: center; font-size: 12px; color: var(--muted); margin: 0; font-weight: 600; white-space: nowrap; }
.price-row .opt input { width: auto; }
.signer-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.signer-row:last-child { border-bottom: 0; }
.signer-row .grow { flex: 1; min-width: 0; }
.signer-row .grow b { display: block; }
.chip-btn { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); border: 1px solid transparent; margin: 0 4px 4px 0; font-weight: 700; }
.chip-btn:hover { border-color: var(--brand); }
.doc-events { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.doc-events li { padding: 7px 0 7px 18px; border-left: 2px solid var(--line); position: relative; }
.doc-events li::before { content: ""; position: absolute; left: -5px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.doc-events li.signed::before, .doc-events li.completed::before { background: #16a34a; }
.doc-events li.declined::before, .doc-events li.voided::before, .doc-events li.expired::before { background: #dc2626; }
.link-box { display: flex; gap: 6px; margin-top: 6px; }
.link-box input { font-size: 12px; color: var(--muted); }
.tpl-list .tpl { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tpl-list .tpl:last-child { border-bottom: 0; }
.tpl-edit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.tpl-edit .doc-paper { padding: 24px 28px; max-height: 60vh; overflow: auto; }
.tpl-edit textarea { font: 13px/1.6 ui-monospace, Menlo, monospace; min-height: 52vh; }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 600; color: var(--ink); font-size: 13px; }
label.check input { width: auto; }
@media (max-width: 1000px) { .doc-edit, .tpl-edit { grid-template-columns: 1fr; } .doc-edit .preview-col { position: static; max-height: none; } }
.link-box .btn, .link-box button { white-space: nowrap; flex: none; }
.doc-edit > * { min-width: 0; }
.signer-row { flex-wrap: wrap; }
@media (max-width: 1100px) { .doc-edit { grid-template-columns: 1fr; } .doc-edit .preview-col { position: static; max-height: none; } }
