:root { font-family: system-ui, sans-serif; color: #192335; background: #f4f6fa; line-height: 1.6; }
body { margin: 0; padding: 24px; }
main { max-width: 640px; margin: 5vh auto; padding: 32px; background: white; border: 1px solid #dce2eb; border-radius: 16px; }
h1 { font-size: 1.6rem; line-height: 1.3; }
h2 { font-size: 1.15rem; }
.brand { font-size: .85rem; letter-spacing: .06em; color: #58677e; }
label { display: block; margin: 16px 0; }
input:not([type=hidden]) { display: block; box-sizing: border-box; width: 100%; padding: 10px; font: inherit; border: 1px solid #8390a3; border-radius: 6px; }
button { padding: 10px 18px; margin: 8px 4px 8px 0; border: 1px solid #244e96; border-radius: 6px; color: white; background: #244e96; font: inherit; cursor: pointer; }
button.secondary { color: #244e96; background: white; }
button:disabled { opacity: .6; cursor: wait; }
a { color: #244e96; }
article { border-top: 1px solid #dce2eb; padding: 12px 0; overflow-wrap: anywhere; }
#error { color: #a51b24; }
:focus-visible { outline: 3px solid #e6a223; outline-offset: 3px; }
@media (max-width: 480px) { body { padding: 12px; } main { margin: 12px auto; padding: 20px; } }
header { max-width: 1000px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
header .brand { font-size: 1.1rem; font-weight: 700; text-decoration: none; }
.brand span { font-weight: 400; color: #58677e; }
nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
nav a { text-decoration: none; }
[aria-current=page] { font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
main { max-width: 860px; margin-top: 28px; }
.hint { color: #58677e; font-size: .9rem; }
.account { overflow-wrap: anywhere; }
textarea, select { box-sizing: border-box; width: 100%; padding: 10px; font: inherit; border: 1px solid #8390a3; border-radius: 6px; background: white; color: inherit; }
textarea { resize: vertical; }
fieldset { border: 1px solid #dce2eb; border-radius: 10px; margin: 20px 0; padding: 8px 20px; min-width: 0; }
legend { font-weight: 600; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
.tabs, .pagination, .actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.tabs { padding-bottom: 16px; border-bottom: 1px solid #dce2eb; }
.task-card a { display: flex; justify-content: space-between; gap: 16px; text-decoration: none; }
.task-card strong { white-space: pre-wrap; overflow-wrap: anywhere; }
.status { white-space: nowrap; color: #244e96; }
.empty { padding: 40px 0; color: #58677e; }
pre { padding: 16px; background: #f4f6fa; border-radius: 8px; overflow-wrap: anywhere; white-space: pre-wrap; }
dl { display: grid; grid-template-columns: minmax(120px, 1fr) 3fr; gap: 10px; }
dd { margin: 0; overflow-wrap: anywhere; }
audio, progress { display: block; width: 100%; }
.button { display: inline-block; padding: 10px 18px; background: #244e96; color: white; border-radius: 6px; text-decoration: none; }
#error { position: sticky; bottom: 12px; background: #fff2f2; border: 1px solid #a51b24; border-radius: 8px; padding: 12px; }
@media (max-width: 600px) { nav { gap: 12px; } main { padding: 18px; } .task-card a { flex-direction: column; } fieldset { padding: 8px 12px; } dl { grid-template-columns: 1fr; } dd { margin-bottom: 8px; } }

.parameter { white-space: pre-wrap; }
.scope-option { display: flex; align-items: center; gap: 12px; }
.scope-option input[type=checkbox] { display: inline-block; width: auto; flex: none; }
#new-api-key { margin: 24px 0; padding: 20px; border: 2px solid #244e96; border-radius: 10px; }
#api-key-secret { font-family: monospace; }
