
.cu { margin: clamp(20px, 3vw, 32px) auto clamp(16px, 2vw, 28px); max-width: 1100px; }
.cu-line { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap;
  padding: 16px 16px 16px clamp(18px, 2.4vw, 28px); border: 1px solid var(--hair); border-radius: 999px; background: var(--card); }
.cu-text { margin: 0; min-width: 0; flex: 1 1 320px; color: var(--muted); font-size: 16px; line-height: 1.45; }
.cu-text b { color: var(--ink); font-weight: 600; }
.cu-tag { display: inline-block; margin-right: 6px; padding: 3px 10px; border-radius: 999px; background: var(--baby-2); color: var(--accent-ink);
  font-size: 12px; font-weight: 600; letter-spacing: .02em; vertical-align: 1px; }
.cu-open { flex: none; }
.cu.is-open .cu-line { border-color: var(--baby-deep); }

.cu-panel { margin-top: 14px; }
.cu-panel[hidden] { display: none; }
.motion .cu-panel:not([hidden]) { animation: cu-in .45s var(--ease) both; }
@keyframes cu-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cu-card { position: relative; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 64px);
  padding: clamp(24px, 4vw, 52px); border: 1px solid var(--hair); border-radius: calc(var(--r) + 6px); background: var(--card); box-shadow: var(--shadow); text-align: left; }
.cu-main { display: grid; gap: 14px; align-content: start; justify-items: start; min-width: 0; }
.cu-main .eyebrow { margin-bottom: 0; }
.cu-title { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -.02em; outline: none; }
.cu-lead { color: var(--muted); font-size: 17px; line-height: 1.5; max-width: 40ch; margin: 0; }
.cu-safe { color: var(--muted); font-size: 14px; line-height: 1.5; max-width: 46ch; margin: 0; }
.cu-safe a, .cu-closed a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--baby-deep); text-underline-offset: 3px; }
.cu-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 1px solid var(--hair); border-radius: 50%; background: var(--card); color: var(--muted); cursor: pointer; }
.cu-close::before, .cu-close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.6px; margin: -.8px 0 0 -7px; background: currentColor; border-radius: 1px; transform: rotate(45deg); }
.cu-close::after { transform: rotate(-45deg); }
.cu-close:hover { color: var(--ink); border-color: var(--muted); }
.cu-close:focus-visible, .cu-chip:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.cu-side { min-width: 0; }

.cu-form { display: grid; gap: 16px; }
.cu-form[hidden], .cu-closed[hidden], .cu-done[hidden] { display: none; }
.cu-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: end; }
.cu-field { display: grid; gap: 8px; align-content: start; font-size: 14px; font-weight: 500; min-width: 0; margin: 0; padding: 0; border: 0; }
.cu-field legend { padding: 0; margin-bottom: 8px; }
.cu-field input, .cu-field select, .cu-field textarea { width: 100%; min-width: 0; padding: 13px 14px; border: 1px solid var(--hair); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; font-size: 16px; font-weight: 400; transition: border-color .2s, box-shadow .2s; }
.cu-field select { appearance: none; -webkit-appearance: none; padding-right: 36px; text-overflow: ellipsis; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.cu-field textarea { resize: vertical; min-height: 92px; line-height: 1.5; }
.cu-field input:focus, .cu-field select:focus, .cu-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--baby-2); }
.cu-field .bad, .cu-langs.bad .cu-chip { border-color: #d0433f; }
.cu-err { font-style: normal; font-size: 13px; font-weight: 400; color: #c0342f; }
.cu-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cu-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--hair); border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .2s, border-color .2s; }
.cu-chip input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.cu-chip:has(input:checked) { background: var(--baby-3); border-color: var(--baby-deep); }
.cu-form .btn { justify-self: start; margin-top: 4px; }
.cu-closed, .cu-done { display: grid; gap: 12px; align-content: center; justify-items: start; padding: clamp(22px, 3vw, 32px); border-radius: var(--r); background: var(--baby-3); border: 1px solid var(--hair); min-height: 200px; }
.cu-closed h4, .cu-done h4 { font-size: clamp(20px, 1.8vw, 24px); letter-spacing: -.01em; }
.cu-closed p, .cu-done p { color: var(--muted); margin: 0; }
.cu-done:focus { outline: none; }
.cu-done .check { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); position: relative; }
.cu-done .check::after { content: ""; position: absolute; left: 14px; top: 9px; width: 9px; height: 17px; border: solid var(--on-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

@media (max-width: 1024px) {
  .cu-card { grid-template-columns: minmax(0, 1fr); }
  .cu-main { padding-right: 44px; }
}
@media (max-width: 640px) {
  .cu-line { border-radius: var(--r); padding: 18px; }
  .cu-open { width: 100%; }
  .cu-card { padding: 22px 18px; border-radius: var(--r); }
  .cu-two { grid-template-columns: minmax(0, 1fr); }
  .cu-form .btn { width: 100%; justify-self: stretch; white-space: normal; text-align: center; }
}
