#ar-case {
  --ar-green: var(--green, #355f50);
  --ar-green-dark: #2e5648;
  --ar-green-soft: #eef8f0;
  --ar-green-border: #cddfd2;
  --ar-gold: #d19b00;
  --ar-gold-bright: #f2c811;
  --ar-gold-soft: #fff8da;
  --ar-gold-border: #ead27a;
  --ar-red: #b14b4b;
  --ar-red-soft: #fff0f0;
  --ar-red-border: #edc8c8;
  --ar-blue: #2f6f9f;
  --ar-blue-soft: #eef4fb;
  --ar-text: #393632;
  --ar-text-secondary: #625d57;
  --ar-muted: #918a83;
  --ar-border: #e3ddd5;
  --ar-border-soft: #eee8e0;
  --ar-surface: #ffffff;
  --ar-surface-soft: #f7f4ef;
  --ar-surface-warm: #fcfbf9;
  --ar-charcoal: #2d2b29;
  --ar-shadow: 0 24px 70px rgba(38, 36, 33, 0.13);
  margin-top: 26px;
  padding: 42px;
  border: 1px solid var(--border, #e3ddd5);
  border-radius: var(--radius-card, 24px);
  background:
    radial-gradient(circle at top left, rgba(255, 224, 91, 0.14), transparent 24%),
    radial-gradient(circle at top right, rgba(62, 92, 180, 0.09), transparent 28%),
    rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-card, var(--ar-shadow));
  color: var(--ar-text);
  font-family: var(--font-main, "Manrope", Arial, sans-serif);
}

#ar-case,
#ar-case * {
  box-sizing: border-box;
}

#ar-case [hidden] {
  display: none !important;
}

#ar-case button,
#ar-case input,
#ar-case a {
  font: inherit;
}

#ar-case button {
  -webkit-tap-highlight-color: transparent;
}

#ar-case button:focus-visible,
#ar-case input:focus-visible,
#ar-case a:focus-visible {
  outline: 2px solid rgba(209, 155, 0, 0.55);
  outline-offset: 3px;
}

#ar-case button:disabled {
  cursor: default;
}

#ar-case .ar-case-intro {
  width: 100%;
}

#ar-case .case-demo-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--ar-gold);
  font-family: var(--font-tech, "Roboto Mono", monospace);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

#ar-case .case-demo-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ar-gold-bright);
  box-shadow: 0 0 0 4px rgba(242, 200, 17, 0.12);
}

#ar-case .ar-case-title {
  max-width: 1050px;
  margin: 0 0 14px;
  color: var(--ar-green);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

#ar-case .ar-case-lead {
  max-width: 980px;
  margin: 0;
  color: var(--text-secondary, #6d6965);
  font-size: 14px;
  line-height: 1.85;
}

#ar-case .ar-value-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 26px;
}

#ar-case .ar-value-item {
  min-width: 0;
  min-height: 122px;
  padding: 15px;
  border: 1px solid #dfd7cb;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 5px 14px rgba(40, 38, 35, 0.025);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

#ar-case .ar-value-item:hover {
  transform: translateY(-2px);
  border-color: #d7af00;
  background: #fffdf5;
  box-shadow: 0 10px 24px rgba(72, 62, 35, 0.08);
}

#ar-case .ar-value-item > span {
  display: grid;
  width: 28px;
  height: 28px;
  margin-bottom: 15px;
  place-items: center;
  border-radius: 50%;
  background: #f2c811;
  color: #282622;
  font-family: var(--font-tech, "Roboto Mono", monospace);
  font-size: 8px;
  font-weight: 800;
}

#ar-case .ar-value-item strong {
  display: block;
  margin-bottom: 5px;
  color: #45413d;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

#ar-case .ar-value-item small {
  display: block;
  color: #7c756e;
  font-size: 9px;
  line-height: 1.5;
}

#ar-case .ar-story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

#ar-case .ar-story-card {
  min-width: 0;
  padding: 23px;
  border-radius: 19px;
}

#ar-case .ar-story-card--before {
  border: 1px solid var(--ar-red-border);
  background: linear-gradient(135deg, #fff0f0, #fff9f7);
}

#ar-case .ar-story-card--after {
  border: 1px solid var(--ar-green-border);
  background: linear-gradient(135deg, #eef8f0, #f8fcf9);
}

#ar-case .ar-story-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
}

#ar-case .ar-story-head span {
  display: inline-flex;
  padding: 6px 10px;
  align-items: center;
  border-radius: 999px;
  font-family: var(--font-tech, "Roboto Mono", monospace);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

#ar-case .ar-story-card--before .ar-story-head span {
  background: #f4cccc;
  color: #8d3535;
}

#ar-case .ar-story-card--after .ar-story-head span {
  background: #d8eadc;
  color: var(--ar-green);
}

#ar-case .ar-story-head strong {
  color: #46413d;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

#ar-case .ar-story-card p {
  margin: 0;
  color: #625d57;
  font-size: 13px;
  line-height: 1.75;
}

#ar-case .ar-story-card--before p {
  color: #76514f;
}

#ar-case .ar-story-card--after p {
  color: #4f6859;
}

#ar-case .ar-story-card ul {
  margin: 15px 0 0;
  padding-left: 19px;
  color: #625d57;
  font-size: 12px;
  line-height: 1.7;
}

#ar-case .ar-story-card li {
  margin: 5px 0;
}

#ar-case .ar-story-card--before li::marker {
  color: #b15a5a;
}

#ar-case .ar-story-card--after li::marker {
  color: var(--ar-green);
}

#ar-case .ar-simulator {
  position: relative;
  width: 100%;
  min-width: 0;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid #d8d2ca;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(47, 128, 237, 0.05), transparent 24%),
    linear-gradient(180deg, #f7f4ef 0%, #f3f1ed 100%);
  box-shadow:
    0 25px 70px rgba(38, 36, 33, 0.12),
    0 6px 18px rgba(38, 36, 33, 0.05);
}

#ar-case .ar-simulator-topbar {
  display: flex;
  min-height: 72px;
  padding: 14px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top left, rgba(242, 200, 17, 0.12), transparent 32%),
    linear-gradient(180deg, #2b2c30 0%, #222326 100%);
  color: #fff;
}

#ar-case .ar-simulator-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

#ar-case .ar-simulator-mark {
  position: relative;
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: #f2c811;
  box-shadow:
    0 8px 18px rgba(242, 200, 17, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

#ar-case .ar-simulator-mark::before {
  content: "AR";
  color: #1e1d1b;
  font-family: var(--font-tech, "Roboto Mono", monospace);
  font-size: 11px;
  font-weight: 900;
}

#ar-case .ar-simulator-brand small,
#ar-case .ar-simulator-brand strong {
  display: block;
}

#ar-case .ar-simulator-brand small {
  margin-bottom: 3px;
  color: #aaa;
  font-family: var(--font-tech, "Roboto Mono", monospace);
  font-size: 7px;
  letter-spacing: 0.08em;
}

#ar-case .ar-simulator-brand strong {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

#ar-case .ar-simulator-meta {
  display: flex;
  align-items: stretch;
}

#ar-case .ar-simulator-meta > div {
  min-width: 112px;
  padding: 4px 13px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

#ar-case .ar-simulator-meta span,
#ar-case .ar-simulator-meta strong {
  display: block;
}

#ar-case .ar-simulator-meta span {
  margin-bottom: 4px;
  color: #8f8f8f;
  font-family: var(--font-tech, "Roboto Mono", monospace);
  font-size: 7px;
  letter-spacing: 0.06em;
}

#ar-case .ar-simulator-meta strong {
  color: #e5e5e5;
  font-family: var(--font-tech, "Roboto Mono", monospace);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

#ar-case .ar-runtime-status {
  color: #f2c811 !important;
}

#ar-case .ar-prehistory {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.96fr);
  gap: 12px;
  margin: 16px;
}

#ar-case .ar-prehistory-copy,
#ar-case .ar-prehistory-data {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dfd8cf;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(40, 38, 35, 0.035);
}

#ar-case .ar-prehistory-copy {
  padding: 22px;
  background:
    radial-gradient(circle at top left, rgba(242, 200, 17, 0.08), transparent 36%),
    #fffdf8;
}

#ar-case .ar-section-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--ar-gold);
  font-family: var(--font-tech, "Roboto Mono", monospace);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#ar-case .ar-prehistory-copy h3 {
  max-width: 700px;
  margin: 0 0 14px;
  color: #3f3b37;
  font-size: clamp(1.25rem, 2.3vw, 1.8rem);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

#ar-case .ar-prehistory-copy p {
  margin: 7px 0;
  color: #6c665f;
  font-size: 11px;
  line-height: 1.65;
}

#ar-case .ar-prehistory-copy p strong {
  color: #403c38;
  font-weight: 700;
}

#ar-case .ar-prehistory-data {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#ar-case .ar-prehistory-data > div {
  min-width: 0;
  min-height: 80px;
  padding: 13px;
  border-right: 1px solid #eee8e0;
  border-bottom: 1px solid #eee8e0;
  background: #fff;
}

#ar-case .ar-prehistory-data > div:nth-child(3n) {
  border-right: 0;
}

#ar-case .ar-prehistory-data > div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

#ar-case .ar-prehistory-data span,
#ar-case .ar-prehistory-data strong {
  display: block;
}

#ar-case .ar-prehistory-data span {
  margin-bottom: 9px;
  color: #918a83;
  font-size: 7px;
  text-transform: uppercase;
}

#ar-case .ar-prehistory-data strong {
  color: #4a4642;
  font-family: var(--font-tech, "Roboto Mono", monospace);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

#ar-case .ar-source-panel,
#ar-case .ar-policy-panel,
#ar-case .ar-rules-panel,
#ar-case .ar-customer-outcome,
#ar-case .ar-promise-panel,
#ar-case .ar-promise-broken-panel,
#ar-case .ar-partial-panel,
#ar-case .ar-dispute-panel,
#ar-case .ar-payment-proof-panel,
#ar-case .ar-claim-gate,
#ar-case .ar-legal-package,
#ar-case .ar-business-value,
#ar-case .ar-integration-map {
  min-width: 0;
  margin: 16px;
  padding: 18px;
  border: 1px solid #ded8d0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(40, 38, 35, 0.035);
}

#ar-case .ar-panel-heading {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

#ar-case .ar-panel-heading > div {
  min-width: 0;
}

#ar-case .ar-panel-heading > div > span,
#ar-case .ar-panel-heading > div > strong {
  display: block;
}

#ar-case .ar-panel-heading > div > span {
  margin-bottom: 4px;
  color: #8b8178;
  font-family: var(--font-tech, "Roboto Mono", monospace);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

#ar-case .ar-panel-heading > div > strong {
  color: #3f3b37;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

#ar-case .ar-panel-heading > span {
  flex: 0 0 auto;
  color: #8d8780;
  font-family: var(--font-tech, "Roboto Mono", monospace);
  font-size: 8px;
  line-height: 1.4;
  text-align: right;
}

#ar-case .ar-panel-description {
  max-width: 820px;
  margin: -2px 0 15px;
  color: #7a746d;
  font-size: 10px;
  line-height: 1.6;
}

#ar-case .ar-source-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#ar-case .ar-source-option {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 11px;
  min-width: 0;
  min-height: 72px;
  padding: 11px;
  align-items: center;
  border: 1px solid #dfd8d0;
  border-radius: 11px;
  background: #faf9f7;
  color: var(--ar-text);
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    opacity 0.2s ease;
}

#ar-case .ar-source-option:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: #d5b64c;
  box-shadow: 0 9px 20px rgba(65, 57, 40, 0.08);
}

#ar-case .ar-source-option.active {
  border-color: #d7af00;
  background: #fff8da;
  box-shadow: 0 7px 18px rgba(177, 137, 0, 0.08);
}

#ar-case .ar-source-logo {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 9px;
  background: #2d2b29;
  color: #fff;
  font-family: var(--font-tech, "Roboto Mono", monospace);
  font-size: 10px;
  font-weight: 800;
}

#ar-case .ar-source-option.active .ar-source-logo {
  background: #f2c811;
  color: #242321;
}

#ar-case .ar-source-option strong,
#ar-case .ar-source-option small {
  display: block;
}

#ar-case .ar-source-option strong {
  margin-bottom: 3px;
  color: #49443f;
  font-size: 11px;
  font-weight: 700;
}

#ar-case .ar-source-option small {
  color: #8b847d;
  font-size: 8px;
  line-height: 1.45;
}

#ar-case .ar-source-option i {
  color: #918a83;
  font-family: var(--font-tech, "Roboto Mono", monospace);
  font-size: 7px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

#ar-case .ar-source-option.active i {
  color: #9a7800;
}

#ar-case .ar-source-note {
  margin: 12px 0 0;
  color: #817a73;
  font-size: 9px;
  line-height: 1.6;
}

#ar-case .ar-policy-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

#ar-case .ar-policy-button {
  min-width: 0;
  min-height: 92px;
  padding: 14px;
  border: 1px solid #dfd8d0;
  border-radius: 11px;
  background: #faf9f7;
  color: var(--ar-text);
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    opacity 0.2s ease;
}

#ar-case .ar-policy-button:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: #c9d7cd;
  box-shadow: 0 9px 20px rgba(65, 57, 40, 0.07);
}

#ar-case .ar-policy-button.active {
  border-color: #bdd8c4;
  background: #eef7f0;
  box-shadow: 0 7px 18px rgba(53, 95, 80, 0.07);
}

#ar-case .ar-policy-button strong,
#ar-case .ar-policy-button span {
  display: block;
}

#ar-case .ar-policy-button strong {
  margin-bottom: 7px;
  color: #49443f;
  font-size: 11px;
  font-weight: 700;
}

#ar-case .ar-policy-button.active strong {
  color: var(--ar-green);
}

#ar-case .ar-policy-button span {
  color: #837d76;
  font-size: 9px;
  line-height: 1.5;
}

#ar-case .ar-rules-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

#ar-case .ar-rule-card {
  min-width: 0;
  min-height: 107px;
  padding: 13px;
  border: 1px solid #e1dad2;
  border-radius: 11px;
  background: #fcfbf9;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

#ar-case .ar-rule-card span,
#ar-case .ar-rule-card strong,
#ar-case .ar-rule-card small {
  display: block;
}

#ar-case .ar-rule-card span {
  margin-bottom: 14px;
  color: #918a83;
  font-family: var(--font-tech, "Roboto Mono", monospace);
  font-size: 7px;
  line-height: 1.4;
}

#ar-case .ar-rule-card strong {
  margin-bottom: 4px;
  color: #4e4944;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}

#ar-case .ar-rule-card small {
  color: #8b847d;
  font-size: 8px;
  line-height: 1.45;
}

#ar-case .ar-rule-card--special {
  border-style: dashed;
  background: #fbfaf7;
}

#ar-case .ar-rule-card.active {
  transform: translateY(-2px);
  border-color: #d7af00;
  background: #fff8da;
  box-shadow: 0 9px 20px rgba(177, 137, 0, 0.08);
}

#ar-case .ar-rule-card.active strong {
  color: #7c6100;
}

#ar-case .ar-process-overview {
  min-width: 0;
  margin: 16px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid #ebd88d;
  border-radius: 16px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 235, 142, 0.42),
      rgba(241, 246, 252, 0.92)
    );
}

#ar-case .ar-process-map {
  display: grid;
  grid-template-columns:
    minmax(100px, 1fr)
    22px
    minmax(100px, 1fr)
    22px
    minmax(100px, 1fr)
    22px
    minmax(100px, 1fr)
    22px
    minmax(100px, 1fr)
    22px
    minmax(100px, 1fr)
    22px
    minmax(100px, 1fr);
  align-items: stretch;
}

#ar-case .ar-process-node {
  position: relative;
  min-width: 0;
  min-height: 110px;
  padding: 13px 10px;
  border: 1px solid #dfd7cb;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.78);
  opacity: 0.7;
  transition:
    opacity 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

#ar-case .ar-process-node > span,
#ar-case .ar-process-node strong,
#ar-case .ar-process-node small {
  display: block;
}

#ar-case .ar-process-node > span {
  display: grid;
  width: 27px;
  height: 27px;
  margin-bottom: 13px;
  place-items: center;
  border-radius: 50%;
  background: #dfd8cf;
  color: #726b64;
  font-family: var(--font-tech, "Roboto Mono", monospace);
  font-size: 8px;
  font-weight: 800;
}

#ar-case .ar-process-node strong {
  margin-bottom: 5px;
  color: #5e5953;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.4;
}

#ar-case .ar-process-node small {
  color: #8b847d;
  font-size: 7px;
  line-height: 1.45;
}

#ar-case .ar-process-node.active {
  transform: translateY(-2px);
  border-color: #d7af00;
  background: #fff8da;
  opacity: 1;
  box-shadow: 0 8px 18px rgba(177, 137, 0, 0.08);
}

#ar-case .ar-process-node.active > span {
  background: #f2c811;
  color: #242321;
}

#ar-case .ar-process-node.active strong {
  color: #695300;
}

#ar-case .ar-process-node.done {
  border-color: #bdd8c4;
  background: #eef7f0;
  opacity: 1;
}

#ar-case .ar-process-node.done > span {
  background: var(--ar-green);
  color: #fff;
}

#ar-case .ar-process-node.done::after {
  content: "✓";
  position: absolute;
  right: 8px;
  top: 8px;
  color: var(--ar-green);
  font-family: var(--font-tech, "Roboto Mono", monospace);
  font-size: 10px;
  font-weight: 800;
}

#ar-case .ar-process-node.paused {
  border-color: #e7cf7c;
  background: #fff8da;
  opacity: 1;
}

#ar-case .ar-process-node.error {
  border-color: #e3b8b8;
  background: #fff0f0;
  opacity: 1;
}

#ar-case .ar-process-arrow {
  display: grid;
  place-items: center;
  color: #d2a500;
  font-family: var(--font-tech, "Roboto Mono", monospace);
  font-size: 17px;
  font-weight: 800;
}

#ar-case .ar-process-overview.processing .ar-process-arrow {
  animation: arArrowPulse 1.4s ease-in-out infinite;
}

@keyframes arArrowPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: translateX(0);
  }

  50% {
    opacity: 1;
    transform: translateX(2px);
  }
}

#ar-case .ar-branch-map {
  display: grid;
  grid-template-columns: 120px repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-top: 11px;
}

#ar-case .ar-branch-origin,
#ar-case .ar-branch-path {
  min-width: 0;
  min-height: 66px;
  padding: 10px;
  border: 1px solid #e3ddd5;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

#ar-case .ar-branch-origin {
  display: grid;
  place-items: center;
  border-color: #bdd8c4;
  background: #eef7f0;
}

#ar-case .ar-branch-origin strong {
  color: var(--ar-green);
  font-family: var(--font-tech, "Roboto Mono", monospace);
  font-size: 8px;
}

#ar-case .ar-branch-path span,
#ar-case .ar-branch-path strong {
  display: block;
}

#ar-case .ar-branch-path span {
  margin-bottom: 9px;
  color: #837d76;
  font-size: 8px;
}

#ar-case .ar-branch-path strong {
  color: #5c5751;
  font-family: var(--font-tech, "Roboto Mono", monospace);
  font-size: 7px;
  line-height: 1.45;
}

#ar-case .ar-start-scene {
  display: flex;
  min-width: 0;
  margin: 16px;
  padding: 20px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #ebd88d;
  border-radius: 15px;
  background: linear-gradient(135deg, #fff8d9, #fffdf4);
  box-shadow: 0 8px 22px rgba(177, 137, 0, 0.06);
}

#ar-case .ar-start-copy {
  min-width: 0;
}

#ar-case .ar-start-copy > span,
#ar-case .ar-start-copy > strong {
  display: block;
}

#ar-case .ar-start-copy > span {
  margin-bottom: 6px;
  color: #8b6c00;
  font-family: var(--font-tech, "Roboto Mono", monospace);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.07em;
}

#ar-case .ar-start-copy > strong {
  margin-bottom: 7px;
  color: #544b34;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

#ar-case .ar-start-copy p {
  max-width: 760px;
  margin: 0;
  color: #746b56;
  font-size: 10px;
  line-height: 1.6;
}

#ar-case .ar-start-button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 20px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #f2c811, #d9a800);
  color: #1f1e1c;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 13px 28px rgba(207, 157, 0, 0.24);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease,
    opacity 0.2s ease;
}

#ar-case .ar-start-button:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 17px 34px rgba(207, 157, 0, 0.3);
}

#ar-case .ar-start-button:disabled {
  opacity: 0.65;
}

#ar-case .ar-runtime {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 10px;
  min-width: 0;
  margin: 16px;
}

#ar-case .ar-runtime-main {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 10px;
  min-width: 0;
}

#ar-case .ar-system-console,
#ar-case .ar-manager-console,
#ar-case .ar-audit-console {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #ded8d0;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(40, 38, 35, 0.04);
}

#ar-case .ar-window-header {
  display: flex;
  min-height: 54px;
  padding: 11px 13px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #e3ddd5;
  background: #f7f4ef;
}

#ar-case .ar-system-console .ar-window-header {
  background: #2d2b29;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

#ar-case .ar-manager-console .ar-window-header {
  background: linear-gradient(135deg, #eef8f0, #f8fcf9);
}

#ar-case .ar-audit-console .ar-window-header {
  background: #f7f4ef;
}

#ar-case .ar-window-header > div:first-child span,
#ar-case .ar-window-header > div:first-child strong {
  display: block;
}

#ar-case .ar-window-header > div:first-child span {
  margin-bottom: 3px;
  color: #918a83;
  font-family: var(--font-tech, "Roboto Mono", monospace);
  font-size: 7px;
  letter-spacing: 0.07em;
}

#ar-case .ar-window-header > div:first-child strong {
  color: #44403b;
  font-size: 10px;
  font-weight: 700;
}

#ar-case .ar-system-console .ar-window-header > div:first-child span {
  color: #9d9d9d;
}

#ar-case .ar-system-console .ar-window-header > div:first-child strong {
  color: #fff;
}

#ar-case .ar-window-header-state,
#ar-case .ar-telegram-live {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  color: #6f8c75;
  font-family: var(--font-tech, "Roboto Mono", monospace);
  font-size: 7px;
}

#ar-case .ar-window-header-state i,
#ar-case .ar-telegram-live i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #28a745;
  box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.12);
  animation: arLiveDot 1.8s ease-in-out infinite;
}

@keyframes arLiveDot {
  0%,
  100% {
    opacity: 0.55;
  }

  50% {
    opacity: 1;
  }
}

#ar-case .ar-system-feed,
#ar-case .ar-chat {
  min-height: 390px;
  max-height: 540px;
  padding: 13px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d2cbc2 transparent;
}

#ar-case .ar-chat {
  background:
    radial-gradient(circle at top right, rgba(53, 95, 80, 0.06), transparent 38%),
    #fff;
}

#ar-case .ar-system-feed::-webkit-scrollbar,
#ar-case .ar-chat::-webkit-scrollbar,
#ar-case .ar-audit-log::-webkit-scrollbar,
#ar-case .ar-letter-content::-webkit-scrollbar,
#ar-case .ar-letter-data::-webkit-scrollbar {
  width: 5px;
}

#ar-case .ar-system-feed::-webkit-scrollbar-thumb,
#ar-case .ar-chat::-webkit-scrollbar-thumb,
#ar-case .ar-audit-log::-webkit-scrollbar-thumb,
#ar-case .ar-letter-content::-webkit-scrollbar-thumb,
#ar-case .ar-letter-data::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #d2cbc2;
}

#ar-case .ar-empty-state,
#ar-case .ar-chat-empty {
  display: flex;
  min-height: 330px;
  padding: 20px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#ar-case .ar-empty-state strong,
#ar-case .ar-chat-empty strong {
  margin-bottom: 7px;
  color: #68625c;
  font-size: 10px;
  font-weight: 700;
}

#ar-case .ar-empty-state p,
#ar-case .ar-chat-empty p {
  max-width: 320px;
  margin: 0;
  color: #918a83;
  font-size: 8px;
  line-height: 1.6;
}

#ar-case .ar-system-event {
  position: relative;
  margin-bottom: 8px;
  padding: 10px 11px 10px 28px;
  border: 1px solid #ece6df;
  border-radius: 9px;
  background: #faf9f7;
  opacity: 0;
  transform: translateY(7px);
  animation: arEventIn 0.38s ease forwards;
}

#ar-case .ar-system-event::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 16px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8f8a84;
}

#ar-case .ar-system-event.success::before {
  background: #1fa766;
}

#ar-case .ar-system-event.warning::before {
  background: #e0a100;
}

#ar-case .ar-system-event.error::before {
  background: #d64242;
}

#ar-case .ar-system-event .ar-event-time {
  display: block;
  margin-bottom: 3px;
  color: #918a83;
  font-family: var(--font-tech, "Roboto Mono", monospace);
  font-size: 6px;
}

#ar-case .ar-system-event strong {
  display: block;
  margin-bottom: 3px;
  color: #4d4843;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.45;
}

#ar-case .ar-system-event p {
  margin: 0;
  color: #7f7972;
  font-size: 8px;
  line-height: 1.55;
}

@keyframes arEventIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#ar-case .ar-manager-console {
  display: flex;
  min-height: 450px;
  flex-direction: column;
}

#ar-case .ar-chat {
  flex: 1 1 auto;
}

#ar-case .ar-chat-message {
  max-width: 90%;
  margin: 0 0 9px;
  padding: 11px 12px;
  border: 1px solid #d9e4dc;
  border-radius: 5px 13px 13px 13px;
  background: #eef8f0;
  opacity: 0;
  transform: translateY(6px);
  animation: arMessageIn 0.35s ease forwards;
}

#ar-case .ar-chat-message.manager {
  margin-left: auto;
  border-color: #e4d17c;
  border-radius: 13px 5px 13px 13px;
  background: #fff8da;
}

#ar-case .ar-chat-message .ar-chat-author {
  display: block;
  margin-bottom: 5px;
  color: var(--ar-green);
  font-family: var(--font-tech, "Roboto Mono", monospace);
  font-size: 7px;
  font-weight: 800;
}

#ar-case .ar-chat-message.manager .ar-chat-author {
  color: #8b6c00;
}

#ar-case .ar-chat-message p {
  margin: 0;
  color: #5f685f;
  font-size: 9px;
  line-height: 1.58;
  overflow-wrap: anywhere;
}

#ar-case .ar-chat-message p b {
  color: #3f4b42;
  font-weight: 700;
}

#ar-case .ar-chat-message .ar-chat-meta {
  display: block;
  margin-top: 6px;
  color: #918a83;
  font-family: var(--font-tech, "Roboto Mono", monospace);
  font-size: 6px;
  text-align: right;
}

@keyframes arMessageIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#ar-case .ar-manager-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 11px;
  border-top: 1px solid #e3ddd5;
  background: #faf9f7;
}

#ar-case .ar-manager-actions button,
#ar-case .ar-letter-modal-actions button,
#ar-case .ar-postpone-options button,
#ar-case .ar-postpone-custom button,
#ar-case .ar-promise-panel > button,
#ar-case .ar-promise-broken-panel > button,
#ar-case .ar-partial-panel > button,
#ar-case .ar-dispute-actions button,
#ar-case .ar-payment-proof-panel > button,
#ar-case .ar-claim-gate-actions button,
#ar-case .ar-success-screen button,
#ar-case .ar-manual-review-screen button,
#ar-case .ar-audit-expand {
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid #ddd7d0;
  border-radius: 9px;
  background: #fff;
  color: #625d57;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

#ar-case .ar-manager-actions button:hover,
#ar-case .ar-letter-modal-actions button:hover,
#ar-case .ar-postpone-options button:hover,
#ar-case .ar-postpone-custom button:hover,
#ar-case .ar-promise-panel > button:hover,
#ar-case .ar-promise-broken-panel > button:hover,
#ar-case .ar-partial-panel > button:hover,
#ar-case .ar-dispute-actions button:hover,
#ar-case .ar-payment-proof-panel > button:hover,
#ar-case .ar-claim-gate-actions button:hover,
#ar-case .ar-success-screen button:hover,
#ar-case .ar-manual-review-screen button:hover,
#ar-case .ar-audit-expand:hover {
  transform: translateY(-1px);
  border-color: #d0c6bb;
  box-shadow: 0 7px 16px rgba(55, 48, 41, 0.07);
  color: #3f3a35;
}

#ar-case .ar-manager-actions .ar-action-primary,
#ar-case .ar-letter-modal-actions .ar-action-primary,
#ar-case .ar-claim-gate-actions .ar-action-primary {
  border-color: #d7af00;
  background: linear-gradient(135deg, #f2c811, #d9a800);
  color: #1f1e1c;
}

#ar-case .ar-audit-console {
  min-height: 450px;
}

#ar-case .ar-audit-expand {
  min-height: 27px;
  padding: 5px 8px;
  flex: 0 0 auto;
  background: #fff;
  font-size: 7px;
}

#ar-case .ar-audit-log {
  max-height: 500px;
  padding: 11px;
  overflow-y: auto;
  transition: max-height 0.28s ease;
}

#ar-case .ar-audit-empty {
  padding: 32px 10px;
  color: #918a83;
  font-size: 8px;
  text-align: center;
}

#ar-case .ar-audit-item {
  position: relative;
  padding: 9px 6px 9px 21px;
  border-bottom: 1px solid #eee8e0;
}

#ar-case .ar-audit-item:last-child {
  border-bottom: 0;
}

#ar-case .ar-audit-item::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #aaa39c;
}

#ar-case .ar-audit-item.success::before {
  background: #1fa766;
}

#ar-case .ar-audit-item.warning::before {
  background: #e0a100;
}

#ar-case .ar-audit-item.error::before {
  background: #d64242;
}

#ar-case .ar-audit-item time {
  display: block;
  margin-bottom: 3px;
  color: #9b958f;
  font-family: var(--font-tech, "Roboto Mono", monospace);
  font-size: 6px;
}

#ar-case .ar-audit-item strong {
  display: block;
  margin-bottom: 2px;
  color: #55504a;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.45;
}

#ar-case .ar-audit-item p {
  margin: 0;
  color: #847d76;
  font-size: 7px;
  line-height: 1.5;
}

#ar-case .ar-postpone-panel,
#ar-case .ar-time-travel {
  min-width: 0;
  margin: 16px;
  padding: 18px;
  border: 1px solid #ead27a;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff8d9, #fffdf4);
}

#ar-case .ar-postpone-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

#ar-case .ar-postpone-custom {
  display: flex;
  margin-top: 11px;
  align-items: flex-end;
  gap: 8px;
}

#ar-case .ar-postpone-custom label {
  display: grid;
  gap: 5px;
  color: #756f67;
  font-size: 8px;
}

#ar-case .ar-postpone-custom input {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid #d7d0c8;
  border-radius: 8px;
  background: #fff;
  color: #4d4944;
  font-family: var(--font-tech, "Roboto Mono", monospace);
  font-size: 9px;
}

#ar-case .ar-time-travel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

#ar-case .ar-time-travel span,
#ar-case .ar-time-travel strong {
  display: block;
}

#ar-case .ar-time-travel span {
  margin-bottom: 4px;
  color: #8b6c00;
  font-family: var(--font-tech, "Roboto Mono", monospace);
  font-size: 7px;
  font-weight: 800;
}

#ar-case .ar-time-travel strong {
  color: #5d5544;
  font-size: 10px;
  line-height: 1.45;
}

#ar-case .ar-time-travel button {
  min-height: 40px;
  padding: 0 14px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 9px;
  background: #2d2b29;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

#ar-case .ar-time-travel button:hover {
  transform: translateY(-1px);
  background: #1f1e1c;
}

#ar-case .ar-customer-outcome-intro {
  max-width: 780px;
  margin: -3px 0 16px;
  color: #7d766f;
  font-size: 9px;
  line-height: 1.6;
}

#ar-case .ar-outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

#ar-case .ar-outcome-card {
  min-width: 0;
  min-height: 105px;
  padding: 13px;
  border: 1px solid #e1dad2;
  border-radius: 11px;
  background: #fcfbf9;
  color: var(--ar-text);
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

#ar-case .ar-outcome-card:hover {
  transform: translateY(-2px);
  border-color: #d2cbc2;
  background: #fff;
  box-shadow: 0 10px 22px rgba(38, 35, 31, 0.08);
}

#ar-case .ar-outcome-card > span {
  display: grid;
  width: 29px;
  height: 29px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 8px;
  background: #2d2b29;
  color: #fff;
  font-family: var(--font-tech, "Roboto Mono", monospace);
  font-size: 9px;
  font-weight: 800;
}

#ar-case .ar-outcome-card strong,
#ar-case .ar-outcome-card small {
  display: block;
}

#ar-case .ar-outcome-card strong {
  margin-bottom: 4px;
  color: #4b4641;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.45;
}

#ar-case .ar-outcome-card small {
  color: #8b847d;
  font-size: 8px;
  line-height: 1.45;
}

#ar-case .ar-outcome-card--paid {
  border-color: #bdd8c4;
  background: #eef7f0;
}

#ar-case .ar-outcome-card--paid > span {
  background: var(--ar-green);
}

#ar-case .ar-outcome-card--warning {
  border-color: #edc8c8;
  background: #fff5f5;
}

#ar-case .ar-outcome-card--warning > span {
  background: #b14b4b;
}

#ar-case .ar-customer-reply {
  margin-bottom: 14px;
  padding: 14px;
  border-left: 4px solid #2f80ed;
  border-radius: 0 10px 10px 0;
  background: #eef4fb;
}

#ar-case .ar-reply-author {
  display: block;
  margin-bottom: 7px;
  color: #2f6f9f;
  font-family: var(--font-tech, "Roboto Mono", monospace);
  font-size: 8px;
  font-weight: 700;
}

#ar-case .ar-customer-reply p {
  margin: 0;
  color: #536779;
  font-size: 10px;
  line-height: 1.6;
}

#ar-case .ar-promise-panel {
  border-color: #cddfd2;
  background: linear-gradient(135deg, #eef8f0, #fbfdfb);
}

#ar-case .ar-promise-detected,
#ar-case .ar-proof-result,
#ar-case .ar-dispute-actions > div {
  margin-bottom: 14px;
  padding: 13px;
  border: 1px solid #d9e4dc;
  border-radius: 10px;
  background: #fff;
}

#ar-case .ar-promise-detected span,
#ar-case .ar-promise-detected strong,
#ar-case .ar-proof-result span,
#ar-case .ar-proof-result strong,
#ar-case .ar-dispute-actions span,
#ar-case .ar-dispute-actions strong {
  display: block;
}

#ar-case .ar-promise-detected span,
#ar-case .ar-proof-result span,
#ar-case .ar-dispute-actions span {
  margin-bottom: 5px;
  color: #7b8b80;
  font-family: var(--font-tech, "Roboto Mono", monospace);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

#ar-case .ar-promise-detected strong,
#ar-case .ar-proof-result strong,
#ar-case .ar-dispute-actions strong {
  margin-bottom: 4px;
  color: #4b5e50;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.45;
}

#ar-case .ar-promise-detected p,
#ar-case .ar-proof-result p,
#ar-case .ar-dispute-actions p {
  margin: 0;
  color: #718078;
  font-size: 8px;
  line-height: 1.55;
}

#ar-case .ar-promise-broken-panel {
  border-color: #e8bcbc;
  background: linear-gradient(135deg, #fff0f0, #fff9f7);
}

#ar-case .ar-promise-broken-panel > p {
  max-width: 820px;
  margin: 0 0 15px;
  color: #76514f;
  font-size: 9px;
  line-height: 1.6;
}

#ar-case .ar-promise-broken-data {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #edc8c8;
  border-radius: 10px;
  background: #fff;
}

#ar-case .ar-promise-broken-data > div {
  min-width: 0;
  min-height: 70px;
  padding: 12px;
  border-right: 1px solid #f0dddd;
}

#ar-case .ar-promise-broken-data > div:last-child {
  border-right: 0;
}

#ar-case .ar-promise-broken-data span,
#ar-case .ar-promise-broken-data strong {
  display: block;
}

#ar-case .ar-promise-broken-data span {
  margin-bottom: 8px;
  color: #a07070;
  font-size: 8px;
}

#ar-case .ar-promise-broken-data strong {
  color: #8d3535;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}

#ar-case .ar-payment-reconciliation {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid #d9e4dc;
  border-radius: 10px;
  background: #fff;
}

#ar-case .ar-payment-reconciliation > div {
  min-width: 0;
  min-height: 72px;
  padding: 12px;
  border-right: 1px solid #e7eee9;
}

#ar-case .ar-payment-reconciliation > div:last-child {
  border-right: 0;
}

#ar-case .ar-payment-reconciliation span,
#ar-case .ar-payment-reconciliation strong {
  display: block;
}

#ar-case .ar-payment-reconciliation span {
  margin-bottom: 9px;
  color: #7d887f;
  font-size: 8px;
}

#ar-case .ar-payment-reconciliation strong {
  color: #47584b;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}

#ar-case .ar-partial-panel {
  border-color: #cddfd2;
  background: linear-gradient(135deg, #f1f8f2, #fbfdfb);
}

#ar-case .ar-partial-panel > p {
  max-width: 760px;
  color: #657368;
  font-size: 9px;
  line-height: 1.6;
}

#ar-case .ar-danger-state {
  color: #b14b4b !important;
}

#ar-case .ar-dispute-panel {
  border-color: #edc8c8;
  background: linear-gradient(135deg, #fff0f0, #fff9f7);
}

#ar-case .ar-dispute-actions > div {
  border-color: #efcece;
  background: #fff;
}

#ar-case .ar-dispute-actions button {
  border-color: #dcb0b0;
  color: #8d3535;
}

#ar-case .ar-proof-file {
  display: flex;
  margin-bottom: 14px;
  padding: 11px;
  align-items: center;
  gap: 11px;
  border: 1px solid #c8d7e7;
  border-radius: 10px;
  background: #fff;
}

#ar-case .ar-proof-file > span {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: #2f80ed;
  color: #fff;
  font-family: var(--font-tech, "Roboto Mono", monospace);
  font-size: 8px;
  font-weight: 800;
}

#ar-case .ar-proof-file strong,
#ar-case .ar-proof-file small {
  display: block;
}

#ar-case .ar-proof-file strong {
  margin-bottom: 3px;
  color: #4d5f70;
  font-size: 9px;
  overflow-wrap: anywhere;
}

#ar-case .ar-proof-file small {
  color: #8794a0;
  font-size: 7px;
}

#ar-case .ar-letter-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  padding: 22px;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.24s ease,
    visibility 0.24s ease;
}

#ar-case .ar-letter-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#ar-case .ar-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 17, 15, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#ar-case .ar-letter-window {
  position: relative;
  width: min(1160px, 96vw);
  max-height: 92vh;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d5cec5;
  border-radius: 18px;
  background: #f7f4ef;
  box-shadow: 0 35px 110px rgba(25, 24, 22, 0.35);
}

#ar-case .ar-letter-window-head {
  display: flex;
  min-height: 64px;
  padding: 13px 17px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #ded8d0;
  background:
    radial-gradient(circle at top left, rgba(242, 200, 17, 0.12), transparent 34%),
    #2d2b29;
}

#ar-case .ar-letter-window-head span,
#ar-case .ar-letter-window-head strong {
  display: block;
}

#ar-case .ar-letter-window-head span {
  margin-bottom: 4px;
  color: #f2c811;
  font-family: var(--font-tech, "Roboto Mono", monospace);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.07em;
}

#ar-case .ar-letter-window-head strong {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

#ar-case .ar-letter-window-head button {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}

#ar-case .ar-letter-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  min-height: 0;
  max-height: calc(92vh - 128px);
}

#ar-case .ar-letter-document {
  min-width: 0;
  overflow-y: auto;
  background: #fff;
  color: #252925;
}

#ar-case .ar-email-fields {
  padding: 16px 22px;
  border-bottom: 1px solid #ded8d0;
  background: #f7f4ef;
}

#ar-case .ar-email-fields > div {
  display: grid;
  grid-template-columns: 65px minmax(0, 1fr);
  gap: 10px;
  padding: 5px 0;
}

#ar-case .ar-email-fields span {
  color: #918a83;
  font-family: var(--font-tech, "Roboto Mono", monospace);
  font-size: 8px;
}

#ar-case .ar-email-fields strong {
  color: #46413d;
  font-size: 9px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

#ar-case .ar-letter-content {
  max-height: calc(92vh - 275px);
  padding: 32px 44px 50px;
  overflow-y: auto;
  background: #fff;
}

#ar-case .ar-real-letter {
  max-width: 760px;
  margin: 0 auto;
}

#ar-case .ar-real-letter p {
  margin: 0 0 17px;
  color: #343a34;
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.7;
}

#ar-case .ar-letter-signature {
  margin-top: 28px !important;
}

#ar-case .ar-letter-data {
  padding: 18px 16px;
  overflow-y: auto;
  border-left: 1px solid #ded8d0;
  background: #f7f4ef;
}

#ar-case .ar-letter-data h4 {
  margin: 0 0 14px;
  color: #4d4843;
  font-size: 11px;
  font-weight: 700;
}

#ar-case .ar-auto-field {
  padding: 9px 0;
  border-bottom: 1px solid #e7e1da;
}

#ar-case .ar-auto-field:last-child {
  border-bottom: 0;
}

#ar-case .ar-auto-field span,
#ar-case .ar-auto-field strong {
  display: block;
}

#ar-case .ar-auto-field span {
  margin-bottom: 3px;
  color: #918a83;
  font-size: 7px;
}

#ar-case .ar-auto-field strong {
  color: #5a554f;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

#ar-case .ar-letter-modal-actions {
  display: flex;
  min-height: 61px;
  padding: 11px 16px;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  border-top: 1px solid #ded8d0;
  background: #f7f4ef;
}

#ar-case .ar-template-library {
  display: none;
}

#ar-case .ar-formal-claim-document {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 0;
  color: #222;
  font-family: Arial, sans-serif;
}

#ar-case .ar-claim-company {
  margin-bottom: 34px;
}

#ar-case .ar-claim-company strong,
#ar-case .ar-claim-company span,
#ar-case .ar-claim-recipient strong,
#ar-case .ar-claim-recipient span,
#ar-case .ar-claim-meta span {
  display: block;
  color: #333;
  font-size: 12px;
  line-height: 1.5;
}

#ar-case .ar-claim-company strong {
  margin-bottom: 5px;
  font-size: 14px;
}

#ar-case .ar-claim-recipient {
  width: 48%;
  margin: 0 0 27px auto;
}

#ar-case .ar-claim-recipient > span:first-child {
  margin-bottom: 4px;
  color: #777;
}

#ar-case .ar-claim-meta {
  display: flex;
  margin-bottom: 32px;
  justify-content: space-between;
  gap: 20px;
}

#ar-case .ar-formal-claim-document h3 {
  margin: 0;
  color: #111;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

#ar-case .ar-formal-claim-document h4 {
  margin: 5px 0 28px;
  color: #333;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

#ar-case .ar-formal-claim-document p {
  margin: 0 0 16px;
  color: #303030;
  font-size: 12px;
  line-height: 1.65;
  text-align: justify;
}

#ar-case .ar-claim-history {
  margin: 20px 0;
  border: 1px solid #d6d6d6;
}

#ar-case .ar-claim-history > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  border-bottom: 1px solid #dedede;
}

#ar-case .ar-claim-history > div:last-child {
  border-bottom: 0;
}

#ar-case .ar-claim-history span,
#ar-case .ar-claim-history strong {
  padding: 9px 11px;
  color: #333;
  font-size: 11px;
  line-height: 1.4;
}

#ar-case .ar-claim-history span {
  border-right: 1px solid #dedede;
  font-family: var(--font-tech, "Roboto Mono", monospace);
}

#ar-case .ar-claim-history strong {
  font-weight: 500;
}

#ar-case .ar-claim-attachments {
  margin: 24px 0;
}

#ar-case .ar-claim-attachments strong {
  color: #222;
  font-size: 12px;
}

#ar-case .ar-claim-attachments ol {
  margin: 8px 0 0;
  padding-left: 20px;
}

#ar-case .ar-claim-attachments li {
  margin: 5px 0;
  color: #333;
  font-size: 11px;
  line-height: 1.5;
}

#ar-case .ar-claim-signature {
  display: flex;
  margin-top: 42px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

#ar-case .ar-claim-signature span,
#ar-case .ar-claim-signature strong {
  display: block;
  color: #333;
  font-size: 11px;
}

#ar-case .ar-claim-signature strong {
  margin-top: 6px;
  font-size: 12px;
}

#ar-case .ar-claim-gate {
  border-color: #e2ca78;
  background: linear-gradient(135deg, #fff8d9, #fffdf4);
}

#ar-case .ar-claim-gate-alert {
  margin-bottom: 15px;
}

#ar-case .ar-claim-gate-alert span,
#ar-case .ar-claim-gate-alert strong {
  display: block;
}

#ar-case .ar-claim-gate-alert span {
  margin-bottom: 6px;
  color: #9a7800;
  font-family: var(--font-tech, "Roboto Mono", monospace);
  font-size: 8px;
  font-weight: 800;
}

#ar-case .ar-claim-gate-alert strong {
  margin-bottom: 6px;
  color: #544b34;
  font-size: 14px;
  font-weight: 700;
}

#ar-case .ar-claim-gate-alert p {
  margin: 0;
  color: #756c56;
  font-size: 9px;
  line-height: 1.6;
}

#ar-case .ar-claim-gate-data {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid #eadca8;
  border-radius: 10px;
  background: #fff;
}

#ar-case .ar-claim-gate-data > div {
  min-width: 0;
  min-height: 70px;
  padding: 11px;
  border-right: 1px solid #efe6c9;
}

#ar-case .ar-claim-gate-data > div:last-child {
  border-right: 0;
}

#ar-case .ar-claim-gate-data span,
#ar-case .ar-claim-gate-data strong {
  display: block;
}

#ar-case .ar-claim-gate-data span {
  margin-bottom: 8px;
  color: #8c8166;
  font-size: 8px;
}

#ar-case .ar-claim-gate-data strong {
  color: #635735;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.4;
}

#ar-case .ar-claim-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

#ar-case .ar-legal-files {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

#ar-case .ar-legal-files > div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  column-gap: 9px;
  min-width: 0;
  min-height: 62px;
  padding: 10px;
  border: 1px solid #e1dad2;
  border-radius: 9px;
  background: #faf9f7;
}

#ar-case .ar-legal-files > div > span {
  grid-row: 1 / span 2;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  align-self: center;
  border-radius: 8px;
  background: #2d2b29;
  color: #fff;
  font-family: var(--font-tech, "Roboto Mono", monospace);
  font-size: 7px;
  font-weight: 800;
}

#ar-case .ar-legal-files strong {
  align-self: end;
  color: #4f4a45;
  font-size: 8px;
  overflow-wrap: anywhere;
}

#ar-case .ar-legal-files small {
  align-self: start;
  color: #8a837c;
  font-size: 7px;
}

#ar-case .ar-legal-note {
  margin-top: 13px;
  padding: 13px;
  border-left: 4px solid var(--ar-green);
  background: #eef7f0;
}

#ar-case .ar-legal-note strong {
  display: block;
  margin-bottom: 4px;
  color: #48614f;
  font-size: 9px;
}

#ar-case .ar-legal-note p {
  margin: 0;
  color: #708076;
  font-size: 8px;
  line-height: 1.55;
}

#ar-case .ar-success-screen,
#ar-case .ar-manual-review-screen {
  min-width: 0;
  margin: 16px;
  padding: 34px 24px;
  border: 1px solid #cddfd2;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef8f0, #fbfdfb);
  text-align: center;
}

#ar-case .ar-success-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 15px;
  place-items: center;
  border-radius: 50%;
  background: var(--ar-green);
  color: #fff;
  font-size: 24px;
  box-shadow: 0 10px 24px rgba(53, 95, 80, 0.16);
}

#ar-case .ar-success-screen > span,
#ar-case .ar-manual-review-screen > span {
  display: block;
  margin-bottom: 7px;
  color: var(--ar-green);
  font-family: var(--font-tech, "Roboto Mono", monospace);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

#ar-case .ar-success-screen h3,
#ar-case .ar-manual-review-screen h3 {
  margin: 0 0 10px;
  color: #3d5646;
  font-size: clamp(1.45rem, 2.7vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

#ar-case .ar-success-screen > p,
#ar-case .ar-manual-review-screen > p {
  max-width: 720px;
  margin: 0 auto 20px;
  color: #68786e;
  font-size: 10px;
  line-height: 1.6;
}

#ar-case .ar-success-data {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 720px;
  margin: 0 auto 18px;
  overflow: hidden;
  border: 1px solid #d9e4dc;
  border-radius: 10px;
  background: #fff;
}

#ar-case .ar-success-data > div {
  min-width: 0;
  min-height: 66px;
  padding: 11px;
  border-right: 1px solid #e5ece7;
}

#ar-case .ar-success-data > div:last-child {
  border-right: 0;
}

#ar-case .ar-success-data span,
#ar-case .ar-success-data strong {
  display: block;
}

#ar-case .ar-success-data span {
  margin-bottom: 8px;
  color: #809086;
  font-size: 8px;
}

#ar-case .ar-success-data strong {
  color: #4c6252;
  font-size: 9px;
  font-weight: 700;
}

#ar-case .ar-success-summary {
  max-width: 820px !important;
}

#ar-case .ar-manual-review-screen {
  border-color: #ead27a;
  background: linear-gradient(135deg, #fff8d9, #fffdf4);
}

#ar-case .ar-manual-review-screen > span {
  color: #9a7800;
}

#ar-case .ar-manual-review-screen h3 {
  color: #5a513a;
}

#ar-case .ar-review-reason {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 11px 16px;
  align-items: center;
  gap: 11px;
  border: 1px solid #eadca8;
  border-radius: 9px;
  background: #fff;
}

#ar-case .ar-review-reason span {
  color: #8a8068;
  font-size: 8px;
}

#ar-case .ar-review-reason strong {
  color: #806500;
  font-family: var(--font-tech, "Roboto Mono", monospace);
  font-size: 8px;
}

#ar-case .ar-business-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

#ar-case .ar-business-value-grid > div {
  min-width: 0;
  min-height: 128px;
  padding: 14px;
  border: 1px solid #e1dad2;
  border-radius: 11px;
  background: #fcfbf9;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

#ar-case .ar-business-value-grid > div:hover {
  transform: translateY(-2px);
  border-color: #d2cbc2;
  box-shadow: 0 10px 22px rgba(38, 35, 31, 0.07);
}

#ar-case .ar-business-value-grid > div > span {
  display: grid;
  width: 27px;
  height: 27px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 50%;
  background: #f2c811;
  color: #242321;
  font-family: var(--font-tech, "Roboto Mono", monospace);
  font-size: 7px;
  font-weight: 800;
}

#ar-case .ar-business-value-grid strong {
  display: block;
  margin-bottom: 5px;
  color: #4d4843;
  font-size: 10px;
  font-weight: 700;
}

#ar-case .ar-business-value-grid p {
  margin: 0;
  color: #817a73;
  font-size: 8px;
  line-height: 1.5;
}

#ar-case .ar-integration-flow {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    25px
    minmax(0, 1fr)
    25px
    minmax(0, 1fr)
    25px
    minmax(0, 1fr)
    25px
    minmax(0, 1fr);
  align-items: center;
}

#ar-case .ar-integration-node {
  min-width: 0;
  min-height: 104px;
  padding: 13px;
  border: 1px solid #e1dad2;
  border-radius: 11px;
  background: #fcfbf9;
}

#ar-case .ar-integration-node--core {
  border-color: #d7af00;
  background: #fff8da;
}

#ar-case .ar-integration-node span,
#ar-case .ar-integration-node strong,
#ar-case .ar-integration-node small {
  display: block;
}

#ar-case .ar-integration-node span {
  margin-bottom: 17px;
  color: #918a83;
  font-family: var(--font-tech, "Roboto Mono", monospace);
  font-size: 7px;
  font-weight: 700;
}

#ar-case .ar-integration-node strong {
  margin-bottom: 4px;
  color: #4d4843;
  font-size: 9px;
  font-weight: 700;
}

#ar-case .ar-integration-node--core strong {
  color: #7b6100;
}

#ar-case .ar-integration-node small {
  color: #8b847d;
  font-size: 7px;
  line-height: 1.45;
}

#ar-case .ar-integration-link {
  color: #d2a500;
  font-family: var(--font-tech, "Roboto Mono", monospace);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

#ar-case .ar-final-message {
  min-width: 0;
  margin: 16px;
  padding: 28px 24px;
  border: 1px solid #cddfd2;
  border-radius: 15px;
  background:
    radial-gradient(circle at top right, rgba(53, 95, 80, 0.08), transparent 38%),
    linear-gradient(135deg, #eef8f0, #fbfdfb);
}

#ar-case .ar-final-message > span {
  display: block;
  margin-bottom: 10px;
  color: var(--ar-green);
  font-family: var(--font-tech, "Roboto Mono", monospace);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

#ar-case .ar-final-message h3 {
  max-width: 820px;
  margin: 0 0 11px;
  color: var(--ar-green);
  font-size: clamp(1.35rem, 2.8vw, 2.05rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

#ar-case .ar-final-message p {
  max-width: 860px;
  margin: 0;
  color: #68786e;
  font-size: 10px;
  line-height: 1.6;
}

#ar-case .ar-case-cta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 22px;
  align-items: center;
  border: 1px solid #d8e3dc;
  border-radius: 18px;
  background: linear-gradient(135deg, #eff7f1, #fbfdfb);
}

#ar-case .ar-case-cta span,
#ar-case .ar-case-cta strong {
  display: block;
}

#ar-case .ar-case-cta span {
  margin-bottom: 4px;
  color: #728078;
  font-size: 9px;
}

#ar-case .ar-case-cta strong {
  color: #3e5648;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

#ar-case .ar-case-cta a {
  display: inline-flex;
  min-height: 49px;
  padding: 0 23px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--blue, #2f6f9f);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(47, 111, 159, 0.18);
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

#ar-case .ar-case-cta a:hover {
  transform: translateY(-1px);
  background: var(--blue-hover, #255c86);
  box-shadow: 0 13px 27px rgba(47, 111, 159, 0.24);
}

#ar-case .ar-pulse {
  animation: arPulse 1.4s ease-in-out infinite;
}

@keyframes arPulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(242, 200, 17, 0);
  }

  50% {
    box-shadow: 0 0 24px rgba(242, 200, 17, 0.18);
  }
}

#ar-case .ar-flash {
  animation: arFlash 0.7s ease;
}

@keyframes arFlash {
  0% {
    background-color: rgba(242, 200, 17, 0.18);
  }

  100% {
    background-color: transparent;
  }
}

#ar-case .ar-shake {
  animation: arShake 0.35s ease;
}

@keyframes arShake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-3px);
  }

  75% {
    transform: translateX(3px);
  }
}

@media (max-width: 1180px) {
  #ar-case {
    padding: 32px;
  }

  #ar-case .ar-value-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #ar-case .ar-prehistory {
    grid-template-columns: 1fr;
  }

  #ar-case .ar-process-map {
    grid-template-columns: repeat(7, minmax(130px, 1fr));
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 7px;
  }

  #ar-case .ar-process-arrow {
    display: none;
  }

  #ar-case .ar-branch-map {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #ar-case .ar-branch-origin {
    grid-column: 1 / -1;
  }

  #ar-case .ar-runtime {
    grid-template-columns: 1fr;
  }

  #ar-case .ar-audit-console {
    min-height: 0;
  }

  #ar-case .ar-audit-log {
    max-height: 270px;
  }

  #ar-case .ar-integration-flow {
    grid-template-columns: repeat(5, minmax(145px, 1fr));
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 7px;
  }

  #ar-case .ar-integration-link {
    display: none;
  }
}

@media (max-width: 900px) {
  #ar-case .ar-story-grid {
    grid-template-columns: 1fr;
  }

  #ar-case .ar-simulator-topbar {
    align-items: flex-start;
  }

  #ar-case .ar-simulator-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #ar-case .ar-simulator-meta > div {
    min-width: 0;
  }

  #ar-case .ar-simulator-meta strong {
    white-space: normal;
  }

  #ar-case .ar-source-options,
  #ar-case .ar-policy-switch {
    grid-template-columns: 1fr;
  }

  #ar-case .ar-rules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #ar-case .ar-runtime-main {
    grid-template-columns: 1fr;
  }

  #ar-case .ar-outcome-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #ar-case .ar-payment-reconciliation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #ar-case .ar-payment-reconciliation > div:nth-child(2) {
    border-right: 0;
  }

  #ar-case .ar-payment-reconciliation > div:nth-child(-n + 2) {
    border-bottom: 1px solid #e7eee9;
  }

  #ar-case .ar-promise-broken-data {
    grid-template-columns: 1fr;
  }

  #ar-case .ar-promise-broken-data > div {
    border-right: 0;
    border-bottom: 1px solid #f0dddd;
  }

  #ar-case .ar-promise-broken-data > div:last-child {
    border-bottom: 0;
  }

  #ar-case .ar-claim-gate-data,
  #ar-case .ar-success-data {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #ar-case .ar-claim-gate-data > div:nth-child(2),
  #ar-case .ar-success-data > div:nth-child(2) {
    border-right: 0;
  }

  #ar-case .ar-claim-gate-data > div:nth-child(-n + 2),
  #ar-case .ar-success-data > div:nth-child(-n + 2) {
    border-bottom: 1px solid #e7e1da;
  }

  #ar-case .ar-business-value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #ar-case .ar-letter-layout {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  #ar-case .ar-letter-data {
    border-top: 1px solid #ded8d0;
    border-left: 0;
  }

  #ar-case .ar-letter-document {
    overflow: visible;
  }

  #ar-case .ar-letter-content {
    max-height: none;
  }
}

@media (max-width: 760px) {
  #ar-case {
    margin-top: 18px;
    padding: 25px 14px;
    border-radius: 18px;
  }

  #ar-case .case-demo-kicker {
    font-size: 9px;
  }

  #ar-case .ar-case-title {
    font-size: clamp(1.85rem, 9vw, 2.7rem);
    line-height: 1.08;
  }

  #ar-case .ar-case-lead {
    font-size: 13px;
    line-height: 1.72;
  }

  #ar-case .ar-value-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #ar-case .ar-story-card {
    padding: 19px 16px;
  }

  #ar-case .ar-simulator {
    border-radius: 15px;
  }

  #ar-case .ar-simulator-topbar {
    display: block;
    padding: 13px;
  }

  #ar-case .ar-simulator-meta {
    margin-top: 13px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
  }

  #ar-case .ar-simulator-meta > div {
    padding: 8px 6px;
  }

  #ar-case .ar-simulator-meta > div:first-child,
  #ar-case .ar-simulator-meta > div:nth-child(3) {
    border-left: 0;
  }

  #ar-case .ar-prehistory,
  #ar-case .ar-source-panel,
  #ar-case .ar-policy-panel,
  #ar-case .ar-rules-panel,
  #ar-case .ar-process-overview,
  #ar-case .ar-start-scene,
  #ar-case .ar-runtime,
  #ar-case .ar-postpone-panel,
  #ar-case .ar-time-travel,
  #ar-case .ar-customer-outcome,
  #ar-case .ar-promise-panel,
  #ar-case .ar-promise-broken-panel,
  #ar-case .ar-partial-panel,
  #ar-case .ar-dispute-panel,
  #ar-case .ar-payment-proof-panel,
  #ar-case .ar-claim-gate,
  #ar-case .ar-legal-package,
  #ar-case .ar-success-screen,
  #ar-case .ar-manual-review-screen,
  #ar-case .ar-business-value,
  #ar-case .ar-integration-map,
  #ar-case .ar-final-message {
    margin-left: 9px;
    margin-right: 9px;
  }

  #ar-case .ar-prehistory-copy,
  #ar-case .ar-source-panel,
  #ar-case .ar-policy-panel,
  #ar-case .ar-rules-panel,
  #ar-case .ar-process-overview,
  #ar-case .ar-customer-outcome,
  #ar-case .ar-promise-panel,
  #ar-case .ar-promise-broken-panel,
  #ar-case .ar-partial-panel,
  #ar-case .ar-dispute-panel,
  #ar-case .ar-payment-proof-panel,
  #ar-case .ar-claim-gate,
  #ar-case .ar-legal-package,
  #ar-case .ar-business-value,
  #ar-case .ar-integration-map {
    padding: 16px 13px;
  }

  #ar-case .ar-prehistory-data {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #ar-case .ar-prehistory-data > div,
  #ar-case .ar-prehistory-data > div:nth-child(3n),
  #ar-case .ar-prehistory-data > div:nth-last-child(-n + 3) {
    border-right: 1px solid #eee8e0;
    border-bottom: 1px solid #eee8e0;
  }

  #ar-case .ar-prehistory-data > div:nth-child(2n) {
    border-right: 0;
  }

  #ar-case .ar-prehistory-data > div:last-child {
    border-bottom: 0;
  }

  #ar-case .ar-panel-heading {
    display: block;
  }

  #ar-case .ar-panel-heading > span {
    display: block;
    margin-top: 6px;
    text-align: left;
  }

  #ar-case .ar-rules-grid {
    grid-template-columns: 1fr;
  }

  #ar-case .ar-process-map {
    grid-template-columns: repeat(7, 138px);
  }

  #ar-case .ar-branch-map,
  #ar-case .ar-outcome-grid,
  #ar-case .ar-payment-reconciliation,
  #ar-case .ar-claim-gate-data,
  #ar-case .ar-success-data {
    grid-template-columns: 1fr;
  }

  #ar-case .ar-branch-origin {
    grid-column: auto;
  }

  #ar-case .ar-start-scene,
  #ar-case .ar-time-travel {
    display: block;
  }

  #ar-case .ar-start-button,
  #ar-case .ar-time-travel button {
    width: 100%;
    margin-top: 15px;
  }

  #ar-case .ar-manager-actions {
    grid-template-columns: 1fr;
  }

  #ar-case .ar-postpone-custom {
    display: grid;
    grid-template-columns: 1fr;
  }

  #ar-case .ar-postpone-custom input {
    width: 100%;
  }

  #ar-case .ar-postpone-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #ar-case .ar-payment-reconciliation > div,
  #ar-case .ar-payment-reconciliation > div:nth-child(2),
  #ar-case .ar-claim-gate-data > div,
  #ar-case .ar-claim-gate-data > div:nth-child(2),
  #ar-case .ar-success-data > div,
  #ar-case .ar-success-data > div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid #e7e1da;
  }

  #ar-case .ar-payment-reconciliation > div:last-child,
  #ar-case .ar-claim-gate-data > div:last-child,
  #ar-case .ar-success-data > div:last-child {
    border-bottom: 0;
  }

  #ar-case .ar-claim-gate-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  #ar-case .ar-legal-files,
  #ar-case .ar-business-value-grid {
    grid-template-columns: 1fr;
  }

  #ar-case .ar-integration-flow {
    grid-template-columns: repeat(5, 160px);
  }

  #ar-case .ar-final-message {
    padding: 24px 18px;
  }

  #ar-case .ar-case-cta {
    display: block;
    padding: 19px 17px 82px;
  }

  #ar-case .ar-case-cta a {
    width: min(100%, 280px);
    margin: 17px auto 0;
  }

  #ar-case .ar-letter-modal {
    padding: 8px;
  }

  #ar-case .ar-letter-window {
    width: 100%;
    max-height: 95vh;
    border-radius: 13px;
  }

  #ar-case .ar-letter-window-head {
    min-height: 57px;
    padding: 10px 11px;
  }

  #ar-case .ar-letter-layout {
    max-height: calc(95vh - 114px);
  }

  #ar-case .ar-email-fields {
    padding: 13px 14px;
  }

  #ar-case .ar-email-fields > div {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  #ar-case .ar-letter-content {
    padding: 24px 17px 38px;
  }

  #ar-case .ar-real-letter p {
    font-size: 12px;
    line-height: 1.65;
  }

  #ar-case .ar-letter-data {
    padding: 16px 14px;
  }

  #ar-case .ar-letter-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  #ar-case .ar-letter-modal-actions button {
    width: 100%;
  }

  #ar-case .ar-claim-recipient {
    width: 70%;
  }

  #ar-case .ar-claim-meta {
    display: block;
  }

  #ar-case .ar-claim-meta span + span {
    margin-top: 4px;
  }

  #ar-case .ar-claim-history > div {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  #ar-case .ar-claim-signature {
    display: block;
  }

  #ar-case .ar-claim-signature > div + div {
    margin-top: 14px;
  }
}

@media (max-width: 430px) {
  #ar-case .ar-value-strip {
    grid-template-columns: 1fr;
  }

  #ar-case .ar-story-head {
    display: block;
  }

  #ar-case .ar-story-head span {
    margin-bottom: 7px;
  }

  #ar-case .ar-prehistory-data {
    grid-template-columns: 1fr;
  }

  #ar-case .ar-prehistory-data > div,
  #ar-case .ar-prehistory-data > div:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid #eee8e0;
  }

  #ar-case .ar-prehistory-data > div:last-child {
    border-bottom: 0;
  }

  #ar-case .ar-source-option {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  #ar-case .ar-source-option i {
    display: none;
  }

  #ar-case .ar-postpone-options {
    grid-template-columns: 1fr;
  }

  #ar-case .ar-window-header {
    gap: 8px;
  }

  #ar-case .ar-window-header-state,
  #ar-case .ar-telegram-live {
    max-width: 110px;
    justify-content: flex-end;
    text-align: right;
  }

  #ar-case .ar-formal-claim-document p {
    text-align: left;
  }

  #ar-case .ar-claim-recipient {
    width: 100%;
  }

  #ar-case .ar-claim-history > div {
    grid-template-columns: 1fr;
  }

  #ar-case .ar-claim-history span {
    padding-bottom: 3px;
    border-right: 0;
  }

  #ar-case .ar-claim-history strong {
    padding-top: 3px;
  }

  #ar-case .ar-review-reason {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
  }

  #ar-case .ar-case-cta {
    padding-bottom: 82px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #ar-case *,
  #ar-case *::before,
  #ar-case *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

#ar-case .ar-telegram-console {
  position: relative;
  display: flex;
  min-height: 500px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #c8d3da;
  border-radius: 13px;
  background: #ffffff;
  box-shadow:
    0 8px 24px rgba(42, 58, 68, 0.1),
    0 1px 2px rgba(42, 58, 68, 0.08);
}

#ar-case .ar-telegram-appbar {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 62px;
  padding: 10px 12px;
  align-items: center;
  border-bottom: 1px solid #dfe6eb;
  background: #ffffff;
}

#ar-case .ar-telegram-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background:
    linear-gradient(
      145deg,
      #63b8e8,
      #2f97d1
    );
  color: #ffffff;
  font-family: var(--font-tech, "Roboto Mono", monospace);
  font-size: 11px;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

#ar-case .ar-telegram-contact {
  min-width: 0;
}

#ar-case .ar-telegram-contact strong,
#ar-case .ar-telegram-contact span {
  display: block;
}

#ar-case .ar-telegram-contact strong {
  overflow: hidden;
  color: #222222;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#ar-case .ar-telegram-contact span {
  margin-top: 2px;
  color: #7c8b95;
  font-size: 9px;
  line-height: 1.3;
}

#ar-case .ar-telegram-header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

#ar-case .ar-telegram-header-actions button {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #71808a;
  font-family: Arial, sans-serif;
  font-size: 19px;
  line-height: 1;
  cursor: default;
}

#ar-case .ar-telegram-service {
  position: absolute;
  top: 74px;
  left: 50%;
  z-index: 5;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(104, 126, 139, 0.58);
  color: #ffffff;
  font-size: 8px;
  font-weight: 600;
  line-height: 1.3;
  transform: translateX(-50%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
}

#ar-case .ar-telegram-chat {
  position: relative;
  flex: 1 1 auto;
  min-height: 350px;
  max-height: 500px;
  padding: 34px 13px 14px;
  overflow-y: auto;
  background:
    radial-gradient(
      circle at 12px 12px,
      rgba(120, 156, 173, 0.08) 1.2px,
      transparent 1.5px
    ),
    radial-gradient(
      circle at 34px 30px,
      rgba(120, 156, 173, 0.06) 1px,
      transparent 1.3px
    ),
    linear-gradient(
      135deg,
      #dfe9ee,
      #e8f0f3
    );
  background-size:
    44px 44px,
    52px 52px,
    auto;
}

#ar-case .ar-telegram-chat::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0,
      transparent 18px,
      rgba(255, 255, 255, 0.16) 19px,
      transparent 20px
    );
}

#ar-case .ar-telegram-chat > * {
  position: relative;
  z-index: 1;
}

#ar-case .ar-telegram-chat .ar-chat-empty {
  min-height: 280px;
}

#ar-case .ar-telegram-empty-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 50%;
  background: #3390ec;
  color: #ffffff;
  font-size: 21px;
  transform: rotate(-12deg);
  box-shadow:
    0 8px 20px rgba(51, 144, 236, 0.2);
}

#ar-case .ar-telegram-chat .ar-chat-empty strong {
  margin-bottom: 5px;
  color: #51606a;
  font-size: 10px;
}

#ar-case .ar-telegram-chat .ar-chat-empty p {
  max-width: 260px;
  color: #71808a;
  font-size: 8px;
  line-height: 1.5;
}

#ar-case .ar-telegram-chat .ar-chat-message {
  position: relative;
  width: fit-content;
  max-width: 86%;
  margin: 0 auto 8px 0;
  padding: 8px 10px 6px;
  border: 0;
  border-radius: 5px 12px 12px 12px;
  background: #ffffff;
  box-shadow:
    0 1px 2px rgba(52, 72, 84, 0.16);
}

#ar-case .ar-telegram-chat .ar-chat-message::before {
  content: "";
  position: absolute;
  left: -6px;
  bottom: 0;
  width: 9px;
  height: 12px;
  background: #ffffff;
  clip-path:
    polygon(
      100% 0,
      100% 100%,
      0 100%
    );
}

#ar-case .ar-telegram-chat .ar-chat-message.manager {
  margin-right: 0;
  margin-left: auto;
  border-radius: 12px 5px 12px 12px;
  background: #e2ffc7;
}

#ar-case .ar-telegram-chat .ar-chat-message.manager::before {
  right: -6px;
  left: auto;
  background: #e2ffc7;
  clip-path:
    polygon(
      0 0,
      100% 100%,
      0 100%
    );
}

#ar-case .ar-telegram-chat .ar-chat-author {
  margin-bottom: 3px;
  color: #3390ec;
  font-family: var(--font-main, "Manrope", Arial, sans-serif);
  font-size: 8px;
  font-weight: 700;
}

#ar-case .ar-telegram-chat .ar-chat-message.manager .ar-chat-author {
  color: #4f8b36;
}

#ar-case .ar-telegram-chat .ar-chat-message p {
  color: #202b33;
  font-family: Arial, sans-serif;
  font-size: 9px;
  line-height: 1.48;
}

#ar-case .ar-telegram-chat .ar-chat-message p b {
  color: #172128;
  font-weight: 700;
}

#ar-case .ar-telegram-chat .ar-chat-meta {
  margin-top: 3px;
  color: #84939c;
  font-family: Arial, sans-serif;
  font-size: 6px;
  text-align: right;
}

#ar-case .ar-telegram-chat .ar-chat-message.manager .ar-chat-meta {
  color: #73a25f;
}

#ar-case .ar-telegram-inline-keyboard {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 6px 8px;
  border-top: 1px solid #dce5ea;
  background: #edf3f6;
}

#ar-case .ar-telegram-inline-keyboard button {
  min-height: 37px;
  padding: 7px 9px;
  border: 0;
  border-radius: 5px;
  background: #ffffff;
  color: #2481cc;
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: 600;
  box-shadow:
    0 1px 2px rgba(46, 66, 78, 0.08);
}

#ar-case .ar-telegram-inline-keyboard button:hover {
  transform: none;
  border: 0;
  background: #f7fafb;
  color: #1672b8;
  box-shadow:
    0 1px 3px rgba(46, 66, 78, 0.12);
}

#ar-case .ar-telegram-inline-keyboard .ar-action-primary {
  border: 0;
  background: #ffffff;
  color: #2481cc;
}

#ar-case .ar-telegram-composer {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px 34px;
  gap: 2px;
  min-height: 52px;
  padding: 6px 8px;
  align-items: center;
  border-top: 1px solid #dce5ea;
  background: #ffffff;
}

#ar-case .ar-telegram-composer button {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #7e8d96;
  font-family: Arial, sans-serif;
  font-size: 18px;
  cursor: default;
}

#ar-case .ar-telegram-input {
  min-width: 0;
  padding: 0 8px;
  color: #9aa6ad;
  font-family: Arial, sans-serif;
  font-size: 10px;
}

#ar-case .ar-telegram-mic {
  color: #3390ec !important;
  font-size: 13px !important;
}

@media (max-width: 760px) {
  #ar-case .ar-telegram-console {
    min-height: 480px;
  }

  #ar-case .ar-telegram-appbar {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    min-height: 57px;
    padding: 8px 9px;
  }

  #ar-case .ar-telegram-avatar {
    width: 38px;
    height: 38px;
  }

  #ar-case .ar-telegram-header-actions button {
    width: 30px;
    height: 30px;
  }

  #ar-case .ar-telegram-service {
    top: 67px;
  }

  #ar-case .ar-telegram-chat {
    min-height: 330px;
    padding-right: 9px;
    padding-left: 9px;
  }

  #ar-case .ar-telegram-chat .ar-chat-message {
    max-width: 92%;
  }

  #ar-case .ar-telegram-inline-keyboard {
    grid-template-columns: 1fr;
  }

  #ar-case .ar-telegram-composer {
    grid-template-columns: 30px minmax(0, 1fr) 30px 30px;
  }

  #ar-case .ar-telegram-composer button {
    width: 30px;
    height: 30px;
  }
}

#ar-case .ar-timewarp {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease;
}

#ar-case .ar-timewarp.is-visible {
  opacity: 1;
  visibility: visible;
}

#ar-case .ar-timewarp-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at center,
      rgba(13, 22, 18, 0.18) 0%,
      rgba(7, 13, 10, 0.42) 100%
    );
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

#ar-case .ar-timewarp-card {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  width: min(520px, calc(100vw - 32px));
  padding: 22px 22px 20px;
  border: 1px solid rgba(149, 207, 78, 0.3);
  border-radius: 22px;
  background:
    linear-gradient(
      145deg,
      rgba(9, 18, 14, 0.96),
      rgba(12, 25, 18, 0.96)
    );
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(160, 231, 78, 0.08) inset;
  transform: scale(0.94);
  transition: transform 0.22s ease;
}

#ar-case .ar-timewarp.is-visible .ar-timewarp-card {
  transform: scale(1);
}

#ar-case .ar-timewarp-clock {
  position: relative;
  width: 120px;
  height: 120px;
}

#ar-case .ar-timewarp-clock-face {
  position: relative;
  width: 120px;
  height: 120px;
  border: 2px solid rgba(164, 233, 86, 0.55);
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 30% 30%,
      rgba(255, 255, 255, 0.08),
      transparent 42%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.03),
      rgba(255, 255, 255, 0.01)
    ),
    #101b14;
  box-shadow:
    0 0 0 8px rgba(112, 191, 57, 0.08),
    0 14px 30px rgba(0, 0, 0, 0.24);
}

#ar-case .ar-timewarp-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 12px;
  border-radius: 999px;
  background: rgba(207, 244, 168, 0.78);
  transform-origin: center -44px;
}

#ar-case .ar-timewarp-mark-12 {
  transform: translate(-50%, -50%) rotate(0deg);
}

#ar-case .ar-timewarp-mark-3 {
  transform: translate(-50%, -50%) rotate(90deg);
}

#ar-case .ar-timewarp-mark-6 {
  transform: translate(-50%, -50%) rotate(180deg);
}

#ar-case .ar-timewarp-mark-9 {
  transform: translate(-50%, -50%) rotate(270deg);
}

#ar-case .ar-timewarp-hand {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  border-radius: 999px;
  transform-origin: 50% calc(100% - 6px);
}

#ar-case .ar-timewarp-hand-hour {
  width: 4px;
  height: 26px;
  background: #d6f7b1;
  margin-left: -2px;
  margin-top: -20px;
  animation: arTimewarpHour 1.12s linear infinite;
}

#ar-case .ar-timewarp-hand-minute {
  width: 3px;
  height: 38px;
  background: #9ee85d;
  margin-left: -1.5px;
  margin-top: -32px;
  animation: arTimewarpMinute 0.52s linear infinite;
}

#ar-case .ar-timewarp-hand-second {
  width: 2px;
  height: 44px;
  background: #ffffff;
  margin-left: -1px;
  margin-top: -38px;
  animation: arTimewarpSecond 0.22s linear infinite;
}

#ar-case .ar-timewarp-clock-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #8fe33f;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 16px rgba(160, 231, 78, 0.38);
}

#ar-case .ar-timewarp-rings {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
}

#ar-case .ar-timewarp-rings::before,
#ar-case .ar-timewarp-rings::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(161, 229, 83, 0.28);
  border-radius: 50%;
  animation: arTimewarpPulse 1.15s ease-out infinite;
}

#ar-case .ar-timewarp-rings::after {
  animation-delay: 0.38s;
}

#ar-case .ar-timewarp-text strong {
  display: block;
  margin-bottom: 8px;
  color: #f4fff0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}

#ar-case .ar-timewarp-text p {
  margin: 0;
  color: rgba(236, 247, 232, 0.78);
  font-size: 14px;
  line-height: 1.55;
}

@keyframes arTimewarpHour {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(1080deg);
  }
}

@keyframes arTimewarpMinute {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(2160deg);
  }
}

@keyframes arTimewarpSecond {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(4320deg);
  }
}

@keyframes arTimewarpPulse {
  0% {
    transform: scale(0.86);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}

@media (max-width: 760px) {
  #ar-case .ar-timewarp-card {
    grid-template-columns: 1fr;
    gap: 14px;
    width: min(360px, calc(100vw - 24px));
    padding: 18px 16px;
    text-align: center;
  }

  #ar-case .ar-timewarp-clock {
    margin: 0 auto;
    width: 104px;
    height: 104px;
  }

  #ar-case .ar-timewarp-clock-face {
    width: 104px;
    height: 104px;
  }

  #ar-case .ar-timewarp-text strong {
    font-size: 19px;
  }

  #ar-case .ar-timewarp-text p {
    font-size: 13px;
  }
}
