:root {
  --bg: #0d0d0d;
  --panel: #171717;
  --panel2: #212121;
  --text: #ececec;
  --muted: #b4b4b4;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #7482ff;
}
body[data-theme="light"] {
  --bg: #f5f7fc;
  --panel: #fff;
  --panel2: #edf0fa;
  --text: #1c2140;
  --muted: #5d6682;
  --line: rgba(30, 42, 90, 0.16);
  --accent: #5865f2;
}
body[data-theme="sunset"] {
  --bg: linear-gradient(165deg, #182447, #3a285b 42%, #884568 72%, #d77969);
  --panel: rgba(39, 29, 62, 0.9);
  --panel2: rgba(68, 42, 76, 0.86);
  --text: #fff7f1;
  --muted: #dec8d3;
  --line: rgba(255, 220, 205, 0.18);
  --accent: #f47b70;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Noto Sans JP", Meiryo, sans-serif;
  line-height: 1.6;
}
button,
input,
textarea {
  font: inherit;
}
.hidden {
  display: none !important;
}
.container {
  width: min(1720px, calc(100% - clamp(40px, 5vw, 160px)));
  margin: auto;
  padding: 64px 0 90px;
}
.page-heading {
  margin-bottom: 30px;
}
.page-heading > p:last-child,
.hint,
.empty {
  color: var(--muted);
}
.eyebrow {
  margin: 0 0 8px;
  color: #aeb7ff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}
h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.25;
}
h2 {
  margin: 0;
  font-size: 1.4rem;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.team-divider-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 20px;
}
.team-divider-form,
.results {
  padding: 24px;
}
label {
  display: block;
  margin-bottom: 13px;
  font-size: 0.88rem;
  font-weight: 700;
}
input,
textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  color: var(--text);
  background: var(--input-bg);
}
textarea {
  min-height: 240px;
  resize: vertical;
}
.team-divider-form .hint {
  margin: 6px 0 16px;
}
.form-error {
  min-height: 1.5em;
  margin: 0 0 10px;
  color: #ff9dab;
  font-size: 0.85rem;
}
.actions,
.results-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.button {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.primary {
  background: var(--accent);
}
.ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}
.results-head {
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}
.output {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.team-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel2);
}
.team-card h3 {
  margin: 0;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: #bdc4ff;
  font-size: 0.9rem;
}
.team-card ol {
  margin: 0;
  padding: 8px 14px 12px 38px;
}
.team-card li {
  padding: 5px 2px;
  overflow-wrap: anywhere;
}
#team-copy-status {
  min-height: 1.5em;
  margin: 12px 0 0;
}
@media (max-width: 900px) {
  .team-divider-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .container {
    width: min(100% - 24px, 1720px);
    padding-top: 36px;
  }
  .team-divider-form,
  .results {
    padding: 18px;
  }
  .actions .button {
    min-height: 44px;
    flex: 1 1 140px;
  }
}
