:root {
  --crome-accent: #38f27b;
  --crome-bg: #ffffff;
  --crome-text: #0c1410;
  --crome-muted: #5a6b61;
  --crome-border: rgba(9, 28, 19, 0.14);
  --crome-danger: #ef4444;
  --crome-warning: #f59e0b;
  --crome-success: #16a34a;
  --crome-info: #22c55e;
}

html[data-at-theme="dark"] {
  --crome-bg: #0b0f0d;
  --crome-text: #e9f2ee;
  --crome-muted: #9fb2a7;
  --crome-border: rgba(233, 242, 238, 0.14);
}

.ato-crome-wrap {
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--crome-text);
}

.ato-crome-wrap * {
  box-sizing: border-box;
}

[data-ato-crome] {
  max-width: 960px;
  margin: 0 auto;
}

.ato-crome-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0 12px;
}

.ato-crome-h1 {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.ato-crome-sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--crome-muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.ato-crome-pill {
  border: 1px solid rgba(56, 242, 123, 0.55);
  background: rgba(56, 242, 123, 0.12);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
}

.ato-crome-muted {
  color: var(--crome-muted);
}

.req {
  color: var(--crome-danger);
  margin-left: 4px;
}

.ato-crome-section {
  padding: 14px 0;
  border-bottom: 1px dashed var(--crome-border);
}

.ato-crome-section.is-result {
  border-bottom: 1px solid var(--crome-border);
}

.ato-crome-exam-section-inner {
  margin-top: 12px;
}

.ato-crome-section-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.ato-crome-section-title {
  font-size: 14px;
  font-weight: 900;
}

.ato-crome-tag {
  font-size: 11px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--crome-border);
  color: var(--crome-muted);
  background: rgba(0, 0, 0, 0.02);
}

html[data-at-theme="dark"] .ato-crome-tag {
  background: rgba(255, 255, 255, 0.03);
}

.ato-crome-tag.is-req {
  border-color: rgba(56, 242, 123, 0.55);
  color: var(--crome-text);
}

.ato-crome-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 12px 0;
}

.ato-crome-field label {
  font-size: 13px;
  font-weight: 900;
}

.ato-crome-hint {
  font-size: 12px;
  color: var(--crome-muted);
}

.ato-crome-wrap input[type="text"],
.ato-crome-wrap input[type="email"],
.ato-crome-wrap input[type="tel"],
.ato-crome-wrap input[type="date"],
.ato-crome-wrap input[type="number"],
.ato-crome-wrap input[type="password"],
.ato-crome-wrap select,
.ato-crome-wrap textarea {
  width: 100% !important;
  padding: 12px 12px !important;
  border-radius: 14px !important;
  border: 1px solid var(--crome-border) !important;
  background: var(--crome-bg) !important;
  color: var(--crome-text) !important;
  outline: none !important;
  font: inherit !important;
  line-height: 1.3 !important;
}

.ato-crome-wrap input:focus,
.ato-crome-wrap select:focus,
.ato-crome-wrap textarea:focus {
  border-color: rgba(56, 242, 123, 0.9) !important;
  box-shadow: 0 0 0 4px rgba(56, 242, 123, 0.16) !important;
}

.ato-crome-wrap input[readonly] {
  background: rgba(56, 242, 123, 0.06) !important;
}

.ato-crome-alert {
  border: 1px solid rgba(56, 242, 123, 0.45);
  background: rgba(56, 242, 123, 0.1);
  border-radius: 14px;
  padding: 12px 12px;
  font-size: 13px;
  margin: 0 0 14px;
}

.ato-crome-alert.is-danger {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.1);
}

.ato-crome-alert.is-warning {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.1);
}

.ato-crome-alert.is-success {
  border-color: rgba(22, 163, 74, 0.3);
  background: rgba(22, 163, 74, 0.1);
}

.ato-crome-alert.is-info {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.1);
}

.ato-crome-kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.kpi {
  border: 1px solid rgba(56, 242, 123, 0.35);
  background: rgba(56, 242, 123, 0.08);
  border-radius: 14px;
  padding: 12px 12px;
}

.kpi .k {
  font-size: 12px;
  color: var(--crome-muted);
  font-weight: 900;
}

.kpi .v {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 1000;
}

.ato-crome-tablewrap {
  overflow: auto;
  border: 1px solid var(--crome-border);
  border-radius: 18px;
  background: var(--crome-bg);
}

.ato-crome-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 0;
}

.ato-crome-table th,
.ato-crome-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--crome-border);
  text-align: left;
  font-size: 13px;
  white-space: normal;
  word-break: break-word;
}

.ato-crome-table thead th {
  font-weight: 1000;
  background: var(--crome-bg);
}

.ato-crome-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.ato-crome-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 12px 16px !important;
  border-radius: 14px !important;
  border: 1px solid var(--crome-border) !important;
  background: var(--crome-bg) !important;
  color: var(--crome-text) !important;
  font-weight: 1000 !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

.ato-crome-btn-primary {
  background: var(--crome-accent) !important;
  color: #071a10 !important;
  border-color: rgba(7, 26, 16, 0.2) !important;
}

.ato-crome-btn[disabled] {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
}

.ato-crome-footnote {
  margin-top: 10px;
  font-size: 12px;
  color: var(--crome-muted);
}

.ato-crome-spinner {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(7, 26, 16, 0.25);
  border-top-color: rgba(7, 26, 16, 0.9);
  display: none;
  animation: atoSpin 0.75s linear infinite;
}

.ato-crome-form.is-submitting .ato-crome-spinner {
  display: inline-block;
}

@keyframes atoSpin {
  to {
    transform: rotate(360deg);
  }
}

.ato-crome-exam-grid {
  display: grid;
  gap: 14px;
}

.ato-crome-exam-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ato-crome-exam-question {
  border: 1px solid var(--crome-border);
  border-radius: 18px;
  padding: 16px;
  margin: 14px 0;
  background: rgba(56, 242, 123, 0.04);
}

html[data-at-theme="dark"] .ato-crome-exam-question {
  background: rgba(56, 242, 123, 0.03);
}

.ato-crome-exam-qhead {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
}

.ato-crome-exam-qno {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 1000;
  border: 1px solid rgba(56, 242, 123, 0.55);
  background: rgba(56, 242, 123, 0.12);
}

.ato-crome-exam-qtext {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.55;
}

.ato-crome-exam-options {
  display: grid;
  gap: 10px;
}

.ato-crome-answer {
  display: block;
  cursor: pointer;
}

.ato-crome-answer input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ato-crome-answer-ui {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--crome-border);
  background: var(--crome-bg);
  transition: 0.18s ease;
}

.ato-crome-answer:hover .ato-crome-answer-ui {
  border-color: rgba(56, 242, 123, 0.55);
}

.ato-crome-answer input:checked + .ato-crome-answer-ui {
  border-color: rgba(56, 242, 123, 0.85);
  box-shadow: 0 0 0 4px rgba(56, 242, 123, 0.12);
  background: rgba(56, 242, 123, 0.06);
}

.ato-crome-answer-key {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 1000;
  color: var(--crome-muted);
  border: 2px solid var(--crome-border);
  background: var(--crome-bg);
}

.ato-crome-answer input:checked + .ato-crome-answer-ui .ato-crome-answer-key {
  border-color: rgba(56, 242, 123, 0.85);
  color: var(--crome-text);
  background: rgba(56, 242, 123, 0.12);
}

.ato-crome-answer-text {
  line-height: 1.55;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 720px) {
  .ato-crome-kpis,
  .ato-crome-exam-grid.two {
    grid-template-columns: 1fr;
  }

  .ato-crome-actions .ato-crome-btn,
  .ato-crome-actions form,
  .ato-crome-actions form button {
    width: 100% !important;
  }

  .ato-crome-head {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .ato-crome-tablewrap {
    overflow: visible !important;
    border: none !important;
    background: transparent !important;
  }

  .ato-crome-table,
  .ato-crome-table thead,
  .ato-crome-table tbody,
  .ato-crome-table tr,
  .ato-crome-table td {
    display: block !important;
    width: 100% !important;
  }

  .ato-crome-table thead {
    display: none !important;
  }

  .ato-crome-table tbody tr {
    margin: 0 0 12px 0 !important;
    padding: 12px 12px !important;
    border-radius: 16px !important;
    border: 1px solid var(--crome-border) !important;
    background: rgba(255, 255, 255, 0.7) !important;
  }

  html[data-at-theme="dark"] .ato-crome-table tbody tr {
    background: rgba(255, 255, 255, 0.03) !important;
  }

  .ato-crome-table tbody td {
    display: grid !important;
    grid-template-columns: 42% 1fr !important;
    gap: 10px !important;
    padding: 10px 6px !important;
    border: none !important;
    border-bottom: 1px solid var(--crome-border) !important;
    background: transparent !important;
  }

  .ato-crome-table tbody td:last-child {
    border-bottom: none !important;
  }

  .ato-crome-table tbody td::before {
    content: attr(data-label) !important;
    font-weight: 800 !important;
    opacity: 0.75 !important;
  }
}
