:root{
  --nw-navy:#071b49;
  --nw-dark:#061634;
  --nw-blue:#146af5;
  --nw-cyan:#38bdf8;
  --nw-violet:#0B255F;
  --nw-bg:#f4f7fb;
  --nw-card:#ffffff;
  --nw-soft:#f8fbff;
  --nw-line:#dfe8f4;
  --nw-line-2:#e8eef6;
  --nw-text:#10213d;
  --nw-muted:#697894;
  --nw-green:#16a34a;
  --nw-red:#dc2626;
  --nw-shadow:0 22px 55px rgba(7,27,73,.06);
  --nw-shadow-2:0 28px 80px rgba(7,27,73,.08);
  --nw-radius:24px;
}
*{box-sizing:border-box}
html{min-height:100%}
body{margin:0;min-height:100vh;font-family:"Plus Jakarta Sans",Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;letter-spacing:-.01em;color:var(--nw-text);background:var(--nw-bg)}
a{color:inherit;text-decoration:none}.app-shell{min-height:100vh}.app-header{height:auto;position:relative;z-index:20;background:rgba(255,255,255,.88);backdrop-filter:blur(16px);border-bottom:1px solid rgba(16,33,61,.07)}
.app-topbar,.context-bar-inner,.app-main{width:calc(100% - 160px);max-width:1580px;margin-left:auto;margin-right:auto}.app-topbar{height:82px;display:flex;align-items:center;justify-content:space-between;gap:18px}.brand-wrap{display:flex;align-items:center;min-width:190px}.nw-logo{display:grid;gap:0;line-height:1}.nw-logo span{font-size:11px;text-transform:uppercase;letter-spacing:.34em;color:#6f84a2;font-weight:800}.nw-logo strong{font-size:28px;letter-spacing:.22em;text-transform:uppercase;color:var(--nw-navy);font-weight:900}.app-nav{display:flex;align-items:center;justify-content:center;gap:8px;flex:0 0 auto}.nav-link{height:40px;display:inline-flex;align-items:center;border-radius:14px;padding:0 13px;font-size:13px;font-weight:700;color:#334155}.nav-link.active,.nav-link:hover{background:#eef4ff;color:var(--nw-navy)}.account-actions{display:flex;align-items:center;gap:10px;white-space:nowrap}.account-chip,.lang-chip,.org-switch select{height:40px;min-height:40px;border-radius:999px;font-size:13px;font-weight:700;background:#fff;border:1px solid #dfe9ee;color:#334155;display:inline-flex;align-items:center;padding:0 16px}.lang-chip:hover,.account-chip:hover{background:#f8fbff}.org-switch select{padding:0 36px 0 14px;max-width:220px}.context-bar{background:#fbfdfd;border-top:1px solid rgba(16,33,61,.02);border-bottom:1px solid #e6eef2;padding:10px 0}.context-bar-inner{display:flex;gap:10px;align-items:center;justify-content:flex-start;flex-wrap:wrap}.ctx-pill{height:30px;display:inline-flex;align-items:center;gap:7px;border:1px solid #dfe9ee;background:#fff;border-radius:999px;font-size:12px;padding:0 12px;color:#63748f}.ctx-pill strong{font-size:10px;text-transform:uppercase;letter-spacing:.13em;color:#8797ab}.app-main{padding-top:34px;padding-bottom:64px}.top{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:8px 0 22px}.eyebrow{margin:0 0 9px;color:#7d91a2;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.16em}.top h1{margin:0;color:var(--nw-dark);font-size:42px;line-height:.98;letter-spacing:-.06em}.muted{color:var(--nw-muted);line-height:1.55}.top .muted{margin:12px 0 0;font-size:15px}.top-actions{display:flex;gap:12px;align-items:center;justify-content:flex-end}.card,.panel,.metric-card,.content-card{background:var(--nw-card);border:1px solid var(--nw-line);border-radius:var(--nw-radius);box-shadow:var(--nw-shadow);overflow:hidden}.card,.panel{padding:24px}.panel h2,.card h2{margin:0 0 12px;color:var(--nw-dark);font-size:19px;line-height:1.1;letter-spacing:-.04em}.panel h3,.card h3{margin:16px 0 8px;color:var(--nw-dark);font-size:15px}.panel p,.card p{color:#52627a;line-height:1.58}.grid{display:grid;gap:18px}.grid.two{grid-template-columns:1fr 1fr}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:18px}.metric-card{padding:22px;background:linear-gradient(180deg,#fff 0%,#f8fbff 100%)}.metric-card span{display:block;color:#7d91a2;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.14em}.metric-card strong{display:block;color:var(--nw-dark);font-size:34px;line-height:1;margin:12px 0 8px;letter-spacing:-.05em}.metric-card small{color:var(--nw-muted);font-size:13px}.segment-list{display:grid;gap:12px}.segment-list div{display:grid;grid-template-columns:minmax(150px,230px) 1fr 42px;gap:14px;align-items:center;color:var(--nw-text)}.segment-list strong{font-size:14px}.segment-list em{height:8px;border-radius:999px;background:#eef3f8;overflow:hidden}.segment-list em i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,var(--nw-navy) 0%,var(--nw-blue) 58%,var(--nw-blue-2) 100%)}.segment-list span{font-weight:900;text-align:right}.table-wrap,.table{overflow-x:auto;border-radius:18px}table{width:100%;border-collapse:separate;border-spacing:0 8px}th{font-size:11px;letter-spacing:.13em;text-transform:uppercase;color:#7d91a2;white-space:nowrap;text-align:left;padding:0 14px 6px}td{vertical-align:middle;padding:14px;background:#fbfdff;border-top:1px solid var(--nw-line-2);border-bottom:1px solid var(--nw-line-2);font-size:14px}tr td:first-child{border-left:1px solid var(--nw-line-2);border-radius:16px 0 0 16px}tr td:last-child{border-right:1px solid var(--nw-line-2);border-radius:0 16px 16px 0}td span{color:#7c8da4}.badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:7px 11px;font-weight:900;font-size:12px;border:1px solid #cfe0ff;background:#edf4ff;color:#1d4ed8}.badge.green{border-color:#bbf7d0;background:#f0fdf4;color:#15803d}.badge.red{border-color:#fecaca;background:#fff7f7;color:#b91c1c}.badge.gray{border-color:#e2e8f0;background:#f8fafc;color:#475569}.searchbar{display:grid;grid-template-columns:minmax(220px,1fr) 230px 150px;gap:12px;margin-bottom:18px}label{display:grid;gap:8px;margin:0;color:#102a43;font-size:13px;font-weight:850}input,select,textarea{width:100%;min-height:48px;border-radius:15px;border:1px solid #d8e3f2;background:#fff;color:var(--nw-dark);font-size:14px;font-weight:650;padding:0 14px;outline:none;font-family:inherit}textarea{padding-top:13px;min-height:120px;resize:vertical}input:focus,select:focus,textarea:focus{border-color:#9fc1ff;box-shadow:0 0 0 4px rgba(20,106,245,.08)}button,.btn{min-height:48px;display:inline-flex;align-items:center;justify-content:center;border-radius:15px;border:1px solid transparent;background:linear-gradient(90deg,var(--nw-navy) 0%,var(--nw-blue) 58%,var(--nw-blue-2) 100%);color:#fff;font-weight:900;font-size:14px;padding:0 18px;cursor:pointer;box-shadow:0 16px 34px rgba(20,106,245,.18);font-family:inherit}.btn.secondary,button.secondary,button.btn.secondary{background:#fff;color:var(--nw-dark);border-color:#d8e3f2;box-shadow:none}.btn.danger,button.danger{background:#fff2f2;color:#8b1111;border-color:#ffb4b4;box-shadow:none}.actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:18px}.alert{margin-bottom:18px;padding:16px 18px;border-radius:18px;border:1px solid rgba(22,163,74,.22);background:#f0fdf4;color:#166534;font-weight:750}.alert.error{border-color:rgba(220,38,38,.22);background:#fff7f7;color:#991b1b}.empty-state{padding:28px;border:1px dashed #cad7e7;border-radius:20px;background:#fbfdff;color:#6f7f96;text-align:center;font-weight:700}.timeline{display:grid;gap:14px}.timeline-item{padding:18px;border:1px solid var(--nw-line-2);border-radius:20px;background:#fbfdff}.timeline-meta{color:#7d91a2;font-size:12px;font-weight:800;margin-bottom:8px}.timeline-body{color:#243653;line-height:1.62;white-space:pre-wrap}.codebox,code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.codebox{white-space:pre-wrap;background:#061634;color:#dcecff;border-radius:18px;padding:16px;overflow:auto;border:1px solid #10295f;font-size:12px;line-height:1.55}code{display:inline-block;background:#eef4ff;color:#0b2b69;border:1px solid #cfe0ff;border-radius:10px;padding:7px 9px;margin:3px 0}.api-token-box{padding:16px;border-radius:18px;background:#f8fbff;border:1px solid var(--nw-line-2)}.login-wrap{min-height:100vh;display:grid;place-items:center;padding:32px;background:radial-gradient(circle at 70% 15%,rgba(56,189,248,.15),transparent 32%),linear-gradient(180deg,#f7faff 0%,#eef4fb 100%)}.login-card{width:min(560px,100%);padding:34px;border-radius:30px;background:#fff;border:1px solid var(--nw-line);box-shadow:var(--nw-shadow-2)}.login-card h1{margin:8px 0 10px;color:var(--nw-dark);font-size:42px;line-height:.98;letter-spacing:-.06em}.login-card p{color:#52627a;line-height:1.58}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-grid .full{grid-column:1/-1}summary{cursor:pointer;color:var(--nw-dark);font-weight:800}.detail-grid{grid-template-columns:.8fr 1.2fr}.mini-note{font-size:12px;color:#71839d}.lux-card{position:relative;overflow:hidden;background:radial-gradient(circle at 100% 0%,rgba(20,106,245,.08),transparent 34%),#fff}.lux-card:before{content:"";position:absolute;inset:0;background:linear-gradient(120deg,transparent 0%,rgba(255,255,255,.65) 45%,transparent 70%);transform:translateX(-130%);transition:transform .8s ease}.lux-card:hover:before{transform:translateX(130%)}.lux-card>*{position:relative}.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:14px}@media(max-width:1260px){.app-topbar,.context-bar-inner,.app-main{width:calc(100% - 48px)}.app-topbar{height:auto;min-height:82px;flex-wrap:wrap;padding:16px 0}.app-nav{order:3;width:100%;justify-content:flex-start;overflow:auto}.top h1{font-size:34px}.metrics{grid-template-columns:repeat(2,1fr)}.grid.two,.grid.three,.detail-grid{grid-template-columns:1fr}.searchbar{grid-template-columns:1fr}}
@media(max-width:720px){.app-topbar,.context-bar-inner,.app-main{width:calc(100% - 28px)}.account-actions{width:100%;justify-content:space-between;flex-wrap:wrap}.org-switch{width:100%}.org-switch select{max-width:none;width:100%}.top{display:block}.top h1{font-size:30px}.metrics{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.card,.panel{padding:18px}.nw-logo strong{font-size:22px}.nav-link{padding:0 10px}}
.badge.blue{border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8}.badge.amber{border-color:#fde68a;background:#fffbeb;color:#92400e}.crm-command{padding:18px}.filter-grid{display:grid;grid-template-columns:2fr repeat(5,minmax(150px,1fr));gap:12px;align-items:end}.filter-grid .wide{grid-column:span 2}.filter-actions{display:flex;gap:10px;align-items:end}.crm-summary-strip{display:flex;gap:12px;overflow:auto;margin:18px 0}.crm-summary-strip>div,.crm-summary-strip>a{min-width:150px;background:#fff;border:1px solid var(--nw-line);border-radius:20px;padding:16px;box-shadow:var(--nw-shadow)}.crm-summary-strip strong{display:block;font-size:24px;color:var(--nw-dark);letter-spacing:-.04em}.crm-summary-strip span{display:block;margin-top:4px;color:#6f7f96;font-size:12px;font-weight:800}.contact-hero{display:grid;grid-template-columns:1.5fr auto repeat(3,minmax(140px,1fr));gap:16px;align-items:center;margin-bottom:18px}.contact-hero h2{font-size:30px;margin:0 0 8px}.contact-hero div:not(:first-child):not(:nth-child(2)){display:grid;gap:4px}.contact-hero div:not(:first-child):not(:nth-child(2)) strong{font-size:17px;color:var(--nw-dark)}.contact-hero div:not(:first-child):not(:nth-child(2)) span{font-size:12px;color:#7d91a2;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.contact-layout{grid-template-columns:1.35fr .65fr}.crm-form textarea[name="question_message"]{min-height:90px}.mini-list{display:grid;gap:10px}.mini-list div{border:1px solid var(--nw-line-2);border-radius:16px;padding:12px;background:#fbfdff}.mini-list strong{display:block;font-size:13px;color:var(--nw-dark)}.mini-list span{display:block;margin-top:5px;color:#7d91a2;font-size:12px}.crm-timeline{max-height:760px;overflow:auto;padding-right:4px}.pipeline-board{display:grid;grid-template-columns:repeat(4,minmax(280px,1fr));gap:18px;align-items:start;overflow:auto;padding-bottom:8px}.pipeline-column{min-width:280px;background:#fff;border:1px solid var(--nw-line);border-radius:24px;padding:14px;box-shadow:var(--nw-shadow)}.pipeline-column header{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.pipeline-column header strong{display:block;font-size:15px;color:var(--nw-dark)}.pipeline-column header span{display:block;margin-top:4px;color:#7d91a2;font-size:12px;font-weight:800}.pipeline-column header a{font-size:12px;font-weight:900;color:var(--nw-blue);background:#eef4ff;border-radius:999px;padding:8px 10px}.lead-card{display:grid;gap:6px;padding:13px;border:1px solid var(--nw-line-2);border-radius:18px;background:#fbfdff;margin-bottom:10px}.lead-card:hover{border-color:#bcd3ff;background:#f6faff}.lead-card strong{font-size:14px;color:var(--nw-dark)}.lead-card span{font-size:12px;color:#41536d;font-weight:800}.lead-card em{font-style:normal;color:#7d91a2;font-size:12px}.lead-card small{font-size:11px;color:#8797ab;font-weight:800}.pipeline-empty{padding:18px;border-radius:16px;background:#f8fafc;color:#94a3b8;text-align:center;font-weight:800}.segments-grid .panel{min-height:280px}.segment-list.detailed a{display:grid;grid-template-columns:minmax(160px,240px) 1fr 48px;gap:14px;align-items:center;padding:8px;border-radius:14px}.segment-list.detailed a:hover{background:#f8fbff}.segment-list.detailed a strong{font-size:13px}.segment-list.detailed a em{height:8px;border-radius:999px;background:#eef3f8;overflow:hidden}.segment-list.detailed a em i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,var(--nw-navy) 0%,var(--nw-blue) 58%,var(--nw-blue-2) 100%)}.segment-list.detailed a span{text-align:right;font-weight:900;color:var(--nw-dark)}
@media(max-width:1400px){.filter-grid{grid-template-columns:repeat(3,1fr)}.filter-grid .wide{grid-column:span 3}.contact-hero{grid-template-columns:1fr 1fr}.pipeline-board{grid-template-columns:repeat(2,minmax(280px,1fr))}.contact-layout{grid-template-columns:1fr}}
@media(max-width:720px){.filter-grid{grid-template-columns:1fr}.filter-grid .wide{grid-column:span 1}.filter-actions{display:grid}.contact-hero{grid-template-columns:1fr}.pipeline-board{grid-template-columns:1fr}.crm-summary-strip{display:grid}.segment-list.detailed a{grid-template-columns:1fr 60px}.segment-list.detailed a em{grid-column:1/-1;order:3}}

.danger-zone{border-color:rgba(190,40,70,.18);background:linear-gradient(180deg,#fff,#fff6f7)}
.muted-panel{background:#f8fafc;border-color:#e5e7eb}
.checkline{display:flex;gap:10px;align-items:flex-start;font-size:13px;color:#475569;line-height:1.35}
.checkline input{margin-top:2px;width:auto}
details summary{cursor:pointer;font-weight:700;color:#1e3a8a;margin-top:8px}

.clean-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}.clean-fields p{margin:0;padding:14px 16px;border:1px solid var(--nw-line);border-radius:16px;background:var(--nw-soft)}.clean-fields strong{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--nw-muted);margin-bottom:6px}.clean-fields span{font-weight:700;color:var(--nw-text)}.message-box{padding:18px;border:1px solid var(--nw-line);border-radius:18px;background:#fbfdff;line-height:1.55}.automation-mode{border-color:rgba(22,163,74,.25)}.support-mode{border-color:rgba(20,106,245,.25)}.panel hr{border:0;border-top:1px solid var(--nw-line);margin:18px 0}.panel h3{margin:0 0 10px;font-size:16px}.badge.green{background:#eafaf0;color:#166534;border-color:#bbf7d0}.badge.blue{background:#eef5ff;color:#1649a8;border-color:#bfdbfe}.badge.amber{background:#fff7ed;color:#9a3412;border-color:#fed7aa}.badge.red{background:#fef2f2;color:#991b1b;border-color:#fecaca}.badge.gray{background:#f5f7fb;color:#475569;border-color:#e2e8f0}

/* v0.3.3 — menu por áreas e logótipo oficial */
.brand-wrap{min-width:214px;height:60px;align-items:center;overflow:hidden}
.brand-logo-img{display:block;width:196px;height:auto;max-height:54px;object-fit:contain;object-position:left center}
.app-nav-groups{gap:10px;flex:1;justify-content:center}
.app-nav-groups .nav-link{height:44px;padding:0 18px;border-radius:999px;font-size:14px;background:transparent;border:1px solid transparent;white-space:nowrap}
.app-nav-groups .nav-link.active{background:#eef4ff;border-color:#dbeafe;color:var(--nw-navy);box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}
.app-nav-groups .nav-link:hover{background:#f3f7ff;border-color:#e3ebf8;color:var(--nw-navy)}
.section-nav{background:#f8fbff;border-bottom:1px solid #e6eef2;padding:14px 0}
.section-nav-inner{width:calc(100% - 160px);max-width:1580px;margin-left:auto;margin-right:auto;display:flex;justify-content:flex-start}
.section-tabs{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid #dfe9ee;border-radius:22px;padding:8px;box-shadow:0 14px 40px rgba(7,27,73,.04)}
.section-tab{height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:16px;padding:0 20px;font-size:14px;font-weight:850;color:#334155;white-space:nowrap}
.section-tab.active{background:#eef4ff;color:var(--nw-navy)}
.section-tab:hover{background:#f6f9ff;color:var(--nw-navy)}
@media(max-width:1260px){.brand-wrap{min-width:190px}.brand-logo-img{width:176px}.section-nav-inner{width:calc(100% - 48px)}.section-tabs{overflow:auto;max-width:100%}.app-nav-groups{justify-content:flex-start}}
@media(max-width:720px){.brand-wrap{min-width:170px}.brand-logo-img{width:158px}.section-nav-inner{width:calc(100% - 28px)}.section-tabs{display:flex;width:100%;overflow:auto}.section-tab{height:40px;padding:0 14px;font-size:13px}.app-nav-groups .nav-link{height:40px;padding:0 14px;font-size:13px}}
.filters{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:12px;align-items:end;margin:14px 0 18px}.btn.tiny{min-height:34px;border-radius:12px;padding:0 12px;font-size:12px}.table-wrap.mini table td{font-size:13px}.badge.warn{border-color:#fde68a;background:#fffbeb;color:#92400e}.badge.muted{border-color:#e2e8f0;background:#f8fafc;color:#64748b}button.badge{min-height:auto;box-shadow:none;padding:7px 11px;background:#edf4ff;color:#1d4ed8;border-color:#cfe0ff}button.badge.green{background:#f0fdf4;color:#15803d;border-color:#bbf7d0}button.badge.muted{background:#f8fafc;color:#64748b;border-color:#e2e8f0}@media(max-width:900px){.filters{grid-template-columns:1fr}}

/* v0.3.7 automation library UX */
.automation-hub-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:24px;align-items:start}.auto-segment-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:16px}.auto-segment-card{display:block;padding:18px;border:1px solid rgba(9,26,64,.10);border-radius:22px;background:rgba(255,255,255,.86);box-shadow:0 18px 50px rgba(9,26,64,.06);text-decoration:none;color:inherit}.auto-segment-card span{display:block;text-transform:uppercase;letter-spacing:.12em;font-size:11px;color:#667085;font-weight:800}.auto-segment-card strong{display:block;margin-top:8px;font-size:26px;line-height:1;color:#06163a}.auto-segment-card small{display:block;margin-top:8px;color:#667085}.auto-segment-card.active,.auto-segment-card:hover{border-color:rgba(45,111,255,.32);box-shadow:0 24px 70px rgba(45,111,255,.12)}.auto-library-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:16px 0}.auto-library-toolbar input,.auto-library-toolbar select{min-width:180px}.auto-course-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.auto-course-card{border:1px solid rgba(9,26,64,.10);border-radius:22px;padding:16px;background:#fff;display:grid;grid-template-columns:1fr auto;gap:14px;align-items:start}.auto-course-card h3{margin:0 0 8px;font-size:16px;line-height:1.28}.auto-course-card p{margin:0;color:#667085;font-size:13px}.auto-course-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.auto-chip-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.auto-chip{display:inline-flex;padding:7px 10px;border-radius:999px;background:#f2f6ff;color:#0b1b4a;font-size:12px;font-weight:700}.auto-edit-layout{display:grid;grid-template-columns:1fr 360px;gap:24px}.auto-preview-card{position:sticky;top:110px}.textarea-large{min-height:360px;font-family:inherit;line-height:1.55}.textarea-medium{min-height:160px}.field-hint{font-size:12px;color:#667085;margin-top:6px}.asset-preview{border:1px dashed rgba(9,26,64,.16);border-radius:18px;padding:14px;background:#f8fbff}.asset-preview img{width:100%;height:auto;border-radius:14px;display:block}.asset-row{display:flex;justify-content:space-between;gap:12px;align-items:center;border-top:1px solid rgba(9,26,64,.08);padding-top:12px;margin-top:12px}.quick-status{display:grid;gap:10px}.quick-status .row{display:flex;justify-content:space-between;gap:12px}.quick-status .row span:first-child{color:#667085}.auto-empty-guide{padding:22px;border-radius:22px;background:linear-gradient(135deg,rgba(45,111,255,.08),rgba(111,48,255,.08));border:1px solid rgba(45,111,255,.12)}
@media(max-width:1100px){.automation-hub-grid,.auto-edit-layout{grid-template-columns:1fr}.auto-segment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.auto-course-grid{grid-template-columns:1fr}.auto-preview-card{position:static}}

/* v0.3.8 Automation Editor UI Refresh */
:root{
  --nw-navy:#071B49;
  --nw-navy-2:#0B255F;
  --nw-action:#1F6BFF;
  --nw-sky:#36A3FF;
  --nw-bg:#F4F7FB;
  --nw-card:#FFFFFF;
  --nw-border:#D9E2F0;
  --nw-divider:#E8EEF7;
  --nw-ink:#0B1F4D;
  --nw-muted:#5F6F92;
  --nw-soft-muted:#8A97B2;
  --nw-success:#1FA971;
  --nw-success-bg:#E8F8F1;
  --nw-warning:#E7A93B;
  --nw-warning-bg:#FFF5E2;
  --nw-error:#D74C4C;
  --nw-info:#2F7CF6;
  --nw-info-bg:#EAF2FF;
  --nw-gradient:linear-gradient(90deg,#071B49 0%,#1F6BFF 55%,#0B255F 100%);
}
body{color:var(--nw-ink);background:radial-gradient(circle at 78% 4%,rgba(31,107,255,.08),transparent 32%),var(--nw-bg)}
.top h1{font-size:clamp(34px,4vw,48px);font-weight:750;letter-spacing:-.055em;color:var(--nw-ink);line-height:.98}.top .muted{font-size:15px;color:var(--nw-muted);max-width:760px}.eyebrow{letter-spacing:.18em;color:#6f7f9d}.panel{border:1px solid rgba(217,226,240,.92);border-radius:24px;box-shadow:0 22px 58px rgba(7,27,73,.07);background:rgba(255,255,255,.94)}.btn{border-radius:15px;background:var(--nw-gradient);box-shadow:0 18px 38px rgba(31,107,255,.18);font-weight:750}.btn.secondary{background:rgba(255,255,255,.9);box-shadow:none;border-color:rgba(11,31,77,.12);color:var(--nw-ink)}
.automation-editor-form{padding-bottom:86px}.auto-editor-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin:-4px 0 24px;padding:26px 28px;border-radius:28px;border:1px solid rgba(217,226,240,.86);background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(248,251,255,.92));box-shadow:0 24px 68px rgba(7,27,73,.08)}.auto-editor-title-block{min-width:0}.auto-kicker{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.18em;color:var(--nw-soft-muted);margin-bottom:10px}.auto-editor-hero h2{margin:0;font-size:clamp(25px,3vw,38px);font-weight:760;letter-spacing:-.045em;line-height:1.06;color:var(--nw-ink);max-width:880px}.auto-editor-actions{display:flex;gap:10px;align-items:center;justify-content:flex-end;flex-wrap:wrap;min-width:330px}.auto-pill-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.auto-pill{display:inline-flex;align-items:center;min-height:32px;padding:8px 12px;border-radius:999px;background:#F3F7FE;border:1px solid #DDE8F7;color:#2C3B5D;font-size:12px;font-weight:750}.auto-pill.success{background:var(--nw-success-bg);border-color:#BFEBD7;color:#137A52}.auto-pill.info{background:var(--nw-info-bg);border-color:#C8DCFF;color:#1D5FC5}.auto-pill.warning{background:var(--nw-warning-bg);border-color:#F7DDA3;color:#946313}.auto-pill.muted{background:#F7F9FC;color:#75839E}.auto-editor-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:24px;align-items:start}.panel-elevated{padding:0;overflow:hidden}.auto-editor-side{position:sticky;top:116px;display:grid;gap:16px}.auto-tabs>input{position:absolute;opacity:0;pointer-events:none}.auto-tab-buttons{display:flex;gap:8px;padding:14px;background:rgba(244,247,251,.78);border-bottom:1px solid rgba(217,226,240,.88);overflow:auto}.auto-tab-buttons label{display:inline-flex;align-items:center;min-height:46px;padding:0 17px;border-radius:15px;color:var(--nw-muted);font-size:14px;font-weight:760;cursor:pointer;white-space:nowrap;transition:.18s ease}.auto-tab-buttons label:hover{background:rgba(255,255,255,.72);color:var(--nw-ink)}#tab-content:checked~.auto-tab-buttons label[for="tab-content"],#tab-segmentation:checked~.auto-tab-buttons label[for="tab-segmentation"],#tab-files:checked~.auto-tab-buttons label[for="tab-files"],#tab-advanced:checked~.auto-tab-buttons label[for="tab-advanced"]{background:#fff;color:var(--nw-ink);box-shadow:0 10px 24px rgba(7,27,73,.08)}.auto-tab-panel{display:none}.auto-tabs #tab-content:checked~[data-tab="content"],.auto-tabs #tab-segmentation:checked~[data-tab="segmentation"],.auto-tabs #tab-files:checked~[data-tab="files"],.auto-tabs #tab-advanced:checked~[data-tab="advanced"]{display:block}.panel-content{padding:28px}.section-intro{margin-bottom:22px}.section-intro h3{font-size:22px;font-weight:720;letter-spacing:-.035em;margin:0 0 6px;color:var(--nw-ink)}.section-intro p{margin:0;color:var(--nw-muted);font-size:14px;line-height:1.55}.auto-editor-form label{font-size:12px;font-weight:760;color:var(--nw-ink);letter-spacing:-.01em}.auto-editor-form input,.auto-editor-form select,.auto-editor-form textarea{border:1px solid rgba(217,226,240,.98);background:#fff;border-radius:16px;color:var(--nw-ink);box-shadow:0 1px 0 rgba(7,27,73,.02) inset}.auto-editor-form input:focus,.auto-editor-form select:focus,.auto-editor-form textarea:focus{border-color:rgba(31,107,255,.45);box-shadow:0 0 0 4px rgba(31,107,255,.08)}.textarea-email{min-height:360px;font-family:inherit;line-height:1.68;font-size:15px;padding:18px}.field-hint{font-size:12px;color:var(--nw-soft-muted);font-weight:500;line-height:1.45}.variable-panel{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-top:18px;padding:18px;border:1px solid rgba(217,226,240,.9);border-radius:20px;background:linear-gradient(135deg,#F8FBFF,#FFFFFF)}.variable-panel strong{display:block;font-size:14px;margin-bottom:3px}.variable-panel p{margin:0;color:var(--nw-muted);font-size:13px}.variable-chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.variable-chips code{display:inline-flex;padding:8px 10px;border-radius:999px;background:#EDF4FF;color:#164EA8;border:1px solid #D5E5FF;font-size:12px;font-weight:750}.email-preview-card{margin-top:20px;padding:20px;border-radius:22px;background:#fff;border:1px solid rgba(217,226,240,.95);box-shadow:0 18px 48px rgba(7,27,73,.055)}.email-preview-card span{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--nw-soft-muted);font-weight:800}.email-preview-card h4{font-size:19px;letter-spacing:-.025em;margin:10px 0 14px;color:var(--nw-ink)}.email-preview-body{font-size:14px;line-height:1.7;color:#1C2D4F;background:#F8FBFF;border-radius:16px;padding:16px}.check-row{display:flex;gap:10px;align-items:center;margin-top:14px;padding:14px 16px;border-radius:16px;background:#F8FBFF;border:1px solid rgba(217,226,240,.9)}.check-row input{width:auto}.auto-match-note{margin-top:18px;padding:16px 18px;border-radius:18px;background:linear-gradient(135deg,rgba(31,107,255,.08),rgba(11,37,95,.04));border:1px solid rgba(31,107,255,.12);color:var(--nw-muted);font-size:14px}.asset-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.asset-card{padding:18px;border-radius:22px;background:#FFFFFF;border:1px solid rgba(217,226,240,.95);box-shadow:0 18px 44px rgba(7,27,73,.055)}.asset-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.asset-card-head span{font-size:13px;font-weight:800;color:var(--nw-ink)}.asset-card-head a{font-size:13px;font-weight:760;color:#1D5FC5}.asset-card strong{display:block;font-size:13px;line-height:1.35;word-break:break-word;margin:10px 0;color:var(--nw-ink)}.asset-card img{width:100%;max-height:360px;object-fit:contain;border-radius:18px;background:#F4F7FB;border:1px solid rgba(217,226,240,.9);padding:8px}.asset-card input[type="file"]{padding:11px;background:#F8FBFF}.technical-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.technical-grid div{min-width:0;padding:15px;border-radius:18px;background:#F8FBFF;border:1px solid rgba(217,226,240,.88)}.technical-grid span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:var(--nw-soft-muted);font-weight:800;margin-bottom:7px}.technical-grid strong{display:block;font-size:13px;line-height:1.35;color:var(--nw-ink);word-break:break-word}.side-summary-card{padding:22px}.side-eyebrow{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--nw-soft-muted);font-weight:800}.side-summary-card h3{font-size:22px;line-height:1.05;margin:10px 0 8px;letter-spacing:-.035em}.side-summary-card p{margin:0 0 18px;color:var(--nw-muted);font-size:14px;line-height:1.45}.side-summary-list{display:grid;gap:11px}.side-summary-list div{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid rgba(232,238,247,.95)}.side-summary-list span{color:var(--nw-muted);font-size:13px}.side-summary-list strong{font-size:13px;text-align:right;color:var(--nw-ink)}.side-actions{display:grid;gap:10px}.side-actions .btn{width:100%;justify-content:center}.sticky-savebar{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);z-index:40;display:flex;gap:10px;align-items:center;justify-content:flex-end;width:min(760px,calc(100vw - 42px));padding:12px;border-radius:20px;background:rgba(255,255,255,.86);backdrop-filter:blur(18px);border:1px solid rgba(217,226,240,.9);box-shadow:0 24px 80px rgba(7,27,73,.16)}
@media(max-width:1180px){.auto-editor-grid{grid-template-columns:1fr}.auto-editor-side{position:static}.auto-editor-hero{flex-direction:column}.auto-editor-actions{min-width:0;justify-content:flex-start}.asset-grid{grid-template-columns:1fr}}
@media(max-width:760px){.panel-content{padding:20px}.auto-tab-buttons{padding:10px}.auto-tab-buttons label{min-height:40px;padding:0 12px}.auto-editor-hero{padding:20px}.technical-grid{grid-template-columns:1fr}.variable-panel{display:block}.variable-chips{justify-content:flex-start;margin-top:12px}.sticky-savebar{justify-content:stretch}.sticky-savebar .btn{flex:1}}

/* v0.4.1 — conditional course fields */
.field-hint{display:block;margin-top:7px;font-size:12px;line-height:1.35;color:#6b7898;font-weight:400;text-transform:none;letter-spacing:0}
.support-create-grid select:disabled{background:#f4f7fb;color:#8793ad;cursor:not-allowed}
.support-create-grid label.full select{min-height:46px}
.inline-filter select{min-width:140px;min-height:42px;border-radius:14px;border:1px solid var(--border,#d9e2f0);background:#fff;padding:0 14px;color:#0b1f4d;font-weight:700}
textarea[name="status_reason"],textarea[name="improvement_suggestion"],textarea[name="resolution_note"]{min-height:92px}
.badge.red{background:#fdecec;color:#b42318;border:1px solid #f4b4b4}.badge.amber{background:#fff5e2;color:#9a6700;border:1px solid #f1d39a}.badge.green{background:#e8f8f1;color:#087443;border:1px solid #a9e8c8}.badge.blue{background:#eaf2ff;color:#1f5fbf;border:1px solid #b7d0ff}.badge.gray{background:#eef2f7;color:#56637a;border:1px solid #d5dce8}

/* v0.4.3 — Support workspace refinement */
.support-hero{display:grid;grid-template-columns:minmax(280px,1fr) auto auto minmax(220px,.7fr);gap:18px;align-items:center;margin-bottom:18px;background:linear-gradient(135deg,#fff,#f8fbff)}
.support-hero h2{font-size:30px;line-height:1.05;margin:0 0 8px;color:var(--nw-dark);letter-spacing:-.045em}.support-hero>div{min-width:0}.support-hero>div:not(:first-child){padding:14px 16px;border-radius:18px;background:#fbfdff;border:1px solid var(--nw-line-2)}.support-hero>div span{display:block;color:var(--nw-muted);font-size:12px;margin-top:5px}.waiting-card span{font-size:11px!important;letter-spacing:.13em;text-transform:uppercase;font-weight:900;color:#7d91a2!important}.waiting-card strong{display:block;font-size:24px;line-height:1.1;color:var(--nw-dark);margin-top:4px}.waiting-card small{color:#7d91a2}.wait-pill{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 12px;border-radius:999px;background:#eaf2ff;border:1px solid #bdd4ff;color:#164ea8;font-size:13px}.wait-pill.warn{background:#fff5e2;border-color:#f1d39a;color:#9a6700}.wait-pill.danger{background:#fdecec;border-color:#f4b4b4;color:#b42318}.support-detail-grid{grid-template-columns:minmax(0,1.1fr) minmax(360px,.72fr);align-items:start}.support-action-grid{grid-template-columns:1fr 1fr 1fr}.message-box.elegant{padding:18px 20px;border-radius:20px;background:linear-gradient(135deg,#f8fbff,#fff);border:1px solid var(--nw-line-2);line-height:1.72;color:#243653}.support-treatment-form .conditional-field{transition:.18s ease}.action-panel h2{margin-bottom:6px}.action-panel p{margin-top:0}.timeline-panel{margin-top:18px}.refined-timeline{position:relative;display:grid;gap:0;padding-left:20px}.refined-timeline:before{content:"";position:absolute;left:8px;top:4px;bottom:4px;width:2px;background:#e3ebf6}.timeline-item.refined{position:relative;background:transparent;border:0;padding:0 0 16px 0}.timeline-dot{position:absolute;left:-18px;top:16px;width:14px;height:14px;border-radius:50%;background:#1f6bff;border:3px solid #fff;box-shadow:0 0 0 2px #cfe0ff}.timeline-item.refined.inbound .timeline-dot{background:#e7a93b;box-shadow:0 0 0 2px #f7dda3}.timeline-item.refined.outbound .timeline-dot{background:#1fa971;box-shadow:0 0 0 2px #bfe7d7}.timeline-item.refined.internal .timeline-dot{background:#8a97b2;box-shadow:0 0 0 2px #d9e2f0}.timeline-card{padding:18px 20px;border-radius:22px;background:#fff;border:1px solid var(--nw-line-2);box-shadow:0 16px 42px rgba(7,27,73,.045)}.timeline-card h3{font-size:15px;margin:8px 0 10px}.timeline-meta{display:flex;gap:10px;flex-wrap:wrap}.timeline-meta span{display:inline-flex;align-items:center;border-radius:999px;background:#f4f7fb;border:1px solid #e8eef7;padding:5px 9px;color:#6d7a93;font-size:11px;font-weight:800}.inline-permission-form{display:contents}.permission-matrix{display:grid;gap:12px}.permission-matrix div{padding:16px;border-radius:18px;background:#fbfdff;border:1px solid var(--nw-line-2)}.permission-matrix strong{display:block;color:var(--nw-dark);font-size:15px}.permission-matrix p{margin:6px 0;color:#52627a}.permission-matrix span{font-size:12px;color:#6d7a93;font-weight:700}.rating-display{display:flex;align-items:flex-end;gap:14px;padding:18px;border-radius:20px;background:#f8fbff;border:1px solid var(--nw-line-2)}.rating-display strong{font-size:46px;letter-spacing:-.06em;color:var(--nw-dark)}.rating-display span{color:#6d7a93;font-weight:800;margin-bottom:8px}
@media(max-width:1200px){.support-hero,.support-detail-grid,.support-action-grid{grid-template-columns:1fr}.support-hero>div:not(:first-child){padding:12px}.support-action-grid{gap:18px}}

/* v0.4.4 — Permission model and support workspace refinement */
.profile-rules-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:16px}.profile-rule-card{border:1px solid var(--line,#d9e2f0);border-radius:22px;background:#fff;padding:22px;box-shadow:0 14px 38px rgba(7,27,73,.06)}.profile-rule-card.green{border-color:#bcebd9}.profile-rule-card.blue{border-color:#c8dafc}.profile-rule-card.amber{border-color:#f3d79b}.profile-rule-card.gray{border-color:#d9e2f0}.profile-rule-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.profile-rule-head span{font-size:18px;font-weight:800;color:#071b49}.profile-rule-head small{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:#7a88a5;background:#f4f7fb;border:1px solid #d9e2f0;border-radius:999px;padding:6px 10px}.profile-rule-card p{color:#5f6f92;margin:0 0 16px;line-height:1.55}.rule-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}.rule-columns strong{display:block;margin-bottom:8px;font-size:12px;text-transform:uppercase;letter-spacing:.1em;color:#0b1f4d}.rule-columns ul{margin:0;padding-left:18px;color:#5f6f92;line-height:1.55}.support-logic-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:12px}.support-logic-grid div{border:1px solid #d9e2f0;background:#f8fbff;border-radius:18px;padding:16px}.support-logic-grid strong{display:block;color:#071b49;margin-bottom:6px}.support-logic-grid span{display:block;color:#5f6f92;line-height:1.45}.wait-pill{display:inline-flex;align-items:center;border:1px solid #d9e2f0;background:#f4f7fb;border-radius:999px;padding:6px 10px;color:#071b49;font-size:13px}.wait-pill.warn{background:#fff5e2;border-color:#f3d79b;color:#9a6500}.wait-pill.danger{background:#fdecec;border-color:#f3b8b8;color:#b42323}.support-hero{display:grid;grid-template-columns:1.6fr auto auto 1fr;gap:18px;align-items:center}.waiting-card{border:1px solid #d9e2f0;border-radius:18px;background:#f8fbff;padding:14px 16px}.waiting-card span,.waiting-card small{display:block;color:#5f6f92;font-size:12px}.waiting-card strong{display:block;color:#071b49;font-size:24px;margin:4px 0}.support-actions-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:18px}.action-panel textarea{min-height:150px}.timeline.refined-timeline{position:relative;display:grid;gap:16px}.timeline-item.refined{position:relative;display:grid;grid-template-columns:22px 1fr;gap:12px}.timeline-dot{width:12px;height:12px;border-radius:50%;background:#1f6bff;margin-top:18px;box-shadow:0 0 0 5px #eaf2ff}.timeline-item.inbound .timeline-dot{background:#d74c4c;box-shadow:0 0 0 5px #fdecec}.timeline-item.outbound .timeline-dot{background:#1fa971;box-shadow:0 0 0 5px #e8f8f1}.timeline-item.internal .timeline-dot{background:#8a97b2;box-shadow:0 0 0 5px #f4f7fb}.timeline-card{border:1px solid #d9e2f0;border-radius:18px;background:#fff;padding:16px 18px}.timeline-meta{display:flex;gap:10px;flex-wrap:wrap;color:#8a97b2;font-size:12px;text-transform:uppercase;letter-spacing:.08em;margin-bottom:8px}.timeline-card h3{margin:0 0 8px;color:#071b49;font-size:16px}.timeline-body{color:#0b1f4d;line-height:1.55}@media(max-width:1050px){.profile-rules-grid,.rule-columns,.support-logic-grid,.support-hero,.support-actions-grid{grid-template-columns:1fr}}

/* v0.4.5 — Professional UX, blue-only identity and permission matrix */
:root{
  --nw-violet:#0B255F;
  --nw-blue:#1F6BFF;
  --nw-blue-2:#0B255F;
  --nw-dark:#071B49;
  --nw-navy:#071B49;
  --nw-text:#0B1F4D;
  --nw-muted:#5F6F92;
  --nw-bg:#F4F7FB;
  --nw-card:#FFFFFF;
  --nw-line:#D9E2F0;
  --nw-line-2:#E8EEF7;
  --nw-shadow:0 18px 46px rgba(7,27,73,.065);
}
body{color:#0B1F4D;background:#F4F7FB}.top h1{font-size:40px;letter-spacing:-.055em}.top .muted,.muted{color:#5F6F92}.panel,.card,.metric-card{border-color:#D9E2F0;box-shadow:0 18px 46px rgba(7,27,73,.06)}
button,.btn{background:linear-gradient(90deg,#071B49 0%,#1F6BFF 100%)!important;color:#fff!important;box-shadow:0 16px 34px rgba(31,107,255,.18)!important;border-color:transparent!important}.btn.secondary,button.secondary,button.btn.secondary{background:#fff!important;color:#071B49!important;border-color:#D9E2F0!important;box-shadow:none!important}.btn.danger,button.danger{background:#fff2f2!important;color:#8b1111!important;border-color:#ffb4b4!important;box-shadow:none!important}.section-tab.active,.nav-link.active{background:#EEF4FF;color:#071B49}.segment-list em i,.segment-list.detailed a em i{background:linear-gradient(90deg,#071B49 0%,#1F6BFF 100%)!important}.auto-match-note{background:linear-gradient(135deg,rgba(31,107,255,.08),rgba(11,37,95,.04))!important}.sticky-savebar .btn,.auto-editor-actions .btn,.top-actions .btn{background:linear-gradient(90deg,#071B49 0%,#1F6BFF 100%)!important}.support-mode,.automation-mode{border-color:#D9E2F0!important}

.permission-users-panel{margin-bottom:18px}.permission-matrix-form{display:grid;gap:22px}.permission-matrix-panel{padding:0;overflow:hidden}.permission-matrix-panel h2{padding:22px 26px;margin:0;border-bottom:1px solid #E8EEF7;background:linear-gradient(180deg,#fff,#FAFCFF);font-size:20px}.permission-matrix-table-wrap{overflow:auto}.permission-matrix-table{border-spacing:0;width:100%}.permission-matrix-table th{padding:14px 16px;background:#F8FBFF;border-bottom:1px solid #E8EEF7;text-align:center}.permission-matrix-table th:first-child{text-align:left}.permission-matrix-table td{border:0;border-bottom:1px solid #EEF3F9;background:#fff;border-radius:0!important;padding:15px 16px;text-align:center}.permission-matrix-table td:first-child{text-align:left;min-width:360px}.permission-matrix-table td strong{display:block;font-size:14px;color:#071B49;line-height:1.3}.permission-matrix-table td span{font-size:11px;color:#8A97B2}.matrix-check{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;margin:0 auto;border:1px solid #D9E2F0;border-radius:12px;background:#fff;cursor:pointer}.matrix-check input{position:absolute;opacity:0;pointer-events:none}.matrix-check span{width:16px;height:16px;border-radius:5px;border:2px solid #9CA9BE;background:#fff}.matrix-check input:checked+span{background:#1F6BFF;border-color:#1F6BFF;box-shadow:inset 0 0 0 3px #fff}.matrix-check input:disabled+span{background:#E6EBF3;border-color:#D0D8E5;opacity:.8}.technical-permission-row td{background:#FBFCFE}.small-note{padding:14px 26px;margin:0;border-top:1px solid #E8EEF7}.permission-savebar{position:sticky;bottom:18px;display:flex;justify-content:flex-end;padding:14px 0;z-index:8}.permission-savebar .btn{min-width:240px}

.record-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:center;margin-bottom:20px;background:linear-gradient(180deg,#fff,#FAFCFF)}.record-main h2{margin:0 0 8px;font-size:30px;line-height:1.05;letter-spacing:-.045em;color:#071B49}.record-main .muted{font-size:15px;margin:0}.record-facts{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}.wait-inline,.interest-inline{min-height:54px;padding:11px 14px;border-radius:16px;border:1px solid #D9E2F0;background:#F8FBFF}.wait-inline span,.interest-inline span{display:block;color:#6E7F9A;font-size:12px;margin-top:4px}.wait-inline strong,.interest-inline strong{display:block;color:#071B49;font-size:15px}.support-workspace-grid{display:grid;grid-template-columns:minmax(0,1.15fr) 420px;gap:20px;align-items:start}.contact-clean-grid{align-items:start}.clean-fields.compact{grid-template-columns:repeat(2,minmax(0,1fr))}.treatment-panel{position:sticky;top:132px}.communication-panel{margin-top:20px}.support-actions-grid.refined-actions{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:18px}.action-box{display:grid;gap:14px;padding:18px;border:1px solid #E8EEF7;background:#FAFCFF;border-radius:20px}.action-box h3{font-size:17px;margin:0;color:#071B49}.action-box.internal{background:#F8FAFD}.compact-actions{margin-top:14px}.message-box.elegant{font-size:15px;line-height:1.72;color:#1C2D4F;background:#F8FBFF;border-radius:20px}

.timeline-v45{position:relative;display:grid;gap:16px;margin-top:8px}.timeline-v45:before{content:"";position:absolute;left:15px;top:12px;bottom:12px;width:2px;background:#DCE7F5}.timeline-entry{position:relative;display:grid!important;grid-template-columns:32px minmax(0,1fr)!important;gap:14px;width:100%;padding:0!important;background:transparent!important;border:0!important}.timeline-marker{position:relative;z-index:2;width:18px;height:18px;border-radius:50%;margin-top:18px;background:#1F6BFF;border:4px solid #fff;box-shadow:0 0 0 2px #CFE0FF}.timeline-entry.inbound .timeline-marker{background:#D74C4C;box-shadow:0 0 0 2px #FDECEC}.timeline-entry.outbound .timeline-marker{background:#1FA971;box-shadow:0 0 0 2px #E8F8F1}.timeline-entry.internal .timeline-marker{background:#8A97B2;box-shadow:0 0 0 2px #E8EEF7}.timeline-content{min-width:0;width:100%;padding:18px 20px;border:1px solid #D9E2F0;border-radius:22px;background:#fff;box-shadow:0 12px 30px rgba(7,27,73,.045)}.timeline-top{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}.timeline-top span{display:inline-flex;padding:5px 9px;border-radius:999px;background:#F4F7FB;border:1px solid #E8EEF7;color:#6E7F9A;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.timeline-content h3{font-size:16px;margin:4px 0 10px;color:#071B49}.timeline-text{white-space:pre-wrap;line-height:1.65;color:#1C2D4F;font-size:14px}.timeline.refined-timeline,.refined-timeline{padding-left:0!important}.timeline-item.refined{display:grid!important;grid-template-columns:32px minmax(0,1fr)!important;width:100%!important}.timeline-dot{position:static!important;left:auto!important;top:auto!important}.timeline-card{width:100%!important;min-width:0!important}

@media(max-width:1100px){.record-hero,.support-workspace-grid,.support-actions-grid.refined-actions{grid-template-columns:1fr}.record-facts{justify-content:flex-start}.treatment-panel{position:static}.permission-matrix-table td:first-child{min-width:260px}}


/* v0.4.6 — Interface polish, staff management and blue-only actions */
:root{
  --nw-blue-2:#0B255F;
  --nw-action-line:#C8DAF8;
  --nw-action-hover:#F3F7FF;
}
body{font-weight:400;letter-spacing:-.012em}.app-main{padding-top:38px}.top{margin-bottom:26px}.top h1{font-size:36px;line-height:1.04;font-weight:700;letter-spacing:-.045em}.eyebrow{font-weight:700;letter-spacing:.18em;color:#7C8BA4}.top .muted,.muted{font-weight:400;color:#5F6F92}.panel,.card,.metric-card,.content-card{border-color:#DCE6F2;box-shadow:0 14px 38px rgba(7,27,73,.055)}.panel,.card{padding:28px}.panel h2,.card h2{font-size:19px;font-weight:650;letter-spacing:-.035em}.panel h3,.card h3{font-weight:650}.metric-card strong{font-size:30px;font-weight:700}.metric-card span,th,.ctx-pill strong{font-weight:700}label{font-size:12px;font-weight:650;color:#15305C;letter-spacing:-.005em}input,select,textarea{font-weight:500;color:#0B1F4D;border-color:#DCE6F2;background:#fff}textarea{line-height:1.58}
button,.btn,.btn.primary,button.primary{background:#fff!important;color:#071B49!important;border:1px solid var(--nw-action-line)!important;box-shadow:0 8px 22px rgba(7,27,73,.045)!important;font-weight:700!important;min-height:46px;border-radius:14px;transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease}button:hover,.btn:hover{background:var(--nw-action-hover)!important;border-color:#8FB8FF!important;box-shadow:0 12px 28px rgba(31,107,255,.10)!important;transform:translateY(-1px)}button:active,.btn:active{transform:translateY(0)}.btn.secondary,button.secondary,button.btn.secondary{background:#fff!important;color:#071B49!important;border-color:#DCE6F2!important;box-shadow:none!important}.btn.danger,button.danger{background:#fff!important;color:#A32020!important;border-color:#F3B8B8!important;box-shadow:none!important}.top-actions .btn,.permission-savebar .btn,.sticky-savebar .btn,.auto-editor-actions .btn{background:#fff!important;color:#071B49!important;border-color:#C8DAF8!important;box-shadow:0 8px 22px rgba(7,27,73,.045)!important}.nav-link{font-weight:650}.account-chip,.lang-chip{font-weight:650}.ctx-pill{font-size:11.5px}.brand-logo-img{max-height:42px;width:auto}.section-tab{font-weight:650}.section-tab.active{background:#EEF4FF;color:#071B49}
.record-hero{padding:28px 30px}.record-main h2{font-size:28px;font-weight:700;letter-spacing:-.04em}.record-main .eyebrow{font-size:11px;font-weight:700}.record-facts{gap:10px}.interest-inline,.wait-inline{background:#fff;border-color:#DCE6F2}.support-workspace-grid{grid-template-columns:minmax(0,1fr) 390px;gap:24px}.contact-clean-grid{gap:24px}.clean-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.clean-fields p{margin:0;padding:15px 16px;border:1px solid #DCE6F2;background:#FAFCFF;border-radius:16px}.clean-fields strong{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:#6F7F99;margin-bottom:7px;font-weight:700}.clean-fields span{display:block;font-size:15px;color:#071B49;font-weight:600;line-height:1.4}.message-box.elegant{margin-top:12px;padding:22px 24px;border:1px solid #C8DAF8;border-left:4px solid #1F6BFF;background:linear-gradient(180deg,#FFFFFF 0%,#F7FAFF 100%);border-radius:18px;box-shadow:0 10px 26px rgba(7,27,73,.045);font-size:16px;line-height:1.78;color:#10213D}.message-box.elegant:before{content:"Mensagem do candidato";display:block;margin-bottom:10px;font-size:11px;text-transform:uppercase;letter-spacing:.14em;color:#6F7F99;font-weight:700}.communication-panel .section-head p,.timeline-panel .section-head p{max-width:760px}.support-actions-grid.refined-actions{grid-template-columns:1fr;gap:14px}.action-box{padding:18px 20px;background:#fff;border-color:#DCE6F2}.action-box h3{font-size:16px;font-weight:650}.action-box textarea{min-height:112px}.treatment-panel{top:118px}.conditional-field textarea{min-height:98px}.timeline-panel{padding:30px}.timeline-v45{gap:18px;margin-top:18px;padding-left:4px}.timeline-v45:before{left:18px;background:#DCEAFF}.timeline-entry{grid-template-columns:40px minmax(0,1fr)!important}.timeline-marker{width:14px;height:14px;margin:20px auto 0;border:3px solid #fff}.timeline-content{padding:20px 22px;border-radius:20px;border-color:#DCE6F2;box-shadow:0 10px 26px rgba(7,27,73,.045)}.timeline-top span{font-size:10.5px;font-weight:700;background:#F7FAFF}.timeline-content h3{font-size:15px;font-weight:650}.timeline-text{font-size:14.5px;line-height:1.72;color:#10213D}.permission-matrix-panel h2{font-weight:650}.permission-matrix-table td strong{font-weight:650}.staff-layout{align-items:start}.staff-add-card .form-grid{margin-top:16px}.staff-guide-card{background:linear-gradient(180deg,#fff,#FAFCFF)}.role-summary-list{display:grid;gap:12px;margin-top:12px}.role-summary-list p{margin:0;padding:14px 16px;border:1px solid #E8EEF7;border-radius:16px;background:#fff}.role-summary-list strong{display:block;font-size:14px;font-weight:650;color:#071B49;margin-bottom:5px}.role-summary-list span{display:block;font-size:13px;line-height:1.45;color:#5F6F92}.mini-check{display:flex!important;align-items:center;gap:10px;color:#5F6F92;font-weight:500}.mini-check input{width:auto;min-height:auto}.staff-row-form{display:contents}.staff-row-form select{min-width:170px}.context-bar .ctx-pill:last-child:has(strong){display:inline-flex}@media(max-width:1100px){.support-workspace-grid,.clean-fields,.staff-layout{grid-template-columns:1fr}.treatment-panel{position:static}.top h1{font-size:32px}}
.form-divider{display:flex;align-items:center;gap:14px;margin:10px 0 2px;color:#5F6F92;font-size:12px;font-weight:650;text-transform:uppercase;letter-spacing:.12em}.form-divider:after{content:"";height:1px;background:#DCE6F2;flex:1}.inline-form{display:inline-flex;margin:8px 8px 0 0}.code-list{display:grid;gap:10px;margin:14px 0}.code-list code{display:block;white-space:normal;word-break:break-all;background:#F4F7FB;border:1px solid #DCE6F2;border-radius:14px;padding:12px 14px;color:#0B1F4D}.mini-stats{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}.mini-stats span{border:1px solid #DCE6F2;background:#fff;border-radius:14px;padding:10px 14px;min-width:105px;color:#5F6F92}.mini-stats strong{display:block;color:#0B1F4D;font-size:12px;text-transform:uppercase;letter-spacing:.08em}.small{padding:8px 12px;font-size:13px}.mini-association{display:grid;gap:10px;margin-top:10px;min-width:360px}.mini-association select{width:100%}.notice.warn{background:#fff7e8;border-color:#efd397;color:#7b560f}.notice.soft strong{color:#071B49}

/* v0.5.4 - Apoio ao candidato: respostas recebidas */
.inbound-list{display:grid;gap:14px;margin-top:14px}
.inbound-card{border:1px solid #dce6f2;background:#fff;border-radius:18px;padding:18px 20px;box-shadow:0 10px 28px rgba(7,27,73,.04)}
.inbound-card div{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:10px}
.inbound-card strong{font-size:15px;font-weight:650;color:#0b1f4d}
.inbound-card span{font-size:12px;color:#5f6f92;white-space:nowrap}
.inbound-card p{margin:0;color:#0b1f4d;line-height:1.65;font-size:14px}

/* v0.5.5 — linha temporal compacta, respostas do candidato em destaque e azul Netwiz */
:root{
  --engage-blue:#071B49;
  --engage-blue-soft:#1F6BFF;
  --engage-border:#DCE6F2;
  --engage-soft:#F4F7FB;
}
.candidate-replies-panel{border:1px solid #BFD5F8!important;background:linear-gradient(180deg,#fff 0%,#F8FBFF 100%)!important;box-shadow:0 18px 42px rgba(7,27,73,.065)!important;margin-top:22px!important}
.candidate-replies-panel .section-head{align-items:flex-start}.candidate-replies-panel h2{font-size:20px!important;font-weight:650!important;letter-spacing:-.03em!important}.candidate-replies-panel .eyebrow{margin:0 0 4px!important;color:#1F6BFF!important}.candidate-replies-empty{border:1px dashed #BFD5F8;background:#fff;border-radius:18px;padding:18px 20px;display:grid;gap:5px;color:#5F6F92}.candidate-replies-empty strong{color:#071B49;font-weight:650}.candidate-replies-empty span{line-height:1.45}.inbound-card{border-left:4px solid #1F6BFF!important;background:#fff!important}.inbound-card p{font-size:14.5px!important;line-height:1.7!important}.communication-panel{margin-top:22px!important}.communication-panel .section-head p{font-size:14px!important}.compact-timeline-panel{margin-top:22px!important;padding:26px 28px!important}.compact-timeline-panel .section-head{margin-bottom:16px}.timeline-compact-list{display:grid;gap:8px;position:relative;margin-top:8px}.timeline-compact-list:before{content:"";position:absolute;left:11px;top:15px;bottom:15px;width:1px;background:#D9E6F7}.timeline-compact-row{position:relative;border:1px solid var(--engage-border);border-radius:16px;background:#fff;box-shadow:0 8px 22px rgba(7,27,73,.035);overflow:hidden}.timeline-compact-row summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:24px 116px 132px minmax(180px,1.1fr) 130px minmax(220px,1.2fr);gap:12px;align-items:center;padding:13px 16px 13px 10px;color:#0B1F4D}.timeline-compact-row summary::-webkit-details-marker{display:none}.timeline-dot-compact{width:11px;height:11px;border-radius:50%;background:#8A97B2;border:3px solid #fff;box-shadow:0 0 0 2px #DCE6F2;justify-self:center;z-index:2}.timeline-compact-row.inbound .timeline-dot-compact{background:#D74C4C;box-shadow:0 0 0 2px #F8C7C7}.timeline-compact-row.outbound .timeline-dot-compact{background:#1FA971;box-shadow:0 0 0 2px #BFEBD8}.timeline-compact-row.internal .timeline-dot-compact{background:#8A97B2}.timeline-date,.timeline-type,.timeline-author{font-size:11.5px;color:#6C7B95;font-weight:650;letter-spacing:.03em}.timeline-type{display:inline-flex;width:max-content;max-width:130px;padding:5px 9px;border-radius:999px;background:#F4F7FB;border:1px solid #E7EEF8;text-transform:uppercase}.timeline-compact-row strong{font-size:14px;font-weight:650;color:#071B49;letter-spacing:-.02em;line-height:1.3}.timeline-compact-row strong em{font-style:normal;color:#1F6BFF;font-size:12px}.timeline-excerpt{font-size:13.5px;color:#5F6F92;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.timeline-compact-detail{border-top:1px solid #E8EEF7;background:#FAFCFF;padding:14px 18px 16px 154px;font-size:14px;line-height:1.65;color:#10213D}.timeline-compact-row[open]{border-color:#BFD5F8;box-shadow:0 12px 28px rgba(31,107,255,.075)}.timeline-compact-row[open] summary{background:#F8FBFF}.record-hero .record-main h2{font-weight:650!important}.panel h2,.panel h3,.card h2,.card h3{font-weight:650!important}.top h1{font-weight:680!important}.message-box.elegant{border-left-color:#071B49!important;background:linear-gradient(180deg,#FFFFFF,#F7FAFF)!important}.message-box.elegant:before{color:#1F6BFF!important}.btn,button{font-weight:650!important}.badge{font-weight:650!important}
@media(max-width:1180px){.timeline-compact-row summary{grid-template-columns:24px 96px 110px minmax(160px,1fr);}.timeline-author,.timeline-excerpt{display:none}.timeline-compact-detail{padding-left:46px}}
@media(max-width:760px){.timeline-compact-row summary{grid-template-columns:24px 1fr;gap:8px}.timeline-date,.timeline-type{display:none}.timeline-compact-detail{padding:14px 16px}.compact-timeline-panel{padding:20px!important}}


/* v0.5.9 — entrada centralizada pelo Netwiz ID */
.identity-entry-page{min-height:100vh;background:linear-gradient(180deg,#F4F7FB 0%,#EEF4FA 100%);font-family:'Plus Jakarta Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#071B49}
.identity-entry-shell{width:min(920px,calc(100% - 64px));min-height:100vh;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;margin:0 auto;padding:72px 0}
.identity-entry-brand{margin-bottom:24px}.identity-entry-brand .brand-logo-img{height:58px;max-height:58px;width:auto;object-fit:contain}.identity-entry-shell .eyebrow{color:#6F7F99;font-weight:700;letter-spacing:.16em;text-transform:uppercase;margin-bottom:14px}.identity-entry-shell h1{max-width:820px;margin:0;color:#071B49;font-size:clamp(48px,7vw,86px);line-height:.96;letter-spacing:-.075em;font-weight:760}.identity-entry-lead{max-width:920px;margin:24px 0 30px;color:#5F6F92;font-size:18px;line-height:1.65}.identity-entry-button{min-width:220px;background:#071B49!important;color:#fff!important;border-color:#071B49!important;box-shadow:0 14px 32px rgba(7,27,73,.16)!important}.identity-entry-button:hover{background:#102A68!important;border-color:#102A68!important;color:#fff!important}.identity-entry-note{margin-top:18px;color:#5F6F92;font-size:14px}.identity-entry-emergency{margin-top:8px;font-size:12px}.identity-entry-emergency a{color:#6F7F99;text-decoration:none}.identity-local-form{width:min(460px,100%);display:grid;gap:14px;margin-top:10px;padding:20px;border:1px solid #DCE6F2;border-radius:22px;background:#fff;box-shadow:0 18px 50px rgba(7,27,73,.08)}
@media(max-width:760px){.identity-entry-shell{width:calc(100% - 36px);padding:42px 0}.identity-entry-shell h1{font-size:46px}.identity-entry-lead{font-size:16px}}
