:root { color-scheme: light; --ink: #20292e; --muted: #617378; --teal: #08766d; --line: #dce5e3; }
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--ink); font: 18px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
main { width: min(1440px, 100%); margin: auto; padding: 18px 36px 20px; }
header { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
h1 { margin: 0; font-size: 35px; font-weight: 650; line-height: 1.2; letter-spacing: -.025em; }
header p { margin: 6px 0 0; color: var(--muted); }
h2 { margin: 0; font-size: 19px; font-weight: 600; }
button { min-height: 44px; padding: 8px 19px; font: inherit; color: inherit; background: white; border: 1px solid #bccac9; border-radius: 5px; cursor: pointer; }
button:hover:not(:disabled) { background: #edf6f4; }
button.primary { color: #fff; background: var(--teal); border-color: var(--teal); }
button.primary:hover:not(:disabled) { background: #075d56; }
button:disabled { opacity: .45; cursor: default; }
:focus-visible { outline: 3px solid #427dba; outline-offset: 3px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px 25px; padding: 17px 0; }
.buttons { display: flex; gap: 9px; }
#status { margin: 0; color: var(--muted); font-size: 16px; }
#status[data-state="error"] { color: #a42d25; }
.workspace { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.code-panel, .result-panel { min-width: 0; }
.code-panel { padding-right: 28px; border-right: 1px solid var(--line); }
.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 10px; }
.section-title span { font-size: 14px; color: var(--muted); white-space: nowrap; }
code, pre, textarea { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
textarea { display: block; width: 100%; min-height: 478px; resize: vertical; padding: 13px 14px; font-size: 17px; line-height: 1.4; color: var(--ink); background: #f8faf9; border: 1px solid #c8d5d1; border-radius: 5px; white-space: pre; tab-size: 4; overflow: auto; }
textarea:disabled { opacity: .8; }
.hint { margin: 9px 0 0; font-size: 16px; color: var(--muted); }
.try { margin: 5px 0 0; font-size: 16px; }
.try code { color: var(--teal); font-size: 15px; }
.ruler-view { margin: 12px 0 22px; min-height: 190px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.ruler-view p { color: var(--muted); font-size: 18px; margin: 65px 5px; }
.ruler-view svg { display: block; height: 190px; max-width: none; }
.output-title { margin-top: 8px; }
#stdout { min-height: 100px; max-height: 270px; overflow: auto; margin: 10px 0; font-size: 21px; line-height: 1.4; white-space: pre; }
#error { margin: 12px 0; padding: 12px 14px; color: #8d2b25; background: #fff5f3; border-left: 3px solid #b7473b; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); margin-top: 20px; padding-top: 12px; color: var(--muted); font-size: 14px; }
[hidden] { display: none !important; }
@media (min-width: 1500px) { textarea { font-size: 19px; min-height: 532px; } }
@media (max-width: 1100px) { main { padding-inline: 24px; } .workspace { gap: 22px; } .code-panel { padding-right: 22px; } textarea { font-size: 15px; min-height: 435px; } .section-title { align-items: start; flex-direction: column; gap: 2px; } }
@media (max-width: 800px) { main { padding: 18px; } h1 { font-size: 29px; } header p { font-size: 17px; } .toolbar { flex-wrap: wrap; } .workspace { grid-template-columns: 1fr; } .code-panel { padding-right: 0; border-right: 0; padding-bottom: 20px; border-bottom: 1px solid var(--line); } .section-title { flex-direction: row; align-items: baseline; } button { padding-inline: 14px; } .ruler-view { min-height: 160px; } }
