/* Interface comum do Painel Kampfer. Sem dependências externas. */
:root { --kf-bg:#F5F4F0; --kf-surface:#fff; --kf-ink:#0E0E0E; --kf-muted:#5f6067; --kf-line:#e4e3df; --kf-amber:#E8A33D; --kf-amber-soft:#fff1d9; --kf-green:#137a35; --kf-green-soft:#e2f5e7; --kf-radius:8px; --kf-shadow:0 10px 30px rgb(14 14 14 / 5%); font-family:"Segoe UI",SegoeUI,Arial,sans-serif; color:var(--kf-ink); background:var(--kf-bg); }
* { box-sizing:border-box; }
body { margin:0; min-width:320px; background:var(--kf-bg); color:var(--kf-ink); font:16px/1.45 "Segoe UI",SegoeUI,Arial,sans-serif; }
button,input,select,textarea { font:inherit; color:inherit; }
button,a { -webkit-tap-highlight-color:transparent; }
a { color:inherit; }
:focus-visible { outline:3px solid var(--kf-amber); outline-offset:2px; }
.sr-only { position:absolute!important; width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }

/* Moldura */
.kf-sidebar { position:fixed; inset:0 auto 0 0; z-index:20; width:224px; display:flex; flex-direction:column; padding:30px 12px 18px; background:var(--kf-surface); border-right:1px solid var(--kf-line); overflow-y:auto; }
.kf-brand { display:block; width:160px; margin:0 12px 30px; }
.kf-brand img { display:block; max-width:100%; height:auto; }
.kf-nav-group { margin:0 0 22px; padding:0; }
.kf-nav-group > h2,.kf-nav-group > p { margin:0 12px 7px; color:var(--kf-muted); font-size:12px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }
.kf-nav-item { display:flex; align-items:center; gap:12px; min-height:40px; padding:8px 12px; border-radius:6px; color:#20242b; text-decoration:none; }
.kf-nav-item:hover { background:#f5f4f0; }
.kf-nav-item.active { background:var(--kf-amber-soft); color:#6b3a00; font-weight:600; }
.kf-nav-item svg,.kf-bottomnav svg,.kf-mobile-header svg { width:21px; height:21px; flex:0 0 auto; stroke:currentColor; }
.kf-user { display:flex; align-items:center; gap:10px; margin-top:auto; padding:12px; color:var(--kf-muted); font-size:14px; }
.kf-avatar { display:grid; place-items:center; flex:0 0 40px; width:40px; height:40px; border-radius:50%; background:#e7e8eb; color:#252933; font-weight:700; }
.kf-topbar { position:fixed; top:0; right:0; left:224px; z-index:10; display:flex; align-items:center; justify-content:space-between; height:64px; padding:0 32px; background:rgb(255 255 255 / 94%); border-bottom:1px solid var(--kf-line); backdrop-filter:blur(10px); }
.kf-mobile-header,.kf-bottomnav { display:none; }
.kf-main { min-height:100vh; margin-left:224px; padding-top:64px; }
.kf-content { max-width:1280px; margin:0 auto; padding:32px; }

/* Cabeçalhos, cartões e linhas */
.kf-page-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin:0 0 24px; }
.kf-page-heading h1 { margin:0; font-size:30px; line-height:1.15; letter-spacing:-.04em; }
.kf-page-heading p { margin:3px 0 0; color:var(--kf-muted); font-size:20px; }
.kf-page-heading .kf-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:8px; }
.kf-card { min-width:0; margin-bottom:16px; padding:20px; background:var(--kf-surface); border:1px solid var(--kf-line); border-radius:var(--kf-radius); box-shadow:0 1px 1px rgb(0 0 0 / 1%); }
.kf-card-header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:-2px 0 16px; }
.kf-card-header h2,.kf-card-header h3 { margin:0; font-size:20px; line-height:1.25; letter-spacing:-.025em; }
.kf-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.kf-grid-3 { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.kf-grid-4 { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.kf-stack { display:grid; gap:16px; }
.kf-row { display:flex; align-items:center; gap:12px; }
.kf-split { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.kf-muted { color:var(--kf-muted); }
.kf-eyebrow { margin:0 0 4px; color:var(--kf-muted); font-size:12px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }

/* Controles */
.kf-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:40px; max-width:100%; padding:8px 15px; border:1px solid #d9d9d6; border-radius:6px; background:#fff; color:var(--kf-ink); cursor:pointer; font-weight:600; text-decoration:none; white-space:normal; overflow-wrap:anywhere; text-align:center; }
.kf-btn:hover { background:#f5f4f0; }
.kf-btn.primary { border-color:var(--kf-ink); background:var(--kf-ink); color:#fff; }
.kf-btn.primary:hover { background:#333; }
.kf-btn.small { min-height:34px; padding:6px 11px; font-size:14px; }
.kf-btn.danger { color:#a52222; border-color:#e4c1c1; }
.kf-badge { display:inline-flex; align-items:center; min-height:28px; padding:4px 10px; border-radius:999px; background:#eef0f2; color:#31343a; font-size:13px; font-weight:600; white-space:nowrap; }
.kf-badge.amber { background:var(--kf-amber-soft); color:#8a4a00; }
.kf-badge.received { background:var(--kf-green-soft); color:#096727; }
.kf-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-bottom:16px; }
.kf-tabs { display:flex; gap:2px; overflow-x:auto; border-bottom:1px solid var(--kf-line); }
.kf-tabs > * { flex:0 0 auto; padding:11px 10px 10px; border:0; border-bottom:2px solid transparent; background:none; color:var(--kf-muted); text-decoration:none; cursor:pointer; }
.kf-tabs > *.active { border-bottom-color:var(--kf-amber); color:#8a4a00; font-weight:700; }
.kf-search { width:min(100%,320px); min-height:40px; padding:8px 12px; border:1px solid #d9d9d6; border-radius:6px; background:#fff; }
.kf-field { display:grid; gap:6px; min-width:0; color:#33363c; font-size:14px; font-weight:600; }
.kf-field input,.kf-field select,.kf-field textarea { width:100%; min-height:40px; padding:9px 11px; border:1px solid #d9d9d6; border-radius:6px; background:#fff; font-weight:400; }
.kf-field textarea { min-height:96px; resize:vertical; }
.kf-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 16px; }
.kf-check-row { display:flex; align-items:flex-start; gap:10px; padding:10px 0; }
.kf-check-row input { width:18px; height:18px; margin:2px 0 0; accent-color:var(--kf-ink); }

/* Dados e estados */
.kf-list { margin:0; padding:0; list-style:none; border:1px solid var(--kf-line); border-radius:7px; overflow:hidden; }
.kf-list-item { display:flex; align-items:center; gap:14px; min-width:0; padding:13px; border-bottom:1px solid var(--kf-line); }
.kf-list-item:last-child { border-bottom:0; }
.kf-list-item > :first-child:not(.kf-btn):not(.kf-doc-icon) { min-width:0; flex:1; }
.kf-metric { min-height:112px; padding:18px; background:#fff; border:1px solid var(--kf-line); border-radius:var(--kf-radius); }
.kf-metric span { display:block; color:var(--kf-muted); font-size:14px; font-weight:600; }
.kf-metric strong { display:block; margin-top:8px; font-size:30px; line-height:1; letter-spacing:-.04em; }
.kf-notice { padding:13px 14px; border-left:4px solid var(--kf-amber); border-radius:4px; background:var(--kf-amber-soft); }
.kf-empty { padding:32px 20px; text-align:center; color:var(--kf-muted); }
.kf-flow { display:flex; align-items:center; gap:8px; overflow:auto; padding-bottom:4px; }
.kf-flow > * { flex:0 0 auto; }
.kf-flow > * + *::before { content:"›"; margin-right:8px; color:var(--kf-muted); }
.kf-timeline { margin:0; padding:0 0 0 21px; list-style:none; border-left:1px solid var(--kf-line); }
.kf-timeline li { position:relative; padding:0 0 18px 14px; }
.kf-timeline li::before { content:""; position:absolute; top:5px; left:-5px; width:9px; height:9px; border-radius:50%; background:var(--kf-amber); }
.kf-link { color:#965200; font-weight:600; text-decoration:none; }
.kf-link:hover { text-decoration:underline; }
.kf-table { width:100%; border-collapse:collapse; background:#fff; }
.kf-table th,.kf-table td { padding:12px; border-bottom:1px solid var(--kf-line); text-align:left; vertical-align:middle; }
.kf-table th { color:var(--kf-muted); font-size:12px; letter-spacing:.03em; text-transform:uppercase; }
.kf-table tr:last-child td { border-bottom:0; }
.kf-skeleton { min-height:16px; border-radius:4px; background:linear-gradient(90deg,#ececea 25%,#f7f7f5 37%,#ececea 63%); background-size:400% 100%; animation:kf-loading 1.3s ease infinite; }
.kf-toast { position:fixed; z-index:50; right:24px; bottom:24px; max-width:360px; padding:13px 16px; border-radius:7px; background:#151515; color:#fff; box-shadow:var(--kf-shadow); }

/* Diálogos e certificado */
.kf-dialog { width:min(560px,calc(100vw - 32px)); max-height:calc(100vh - 32px); padding:0; border:0; border-radius:var(--kf-radius); box-shadow:0 18px 55px rgb(0 0 0 / 24%); }
.kf-dialog::backdrop { background:rgb(0 0 0 / 35%); }
.kf-dialog > header,.kf-dialog > form > header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:18px 20px; border-bottom:1px solid var(--kf-line); }
.kf-dialog h2 { margin:0; font-size:20px; }
.kf-dialog form { margin:0; }
.kf-dialog .kf-dialog-body { max-height:calc(100vh - 190px); overflow:auto; padding:20px; }
.kf-dialog footer,.kf-dialog form > footer { display:flex; justify-content:flex-end; gap:8px; padding:14px 20px; border-top:1px solid var(--kf-line); }
.kf-certificate { max-width:900px; margin:0 auto; padding:54px; border:1px solid #c9c7c0; background:#fff; color:#111; }
.kf-certificate h1 { margin:36px 0 12px; font-size:32px; text-align:center; }
.kf-mobile-menu { width:min(300px,calc(100vw - 32px)); height:100%; max-height:none; margin:0; padding:20px 12px; border:0; box-shadow:8px 0 30px rgb(0 0 0 / 18%); }
.kf-mobile-menu::backdrop { background:rgb(0 0 0 / 30%); }

/* Entrada */
.kf-login { display:grid; min-height:100vh; grid-template-columns:minmax(0,1.1fr) minmax(390px,.9fr); background:#fff; }
.kf-login-intro { display:flex; flex-direction:column; justify-content:center; max-width:600px; padding:64px clamp(40px,8vw,120px); }
.kf-login-logo { width:245px; height:auto; margin-bottom:46px; }
.kf-login-intro h1 { max-width:480px; margin:0; font-size:52px; line-height:1.08; letter-spacing:-.05em; }
.kf-login-intro > p { margin:14px 0 38px; color:var(--kf-muted); font-size:22px; }
.kf-login-features { display:grid; gap:22px; margin:0; padding:0; list-style:none; }
.kf-login-features li { display:flex; align-items:center; gap:16px; }
.kf-login-feature-icon { display:grid; place-items:center; width:54px; height:54px; border-radius:10px; background:var(--kf-amber-soft); font-size:24px; }
.kf-login-features strong,.kf-login-features span { display:block; }
.kf-login-features span { color:var(--kf-muted); font-size:14px; }
.kf-login-panel { display:grid; place-items:center; padding:32px; background:var(--kf-bg); border-left:1px solid var(--kf-line); }
.kf-login-card { width:min(100%,432px); padding:34px; background:#fff; border:1px solid var(--kf-line); border-radius:10px; box-shadow:var(--kf-shadow); }
.kf-login-card h2 { margin:0; font-size:29px; letter-spacing:-.04em; }
.kf-login-card > p { margin:6px 0 26px; color:var(--kf-muted); }
.kf-login-google { width:100%; min-height:48px; border-radius:6px; font-size:16px; }
.kf-google-mark { font-size:22px; font-weight:700; color:#4285f4; }
.kf-login-divider { height:1px; margin:28px 0; background:var(--kf-line); }
.kf-login-note { margin:0!important; text-align:center; font-size:14px; }
.kf-login-alert { margin:0 0 18px!important; padding:12px; border-left:4px solid var(--kf-amber); background:var(--kf-amber-soft); color:#542d00!important; font-size:14px; }

@keyframes kf-loading { to { background-position:-400% 0; } }
@media (max-width:800px) {
  .kf-sidebar,.kf-topbar { display:none; }
  .kf-mobile-header { position:sticky; top:0; z-index:20; display:flex; align-items:center; justify-content:space-between; height:58px; padding:0 16px; background:rgb(255 255 255 / 96%); border-bottom:1px solid var(--kf-line); backdrop-filter:blur(10px); }
  .kf-mobile-header .kf-brand { width:118px; margin:0; }
  .kf-bottomnav { position:fixed; right:0; bottom:0; left:0; z-index:20; display:grid; grid-template-columns:repeat(4,1fr); height:68px; padding:5px 5px env(safe-area-inset-bottom); background:#fff; border-top:1px solid var(--kf-line); }
  .kf-bottomnav a { display:grid; place-items:center; align-content:center; gap:2px; color:#262930; font-size:11px; text-decoration:none; }
  .kf-bottomnav a.active { color:#9a5700; font-weight:700; }
  .kf-main { margin:0; padding:0 0 68px; }
  .kf-content { padding:20px 16px; }
  .kf-page-heading { display:block; margin-bottom:18px; }
  .kf-page-heading h1 { font-size:30px; }
  .kf-page-heading p { font-size:17px; }
  .kf-page-heading .kf-actions { justify-content:flex-start; margin-top:14px; }
  .kf-card { margin-bottom:12px; padding:14px; }
  .kf-grid,.kf-grid-3,.kf-grid-4,.kf-form-grid { grid-template-columns:minmax(0,1fr); gap:12px; }
  .kf-toolbar > * { min-height:44px; }
  .kf-btn { min-height:44px; }
  .kf-btn.small { min-height:40px; }
  .kf-search { width:100%; min-height:44px; }
  .kf-field input,.kf-field select { min-height:44px; }
  .kf-list-item { align-items:flex-start; flex-wrap:wrap; }
  .kf-list-item .kf-btn { margin-left:auto; }
  .kf-table,.kf-table tbody,.kf-table tr,.kf-table td { display:block; width:100%; }
  .kf-table thead { display:none; }
  .kf-table tr { margin-bottom:12px; border:1px solid var(--kf-line); border-radius:7px; overflow:hidden; }
  .kf-table td { display:grid; grid-template-columns:minmax(104px,40%) 1fr; gap:10px; padding:10px 12px; text-align:right; }
  .kf-table td::before { content:attr(data-label); color:var(--kf-muted); font-size:12px; font-weight:700; text-align:left; text-transform:uppercase; }
  .kf-toast { right:16px; bottom:82px; left:16px; max-width:none; }
  .kf-login { display:block; min-height:100svh; }
  .kf-login-intro { min-height:auto; padding:48px 24px 26px; }
  .kf-login-logo { width:170px; margin-bottom:34px; }
  .kf-login-intro h1 { font-size:38px; }
  .kf-login-intro > p { margin-bottom:27px; font-size:18px; }
  .kf-login-features { gap:14px; }
  .kf-login-feature-icon { width:46px; height:46px; font-size:20px; }
  .kf-login-panel { display:block; padding:16px; border:0; }
  .kf-login-card { width:100%; padding:24px; }
}
@media (max-width:480px) {
  .kf-login-intro { padding:24px 20px 18px; }
  .kf-login-logo { width:136px; margin-bottom:20px; }
  .kf-login-intro h1 { font-size:32px; }
  .kf-login-intro > p { margin:10px 0 18px; font-size:16px; }
  .kf-login-features { gap:10px; }
  .kf-login-feature-icon { width:40px; height:40px; font-size:18px; }
  .kf-login-panel { padding:12px 16px 20px; }
  .kf-login-card { padding:20px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; } }
@media print { body { background:#fff; } .kf-sidebar,.kf-topbar,.kf-mobile-header,.kf-bottomnav,.kf-btn,.kf-toolbar,.kf-toast { display:none!important; } .kf-main { margin:0; padding:0; } .kf-content { max-width:none; padding:0; } .kf-certificate { border:0; box-shadow:none; } }
/* Ajustes de integração dos componentes reutilizáveis. */
[hidden] { display:none!important; }
.kf-skip { position:fixed; top:-80px; left:20px; z-index:100; padding:12px; background:#fff; }
.kf-skip:focus { top:8px; }
.kf-login-notice { margin:0 0 20px; font-size:13px; }
.kf-login-notice summary { cursor:pointer; }
.kf-field.full { grid-column:1/-1; }
.kf-dialog .kf-form-grid { padding:20px; }
.kf-dialog > p,.kf-dialog form > p { margin:16px 20px; }
.kf-btn:disabled { opacity:.55; cursor:wait; }
.kf-details { margin:0; }
.kf-details > div { padding:10px 0; border-bottom:1px solid var(--kf-line); }
.kf-details dt { color:var(--kf-muted); font-size:13px; }
.kf-details dd { margin:3px 0; overflow-wrap:anywhere; }
.kf-card p { margin:6px 0 12px; }
.kf-list-item p:last-child { margin-bottom:0; }
.kf-list-item > div:first-child { flex:1 1 180px; }
.kf-table td { overflow-wrap:anywhere; }
.kf-table .kf-btn { margin:2px; }
.kf-bottomnav button { display:grid; place-items:center; align-content:center; gap:2px; padding:0; border:0; background:#fff; font-size:11px; }
.kf-mobile-header img { display:block; width:78px; height:48px; object-fit:contain; }
.kf-mode { font-size:13px; color:var(--kf-muted); }
.kf-nav-group { margin-bottom:16px; }
@media (min-width:801px) { .kf-brand { width:130px; margin:0 auto 20px; } }
@media (max-width:800px) {
 .kf-list-item > div:first-child { flex:1 1 100%; }
 .kf-btn.small { min-height:44px; }
 .kf-card-header { flex-wrap:wrap; }
 .kf-split { flex-wrap:wrap; }
 .kf-badge { white-space:normal; }
 .kf-table .kf-btn { white-space:normal; }
 .kf-dialog { max-height:calc(100dvh - 24px); }
 .kf-certificate { padding:24px 12px; }
 .kf-certificate h1 { font-size:24px; overflow-wrap:anywhere; }
 .kf-card h2 { font-size:20px; }
 .kf-page-heading h1 { overflow-wrap:anywhere; }
}
@media (max-width:800px) {
 .kf-list-item > :first-child:not(.kf-btn):not(.kf-doc-icon) { flex:1 1 100%; width:100%; }
 .kf-list-item .kf-badge { max-width:100%; }
 .kf-list-item .kf-btn { flex:0 1 auto; }
 .kf-card .kf-tabs { margin-bottom:10px; }
}
.kf-bar-row { display:grid; grid-template-columns:100px minmax(0,1fr) 120px; align-items:center; gap:12px; padding:12px; border-bottom:1px solid var(--kf-line); }
.kf-bar-row:last-child { border-bottom:0; }
.kf-bar-row strong { text-align:right; white-space:nowrap; }
.kf-bar-track { display:block; height:7px; border-radius:3px; background:#eee; }
.kf-bar-track i { display:block; height:100%; border-radius:3px; background:var(--kf-amber); }
.kf-toolbar input,.kf-toolbar select { min-width:0; min-height:44px; padding:9px 12px; background:#fff; border:1px solid var(--kf-line); border-radius:6px; }
.kf-tabs { scrollbar-width:none; }
.kf-tabs::-webkit-scrollbar { display:none; }
.kf-bottomnav button.active { color:#9a5700; font-weight:700; }
@media (max-width:800px) { .kf-bar-row { grid-template-columns:minmax(0,1fr) 120px; } .kf-bar-row .kf-bar-track { grid-column:1/-1; grid-row:2; } }

/* Composições da operação aprovadas nas pranchas 03, 05, 06 e 09–11. */
.kf-search-actions .kf-search { flex:1 1 320px; }
.kf-search-actions .kf-btn { margin-left:auto; }
.kf-client-row > div > p { margin:2px 0; }
.kf-profile-heading { display:flex; align-items:center; gap:18px; margin-bottom:18px; padding:4px 0; }
.kf-profile-heading h2 { margin:0; font-size:34px; line-height:1.1; letter-spacing:-.04em; }
.kf-profile-heading p { margin:5px 0 0; }
.kf-profile-avatar { display:grid; place-items:center; flex:0 0 76px; width:76px; height:76px; border-radius:50%; background:#e2e3e5; font-size:27px; font-weight:700; }
.kf-profile-actions { display:flex; flex-wrap:wrap; gap:8px; margin-left:auto; }
.kf-client-overview { margin-top:16px; grid-template-columns:minmax(0,1.65fr) minmax(260px,.85fr); }
.kf-action-summary > div { display:flex; align-items:flex-start; gap:13px; padding:11px 0; border-bottom:1px solid var(--kf-line); }
.kf-action-summary > div:last-child { border-bottom:0; }
.kf-action-summary p { margin:0; }
.kf-status-icon { display:grid; place-items:center; flex:0 0 38px; width:38px; height:38px; border-radius:50%; background:#eef0f2; font-size:21px; font-weight:700; }
.kf-status-icon.amber { background:var(--kf-amber-soft); color:#9a5700; }
.kf-status-icon.received { background:var(--kf-green-soft); color:var(--kf-green); }
.kf-meeting-time { margin:0!important; font-size:31px; font-weight:750; letter-spacing:-.04em; }
.kf-agenda-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; padding:10px 14px; background:#fff; border:1px solid var(--kf-line); border-radius:var(--kf-radius); }
.kf-agenda-toolbar .kf-tabs { min-width:310px; border:0; }
.kf-agenda-layout { display:grid; grid-template-columns:minmax(0,1.8fr) minmax(280px,1fr); gap:16px; }
.kf-agenda-list { margin:0; padding:0; list-style:none; }
.kf-agenda-item { position:relative; display:grid; grid-template-columns:68px minmax(0,1fr) auto auto; align-items:center; gap:12px; padding:10px 0; }
.kf-agenda-item::before { content:""; position:absolute; left:72px; z-index:1; width:9px; height:9px; border-radius:50%; background:var(--kf-amber); }
.kf-agenda-item::after { content:""; position:absolute; top:0; bottom:0; left:76px; border-left:1px solid var(--kf-line); }
.kf-agenda-item time { font-weight:750; }
.kf-agenda-item > div { padding:13px 14px; border:1px solid var(--kf-line); border-radius:7px; background:#fff; }
.kf-agenda-item > div p { margin:3px 0 0; }
.kf-agenda-item.done { opacity:.65; }
.kf-agenda-list.compact .kf-agenda-item { grid-template-columns:50px minmax(0,1fr); padding-left:0; border-left:0; }
.kf-agenda-list.compact .kf-agenda-item::before,.kf-agenda-list.compact .kf-agenda-item::after { display:none; }
.kf-agenda-list.compact .kf-agenda-item time { margin-left:0; }
.kf-library-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:16px 0; }
.kf-library-toolbar .kf-toolbar { flex:1 1 320px; margin:0; }
.kf-library-toolbar .kf-tabs { flex:0 0 auto; border:0; }
.kf-document-list .kf-list-item { min-height:76px; }
.kf-doc-icon,.kf-form-icon { display:grid; place-items:center; flex:0 0 42px; width:42px; height:42px; border-radius:8px; background:#f1f1ef; font-size:24px; }
.kf-list-item > .kf-doc-icon { flex:0 0 42px; }
.kf-doc-icon.amber,.kf-form-icon { background:var(--kf-amber-soft); color:#985500; }
.kf-model-callout { display:flex; align-items:center; gap:16px; }
.kf-model-callout > div { flex:1; }
.kf-model-callout p { margin:2px 0; }
.kf-google-flow { min-height:48px; justify-content:space-between; }
.kf-form-card { display:flex; align-items:center; gap:16px; padding:16px; border:1px solid var(--kf-line); border-radius:7px; }
.kf-form-card > div:nth-child(2) { flex:1; }
.kf-form-card p { margin:2px 0; }
.kf-cert-top .kf-card { margin-bottom:0; }
.kf-next-action { border-color:#f2d8ae; background:var(--kf-amber-soft); }
.kf-process-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; margin:0; padding:4px 0; list-style:none; }
.kf-process-steps li { position:relative; display:flex; align-items:flex-start; gap:12px; }
.kf-process-steps li:not(:last-child)::after { content:""; position:absolute; top:18px; right:-18px; width:18px; border-top:1px solid #bdbdb9; }
.kf-process-steps li > span { display:grid; place-items:center; flex:0 0 38px; width:38px; height:38px; border:1px solid #d5d5d2; border-radius:50%; background:#f4f4f2; font-weight:700; }
.kf-process-steps li:first-child > span { border-color:var(--kf-amber); background:var(--kf-amber); color:#fff; }
.kf-process-steps p { margin:2px 0 0; color:var(--kf-muted); }
.kf-entry-layout { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(280px,.85fr); gap:16px; }
.kf-entry-row.selected { background:var(--kf-amber-soft); }
.kf-entry-row p { margin:2px 0; }
.kf-entry-note { margin:16px 4px 0!important; }
.kf-entry-actions { margin-top:18px; }
.kf-event-card { display:grid; grid-template-columns:minmax(220px,1.25fr) minmax(360px,1.7fr) auto; align-items:center; gap:20px; margin-bottom:16px; padding:20px; background:#fff; border:1px solid var(--kf-line); border-radius:var(--kf-radius); }
.kf-event-card > div:first-child > strong { font-size:18px; }
.kf-event-card p { margin:4px 0; }
.kf-event-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.kf-event-stats span { padding-left:14px; border-left:1px solid var(--kf-line); }
.kf-event-stats strong,.kf-event-stats small { display:block; }
.kf-event-stats small { color:var(--kf-muted); }

@media (max-width:800px) {
  .kf-search-actions .kf-btn,.kf-profile-actions { width:100%; margin-left:0; }
  .kf-profile-heading { align-items:flex-start; flex-wrap:wrap; }
  .kf-profile-heading h2 { font-size:25px; }
  .kf-profile-avatar { flex-basis:58px; width:58px; height:58px; font-size:21px; }
  .kf-profile-heading > div:nth-child(2) { flex:1; }
  .kf-profile-actions .kf-btn { flex:1 1 auto; }
  .kf-client-overview,.kf-agenda-layout,.kf-entry-layout { grid-template-columns:1fr; }
  .kf-agenda-toolbar { align-items:stretch; flex-direction:column; }
  .kf-agenda-toolbar .kf-tabs { min-width:0; }
  .kf-agenda-toolbar > .kf-row > * { flex:1 1 0; }
  .kf-agenda-item { grid-template-columns:50px minmax(0,1fr); padding:7px 0; }
  .kf-agenda-item::before { left:53px; }
  .kf-agenda-item::after { left:57px; }
  .kf-agenda-item > .kf-badge,.kf-agenda-item > .kf-row { grid-column:2; }
  .kf-agenda-item > .kf-row { flex-wrap:wrap; }
  .kf-agenda-item > .kf-row .kf-btn { flex:1 1 auto; }
  .kf-library-toolbar { display:block; }
  .kf-library-toolbar .kf-tabs { margin-top:8px; }
  .kf-document-list .kf-list-item > .kf-row { width:100%; }
  .kf-document-list .kf-list-item > .kf-row .kf-btn { flex:1 1 0; }
  .kf-form-card { align-items:flex-start; flex-wrap:wrap; }
  .kf-stack > .kf-form-card { min-width:0; max-width:100%; }
  .kf-form-card > div:nth-child(2) { flex:1 1 calc(100% - 60px); min-width:0; }
  .kf-form-card > .kf-row { width:100%; }
  .kf-form-card > .kf-row .kf-btn { flex:1 1 0; min-width:0; padding-inline:8px; white-space:normal; }
  .kf-google-flow { justify-content:flex-start; }
  .kf-model-callout { flex-wrap:wrap; }
  .kf-model-callout .kf-btn { width:100%; }
  .kf-process-steps { grid-template-columns:1fr; gap:12px; }
  .kf-process-steps li:not(:last-child)::after { top:36px; bottom:-12px; left:18px; width:0; height:auto; border-top:0; border-left:1px solid #bdbdb9; }
  .kf-event-card { grid-template-columns:1fr; gap:14px; }
  .kf-event-stats { grid-template-columns:1fr; gap:10px; }
  .kf-event-stats span { padding-left:0; border:0; }
}
