:root { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #192f3d; background: #f3f6f8; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 1360px; padding: 42px 32px 24px; margin: auto; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: #267568; }
.eyebrow span { display: inline-block; margin-left: 12px; border: 1px solid #bdd8d2; border-radius: 20px; padding: 4px 9px; letter-spacing: 0; }
h1 { font-size: 32px; margin: 15px 0 8px; letter-spacing: -.7px; }
header p { color: #637683; margin: 0 0 22px; }
.notice { font-size: 13px; line-height: 1.7; background: #eaf3ef; border-left: 3px solid #5c9688; padding: 11px 16px; margin-bottom: 24px; border-radius: 4px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 22px; align-items: start; }
.card { background: white; border: 1px solid #dfe6ec; border-radius: 14px; padding: 24px; box-shadow: 0 4px 24px #19324604; min-width: 0; }
h2 { font-size: 17px; margin: 0 0 22px; }
label { display: block; font-size: 13px; font-weight: 600; margin: 16px 0 9px; }
input, textarea { font: inherit; width: 100%; border: 1px solid #cad5dd; border-radius: 7px; padding: 11px 12px; background: #fcfdfe; color: #233743; }
input { font-size: 14px; }
textarea { min-height: 360px; resize: vertical; font-size: 14px; line-height: 1.7; }
input:focus, textarea:focus, button:focus-visible, summary:focus-visible { outline: 3px solid #c3e2db; outline-offset: 1px; border-color: #498e7f; }
.hint { color: #657580; font-size: 12px; line-height: 1.7; margin: 8px 0 18px; }
.editor-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; font-size: 11px; color: #768590; margin: 8px 0 18px; }
.actions { display: flex; gap: 10px; }
button { border: 0; border-radius: 7px; padding: 12px 22px; font: inherit; font-size: 14px; font-weight: 600; background: #246e61; color: white; cursor: pointer; }
button:hover { background: #1b574d; }
button.secondary { background: #eef2f5; color: #435966; }
button:disabled { opacity: .55; cursor: wait; }
#message { min-height: 24px; font-size: 12px; line-height: 1.6; margin: 15px 0 0; color: #647681; }
#message.error { color: #b04435; }
.result { min-height: 580px; }
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 460px; color: #738691; text-align: center; }
.empty-icon { display: block; color: #8ba89f; border: 1px dashed #c5d5d0; border-radius: 12px; font: 28px Georgia, serif; padding: 16px; margin: 20px; }
.empty p { margin: 0 0 10px; }
.empty small { font-size: 12px; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; padding: 18px 20px; background: #f4f8f6; border: 1px solid #e2ece7; border-radius: 9px; gap: 24px; }
.metric-label { display: block; font-size: 12px; color: #697e74; margin-bottom: 8px; }
.metrics strong { display: block; font-size: 35px; letter-spacing: -1px; color: #235f52; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: #485f6d; margin: 18px 0 12px; }
.legend small { display: block; width: 100%; font-size: 11px; color: #72848f; line-height: 1.6; }
.dot { width: 10px; height: 10px; border-radius: 2px; background: #bce8df; }
.highlighted { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.85; max-height: 530px; overflow-y: auto; padding: 16px; border: 1px solid #e2e8ec; border-radius: 8px; }
mark { background: #c4ece3; color: inherit; border-radius: 2px; padding: 2px 0; }
details { margin-top: 16px; font-size: 12px; }
summary { cursor: pointer; color: #326b5e; padding: 5px 0; }
ol { padding-left: 24px; max-height: 240px; overflow: auto; }
li { white-space: pre-wrap; overflow-wrap: anywhere; margin: 12px 0; line-height: 1.7; }
footer { font-size: 11px; color: #798a96; line-height: 1.8; margin-top: 24px; text-align: center; }
[hidden] { display: none !important; }
@media (max-width: 760px) { main { padding: 24px 16px; } .workspace { grid-template-columns: 1fr; } .card { padding: 20px; } textarea { min-height: 260px; } .result { min-height: 300px; } .empty { min-height: 230px; } h1 { font-size: 28px; } .metrics strong { font-size: 30px; } }
