:root {
  font: 15px/1.5 "Segoe UI", system-ui, sans-serif;
  color: #182741;
  background: #f2f5fa;
  --blue: #2454ba;
  --line: #d8e1ee;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; border-bottom: 1px solid var(--line); background: #fff; padding: 16px max(18px, calc((100vw - 1040px) / 2)); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; font-weight: 750; }
main { max-width: 1076px; margin: 25px auto; padding: 0 18px; }
#status { color: #4d607c; min-height: 23px; margin: 0 0 12px; white-space: pre-wrap; }
#status.error { color: #a8293c; }
.error { color: #a8293c; }
#workspace { display: grid; grid-template-columns: minmax(245px, 320px) minmax(0, 1fr); gap: 18px; align-items: start; }
.panel, dialog { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 24px; }
.narrow { max-width: 440px; margin: 35px auto; }
h1, h2 { font-size: 20px; margin: 0 0 16px; }
label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 13px; }
button, input, textarea { color: inherit; font: inherit; }
input, textarea { margin-top: 5px; width: 100%; border-radius: 7px; border: 1px solid var(--line); padding: 9px 11px; }
textarea { resize: vertical; font-family: monospace; }
button { border: 1px solid var(--line); border-radius: 7px; padding: 7px 12px; background: #fff; cursor: pointer; }
button:hover { background: #edf3fd; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
button:disabled { opacity: .6; cursor: default; }
.google-sign-in { margin-block: 18px; min-height: 44px; }
.sign-in-divider { color: #4d607c; margin-block: 18px; }
.verification-notice { border-left: 3px solid var(--blue); padding-left: 14px; margin-bottom: 20px; }
.primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.primary:hover { background: #1f4698; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.entry { padding: 14px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.entry h3 { margin: 0; font-size: 16px; }
.entry p { margin: 4px 0 10px; }
.entry pre { margin: 10px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
dialog { width: min(480px, calc(100% - 32px)); color: inherit; }
dialog::backdrop { background: #12213a88; }
.check { display: flex; gap: 8px; align-items: baseline; margin-top: 16px; }
.check input { width: auto; }
@media (max-width: 700px) { #workspace { grid-template-columns: 1fr; } }
