:root {
  color-scheme: light;
  --ink: #162c38;
  --muted: #52636c;
  --canvas: #f6f8f8;
  --line: #dbe4e5;
  --accent: #214e5e;
  --focus: #bb652c;
  --tint: #e8f0f2;
  font-family: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  line-height: 1.55;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
button, input, textarea, select { font: inherit; }
button, input, textarea, select, summary { outline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); }
button {
  border: 1px solid var(--line); border-radius: 9px; padding: .52rem .85rem;
  background: #fff; color: var(--ink); font-weight: 600; cursor: pointer;
}
button:hover:not(:disabled) { background: var(--tint); }
button:disabled { opacity: .62; cursor: wait; }
button.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
button.primary:hover:not(:disabled) { background: #163b49; }
button.quiet { border-color: transparent; background: transparent; }
button.warn { color: #9b361c; }
.top {
  display: flex; align-items: center; gap: .75rem; min-height: 58px; width: 100%;
  padding: .45rem clamp(.8rem, 3vw, 2rem); border-bottom: 1px solid var(--line); background: #fff;
}
.brand, .account { display: flex; align-items: center; gap: .65rem; }
.brand { font-weight: 680; }
.brand img { object-fit: contain; }
.account { margin-left: auto; color: var(--muted); min-width: 0; }
#account-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
main { width: min(1040px, 100%); margin: 0 auto; padding: clamp(.7rem, 3vw, 1.7rem); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.42rem, 3.4vw, 1.85rem); line-height: 1.2; }
h2 { font-size: 1.1rem; }
h3 { font-size: 1rem; }
.panel {
  padding: clamp(.85rem, 3vw, 1.32rem); border: 1px solid var(--line);
  border-radius: 13px; background: #fff; display: grid; gap: .75rem; margin-bottom: .85rem;
}
.login { width: min(430px, 100%); margin: 7vh auto 0; }
form, .stack { display: grid; gap: .5rem; }
label { font-weight: 600; }
input:not([type=checkbox]), textarea, select {
  display: block; width: 100%; color: var(--ink); background: #fff;
  border: 1px solid #b7c8cb; border-radius: 8px; padding: .55rem .7rem; min-height: 42px;
}
input[readonly] { background: var(--canvas); }
textarea { resize: vertical; min-height: 86px; }
form button { justify-self: start; }
a { color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
small, .muted { color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
.message { margin-bottom: .75rem; padding: .6rem .8rem; border-radius: 8px; background: var(--tint); }
.message.error { background: #fcefe9; color: #7c331f; }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; }
.list { display: grid; gap: .5rem; }
.list button { text-align: left; }
.card { border: 1px solid var(--line); border-radius: 9px; padding: .7rem; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.badge { display: inline-block; padding: .18rem .45rem; border-radius: 6px; background: var(--tint); font-size: .85rem; }
video { width: 100%; max-height: 48vh; background: #142126; border-radius: 9px; display: block; }
details > * + * { margin-top: .55rem; }
summary { cursor: pointer; width: fit-content; color: var(--accent); }
.shot { width: min(180px, 100%); border-radius: 6px; }
@media (max-width: 650px) {
  .grid { grid-template-columns: 1fr; }
  .top { gap: .25rem; }
  .account { gap: .15rem; font-size: .85rem; }
  .top .quiet { padding-inline: .38rem; }
  .panel { gap: .6rem; }
}

.script { white-space: pre-wrap; }
