
:root{
  --bg:#eef3f1;
  --card:#ffffff;
  --text:#19202a;
  --muted:#5f6b7a;
  --line:#dbe3e8;
  --brand:#0c6e3d;
  --brand-2:#0a5b33;
  --brand-soft:#e8f3ec;
  --chip:#f6f8fa;
  --shadow:0 12px 35px rgba(15,23,42,.08);
  --radius:22px;
  --radius-sm:14px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:Inter,Segoe UI,Arial,sans-serif;
  background:linear-gradient(180deg,#edf2f1 0%,#f5f7f8 100%);
  color:var(--text);
  line-height:1.45;
}
[hidden]{display:none!important}
img{max-width:100%;display:block}
button,input,select,textarea{
  font:inherit;
}
a{color:inherit}
.auth-loading .page,
.auth-loading .hdr,
.auth-loading .nav,
.auth-loading .admin-dock,
.auth-loading .notif-popover{display:none}
.auth-loading .auth-gate{display:grid}
.auth-gate,
.password-gate{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:32px 16px;
  background:radial-gradient(circle at top,rgba(12,110,61,.10),transparent 40%),var(--bg);
}
.auth-card{
  width:min(100%,520px);
  background:var(--card);
  border:1px solid var(--line);
  border-radius:28px;
  box-shadow:var(--shadow);
  padding:28px;
}
.password-card{width:min(100%,560px)}
.auth-badge{
  display:inline-block;
  padding:8px 12px;
  border-radius:999px;
  background:var(--brand-soft);
  color:var(--brand);
  font-weight:800;
  font-size:12px;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.auth-title{
  margin:14px 0 8px;
  font-size:42px;
  line-height:1.05;
}
.auth-sub,.auth-footnote,.auth-inline-note{
  color:var(--muted);
  font-size:14px;
}
.auth-form{
  display:grid;
  gap:10px;
  margin-top:18px;
}
.auth-label{
  font-size:13px;
  font-weight:700;
  color:#253041;
}
.auth-input,
.sg-input,
.sg-select,
.sg-textarea,
#si{
  width:100%;
  min-height:46px;
  border:1px solid #ccd7df;
  border-radius:14px;
  background:#fff;
  color:var(--text);
  padding:12px 14px;
  outline:none;
}
.sg-textarea{min-height:120px;resize:vertical}
.auth-input:focus,.sg-input:focus,.sg-select:focus,.sg-textarea:focus,#si:focus{
  border-color:#6ea88b;
  box-shadow:0 0 0 4px rgba(12,110,61,.12);
}
.auth-options{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  margin-top:4px;
}
.auth-check{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  font-size:14px;
}
.auth-alert,
.auth-loading-box{
  border-radius:14px;
  padding:12px 14px;
  font-size:14px;
}
.auth-alert{background:#fff4f4;color:#9a1b1b;border:1px solid #efc4c4}
.auth-loading-box{background:#f5faf7;color:var(--brand);border:1px solid #c9e6d3}
.auth-submit,
.sg-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  padding:0 18px;
  border-radius:14px;
  border:1px solid transparent;
  background:var(--chip);
  cursor:pointer;
  font-weight:700;
  text-decoration:none;
}
.auth-submit,
.sg-btn-primary,
.mini-btn,
.hdr-btn,
.nav-tab.active{
  background:linear-gradient(180deg,var(--brand),var(--brand-2));
  color:#fff;
}
.sg-btn-secondary,
.kb-modal-close,
.nav-tab,
.hdr-user,
.admin-tool-card,
.mural-note,
.sg-section,
.admin-panel,
.srch,
.flt,
.kb-item,
.notif-popover{
  background:var(--card);
}
.sg-btn-secondary{
  color:var(--text);
  border-color:var(--line);
}
.hdr{
  position:sticky;
  top:0;
  z-index:20;
  background:linear-gradient(180deg,#0d7a45,#0c6e3d);
  color:#fff;
  box-shadow:0 10px 30px rgba(12,110,61,.18);
}
.hdr-in{
  width:min(1360px,calc(100% - 28px));
  margin:0 auto;
  min-height:92px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.hdr-brand{display:flex;align-items:center;gap:14px}
.hdr-ico{
  width:48px;height:48px;border-radius:16px;
  display:grid;place-items:center;
  background:rgba(255,255,255,.14);
  font-size:24px;
}
.hdr-t{font-size:29px;font-weight:800;letter-spacing:-.02em}
.hdr-s{font-size:14px;opacity:.9}
.hdr-right{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.hdr-user{
  display:flex;flex-direction:column;gap:2px;
  padding:10px 14px;border:1px solid rgba(255,255,255,.16);
  border-radius:16px;background:rgba(255,255,255,.14);color:#fff;
}
.hdr-user-name{font-weight:700}
.hdr-user-meta{font-size:12px;opacity:.88}
.hdr-btn{
  width:40px;height:40px;border:none;border-radius:12px;
  box-shadow:none;
}
.notif-btn{position:relative}
.hdr-badge{
  position:absolute;top:5px;right:5px;
  min-width:18px;height:18px;border-radius:999px;
  padding:0 5px;display:grid;place-items:center;
  background:#ffdd57;color:#1a1a1a;font-size:11px;font-weight:800;
}
.nav{
  width:min(1360px,calc(100% - 28px));
  margin:18px auto 0;
  padding:14px;
  display:flex;
  gap:10px;
  overflow:auto;
  background:rgba(255,255,255,.85);
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:var(--shadow);
}
.nav-tab{
  display:inline-flex;align-items:center;gap:8px;
  white-space:nowrap;
  min-height:48px;padding:0 18px;border-radius:16px;
  border:1px solid var(--line);
  color:#334155;cursor:pointer;font-weight:700;
}
.nav-ico{font-size:18px}
.admin-dock{
  width:min(1360px,calc(100% - 28px));
  margin:18px auto 0;
  padding:18px 22px;
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:var(--shadow);
}
.admin-dock-inner{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.admin-dock-title{font-size:18px;font-weight:800}
.admin-dock-sub{font-size:14px;color:var(--muted)}
.admin-dock-actions{display:flex;gap:10px;flex-wrap:wrap}
.page{
  width:min(1360px,calc(100% - 28px));
  margin:22px auto;
  display:none;
}
.page.active{display:block}
.section-title{
  font-size:18px;
  font-weight:800;
  letter-spacing:.02em;
  margin:18px 0 6px;
}
.section-desc{
  color:var(--muted);
  margin-bottom:12px;
}
.srch,.flt,.mural-note,.admin-tool-card,.sg-section,.notif-popover,.kb-item,.start-pane{
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:var(--shadow);
}
.srch{
  padding:14px 18px;
  margin-bottom:14px;
}
.sb{
  display:flex;
  align-items:center;
  gap:12px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#f8fafb;
  padding:0 12px;
}
.si-ico{font-size:18px}
#si{
  border:none;
  background:transparent;
  min-height:52px;
  box-shadow:none;
}
.flt{
  padding:14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin-bottom:18px;
}
.flt button,.flt .pill,.mini-btn{
  min-height:38px;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  cursor:pointer;
  font-weight:700;
}
.kb-item,
#kbAdminManagedList > div,
#kbList > div{
  padding:18px 18px 16px;
  margin-bottom:14px;
}
.kb-badge,.kb-badge-btn{
  display:inline-flex;align-items:center;gap:6px;
  padding:5px 10px;border-radius:999px;
  background:var(--brand-soft);color:var(--brand);font-size:12px;font-weight:800;
}
.kb-title,.kb-composer-title{
  font-size:18px;
  font-weight:800;
  margin:4px 0 8px;
}
.kb-meta,.muted{color:var(--muted);font-size:14px}
.sg-row,.sg-row3,.grid-2,.admin-actions-row,.upload-row,.notif-filters{
  display:grid;
  gap:14px;
}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.sg-row3{grid-template-columns:repeat(3,minmax(0,1fr))}
.sg-row,.admin-actions-row,.upload-row,.notif-filters{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.field-block,.field-block-wide,.upload-block{display:grid;gap:8px}
.sg-label{font-size:13px;font-weight:700;color:#253041}
.sg-tracked{font-size:12px;color:var(--muted)}
.sg-section,.admin-panel{
  padding:22px;
}
.admin-panel{
  margin:18px auto;
}
.admin-tool-card{
  padding:18px;
}
.admin-tool-title{font-size:16px;font-weight:800;margin-bottom:6px}
.admin-tool-text,.admin-help,.upload-meta{font-size:14px;color:var(--muted)}
.kb-composer-modal{
  position:fixed;
  inset:0;
  z-index:50;
  padding:26px;
  background:rgba(15,23,42,.32);
  overflow:auto;
}
.kb-modal-card{
  width:min(1220px,100%);
  margin:0 auto;
  background:#f8fafb;
  border:1px solid var(--line);
  border-radius:28px;
  box-shadow:0 30px 70px rgba(15,23,42,.22);
  position:relative;
}
.kb-modal-close{
  position:absolute;right:18px;top:18px;
  width:44px;height:44px;border-radius:14px;border:1px solid var(--line);
  background:#fff;color:#334155;font-size:24px;
}
.kb-composer-shell{padding:28px}
.kb-composer-head{
  display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;
  padding:22px;border-radius:24px;background:#fff;border:1px solid var(--line);margin-bottom:18px;
}
.kb-editor-hint-bar,.admin-help-box{
  background:var(--brand-soft);
  color:#184b31;
  border:1px solid #cce0d4;
  padding:14px 16px;
  border-radius:16px;
  margin-bottom:16px;
}
.admin-image-preview{
  min-height:160px;
  border:1px dashed #b9c7cf;
  border-radius:18px;
  background:#f7fafb;
  display:grid;
  place-items:center;
  color:var(--muted);
}
.mural-note{padding:16px 18px;color:#334155;background:#fdfefe}
.notif-popover{
  position:fixed;
  right:18px;top:102px;
  width:min(420px,calc(100vw - 24px));
  max-height:70vh;overflow:auto;
  padding:16px;z-index:55;
}
.lb-nav{
  display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px;
}
.lb-nav button{
  min-height:36px;padding:0 12px;border-radius:999px;border:1px solid var(--line);background:#fff
}
table{width:100%;border-collapse:collapse}
td,th{border:1px solid var(--line);padding:10px;vertical-align:top}
blockquote{
  margin:16px 0;
  padding:12px 14px;
  border-left:4px solid var(--brand);
  background:#f6faf7;
  border-radius:12px;
}
code,pre{
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
}
pre{
  overflow:auto;
  padding:14px;
  border-radius:16px;
  background:#111827;
  color:#e5eef9;
}
hr{border:none;border-top:1px solid var(--line);margin:20px 0}
@media (max-width:980px){
  .hdr-in{min-height:80px}
  .hdr-t{font-size:24px}
  .grid-2,.sg-row3{grid-template-columns:1fr}
  .kb-composer-modal{padding:12px}
  .kb-composer-shell{padding:18px}
}
@media (max-width:720px){
  .auth-title{font-size:34px}
  .hdr-right{width:100%}
  .hdr-user{order:-1;width:100%}
  .nav{padding:10px}
  .page,.nav,.admin-dock,.hdr-in{width:calc(100% - 18px)}
  .kb-modal-close{right:12px;top:12px}
}


/* === refined visual system v3 === */
.page-shell{
  display:grid;
  gap:18px;
}
.page-hero{
  position:relative;
  display:grid;
  gap:16px;
  padding:30px 34px;
  border:1px solid var(--line);
  border-radius:32px;
  background:linear-gradient(180deg,#f7fbf9 0%,#f2f7f5 100%);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.page-hero::after{
  content:"";
  position:absolute;
  inset:auto -58px -74px auto;
  width:220px;
  height:220px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(12,110,61,.12),rgba(12,110,61,0) 70%);
  pointer-events:none;
}
.page-eyebrow{
  color:var(--brand);
  font-size:13px;
  font-weight:900;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.page-hero-title{
  max-width:980px;
  font-size:52px;
  line-height:1.04;
  font-weight:900;
  letter-spacing:-.045em;
  color:#1c2430;
}
.page-hero-sub{
  max-width:860px;
  color:#506072;
  font-size:17px;
  line-height:1.72;
}
.page-hero-stats{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}
.hero-stat{
  display:grid;
  gap:2px;
  min-width:140px;
  padding:12px 14px;
  border-radius:18px;
  border:1px solid #d8e4dd;
  background:rgba(255,255,255,.72);
  backdrop-filter:blur(4px);
}
.hero-stat-value{
  font-size:24px;
  line-height:1;
  font-weight:900;
  color:#1d2632;
}
.hero-stat-label{
  color:#607080;
  font-size:12px;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.kb-toolbar{
  display:grid;
  gap:18px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:28px;
  background:var(--card);
  box-shadow:var(--shadow);
}
#pg-kb .srch,
#pg-kb .flt{margin:0;padding:0;border:none;background:transparent;box-shadow:none}
#pg-kb .flt{padding-top:2px}
#pg-kb .kb-managed-title{
  margin:4px 0 0;
  font-size:20px;
  font-weight:900;
  letter-spacing:-.02em;
  color:#1c2430;
}
#pg-kb .kb-managed-desc{margin:-8px 0 0;color:#5f6b7a}
#pg-kb #kbAdminInfo{margin-top:-2px}
.admin-form,
.kb-form-shell,
.kb-form-section,
.kb-form-grid,
.kb-form-grid-meta,
.kb-editor-card,
.adesao-builder-shell,
.adesao-grid,
.adesao-grid3,
.adesao-script-grid,
.admin-tools-grid,
.admin-history-list,
.system-health-list{display:grid;gap:18px}
.admin-gap{margin:0}
.admin-check{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:14px 16px;
  border:1px dashed #c8d4dc;
  border-radius:18px;
  background:#fafcfd;
  color:#253041;
  font-weight:700;
}
.admin-check input{margin-top:2px}
.upload-row{grid-template-columns:minmax(0,1fr) auto;align-items:center}
.upload-meta{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.subsection-title,
.adesao-mini,
.adesao-section-title,
.admin-history-title,
.admin-tool-title{
  font-size:13px;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--brand);
}
.start-split{display:grid;grid-template-columns:1fr 1.1fr;gap:18px;align-items:start}
.triage-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:22px}
.start-pane,
.sg-section,
.admin-panel,
.adesao-side,
.adesao-main,
.admin-tool-card,
.admin-history-item,
.admin-shelf,
.system-warning,
.meeting-profile-card,
.meeting-toolbar,
.meeting-group,
.triage-card,
.favorite-card,
.start-card,
.acard,
.kb-admin-card,
.notif-card,
.meeting-card,
.dica-accordion,
.sap-card,
.q-card,
#kbList > .kc{
  position:relative;
  border:1px solid var(--line);
  border-radius:24px;
  background:var(--card);
  box-shadow:var(--shadow);
}
.start-pane,
.sg-section,
.admin-panel,
.adesao-side,
.adesao-main{padding:20px}
.triage-card,
.start-card,
.sap-card,
.q-card{
  display:grid;
  gap:8px;
  padding:18px;
  text-align:left;
  cursor:pointer;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.favorite-card,
.admin-history-item,
.admin-shelf-item{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:18px;
}
.favorite-card{cursor:pointer;margin-bottom:12px}
.triage-card:hover,
.favorite-card:hover,
.start-card:hover,
.sap-card:hover,
.q-card:hover,
#kbList > .kc:hover,
.kb-admin-card:hover,
.acard:hover,
.adesao-model-card:hover{
  transform:translateY(-1px);
  box-shadow:0 16px 36px rgba(15,23,42,.10);
  border-color:#bfd3c7;
}
.triage-label,
.favorite-title,
.start-title,
.acard-title,
.kb-admin-title,
.notif-title,
.meeting-title,
.kb-card-title,
.dica-summary-title,
.adesao-model-title,
.admin-history-title{
  font-size:18px;
  line-height:1.22;
  font-weight:800;
  color:#1c2430;
}
.triage-desc,
.favorite-sub,
.start-why,
.acard-body,
.kb-admin-summary,
.kb-admin-source,
.meeting-notes,
.resource-meta-note,
.kb-card-sub,
.kb-editor-tip,
.dcard-body,
.dica-detail-title,
.dica-summary-cta,
.kb-admin-record-meta,
.adesao-model-desc,
.adesao-model-foot,
.adesao-section-intro,
.adesao-note,
.adesao-summary-note,
.admin-tool-text,
.admin-help,
.upload-meta,
.admin-shelf-meta,
.meeting-profile-sub,
.meeting-count,
.notif-body,
.notif-popover-sub{color:#556273;font-size:14px;line-height:1.65}
.favorite-meta,
.start-num,
.kb-admin-id,
.kb-article-id,
.kn,
.sap-code,
.q-name{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:52px;
  padding:7px 10px;
  border-radius:999px;
  background:var(--brand-soft);
  color:var(--brand);
  font-size:12px;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.start-kb{font-size:12px;font-weight:800;color:#7a8795;letter-spacing:.08em;text-transform:uppercase}
.empty-state,
.kb-empty-admin,
.meeting-empty,
.dica-empty,
.adesao-empty-state,
.admin-history-empty{
  display:grid;
  gap:8px;
  place-items:center;
  min-height:140px;
  padding:26px;
  border:1px dashed #cbd7dd;
  border-radius:22px;
  background:linear-gradient(180deg,#fbfcfd,#f7fafb);
  color:#506072;
  text-align:center;
}
.empty-state strong,
.kb-empty-admin strong,
.meeting-empty strong,
.dica-empty strong{font-size:17px;color:#1d2632}
.empty-state.compact{min-height:120px}
#avisosList,
#dicasList,
#atualizList,
#meetingsList,
#kbAdminManagedList,
#kbList,
.notif-popover-list,
.meeting-grid{display:grid;gap:18px}
.acard,
.kb-admin-card,
.notif-card,
.meeting-card{padding:18px}
.acard-head,
.kb-admin-actions,
.resource-actions,
.notif-actions-row,
.meeting-card-head,
.admin-inline-actions,
.meeting-participants,
.tags,
.kb-admin-meta,
.kb-article-status,
.notif-top,
.kb-composer-badges,
.notif-actions,
.meeting-profile-form,
.adesao-intro-top,
.adesao-actions-top,
.adesao-output-head,
.adesao-script-tools,
.kb-composer-head-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.acard-head{
  display:grid;
  grid-template-columns:auto 1fr auto auto;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
}
.acard-badge,
.badge-info,
.badge-importante,
.badge-urgente,
.badge-alerta,
.badge-important,
.badge-alert{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  letter-spacing:.05em;
  text-transform:uppercase;
  border:1px solid transparent;
}
.badge-info{background:#eef4ff;color:#3257c0;border-color:#c8d7ff}
.badge-importante,.badge-important{background:#fff4ea;color:#db6500;border-color:#ffd4ac}
.badge-urgente{background:#fff0f0;color:#d12626;border-color:#ffc8c8}
.badge-alerta,.badge-alert{background:#fff8df;color:#9a6500;border-color:#f1dc9c}
.acard-date,.notif-date,.kb-admin-meta,.meeting-time{color:#7a8795;font-size:12px;font-weight:700}
.admin-inline-actions{justify-content:flex-end}
.admin-edit-btn,
.admin-item-del,
.kb-admin-inline-btn,
.resource-kb-btn,
.resource-link-btn,
.kb-more-btn,
.attachment-open-btn,
.kb-head-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:0 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  color:#263241;
  font-weight:700;
  cursor:pointer;
  text-decoration:none;
}
.admin-edit-btn,
.resource-kb-btn,
.resource-link-btn,
.kb-admin-inline-btn,
.kb-head-chip.active{background:linear-gradient(180deg,var(--brand),var(--brand-2));color:#fff;border-color:transparent}
.admin-item-del{color:#cc3636;border-color:#f0cbcb;background:#fff7f7}
.fav-toggle,
.fav-star,
.kv{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  color:#98a1ad;
  cursor:pointer;
}
.fav-toggle.is-fav,.fav-star.starred{color:#f0b500;background:#fff7cc;border-color:#efd680}
.kb-admin-card-head,
.kh{display:grid;grid-template-columns:auto 1fr auto auto;gap:14px;align-items:start}
.ki{display:grid;gap:8px}
.kt{font-size:20px;line-height:1.25;font-weight:800;color:#1d2632}
.kc{overflow:hidden;padding:18px 18px 16px;margin-bottom:0}
.kc.ex .kv{transform:rotate(180deg)}
.kb{margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}
.kb-article-summary,
.kb-article-block,
.kb-fallback,
.kb-images,
.kb-inline-images,
.kb-more-wrap,
.kb-form-section,
.kb-form-card,
.kb-edit-card,
.dica-detail-card,
.adesao-intro-card,
.adesao-evidence-box,
.adesao-script-box,
.adesao-block{
  margin-top:0;
  padding:18px;
  border-radius:20px;
  border:1px solid #e1e8ed;
  background:#fbfcfd;
}
.kb-form-section,
.kb-form-card,
.kb-edit-card,
.adesao-intro-card,
.adesao-evidence-box,
.adesao-script-box,
.adesao-block{background:#fff;box-shadow:0 10px 24px rgba(15,23,42,.05)}
.kb-form-section-meta{background:linear-gradient(180deg,#ffffff 0%,#fbfcfd 100%)}
.kb-section-head{display:grid;gap:6px}
.kb-section-title{font-size:18px;font-weight:900;color:#1c2430;letter-spacing:-.02em}
.kb-section-desc,.kb-composer-subtitle{color:#5b6775;font-size:14px;line-height:1.7}
.kb-form-grid-meta,.kb-form-grid,.adesao-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.adesao-grid3{grid-template-columns:repeat(3,minmax(0,1fr))}
.kb-form-grid .field-block-wide,
.kb-form-grid-meta .field-block-wide,
.kb-form-grid .kb-hidden-source,
.kb-form-grid-meta .kb-hidden-source,
.kb-form-grid .adesao-field-full,
.kb-form-grid-meta .adesao-field-full,
.adesao-field-full{grid-column:1 / -1}
.kb-html{font-size:15px;line-height:1.72;color:#263241}
.kb-html p:first-child{margin-top:0}
.kb-html img,
.attachment-image-card img,
#lbImg{border-radius:18px;border:1px solid #dbe3e8;box-shadow:0 12px 24px rgba(15,23,42,.08)}
.kb-html table{background:#fff;border-radius:14px;overflow:hidden}
.kb-article-block-title{font-size:13px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;color:var(--brand);margin-bottom:8px}
.kb-composer-modal,
.kb-composer-overlay{
  position:fixed;
  inset:0;
  z-index:80;
  display:grid;
  place-items:center;
  padding:18px;
  background:rgba(15,23,42,.48);
  backdrop-filter:blur(6px);
  overflow:auto;
}
.kb-modal-card,
.kb-composer-dialog{
  width:min(1260px,100%);
  max-height:calc(100vh - 36px);
  overflow:auto;
  border-radius:28px;
  border:1px solid #d5e0e6;
  background:#f5f8f8;
  box-shadow:0 32px 72px rgba(15,23,42,.28);
  position:relative;
}
.kb-modal-close,
.kb-close-btn{
  position:absolute;
  top:18px;
  right:18px;
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  color:#334155;
  font-size:24px;
  cursor:pointer;
}
.kb-composer-shell,.kb-composer-body{padding:24px}
.kb-composer-head,
.kb-composer-head-modern{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
  padding:24px;
  border-bottom:1px solid #e0e7eb;
  background:linear-gradient(180deg,#ffffff,#f5f8f8);
  border-radius:28px 28px 0 0;
}
.kb-composer-head-copy{display:grid;gap:8px;max-width:760px}
.kb-composer-note code{padding:2px 6px;border-radius:8px;background:#eff5f1;color:#174f31}
.kb-editor-hint-bar,.admin-help-box,.adesao-note{
  background:var(--brand-soft);
  color:#184b31;
  border:1px solid #cce0d4;
  padding:14px 16px;
  border-radius:16px;
  margin-bottom:0;
}
.kb-editor-shell{
  display:grid;
  gap:0;
  border:1px solid #d7e1e6;
  border-radius:18px;
  overflow:hidden;
  background:#fff;
}
.kb-editor-shell.active{box-shadow:0 0 0 4px rgba(12,110,61,.10);border-color:#7fb192}
.kb-editor-toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;padding:12px;border-bottom:1px solid #e1e8ed;background:#f8fafb}
.kb-editor-select,.kb-editor-btn{min-height:36px;border:1px solid #d4dce3;border-radius:12px;background:#fff;color:#23303f}
.kb-editor-select{padding:0 10px;min-width:110px}
.kb-editor-btn{padding:0 12px;font-weight:700;cursor:pointer}
.kb-editor-visual,.kb-editor-source{min-height:220px;padding:16px 18px;font-size:15px;line-height:1.72;color:#223041;background:#fff}
.kb-editor-visual:empty:before{content:attr(data-placeholder);color:#97a2ae}
.kb-editor-source{border:none;resize:vertical;display:none}
.kb-editor-shell.is-source .kb-editor-source{display:block}
.kb-editor-shell.is-source .kb-editor-visual{display:none}
.attachment-image-card{margin-top:14px;display:grid;gap:12px}
.dica-accordion{overflow:hidden;background:#fff}
.dica-accordion summary{display:grid;grid-template-columns:auto 1fr auto auto;gap:14px;align-items:center;list-style:none;cursor:pointer;padding:18px}
.dica-accordion summary::-webkit-details-marker{display:none}
.dica-date-badge{display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;border-radius:999px;background:#eef4ff;color:#3257c0;font-size:11px;font-weight:800}
.dica-detail{padding:0 18px 18px;border-top:1px solid var(--line)}
.dica-detail-grid{display:grid;gap:14px;padding-top:16px}
.dica-summary-cta{justify-self:end;font-weight:800;font-size:13px;text-transform:uppercase;letter-spacing:.06em}
.dica-accordion[open] .dica-summary-cta{color:var(--brand)}

.kb-hidden-source{display:none !important}
.person-picker{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;padding:14px;border:1px solid var(--line);border-radius:16px;background:#f8fbfa;max-height:260px;overflow:auto}
.person-picker-empty{padding:14px;border:1px dashed var(--line);border-radius:14px;background:#fff;color:#667085;font-size:13px}
.person-option{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border:1px solid #d7e1e6;border-radius:14px;background:#fff;cursor:pointer;transition:.18s ease}
.person-option:hover{border-color:#98b8a6;box-shadow:0 8px 16px rgba(15,23,42,.05)}
.person-option input{margin-top:3px;accent-color:var(--brand)}
.person-option strong{display:block;font-size:14px;color:#1f2937}
.person-option small{display:block;font-size:12px;color:#667085;line-height:1.5}
.person-option.is-selected{border-color:#7fb192;background:#eff8f2;box-shadow:0 0 0 3px rgba(12,110,61,.08)}
.person-option-meta{display:grid;gap:2px}
.meeting-profile-card{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.meeting-profile-title{font-size:17px;font-weight:800}
.meeting-card-head{justify-content:space-between;margin-bottom:10px}
.meeting-chip{padding:6px 10px;border-radius:999px;background:#f5f8fa;border:1px solid var(--line);font-size:12px;font-weight:700;color:#465363}
.notif-popover{
  position:fixed;
  right:18px;
  top:102px;
  width:min(430px,calc(100vw - 24px));
  max-height:70vh;
  overflow:auto;
  padding:16px;
  z-index:70;
}
.notif-popover-card{display:grid;gap:16px}
.notif-popover-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.notif-popover-title{font-size:20px;font-weight:900;letter-spacing:-.02em;color:#1c2430}
.notif-card.unread{border-color:#bfd6c7;box-shadow:0 12px 28px rgba(12,110,61,.10)}
.notif-title{margin-bottom:6px}
.notif-kind{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--brand)}
.notif-close-btn{background:#fff!important;color:#334155!important}
.sap-card,
.q-card{display:flex;align-items:center;gap:14px;min-height:74px}
.sap-code{background:#e8f5ec;color:#0b6d3c;min-width:86px;border-radius:10px}
.sap-name,
.q-desc{color:#243142;font-size:14px;line-height:1.6}
.sap-card .fav-toggle,
.q-card .fav-toggle{margin-left:auto;flex:0 0 auto}
.q-card::before{content:"";position:absolute;left:0;top:14px;bottom:14px;width:4px;border-radius:999px;background:#7c3aed}
.q-name{background:#f2ecff;color:#6b21d8;padding-left:16px}
.adesao-layout{display:grid;grid-template-columns:340px minmax(0,1fr);gap:18px;align-items:start}
.adesao-model-card{
  display:grid;
  gap:10px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:22px;
  background:#fff;
  box-shadow:0 8px 20px rgba(15,23,42,.04);
  cursor:pointer;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.adesao-model-card.active{border-color:#7fb192;box-shadow:0 0 0 3px rgba(12,110,61,.10),0 16px 34px rgba(12,110,61,.08)}
.adesao-model-head{display:flex;gap:12px;align-items:flex-start;justify-content:space-between}
.adesao-intro-title{font-size:24px;font-weight:900;letter-spacing:-.03em;line-height:1.15;color:#1c2430}
.adesao-intro-sub{color:#506072;font-size:16px;line-height:1.7}
.adesao-block{overflow:hidden}
.adesao-block summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none;padding:18px 20px;font-size:18px;font-weight:900;color:#1d2632}
.adesao-block summary::-webkit-details-marker{display:none}
.adesao-block-body{padding:0 20px 20px;border-top:1px solid #e6edf1}
#adesaoScriptText{
  margin-top:14px;
  padding:16px 18px;
  border-radius:18px;
  border:1px solid #dce5ea;
  background:#fbfcfd;
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  white-space:pre-wrap;
  line-height:1.75;
  color:#223041;
}
.sg-btn-danger{background:#fff4f4;color:#a51d2d;border-color:#efc4c4}
.sg-proto-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:12px}
.sg-proto-remove{min-width:40px;height:40px;align-self:center;border:1px solid #efc4c4;border-radius:12px;background:#fff6f6;color:#bf1e2e;font-weight:900;cursor:pointer}
.sg-extras{display:flex;gap:10px;flex-wrap:wrap}
.sg-extra-check{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 14px;border:1px solid var(--line);border-radius:999px;background:#fff;color:#334155;font-weight:700}
.sg-extra-fields{display:grid;gap:12px;margin-top:14px}
.admin-tools-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.admin-history-list{margin-top:18px}
.admin-history-item + .admin-history-item,
.admin-shelf-item + .admin-shelf-item{border-top:1px solid #e6edf1}
.admin-shelf summary{list-style:none;cursor:pointer;padding:16px 18px;font-weight:900;color:#1d2632}
.admin-shelf summary::-webkit-details-marker{display:none}
.admin-shelf-list{display:grid;gap:0;border-top:1px solid #e6edf1}
.system-warning{
  width:min(1360px,calc(100% - 28px));
  margin:16px auto 0;
  padding:16px 18px;
  color:#a05b00;
  background:#fff9ef;
  border-color:#f0d7a6;
}
.toast{
  position:fixed;
  left:50%;
  bottom:20px;
  transform:translateX(-50%) translateY(12px);
  padding:14px 18px;
  z-index:120;
  color:#fff;
  background:rgba(17,24,39,.92);
  border:none;
  border-radius:16px;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .18s ease,transform .18s ease,visibility .18s ease;
}
.toast.show{opacity:1;visibility:visible;pointer-events:auto;transform:translateX(-50%) translateY(0)}
.lb{
  position:fixed;
  inset:0;
  z-index:90;
  padding:26px;
  background:rgba(15,23,42,.65);
  border:none;
  border-radius:0;
  box-shadow:none;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  display:grid;
  grid-template-columns:minmax(48px,64px) minmax(0,1fr) minmax(48px,64px);
  grid-template-rows:auto minmax(0,1fr) auto;
  align-items:center;
  justify-items:center;
  gap:18px;
  transition:opacity .18s ease,visibility .18s ease;
}
.lb.show{opacity:1;visibility:visible;pointer-events:auto}
.lb-close,.lb-prev,.lb-next{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border:none;
  border-radius:14px;
  background:#fff;
  color:#223041;
  cursor:pointer;
  box-shadow:0 12px 30px rgba(15,23,42,.18);
}
.lb-close{position:absolute;top:24px;right:24px}
.lb-prev{grid-column:1;grid-row:2}
.lb-next{grid-column:3;grid-row:2}
.lb-counter{grid-column:2;grid-row:3;padding:8px 12px;border-radius:999px;background:rgba(15,23,42,.55);backdrop-filter:blur(8px);color:#fff;font-weight:800}
.btt{
  position:fixed;
  right:18px;
  bottom:18px;
  width:44px;
  height:44px;
  border:none;
  border-radius:14px;
  background:linear-gradient(180deg,var(--brand),var(--brand-2));
  color:#fff;
  font-size:18px;
  font-weight:900;
  box-shadow:0 14px 30px rgba(12,110,61,.28);
  z-index:40;
  cursor:pointer;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(10px);
  transition:opacity .18s ease,transform .18s ease,visibility .18s ease;
}
.btt.show{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0)}
.nav-tab-admin{margin-left:auto}
.notif-toolbar-popover{padding-top:2px}
.adesao-primary-copy{min-width:140px}
@media (max-width:1180px){
  .page-hero-title{font-size:42px}
  .triage-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .start-split,
  .adesao-layout,
  .adesao-script-grid,
  .admin-tools-grid,
  .kb-form-grid,
  .kb-form-grid-meta,
  .grid-2,
  .sg-row3{grid-template-columns:1fr}
  .kh,
  .acard-head,
  .dica-accordion summary,
  .kb-admin-card-head{grid-template-columns:1fr}
  .admin-inline-actions,
  .kb-admin-actions,
  .resource-actions,
  .meeting-card-head{justify-content:flex-start}
}
@media (max-width:920px){
  .upload-row,
  .sg-proto-row,
  .adesao-grid,
  .adesao-grid3{grid-template-columns:1fr}
}
@media (max-width:720px){
  .page,.nav,.admin-dock,.hdr-in{width:calc(100% - 18px)}
  .page-hero{padding:24px 20px}
  .page-hero-title{font-size:34px}
  .page-hero-sub{font-size:16px}
  .kb-toolbar,
  .adesao-side,
  .adesao-main,
  .admin-panel,
  .kb-form-section,
  .sg-section,
  .auth-card,
  .kb-composer-shell,
  .kb-composer-body{padding:18px}
  .hdr-right{width:100%}
  .hdr-user{order:-1;width:100%}
  .admin-history-item,
  .admin-shelf-item,
  .sap-card,
  .q-card,
  .favorite-card,
  .meeting-profile-card{flex-wrap:wrap}
  .lb{padding:18px 12px 22px;grid-template-columns:44px minmax(0,1fr) 44px;gap:12px}
  #lbImg{max-width:100%;max-height:70vh;border-radius:16px}
  .lb-close{top:14px;right:14px}
  .lb-close,.lb-prev,.lb-next{width:40px;height:40px;border-radius:12px}
}
