* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #f1f5f4; color: #182729; font: 16px/1.5 system-ui, sans-serif; }
main { max-width: 860px; margin: auto; padding: 36px 18px 60px; }
header, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
header { justify-content: space-between; }
h1, h2 { margin: 0 0 8px; line-height: 1.2; }
h1 { font-size: clamp(1.65rem, 4vw, 2.5rem); }
section { background: #fff; border: 1px solid #d5e1df; border-radius: 14px; padding: clamp(16px, 4vw, 28px); margin-bottom: 16px; }
form { display: grid; gap: 14px; margin-top: 18px; }
label { display: block; }
input:not([type=checkbox]), select, textarea, button { font: inherit; padding: 8px 12px; border: 1px solid #9db3b0; border-radius: 7px; }
input:not([type=checkbox]), textarea { display: block; width: 100%; }
fieldset { margin: 0; border: 1px solid #d5e1df; border-radius: 7px; }
fieldset label { display: inline-block; margin-right: 15px; }
button { justify-self: start; color: #fff; background: #146459; border-color: #146459; cursor: pointer; }
button.secondary { color: #16463e; background: #eef7f4; }
button:disabled { opacity: .65; cursor: wait; }
code, pre { overflow-wrap: anywhere; }
pre { background: #f1f5f4; padding: 12px; white-space: pre-wrap; }
#secret { background: #e1f3ed; padding: 12px; border-radius: 7px; }
#keyValue { display: block; user-select: all; }
#message { color: #18594b; }
#logs { padding: 0; list-style: none; }
#logs li { padding: 10px 0; border-bottom: 1px solid #d5e1df; }
summary { cursor: pointer; overflow-wrap: anywhere; }
.layout { max-width: 1200px; margin: auto; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; align-items: start; }
.layout:has(aside[hidden]) { display: block; }
.layout main { width: 100%; max-width: none; margin: 0; }
.layout:has(aside[hidden]) main { max-width: 480px; margin: auto; }
aside { position: sticky; top: 0; min-height: 100vh; padding: 36px 14px 20px; background: #e1eeeb; }
aside h1 { font-size: 1.35rem; }
aside p { overflow-wrap: anywhere; margin: 0 0 20px; }
nav { display: grid; gap: 6px; margin-bottom: 24px; }
nav button { justify-self: stretch; text-align: left; border-color: transparent; background: transparent; color: #16463e; }
nav button[aria-current] { background: #146459; color: white; }
.section-head, .key-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.records { list-style: none; padding: 0; margin: 12px 0; }
.records li { border-bottom: 1px solid #d5e1df; padding: 10px 0; }
.key-row small { display: block; }
button.key-name { font-weight: 700; color: #146459; text-decoration: underline; background: transparent; border: 0; padding: 0; overflow-wrap: anywhere; text-align: left; }
button.key-name[aria-pressed=true] { color: #182729; }
button.danger { color: #8e2424; background: #fff6f5; border-color: #d7a29d; }
.log-row { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 10px; align-items: start; }
.log-row > input { margin-top: 6px; }
table { border-collapse: collapse; width: 100%; margin: 16px 0; text-align: left; }
td, th { padding: 8px 4px; border-bottom: 1px solid #d5e1df; overflow-wrap: anywhere; }
@media (max-width: 650px) {
  .layout { grid-template-columns: minmax(104px, 28%) minmax(0, 1fr); gap: 0; }
  aside { padding: 20px 6px; }
  aside h1 { font-size: 1.05rem; }
  aside button { padding: 5px; }
  .layout main { padding: 18px 8px; }
  .key-row { flex-wrap: wrap; }
}
