:root {
  --ink: #172033;
  --muted: #6c7484;
  --line: #e5e8ee;
  --surface: #ffffff;
  --canvas: #f5f6f8;
  --indigo: #5555d9;
  --indigo-soft: #ededff;
  --green: #168967;
  --green-soft: #e6f5ef;
  --amber: #aa6d09;
  --amber-soft: #fff3d6;
  --red: #bd4b53;
  --red-soft: #fdebee;
  --shadow: 0 14px 36px rgba(23, 32, 51, 0.08);
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; font-size: 14px; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 224px minmax(650px, 1fr) 390px; }
.sidebar { position: sticky; top: 0; height: 100vh; background: #172033; color: #f7f8fa; padding: 24px 14px 16px; display: flex; flex-direction: column; z-index: 5; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 24px; border-bottom: 1px solid rgba(255,255,255,.09); }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; background: #6d63e8; color: white; border-radius: 10px; font-size: 18px; font-weight: 800; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.brand strong { display: block; font-size: 16px; letter-spacing: .02em; }
.brand small { display: block; margin-top: 3px; color: #929bad; font-size: 11px; }
nav { display: grid; gap: 6px; margin-top: 24px; }
.nav-item { width: 100%; border: 0; color: #aab1c0; background: transparent; display: flex; gap: 12px; align-items: center; text-align: left; padding: 11px 12px; border-radius: 8px; transition: .18s ease; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: rgba(109,99,232,.22); color: #fff; }
.nav-item > span:first-child { width: 20px; text-align: center; font-size: 16px; }
.sidebar-spacer { flex: 1; }
.side-note { width: calc(100% - 16px); margin: 0 8px 12px; padding: 12px; display: flex; align-items: flex-start; gap: 9px; color: #c8ced8; background: transparent; text-align: left; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; }
.side-note:hover { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
.side-note strong, .profile div { display: block; font-size: 12px; color: #f6f7f9; }
.side-note small, .profile small { display: block; margin-top: 3px; color: #8891a3; font-size: 10px; line-height: 1.4; }
.live-dot { display: inline-block; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: #49c99a; box-shadow: 0 0 0 4px rgba(73,201,154,.1); margin-top: 4px; }
.live-dot.inactive { background: #9ca3af; box-shadow: 0 0 0 4px rgba(156,163,175,.1); }
.settings-entry > div { flex: 1; }
.settings-arrow { width: auto !important; color: #727b8d; font-size: 18px; line-height: 1; }
.profile { border-top: 1px solid rgba(255,255,255,.08); border-radius: 0; padding-top: 16px; margin-top: 4px; }
.avatar { width: 30px !important; height: 30px; display: grid; place-items: center; border-radius: 8px; color: white; background: #3f485a; }

.workspace { min-width: 0; padding: 34px 30px 44px; overflow: hidden; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 26px; }
.eyebrow { margin: 0 0 7px; color: var(--indigo); font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.topbar h1 { font-size: 26px; margin: 0; line-height: 1.18; letter-spacing: -.035em; }
.subline { margin: 8px 0 0; color: var(--muted); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.date-chip { border: 1px solid var(--line); background: rgba(255,255,255,.65); padding: 9px 12px; border-radius: 8px; color: #535c6c; }
.icon-button { width: 36px; height: 36px; border: 1px solid var(--line); background: white; color: #8a93a3; border-radius: 8px; position: relative; }
.icon-button.subtle { border: 0; background: transparent; }
.notify-dot { position: absolute; right: 8px; top: 7px; width: 6px; height: 6px; border: 2px solid white; border-radius: 50%; background: #d14e57; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--surface); margin-bottom: 20px; box-shadow: 0 1px 2px rgba(23,32,51,.02); }
.metrics article { padding: 18px 19px; min-width: 0; border-right: 1px solid var(--line); }
.metrics article:last-child { border-right: 0; }
.metric-head { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.metric-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; font-weight: 800; }
.metric-icon.blue { background: var(--indigo-soft); color: var(--indigo); }
.metric-icon.amber { background: var(--amber-soft); color: var(--amber); }
.metric-icon.red { background: var(--red-soft); color: var(--red); }
.metric-icon.green { background: var(--green-soft); color: var(--green); }
.metrics article > strong { display: block; font-size: 24px; margin: 11px 0 6px; letter-spacing: -.035em; }
.metrics article > small { color: #8b93a2; }
.metrics article > small b { color: var(--green); }

.content-grid { display: grid; grid-template-columns: minmax(510px, 1fr) 268px; gap: 16px; align-items: stretch; }
.pipeline-panel, .detail-panel, .task-strip { background: var(--surface); border: 1px solid var(--line); }
.pipeline-panel { min-width: 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.section-head h2 { margin: 0; font-size: 15px; }
.section-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.segmented { display: flex; gap: 2px; padding: 3px; background: #f0f2f5; border-radius: 7px; }
.segment { border: 0; background: transparent; color: #747d8d; padding: 6px 9px; border-radius: 5px; font-size: 11px; }
.segment.active { background: white; color: var(--ink); box-shadow: 0 1px 4px rgba(23,32,51,.12); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 11px 15px; color: #8b93a2; background: #fafbfc; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
td { padding: 12px 15px; border-top: 1px solid #edf0f3; color: #4c5565; white-space: nowrap; }
tbody tr { cursor: pointer; transition: .15s ease; outline: none; }
tbody tr:hover, tbody tr:focus { background: #fafaff; }
tbody tr.selected { background: #f4f3ff; box-shadow: inset 3px 0 var(--indigo); }
.lead-cell { display: flex; align-items: center; gap: 9px; }
.lead-avatar { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; background: #eceafc; color: #5551b8; border-radius: 8px; font-weight: 800; font-size: 11px; }
.lead-avatar.large { width: 42px; height: 42px; font-size: 13px; }
.lead-cell strong { display: block; color: var(--ink); font-size: 12px; }
.lead-cell small { display: block; margin-top: 3px; color: #8a92a1; font-size: 10px; max-width: 100px; overflow: hidden; text-overflow: ellipsis; }
.stage { display: inline-flex; padding: 4px 7px; border-radius: 5px; font-size: 10px; font-weight: 700; }
.stage-new { color: #586173; background: #eef0f3; }
.stage-discovery { color: #9a6508; background: #fff1d0; }
.stage-solution { color: #4f4fb5; background: #ecebff; }
.stage-business { color: #a2445a; background: #fce8ef; }
.stage-win { color: #13795b; background: #e1f4ec; }
.stage-pause { color: #777f8b; background: #eff0f2; }
.intent { display: flex; align-items: center; gap: 7px; }
.intent strong { width: 20px; color: var(--ink); font-size: 11px; }
.intent span { display: block; width: 42px; height: 4px; background: #e9ebef; border-radius: 2px; overflow: hidden; }
.intent i { display: block; height: 100%; background: var(--indigo); }
.money { color: var(--ink); font-weight: 650; }
.contact-time { font-size: 11px; }
.contact-time.overdue { color: var(--red); }
.empty-row { text-align: center; color: var(--muted); padding: 40px; }

.detail-panel { padding: 18px; }
.detail-empty { height: 100%; display: grid; place-items: center; color: var(--muted); }
.detail-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.detail-top h3 { margin: 0; font-size: 14px; }
.detail-top p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.more-button { border: 0; background: transparent; color: #9aa1ad; }
.detail-score { padding: 17px 0; border-bottom: 1px solid var(--line); }
.detail-score > div { display: flex; align-items: baseline; justify-content: space-between; }
.detail-score span { color: var(--muted); font-size: 10px; }
.detail-score strong { font-size: 20px; }
.detail-score strong small { color: var(--muted); font-size: 9px; font-weight: 500; }
.score-bar { display: block !important; height: 5px; background: #e9ebef; margin-top: 10px; overflow: hidden; }
.score-bar i { display: block; height: 100%; background: var(--indigo); }
.detail-list { margin: 0; padding: 10px 0; }
.detail-list > div { display: flex; align-items: center; justify-content: space-between; min-height: 32px; }
.detail-list dt { color: var(--muted); font-size: 10px; }
.detail-list dd { margin: 0; font-size: 11px; font-weight: 650; }
.next-step { background: #f7f7fb; border-left: 3px solid var(--indigo); padding: 12px; margin: 4px 0 13px; }
.next-step span, .next-step small { display: block; color: var(--muted); font-size: 9px; }
.next-step strong { display: block; margin: 6px 0; font-size: 11px; line-height: 1.45; }
.next-step small { line-height: 1.5; }
.copilot-action { width: 100%; border: 1px solid #cac8f3; background: #f6f5ff; color: #4f4fb5; padding: 9px 10px; border-radius: 7px; font-size: 11px; font-weight: 700; }
.copilot-action span { margin-right: 5px; }

.task-strip { margin-top: 16px; }
.text-button { border: 0; background: transparent; color: var(--indigo); font-size: 11px; }
.task-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.task-item { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #edf0f3; }
.task-item:nth-child(odd) { border-right: 1px solid #edf0f3; }
.task-item:nth-last-child(-n+2) { border-bottom: 0; }
.check-button { width: 16px; height: 16px; border-radius: 4px; border: 1px solid #c5cad3; background: white; }
.task-item strong { display: block; font-size: 11px; }
.task-item small { display: block; color: var(--muted); margin-top: 4px; font-size: 9px; }
.priority { padding: 3px 5px; border-radius: 4px; font-size: 9px; }
.priority-高 { color: var(--red); background: var(--red-soft); }
.priority-中 { color: var(--amber); background: var(--amber-soft); }
.priority-低 { color: var(--green); background: var(--green-soft); }
.task-item time { color: var(--muted); font-size: 9px; }

.copilot-panel { position: sticky; top: 0; height: 100vh; height: 100dvh; min-width: 0; min-height: 0; overflow: hidden; background: #fff; border-left: 1px solid var(--line); display: grid; grid-template-rows: auto auto auto minmax(0, 1fr) minmax(84px, auto) auto; z-index: 4; }
.copilot-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 18px 16px; }
.copilot-title { display: flex; align-items: center; gap: 10px; }
.spark-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--indigo); color: white; font-size: 17px; }
.copilot-title strong { display: block; font-size: 14px; }
.copilot-title small { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--muted); font-size: 9px; }
.copilot-title .live-dot { width: 5px; height: 5px; margin: 0; box-shadow: none; }
.copilot-tools { display: flex; align-items: center; }
.context-bar { margin: 0 18px; padding: 9px 11px; display: flex; justify-content: space-between; gap: 10px; background: #f5f6f8; border: 1px solid #eceef1; border-radius: 7px; color: var(--muted); font-size: 9px; }
.context-bar strong { color: #545d6d; font-weight: 650; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ai-setup-banner { margin: 10px 18px 0; padding: 10px 11px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #deddf5; background: #fafaff; }
.ai-setup-banner.hidden { display: none; }
.ai-setup-banner strong { display: block; color: #48469f; font-size: 10px; }
.ai-setup-banner small { display: block; margin-top: 3px; color: #7a7f91; font-size: 8px; }
.ai-setup-banner button { flex: 0 0 auto; border: 0; border-radius: 6px; padding: 7px 9px; color: white; background: var(--indigo); font-size: 9px; }
.chat-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px; scroll-behavior: smooth; }
.message { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 16px; }
.message.user { justify-content: flex-end; }
.message-avatar { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 7px; color: white; background: var(--indigo); font-size: 11px; }
.message-body { max-width: 88%; }
.message-body > p { margin: 0; padding: 10px 11px; border-radius: 4px 12px 12px 12px; background: #f1f2f5; color: #384150; line-height: 1.62; font-size: 12px; white-space: pre-wrap; }
.message.user .message-body > p { background: var(--indigo); color: white; border-radius: 12px 4px 12px 12px; }
.message-body time { display: block; margin-top: 5px; color: #a1a7b1; font-size: 8px; }
.message.user time { text-align: right; }
.suggestions { display: grid; gap: 7px; padding-left: 33px; }
.suggestions button { text-align: left; padding: 9px 10px; color: #4f4fb5; background: #fafaff; border: 1px solid #deddf5; border-radius: 7px; line-height: 1.45; font-size: 10px; }
.suggestions button:hover { border-color: #aaa6e9; background: #f5f4ff; }
.action-stack { display: grid; gap: 6px; margin-top: 7px; }
.action-card { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: start; padding: 9px; border: 1px solid #dfe5e2; background: #fbfdfc; border-radius: 7px; }
.action-card > span { width: 17px; height: 17px; display: grid; place-items: center; color: white; background: var(--green); border-radius: 50%; font-size: 9px; }
.action-card strong { display: block; color: #315c4e; font-size: 10px; }
.action-card small { display: block; color: #708179; margin-top: 3px; line-height: 1.45; font-size: 9px; }
.copy-draft { border: 0; background: transparent; color: var(--indigo); font-size: 9px; padding: 0; }
.typing { display: flex; gap: 4px; padding: 12px 13px; background: #f1f2f5; border-radius: 4px 12px 12px 12px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: #969eab; animation: bounce 1s infinite alternate; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { to { transform: translateY(-4px); opacity: .55; } }
.composer { min-height: 84px; margin: 0 16px; align-self: end; background: #fff; border: 1px solid #d7dae1; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 16px rgba(23,32,51,.05); }
.composer:focus-within { border-color: #a8a4e8; box-shadow: 0 0 0 3px rgba(85,85,217,.08); }
.composer textarea { display: block; width: 100%; height: 48px; min-height: 48px; max-height: 120px; resize: none; border: 0; outline: none; padding: 12px 12px 5px; color: var(--ink); line-height: 1.5; }
.composer textarea::placeholder { color: #a0a6b0; }
.composer-foot { display: flex; align-items: center; justify-content: space-between; padding: 5px 7px 7px 12px; }
.composer-foot span { color: #a3a9b3; font-size: 8px; }
.composer-foot button { width: 28px; height: 28px; border: 0; border-radius: 7px; background: var(--indigo); color: white; font-size: 16px; }
.composer-foot button:disabled { opacity: .5; cursor: wait; }
.ai-disclaimer { margin: 9px 16px 12px; text-align: center; color: #9ba1ac; font-size: 8px; }

.login-layer { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(18,25,39,.78); backdrop-filter: blur(8px); transition: .2s ease; }
.login-layer.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.login-card { width: min(380px, 100%); padding: 34px; background: white; box-shadow: var(--shadow); }
.brand-mark.large { width: 44px; height: 44px; margin-bottom: 24px; }
.login-card h2 { margin: 0; font-size: 23px; letter-spacing: -.03em; }
.login-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; margin: 10px 0 24px; }
.login-card label { display: block; margin-bottom: 7px; color: #596273; font-size: 11px; font-weight: 700; }
.login-card input + label { margin-top: 13px; }
.login-card input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #d7dbe3; outline: none; border-radius: 7px; }
.login-card input:focus { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(85,85,217,.09); }
.login-card button { width: 100%; height: 44px; margin-top: 12px; border: 0; border-radius: 7px; color: white; background: var(--indigo); font-weight: 700; }
.login-card > small { display: block; min-height: 18px; margin-top: 9px; color: var(--red); }
.settings-layer { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 24px; background: rgba(18,25,39,.68); backdrop-filter: blur(7px); }
.settings-layer.hidden { display: none; }
.settings-card { width: min(490px, 100%); max-height: calc(100vh - 36px); overflow-y: auto; padding: 28px; background: white; box-shadow: var(--shadow); }
.settings-head { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: start; margin-bottom: 20px; }
.settings-head h2 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.settings-head p:not(.eyebrow) { margin: 8px 0 0; color: var(--muted); line-height: 1.5; font-size: 11px; }
.close-button { width: 30px; height: 30px; border: 0; background: #f1f2f5; color: #71798a; border-radius: 7px; font-size: 20px; }
.settings-status { display: flex; align-items: center; gap: 10px; padding: 12px; margin-bottom: 18px; border: 1px solid #e2e5ea; background: #f7f8fa; }
.settings-status .status-dot { width: 9px; height: 9px; border-radius: 50%; background: #a0a6b0; box-shadow: 0 0 0 4px rgba(160,166,176,.12); }
.settings-status.connected { border-color: #cce9dd; background: #f2faf7; }
.settings-status.connected .status-dot { background: var(--green); box-shadow: 0 0 0 4px rgba(22,137,103,.1); }
.settings-status strong { display: block; font-size: 11px; }
.settings-status small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.settings-card > label, .model-choice legend { display: block; margin-bottom: 7px; color: #535c6c; font-size: 11px; font-weight: 750; }
.settings-card > input { width: 100%; height: 43px; padding: 0 12px; border: 1px solid #d5d9e1; border-radius: 7px; outline: none; }
.settings-card > input:focus { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(85,85,217,.08); }
.field-help { display: block; margin-top: 6px; color: #9299a6; font-size: 9px; }
.model-choice { margin: 20px 0 14px; padding: 0; border: 0; }
.model-choice > label { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 9px; padding: 11px; margin-top: 7px; border: 1px solid #dde0e6; cursor: pointer; }
.model-choice > label:has(input:checked) { border-color: #8f89e7; background: #f8f7ff; box-shadow: inset 3px 0 var(--indigo); }
.model-choice input { margin-top: 2px; accent-color: var(--indigo); }
.model-choice strong { display: block; font-size: 11px; }
.model-choice small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.settings-security { display: grid; grid-template-columns: auto 1fr; gap: 9px; padding: 11px; background: #f4f8f6; border-left: 3px solid var(--green); }
.settings-security > span { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font-size: 9px; }
.settings-security p { margin: 0; }
.settings-security strong, .settings-security small { display: block; }
.settings-security strong { color: #315c4e; font-size: 10px; }
.settings-security small { margin-top: 3px; color: #71817b; font-size: 9px; line-height: 1.5; }
.settings-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.settings-actions button { border: 0; border-radius: 7px; padding: 10px 14px; color: white; background: var(--indigo); font-weight: 700; font-size: 10px; }
.settings-actions .secondary-button { color: #6d7482; background: #eef0f3; }
.settings-actions button:disabled { opacity: .5; cursor: not-allowed; }
.settings-error { display: block; min-height: 16px; margin-top: 8px; color: var(--red); font-size: 9px; text-align: right; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translate(-50%, 18px); opacity: 0; pointer-events: none; padding: 10px 14px; border-radius: 8px; color: white; background: #263044; box-shadow: var(--shadow); transition: .2s ease; font-size: 11px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--red); }

@media (max-width: 1260px) {
  .app-shell { grid-template-columns: 76px minmax(600px, 1fr) 360px; }
  .brand { padding-inline: 6px; justify-content: center; }
  .brand > div, .nav-item:not(.profile) { font-size: 0; }
  .nav-item:not(.profile) { justify-content: center; gap: 0; }
  .nav-item:not(.profile) > span { font-size: 17px; }
  .side-note { display: none; }
  .profile div { display: none; }
  .profile { justify-content: center; }
  .workspace { padding-inline: 22px; }
}

@media (max-width: 980px) {
  .app-shell { display: block; padding-bottom: 72px; }
  .sidebar { position: fixed; inset: auto 0 0; width: 100%; height: 64px; padding: 7px 12px; flex-direction: row; align-items: center; z-index: 30; }
  .brand, .sidebar-spacer, .side-note, .profile { display: none; }
  .sidebar nav { width: 100%; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .nav-item:not(.profile) { display: grid; place-items: center; gap: 0; padding: 7px; font-size: 9px; }
  .nav-item:not(.profile) > span { display: block; width: auto; font-size: 15px; }
  .workspace { padding: 22px 16px; }
  .copilot-panel { position: relative; height: min(720px, calc(100dvh - 64px)); min-height: 520px; border-left: 0; border-top: 1px solid var(--line); }
  .content-grid { grid-template-columns: 1fr 250px; }
}

@media (max-width: 720px) {
  .topbar { align-items: center; }
  .topbar h1 { font-size: 22px; }
  .subline, .date-chip { display: none; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metrics article:nth-child(2) { border-right: 0; }
  .metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .content-grid { grid-template-columns: 1fr; }
  .detail-panel { min-height: 290px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .task-list { grid-template-columns: 1fr; }
  .task-item, .task-item:nth-child(odd), .task-item:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid #edf0f3; }
  .table-wrap { margin-right: -1px; }
  th, td { padding-inline: 11px; }
  th:nth-child(4), td:nth-child(4) { display: none; }
  .login-card { padding: 28px 22px; }
}
