:root {
  color-scheme: light;
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #28201c;
  background: #f3eee8;
  font-size: 15px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.team-shell { max-width: 1080px; margin: 0 auto; padding: 30px clamp(16px, 5vw, 48px) 56px; }
.team-header, .section-heading, #account-actions { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.team-header { margin-bottom: 30px; }
.team-brand { font-weight: 700; text-decoration: none; color: #28201c; display: inline-flex; align-items: center; gap: 10px; }
.team-brand span { width: 14px; height: 14px; background: #b44622; border-radius: 4px; transform: rotate(10deg); }
.card { background: #fffefa; border: 1px solid #e2d7ce; border-radius: 16px; margin-bottom: 18px; padding: clamp(18px, 4vw, 34px); }
.narrow { max-width: 420px; margin: clamp(28px, 8vh, 94px) auto; border-top: 4px solid #b44622; }
.narrow form { display: grid; gap: 12px; }
h1, h2, p { margin: 0 0 14px; }
h1 { line-height: 1.2; font-size: clamp(26px, 5vw, 36px); }
h2 { font-size: 23px; }
label { display: grid; gap: 5px; font-size: 14px; font-weight: 600; }
small { color: #6b564b; }
input, select, button, .secondary {
  border: 1px solid #c8baae; border-radius: 8px; font: inherit; min-height: 42px; padding: 7px 11px;
}
input, select { background: #fffefa; min-width: 0; }
input[type="checkbox"] { min-height: auto; accent-color: #a63f1e; }
button, .secondary { background: #fffefa; color: #38241a; cursor: pointer; white-space: nowrap; }
button:hover, .secondary:hover { border-color: #a63f1e; }
button:disabled { cursor: wait; opacity: .6; }
:focus-visible { outline: 2px solid #a63f1e; outline-offset: 3px; }
.secondary { text-decoration: none; display: inline-flex; align-items: center; }
.primary { color: white; background: #a63f1e; border-color: #a63f1e; font-weight: 700; }
.primary:hover { background: #853111; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 9px; margin-bottom: 15px; }
.filters label { flex: 1 1 140px; }
.members { display: grid; gap: 10px; }
.member { border: 1px solid #ebddd2; border-radius: 10px; padding: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.member strong { flex: 1 0 105px; overflow-wrap: anywhere; }
.member fieldset { border: 0; padding: 0; margin: 0; display: flex; gap: 7px 12px; flex-wrap: wrap; }
.member fieldset label, .member .enabled { display: inline-flex; align-items: center; }
.member legend { color: #6b564b; font-size: 13px; }
.issued, #status { padding: 10px 14px; margin: 0 0 12px; border-radius: 8px; background: #f8e6d8; overflow-wrap: anywhere; }
#status[data-error="true"] { background: #fce6e4; color: #821c17; }
.issued output { font-size: 1.05rem; font-family: monospace; margin-right: 12px; user-select: all; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; margin-bottom: 12px; }
th, td { padding: 7px 9px; border-bottom: 1px solid #ebddd2; vertical-align: top; overflow-wrap: anywhere; }
th { color: #6b564b; font-size: 13px; }
td:nth-child(-n+3), td:last-child { white-space: nowrap; }
@media (max-width: 480px) {
  .team-header, .section-heading { align-items: flex-start; flex-wrap: wrap; }
  .team-header { row-gap: 15px; }
}
