:root{
  --pl-bg:#ffffff;
  --pl-bg-accent:#f9fafb;
  --pl-paper:#ffffff;
  --pl-ink:#1a1a2e;
  --pl-muted:#6b7280;
  --pl-line:#e5e7eb;
  --pl-line-strong:#d1d5db;
  --pl-primary:#1a1a2e;
  --pl-primary-soft:#f3f4f6;
  --pl-success:#16a34a;
  --pl-danger:#dc2626;
  --pl-warn:#d97706;
  --pl-shadow:none;
}

body.premium-light{
  background:var(--pl-bg);
  color:var(--pl-ink);
}

body.premium-light .page{
  background:var(--pl-paper);
  border:1px solid #e5e7eb;
  border-radius:4px;
  box-shadow:var(--pl-shadow);
  margin-top:0;
}

body.premium-light h1,
body.premium-light h2,
body.premium-light h3,
body.premium-light .module-title,
body.premium-light .card-title,
body.premium-light .contact-name{color:#102038}

body.premium-light p,
body.premium-light td,
body.premium-light .chk-text,
body.premium-light .contact-detail,
body.premium-light .doc-desc{color:#33435e}

body.premium-light .header{border-bottom-color:#1a1a2e}
body.premium-light h2{border-bottom-color:#e5e7eb}

body.premium-light table{border-radius:0;overflow:visible}
body.premium-light th{
  background:#f3f4f6;
  border-color:#e5e7eb;
  color:#6b7280;
}
body.premium-light td{
  padding:0;
  border-color:#e5e7eb;
}

body.premium-light .no-print{
  background:#f3f4f6;
  border:1px solid #e5e7eb;
  border-radius:4px;
  box-shadow:none;
}

body.premium-light .no-print button,
body.premium-light .fi-toolbar button,
body.premium-light .fi-side-actions button{
  background:#1a1a2e;
  color:#fff;
  border:none;
  border-radius:3px;
  padding:6px 16px;
  cursor:pointer;
  font-size:10px;
  font-family:'JetBrains Mono',monospace;
  letter-spacing:.06em;
  box-shadow:none;
}

body.premium-light .no-print button:hover,
body.premium-light .fi-toolbar button:hover,
body.premium-light .fi-side-actions button:hover{filter:none}

body.premium-light .fi-toolbar{
  position:static;
  z-index:20;
  background:#f3f4f6;
  border:1px solid #e5e7eb;
  box-shadow:none;
  border-radius:4px;
  margin:0 auto 12px;
  max-width:800px;
  padding:8px 10px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

body.premium-light .fi-toolbar .fi-toolbar-title{
  font-family:'JetBrains Mono',monospace;
  font-size:10px;
  color:#6b7280;
  letter-spacing:.06em;
  text-transform:uppercase;
}

body.premium-light .fi-actions{display:flex;gap:8px;flex-wrap:wrap}
body.premium-light .fi-subtle{
  background:#f9fafb !important;
  color:#374151 !important;
  border:1px solid #d1d5db !important;
  box-shadow:none !important;
}

body.premium-light .fi-form-sidebar{
  position:fixed;
  left:12px;
  top:12px;
  width:250px;
  max-height:calc(100vh - 24px);
  overflow:auto;
  background:#f3f4f6;
  border:1px solid #e5e7eb;
  border-radius:6px;
  padding:10px;
  z-index:40;
}

body.premium-light .fi-form-sidebar-title{
  font-family:'JetBrains Mono',monospace;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#374151;
  margin-bottom:8px;
}

body.premium-light .fi-form-sidebar-list{
  display:flex;
  flex-direction:column;
  gap:6px;
}

body.premium-light .fi-side-tools{
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid #d1d5db;
  display:flex;
  flex-direction:column;
  gap:8px;
}

body.premium-light .fi-side-doclabel{
  font-size:12px;
  line-height:1.45;
  color:#374151;
}

body.premium-light .fi-side-actions{
  display:flex;
  flex-direction:column;
  gap:6px;
}

body.premium-light .fi-side-actions button{
  width:100%;
  text-align:left;
  padding:7px 10px;
}

body.premium-light .fi-form-sidebar a{
  display:block;
  text-decoration:none;
  padding:8px 9px;
  border-radius:6px;
  border:1px solid #d1d5db;
  background:#fff;
  color:#374151;
  font-size:12px;
  font-weight:600;
}

body.premium-light .fi-form-sidebar a:hover{
  background:#f9fafb;
}

body.premium-light .fi-form-sidebar a.active{
  background:#1a1a2e;
  border-color:#1a1a2e;
  color:#fff;
}

body.premium-light.with-fi-sidebar .page{
  margin-left:280px !important;
  max-width:calc(100% - 300px);
}

body.premium-light.with-fi-sidebar .no-print:not(.fi-form-sidebar){
  display:none !important;
}

body.premium-light .field-value,
body.premium-light td.fill,
body.premium-light .sign-line,
body.premium-light .fi-box{
  border:1px solid transparent;
  border-radius:4px;
  transition:border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

body.premium-light .field-value.fi-line,
body.premium-light .sign-line.fi-sign{
  min-height:30px;
  border-color:transparent;
  background:#ffffff;
  padding:0;
}

body.premium-light td.fill.fi-area,
body.premium-light .fi-box.fi-area{
  min-height:0;
  background:transparent;
  border-color:transparent;
  padding:0;
}

body.premium-light .fi-control{
  width:100%;
  border:1px solid #d1d5db;
  border-radius:4px;
  background:#fff;
  color:#1a1a2e;
  font-family:'Space Grotesk',sans-serif;
  font-size:12px;
  line-height:1.45;
  padding:8px 10px;
}

body.premium-light .fi-input{
  min-height:34px;
}

body.premium-light .fi-textarea{
  min-height:70px;
  resize:vertical;
}

body.premium-light .fi-inline-input{
  display:inline-block;
  width:auto;
  min-width:10ch;
  margin:0 4px;
  vertical-align:middle;
  padding:4px 6px;
  min-height:30px;
}

body.premium-light .fi-control:focus{
  outline:none;
  border-color:#9ca3af;
  box-shadow:none;
}

body.premium-light .fi-check{
  width:15px;
  height:15px;
  accent-color:var(--pl-primary);
  cursor:pointer;
  flex-shrink:0;
}

body.premium-light .checkbox-list li,
body.premium-light ul.cl li{
  padding-left:0;
  display:flex;
  align-items:flex-start;
  gap:8px;
}

body.premium-light .checkbox-list li::before,
body.premium-light ul.cl li::before{content:none !important}

body.premium-light .fi-check-token{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-right:8px;
  margin-bottom:4px;
}

body.premium-light .tag{
  border-radius:2px;
  padding:2px 6px;
  display:inline-block;
  align-items:center;
  gap:5px;
  margin:0;
}

body.premium-light .chk-item{
  background:#ffffff;
  border-color:#e5e7eb;
  border-radius:4px;
}

body.premium-light .chk-item.is-checked{
  border-color:#d1d5db;
  background:#f9fafb;
}

body.premium-light .chk-item .chk-box{display:none}

body.premium-light .section-box,
body.premium-light .pb-step,
body.premium-light .contact-card{
  border-color:#e5e7eb;
  border-radius:4px;
  background:#ffffff;
}

body.premium-light .card{
  border:1px solid #e5e7eb;
  border-radius:4px;
  background:#fff;
  color:#1a1a2e;
  box-shadow:var(--pl-shadow);
}

body.premium-light .card-header{color:#6b7280}

body.premium-light .contact,
body.premium-light .alert{
  background:#fafafa;
  border-color:#e5e7eb;
}

body.premium-light .alert{color:#7f1d1d}
body.premium-light .footer,
body.premium-light .footer-card{color:#9ca3af}

body.premium-light .score-box{
  border:1px solid #e5e7eb;
  background:#fafafa;
  border-radius:4px;
}

body.premium-light .contact-icon{display:none}

@media (max-width:700px){
  body.premium-light .fi-toolbar{position:static}
  body.premium-light .page{padding:20px}
  body.premium-light .fi-form-sidebar{
    position:static;
    width:auto;
    max-height:none;
    margin:0 auto 10px;
  }
  body.premium-light.with-fi-sidebar .page{
    margin-left:auto !important;
    max-width:800px;
  }

  body.premium-light.with-fi-sidebar .no-print:not(.fi-form-sidebar){
    display:none !important;
  }
}

@page{
  size:A4;
  margin:12mm;
}

@media print{
  body.premium-light{
    background:#fff !important;
    color:#111 !important;
    padding:0 !important;
    display:block !important;
  }

  body.premium-light .fi-toolbar,
  body.premium-light .no-print,
  body.premium-light .fi-form-sidebar{
    display:none !important;
  }

  body.premium-light .page,
  body.premium-light .card{
    background:#fff !important;
    box-shadow:none !important;
    border:1px solid #d1d5db !important;
    border-radius:0 !important;
    margin:0 0 10px 0 !important;
    width:auto !important;
    break-inside:avoid;
  }

  body.premium-light table{
    border-radius:0 !important;
    overflow:visible !important;
  }

  body.premium-light th,
  body.premium-light td{
    background:#fff !important;
    color:#111 !important;
    border-color:#cfd6df !important;
  }

  body.premium-light h1,
  body.premium-light h2,
  body.premium-light h3,
  body.premium-light p,
  body.premium-light .logo-line,
  body.premium-light .contact-name,
  body.premium-light .contact-detail,
  body.premium-light .footer,
  body.premium-light .footer-card{
    color:#111 !important;
  }

  body.premium-light .section-box,
  body.premium-light .pb-step,
  body.premium-light .contact,
  body.premium-light .contact-card,
  body.premium-light .score-box,
  body.premium-light .chk-item,
  body.premium-light .alert{
    background:#fff !important;
    border-color:#d1d5db !important;
    color:#111 !important;
  }

  body.premium-light .tag,
  body.premium-light .pri-badge,
  body.premium-light .raci-r,
  body.premium-light .raci-a,
  body.premium-light .raci-c,
  body.premium-light .raci-i{
    background:#fff !important;
    color:#111 !important;
    border:1px solid #cfd6df !important;
  }

  body.premium-light .fi-check{
    accent-color:#111 !important;
  }

  body.premium-light .fi-control{
    border:1px solid #9ca3af !important;
    background:#fff !important;
    color:#111 !important;
    box-shadow:none !important;
    border-radius:0 !important;
    padding:4px 6px !important;
  }

  body.premium-light .fi-control::placeholder{
    color:transparent !important;
  }

  body.premium-light .fi-textarea{
    min-height:48px !important;
  }
}
