:root { color-scheme: light; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #182536; background: #f4f6f8; line-height: 1.55; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header, main { max-width: 1280px; margin: 0 auto; padding: 24px; }
header { display: flex; gap: 24px; align-items: center; justify-content: space-between; border-bottom: 1px solid #bbc5d0; }
h1 { font-size: 1.65rem; margin: 0 0 6px; line-height: 1.3; }
h2 { font-size: 1.25rem; margin: 0 0 12px; }
h3 { font-size: 1.1rem; }
p { margin: 10px 0; }
a { color: #064f9b; text-decoration: underline; }
button, input, textarea, select { font: inherit; }
button { min-height: 44px; padding: 9px 15px; border: 1px solid #7e8d9f; border-radius: 5px; color: #182536; background: white; cursor: pointer; }
button:hover:not(:disabled) { background: #e7eef7; border-color: #245887; }
button:disabled { cursor: not-allowed; opacity: .6; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible, pre:focus-visible { outline: 3px solid #086ac5; outline-offset: 3px; }
#connect, #run-tool { background: #154d84; color: white; border-color: #154d84; }
#connect:hover:not(:disabled), #run-tool:hover:not(:disabled) { background: #103c66; }
.account-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.panel { background: white; border: 1px solid #bbc5d0; border-radius: 6px; padding: 20px; margin-bottom: 20px; min-width: 0; }
#login { max-width: 760px; }
.tools-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 16px; }
.filters { display: flex; align-items: end; gap: 16px; flex-wrap: wrap; margin: 12px 0; }
.filters label:first-child { flex: 1; min-width: 180px; }
label { display: block; font-weight: 600; }
input:not([type="checkbox"]), textarea, select { display: block; width: 100%; padding: 10px; border: 1px solid #7e8d9f; border-radius: 4px; color: #182536; background: white; min-height: 44px; }
textarea { resize: vertical; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .95rem; line-height: 1.5; margin: 8px 0 16px; }
.explorer-grid { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr); gap: 20px; align-items: start; }
#tool-list { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
#tool-list button { text-align: left; overflow-wrap: anywhere; }
#tool-list button[aria-pressed="true"] { background: #dceafb; border: 2px solid #154d84; }
#tool-name, #tool-description, #account, #device-code, [role="status"] { overflow-wrap: anywhere; }
pre { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9rem; background: #f1f4f8; padding: 14px; border: 1px solid #c7d0da; border-radius: 4px; white-space: pre-wrap; overflow-wrap: anywhere; overflow: auto; max-width: 100%; max-height: 520px; }
summary { cursor: pointer; padding: 10px 0; font-weight: 600; }
.warning { border: 2px solid #966000; background: #fff6dc; color: #503500; padding: 12px; margin: 14px 0; border-radius: 4px; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
input[type="checkbox"] { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 3px; accent-color: #154d84; }
@media (max-width: 720px) { header { align-items: flex-start; flex-direction: column; gap: 12px; } header, main { padding: 16px; } .explorer-grid { grid-template-columns: minmax(0, 1fr); } .panel { padding: 16px; } .filters { align-items: stretch; } .filters label { width: 100%; } #tool-list { max-height: 360px; overflow: auto; padding: 4px; } }
