.panel {
  padding: 24px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .form-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1f2d52;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(37, 68, 143, 0.34);
  box-shadow: 0 0 0 4px rgba(37, 68, 143, 0.08);
}

.field input[readonly],
.field textarea[readonly] {
  background: var(--surface-muted);
  color: var(--text-muted);
  cursor: default;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.inline-action-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.btn-inline-action {
  white-space: nowrap;
  min-height: 46px;
}

.field small {
  color: var(--text-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.btn {
  border: 0;
  min-height: 52px;
  border-radius: 16px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 12px 22px rgba(37, 68, 143, 0.18);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled,
.btn[aria-disabled="true"],
.print-doc-select:disabled {
  opacity: 0.58;
  box-shadow: none;
  transform: none;
}

.btn:disabled:hover,
.btn[aria-disabled="true"]:hover {
  transform: none;
}

.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(13, 59, 102, 0.08);
  color: var(--primary);
}

.btn-danger {
  background: rgba(180, 35, 24, 0.12);
  color: var(--danger);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-gold {
  background: linear-gradient(135deg, #b87800, #f2a900);
  color: #fff;
  box-shadow: 0 8px 16px rgba(242, 169, 0, 0.30);
}

.btn-wa {
  background: #25D366;
  color: #fff;
  box-shadow: 0 8px 16px rgba(37, 211, 102, 0.28);
}

.print-doc-select {
  min-height: 52px;
  border-radius: 16px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  max-width: 240px;
}

.inline-note {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(244, 162, 97, 0.12);
  color: #8c4d10;
}

.inline-note-danger {
  background: rgba(180, 35, 24, 0.12);
  color: var(--danger);
}

.inline-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
}

.inline-check input {
  margin-top: 2px;
}

.ops-stack {
  display: grid;
  gap: 16px;
}

.subpanel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(248, 250, 255, 0.96), rgba(255, 255, 255, 0.98));
}

.subpanel-title {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.danger-panel {
  border-color: rgba(180, 35, 24, 0.18);
  background: linear-gradient(180deg, rgba(180, 35, 24, 0.05), rgba(255, 255, 255, 0.98));
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: end;
}

.toolbar .filters {
  display: grid;
  gap: 12px;
  flex: 1;
}

.scan-helper-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0 22px;
  padding: 16px 18px;
  border: 1px solid rgba(16, 87, 187, 0.14);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(16, 87, 187, 0.06), rgba(255, 255, 255, 0.98));
}

.scan-helper-title {
  margin-bottom: 4px;
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--primary);
}

.scan-helper-copy {
  color: var(--text-soft);
  line-height: 1.55;
}

.scan-helper-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
}

.scan-helper-action svg {
  flex: 0 0 auto;
}

.wizard-shell {
  overflow: hidden;
}

.wizard-header {
  display: grid;
  gap: 18px;
  align-items: start;
}

.wizard-header-copy {
  display: grid;
  gap: 8px;
}

.wizard-progress {
  width: 100%;
}

.wizard-form {
  gap: 0;
}

.wizard-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-muted);
  width: 100%;
}

.wizard-steps .step {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid transparent;
  color: var(--text-soft);
  font-weight: 700;
}

.wizard-steps .step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(20, 33, 61, 0.12);
  font-size: 0.82rem;
  font-weight: 800;
}

.wizard-steps .step.active span,
.wizard-steps .step.done span {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
}

.wizard-steps .step.active {
  border-color: rgba(16, 87, 187, 0.18);
  background: #fff;
  color: var(--text);
}

.wizard-steps .step.done {
  color: var(--text);
}

.wizard-result-grid {
  display: grid;
  gap: 14px;
  margin: 18px 0 22px;
}

.choice-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.choice-card:hover {
  transform: translateY(-1px);
  border-color: rgba(16, 87, 187, 0.28);
}

.choice-card.selected {
  border-color: rgba(16, 87, 187, 0.62);
  background: linear-gradient(180deg, rgba(16, 87, 187, 0.1), rgba(246, 250, 255, 0.98));
  box-shadow: 0 14px 26px rgba(16, 87, 187, 0.12);
}

.choice-card.selected::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--primary-2);
}

.choice-card.selected[data-legacy-marker]::after {
  content: "OK Terpilih";
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(16, 87, 187, 0.12);
  color: #0c2c61;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
}

.choice-card .title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}

.choice-card.selected .title {
  color: #0c2c61;
}

.choice-card.selected[data-legacy-marker-reset]::after {
  content: none;
}

.choice-card-marker {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(16, 87, 187, 0.12);
  color: #0c2c61;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
}

.choice-card-marker-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary-2);
  box-shadow: 0 0 0 3px rgba(16, 87, 187, 0.14);
}

.choice-card .pill {
  background: rgba(20, 33, 61, 0.07);
  color: #33415f;
  font-weight: 700;
}

.choice-card.selected .pill {
  background: rgba(16, 87, 187, 0.12);
  color: #0c2c61;
  border: 1px solid rgba(16, 87, 187, 0.14);
}

.choice-card .desc {
  color: var(--text-soft);
  line-height: 1.5;
}

.choice-card.selected .desc {
  color: #20385f;
}

.wizard-check-grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 860px) {
  .wizard-check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.wizard-check {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  line-height: 1.45;
}

.wizard-check span {
  display: block;
  min-width: 0;
  color: var(--text);
}

.wizard-check-inline {
  margin-top: 12px;
}

.wizard-actions {
  margin-top: 24px;
}

.wizard-consent-stack {
  display: grid;
  gap: 18px;
}

.wizard-consent-layout {
  display: grid;
  gap: 18px;
  align-items: start;
}

.wizard-consent-layout--single {
  max-width: 1080px;
}

.t3-document-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}

.warnBox,
.t3-setup-box,
.step-card-premium {
  display: grid;
  gap: 16px;
}

.warnBox,
.t3-setup-box {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-muted), #fff);
}

.consent-panel--disabled {
  opacity: 0.55;
}

.t3-setup-box .inline-action-field {
  grid-template-columns: minmax(0, 1fr) auto;
}

.consent-panel-title {
  display: block;
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.consent-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.consent-panel-name {
  font-size: 1.0rem;
  font-weight: 800;
  color: #111d3c;
}

.consent-level-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.consent-level-badge--t1 {
  background: rgba(16, 87, 187, 0.1);
  color: #1057bb;
}

.consent-level-badge--t2 {
  background: rgba(180, 83, 9, 0.1);
  color: #b45309;
}

.consent-level-badge--t3 {
  background: rgba(109, 40, 217, 0.1);
  color: #6d28d9;
}

.consent-inactive-note {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--text-soft);
  padding: 9px 13px;
  border-radius: 12px;
  background: var(--surface-muted);
}

.consent-inactive-note strong {
  font-weight: 800;
  color: var(--text);
}

.consent-readonly-box {
  min-height: 52px;
  padding: 13px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  line-height: 1.55;
  word-break: break-word;
}

.consent-readonly-box--disabled {
  color: var(--text-soft);
  background: var(--surface-muted);
}

.consent-divider-label {
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding: 6px 0 2px;
  border-top: 1px solid var(--line);
}

.detail-id-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(20, 33, 61, 0.1);
  background: rgba(20, 33, 61, 0.05);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
}

.detail-id-value {
  min-width: 0;
  overflow: hidden;
  color: var(--primary);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wizard-check input[type="checkbox"],
.wizard-check input[type="radio"] {
  flex: 0 0 auto;
  margin-top: 3px;
}

.form-step-container,
.detail-container {
  display: grid;
  gap: 20px;
}

.step-card-premium {
  width: 100%;
}

.triage-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detail-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.detail-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-muted), #fff);
}

.detail-card--soft {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.spotlight-panel {
  border-color: rgba(16, 87, 187, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.92));
}

.spotlight-panel--t3 {
  border-color: rgba(242, 169, 0, 0.4);
  background: linear-gradient(180deg, #fffdf7 0%, #ffffff 100%);
}

.detail-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.detail-hero-main {
  min-width: min(100%, 320px);
  max-width: 720px;
}

.detail-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.detail-kicker {
  margin-bottom: 4px;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-hero-title {
  margin-top: 0;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}

.detail-hero-actions {
  align-items: center;
}

.detail-hero-actions .output-lock-note {
  flex-basis: 100%;
  width: 100%;
  margin-top: 2px;
}

.detail-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(20, 33, 61, 0.09);
  border-radius: 999px;
  background: rgba(20, 33, 61, 0.04);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}

.detail-meta-item strong {
  min-width: 0;
  overflow: hidden;
  color: var(--primary);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-section-title {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.detail-section-title--navy {
  color: var(--primary);
}

.detail-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(20, 33, 61, 0.08);
}

.detail-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.detail-label {
  color: var(--text-soft);
  font-weight: 700;
}

.detail-value {
  min-width: 0;
  color: var(--text);
  word-break: break-word;
}

.detail-value.mono,
.mono {
  font-family: "Consolas", "SFMono-Regular", monospace;
}

.detail-note-box {
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(20, 33, 61, 0.08);
  line-height: 1.6;
}

.detail-card .field {
  gap: 6px;
}

.detail-card .field input,
.detail-card .field select,
.detail-card .field textarea {
  background: #fff;
}

.approval-workbench {
  display: grid;
  gap: 14px;
}

.approval-overview {
  display: grid;
  gap: 12px;
}

.approval-overview-card {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(20, 33, 61, 0.08);
  background: #fff;
}

.approval-overview-card small {
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.approval-overview-card strong {
  color: var(--text);
  font-size: 1rem;
}

.approval-overview-card span {
  color: var(--text-soft);
  line-height: 1.5;
}

.approval-meta-grid .field input[readonly] {
  background: var(--surface-muted);
}

@media (min-width: 860px) {
  .toolbar .filters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .wizard-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .wizard-result-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .approval-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .form-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 859px) {
  .wizard-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (min-width: 900px) and (max-width: 1079px) {
  .wizard-consent-layout {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1080px) {
  .wizard-consent-layout:not(.wizard-consent-layout--single) {
    grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  }

  .wizard-consent-layout--single {
    grid-template-columns: minmax(0, 1080px);
  }
}

@media (max-width: 640px) {
  .panel {
    padding: 20px;
  }

  .inline-action-field {
    grid-template-columns: 1fr;
  }

  .wizard-steps {
    grid-template-columns: 1fr;
  }
}

/* === Triage result grid === */
@media (max-width: 860px) {
  .scan-helper-card {
    flex-direction: column;
    align-items: stretch;
  }

  .wizard-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .wizard-result-grid {
    grid-template-columns: 1fr;
  }
}

/* === Category cards (hambatan) === */
.divider {
  height: 1px;
  background: var(--line);
  margin: 4px 0;
}

.field-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.hidden {
  display: none !important;
}

.cat-groups {
  display: grid;
  gap: 20px;
}

.cat-group-header {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 6px 12px;
  background: rgba(16, 87, 187, 0.07);
  border-radius: 8px;
  margin-bottom: 10px;
}

.cat-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.cat-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: #fff;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
  user-select: none;
}

.cat-card:hover {
  border-color: rgba(16, 87, 187, 0.3);
  box-shadow: 0 2px 10px rgba(16, 87, 187, 0.07);
}

.cat-card.selected {
  border-color: rgba(16, 87, 187, 0.58);
  background: linear-gradient(160deg, rgba(16, 87, 187, 0.09), #fff);
  box-shadow: 0 8px 20px rgba(16, 87, 187, 0.12);
}

.cat-card.selected::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--primary-2);
}

.cat-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.cat-card.selected .cat-card-title {
  color: var(--primary);
}

.cat-card.selected {
  padding-top: 34px;
}

.cat-card-marker {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(16, 87, 187, 0.12);
  color: #0c2c61;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  max-width: calc(100% - 20px);
  white-space: nowrap;
}

.cat-card-marker-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary-2);
  box-shadow: 0 0 0 3px rgba(16, 87, 187, 0.14);
}

.cat-card-desc {
  font-size: 0.78rem;
  color: var(--text-soft);
  line-height: 1.45;
}

.cat-card.selected .cat-card-desc {
  color: #42506b;
}

.kv {
  display: grid;
  gap: 12px;
}

.kv div {
  padding: 14px;
  border-radius: 14px;
  background: var(--surface-muted);
}

.kv strong {
  display: block;
  margin-bottom: 6px;
}

.btn-sm {
  min-height: 36px;
  padding: 6px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
}

.consent-tab-strip {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.consent-tab-btn {
  padding: 6px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface-muted);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-soft);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.consent-tab-btn--active {
  background: #1057bb;
  color: #fff;
  border-color: #1057bb;
}

.consent-tab-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.signature-pad-shell {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  margin-bottom: 8px;
}

.signature-pad-canvas {
  display: block;
  width: 100%;
  height: auto;
  cursor: crosshair;
  touch-action: none;
}

.signature-pad-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.signature-status {
  min-height: 24px;
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.sig-status-ok {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1057bb;
  background: rgba(16, 87, 187, 0.08);
  padding: 3px 10px;
  border-radius: 999px;
}

.sig-status-ok--green {
  color: #059669;
  background: rgba(5, 150, 105, 0.08);
}

.sig-status-warn {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #9a5a00;
  background: #fff6df;
  padding: 3px 10px;
  border-radius: 999px;
}

.signature-status-link {
  text-decoration: none;
}

.signature-status-link:hover {
  text-decoration: underline;
}

.signature-manual-card {
  padding: 14px;
  border-radius: 10px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
}

.signature-manual-copy {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin: 0 0 10px;
  line-height: 1.5;
}

.settings-persona-group {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.settings-persona-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.section-title-sm {
  font-size: 1rem;
}

.section-title-flush,
.section-subtitle-flush {
  margin: 0;
}

.pill-compact {
  min-height: 30px;
  padding: 0 10px;
  font-size: 0.74rem;
}

.tag-strong {
  padding: 4px 12px;
  font-weight: 800;
}

.triage-category-hint {
  margin: -8px 0 12px;
}

.summary-heading-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.detail-note-box--italic {
  font-style: italic;
}

.detail-card--final {
  background: linear-gradient(to bottom right, #fffdfa, #ffffff);
}

.wizard-actions--spread {
  justify-content: space-between;
}

.settings-section-divider {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.report-periodic-stack {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.report-date-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.report-date-field {
  flex: 0 0 auto;
  min-width: 160px;
}

.report-date-preview {
  flex: 1;
  min-width: 220px;
  font-size: 0.88rem;
}

.report-date-preview-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 14px;
  align-items: center;
}

.report-date-preview-label {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.report-date-preview-value {
  font-size: 0.88rem;
}

.report-consultation-grid {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(160px, 220px) minmax(240px, 1fr);
  gap: 16px;
  align-items: end;
  margin-top: 16px;
}

.report-special-note {
  align-self: stretch;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text-soft);
  background: var(--surface-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.report-special-note strong {
  display: block;
  color: var(--text);
}

.report-consultation-actions {
  grid-column: 1 / -1;
  justify-content: flex-start;
}

@media (max-width: 820px) {
  .report-consultation-grid {
    grid-template-columns: 1fr;
  }
}

.settings-persona-note {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--text-soft);
}
