:root { color-scheme: light; font: 15px/1.55 system-ui, sans-serif; color: #152938; background: #f2f6f7; }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
h1 { font-size: 1.3rem; }
h2 { font-size: 1.18rem; }
.shell { max-width: 1260px; margin: auto; padding: 0 clamp(14px, 4vw, 48px); }
.masthead { color: white; background: #132e3b; border-bottom: 3px solid #35aa96; }
.masthead-content, .section-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 16px; }
#identity { display: flex; align-items: center; gap: 12px; }
main { padding-block: 22px; }
nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
button, input, select { font: inherit; }
button { padding: 7px 12px; border: 1px solid #cddadd; border-radius: 7px; color: #173442; background: white; cursor: pointer; }
button:hover, button[aria-current] { background: #e4f3ef; border-color: #76b5a8; }
button:disabled { opacity: .5; cursor: wait; }
button.primary { background: #087d6e; color: white; border-color: #087d6e; }
button.primary:hover { background: #076759; }
button.danger { color: #ac3435; }
input, select { min-width: 0; border: 1px solid #cddadd; border-radius: 7px; padding: 7px 9px; background: white; color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #138373; outline-offset: 2px; }
.panel { border: 1px solid #dce6e8; background: white; border-radius: 12px; overflow: hidden; }
.panel .section-top { padding-inline: 16px; }
.login { max-width: 420px; margin: 32px auto; padding: 24px; }
.login h2 { margin-bottom: 18px; }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 4px; }
.inline, .form .inline { display: flex; align-items: center; gap: 6px; }
.pair { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.actions.end { justify-content: flex-end; }
.table-area { overflow: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th, td { padding: 10px 13px; border-top: 1px solid #e3eaec; vertical-align: top; white-space: nowrap; }
th { background: #f4f8f8; color: #4d6570; font-weight: 600; }
.muted, small { color: #566e78; font-size: .88rem; }
.good { color: #087d6e; }
.error, .bad { color: #ac3435; }
#notice { border: 1px solid #cddadd; border-radius: 8px; background: white; padding: 8px 12px; margin-bottom: 12px; }
dialog { border: 1px solid #cddadd; border-radius: 12px; padding: 18px; width: min(510px, calc(100vw - 24px)); color: inherit; }
dialog::backdrop { background: #132e3b77; }
#details { width: min(690px, calc(100vw - 24px)); }
#details .section-top { padding-top: 0; }


#workspace { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; align-items: start; }
#workspace nav { display: grid; align-content: start; margin: 0; }
#workspace nav button { text-align: left; }
.workspace-content { min-width: 0; }
.token-field { width: 100%; margin-top: 8px; }
@media (max-width: 650px) {
  #workspace { grid-template-columns: minmax(0, 1fr); }
  #workspace nav { display: flex; margin-bottom: 0; }
}
