:root {
  font-family: "Segoe UI", Inter, system-ui, sans-serif;
  color: #20302f;
  background: #f1f2ed;
  font-synthesis: none;
  --ink: #172b2a;
  --muted: #6f7b77;
  --line: #dde1da;
  --paper: #fffefa;
  --green: #16695e;
  --mint: #dff1e9;
  --orange: #df7b40;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #f1f2ed; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 244px 1fr; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 244px; padding: 28px 20px 22px; background: var(--ink); color: white; display: flex; flex-direction: column; z-index: 5; }
.brand { display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; color: white; text-decoration: none; padding: 0 8px; background: transparent; border: 0; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px 4px 12px 4px; background: #e7b86d; color: var(--ink); font: 800 22px "Segoe UI"; }
.brand strong { display: block; font: 800 18px "Segoe UI"; letter-spacing: .06em; }
.brand small { display: block; color: #aebbb6; font-size: 11px; }
nav { margin-top: 46px; display: grid; gap: 7px; }
nav button { justify-content: flex-start; gap: 12px; padding: 12px 14px; color: #b9c5c0; background: transparent; border-radius: 10px; font-weight: 650; font-size: 14px; }
nav button:hover, nav button.active { background: #25413e; color: white; }
.nav-icon { width: 20px; text-align: center; color: #e7b86d; font-size: 18px; }
.sidebar-summary { margin-top: auto; border: 1px solid #34504d; border-radius: 12px; padding: 15px; }
.eyebrow { display: block; color: #91a39c; font-size: 10px; font-weight: 800; letter-spacing: .15em; margin-bottom: 10px; }
.sidebar-summary div { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.sidebar-summary strong { font-size: 19px; color: #f4dfba; }
.sidebar-summary span { font-size: 12px; color: #bdc8c4; }
.local-badge { margin: 18px 5px 0; font-size: 10px; color: #8fa09a; }
.local-badge i, .pulse { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #67ba83; margin-right: 7px; }
.main { grid-column: 2; min-width: 0; }
.topbar { min-height: 66px; padding: 12px 34px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #dfe2dc; color: #65716d; font-size: 12px; background: rgba(248,248,244,.9); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 3; }
.public-chip { background: #fff1df; color: #8b511d; border: 1px solid #f1d5b4; border-radius: 999px; padding: 5px 10px; font-weight: 750; }
.content { max-width: 1280px; margin: 0 auto; padding: 34px; }
h1, h2, h3 { color: var(--ink); margin: 0; }
h1 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.035em; }
h2 { font-size: 20px; }
h3 { font-size: 15px; }
.lead { color: var(--muted); margin: 8px 0 0; line-height: 1.55; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 26px rgba(28,47,44,.045); }
.button, button { border: 0; border-radius: 9px; padding: 10px 15px; cursor: pointer; text-decoration: none; font-weight: 750; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.button.primary, button.primary { background: var(--green); color: white; }
.button.secondary, button.secondary { background: #edf2ee; color: var(--ink); }
.button.ghost, button.ghost { background: transparent; color: var(--green); border: 1px solid #cbd7d1; }
.button.warn, button.warn { background: #fff0e7; color: #a74b20; }
button:disabled { opacity: .45; cursor: not-allowed; }
.pill { display: inline-flex; align-items: center; border-radius: 99px; padding: 5px 9px; font-size: 10px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; background: #edf0ec; color: #59645f; }
.pill.green { background: var(--mint); color: #176858; }
.pill.orange { background: #ffeadb; color: #a44f22; }
.pill.blue { background: #e2eef5; color: #356680; }
.pill.red { background: #f6dfdc; color: #963e37; }
.notice { padding: 12px 15px; border-radius: 10px; background: var(--mint); color: #175c51; font-size: 13px; margin-bottom: 18px; border: 1px solid #c7e5d9; }
.notice.info { background: #eaf2f8; color: #315c74; border-color: #ccdde9; }
.notice.error { background: #fae8e5; color: #8d3028; border-color: #f0cfc9; }
input, select, textarea { width: 100%; border: 1px solid #d8ddd6; background: #fff; color: var(--ink); border-radius: 9px; padding: 10px 12px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: #4b9187; box-shadow: 0 0 0 3px rgba(56,132,121,.12); }
label { display: grid; gap: 6px; color: #52615d; font-size: 12px; font-weight: 750; }
.empty { padding: 70px 30px; text-align: center; }
.empty .big { font-size: 40px; margin-bottom: 12px; }
.empty p { color: var(--muted); max-width: 520px; margin: 10px auto 22px; }
.work-grid { display: grid; grid-template-columns: minmax(250px,.78fr) minmax(380px,1.35fr); gap: 18px; align-items: start; }
.profile-card, .composer, .history, .panel { padding: 24px; }
.profile-top { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 22px; }
.avatar { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 17px 6px 17px 6px; background: #e5b66f; display: grid; place-items: center; color: var(--ink); font-weight: 800; }
.profile-top h2 { margin-top: 8px; }
.profile-top p { color: var(--muted); margin: 4px 0; font-size: 13px; }
dl { border-top: 1px solid #e7e9e5; margin: 0 0 18px; }
dl div { display: grid; grid-template-columns: 82px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid #eceeea; font-size: 12px; }
dt { color: #85908c; } dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.full { width: 100%; }
.composer-head { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin-bottom: 18px; }
textarea { resize: vertical; min-height: 170px; line-height: 1.6; }
.actions, .secondary-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.secondary-actions { padding-top: 14px; border-top: 1px solid #e8eae6; justify-content: space-between; }
.history { grid-column: 1 / -1; }
.history-list, .import-log { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.history-list li, .import-log li { background: #f6f6f1; border-radius: 9px; padding: 11px 12px; font-size: 12px; }
.filters { padding: 15px; display: grid; grid-template-columns: 2fr 1fr auto; gap: 12px; align-items: end; margin-bottom: 18px; }
.list-filters { grid-template-columns:minmax(190px,2fr) repeat(5,minmax(125px,1fr)) auto; }
.list-filters label { min-width:0; }
.list-filters input, .list-filters select { width:100%; }
.table-card { overflow: hidden; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { color: #7a8581; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
td { padding: 14px; border-bottom: 1px solid #ebede9; font-size: 13px; vertical-align: middle; }
td strong, td small, td span { display: block; }
td small { color: #8b9490; font-size: 10px; margin-top: 4px; max-width: 310px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-action { color: #17695f; font-size: 12px; font-weight: 750; white-space: nowrap; background: none; padding: 2px; }
.row-action.search { color: #0a66c2; display: block; margin-bottom: 4px; }
.editor { padding: 20px; margin-bottom: 18px; }
.editor form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.editor .wide { grid-column: 1 / -1; }
.sync-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.sync-grid .panel { display: flex; flex-direction: column; gap: 12px; }
.drop { border: 1px dashed #b9c9c1; background: #f7faf7; padding: 18px; border-radius: 12px; }
.drop input { margin-top: 9px; background: white; }
.preview { margin-top: 18px; padding: 20px; }
.preview pre { background: #182b2a; color: #dce9e4; padding: 14px; border-radius: 10px; overflow: auto; max-height: 250px; font-size: 11px; }
.privacy { display: flex; gap: 12px; align-items: flex-start; }
.privacy b { color: #176858; font-size: 20px; }
.muted { color: var(--muted); }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 20; background: #173936; color: white; border-radius: 10px; padding: 12px 16px; box-shadow: 0 12px 32px rgba(0,0,0,.2); font-size: 13px; }
.simple-head { max-width: 800px; margin-bottom: 24px; }
.progress-wrap { max-width: 900px; margin-bottom: 16px; }
.progress-wrap > div:first-child { display:flex; justify-content:space-between; font-size:12px; color:var(--muted); margin-bottom:7px; }
.progress { height:8px; border-radius:99px; overflow:hidden; background:#dfe5df; }
.progress i { display:block; height:100%; background:var(--green); border-radius:inherit; transition:width .25s ease; }
.focus-card { max-width:900px; padding:30px; }
.focus-person { display:flex; gap:18px; align-items:center; padding-bottom:24px; border-bottom:1px solid var(--line); }
.avatar.large { width:68px; height:68px; flex-basis:68px; font-size:20px; }
.focus-person h2 { font-size:26px; margin:7px 0 3px; }
.focus-person p { margin:0 0 5px; color:var(--muted); }
.one-task { display:grid; grid-template-columns:38px 1fr; gap:14px; padding:22px 0; border-bottom:1px solid #e9ece7; }
.one-task:last-of-type { border-bottom:0; }
.one-task h3 { font-size:18px; margin-bottom:5px; }
.one-task p { color:var(--muted); line-height:1.55; margin:0 0 13px; }
.step-number { width:32px; height:32px; display:grid; place-items:center; border-radius:50%; background:#e9f2ee; color:var(--green); font-weight:800; }
.profile-form { display:grid; grid-template-columns:1fr auto; gap:9px; }
.linkedin { background:#0a66c2; color:white; border:0; }
.linkedin:hover { background:#07569f; }
.search-alternative { display:inline-block; margin-top:10px; color:#315c74; }
.active-step textarea { margin:13px 0 0; min-height:120px; }
.primary-row { display:flex; gap:10px; justify-content:flex-end; margin-top:10px; }
.big-action { font-size:15px; padding:12px 20px; }
.focus-secondary { display:flex; justify-content:space-between; gap:10px; margin-top:18px; }
.tools { margin-top:18px; padding:18px 22px; }
.tools summary { cursor:pointer; font-weight:800; }
.tools > div { display:flex; flex-wrap:wrap; align-items:end; gap:10px; margin-top:15px; }
.tools label { max-width:260px; }
.report-cards { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:18px; }
.metric { padding:20px; display:grid; gap:4px; }
.metric span { color:var(--muted); font-size:12px; font-weight:750; }
.metric strong { font-size:32px; color:var(--ink); letter-spacing:-.04em; }
.metric small { color:#89938f; }
.metric.attention { background:#fff8ec; border-color:#ecd9b8; }
.report-grid { display:grid; grid-template-columns:1.15fr .85fr; gap:18px; margin-bottom:18px; }
.report-panel { padding:22px; }
.panel-title { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; }
.panel-title .eyebrow { margin-bottom:5px; }
.count-badge { min-width:30px; height:30px; padding:0 9px; display:grid; place-items:center; border-radius:99px; background:#e7f0eb; color:var(--green); font-weight:800; }
.action-list { display:grid; gap:9px; }
.action-list article { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:13px; border:1px solid #e6e9e4; border-radius:11px; background:#fbfbf7; }
.action-list article > div { display:grid; gap:4px; }
.action-list strong { font-size:13px; }
.action-list small { color:var(--muted); }
.action-list .pill { width:max-content; margin-bottom:3px; }
.waiting-age { white-space:nowrap; color:#8a5a2b; font-size:12px; font-weight:750; }
.report-empty { padding:24px; text-align:center; color:var(--muted); background:#f7f8f4; border-radius:11px; }
.pipeline-list { display:grid; gap:8px; }
.pipeline-list button { display:flex; justify-content:space-between; align-items:center; width:100%; padding:12px 14px; border:1px solid #e6e9e4; border-radius:10px; background:#fbfbf7; color:var(--ink); text-align:left; }
.pipeline-list button:hover { border-color:#9db8ad; background:#f3f8f5; }
.pipeline-list strong { min-width:30px; height:30px; display:grid; place-items:center; border-radius:99px; background:#e7f0eb; color:var(--green); }
.daily { margin-bottom:20px; }
.daily td:not(:first-child) { font-weight:750; color:#46605b; }
.today-goal { display:flex; justify-content:space-between; align-items:center; gap:24px; padding:24px; margin-bottom:18px; background:linear-gradient(135deg,#edf7f1,#fffdf5); }
.today-goal h2 { margin:5px 0; font-size:24px; }
.today-goal p { margin:0; color:var(--muted); max-width:620px; }
.goal-ring { width:92px; height:92px; flex:0 0 92px; display:grid; place-content:center; text-align:center; border-radius:50%; background:#17695f; color:white; box-shadow:inset 0 0 0 8px #dcece2; }
.goal-ring strong { font-size:22px; }
.goal-ring small { font-size:10px; opacity:.84; }
.muted-pill { background:#eef0ef; color:#68746f; }
.today-list article { border-left:4px solid #5f8f7e; }
.today-list article:has(.orange) { border-left-color:#c78733; }
.review-list { display:grid; gap:10px; }
.review-list article { padding:16px; border:1px solid #e6e9e4; border-radius:11px; background:#fbfbf7; }
.review-list article > div:first-child { display:grid; gap:4px; }
.review-list small { color:var(--muted); }
.review-list p { color:var(--muted); font-size:13px; line-height:1.45; margin:10px 0; }
.choice-grid { display:flex; flex-wrap:wrap; gap:8px; }
.conflict-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:12px; }
.conflict-grid > div { display:grid; gap:5px; padding:13px; border-radius:9px; background:#f3f6f3; }
.conflict-grid span { color:#78847f; font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.05em; }
.conflict-grid button { margin-top:5px; }
.page-actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.reason-list { display:flex; flex-wrap:wrap; gap:9px; }
.reason-list span { background:#f4f5f2; border-radius:999px; padding:8px 11px; font-size:12px; color:#53615d; }
.reason-list strong { color:var(--ink); margin-left:4px; }
.restore-preview { margin-top:13px; padding:11px 13px; border-radius:9px; background:#edf6f0; color:#396454; font-size:12px; }
.backup-status { margin:13px 0 0; font-size:12px; }
@media (max-width: 1000px) { .work-grid, .sync-grid { grid-template-columns: 1fr; } .history { grid-column: auto; } }
@media (max-width: 1280px) { .list-filters { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width: 1100px) { .report-cards { grid-template-columns:repeat(2,minmax(0,1fr)); } .report-grid { grid-template-columns:1fr; } }
@media (max-width: 920px) {
  .shell { display: block; padding-bottom: 66px; }
  .sidebar { width: 100%; height: 64px; top: auto; bottom: 0; padding: 7px 10px; flex-direction: row; align-items: center; }
  .brand, .sidebar-summary, .local-badge { display: none; }
  nav { margin: 0; display: flex; width: 100%; justify-content: space-around; }
  nav button { flex: 1; flex-direction: column; gap: 1px; justify-content: center; padding: 5px; font-size: 10px; }
  .nav-icon { font-size: 17px; }
  .main { min-width: 0; }
  .topbar { padding: 10px 16px; min-height: 54px; }
  .topbar > div:first-child { max-width: 205px; }
  .topbar .date { display: none; }
  .content { padding: 24px 16px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .filters, .editor form { grid-template-columns: 1fr; }
  .editor .wide { grid-column: auto; }
  .focus-card { padding:20px; }
  .profile-form { grid-template-columns:1fr; }
  .primary-row { flex-direction:column; }
  .primary-row button { width:100%; }
  .focus-person { align-items:flex-start; }
  .report-cards { grid-template-columns:1fr 1fr; gap:10px; }
  .metric { padding:15px; }
  .metric strong { font-size:26px; }
  .report-panel { padding:16px; }
  .action-list article { align-items:flex-start; flex-direction:column; }
  .action-list article button { width:100%; }
  .conflict-grid { grid-template-columns:1fr; }
  .today-goal { align-items:flex-start; }
  .page-actions { width:100%; }
  .page-actions button { flex:1; }
}

/* Compact working layout: keep the next LinkedIn action visible without scrolling. */
.topbar { min-height:54px; padding:8px 26px; gap:14px; }
.content { max-width:1180px; padding:20px 26px 28px; }
h1 { font-size:clamp(24px,2.5vw,32px); }
.simple-head { max-width:760px; margin-bottom:16px; }
.progress-wrap { max-width:760px; margin-bottom:12px; }
.focus-card { max-width:760px; padding:18px 22px; }
.focus-person { gap:12px; padding-bottom:14px; }
.avatar.large { width:46px; height:46px; flex-basis:46px; font-size:15px; }
.focus-person h2 { font-size:22px; margin:4px 0 2px; }
.one-task { grid-template-columns:32px 1fr; gap:12px; padding:14px 0; }
.one-task h3 { font-size:16px; margin-bottom:4px; }
.one-task p { line-height:1.45; margin-bottom:9px; }
.step-number { width:28px; height:28px; }
.report-cards { gap:10px; margin-bottom:14px; }
.metric { padding:14px; }
.report-panel { padding:16px; }
.report-empty { padding:14px; }
.today-goal { gap:18px; padding:16px; margin-bottom:14px; }
.today-goal h2 { margin:4px 0; font-size:21px; }
.goal-ring { width:72px; height:72px; flex-basis:72px; box-shadow:inset 0 0 0 6px #dcece2; }

/* The first two manual actions should fit in one standard laptop viewport. */
.simple-head .eyebrow { margin-bottom:5px; }
.simple-head h1 { line-height:1.08; }
.simple-head .lead { margin:4px 0 0; }
.focus-person > div:last-child { display:flex; flex-wrap:wrap; align-items:center; column-gap:8px; row-gap:1px; }
.focus-person .pill { margin:0; }
.focus-person h2 { line-height:1.08; }
.focus-person p, .focus-person strong { flex-basis:auto; }
.focus-person p::after { content:' ·'; }
.focus-card .commercial-card + .one-task p { display:none; }
.focus-card .linkedin.full { width:auto; margin-right:10px; }
.focus-card .search-alternative { display:inline-block; vertical-align:middle; }
.focus-card .one-task { padding-top:10px; padding-bottom:10px; }
.one-task .linkedin { padding:9px 12px; }
.one-task .secondary-actions { margin-top:8px; }

@media (max-width:1050px) {
  .settings-layout { grid-template-columns:1fr; }
  .settings-wide { grid-column:auto; }
  .settings-panel { padding:18px; }
  .table-card table { table-layout:fixed; }
  .table-card th:nth-child(3), .table-card td:nth-child(3) { display:none; }
  .table-card th:last-child, .table-card td:last-child { width:128px; }
  .table-card td { padding:10px 8px; font-size:12px; }
  .table-card .row-action { font-size:11px; padding:5px 6px; }
}

@media (min-width:701px) {
  .profile-tools small { display:none; }
}

@media (max-width:700px) {
  .focus-card .linkedin.full { width:100%; margin-right:0; }
}
