#orm-tool {
  font-family: Arial, sans-serif;
  max-width: 1180px;
  margin: 32px auto 56px;
  color: #0f172a;
}

#orm-tool * {
  box-sizing: border-box;
}

#orm-tool .orm-card,
#orm-tool .orm-panel,
#orm-tool .orm-kpi,
#orm-tool .orm-highlight,
#orm-tool .orm-share,
#orm-tool .orm-top-actions,
#orm-tool .orm-mini-kpi,
#orm-tool .orm-meter-card {
  min-width: 0;
}

#orm-tool .orm-card {
  border: 1px solid #dbe2ea;
  padding: 22px;
  border-radius: 16px;
  margin-bottom: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

#orm-tool .orm-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.2;
}

#orm-tool .orm-sub {
  font-size: 15px;
  line-height: 1.65;
  color: #475569;
  margin-bottom: 18px;
}

#orm-tool .orm-eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: #1147d9;
  margin-bottom: 10px;
}

#orm-tool .orm-presets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

#orm-tool .orm-preset {
  appearance: none;
  width: 100%;
  border: 1px solid #dbe2ea;
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: 0.16s;
  font-family: Arial, sans-serif;
}

#orm-tool .orm-preset:hover {
  border-color: rgba(17, 71, 217, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(17, 71, 217, 0.08);
}

#orm-tool .orm-preset strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
  color: #0f172a;
}

#orm-tool .orm-preset span {
  display: block;
  font-size: 13px;
  line-height: 1.55;
  color: #475569;
}

#orm-tool .orm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

#orm-tool .orm-full {
  grid-column: 1 / -1;
}

#orm-tool .orm-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#orm-tool label {
  font-size: 14px;
  font-weight: 700;
}

#orm-tool select,
#orm-tool input,
#orm-tool textarea {
  width: 100%;
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid #dbe2ea;
  font-size: 15px;
  outline: none;
  background: #fff;
  font-family: Arial, sans-serif;
  color: #0f172a;
}

#orm-tool textarea {
  min-height: 96px;
  resize: vertical;
}

#orm-tool select:focus,
#orm-tool input:focus,
#orm-tool textarea:focus {
  border-color: rgba(17, 71, 217, 0.5);
  box-shadow: 0 0 0 4px rgba(17, 71, 217, 0.1);
}

#orm-tool .orm-help {
  font-size: 12px;
  line-height: 1.5;
  color: #475569;
}

#orm-tool .orm-actions,
#orm-tool .orm-share-links,
#orm-tool .orm-quick-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

#orm-tool .orm-actions {
  margin-top: 16px;
}

#orm-tool .orm-btn,
#orm-tool .orm-linkbtn {
  padding: 13px 16px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  font-size: 14px;
  transition: 0.16s;
  font-family: Arial, sans-serif;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
}

#orm-tool .orm-btn:hover,
#orm-tool .orm-linkbtn:hover {
  transform: translateY(-1px);
}

#orm-tool .orm-btn.primary {
  background: #1147d9;
  color: #fff;
  border: none;
  box-shadow: 0 12px 26px rgba(17, 71, 217, 0.2);
}

#orm-tool .orm-btn.primary:hover {
  background: #0d38ac;
}

#orm-tool .orm-btn.secondary {
  background: #eaf1ff;
  color: #1147d9;
  border: 1px solid rgba(17, 71, 217, 0.12);
}

#orm-tool .orm-btn.secondary:hover {
  background: #dfeaff;
}

#orm-tool .orm-btn.ghost,
#orm-tool .orm-linkbtn {
  background: #fff;
  color: #0f172a;
  border: 1px solid #dbe2ea;
}

#orm-tool .orm-linkbtn:hover,
#orm-tool .orm-btn.ghost:hover {
  border-color: rgba(17, 71, 217, 0.35);
  color: #1147d9;
}

#orm-tool .orm-feedback {
  min-height: 22px;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
}

#orm-tool .orm-feedback.error {
  color: #b91c1c;
}

#orm-tool .orm-feedback.success {
  color: #15803d;
}

#orm-tool .orm-result {
  margin-top: 20px;
  display: none;
}

#orm-tool .orm-result.on {
  display: block;
}

#orm-tool .orm-report {
  border: 1px solid #dbe2ea;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  padding: 24px;
}

#orm-tool .orm-report-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #dbe2ea;
  margin-bottom: 18px;
}

#orm-tool .orm-brand {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: #1147d9;
  margin-bottom: 6px;
  line-height: 1.3;
}

#orm-tool .orm-report-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 6px;
}

#orm-tool .orm-report-url {
  font-size: 13px;
  font-weight: 700;
  color: #1147d9;
  white-space: nowrap;
  text-align: right;
}

#orm-tool .orm-top-actions {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid #dbe2ea;
  border-radius: 16px;
  background: #f8fbff;
}

#orm-tool .orm-top-actions .orm-eyebrow {
  color: #334155;
  margin-bottom: 10px;
}

#orm-tool .orm-share {
  display: none;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #dbe2ea;
  border-radius: 14px;
  background: #fbfdff;
}

#orm-tool .orm-share.on {
  display: block;
}

#orm-tool .orm-share-copy {
  width: 100%;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 12px;
  font-family: Arial, sans-serif;
}

#orm-tool .orm-status {
  margin-bottom: 16px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(17, 71, 217, 0.18);
  background: linear-gradient(180deg, #eef4ff, #fff);
}

#orm-tool .orm-status-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

#orm-tool .orm-status-title {
  font-size: 28px;
  line-height: 1.05;
  font-weight: 800;
  margin: 0;
}

#orm-tool .orm-status-score {
  font-size: 15px;
  font-weight: 700;
  color: #475569;
}

#orm-tool .orm-score-note {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  color: #475569;
  margin-top: 6px;
}

#orm-tool .orm-top-grid,
#orm-tool .orm-kpi-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

#orm-tool .orm-top-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#orm-tool .orm-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#orm-tool .orm-highlight {
  position: relative;
  padding: 20px 20px 18px 24px;
  min-height: 170px;
  border: 1px solid #dbe2ea;
  border-radius: 16px;
  background: #fff;
}

#orm-tool .orm-highlight:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 100%;
  background: #1147d9;
  border-radius: 16px 0 0 16px;
}

#orm-tool .orm-highlight h3,
#orm-tool .orm-panel h3 {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 10px;
  color: #1147d9;
}

#orm-tool .orm-highlight p,
#orm-tool .orm-panel p {
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
  margin: 0;
}

#orm-tool .orm-kpi {
  border: 1px solid #dbe2ea;
  border-radius: 16px;
  background: #fff;
  padding: 16px;
}

#orm-tool .orm-kpi-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: #64748b;
  margin-bottom: 10px;
}

#orm-tool .orm-kpi-value {
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#orm-tool .orm-kpi-copy {
  font-size: 13px;
  line-height: 1.6;
  color: #475569;
}

#orm-tool .orm-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
  align-items: start;
}

#orm-tool .orm-meter-card {
  padding: 16px;
  border: 1px solid #dbe2ea;
  border-radius: 14px;
  background: #fbfdff;
  margin-bottom: 14px;
}

#orm-tool .orm-meter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

#orm-tool .orm-meter-label {
  font-size: 14px;
  font-weight: 700;
  color: #334155;
}

#orm-tool .orm-meter-value {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
}

#orm-tool .orm-meter {
  width: 100%;
  height: 14px;
  background: #dbe7ff;
  border-radius: 999px;
  overflow: hidden;
}

#orm-tool .orm-meter-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1147d9 0%, #3b82f6 100%);
  transition: width 0.5s ease;
}

#orm-tool .orm-mini-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#orm-tool .orm-mini-kpi {
  border: 1px solid #dbe2ea;
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}

#orm-tool .orm-chart-wrap,
#orm-tool .orm-gauge-wrap {
  position: relative;
  width: 100%;
}

#orm-tool .orm-chart-wrap {
  height: 240px;
  margin-bottom: 10px;
}

#orm-tool .orm-panel canvas {
  display: block;
  width: 100% !important;
  max-width: 100%;
}

#orm-tool #orm-chart-summary,
#orm-tool #orm-concentration-summary,
#orm-tool #orm-overall-score-copy {
  margin-top: 10px;
}

#orm-tool .orm-main {
  display: block;
  margin-bottom: 16px;
}

#orm-tool .orm-main > .orm-panel.sticky {
  margin-bottom: 16px;
}

#orm-tool .orm-stack {
  display: grid;
  gap: 16px;
}

#orm-tool .orm-panel {
  border: 1px solid #dbe2ea;
  border-radius: 16px;
  background: #fff;
  padding: 20px;
}

#orm-tool .orm-panel.sticky {
  position: static;
  top: auto;
}

#orm-tool .orm-meta {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #dbe2ea;
}

#orm-tool .orm-meta li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #dbe2ea;
  font-size: 14px;
  line-height: 1.45;
}

#orm-tool .orm-meta-label {
  color: #475569;
  font-weight: 700;
}

#orm-tool .orm-meta-value {
  text-align: right;
  font-weight: 800;
}

#orm-tool ul.orm-list {
  margin: 0;
  padding-left: 18px;
}

#orm-tool ul.orm-list li {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.55;
  color: #475569;
}

#orm-tool .orm-divider {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #dbe2ea;
  font-size: 13px;
  line-height: 1.6;
  color: #475569;
}

@media (max-width: 980px) {
  #orm-tool .orm-main,
  #orm-tool .orm-kpi-grid,
  #orm-tool .orm-top-grid,
  #orm-tool .orm-grid,
  #orm-tool .orm-presets,
  #orm-tool .orm-visual-grid {
    grid-template-columns: 1fr;
  }

  #orm-tool .orm-report-header {
    flex-direction: column;
  }

  #orm-tool .orm-report-url {
    text-align: left;
    white-space: normal;
  }

  #orm-tool .orm-panel.sticky {
    position: static;
  }
}

@media (max-width: 680px) {
  #orm-tool .orm-mini-kpis {
    grid-template-columns: 1fr;
  }

  #orm-tool .orm-kpi-value {
    font-size: 24px;
  }

  #orm-tool .orm-chart-wrap {
    height: 220px;
  }
}

@media print {
  body * {
    visibility: hidden !important;
  }

  #orm-tool,
  #orm-tool * {
    visibility: visible !important;
  }

  #orm-tool {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: #fff;
  }

  #orm-tool .orm-card,
  #orm-tool .orm-panel,
  #orm-tool .orm-kpi,
  #orm-tool .orm-highlight,
  #orm-tool .orm-report,
  #orm-tool .orm-mini-kpi,
  #orm-tool .orm-meter-card {
    box-shadow: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  #orm-tool .orm-grid,
  #orm-tool .orm-presets,
  #orm-tool .orm-actions,
  #orm-tool .orm-feedback,
  #orm-tool .orm-share,
  #orm-tool .orm-top-actions,
  #orm-tool .orm-card:first-child .orm-grid,
  #orm-tool .orm-card:first-child .orm-actions,
  #orm-tool .orm-card:first-child .orm-feedback,
  #orm-tool .orm-card:first-child #orm-presets {
    display: none !important;
  }

  #orm-tool .orm-card {
    border: none !important;
    padding: 0 !important;
  }

  #orm-tool .orm-result {
    display: block !important;
  }

  #orm-tool .orm-main,
  #orm-tool .orm-kpi-grid,
  #orm-tool .orm-top-grid,
  #orm-tool .orm-visual-grid,
  #orm-tool .orm-mini-kpis {
    display: block !important;
  }

  #orm-tool .orm-highlight,
  #orm-tool .orm-kpi,
  #orm-tool .orm-panel,
  #orm-tool .orm-status,
  #orm-tool .orm-mini-kpi,
  #orm-tool .orm-meter-card {
    margin-bottom: 14px;
  }

  #orm-tool .orm-panel.sticky {
    position: static !important;
  }
}
