/* PKC Marketing: sunlight legibility, workshop quiet, hairlines over boxes. */
* { box-sizing: border-box; }
body { margin: 0; background: var(--pkc-bg); color: var(--pkc-ink); }
.icon { flex: 0 0 auto; vertical-align: middle; }
main, main > *, .page-heading > *, .lead-layout > *, .lead-section { min-width: 0; }
h1, h3, .lead-card p, .next-action p { overflow-wrap: anywhere; }
button, input, textarea, select { font: inherit; color: inherit; }
button, .button, input, select { min-height: 44px; }
button, .button { border: 1px solid var(--pkc-line); background: var(--pkc-surface); border-radius: 5px; padding: 10px 16px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; line-height: 1.35; font-weight: 500; }
button:hover, .button:hover { background: var(--pkc-surface-3); border-color: var(--pkc-dim-line); }
button:disabled { opacity: .6; cursor: wait; }
a { color: inherit; text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--pkc-ink); outline-offset: 3px; }
[hidden] { display: none !important; }
.primary { background: var(--pkc-ink); color: var(--pkc-bg); border-color: var(--pkc-ink); }
.primary:hover { background: var(--pkc-ink-2); color: var(--pkc-bg); }
.quiet { border-color: transparent; background: transparent; }
.attention { background: var(--pkc-highlight-wash); border-color: var(--pkc-highlight-line); }
.danger, .overdue { color: var(--pkc-redpen); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: fixed; top: -100px; z-index: 50; background: var(--pkc-surface); padding: 12px; }
.skip:focus { top: 8px; }
.app-header { display: flex; align-items: center; justify-content: space-between; min-height: 94px; padding: 20px 40px; border-bottom: 1px solid var(--pkc-line); gap: 16px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; gap: 18px; text-decoration: none; font-weight: 600; font-size: 18px; line-height: 1.3; }
.brand-mark { border-right: 1px solid var(--pkc-dim-line); padding-right: 18px; font-family: var(--pkc-font-display); font-size: 24px; letter-spacing: -.06em; }
.brand-sub { display: block; font-size: 13.5px; color: var(--pkc-ink-2); font-weight: 400; margin-top: 2px; }
.identity { font-size: 14px; color: var(--pkc-ink-2); }
#nav { position: absolute; top: 23px; left: 43%; display: flex; gap: 6px; }
#nav a { text-decoration: none; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 16px; border-radius: 5px; }
#nav a[aria-current=page] { background: var(--pkc-surface-3); font-weight: 600; }
.nav-count { background: var(--pkc-highlight-wash); border-radius: 4px; padding: 1px 6px; font-family: var(--pkc-font-mono); }
main { max-width: 1520px; margin: 0 auto; padding: 40px; }
.eyebrow { font: 12px var(--pkc-font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--pkc-ink-2); margin: 0 0 14px; }
.eyebrow a { display: inline-flex; min-height: 44px; align-items: center; }
h1, h2, h3, p { margin-top: 0; }
h1 { font: 600 30px/1.25 var(--pkc-font-display); letter-spacing: -.035em; margin-bottom: 12px; }
h2 { font-size: 19px; font-weight: 600; margin-bottom: 16px; }
h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
p { line-height: 1.55; }
.subtle { color: var(--pkc-ink-2); }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-heading p:last-child { margin-bottom: 0; }
.heading-actions, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.stats { display: flex; gap: 36px; padding: 0 0 24px; margin-bottom: 30px; border-bottom: 1px solid var(--pkc-line); flex-wrap: wrap; }
.stat { display: flex; align-items: center; gap: 10px; }
.stat-number { font: 30px var(--pkc-font-mono); }
.stat .help-label { gap: 10px; }
.explained { display: inline-flex; align-items: center; gap: 1px; max-width: 100%; }
.help-label { min-height: 44px; max-width: 100%; padding: 8px 0; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; text-align: left; justify-content: flex-start; cursor: help; }
.help-label:hover, .info:hover { background: transparent; }
@media (hover: hover) {
 .help-label:hover { text-decoration: underline dotted; text-underline-offset: 4px; }
}
.info { flex-shrink: 0; width: 44px; min-height: 44px; padding: 0; background: transparent; border: 0; font: 14px var(--pkc-font-mono); color: var(--pkc-ink-2); }
.tooltip { position: fixed; z-index: 100; max-width: min(330px, calc(100vw - 24px)); background: var(--pkc-ink); color: var(--pkc-bg); padding: 14px 16px; border-radius: 6px; font-size: 15px; line-height: 1.5; box-shadow: var(--pkc-shadow-sheet); pointer-events: none; }
.today-grid { display: grid; grid-template-columns: 1fr 1fr .85fr; gap: 32px; }
.today-heading { display: flex; align-items: center; gap: 24px; margin-bottom: 18px; }
.today-heading h1 { margin: 0; font-size: 22px; }
.today-counts { display: flex; align-items: center; gap: 6px; }
.group-heading { display: flex; align-items: center; justify-content: space-between; border-top: 2px solid var(--pkc-dim-line); padding-top: 8px; margin-bottom: 0; }
.group-now .group-heading { border-top-color: var(--pkc-highlight); }
.group-heading h2 { margin: 0; }
.task, .older-row { padding: 22px 0; border-bottom: 1px solid var(--pkc-line); }
.task-title { font-weight: 500; font-size: 17px; margin: 6px 0; }
.task-name { display: inline-flex; align-items: center; min-height: 44px; font-size: 20px; text-decoration: none; font-weight: 600; }
.task .actions { margin-top: 14px; }
.task .actions button, .task .actions a { flex: 1; min-width: 64px; padding-inline: 10px; }
.task-time { font: 14px var(--pkc-font-mono); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; }
.badge.replied { background: var(--pkc-highlight-wash); padding-left: 8px; border-radius: 4px; }
.empty { padding: 24px 0; color: var(--pkc-ink-2); }
.empty h3 { color: var(--pkc-ink); }
.filters { display: grid; grid-template-columns: minmax(220px, 2fr) 3fr; gap: 12px; margin-bottom: 12px; }
.desktop-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.filter-toggle { display: none; }
#active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.filter-chip { font-size: 13px; padding: 8px; background: transparent; border-radius: 20px; }
label { display: block; font-weight: 500; margin-bottom: 16px; }
label > input, label > select, label > textarea { display: block; margin-top: 6px; }
input, select, textarea { width: 100%; border: 1px solid var(--pkc-dim-line); border-radius: 5px; background: var(--pkc-surface); padding: 10px 12px; font-size: 16px; }
textarea { min-height: 100px; resize: vertical; }
input[type=checkbox] { width: 22px; height: 22px; min-height: 22px; accent-color: var(--pkc-ink); }
.filters label { margin: 0; font-size: 14px; }
.pipeline-frame { position: relative; min-width: 0; }
.pipeline-scroll { position: relative; overflow-x: auto; padding-bottom: 18px; }
.board { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.column { border-top: 2px solid var(--pkc-dim-line); min-height: 210px; min-width: 0; }
.column h2 { font-size: 16px; margin: 0; min-height: 66px; display: flex; align-items: center; justify-content: space-between; }
.column h2 > .explained:first-child { min-width: 0; }
.column h2 > .explained:last-child { flex-shrink: 0; }
.column h2 .info { width: 24px; }
.column h2 .help-label { padding-inline: 2px; }
.column.drag-over { background: var(--pkc-highlight-wash); }
.lead-card { border-top: 1px solid var(--pkc-line); padding: 10px 2px; position: relative; }
.lead-card[draggable=true] { cursor: grab; }
.lead-card h3 a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.lead-card h3 a:hover { text-decoration: underline; }
.lead-card h3 { font-size: 16px; padding-right: 24px; }
.lead-card p { margin: 4px 0; font-size: 13px; }
.lead-card > .subtle { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; }
.card-meta .badge, .card-next .task-time { font-size: 12px; }
.card-meta .badge { gap: 3px; }
.card-meta .icon { width: 16px; height: 16px; }
.owner-initial { font: 12px var(--pkc-font-mono); border: 1px solid var(--pkc-dim-line); width: 22px; height: 22px; display: inline-flex; justify-content: center; align-items: center; border-radius: 50%; }
.card-next { padding: 8px 0; border-top: 1px dotted var(--pkc-line); margin-top: 8px; }
.card-next .help-label { display: block; min-height: 44px; font-size: 13px; overflow-wrap: anywhere; }
.card-move, .phone-move { display: none; }
.card-menu { position: absolute; right: 0; top: 10px; border: 0; margin: 0; }
.card-menu summary { display: flex; align-items: center; justify-content: center; width: 24px; min-height: 44px; padding: 0; list-style: none; }
.card-menu summary::-webkit-details-marker { display: none; }
.card-menu button { position: absolute; right: 0; top: 44px; white-space: nowrap; z-index: 2; }
.chips { display: none; }
details { border-block: 1px solid var(--pkc-line); margin-top: 24px; }
summary { cursor: pointer; min-height: 54px; padding: 15px 0; font-weight: 500; }
.closed-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; padding: 12px 0; }
.lead-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: 60px; }
.lead-back { margin-bottom: 12px; }
.lead-back a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.lead-section { border-top: 1px solid var(--pkc-line); padding: 24px 0; }
.lead-section:first-child { padding-top: 0; border: 0; }
.next-action { border-left: 3px solid var(--pkc-highlight); padding-left: 18px; }
.next-action p { font-size: 19px; margin-bottom: 4px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 0; }
.kv dt { font-size: 14px; color: var(--pkc-ink-2); margin-bottom: 4px; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.progress { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; margin: 12px 0 0; }
.progress-segment { border-top: 4px solid var(--pkc-line); font-size: 13.5px; min-width: 0; }
.progress-segment > .explained, .progress-segment .help-label { width: 100%; }
.progress-segment.past { border-color: var(--pkc-dim-line); }
.progress-segment.current { border-color: var(--pkc-highlight); font-weight: 600; }
.lead-badges { margin-bottom: 18px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 15px 0 15px 18px; border-left: 1px solid var(--pkc-dim-line); position: relative; }
.timeline li::before { content: ''; width: 5px; height: 5px; border: 1px solid var(--pkc-dim-line); position: absolute; left: -3px; top: 23px; background: var(--pkc-bg); }
.timeline p { margin: 5px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.timeline time, .reply-date { font: 13.5px var(--pkc-font-mono); color: var(--pkc-ink-2); }
.reply { border-bottom: 1px solid var(--pkc-line); padding: 14px 0; }
.reply p { margin: 6px 0; }
.form-page, .settings-page { max-width: 720px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.setting { border-top: 1px solid var(--pkc-line); padding-top: 16px; }
.setting p { margin-bottom: 12px; color: var(--pkc-ink-2); }
.setting input[type=number] { max-width: 140px; }
.day-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.day-checks label { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding-right: 10px; }
.day-checks input { margin: 0; }
.sign-in { max-width: 440px; margin: 10vh auto; }
.sign-in h1 { font-size: 36px; }
.sign-in form { margin-top: 30px; }
.sign-in button { width: 100%; }
.sign-in .footnote { border-top: 1px solid var(--pkc-line); padding-top: 20px; margin-top: 28px; }
.more-links { max-width: 650px; }
.more-links a { min-height: 78px; display: flex; align-items: center; justify-content: space-between; text-decoration: none; border-bottom: 1px solid var(--pkc-line); font-size: 20px; }
.more-links p { margin-top: 32px; }
.notice { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 30; padding: 14px 20px; max-width: min(580px, calc(100vw - 24px)); background: var(--pkc-ink); color: var(--pkc-bg); border-radius: 6px; box-shadow: var(--pkc-shadow-sheet); }
.notice.error { background: var(--pkc-surface); color: var(--pkc-redpen); border: 1px solid var(--pkc-redpen); }
dialog { color: var(--pkc-ink); background: var(--pkc-surface); border: 1px solid var(--pkc-line); border-radius: 12px; padding: 24px; width: min(520px, calc(100vw - 32px)); max-width: 100vw; max-height: 88dvh; overflow: auto; overflow-wrap: anywhere; box-shadow: var(--pkc-shadow-sheet); }
dialog::backdrop { background: rgb(0 0 0 / .45); }
.sheet-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.sheet-heading h2 { margin: 0; font: 600 21px var(--pkc-font-display); }
.sheet-actions { display: grid; gap: 8px; margin-top: 18px; }
.sheet-actions button { justify-content: flex-start; }
.form-error { color: var(--pkc-redpen); }
.loading { color: var(--pkc-ink-2); padding: 28px 0; }
@media (min-width: 1280px) and (max-width: 1350px) {
 main { padding-inline: 24px; }
}
@media (min-width: 761px) and (max-width: 1279px) {
 .board { min-width: 1280px; }
 .pipeline-frame::after { content: ''; position: absolute; top: 0; right: 0; bottom: 18px; width: 24px; background: linear-gradient(to right, transparent, var(--pkc-bg)); pointer-events: none; }
}
@media (max-width: 1100px) and (min-width: 761px) {
 .app-header { padding-inline: 24px; } main { padding: 28px 24px; } .identity { display: none; }
 #nav { position: static; justify-content: flex-end; padding: 8px 24px; border-bottom: 1px solid var(--pkc-line); } .today-grid { grid-template-columns: 1fr 1fr; } .group-soon { grid-column: 1 / -1; }
 .lead-layout { gap: 30px; } .progress-segment { font-size: 12px; }
}
@media (max-width: 760px) {
 .app-header { min-height: 80px; padding: 16px 20px; } .brand { font-size: 17px; gap: 12px; } .brand-mark { padding-right: 12px; font-size: 22px; } .brand-sub { font-size: 12px; } .identity { font-size: 13.5px; }
 main { padding: 28px 20px 110px; } h1 { font-size: 26px; } .eyebrow { font-size: 12px; }
 #nav { position: fixed; inset: auto 0 0; z-index: 10; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--pkc-surface); border-top: 1px solid var(--pkc-dim-line); gap: 0; padding: 4px 8px max(8px, env(safe-area-inset-bottom)); }
 #nav a { flex-direction: column; gap: 1px; padding: 6px 4px; font-size: 13.5px; min-height: 56px; position: relative; } #nav .nav-count { position: absolute; right: 5px; top: 2px; font-size: 12px; }
 .page-heading { margin-bottom: 16px; gap: 12px; align-items: center; } .page-heading h1 { font-size: 24px; margin-bottom: 0; } .page-heading .heading-actions { flex-shrink: 0; } .page-heading .heading-actions .button { padding-inline: 12px; }
 .today-heading { gap: 6px; margin-bottom: 12px; justify-content: space-between; }
 .today-heading h1 { font-family: var(--pkc-font-sans); font-size: 14px; letter-spacing: -.03em; white-space: nowrap; }
 .today-counts { font-size: 12px; gap: 3px; white-space: nowrap; }
 .stats { gap: 12px; justify-content: space-between; padding-bottom: 18px; margin-bottom: 20px; } .stat { gap: 5px; } .stat-number { font-size: 24px; } .stat-label { font-size: 14px; } .stats .info { width: 44px; }
 .today-grid { display: block; } .today-group { margin-bottom: 30px; } .task { padding-block: 18px; }
 .filters { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; } .desktop-filters { display: none; } .filter-toggle { display: inline-flex; }
 .chips { position: relative; display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding-bottom: 14px; margin-bottom: 6px; } .chips > .explained { flex: 0 0 auto; max-width: none; } .chips button { white-space: nowrap; padding-inline: 12px; border: 1px solid var(--pkc-line); border-radius: 5px; cursor: pointer; } .chips button[aria-pressed=true] { background: var(--pkc-ink); color: var(--pkc-bg); }
 .pipeline-scroll { overflow: visible; } .board { display: block; } .column { display: none; } .column.selected { display: block; } .column h2 { min-height: 54px; } .lead-card { padding-block: 18px; } .lead-card h3 { font-size: 20px; }
 .card-menu { display: none; } .card-move, .phone-move { display: inline-flex; } .card-move { width: 100%; margin-top: 8px; } .lead-card h3 { padding-right: 0; }
 .card-meta { font-size: 14px; gap: 12px; } .card-meta .badge { font-size: 14px; }
 .lead-card p, .card-next .help-label { font-size: 15px; } .card-next .task-time { font-size: 14px; } .lead-card > .subtle { white-space: normal; }
 .closed-list { display: block; }
 .lead-layout { display: flex; flex-direction: column; gap: 0; } .lead-work, .lead-layout aside { display: contents; }
 .lead-contact { order: 0; } .lead-next { order: 1; } .lead-attention { order: 2; } .lead-replies { order: 3; } .lead-timeline { order: 4; } .lead-details { order: 5; }
 .lead-back, .lead-contact h2, .lead-contact > p, .lead-heading .heading-actions { display: none; } .lead-contact .actions { flex-wrap: nowrap; } .lead-contact .button { flex: 1; }
 .lead-heading .page-heading { margin-bottom: 8px; }
 .lead-badges { margin-bottom: 8px; }
 .progress { grid-template-columns: repeat(8, minmax(0, 1fr)); margin: 0 0 -8px; }
 .progress-segment { position: relative; border: 0; }
 .progress-segment .help-label { position: relative; padding: 0; }
 .progress-segment .help-label::before { content: ''; position: absolute; top: 18px; left: 0; right: 0; height: 5px; background: var(--pkc-line); }
 .progress-segment.past .help-label::before { background: var(--pkc-dim-line); } .progress-segment.current .help-label::before { background: var(--pkc-highlight); }
 .progress-label { display: none; }
 .lead-section { padding-block: 22px; } .lead-next { border-top: 1px solid var(--pkc-line); padding-top: 22px; }
 .field-grid { display: block; } .kv { gap: 18px; } .sign-in { margin: 6vh auto; } .sign-in h1 { font-size: 30px; }
 dialog { position: fixed; inset: auto 0 0; margin: 0; width: 100vw; max-width: 100vw; border-radius: 14px 14px 0 0; padding: 22px 20px max(24px, env(safe-area-inset-bottom)); max-height: 90dvh; }
 .notice { bottom: 90px; width: calc(100% - 24px); }
}
/* The banner stays small and wraps within phone screens. */
.preview-banner { margin: 0; padding: 8px 16px; border-bottom: 1px solid currentColor; font-size: .85rem; }
