.request-sketch {
  position: relative;
  margin: 4px 2px 18px;
  padding: 12px 13px 11px;
  color: #24425d;
  background: #f8fbff;
  border: 2px solid #5d91d4;
  border-radius: 13px 9px 14px 8px;
  box-shadow: 3px 4px 0 rgba(93, 145, 212, 0.16);
  transform: rotate(-0.35deg);
}

.request-sketch::before,
.request-sketch::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.request-sketch::before {
  inset: -6px -5px -5px -6px;
  border: 1px dashed rgba(196, 79, 68, 0.7);
  border-radius: 10px 15px 8px 16px;
  transform: rotate(0.8deg);
}

.request-sketch::after {
  width: 44px;
  height: 9px;
  right: 18px;
  top: -7px;
  background: rgba(255, 201, 87, 0.62);
  border-radius: 48% 42% 55% 45%;
  transform: rotate(4deg);
}

.request-doodle {
  position: absolute;
  left: -24px;
  top: 27px;
  color: #c44f44;
  font: 700 2rem/1 "Segoe Print", cursive;
  transform: rotate(16deg);
}

.request-sketch-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.request-sketch-title span {
  font: 700 0.82rem "Segoe Print", "Bradley Hand", cursive;
}

.request-sketch-title b {
  padding: 3px 6px;
  color: #2b685d;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  background: rgba(81, 214, 177, 0.24);
  border-radius: 4px;
}

.request-sketch pre {
  max-width: 100%;
  margin: 0;
  padding: 10px;
  overflow: auto;
  color: #dcecff;
  font: 500 0.66rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #173550;
  border-radius: 7px;
}

.request-sketch p {
  margin: 8px 2px 0;
  color: #62788b;
  font-size: 0.67rem;
  line-height: 1.45;
}

.request-sketch p strong { color: #c44f44; }
.request-sketch p code { font: 700 0.65rem ui-monospace, SFMono-Regular, Consolas, monospace; }

.request-sketch.sent {
  animation: request-sent 0.65s ease both;
}

.request-sketch.sent .request-sketch-title b {
  color: #fff;
  background: #16865c;
}

@keyframes request-sent {
  0%, 100% { transform: rotate(-0.35deg) scale(1); }
  40% { transform: rotate(0.2deg) scale(1.018); box-shadow: 0 0 0 7px rgba(96, 213, 174, 0.16); }
}

@media (max-width: 640px) {
  .request-doodle { display: none; }
  .request-sketch { margin-left: 0; margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .request-sketch.sent { animation: none; }
}

.cors-doodle {
  position: relative;
  display: grid;
  gap: 10px;
  margin: 5px 5px 20px 18px;
  padding: 11px 12px 11px 16px;
  color: #654a18;
  background: rgba(255, 246, 223, 0.82);
  border-left: 5px solid #e3a329;
  border-radius: 4px 12px 9px 5px;
  box-shadow: 2px 3px 0 rgba(227, 163, 41, 0.12);
  font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  transform: rotate(0.45deg);
}

.cors-doodle::after {
  content: "✦";
  position: absolute;
  right: 8px;
  top: -13px;
  color: #e86d5f;
  font-size: 1.45rem;
  transform: rotate(13deg);
}

.cors-doodle-arrow {
  position: absolute;
  left: -31px;
  top: -9px;
  color: #d58b13;
  font-size: 2.2rem;
  font-weight: 700;
  transform: rotate(16deg);
}

.cors-doodle strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.78rem;
}

.cors-doodle p {
  margin: 0;
  color: #746447;
  font-size: 0.67rem;
  line-height: 1.5;
}

.cors-doodle a {
  justify-self: start;
  padding: 7px 10px;
  color: #fff;
  font: 700 0.68rem "DM Sans", sans-serif;
  text-decoration: none;
  background: #173550;
  border: 2px solid #fff;
  border-radius: 6px 9px 7px 8px;
  box-shadow: 2px 3px 0 rgba(23, 53, 80, 0.18);
  transform: rotate(-0.7deg);
  transition: transform 0.18s ease, background 0.18s ease;
}

.cors-doodle a:hover,
.cors-doodle a:focus-visible {
  background: #24506f;
  transform: rotate(0deg) translateY(-1px);
}

@media (max-width: 640px) {
  .cors-doodle { margin-left: 0; }
  .cors-doodle-arrow { display: none; }
}
