:root{--bg:#f4f6f8;--panel:#fff;--ink:#13202b;--muted:#71808d;--line:#dde5eb;--nav:#0c1318;--blue:#145e91;--orange:#ff9d16;--red:#a23d3d;--green:#2d7443;--shadow:0 12px 35px rgba(20,36,48,.08)}
*{box-sizing:border-box}html,body{margin:0;height:100%;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}button,input,select,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!important}
.app{height:100vh;display:grid;grid-template-columns:250px minmax(0,1fr);overflow:hidden}.sidebar{height:100vh;background:var(--nav);color:#dbe3e8;display:flex;flex-direction:column;border-right:1px solid #1f2b33;overflow:hidden}.brand{height:72px;display:flex;align-items:center;gap:10px;padding:0 17px;border-bottom:1px solid #1b262d}.brand-mark{width:34px;height:34px;border-radius:9px;background:#12385a;color:var(--orange);display:grid;place-items:center;font-weight:950;font-size:10px}.brand strong{display:block;font-size:10px;letter-spacing:.08em}.brand span{display:block;color:#71818c;font-size:7px;margin-top:3px;letter-spacing:.12em}
.nav{padding:10px 9px;overflow:auto;flex:1}.nav-title{font-size:6.5px;color:#657680;font-weight:900;letter-spacing:.18em;margin:15px 8px 7px}.nav-item{width:100%;min-height:37px;border:0;background:transparent;color:#b7c1c7;border-radius:7px;padding:0 9px;display:flex;align-items:center;gap:9px;text-align:left;font-size:8.5px;font-weight:750}.nav-item:hover{background:#121d24;color:#fff}.nav-item.active{background:#17252e;color:#fff}.nav-item i{width:16px;color:#7f929e;font-style:normal;text-align:center}.nav-item.active i{color:var(--orange)}.side-badge{margin-left:auto;background:#9d2f2f;color:#fff;border-radius:999px;padding:2px 5px;font-size:6px}
.sidebar-user{height:66px;border-top:1px solid #1c2930;display:flex;align-items:center;gap:9px;padding:0 13px}.avatar{width:31px;height:31px;border-radius:50%;background:#1c3444;color:#fff;display:grid;place-items:center;font-size:8px;font-weight:900}.sidebar-user-copy{min-width:0;flex:1}.sidebar-user-copy strong{display:block;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-user-copy span{display:block;color:#72828c;font-size:7px;margin-top:3px}.logout-btn{border:0;background:transparent;color:#75858f;font-size:15px}
.main{height:100vh;overflow:auto;background:var(--bg)}.topbar{height:72px;position:sticky;top:0;z-index:30;background:#0a1116;color:#e8edf0;border-bottom:1px solid #202c33;padding:0 18px 0 22px;display:flex;align-items:center;justify-content:space-between;gap:15px}.top-left{display:flex;align-items:center;gap:10px}.top-eyebrow{font-size:6px;color:#71828d;letter-spacing:.16em;font-weight:900}.topbar h1{font-size:14px;margin:3px 0 0}.menu-btn{display:none;border:0;background:transparent;color:#fff;font-size:18px}.top-actions{display:flex;align-items:center;gap:12px}.quick-search{width:320px;height:38px;border:1px solid #283941;background:#111b21;border-radius:8px;display:flex;align-items:center;padding:0 10px;gap:8px}.quick-search span{color:#85959f}.quick-search input{border:0;outline:0;background:transparent;color:#e8eef1;width:100%;font-size:8px}.role-badge{border-radius:999px;padding:7px 10px;background:var(--orange);color:#15120a;font-size:6.5px;font-weight:950;letter-spacing:.05em}
.content{padding:22px;max-width:1500px;margin:0 auto}.view-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:14px}.view-head h2{font-size:20px;margin:5px 0 3px}.view-head p{margin:0;color:var(--muted);font-size:8px}.kicker{display:block;color:#e68100;font-size:6.5px;font-weight:950;letter-spacing:.13em}
.hero{background:linear-gradient(120deg,#fff,#f6f9fb);border:1px solid var(--line);border-radius:14px;padding:24px;box-shadow:var(--shadow);display:flex;justify-content:space-between;gap:20px;align-items:center}.hero h2{font-size:23px;margin:7px 0}.hero p{max-width:760px;color:var(--muted);font-size:9px;line-height:1.6}.hero-actions{display:flex;gap:8px;white-space:nowrap}
.primary-btn,.secondary-btn{border-radius:8px;min-height:34px;padding:0 12px;font-size:7.5px;font-weight:900}.primary-btn{border:1px solid #e28b11;background:var(--orange);color:#1e170b}.secondary-btn{border:1px solid #d5e0e8;background:#eef3f7;color:#304a5c}.primary-btn:disabled,.secondary-btn:disabled{opacity:.45;cursor:not-allowed}
.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:11px;margin-top:13px}.metric{background:#fff;border:1px solid var(--line);border-radius:10px;padding:13px}.metric span{display:block;color:#788896;font-size:6.5px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.metric strong{display:block;font-size:20px;margin:8px 0 4px}.metric small{color:#8896a2;font-size:7px}
.module-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:11px;margin-top:13px}.module-card{min-height:135px;text-align:left;border:1px solid var(--line);background:#fff;border-radius:11px;padding:15px}.module-card:hover{border-color:#a9c0d0;transform:translateY(-1px)}.module-card i{display:grid;place-items:center;width:34px;height:34px;border-radius:8px;background:#edf4f8;color:#32688c;font-style:normal;font-size:13px}.module-card strong{display:block;font-size:10px;margin:11px 0 5px}.module-card span{display:block;color:#758592;font-size:7.5px;line-height:1.5}
.form-card{background:#fff;border:1px solid var(--line);border-radius:11px;padding:15px;display:grid;gap:10px;margin-bottom:12px}.form-card.four{grid-template-columns:1.4fr .9fr 1fr 1fr}.form-card.three{grid-template-columns:1.2fr .8fr 1fr}.detail-grid{grid-template-columns:repeat(4,minmax(0,1fr))}label span{display:block;font-size:6.5px;color:#5f7180;font-weight:900;margin-bottom:5px}input,select,textarea{width:100%;border:1px solid #cfdae3;background:#fff;color:#17252f;border-radius:8px;padding:9px 10px;font-size:8px;outline:none}input:focus,select:focus,textarea:focus{border-color:#7ca6c1;box-shadow:0 0 0 2px rgba(27,101,151,.08)}.form-actions{grid-column:1/-1;display:flex;gap:7px}
.error{margin:10px 0;border:1px solid #efc5c5;background:#fff4f4;color:#9b3737;border-radius:8px;padding:10px 11px;font-size:8px}.loading-box,.empty-box{border:1px dashed #d5e0e7;background:#fafcfd;border-radius:10px;min-height:120px;display:grid;place-items:center;color:#7b8a96;font-size:8.5px;padding:18px;text-align:center}
.results-card{background:#fff;border:1px solid var(--line);border-radius:11px;padding:14px;margin-top:12px}.card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:10px}.card-head h3{font-size:12px;margin:4px 0}.card-head p{margin:0;color:#7a8996;font-size:7.5px}.analysis-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin:12px 0}.analysis-metrics>div{background:#fff;border:1px solid var(--line);border-radius:9px;padding:11px}.analysis-metrics span{display:block;color:#758592;font-size:6.5px;font-weight:850}.analysis-metrics strong{display:block;font-size:15px;margin-top:6px}
.table-wrap{overflow:auto;border:1px solid #e0e7ec;border-radius:9px}.data-table{width:100%;border-collapse:collapse;min-width:900px}.data-table th{background:#f6f8fa;color:#607181;font-size:6.3px;letter-spacing:.06em;text-transform:uppercase;text-align:left;padding:9px 10px;border-bottom:1px solid #dfe7ed}.data-table td{font-size:7.8px;padding:9px 10px;border-bottom:1px solid #e6edf1;vertical-align:middle}.data-table tr:last-child td{border-bottom:0}.money{font-weight:900;white-space:nowrap}
.company-link{border:0;background:transparent;color:#11639b;text-decoration:underline;text-underline-offset:2px;padding:0;font:inherit;font-weight:900;cursor:pointer;text-align:left}.company-link:hover{color:#0a456d}.row-actions{display:flex;gap:5px;white-space:nowrap}.tiny-btn{border:1px solid #ccd9e2;background:#f6f9fb;color:#345a74;border-radius:6px;padding:5px 7px;font-size:6.8px;font-weight:900}.tiny-btn.target{background:#fff8e8;border-color:#e8d09b;color:#815500}.tiny-btn.danger{background:#fff6f6;border-color:#e9c8c8;color:#9b3737}.pager{margin:12px 0;display:flex;justify-content:center;align-items:center;gap:10px}.pager span{font-size:8px;color:#697b89}.status-select{min-width:150px}.note-input{min-width:180px}
.report-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:11px}.report-card{background:#fff;border:1px solid var(--line);border-radius:11px;padding:16px;min-height:220px;display:flex;flex-direction:column;align-items:flex-start}.report-card i{width:38px;height:38px;border-radius:9px;background:#edf4f8;color:#32698f;display:grid;place-items:center;font-style:normal;font-size:14px}.report-card h3{font-size:12px;margin:13px 0 6px}.report-card p{font-size:8px;color:#768694;line-height:1.55;flex:1}.report-card strong{font-size:8px;color:#516879;margin-bottom:10px}
.system-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:11px}.system-list{display:grid;gap:7px}.system-list>div{border:1px solid var(--line);background:#fafcfd;border-radius:8px;padding:10px;display:grid;grid-template-columns:150px 1fr auto;gap:10px;align-items:center}.system-list strong{font-size:8px}.system-list span{font-size:7px;color:#778792}.system-list b{font-size:6.5px;color:#28703f;background:#eef9f1;border:1px solid #b9ddc4;border-radius:999px;padding:4px 7px}
.frame-view{height:calc(100vh - 72px);position:relative;background:#fff}.frame-view iframe{width:100%;height:100%;border:0;background:#fff}.frame-loading{position:absolute;inset:0;background:#0c1318;color:#82939e;display:grid;place-items:center;z-index:2;font-size:9px}
.auth-loading{position:fixed;inset:0;background:#091015;color:#eaf0f3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;z-index:100}.auth-mark{width:46px;height:46px;border-radius:12px;background:#12375f;color:var(--orange);display:grid;place-items:center;font-weight:950}.auth-loading strong{font-size:11px}.auth-loading span{font-size:8px;color:#788994}
.modal{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:20px}.modal-backdrop{position:absolute;inset:0;background:rgba(6,12,16,.72)}.modal-card{position:relative;z-index:1;width:min(1050px,96vw);max-height:92vh;overflow:auto;background:#f5f7f9;border-radius:14px;box-shadow:0 28px 90px rgba(0,0,0,.38);border:1px solid #d6e0e6}.modal-head{padding:16px 18px;background:#fff;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:14px}.modal-head h2{font-size:17px;margin:4px 0 2px}.modal-head p{margin:0;color:#72818d;font-size:8px}.modal-close{border:0;background:#eef2f5;width:31px;height:31px;border-radius:8px;font-size:16px;color:#586b78}
.company-context{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:12px 16px}.company-context>div{background:#fff;border:1px solid var(--line);border-radius:8px;padding:9px}.company-context span{display:block;font-size:6px;color:#7c8b97;text-transform:uppercase;font-weight:900}.company-context strong{display:block;font-size:8px;margin-top:5px}.company-contact-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:0 16px 12px}.contact-card{background:#fff;border:1px solid var(--line);border-radius:9px;padding:11px;min-height:76px}.contact-card>span{display:block;color:#7a8995;font-size:6.5px;font-weight:900;margin-bottom:6px}.contact-card a,.contact-card strong{display:block;color:#145f92;font-size:7.8px;line-height:1.55;word-break:break-word}.contact-empty{color:#98a3ab;font-size:7.5px}
.company-editor{margin:0 16px 16px;background:#f7fcf8;border:1px solid #cfe0d3;border-radius:10px;padding:13px}.editor-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;margin-bottom:11px}.editor-head h3{font-size:11px;margin:4px 0}.editor-head p{font-size:7px;color:#708074;margin:0}.editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.editor-grid .wide{grid-column:1/-1}.editor-actions{display:flex;gap:7px;align-items:center;margin-top:10px}.manual-badge{background:#edf9f1;color:#27683d;border:1px solid #b8dbc3;border-radius:999px;padding:5px 8px;font-size:6.5px;font-weight:900}.source-box{margin:0 16px 12px;background:#fff;border:1px solid var(--line);border-radius:9px;padding:10px}.source-box span{display:block;color:#71828f;font-size:6.5px;font-weight:900;margin-bottom:5px}.source-box a{display:block;font-size:7px;color:#236b99;word-break:break-all;margin:3px 0}
@media(max-width:1100px){.metric-grid,.analysis-metrics{grid-template-columns:repeat(2,1fr)}.module-grid{grid-template-columns:repeat(2,1fr)}.form-card.four,.detail-grid{grid-template-columns:repeat(2,1fr)}.report-grid{grid-template-columns:1fr}.company-contact-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:820px){.app{grid-template-columns:1fr}.sidebar{position:fixed;z-index:80;left:-260px;width:250px;transition:left .2s}.sidebar.open{left:0}.menu-btn{display:block}.quick-search{display:none}.content{padding:14px}.hero{flex-direction:column;align-items:flex-start}.system-grid{grid-template-columns:1fr}}
@media(max-width:620px){.metric-grid,.analysis-metrics,.module-grid,.form-card.four,.form-card.three,.detail-grid,.company-context,.company-contact-grid,.editor-grid{grid-template-columns:1fr}.editor-grid .wide{grid-column:auto}.hero-actions{flex-wrap:wrap}}
/* ==========================================================
   SPARKER TYPOGRAPHY HOTFIX V14.1
   ========================================================== */

/* Sidebar */
.brand strong{font-size:13px!important}
.brand span{font-size:9px!important}
.nav-title{font-size:9px!important}
.nav-item{font-size:12px!important;min-height:42px!important}
.nav-item i{font-size:13px!important}
.sidebar-user-copy strong{font-size:11px!important}
.sidebar-user-copy span{font-size:9px!important}
.side-badge{font-size:9px!important}

/* Topbar */
.top-eyebrow{font-size:9px!important}
.topbar h1{font-size:18px!important}
.quick-search input{font-size:11px!important}
.role-badge{font-size:9px!important}

/* Headings / labels */
.kicker{font-size:9px!important}
.view-head h2{font-size:25px!important}
.view-head p{font-size:11px!important;line-height:1.5!important}
.hero h2{font-size:30px!important}
.hero p{font-size:12px!important}
label span{font-size:10px!important}
input,select,textarea{font-size:12px!important}

/* Buttons */
.primary-btn,.secondary-btn{
  font-size:11px!important;
  min-height:38px!important;
  padding:0 14px!important;
}
.tiny-btn{
  font-size:10px!important;
  padding:7px 9px!important;
}

/* Home cards */
.metric span{font-size:9px!important}
.metric strong{font-size:24px!important}
.metric small{font-size:10px!important}
.module-card strong{font-size:13px!important}
.module-card span{font-size:10px!important;line-height:1.55!important}
.module-card i{font-size:16px!important}

/* Analysis cards */
.card-head h3{font-size:16px!important}
.card-head p{font-size:10px!important}
.analysis-metrics span{font-size:9px!important}
.analysis-metrics strong{font-size:20px!important}

/* Tables */
.data-table th{
  font-size:9px!important;
  padding:11px 12px!important;
}
.data-table td{
  font-size:11px!important;
  padding:11px 12px!important;
  line-height:1.4!important;
}
.company-link{font-size:11px!important}
.status-select,.note-input{
  font-size:11px!important;
  min-height:34px!important;
}

/* Reports / System */
.report-card h3{font-size:16px!important}
.report-card p{font-size:11px!important}
.report-card strong{font-size:11px!important}
.system-list strong{font-size:11px!important}
.system-list span{font-size:10px!important}
.system-list b{font-size:9px!important}

/* Empty/error/loading */
.error{font-size:11px!important}
.loading-box,.empty-box{font-size:11px!important}

/* Modal */
.modal-card{
  width:min(1180px,96vw)!important;
}
.modal-head h2{font-size:22px!important}
.modal-head p{font-size:11px!important}
.modal-close{font-size:20px!important}

.company-context span{font-size:9px!important}
.company-context strong{font-size:12px!important}

.contact-card>span{
  font-size:9px!important;
}
.contact-card a,
.contact-card strong{
  font-size:11px!important;
  line-height:1.6!important;
}
.contact-empty{font-size:10px!important}

.source-box span{font-size:9px!important}
.source-box a{font-size:10px!important}
.source-box strong{font-size:11px!important}

.editor-head h3{font-size:15px!important}
.editor-head p{font-size:10px!important}
.manual-badge{font-size:9px!important}
.editor-actions span{font-size:10px!important}

/* Give form fields a bit more breathing room */
.form-card{
  gap:12px!important;
  padding:18px!important;
}
.company-editor{
  padding:16px!important;
}
.contact-card{
  padding:13px!important;
  min-height:92px!important;
}

/* Slightly larger content width usability */
.content{
  padding:24px!important;
}

@media(max-width:820px){
  .nav-item{font-size:11px!important}
  .view-head h2{font-size:22px!important}
  .hero h2{font-size:24px!important}
  .data-table td{font-size:10px!important}
}

/* ==========================================================
   SPARKER PANEL CHARTS V14.3
   ========================================================== */
.st-chart-section{
  margin-top:18px;
}
.st-chart-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin-bottom:12px;
}
.st-chart-section-head h2{
  margin:5px 0 3px;
  font-size:20px;
}
.st-chart-section-head p{
  margin:0;
  color:#71808d;
  font-size:10px;
}
.st-chart-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.st-chart-card{
  background:#fff;
  border:1px solid #dde5eb;
  border-radius:12px;
  padding:15px;
  min-height:285px;
  box-shadow:0 6px 22px rgba(20,36,48,.04);
}
.st-chart-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.st-chart-head h3{
  margin:0 0 4px;
  font-size:14px;
}
.st-chart-head p{
  margin:0;
  color:#778692;
  font-size:9px;
}
.st-bars{
  display:grid;
  gap:9px;
}
.st-bar-row{
  display:grid;
  grid-template-columns:minmax(120px,180px) minmax(120px,1fr) minmax(90px,auto);
  align-items:center;
  gap:9px;
}
.st-bar-label{
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
}
.st-bar-label>span{
  width:20px;
  height:20px;
  display:grid;
  place-items:center;
  border-radius:5px;
  background:#edf3f7;
  color:#607483;
  font-size:8px;
  font-weight:900;
  flex:0 0 auto;
}
.st-bar-label strong{
  font-size:9px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.st-bar-track{
  height:12px;
  background:#edf2f5;
  border-radius:999px;
  overflow:hidden;
}
.st-bar-fill{
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#155f91,#2f82b6);
}
.st-bar-value{
  text-align:right;
  font-size:9px;
  font-weight:900;
  color:#405766;
  white-space:nowrap;
}
.st-donut-wrap{
  min-height:210px;
  display:grid;
  grid-template-columns:190px 1fr;
  align-items:center;
  gap:18px;
}
.st-donut{
  width:176px;
  height:176px;
  border-radius:50%;
  display:grid;
  place-items:center;
  margin:auto;
}
.st-donut-hole{
  width:105px;
  height:105px;
  border-radius:50%;
  background:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  box-shadow:0 0 0 1px #e4eaee;
}
.st-donut-hole strong{
  font-size:24px;
}
.st-donut-hole span{
  margin-top:2px;
  color:#7c8994;
  font-size:9px;
}
.st-donut-legend{
  display:grid;
  gap:9px;
}
.st-donut-legend>div{
  display:grid;
  grid-template-columns:10px minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
}
.st-donut-legend i{
  width:9px;
  height:9px;
  border-radius:50%;
}
.st-donut-legend span{
  font-size:9px;
}
.st-donut-legend strong{
  font-size:10px;
}
.st-chart-loading,
.st-chart-error,
.st-chart-empty{
  min-height:150px;
  display:grid;
  place-items:center;
  border:1px dashed #d8e1e7;
  border-radius:9px;
  color:#778792;
  font-size:10px;
  background:#fafcfd;
}
.st-chart-error{
  border-color:#edcaca;
  color:#9b3a3a;
  background:#fff7f7;
}
.st-inline-chart{
  margin-top:12px;
}
.st-inline-chart .st-chart-card{
  min-height:auto;
}
@media(max-width:1000px){
  .st-chart-grid{grid-template-columns:1fr}
  .st-donut-wrap{grid-template-columns:1fr}
}
@media(max-width:700px){
  .st-bar-row{
    grid-template-columns:1fr;
    gap:4px;
  }
  .st-bar-value{text-align:left}
  .st-chart-section-head{
    align-items:flex-start;
    flex-direction:column;
  }
}

/* ==========================================================
   SPARKER ROUND SEARCH CHARTS V14.4
   ========================================================== */
.st-inline-chart-round{
  margin:14px 0 14px;
}
.st-chart-card--inline{
  background:#ffffff;
  border:1px solid #dde5eb;
  border-radius:14px;
  padding:16px;
  box-shadow:0 8px 22px rgba(12,28,44,.05);
}
.st-chart-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.st-chart-head h3{
  margin:0 0 4px;
  font-size:20px;
  line-height:1.2;
  color:#102235;
}
.st-chart-head p{
  margin:0;
  color:#6d7d89;
  font-size:13px;
  line-height:1.45;
}
.st-summary-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:14px;
}
.st-summary-chip{
  min-width:150px;
  padding:10px 12px;
  border:1px solid #e1e8ee;
  border-radius:10px;
  background:#f8fbfd;
}
.st-summary-chip span{
  display:block;
  color:#6f7d88;
  font-size:12px;
  margin-bottom:3px;
}
.st-summary-chip strong{
  display:block;
  color:#0f2131;
  font-size:18px;
  line-height:1.2;
}
.st-donut-wrap--inline{
  display:grid;
  grid-template-columns:240px 1fr;
  gap:20px;
  align-items:center;
}
.st-donut{
  width:220px;
  height:220px;
  border-radius:50%;
  display:grid;
  place-items:center;
  margin:auto;
}
.st-donut-hole{
  width:126px;
  height:126px;
  border-radius:50%;
  background:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  box-shadow:0 0 0 1px #e4eaee;
}
.st-donut-hole strong{
  font-size:34px;
  line-height:1;
  color:#0f2131;
}
.st-donut-hole span{
  margin-top:5px;
  color:#73828d;
  font-size:13px;
}
.st-donut-legend{
  display:grid;
  gap:10px;
}
.st-donut-legend-row{
  display:grid;
  grid-template-columns:12px minmax(0,1fr) auto auto;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border:1px solid #ecf1f4;
  border-radius:10px;
  background:#fbfdff;
}
.st-donut-legend-row i{
  width:12px;
  height:12px;
  border-radius:50%;
}
.st-donut-legend-label{
  font-size:14px;
  color:#15283a;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.st-donut-legend-row strong{
  font-size:13px;
  color:#0f2131;
}
.st-donut-legend-row em{
  font-style:normal;
  font-size:13px;
  color:#586876;
  white-space:nowrap;
}
.st-chart-empty{
  min-height:160px;
  display:grid;
  place-items:center;
  font-size:14px;
  color:#7a8892;
  border:1px dashed #dbe3e9;
  border-radius:10px;
  background:#fafcfd;
}
@media (max-width: 960px){
  .st-donut-wrap--inline{
    grid-template-columns:1fr;
  }
}
@media (max-width: 640px){
  .st-chart-head h3{font-size:18px}
  .st-chart-head p{font-size:12px}
  .st-donut{width:180px;height:180px}
  .st-donut-hole{width:104px;height:104px}
  .st-donut-hole strong{font-size:28px}
  .st-donut-legend-row{
    grid-template-columns:12px 1fr;
  }
  .st-donut-legend-row strong,
  .st-donut-legend-row em{
    grid-column:2;
  }
}

/* ==========================================================
   SPARKER MOBILE PERFECT V14.5
   ========================================================== */

html{
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
body{
  min-width:0;
}
.main,
.content,
.view,
.results-card,
.form-card,
.table-wrap,
.modal-card{
  min-width:0;
}
img,svg,canvas{
  max-width:100%;
}
.mobile-sidebar-overlay{
  display:none;
}

/* Tablet */
@media (max-width: 1100px){
  .content{
    max-width:100%!important;
    padding:18px!important;
  }
  .form-card.four,
  .detail-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .module-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .metric-grid,
  .analysis-metrics{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

/* Main mobile breakpoint */
@media (max-width: 820px){
  html,body{
    width:100%;
    max-width:100%;
    overflow-x:hidden;
  }

  html.mobile-nav-open,
  html.mobile-nav-open body,
  html.mobile-modal-open,
  html.mobile-modal-open body{
    overflow:hidden!important;
  }

  .app{
    display:block!important;
    width:100%!important;
    height:100dvh!important;
    min-height:100vh;
    overflow:hidden!important;
  }

  .main{
    width:100%!important;
    height:100dvh!important;
    min-height:100vh;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch;
  }

  /* Drawer navigation */
  .sidebar{
    position:fixed!important;
    top:0!important;
    left:0!important;
    z-index:1200!important;
    width:min(86vw,320px)!important;
    height:100dvh!important;
    transform:translateX(-105%)!important;
    transition:transform .22s ease!important;
    box-shadow:16px 0 45px rgba(0,0,0,.28);
    padding-left:env(safe-area-inset-left);
    padding-bottom:env(safe-area-inset-bottom);
  }
  .sidebar.open{
    transform:translateX(0)!important;
  }
  .mobile-sidebar-overlay{
    position:fixed;
    inset:0;
    z-index:1190;
    display:block;
    background:rgba(4,10,14,.58);
    opacity:0;
    visibility:hidden;
    transition:opacity .2s ease,visibility .2s ease;
    backdrop-filter:blur(2px);
  }
  .mobile-sidebar-overlay.show{
    opacity:1;
    visibility:visible;
  }

  .brand{
    min-height:72px!important;
    padding-top:env(safe-area-inset-top);
  }
  .nav-item{
    min-height:48px!important;
    font-size:14px!important;
    border-radius:9px!important;
  }
  .nav-title{
    font-size:10px!important;
    margin-top:18px!important;
  }
  .sidebar-user{
    min-height:72px!important;
  }

  /* Topbar */
  .topbar{
    position:sticky!important;
    top:0!important;
    width:100%!important;
    height:auto!important;
    min-height:112px!important;
    display:grid!important;
    grid-template-columns:1fr auto!important;
    grid-template-rows:auto auto!important;
    gap:8px 10px!important;
    padding:
      calc(10px + env(safe-area-inset-top))
      calc(12px + env(safe-area-inset-right))
      10px
      calc(12px + env(safe-area-inset-left))!important;
  }
  .top-left{
    grid-column:1!important;
    grid-row:1!important;
    min-width:0;
  }
  .menu-btn{
    display:grid!important;
    place-items:center;
    width:42px!important;
    height:42px!important;
    flex:0 0 42px;
    border-radius:9px!important;
    background:#121d24!important;
    border:1px solid #28363e!important;
  }
  .top-eyebrow{
    font-size:8px!important;
  }
  .topbar h1{
    font-size:17px!important;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    max-width:58vw;
  }
  .role-badge{
    grid-column:2!important;
    grid-row:1!important;
    align-self:center;
    font-size:9px!important;
    padding:8px 10px!important;
  }
  .quick-search{
    display:flex!important;
    grid-column:1/-1!important;
    grid-row:2!important;
    width:100%!important;
    height:44px!important;
  }
  .quick-search input{
    font-size:16px!important;
  }

  .frame-view{
    height:calc(100dvh - 112px)!important;
  }

  /* Main content */
  .content{
    width:100%!important;
    padding:14px 12px calc(24px + env(safe-area-inset-bottom))!important;
  }
  .view-head{
    flex-direction:column!important;
    align-items:stretch!important;
    gap:10px!important;
  }
  .view-head h2{
    font-size:24px!important;
  }
  .view-head p{
    font-size:13px!important;
    line-height:1.55!important;
  }
  .kicker{
    font-size:9px!important;
  }

  .hero{
    padding:17px!important;
    border-radius:12px!important;
  }
  .hero h2{
    font-size:25px!important;
    line-height:1.18!important;
  }
  .hero p{
    font-size:13px!important;
    line-height:1.55!important;
  }
  .hero-actions{
    width:100%;
    display:grid!important;
    grid-template-columns:1fr 1fr;
    gap:8px!important;
  }

  .metric-grid,
  .analysis-metrics,
  .module-grid,
  .report-grid,
  .system-grid{
    grid-template-columns:1fr!important;
  }

  .metric,
  .analysis-metrics>div,
  .module-card,
  .report-card{
    min-height:auto!important;
  }
  .metric span,
  .analysis-metrics span{
    font-size:10px!important;
  }
  .metric strong,
  .analysis-metrics strong{
    font-size:23px!important;
  }
  .metric small{
    font-size:11px!important;
  }
  .module-card{
    padding:16px!important;
  }
  .module-card strong{
    font-size:15px!important;
  }
  .module-card span{
    font-size:12px!important;
  }

  /* Forms: prevent iOS auto-zoom */
  .form-card,
  .form-card.four,
  .form-card.three,
  .detail-grid{
    grid-template-columns:1fr!important;
    padding:14px!important;
    gap:12px!important;
  }
  .form-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
  }
  label span{
    font-size:11px!important;
  }
  input,
  select,
  textarea{
    font-size:16px!important;
    min-height:46px!important;
    border-radius:9px!important;
    padding:11px 12px!important;
  }
  textarea{
    min-height:92px!important;
  }
  .primary-btn,
  .secondary-btn,
  .tiny-btn{
    min-height:44px!important;
    font-size:13px!important;
    border-radius:9px!important;
  }

  /* Responsive data tables become cards */
  .table-wrap{
    overflow:visible!important;
    border:0!important;
    background:transparent!important;
  }
  .data-table,
  .table-wrap table{
    width:100%!important;
    min-width:0!important;
    display:block!important;
  }
  .data-table thead,
  .table-wrap table thead{
    display:none!important;
  }
  .data-table tbody,
  .table-wrap table tbody{
    display:grid!important;
    gap:10px!important;
    width:100%!important;
  }
  .data-table tr,
  .table-wrap table tbody tr{
    display:block!important;
    width:100%!important;
    background:#fff!important;
    border:1px solid #dfe7ed!important;
    border-radius:12px!important;
    padding:7px 11px!important;
    box-shadow:0 4px 14px rgba(20,36,48,.035);
  }
  .data-table td,
  .table-wrap table td{
    width:100%!important;
    min-width:0!important;
    display:grid!important;
    grid-template-columns:minmax(105px,36%) minmax(0,1fr)!important;
    gap:10px!important;
    align-items:start!important;
    padding:10px 0!important;
    border-bottom:1px solid #edf1f4!important;
    font-size:13px!important;
    line-height:1.45!important;
    white-space:normal!important;
    overflow-wrap:anywhere;
  }
  .data-table td:last-child,
  .table-wrap table td:last-child{
    border-bottom:0!important;
  }
  .data-table td::before,
  .table-wrap table td::before{
    content:attr(data-label);
    color:#6d7d89;
    font-size:10px;
    line-height:1.4;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.04em;
  }
  .company-link{
    font-size:13px!important;
    line-height:1.45!important;
    white-space:normal!important;
    overflow-wrap:anywhere;
  }
  .money{
    white-space:normal!important;
  }
  .row-actions{
    width:100%;
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:7px!important;
  }
  .status-select,
  .note-input{
    width:100%!important;
    min-width:0!important;
    font-size:16px!important;
  }

  .pager{
    position:sticky;
    bottom:calc(8px + env(safe-area-inset-bottom));
    z-index:20;
    background:rgba(244,246,248,.94);
    backdrop-filter:blur(10px);
    padding:8px;
    border-radius:11px;
    border:1px solid #dfe7ed;
  }
  .pager .secondary-btn{
    flex:1;
  }

  /* Reports & system */
  .report-card{
    min-height:200px!important;
  }
  .report-card h3{
    font-size:17px!important;
  }
  .report-card p,
  .report-card strong{
    font-size:12px!important;
  }
  .system-list>div{
    grid-template-columns:1fr!important;
    gap:5px!important;
  }
  .system-list strong{
    font-size:13px!important;
  }
  .system-list span{
    font-size:11px!important;
  }
  .system-list b{
    width:max-content;
    font-size:10px!important;
  }

  /* Company modal -> mobile full screen */
  .modal{
    display:block!important;
    padding:0!important;
  }
  .modal-card{
    width:100vw!important;
    max-width:100vw!important;
    height:100dvh!important;
    max-height:100dvh!important;
    border-radius:0!important;
    border:0!important;
    overflow-y:auto!important;
    overscroll-behavior:contain;
    padding-bottom:calc(18px + env(safe-area-inset-bottom));
  }
  .modal-head{
    position:sticky!important;
    top:0!important;
    z-index:15!important;
    padding:
      calc(12px + env(safe-area-inset-top))
      14px
      12px!important;
    box-shadow:0 2px 12px rgba(20,36,48,.08);
  }
  .modal-head h2{
    font-size:20px!important;
    line-height:1.25!important;
  }
  .modal-head p{
    font-size:12px!important;
  }
  .modal-close{
    width:42px!important;
    height:42px!important;
    flex:0 0 42px;
  }
  .company-context{
    grid-template-columns:1fr 1fr!important;
    padding:12px!important;
  }
  .company-context span{
    font-size:9px!important;
  }
  .company-context strong{
    font-size:13px!important;
    overflow-wrap:anywhere;
  }
  .company-contact-grid{
    grid-template-columns:1fr!important;
    padding:0 12px 12px!important;
  }
  .contact-card{
    min-height:auto!important;
    padding:14px!important;
  }
  .contact-card>span{
    font-size:10px!important;
  }
  .contact-card a,
  .contact-card strong{
    font-size:14px!important;
    overflow-wrap:anywhere;
  }
  .source-box{
    margin:0 12px 12px!important;
    padding:13px!important;
  }
  .source-box span{
    font-size:10px!important;
  }
  .source-box a,
  .source-box strong{
    font-size:12px!important;
    overflow-wrap:anywhere;
  }
  .company-editor{
    margin:0 12px 12px!important;
    padding:14px!important;
  }
  .editor-grid{
    grid-template-columns:1fr!important;
  }
  .editor-grid .wide{
    grid-column:auto!important;
  }
  .editor-head{
    flex-direction:column!important;
  }
  .editor-head h3{
    font-size:17px!important;
  }
  .editor-head p{
    font-size:12px!important;
  }
  .manual-badge{
    font-size:10px!important;
  }
  .editor-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
  }

  /* Round charts */
  .st-chart-grid{
    grid-template-columns:1fr!important;
  }
  .st-chart-card,
  .st-chart-card--inline{
    padding:14px!important;
    border-radius:12px!important;
  }
  .st-chart-head h3{
    font-size:18px!important;
  }
  .st-chart-head p{
    font-size:12px!important;
  }
  .st-donut-wrap,
  .st-donut-wrap--inline{
    grid-template-columns:1fr!important;
    gap:14px!important;
  }
  .st-donut{
    width:180px!important;
    height:180px!important;
  }
  .st-donut-hole{
    width:104px!important;
    height:104px!important;
  }
  .st-donut-hole strong{
    font-size:28px!important;
  }
  .st-donut-legend-row{
    grid-template-columns:12px minmax(0,1fr) auto!important;
    gap:8px!important;
  }
  .st-donut-legend-row em{
    grid-column:2/-1!important;
    font-size:11px!important;
  }
  .st-summary-row{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
  }
  .st-summary-chip{
    min-width:0!important;
  }
}

/* Small phones */
@media (max-width: 480px){
  .topbar h1{
    max-width:52vw;
    font-size:16px!important;
  }
  .role-badge{
    padding:7px 8px!important;
    font-size:8px!important;
  }
  .content{
    padding-left:10px!important;
    padding-right:10px!important;
  }
  .hero-actions,
  .form-actions,
  .row-actions,
  .st-summary-row{
    grid-template-columns:1fr!important;
  }
  .company-context{
    grid-template-columns:1fr!important;
  }
  .data-table td,
  .table-wrap table td{
    grid-template-columns:1fr!important;
    gap:4px!important;
  }
  .data-table td::before,
  .table-wrap table td::before{
    margin-bottom:2px;
  }
}

/* Landscape phone */
@media (max-width: 900px) and (orientation: landscape){
  .topbar{
    min-height:92px!important;
    grid-template-columns:1fr auto!important;
  }
  .quick-search{
    height:40px!important;
  }
  .frame-view{
    height:calc(100dvh - 92px)!important;
  }
  .modal-card{
    height:100dvh!important;
  }
}

/* ==========================================================
   SPARKER SUPERADMIN CRM V15
   ========================================================== */
.crm-top-actions{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
}
.crm-metrics{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
  margin-bottom:13px;
}
.crm-metric{
  background:#fff;
  border:1px solid #dde5eb;
  border-radius:10px;
  padding:13px;
}
.crm-metric span{
  display:block;
  color:#748491;
  font-size:10px;
  font-weight:900;
}
.crm-metric strong{
  display:block;
  font-size:22px;
  margin:7px 0 4px;
}
.crm-metric small{
  color:#8795a0;
  font-size:10px;
}
.crm-metric.danger{
  border-color:#eccaca;
  background:#fff8f8;
}
.crm-metric.danger strong{
  color:#a43c3c;
}
.crm-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:10px;
  background:#fff;
  border:1px solid #dde5eb;
  border-radius:10px;
  margin-bottom:12px;
}
.crm-tabs{
  display:flex;
  gap:5px;
  background:#f0f4f7;
  padding:4px;
  border-radius:8px;
}
.crm-tab{
  min-height:34px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:#587080;
  padding:0 12px;
  font-size:11px;
  font-weight:900;
}
.crm-tab.active{
  background:#fff;
  color:#14344b;
  box-shadow:0 2px 7px rgba(20,36,48,.08);
}
.crm-toolbar-right{
  display:flex;
  align-items:center;
  gap:7px;
}
.crm-toolbar-right input{
  width:260px;
}
.crm-toolbar-right select{
  width:170px;
}
.crm-pipeline{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(245px,1fr);
  gap:10px;
  overflow-x:auto;
  padding-bottom:10px;
}
.crm-pipeline-col{
  min-height:560px;
  background:#eef2f5;
  border:1px solid #dce4ea;
  border-radius:11px;
  padding:9px;
}
.crm-pipeline-head{
  display:flex;
  justify-content:space-between;
  gap:8px;
  align-items:flex-start;
  padding:5px 3px 10px;
}
.crm-pipeline-head strong{
  display:block;
  font-size:12px;
}
.crm-pipeline-head span{
  display:block;
  color:#778792;
  font-size:9px;
  margin-top:3px;
}
.crm-pipeline-head b{
  font-size:9px;
  color:#4a6273;
}
.crm-pipeline-list{
  display:grid;
  gap:8px;
}
.crm-company-card{
  background:#fff;
  border:1px solid #dce5eb;
  border-radius:9px;
  padding:10px;
  box-shadow:0 3px 10px rgba(20,36,48,.04);
}
.crm-company-open{
  width:100%;
  text-align:left;
  border:0;
  padding:0;
  background:transparent;
  color:#132735;
}
.crm-company-open strong{
  display:block;
  font-size:11px;
  line-height:1.35;
}
.crm-company-open span{
  display:block;
  margin-top:4px;
  color:#748491;
  font-size:9px;
}
.crm-card-value{
  margin:9px 0;
  font-size:13px;
  font-weight:950;
}
.crm-card-meta{
  display:flex;
  gap:8px;
  margin-bottom:8px;
}
.crm-card-meta span{
  background:#f3f6f8;
  border-radius:5px;
  padding:4px 5px;
  color:#657784;
  font-size:8px;
}
.crm-stage-select{
  width:100%;
  min-height:32px;
  font-size:9px;
  font-weight:850;
}
.crm-pipeline-empty{
  min-height:70px;
  display:grid;
  place-items:center;
  color:#94a0a9;
  border:1px dashed #ccd7de;
  border-radius:8px;
  font-size:9px;
}
.crm-stage-pill{
  display:inline-flex;
  align-items:center;
  width:max-content;
  border-radius:999px;
  padding:5px 8px;
  font-size:9px;
  font-weight:900;
  background:#edf2f5;
  color:#526777;
}
.crm-stage-yeni{background:#edf4fa!important;color:#2c648d!important}
.crm-stage-arastirma{background:#f3f1fb!important;color:#684fa1!important}
.crm-stage-temas{background:#eef8f6!important;color:#367363!important}
.crm-stage-gorusme{background:#fff6e7!important;color:#8c5c05!important}
.crm-stage-teklif{background:#fff0dc!important;color:#9b5c02!important}
.crm-stage-muzakere{background:#f9edf7!important;color:#8f4d7d!important}
.crm-stage-kazanildi{background:#eaf7ee!important;color:#2f7043!important}
.crm-stage-kaybedildi{background:#fff0f0!important;color:#9c4040!important}
.crm-task-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}
.crm-task-head strong{
  display:block;
  font-size:14px;
}
.crm-task-head span{
  display:block;
  color:#73828e;
  font-size:10px;
}
.crm-priority{
  border-radius:999px;
  padding:4px 7px;
  font-size:9px;
  font-weight:900;
  background:#eef2f5;
}
.crm-priority.yuksek{background:#fff1de;color:#9b5b00}
.crm-priority.acil{background:#fff0f0;color:#9c3838}
.crm-priority.dusuk{background:#eef7f1;color:#3e7250}
tr.overdue td{
  background:#fff8f8!important;
}
tr.done td{
  opacity:.65;
}
.crm-modal-card{
  width:min(1180px,96vw)!important;
}
.crm-modal-body{
  padding:14px;
}
.crm-detail-metrics{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin-bottom:10px;
}
.crm-detail-metrics>div{
  background:#fff;
  border:1px solid #dde5eb;
  border-radius:9px;
  padding:10px;
}
.crm-detail-metrics span{
  display:block;
  color:#778793;
  font-size:9px;
  font-weight:900;
  margin-bottom:5px;
}
.crm-detail-metrics strong{
  font-size:12px;
}
.crm-detail-actions{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.crm-detail-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.crm-info-list{
  display:grid;
}
.crm-info-list>div{
  display:grid;
  grid-template-columns:95px 1fr;
  gap:10px;
  padding:9px 0;
  border-bottom:1px solid #edf1f4;
}
.crm-info-list span{
  color:#758592;
  font-size:9px;
  font-weight:900;
}
.crm-info-list strong,
.crm-info-list a{
  font-size:10px;
  color:#245e84;
  word-break:break-word;
}
.crm-note-box{
  margin-top:10px;
  background:#f7f9fb;
  border:1px solid #e1e8ed;
  border-radius:8px;
  padding:10px;
  font-size:10px;
  white-space:pre-wrap;
}
.crm-mini-list{
  display:grid;
  gap:7px;
}
.crm-mini-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  border:1px solid #e2e9ee;
  border-radius:8px;
  padding:9px;
  background:#fafcfd;
}
.crm-mini-item>div:first-child{
  min-width:0;
}
.crm-mini-item strong{
  display:block;
  font-size:10px;
}
.crm-mini-item span,
.crm-mini-item small{
  display:block;
  color:#72828e;
  font-size:9px;
  margin-top:3px;
}
.crm-mini-item.overdue{
  border-color:#edc9c9;
  background:#fff7f7;
}
.crm-mini-empty{
  min-height:80px;
  display:grid;
  place-items:center;
  color:#929fa9;
  border:1px dashed #d8e0e5;
  border-radius:8px;
  font-size:9px;
}
.crm-timeline{
  display:grid;
  gap:10px;
}
.crm-timeline-item{
  display:grid;
  grid-template-columns:10px 1fr;
  gap:9px;
}
.crm-timeline-item i{
  width:9px;
  height:9px;
  margin-top:4px;
  border-radius:50%;
  background:#1b6b9e;
  box-shadow:0 0 0 4px #e9f2f8;
}
.crm-timeline-item strong{
  font-size:9px;
}
.crm-timeline-item p{
  margin:4px 0;
  font-size:10px;
  line-height:1.5;
  white-space:pre-wrap;
}
.crm-timeline-item span{
  color:#89959e;
  font-size:8px;
}
.crm-form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
}
.crm-form-grid .wide{
  grid-column:1/-1;
}
.crm-form-actions{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:5px;
}
.crm-form-actions span{
  font-size:10px;
  color:#667987;
}

@media(max-width:1100px){
  .crm-metrics{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .crm-detail-grid{
    grid-template-columns:1fr;
  }
}
@media(max-width:820px){
  .crm-top-actions{
    display:grid;
    grid-template-columns:1fr;
    width:100%;
  }
  .crm-toolbar{
    align-items:stretch;
    flex-direction:column;
  }
  .crm-tabs{
    overflow-x:auto;
  }
  .crm-tab{
    flex:1;
    min-width:max-content;
  }
  .crm-toolbar-right{
    display:grid;
    grid-template-columns:1fr;
  }
  .crm-toolbar-right input,
  .crm-toolbar-right select{
    width:100%;
  }
  .crm-metrics{
    grid-template-columns:1fr 1fr;
  }
  .crm-pipeline{
    grid-auto-columns:minmax(82vw,300px);
  }
  .crm-pipeline-col{
    min-height:400px;
  }
  .crm-detail-metrics{
    grid-template-columns:1fr 1fr;
  }
  .crm-detail-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .crm-form-grid{
    grid-template-columns:1fr;
  }
  .crm-form-grid .wide{
    grid-column:auto;
  }
  .crm-mini-item{
    align-items:flex-start;
    flex-direction:column;
  }
  .crm-info-list>div{
    grid-template-columns:1fr;
    gap:3px;
  }
}
@media(max-width:480px){
  .crm-metrics{
    grid-template-columns:1fr;
  }
  .crm-detail-metrics{
    grid-template-columns:1fr;
  }
  .crm-detail-actions{
    grid-template-columns:1fr;
  }
}

/* ==========================================================
   SPARKER CRM EXCEL BULK IMPORT V15.2
   ========================================================== */
.crm-import-modal-card{width:min(1280px,96vw)!important}
.crm-import-body{padding:16px}
.crm-import-intro{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.crm-import-intro strong{display:block;font-size:15px}
.crm-import-intro span{display:block;margin-top:4px;color:#748491;font-size:11px}
.crm-file-drop{min-height:190px;border:2px dashed #cbd8e1;background:#f8fbfd;border-radius:13px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:5px;cursor:pointer;padding:20px;transition:.16s ease}
.crm-file-drop:hover,.crm-file-drop.drag{border-color:#4881a6;background:#f2f8fc}
.crm-file-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:12px;background:#e8f2f8;color:#24688f;font-size:22px;margin-bottom:5px}
.crm-file-drop strong{font-size:15px}.crm-file-drop span{color:#687c8a;font-size:12px}.crm-file-drop small{color:#8b98a2;font-size:10px}
.crm-import-file-summary{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:9px;margin:14px 0 12px}
.crm-import-file-summary>div{background:#fff;border:1px solid #dde5eb;border-radius:9px;padding:11px;min-width:0}
.crm-import-file-summary span{display:block;color:#71828f;font-size:9px;font-weight:900}
.crm-import-file-summary strong{display:block;margin-top:5px;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crm-import-file-summary strong.ok{color:#2f7043}.crm-import-file-summary strong.bad{color:#a23d3d}
.crm-mapping-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.crm-mapping-grid label span{font-size:10px!important}.crm-mapping-grid select{min-height:38px}
.crm-import-mode{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.crm-import-mode label{display:flex;align-items:flex-start;gap:9px;padding:12px;border:1px solid #dde5eb;border-radius:10px;background:#fafcfd;cursor:pointer}
.crm-import-mode input{width:auto!important;min-height:0!important;margin-top:3px}
.crm-import-mode strong{display:block;font-size:11px}.crm-import-mode span{display:block;margin-top:4px;color:#72828e;font-size:10px;line-height:1.45}
.crm-import-actions{position:sticky;bottom:0;z-index:8;display:flex;align-items:center;gap:8px;margin-top:12px;padding:11px;background:rgba(245,247,249,.96);backdrop-filter:blur(8px);border:1px solid #dde5eb;border-radius:10px}
.crm-import-actions span{color:#667987;font-size:10px}
.crm-progress-head{display:flex;justify-content:space-between;gap:10px;margin-bottom:7px}.crm-progress-head span,.crm-progress-head strong{font-size:11px}
.crm-progress-track{height:10px;overflow:hidden;background:#e7edf1;border-radius:999px}.crm-progress-track>div{height:100%;background:linear-gradient(90deg,#155f91,#ff9d16);border-radius:999px;transition:width .2s ease}
#crmImportProgress{margin-top:10px;background:#fff;border:1px solid #dde5eb;border-radius:10px;padding:12px}#crmImportProgress small{display:block;margin-top:6px;color:#7a8994;font-size:9px}
.crm-import-success>strong{display:block;color:#2d6d42;font-size:13px;margin-bottom:10px}.crm-import-result-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.crm-import-result-grid>div{border:1px solid #dfe7ed;border-radius:8px;padding:9px;background:#f8fbfd}.crm-import-result-grid span{display:block;color:#70818d;font-size:9px}.crm-import-result-grid b{display:block;margin-top:4px;font-size:16px}
@media(max-width:900px){.crm-mapping-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-import-file-summary{grid-template-columns:1fr 1fr}}
@media(max-width:820px){.crm-import-modal-card{width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important}.crm-import-body{padding:12px}.crm-import-intro{align-items:stretch;flex-direction:column}.crm-mapping-grid{grid-template-columns:1fr}.crm-import-mode{grid-template-columns:1fr}.crm-import-actions{display:grid;grid-template-columns:1fr 1fr;bottom:env(safe-area-inset-bottom)}.crm-import-actions span{grid-column:1/-1}}
@media(max-width:520px){.crm-import-file-summary,.crm-import-result-grid{grid-template-columns:1fr}.crm-import-actions{grid-template-columns:1fr}.crm-import-actions span{grid-column:auto}}

/* ==========================================================
   SPARKER CRM EXCEL BULK IMPORT V15.2
   ========================================================== */
.crm-import-modal-card{width:min(1280px,96vw)!important}
.crm-import-body{padding:16px}
.crm-import-intro{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.crm-import-intro strong{display:block;font-size:15px}
.crm-import-intro span{display:block;margin-top:4px;color:#748491;font-size:11px}
.crm-file-drop{min-height:190px;border:2px dashed #cbd8e1;background:#f8fbfd;border-radius:13px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:5px;cursor:pointer;padding:20px;transition:.16s ease}
.crm-file-drop:hover,.crm-file-drop.drag{border-color:#4881a6;background:#f2f8fc}
.crm-file-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:12px;background:#e8f2f8;color:#24688f;font-size:22px;margin-bottom:5px}
.crm-file-drop strong{font-size:15px}.crm-file-drop span{color:#687c8a;font-size:12px}.crm-file-drop small{color:#8b98a2;font-size:10px}
.crm-import-file-summary{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:9px;margin:14px 0 12px}
.crm-import-file-summary>div{background:#fff;border:1px solid #dde5eb;border-radius:9px;padding:11px;min-width:0}
.crm-import-file-summary span{display:block;color:#71828f;font-size:9px;font-weight:900}
.crm-import-file-summary strong{display:block;margin-top:5px;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crm-import-file-summary strong.ok{color:#2f7043}.crm-import-file-summary strong.bad{color:#a23d3d}
.crm-mapping-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.crm-mapping-grid label span{font-size:10px!important}.crm-mapping-grid select{min-height:38px}
.crm-import-mode{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.crm-import-mode label{display:flex;align-items:flex-start;gap:9px;padding:12px;border:1px solid #dde5eb;border-radius:10px;background:#fafcfd;cursor:pointer}
.crm-import-mode input{width:auto!important;min-height:0!important;margin-top:3px}
.crm-import-mode strong{display:block;font-size:11px}.crm-import-mode span{display:block;margin-top:4px;color:#72828e;font-size:10px;line-height:1.45}
.crm-import-actions{position:sticky;bottom:0;z-index:8;display:flex;align-items:center;gap:8px;margin-top:12px;padding:11px;background:rgba(245,247,249,.96);backdrop-filter:blur(8px);border:1px solid #dde5eb;border-radius:10px}
.crm-import-actions span{color:#667987;font-size:10px}
.crm-progress-head{display:flex;justify-content:space-between;gap:10px;margin-bottom:7px}.crm-progress-head span,.crm-progress-head strong{font-size:11px}
.crm-progress-track{height:10px;overflow:hidden;background:#e7edf1;border-radius:999px}.crm-progress-track>div{height:100%;background:linear-gradient(90deg,#155f91,#ff9d16);border-radius:999px;transition:width .2s ease}
#crmImportProgress{margin-top:10px;background:#fff;border:1px solid #dde5eb;border-radius:10px;padding:12px}#crmImportProgress small{display:block;margin-top:6px;color:#7a8994;font-size:9px}
.crm-import-success>strong{display:block;color:#2d6d42;font-size:13px;margin-bottom:10px}.crm-import-result-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.crm-import-result-grid>div{border:1px solid #dfe7ed;border-radius:8px;padding:9px;background:#f8fbfd}.crm-import-result-grid span{display:block;color:#70818d;font-size:9px}.crm-import-result-grid b{display:block;margin-top:4px;font-size:16px}
@media(max-width:900px){.crm-mapping-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-import-file-summary{grid-template-columns:1fr 1fr}}
@media(max-width:820px){.crm-import-modal-card{width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important}.crm-import-body{padding:12px}.crm-import-intro{align-items:stretch;flex-direction:column}.crm-mapping-grid{grid-template-columns:1fr}.crm-import-mode{grid-template-columns:1fr}.crm-import-actions{display:grid;grid-template-columns:1fr 1fr;bottom:env(safe-area-inset-bottom)}.crm-import-actions span{grid-column:1/-1}}
@media(max-width:520px){.crm-import-file-summary,.crm-import-result-grid{grid-template-columns:1fr}.crm-import-actions{grid-template-columns:1fr}.crm-import-actions span{grid-column:auto}}

/* ==========================================================
   SPARKER OUTLOOK LIVE SYNC V15.4
   ========================================================== */
.crm-outlook-button{white-space:nowrap}
.crm-outlook-modal-card{width:min(1280px,96vw)!important}
.crm-outlook-body{padding:15px}
.crm-outlook-status-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin-bottom:11px}
.crm-outlook-status-grid article{background:#fff;border:1px solid #dde5eb;border-radius:10px;padding:12px}
.crm-outlook-status-grid span{display:block;color:#71828f;font-size:9px;font-weight:900}
.crm-outlook-status-grid strong{display:block;font-size:16px;margin:6px 0 3px}
.crm-outlook-status-grid small{display:block;color:#84919b;font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crm-outlook-secret-row{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px}
.crm-outlook-badge{display:inline-flex;align-items:center;border-radius:999px;padding:6px 9px;font-size:9px;font-weight:900;border:1px solid}
.crm-outlook-badge.ok{background:#eef9f2;color:#2e7043;border-color:#bfdfca}
.crm-outlook-badge.bad{background:#fff5f5;color:#9c4040;border-color:#edcaca}
.crm-outlook-form{display:grid;grid-template-columns:1.5fr .7fr 1.8fr;gap:9px}
.crm-outlook-check{display:flex;align-items:flex-start;gap:9px;background:#f8fbfd;border:1px solid #dde5eb;border-radius:9px;padding:10px}
.crm-outlook-check input{width:auto!important;min-height:0!important;margin-top:3px}
.crm-outlook-check strong{display:block;font-size:10px}.crm-outlook-check span{display:block;margin-top:3px;color:#71828e;font-size:9px;line-height:1.45}
.crm-outlook-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:11px}.crm-outlook-actions>span{font-size:10px;color:#647885}
.danger-outline{background:#fff6f6!important;border-color:#e5c1c1!important;color:#984040!important}
.crm-outlook-setup{margin-top:12px;border-top:1px solid #e2e9ee;padding-top:10px;display:grid;gap:6px}.crm-outlook-setup>strong{font-size:10px}
.crm-outlook-setup>div{display:grid;grid-template-columns:100px 1fr;gap:8px;align-items:start}.crm-outlook-setup span{font-size:9px;color:#73828e;font-weight:900}.crm-outlook-setup code{font-size:9px;color:#244f6b;word-break:break-all;background:#f4f7f9;border-radius:5px;padding:4px 6px}
.crm-outlook-tabs{display:flex;gap:5px;margin:12px 0 0;background:#eef3f6;padding:4px;border-radius:9px;width:max-content;max-width:100%;overflow:auto}
.crm-outlook-tabs button{border:0;background:transparent;border-radius:7px;padding:8px 12px;font-size:10px;font-weight:900;color:#587080;white-space:nowrap}.crm-outlook-tabs button.active{background:#fff;color:#14344b;box-shadow:0 2px 7px rgba(20,36,48,.08)}
.crm-outlook-unmatched{display:grid;gap:8px}.crm-outlook-unmatched-row{display:grid;grid-template-columns:minmax(260px,1.5fr) minmax(220px,1fr) auto;gap:9px;align-items:center;border:1px solid #e0e7ec;border-radius:9px;padding:10px;background:#fafcfd}
.crm-outlook-mail-info{min-width:0}.crm-outlook-mail-info strong{display:block;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crm-outlook-mail-info span{display:block;font-size:9px;color:#637784;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crm-outlook-mail-info small{display:block;font-size:8px;color:#8a969f;margin-top:3px}
@media(max-width:1000px){.crm-outlook-status-grid{grid-template-columns:1fr 1fr}.crm-outlook-form{grid-template-columns:1fr 1fr}.crm-outlook-check{grid-column:1/-1}.crm-outlook-unmatched-row{grid-template-columns:1fr}}
@media(max-width:820px){.crm-outlook-modal-card{width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important}.crm-outlook-body{padding:12px}.crm-outlook-form{grid-template-columns:1fr}.crm-outlook-check{grid-column:auto}.crm-outlook-setup>div{grid-template-columns:1fr}.crm-outlook-actions{display:grid;grid-template-columns:1fr}}
@media(max-width:520px){.crm-outlook-status-grid{grid-template-columns:1fr}}

/* ==========================================================
   SPARKER GOOGLE MAIL SYNC V15.6
   ========================================================== */
.gmail-sync-button{white-space:nowrap}
.gmail-modal-card{width:min(1280px,96vw)!important}
.gmail-body{padding:15px}
.gmail-status-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:11px}
.gmail-status-grid article{background:#fff;border:1px solid #dde5eb;border-radius:10px;padding:12px}
.gmail-status-grid span{display:block;color:#71828f;font-size:9px;font-weight:900}
.gmail-status-grid strong{display:block;font-size:16px;margin:6px 0 3px}
.gmail-status-grid small{display:block;color:#84919b;font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gmail-secret-row{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px}
.gmail-badge{display:inline-flex;align-items:center;border-radius:999px;padding:6px 9px;font-size:9px;font-weight:900;border:1px solid}
.gmail-badge.ok{background:#eef9f2;color:#2e7043;border-color:#bfdfca}
.gmail-badge.bad{background:#fff5f5;color:#9c4040;border-color:#edcaca}
.gmail-form{display:grid;grid-template-columns:1.2fr 1.5fr;gap:9px}
.gmail-check{display:flex;align-items:flex-start;gap:9px;background:#f8fbfd;border:1px solid #dde5eb;border-radius:9px;padding:10px}
.gmail-check input{width:auto!important;min-height:0!important;margin-top:3px}
.gmail-check strong{display:block;font-size:10px}
.gmail-check span{display:block;margin-top:3px;color:#71828e;font-size:9px;line-height:1.45}
.gmail-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:11px}
.gmail-actions>span{font-size:10px;color:#647885}
.gmail-setup{margin-top:12px;border-top:1px solid #e2e9ee;padding-top:10px;display:grid;gap:6px}
.gmail-setup>strong{font-size:10px}
.gmail-setup>div{display:grid;grid-template-columns:100px 1fr;gap:8px;align-items:start}
.gmail-setup span{font-size:9px;color:#73828e;font-weight:900}
.gmail-setup code{font-size:9px;color:#244f6b;word-break:break-all;background:#f4f7f9;border-radius:5px;padding:4px 6px}
.gmail-tabs{display:flex;gap:5px;margin:12px 0 0;background:#eef3f6;padding:4px;border-radius:9px;width:max-content;max-width:100%;overflow:auto}
.gmail-tabs button{border:0;background:transparent;border-radius:7px;padding:8px 12px;font-size:10px;font-weight:900;color:#587080;white-space:nowrap}
.gmail-tabs button.active{background:#fff;color:#14344b;box-shadow:0 2px 7px rgba(20,36,48,.08)}
.gmail-unmatched{display:grid;gap:8px}
.gmail-unmatched-row{display:grid;grid-template-columns:minmax(260px,1.5fr) minmax(220px,1fr) auto;gap:9px;align-items:center;border:1px solid #e0e7ec;border-radius:9px;padding:10px;background:#fafcfd}
.gmail-mail-info{min-width:0}
.gmail-mail-info strong{display:block;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gmail-mail-info span{display:block;font-size:9px;color:#637784;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gmail-mail-info small{display:block;font-size:8px;color:#8a969f;margin-top:3px}
@media(max-width:1000px){.gmail-status-grid{grid-template-columns:1fr 1fr}.gmail-form{grid-template-columns:1fr}.gmail-unmatched-row{grid-template-columns:1fr}}
@media(max-width:820px){.gmail-modal-card{width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important}.gmail-body{padding:12px}.gmail-setup>div{grid-template-columns:1fr}.gmail-actions{display:grid;grid-template-columns:1fr}}
@media(max-width:520px){.gmail-status-grid{grid-template-columns:1fr}}


/* SPARKER GMAIL AUTO LEAD V15.7 */
@media(min-width:1001px){
  .gmail-status-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
  .gmail-form{grid-template-columns:minmax(320px,1.2fr) minmax(260px,1fr) minmax(260px,1fr)}
}


/* SPARKER RESULT PAGINATION V17 */
.result-pager{
  margin-top:16px;
  padding:14px 16px;
  border:1px solid #d7e1e8;
  border-radius:12px;
  background:#fff;
}
.result-page-summary{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:12px;
  font-size:8px;
  color:#607281;
}
.result-page-summary strong{color:#162735}
.result-page-controls,.result-page-numbers,.result-page-jump{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
}
.result-page-controls{width:100%}
.result-page-btn{
  min-height:36px;
  padding:0 11px;
  border:1px solid #cddae3;
  border-radius:9px;
  background:#f8fbfd;
  color:#294151;
  font-weight:800;
  cursor:pointer;
  position:relative;
  z-index:1;
}
.result-page-btn:hover:not(:disabled){background:#edf5fa;border-color:#9fb5c4}
.result-page-btn:disabled{opacity:.42;cursor:not-allowed}
.result-page-btn.active{background:#ff9d0a;border-color:#ff9d0a;color:#111}
.result-page-dots{padding:0 4px;color:#768794}
.result-page-jump{margin-left:auto}
.result-page-jump label{font-size:8px;font-weight:800;color:#6a7b87}
.result-page-jump input{
  width:82px;height:36px;border:1px solid #cddae3;border-radius:9px;
  padding:0 9px;font-weight:700;color:#203847;background:#fff;
}
@media(max-width:900px){
  .result-page-controls{align-items:stretch}
  .result-page-numbers{width:100%;order:3;overflow-x:auto;flex-wrap:nowrap}
  .result-page-jump{width:100%;order:4;margin-left:0}
  .result-page-jump input{flex:1}
}

/* SPARKER_LIST_BUTTON_STATE_CSS_V17_2 */
.tiny-btn.is-done,
.tiny-btn.is-done:disabled{
  opacity:1!important;
  cursor:default!important;
  pointer-events:none!important;
  font-weight:900!important;
}
.tiny-btn.save-btn.is-done,
.tiny-btn.save-btn.is-done:disabled{
  background:#eaf8ef!important;
  border-color:#a9d8b8!important;
  color:#20713a!important;
}
.tiny-btn.target.is-done,
.tiny-btn.target.is-done:disabled{
  background:#fff0d7!important;
  border-color:#e5bd78!important;
  color:#855100!important;
}


/* SPARKER_GTIP_CLASSIFIER_V18 */
.gtc-view-head{align-items:flex-start}
.gtc-year-box{min-width:210px;padding:13px 16px;border:1px solid #d6e2e9;border-radius:13px;background:#fff;display:grid;gap:2px;text-align:right}
.gtc-year-box span,.gtc-year-box small{font-size:10px;color:#71828e}
.gtc-year-box strong{font-size:24px;color:#122736}
.gtc-tabs{display:inline-flex;gap:6px;padding:5px;margin:0 0 16px;border:1px solid #d7e2e8;border-radius:12px;background:#eef4f7}
.gtc-tab{border:0;background:transparent;color:#526977;font-weight:900;padding:10px 16px;border-radius:9px;cursor:pointer}
.gtc-tab.active{background:#fff;color:#102838;box-shadow:0 2px 8px rgba(9,35,51,.08)}
.gtc-product-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.gtc-product-form .gtc-wide{grid-column:1/-1}
.gtc-product-form textarea{min-height:92px;resize:vertical}
.gtc-form-actions{grid-column:1/-1}
.gtc-code-form{display:grid;grid-template-columns:2fr 1fr auto;gap:14px;align-items:end}
.gtc-results{margin-top:16px}
.gtc-result-top{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding:20px;border:1px solid #d7e2e8;border-radius:14px;background:#fff;margin-bottom:14px}
.gtc-result-top h2{margin:4px 0 5px;font-size:24px;color:#122736}
.gtc-result-top p{margin:0;color:#637683;line-height:1.5}
.gtc-result-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.gtc-result-meta>span,.gtc-source{padding:7px 10px;border:1px solid #d9e3e9;border-radius:999px;background:#f8fbfc;font-size:10px;color:#637582;white-space:nowrap}
.gtc-source{font-weight:900;color:#0d618d;background:#eef8fd;border-color:#c7e5f3}
.gtc-candidates{display:grid;gap:14px}
.gtc-candidate{padding:19px;border:1px solid #d7e2e8;border-radius:14px;background:#fff}
.gtc-candidate.top{border-color:#e7b75f;box-shadow:0 8px 24px rgba(174,116,10,.08)}
.gtc-candidate-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}
.gtc-candidate-head h3{margin:5px 0 5px;font-size:25px;letter-spacing:.02em;color:#102838}
.gtc-candidate-head p{margin:0;color:#647783;line-height:1.5}
.gtc-confidence{padding:7px 10px;border-radius:999px;font-size:10px;font-weight:950;white-space:nowrap}
.gtc-confidence.high{background:#eaf8ef;color:#20713a;border:1px solid #afdcbc}
.gtc-confidence.medium{background:#fff5dd;color:#805706;border:1px solid #eed29a}
.gtc-confidence.low{background:#fceced;color:#a23438;border:1px solid #efb9bc}
.gtc-mini-meta{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.gtc-mini-meta span{padding:7px 10px;border-radius:9px;background:#f5f8fa;color:#637581;font-size:10px}
.gtc-mini-meta strong{color:#173144}
.gtc-why{display:grid;gap:6px;padding:13px 14px;border-radius:11px;background:#f7fafb;margin-top:10px}
.gtc-why strong{font-size:11px;color:#213b4b;margin-bottom:2px}
.gtc-why span{font-size:11px;color:#526a78}
.gtc-observed{margin-top:14px;display:grid;gap:8px}
.gtc-observed>strong{font-size:11px;color:#213b4b}
.gtc-observed>div{display:flex;gap:7px;flex-wrap:wrap}
.gtc-observed button{border:1px solid #d5e1e8;background:#fff;color:#145f8e;border-radius:9px;padding:8px 10px;font-weight:850;cursor:pointer}
.gtc-observed small{margin-left:5px;color:#7d8c96}
.gtc-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.gtc-hierarchy{display:grid;grid-template-columns:1fr auto 1fr auto 1fr auto 1fr;align-items:stretch;gap:8px;margin:14px 0}
.gtc-level{padding:14px;border:1px solid #d7e2e8;border-radius:12px;background:#fff;min-width:0}
.gtc-level span{display:block;font-size:9px;font-weight:900;letter-spacing:.08em;color:#758793;text-transform:uppercase}
.gtc-level strong{display:block;margin:5px 0;font-size:18px;color:#102838}
.gtc-level p{margin:0;font-size:10px;line-height:1.4;color:#657783}
.gtc-arrow{display:grid;place-items:center;color:#9aabb5;font-size:17px}
.gtc-warning{padding:14px 16px;border:1px solid #ebce91;border-radius:12px;background:#fff8e7;display:grid;gap:4px;margin-bottom:14px}
.gtc-warning strong{font-size:11px;color:#725009}.gtc-warning span{font-size:10px;color:#866d38}
.gtc-info-line{display:flex;gap:12px;align-items:flex-start;padding:13px 15px;background:#f6f9fb;border-radius:11px;margin:12px 0}
.gtc-info-line span{font-size:10px;color:#758793;min-width:145px}.gtc-info-line strong{font-size:11px;color:#233c4b}
.gtc-child-card{margin-top:14px}
.gtc-legal-note{margin-top:12px;padding:10px 12px;border-left:3px solid #aab8c0;background:#f7f9fa;color:#73828b;font-size:9px;line-height:1.5}
@media(max-width:1050px){.gtc-product-form{grid-template-columns:1fr 1fr}.gtc-code-form{grid-template-columns:1fr 1fr}.gtc-code-form .form-actions{grid-column:1/-1}.gtc-hierarchy{grid-template-columns:1fr}.gtc-arrow{min-height:16px}}
@media(max-width:700px){.gtc-product-form,.gtc-code-form{grid-template-columns:1fr}.gtc-view-head,.gtc-result-top,.gtc-candidate-head{display:grid}.gtc-year-box{width:100%;text-align:left}.gtc-result-meta{justify-content:flex-start}.gtc-tabs{display:flex;width:100%}.gtc-tab{flex:1;padding:10px 7px}}


/* SPARKER CRM UNIFIED EMAIL HISTORY V59 */
.crm59-email-history-card{margin:10px 0}.crm59-email-history{display:grid;gap:8px;max-height:360px;overflow:auto}.crm59-email-item{border:1px solid #dde7ec;border-left:4px solid #8aa3b1;border-radius:9px;padding:10px 12px;background:#fff}.crm59-email-item.sent{border-left-color:#2b7aa5}.crm59-email-item.received{border-left-color:#2f8a5b;background:#f7fcf8}.crm59-email-meta{display:flex;align-items:center;gap:7px;margin-bottom:6px;font-size:9px;color:#70838e}.crm59-email-meta time{margin-left:auto}.crm59-provider{display:inline-flex;padding:3px 6px;border-radius:999px;font-size:8px;font-weight:900;background:#edf3f6;color:#496575}.crm59-provider.gmail{background:#fff0ee;color:#a54232}.crm59-provider.outlook{background:#eaf4ff;color:#24699a}.crm59-email-item>strong{display:block;font-size:11px;color:#1a3443}.crm59-email-item>small{display:block;margin-top:3px;color:#70848f;font-size:9px}.crm59-email-item>p{margin:6px 0 0;color:#536d7a;font-size:9px;line-height:1.5;white-space:pre-wrap}
