.whichai-shell { width: min(calc(100% - 2rem), 1050px); margin: 2.5rem auto 4rem; }
.whichai-heading { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.whichai-heading h1 { font-size: clamp(3rem, 7vw, 4.4rem); margin-bottom: .8rem; }
.whichai-heading p:not(.eyebrow) { max-width: 680px; margin-bottom: 0; color: var(--muted); }
button, .whichai-shell .secondary { font: 750 .88rem/1.4 system-ui, sans-serif; padding: .7rem 1rem; border: 1px solid transparent; border-radius: .65rem; cursor: pointer; color: #fff; background: var(--blue); text-decoration: none; display: inline-block; text-align: center; }
button:hover:not(:disabled) { background: var(--blue-dark); }
button:disabled { opacity: .5; cursor: wait; }
.whichai-shell .secondary { color: var(--blue-dark); background: #fff; border-color: var(--line); }
.whichai-shell .secondary:hover:not(:disabled) { background: var(--blue-soft); }
.document-card, .followup-card { padding: clamp(1rem, 3vw, 1.7rem); border-radius: 1rem; border: 1px solid var(--line); background: #fff; }
.document-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.whichai-shell h2 { font: 750 1.2rem/1.4 system-ui, sans-serif; letter-spacing: -.02em; }
.document-top > span, .muted { color: var(--muted); font-size: .86rem; }
.whichai-shell label:not(.file-label) { display: block; margin-bottom: .5rem; font-size: .88rem; font-weight: 700; }
.whichai-shell textarea { display: block; width: 100%; min-width: 0; padding: .85rem; border: 1px solid #aab1c6; border-radius: .55rem; font: 400 1rem/1.55 system-ui, sans-serif; resize: vertical; color: var(--ink); background: #fff; }
.whichai-shell textarea:focus-visible, button:focus-visible, .file-label:focus-within, .whichai-shell a:focus-visible { outline: 3px solid #a9b8ff; outline-offset: 3px; }
.document-actions, .followup-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; margin: 1rem 0; }
.document-actions { font-size: .85rem; color: var(--muted); }
.file-label { text-decoration: underline; color: var(--blue); font-weight: 750; cursor: pointer; }
#source-file { max-width: 100%; font-size: .8rem; }
.privacy-note { margin: 1rem 0 0; color: var(--muted); font-size: .77rem; max-width: 860px; }
.status { padding: .8rem 0; margin: 0; color: var(--muted); min-height: 3rem; font-size: .9rem; }
.status.error { color: #8c2424; font-weight: 700; }
.message { margin: 0 0 1.2rem; padding: 1.5rem; border-radius: 1rem; border: 1px solid var(--line); background: #fff; overflow-wrap: anywhere; }
.message.user { max-width: 88%; margin-left: auto; background: #edf0ff; white-space: pre-wrap; }
.message h2 { margin: 1.6rem 0 .7rem; color: var(--blue-dark); }
.message h2:first-child { margin-top: 0; }
.message h3 { font-size: 1rem; margin: 1.3rem 0 .4rem; }
.message .evidence { color: var(--muted); font-size: .8rem; }
.message .component { padding-bottom: .4rem; border-bottom: 1px solid #eceef5; }
.message li { margin-bottom: .6rem; }
.message pre { overflow-x: auto; background: #101b43; color: #eff2ff; padding: 1rem; border-radius: .6rem; font-size: .78rem; }
.message details { margin-bottom: 1.5rem; }
.message summary { cursor: pointer; color: var(--blue); font-size: .88rem; font-weight: 700; }
.results-table { overflow-x: auto; }
.results-table table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.results-table th, .results-table td { text-align: left; padding: .65rem; border: 1px solid var(--line); }
.results-table th { background: #edf0ff; }
.revision { font-size: .77rem; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: .65rem; }
.whichai-shell .quiet-danger { background: #fff; color: #8c2424; border-color: #e7cccc; margin-left: auto; }
.whichai-shell .quiet-danger:hover { color: #fff; background: #8c2424; }
.whichai-footer { color: var(--muted); font-size: .82rem; margin-top: 1.6rem; }
[hidden] { display: none !important; }
@media (max-width: 600px) { .whichai-shell { width: calc(100% - 1.25rem); margin-top: 1.5rem; } .whichai-heading { align-items: flex-start; flex-direction: column; } .document-top { flex-direction: column; gap: .2rem; margin-bottom: 1rem; } .document-top h2 { margin-bottom: 0; } .message { padding: 1rem; } .message.user { max-width: 95%; } .followup-actions { align-items: stretch; } .whichai-shell .quiet-danger { margin-left: 0; } }
