:root {
  font: 16px/1.6 system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #e8eee9;
  background: #101512;
  --panel: #19201c;
  --edge: #36443b;
  --muted: #afbeb4;
  --green: #b6f3a5;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100dvh; }
a { color: var(--green); }
button, textarea { font: inherit; }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .5rem .85rem;
  border: 1px solid var(--edge);
  border-radius: .45rem;
  background: #232e26;
  color: inherit;
  font-weight: 600;
  min-height: 2.6rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
button:hover, .button:hover { border-color: var(--green); }
.primary { background: var(--green); border-color: var(--green); color: #112217; }
.primary:hover { background: #cbffbd; }
.subtle { background: transparent; }
button:disabled, textarea:disabled { opacity: .6; cursor: wait; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.top {
  min-height: 4.5rem;
  padding: .8rem clamp(1rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--edge);
}
.brand, .account { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.brand { color: inherit; font-weight: 700; text-decoration: none; flex: none; }
.account { font-size: .9rem; }
#account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mark {
  background: var(--green);
  color: #112217;
  padding: .05rem .45rem;
  border-radius: .3rem;
  font: 700 1rem/1.7 ui-monospace, monospace;
}

main { width: min(100% - 2rem, 52rem); margin: clamp(2rem, 7vw, 5rem) auto; }
.panel {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: .75rem;
  padding: clamp(1rem, 4vw, 2rem);
  margin-bottom: 1rem;
}
.login { max-width: 38rem; margin-inline: auto; }
.login p { margin-bottom: 1.5rem; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.7rem, 5vw, 2.5rem); line-height: 1.25; }
h2 { font-size: 1.2rem; line-height: 1.4; }
p { color: var(--muted); margin-block: .6rem 1rem; }
.heading, .panel-top, .controls { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.heading, .panel-top { justify-content: space-between; }
.heading { margin-bottom: 1rem; }
.heading p { margin-bottom: 0; }
.status { color: var(--muted); border: 1px solid var(--edge); border-radius: 2rem; padding: .15rem .65rem; font-size: .875rem; }
.status[data-running="true"] { color: var(--green); }
.notice { padding: .6rem .85rem; border: 1px solid var(--edge); border-radius: .4rem; color: var(--green); }
.notice[data-error="true"] { color: #ffb9ab; border-color: #8d5a50; }

label { display: block; margin: 1rem 0 .4rem; font-weight: 600; }
textarea { display: block; resize: vertical; width: 100%; padding: .65rem; color: inherit; }
textarea, .code-row, pre { background: #101613; border: 1px solid var(--edge); border-radius: .45rem; }
textarea, code, pre { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.code-row { display: flex; align-items: center; justify-content: space-between; gap: .65rem; padding: .5rem .6rem; }
.code-row code, dd code { overflow-wrap: anywhere; }
.code-row button { min-height: 2.1rem; padding: .25rem .55rem; font-size: .875rem; }
dl { display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .9rem; }
dt { color: var(--muted); }
dd { margin: 0; min-width: 0; }
details { border-top: 1px solid var(--edge); padding-top: .75rem; }
summary { cursor: pointer; }
pre { overflow: auto; padding: .75rem; }
