:root {
  color-scheme: light;
  --page: #f5f7fa;
  --paper: #fff;
  --ink: #2b2e3a;
  --muted: #687083;
  --line: #dde3ed;
  --control: #c8d1df;
  --control-hover: #a3afc2;
  --focus: #3370ff;
  --action: #2456c6;
  --action-hover: #1944a8;
  --success: #1e7a52;
  --success-bg: #edf7f1;
  --warning: #93590a;
  --warning-bg: #fcf3e3;
  --danger: #b3261e;
  --danger-bg: #fbedec;
  background: var(--page);
  color: var(--ink);
  font: 0.875rem/1.6 system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-variant-numeric: tabular-nums;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
.frame { width: min(calc(100% - 64px), 1064px); margin-inline: auto; }
.masthead { background: var(--paper); border-bottom: 1px solid var(--line); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 650; }
.brand-mark { display: block; width: 3px; height: 18px; border-radius: 2px; background: var(--focus); }
main { padding-block: 40px 64px; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
h1 { font-size: 1.75rem; font-weight: 650; line-height: 1.35; }
h2 { font-size: 1.125rem; font-weight: 650; line-height: 1.5; }
h3 { font-size: 1rem; }
small, .muted, dt, .count { color: var(--muted); }
small { font-size: 0.875rem; }
.intro { margin-bottom: 24px; }
.intro h1, .login-panel h1 { margin-block: 8px; }
.intro p { color: var(--muted); font-size: 1rem; }
.environment { color: var(--warning); display: flex; gap: 8px; align-items: center; font-weight: 550; }
.environment span { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--warning); }

.management-grid, .preview-grid { display: grid; align-items: start; gap: 20px; }
.management-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.preview-grid { grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); }
.surface { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 24px; min-width: 0; }
.surface h2 { margin-bottom: 16px; }
.login-panel { max-width: 440px; margin-inline: auto; }
.login-panel h1 { margin-bottom: 24px; }
.stack { display: grid; gap: 20px; }
.stack > .primary { justify-self: start; }
.field { display: grid; align-content: start; gap: 6px; min-width: 0; }
label, legend { font-weight: 550; }
fieldset { margin: 0; border: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 6px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { border: 1px solid var(--control); border-radius: 7px; padding: 0 12px; display: flex; gap: 8px; align-items: center; min-height: 44px; cursor: pointer; }
.choice input { margin: 0; width: 16px; height: 16px; accent-color: var(--action); }
.choice:has(:checked) { border-color: var(--action); background: #eef3ff; }
input:not([type="checkbox"]), select, button { font: inherit; color: inherit; border-radius: 7px; }
input:not([type="checkbox"]), select {
  width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid var(--control); background: var(--paper);
}
input:not([type="checkbox"]):hover, select:hover, .choice:not(:has(:checked)):hover { border-color: var(--control-hover); }
input:focus-visible, select:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px;
}
button { min-height: 44px; padding: 7px 12px; border: 1px solid transparent; cursor: pointer; }
.primary { background: var(--action); color: var(--paper); font-weight: 600; padding-inline: 16px; }
.primary:hover { background: var(--action-hover); }
.primary:active { background: #143881; }
.link, .text-button { color: var(--action); text-decoration: underline; text-underline-offset: 3px; }
.text-button { background: transparent; border: 0; padding: 7px 0; }
.text-button:hover, .link:hover { text-decoration-thickness: 2px; }
.text-button.danger { color: var(--danger); }
.feedback { border-radius: 7px; padding: 8px 12px; }
.danger.feedback { background: var(--danger-bg); color: var(--danger); }
.success { background: var(--success-bg); color: var(--success); }
.warning { background: var(--warning-bg); color: var(--warning); }
.neutral { background: var(--page); color: var(--muted); }
.state { display: inline-block; border-radius: 5px; padding: 2px 7px; white-space: nowrap; font-size: 0.875rem; }
.section-heading, .member-line, .release-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.release + .release { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.release .feedback { margin-top: 12px; }
.facts { display: grid; gap: 7px; margin-top: 12px; }
.facts div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.facts dd { overflow-wrap: anywhere; }
.invitation-link { margin-block: 12px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.members { list-style: none; padding: 0; border-top: 1px solid var(--line); margin-top: 12px; }
.member-line { min-height: 48px; border-bottom: 1px solid var(--line); }
.member-line small { margin-inline-start: 10px; }
.release-actions { margin-top: 8px; flex-wrap: wrap; }
.empty { color: var(--muted); padding-block: 8px; }
.preview-facts { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.artifact-mark { color: var(--muted); margin-inline-start: 10px; }
.filter { display: flex; gap: 10px; align-items: end; }
.filter .field { width: min(190px, 100%); }
.count { margin-block: 18px 6px; }
table { width: 100%; border-collapse: collapse; text-align: start; }
th, td { border-bottom: 1px solid var(--line); text-align: start; padding-block: 10px; padding-inline-end: 8px; overflow-wrap: anywhere; }
th { font-weight: 550; color: var(--muted); }
th:last-child, td:last-child { padding-inline-end: 0; }
tbody tr:last-child td { border-bottom: 0; }
.attachment-link { display: block; text-decoration: none; }
.attachment-link img { display: block; width: 100%; height: auto; border-radius: 6px; margin-bottom: 12px; }
.problem { max-width: 520px; padding-block: 16px; }
.problem p { margin-block: 12px 20px; }

@media (max-width: 700px) {
  :root { font-size: 1rem; }
  .frame { width: calc(100% - 32px); }
  main { padding-block: 24px 48px; }
  h1 { font-size: 1.5rem; }
  .management-grid, .preview-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .surface { padding: 16px; }
  .preview-facts { display: grid; gap: 8px; }
  .preview-facts div { display: grid; gap: 2px; }
  .filter .primary { flex-shrink: 0; }
}
