.herotec-cim {
  --hcim-green: #183f33;
  --hcim-green-2: #285b49;
  --hcim-gold: #c5a15b;
  --hcim-line: #d9e1dc;
  --hcim-text: #26332d;
  --hcim-muted: #637169;
  --hcim-soft: #f5f7f5;
  color: var(--hcim-text);
  direction: inherit;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 1.75rem 0;
  box-sizing: border-box;
  isolation: isolate;
  font: inherit;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.herotec-cim *, .herotec-cim *::before, .herotec-cim *::after { box-sizing: border-box; }
.herotec-cim .hcim-head { border-bottom: 2px solid var(--hcim-gold); padding: 0 0 1rem; margin: 0 0 1rem; }
.herotec-cim .hcim-kicker { margin: 0 0 .3rem; color: var(--hcim-gold); font-size: .76rem; font-weight: 800; letter-spacing: .08em; }
.herotec-cim h3 { color: var(--hcim-green); font-size: clamp(1.35rem, 2.8vw, 1.85rem); line-height: 1.3; margin: 0 0 .45rem; }
.herotec-cim .hcim-head p:last-child { margin: 0; color: var(--hcim-muted); }
.herotec-cim .hcim-panel { border: 1px solid var(--hcim-line); border-radius: 12px; padding: clamp(.85rem, 2vw, 1.2rem); margin: 1rem 0; background: #fff; min-width: 0; }
.herotec-cim .hcim-panel h4, .herotec-cim legend { color: var(--hcim-green); font-size: 1.1rem; font-weight: 800; margin: 0 0 .8rem; padding: 0; }
.herotec-cim fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.herotec-cim .hcim-scope fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.herotec-cim .hcim-scope .hcim-field:nth-child(3) { grid-column: 1 / -1; }
.herotec-cim .hcim-competitor-form, .herotec-cim .hcim-observation-form, .herotec-cim .hcim-opportunity-form, .herotec-cim .hcim-threat-form {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; align-items: end; min-width: 0;
}
.herotec-cim .hcim-observation-form .hcim-hint, .herotec-cim .hcim-observation-form button,
.herotec-cim .hcim-opportunity-form button, .herotec-cim .hcim-threat-form button { grid-column: 1 / -1; }
.herotec-cim .hcim-custom-dimension { grid-column: 1 / -1; }
.herotec-cim .hcim-field { display: flex; flex-direction: column; gap: .25rem; min-width: 0; margin: 0; }
.herotec-cim .hcim-field > span { color: var(--hcim-text); font-weight: 700; font-size: .9rem; }
.herotec-cim .hcim-field b { color: #a43c32; }
.herotec-cim input, .herotec-cim textarea, .herotec-cim select {
  width: 100%; max-width: 100%; min-width: 0; min-height: 42px; border: 1px solid #aebbb3; border-radius: 7px;
  background: #fff; color: var(--hcim-text); padding: .55rem .65rem; font: inherit; font-size: .95rem; line-height: 1.4;
}
.herotec-cim textarea { min-height: 82px; resize: vertical; }
.herotec-cim input:focus-visible, .herotec-cim textarea:focus-visible, .herotec-cim select:focus-visible,
.herotec-cim button:focus-visible, .herotec-cim a:focus-visible { outline: 3px solid rgba(197,161,91,.55); outline-offset: 2px; }
.herotec-cim button { font: inherit; cursor: pointer; }
.herotec-cim .hcim-button { border: 1px solid var(--hcim-green); border-radius: 7px; padding: .56rem .9rem; font-weight: 800; min-height: 42px; line-height: 1.25; }
.herotec-cim .hcim-primary { background: var(--hcim-green); color: #fff; }
.herotec-cim .hcim-secondary { background: #fff; color: var(--hcim-green); }
.herotec-cim .hcim-danger { background: #fff; color: #8c3029; border-color: #b35b54; }
.herotec-cim .hcim-button:hover { filter: brightness(.96); }
.herotec-cim .hcim-hint, .herotec-cim .hcim-privacy { color: var(--hcim-muted); font-size: .84rem; margin: .35rem 0 0; }
.herotec-cim .hcim-privacy { border-top: 1px solid var(--hcim-line); padding-top: .75rem; }
.herotec-cim .hcim-empty, .herotec-cim .hcim-not-recorded { color: var(--hcim-muted); font-style: italic; }
.herotec-cim .hcim-chip-list, .herotec-cim .hcim-record-list { list-style: none; padding: 0; margin: .8rem 0 0; }
.herotec-cim .hcim-chip-list { display: flex; flex-wrap: wrap; gap: .55rem; }
.herotec-cim .hcim-chip-list li { display: flex; align-items: center; gap: .65rem; border: 1px solid var(--hcim-line); border-radius: 9px; padding: .5rem .65rem; max-width: 100%; background: var(--hcim-soft); }
.herotec-cim .hcim-chip-list li span { min-width: 0; display: flex; flex-direction: column; }
.herotec-cim .hcim-chip-list small { color: var(--hcim-muted); }
.herotec-cim .hcim-remove { width: 32px; height: 32px; border: 1px solid var(--hcim-line); border-radius: 50%; background: #fff; color: #8c3029; font-size: 1.1rem; flex: 0 0 auto; }
.herotec-cim .hcim-record-list li { display: flex; gap: .8rem; align-items: flex-start; justify-content: space-between; padding: .75rem 0; border-bottom: 1px solid var(--hcim-line); }
.herotec-cim .hcim-record-list li:last-child { border-bottom: 0; }
.herotec-cim .hcim-record-list li > div { min-width: 0; }
.herotec-cim .hcim-record-list p { margin: .25rem 0; }
.herotec-cim .hcim-record-list small, .herotec-cim .hcim-record-list a { display: block; color: var(--hcim-muted); font-size: .82rem; overflow-wrap: anywhere; }
.herotec-cim .hcim-summary-head { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; align-items: center; }
.herotec-cim .hcim-summary-head h4 { margin: 0; }
.herotec-cim .hcim-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin: .9rem 0; }
.herotec-cim .hcim-kpis > div { padding: .7rem; background: var(--hcim-soft); border: 1px solid var(--hcim-line); border-radius: 8px; display: flex; flex-direction: column; }
.herotec-cim .hcim-kpis strong { color: var(--hcim-green); font-size: 1.4rem; }
.herotec-cim .hcim-kpis span { color: var(--hcim-muted); font-size: .82rem; }
.herotec-cim .hcim-readiness { padding: .65rem .8rem; border-inline-start: 4px solid var(--hcim-gold); background: #faf8f1; border-radius: 5px; }
.herotec-cim .hcim-readiness.is-ready { border-color: var(--hcim-green-2); background: #f1f6f2; }
.herotec-cim .hcim-readiness.is-incomplete { border-color: #a45e31; background: #fbf5ee; }
.herotec-cim .hcim-competitor-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin: 1rem 0; }
.herotec-cim .hcim-result-card { border: 1px solid var(--hcim-line); border-radius: 9px; padding: .8rem; min-width: 0; }
.herotec-cim .hcim-result-card h5, .herotec-cim .hcim-result-actions h5 { margin: 0 0 .6rem; color: var(--hcim-green); font-size: 1rem; }
.herotec-cim .hcim-result-card h5 small { display: block; color: var(--hcim-muted); font-weight: 500; }
.herotec-cim .hcim-result-card dl { display: grid; grid-template-columns: minmax(105px, .8fr) minmax(0, 1.4fr); gap: .25rem .6rem; margin: 0; }
.herotec-cim .hcim-result-card dt { font-weight: 800; font-size: .84rem; }
.herotec-cim .hcim-result-card dd { margin: 0; min-width: 0; font-size: .9rem; }
.herotec-cim .hcim-result-card dd ul { padding-inline-start: 1.1rem; margin: 0; }
.herotec-cim .hcim-result-card dd li { margin: 0 0 .45rem; }
.herotec-cim .hcim-result-card dd small { display: block; color: var(--hcim-muted); font-size: .8rem; overflow-wrap: anywhere; }
.herotec-cim .hcim-gap-note { margin: .7rem 0 0; color: #8a4c24; font-size: .85rem; }
.herotec-cim .hcim-result-actions { border-top: 1px solid var(--hcim-line); padding-top: .8rem; margin-top: .8rem; }
.herotec-cim .hcim-result-actions li { margin: .35rem 0; }
.herotec-cim .hcim-result-actions small { display: block; color: var(--hcim-muted); }
.herotec-cim .hcim-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
.herotec-cim .hcim-status { min-height: 1.4em; margin: .55rem 0 0; color: var(--hcim-green); font-weight: 700; }
.herotec-cim .hcim-status.is-error { color: #9a3028; }
.herotec-cim[dir="rtl"] .hcim-readiness { text-align: right; }
.herotec-cim[dir="ltr"] .hcim-readiness { text-align: left; }

@media (max-width: 640px) {
  .herotec-cim .hcim-scope fieldset, .herotec-cim .hcim-competitor-form, .herotec-cim .hcim-observation-form,
  .herotec-cim .hcim-opportunity-form, .herotec-cim .hcim-threat-form, .herotec-cim .hcim-competitor-results { grid-template-columns: minmax(0, 1fr); }
  .herotec-cim .hcim-scope .hcim-field:nth-child(3), .herotec-cim .hcim-observation-form .hcim-hint,
  .herotec-cim .hcim-observation-form button, .herotec-cim .hcim-opportunity-form button,
  .herotec-cim .hcim-threat-form button, .herotec-cim .hcim-custom-dimension { grid-column: auto; }
  .herotec-cim .hcim-kpis { gap: .4rem; }
  .herotec-cim .hcim-kpis > div { padding: .55rem; }
  .herotec-cim .hcim-result-card dl { grid-template-columns: minmax(0, 1fr); }
  .herotec-cim .hcim-result-card dd { padding-bottom: .4rem; }
  .herotec-cim .hcim-actions .hcim-button { flex: 1 1 44%; }
}

@media print {
  .herotec-cim .hcim-scope, .herotec-cim .hcim-competitor-form, .herotec-cim .hcim-observation-form,
  .herotec-cim .hcim-opportunity-form, .herotec-cim .hcim-threat-form, .herotec-cim .hcim-actions,
  .herotec-cim .hcim-competitor-list, .herotec-cim .hcim-observation-list,
  .herotec-cim .hcim-opportunity-list, .herotec-cim .hcim-threat-list,
  .herotec-cim .hcim-summary-head button, .herotec-cim .hcim-status { display: none !important; }
  .herotec-cim .hcim-panel { border: 0; padding: 0; }
  .herotec-cim .hcim-result-card { break-inside: avoid; }
  .herotec-cim a { color: #000 !important; text-decoration: underline; }
}
