.cq-screen,.cq-dialog{--rose:#b81863;--soft:#fdf1f6;--ink:#26242a;--muted:#625c66;--line:#e6e2e7;color:var(--ink)}
.cq-screen{padding-top:12px}
.cq-screen.cq-students,.cq-dialog.cq-students{--rose:#8e3158;--soft:#f7f3f5}
.cq-screen *,.cq-dialog *{box-sizing:border-box}
.cq-heading{display:flex;justify-content:space-between;gap:14px;align-items:start}
.cq-eyebrow{font-size:11px;letter-spacing:1.4px;text-transform:uppercase;color:var(--rose);font-weight:750;margin:0 0 7px}
.cq-heading h2{font-size:31px;letter-spacing:-.8px;line-height:1.15;margin:0}
.cq-intro{color:var(--muted);line-height:1.65;font-size:14px;margin:10px 0 16px}
.cq-icon{height:48px;width:48px;border-radius:50%;display:grid;place-items:center;background:var(--soft);color:var(--rose);font-size:30px;flex-shrink:0}
.cq-students .cq-icon{border-radius:13px;background:#f0ecef;border:1px solid #ded6dc}
.cq-page-status{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:0 0 12px;color:var(--muted);font-size:11px;line-height:1.5}
.cq-page-status button,.cq-textbutton{font:inherit;font-size:12px;font-weight:650;cursor:pointer;background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px 12px;color:var(--rose);min-height:44px}
.cq-counts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 15px}
.cq-count{border:1px solid var(--line);border-radius:14px;padding:13px 16px;display:flex;align-items:center;gap:12px}
.cq-count:first-child{background:var(--soft);border-color:#f0d2e0}
.cq-students .cq-count:first-child{border-color:#ddd4da;background:#f3f0f2}
.cq-count b{font-size:28px;font-weight:700;letter-spacing:-.8px}
.cq-count span{font-size:12px;line-height:1.5;color:#55515a}
.cq-count strong{display:block;color:var(--ink);font-size:12px}
.cq-filters{display:flex;gap:6px;flex-wrap:wrap;margin:18px 0 12px}
.cq-filters button{font:inherit;font-size:12px;font-weight:650;cursor:pointer;background:#fff;border:1px solid #ddd9df;border-radius:999px;padding:10px 12px;color:#55515a;min-height:44px}
.cq-filters button[aria-pressed=true]{background:var(--rose);border-color:var(--rose);color:#fff}
.cq-students .cq-filters button[aria-pressed=true]{background:#4b444b;border-color:#4b444b}
.cq-search{width:100%;border:1px solid #ddd9df;border-radius:12px;padding:12px 14px;font:inherit;font-size:16px;margin:0 0 18px;background:#fff;color:var(--ink);min-height:46px}
.cq-screen button:focus-visible,.cq-dialog button:focus-visible,.cq-screen a:focus-visible,.cq-dialog a:focus-visible,.cq-screen summary:focus-visible,.cq-search:focus,.cq-dialog textarea:focus,.cq-dialog input:focus,.cq-dialog select:focus{outline:2px solid var(--rose);outline-offset:3px}
.cq-section-label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:5px 0 12px;font-size:11px;text-transform:uppercase;font-weight:750;letter-spacing:1px;color:var(--muted)}
.cq-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;margin-bottom:14px;box-shadow:0 3px 12px #22152504;min-width:0}
.cq-students .cq-card{border-radius:12px;border-top:3px solid #ddbdcc}
.cq-card-head{display:flex;justify-content:space-between;align-items:start;gap:12px}
.cq-person{display:flex;gap:11px;align-items:center;min-width:0}
.cq-avatar{display:grid;place-items:center;width:40px;height:40px;background:var(--soft);border-radius:50%;font-size:13px;font-weight:750;color:var(--rose);flex-shrink:0}
.cq-students .cq-avatar{border-radius:9px;background:#f0ecef;color:#5e4a56}
.cq-person h3{font-size:17px;margin:0 0 4px;letter-spacing:-.2px;overflow-wrap:anywhere;line-height:1.35}
.cq-phone{font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.cq-phone a{color:var(--rose);display:inline-flex;align-items:center;min-height:44px;text-underline-offset:3px;font-weight:600}
.cq-age{background:var(--soft);color:var(--rose);font-size:11px;white-space:nowrap;font-weight:700;padding:6px 8px;border-radius:8px}
.cq-age.earlier{background:#f3f2f4;color:#625c66}
.cq-source{font-size:11px;color:var(--muted);margin:16px 0 6px;font-weight:650;line-height:1.6}
.cq-summary{font-size:14px;line-height:1.65;margin:0;color:#28252d;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
.cq-proof{font-size:11px;color:var(--muted);line-height:1.5;margin:10px 0 0}
.cq-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}
.cq-actions button,.cq-message-tools button,.cq-secondary{font:inherit;font-size:13px;font-weight:700;border:1px solid #ded8df;border-radius:11px;padding:12px 10px;background:#fff;color:#403b46;cursor:pointer;min-height:46px;overflow-wrap:anywhere;line-height:1.35}
.cq-actions .cq-primary{background:var(--rose);color:#fff;border-color:var(--rose)}
.cq-screen button:disabled,.cq-dialog button:disabled{opacity:.48;cursor:default}
.cq-inquiry{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:46px;margin-top:12px;border:0;border-top:1px solid #eee8ed;background:transparent;color:var(--rose);font:inherit;font-size:12px;font-weight:700;cursor:pointer;text-align:left;padding:12px 0 0;line-height:1.5}
.cq-inquiry span{font-size:17px}
.cq-rules{margin-top:20px;border-top:1px solid var(--line);padding-top:7px;font-size:12px;line-height:1.7;color:var(--muted)}
.cq-rules summary{cursor:pointer;min-height:44px;font-weight:700;color:#37313d;padding:12px 0}
.cq-rules p{margin:0 0 10px}
.cq-empty{text-align:center;background:#f7f5f7;border-radius:16px;padding:30px 18px;font-size:14px;line-height:1.6;color:var(--muted)}
.cq-empty h3{color:var(--ink);margin:0 0 7px;font-size:17px}
.cq-history{margin-top:12px;background:#f7f5f7;border-radius:10px;padding:10px;font-size:12px;line-height:1.6;color:var(--muted);overflow-wrap:anywhere}
.cq-draft-state{margin:10px 0 0;font-size:11px;line-height:1.5;color:var(--rose);font-weight:650}
.cq-learning{border:1px solid #ead7e1;border-radius:12px;padding:14px 16px;margin-top:20px;background:var(--soft);font-size:12px;line-height:1.6}
.cq-learning strong{color:var(--rose);font-size:12px}
.cq-learning p{margin:4px 0 0;color:var(--muted)}
.cq-dialog{background:#fff;border:1px solid #e4dde6;border-radius:20px;padding:24px;width:calc(100% - 32px);max-width:580px;max-height:88dvh;overflow:auto;color:var(--ink);box-shadow:0 20px 80px #25172b26;overscroll-behavior:contain;margin:auto;font-family:inherit}
.cq-dialog::backdrop{background:#22192370}
.cq-dialog h2{font-size:23px;margin:0 0 8px;line-height:1.3;letter-spacing:-.4px}
.cq-dialog h3{font-size:15px;margin:20px 0 10px}
.cq-dialog p{font-size:13px;line-height:1.65;color:var(--muted);overflow-wrap:anywhere}
.cq-dialog .cq-eyebrow{font-size:10px;color:var(--rose)}
.cq-modal-head{display:flex;align-items:start;justify-content:space-between;gap:12px}
.cq-modal-head>button{width:44px;height:44px;border:1px solid var(--line);border-radius:50%;background:#fff;font-size:24px;line-height:1;color:var(--muted);cursor:pointer;flex-shrink:0}
.cq-dialog label{font-size:13px;font-weight:650;display:block;margin:17px 0 7px;line-height:1.5}
.cq-dialog select,.cq-dialog textarea,.cq-dialog input{width:100%;border:1px solid #dcd5df;border-radius:10px;padding:12px;font:inherit;font-size:16px;background:#fff;color:var(--ink);min-height:46px}
.cq-dialog textarea{min-height:90px;resize:vertical;line-height:1.65}
.cq-dialog textarea.cq-message-text{min-height:210px;font-size:15px;line-height:1.75}
.cq-dialog textarea[readonly]{background:#fbfafb;border-color:#e6e0e6;color:#36303a}
.cq-notice{padding:12px 14px;border:1px solid #ecd4e0;border-radius:10px;background:var(--soft);font-size:12px;line-height:1.65;color:#74324f;margin:0 0 16px;overflow-wrap:anywhere}
.cq-error{color:#8e244a;background:#fff2f6;border-color:#e4becd}
.cq-saved{margin:12px 0 8px;font-size:12px;font-weight:650;color:#70435c;line-height:1.65;overflow-wrap:anywhere}
.cq-saved:empty{display:none}
.cq-saved.cq-error{padding:10px;border-radius:9px}
.cq-player{background:#f6f4f6;border:1px solid var(--line);padding:16px;border-radius:12px;margin:12px 0}
.cq-player p{margin:8px 0 0;font-size:12px}
.cq-player audio{width:100%;display:block;max-width:100%}
.cq-audio-status{font-size:12px;color:var(--muted);line-height:1.6;margin-top:8px}
.cq-audio-status:empty{display:none}
.cq-transcript,.cq-confirm-message{margin:14px 0;padding:15px;border-left:3px solid #ddb5c8;background:#faf7f9;font-size:14px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}
.cq-transcript-lines{padding:2px 14px;background:#faf8fa;border:1px solid var(--line);border-radius:10px}
.cq-transcript-lines p{white-space:pre-wrap;margin:14px 0}
.cq-transcript-lines strong{font-size:12px;color:#39313c}
.cq-transcript-lines span{color:var(--muted);font-size:11px}
.cq-contact-link{display:inline-flex;align-items:center;min-height:44px;color:var(--rose);font-size:13px;font-weight:650;margin-top:12px}
.cq-inquiry-note{background:var(--soft);border-radius:12px;padding:12px 14px;margin:14px 0}
.cq-inquiry-note>strong{color:var(--rose);font-size:11px}
.cq-inquiry-note p{margin:5px 0 0;font-size:12px;max-height:140px;overflow:auto;white-space:pre-wrap}
.cq-message-status{font-size:12px;font-weight:650;padding:10px 0;line-height:1.55;color:#625465}
.cq-message-status.cq-error{padding:10px 12px;border-radius:10px}
.cq-message-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:12px 0}
.cq-message-tools button{padding:10px 6px;font-size:12px}
.cq-dialog .cq-learning-note,.cq-dialog .cq-sources,.cq-dialog .cq-send-note{font-size:11px;line-height:1.6;color:var(--muted)}
.cq-dialog .cq-send-note{text-align:center;margin:12px 0 0}
.cq-sources a{color:var(--rose);text-underline-offset:3px}
.cq-recipient{border:1px solid #e7d2dd;background:var(--soft);border-radius:12px;padding:16px;margin-top:16px;display:grid;gap:5px}
.cq-recipient span{font-size:11px;color:var(--muted)}
.cq-recipient strong{font-size:18px;overflow-wrap:anywhere}
.cq-recipient b{font-size:15px;font-weight:650;color:var(--rose)}
@media(min-width:740px){.cq-dialog{padding:28px}.cq-card{padding:20px}.cq-count{padding:15px 18px}}
@media(min-width:900px){main#app:has(>.cq-screen:not(.hidden)){max-width:1032px}.cq-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}.cq-card{margin-bottom:0}.cq-cards>.cq-empty{grid-column:1/-1}.cq-counts{max-width:560px}.cq-search{max-width:600px}.cq-intro{font-size:15px}}
@media(max-width:430px){.cq-dialog{padding:20px 16px;width:calc(100% - 20px);border-radius:16px;max-height:92dvh}.cq-message-tools{grid-template-columns:1fr 1fr}.cq-dialog h2{font-size:21px}.cq-count{padding:12px;gap:9px}.cq-heading h2{font-size:28px}}
@media(max-width:370px){.cq-card{padding:14px}.cq-person{gap:8px}.cq-avatar{width:32px;height:32px}.cq-person h3{font-size:15px}.cq-age{font-size:10px}.cq-filters{gap:5px}.cq-filters button{padding:10px 9px;font-size:11px}.cq-count b{font-size:25px}.cq-count strong,.cq-count span{font-size:11px}.cq-actions button{font-size:12px}}
@media(prefers-reduced-motion:reduce){.cq-screen *,.cq-dialog *{scroll-behavior:auto}}
