:root {
  --bg: #171a24;
  --bg-elevated: rgba(20, 26, 39, 0.84);
  --panel: rgba(28, 34, 49, 0.94);
  --panel-strong: rgba(36, 46, 67, 0.98);
  --bg-glow-left: rgba(86, 154, 255, 0.24);
  --bg-glow-right: rgba(126, 240, 197, 0.12);
  --bg-base-start: #1b1f2c;
  --bg-base-end: #11141d;
  --progress-accent-a: rgba(56, 156, 255, 0.12);
  --progress-accent-b: rgba(103, 168, 255, 0.22);
  --scope-search-border: rgba(255, 255, 255, 0.1);
  --scope-search-bg: rgba(255, 255, 255, 0.035);
  --scope-search-shadow: 0 0 0 0 rgba(103, 168, 255, 0);
  --scope-card-border: rgba(255, 255, 255, 0.06);
  --scope-card-bg-top: rgba(255, 255, 255, 0.025);
  --scope-card-bg-bottom: rgba(255, 255, 255, 0.012);
  --scope-card-glow: inset 0 0 0 0 rgba(103, 168, 255, 0);
  --scope-shift-duration: 420ms;
  --scope-shift-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f4f7fb;
  --text-muted: #94a0b8;
  --mint: #7ef0c5;
  --mint-strong: #30d59b;
  --blue-accent: #67a8ff;
  --warn: #ffd166;
  --danger: #ff7b7b;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  --radius: 24px;
  --radius-sm: 14px;
  font-family: "Pretendard Variable", "SUIT Variable", "Noto Sans KR", sans-serif;
  color: var(--text);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, var(--bg-glow-left), transparent 28%),
    radial-gradient(circle at top right, var(--bg-glow-right), transparent 24%),
    linear-gradient(180deg, var(--bg-base-start) 0%, var(--bg-base-end) 100%);
  transition: background var(--scope-shift-duration) var(--scope-shift-ease);
}

body[data-scope="all"] {
  --bg-glow-left: rgba(86, 154, 255, 0.24);
  --bg-glow-right: rgba(126, 240, 197, 0.12);
  --bg-base-start: #1b1f2c;
  --bg-base-end: #11141d;
  --progress-accent-a: rgba(56, 156, 255, 0.12);
  --progress-accent-b: rgba(103, 168, 255, 0.22);
  --scope-search-border: rgba(255, 255, 255, 0.1);
  --scope-search-bg: rgba(255, 255, 255, 0.035);
  --scope-search-shadow: 0 0 0 0 rgba(103, 168, 255, 0);
  --scope-card-border: rgba(255, 255, 255, 0.06);
  --scope-card-bg-top: rgba(255, 255, 255, 0.025);
  --scope-card-bg-bottom: rgba(255, 255, 255, 0.012);
  --scope-card-glow: inset 0 0 0 0 rgba(103, 168, 255, 0);
}

body[data-scope="linked"] {
  --bg-glow-left: rgba(126, 240, 197, 0.32);
  --bg-glow-right: rgba(61, 220, 176, 0.18);
  --bg-base-start: #172226;
  --bg-base-end: #0c1417;
  --progress-accent-a: rgba(126, 240, 197, 0.24);
  --progress-accent-b: rgba(59, 187, 152, 0.18);
  --scope-search-border: rgba(255, 255, 255, 0.1);
  --scope-search-bg: rgba(255, 255, 255, 0.035);
  --scope-search-shadow: 0 0 0 0 rgba(103, 168, 255, 0);
  --scope-card-border: rgba(126, 240, 197, 0.14);
  --scope-card-bg-top: rgba(126, 240, 197, 0.045);
  --scope-card-bg-bottom: rgba(255, 255, 255, 0.012);
  --scope-card-glow: inset 0 1px 0 rgba(126, 240, 197, 0.08), inset 0 0 0 1px rgba(126, 240, 197, 0.04);
}

.shell {
  width: min(1920px, calc(100vw - 12px));
  margin: 12px auto 20px;
  padding: 10px;
}

.hero,
.summary-card,
.toolbar,
.board-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  transition: background var(--scope-shift-duration) var(--scope-shift-ease), border-color var(--scope-shift-duration) var(--scope-shift-ease), box-shadow var(--scope-shift-duration) var(--scope-shift-ease);
}

.hero {
  border-radius: 32px;
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(30, 38, 58, 0.96), rgba(25, 31, 48, 0.92)),
    var(--panel);
}

.hero-copy-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.hero-notice-panel {
  display: flex;
  align-items: stretch;
  min-width: 0;
  width: auto;
  min-height: 110px;
  padding: 12px;
  border-radius: 24px;
  border: 1px solid rgba(126, 240, 197, 0.14);
  background:
    linear-gradient(135deg, rgba(126, 240, 197, 0.08), rgba(103, 168, 255, 0.06)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 14px 32px rgba(10, 20, 34, 0.16);
  flex: none;
}

.hero-notice-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.hero-notice-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-notice-input {
  min-height: 54px;
  width: 100%;
  padding: 0 8px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 800;
  letter-spacing: -0.03em;
  box-shadow: none;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.hero-notice-input::placeholder {
  color: var(--text-muted);
  font-weight: 600;
}

.hero-notice-input:hover {
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.82), rgba(17, 24, 39, 0.58)),
    rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.hero-notice-input:focus {
  outline: none;
  cursor: text;
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.82), rgba(17, 24, 39, 0.58)),
    rgba(255, 255, 255, 0.02);
  border-color: rgba(126, 240, 197, 0.32);
  box-shadow: 0 0 0 3px rgba(126, 240, 197, 0.12);
}

.hero-notice-input:-webkit-autofill,
.hero-notice-input:-webkit-autofill:hover,
.hero-notice-input:-webkit-autofill:focus,
.hero-notice-input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  border-color: rgba(126, 240, 197, 0.32);
  -webkit-box-shadow:
    0 0 0 1000px rgba(27, 35, 52, 0.96) inset,
    0 0 0 3px rgba(126, 240, 197, 0.12);
  box-shadow:
    0 0 0 1000px rgba(27, 35, 52, 0.96) inset,
    0 0 0 3px rgba(126, 240, 197, 0.12);
  transition: background-color 99999s ease-out 0s;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--mint);
  font-size: 11px;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
    font-size: clamp(16px, 4.5vw, 19px);
    letter-spacing: -0.02em;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-pill-live {
  border-color: rgba(126, 240, 197, 0.28);
  background: rgba(126, 240, 197, 0.1);
  color: var(--mint);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.hero-side {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 14px;
  flex: 1 1 0;
  min-width: 0;
}

.hero-summary-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(780px, 100%);
  align-items: stretch;
  margin-left: auto;
}

.hero-stat-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.014));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.hero-stat-card::after {
  content: "";
  position: absolute;
  inset: auto -18% -42% auto;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.hero-cycle-panel {
  min-width: 0;
  max-width: none;
  width: auto;
  flex: none;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.hero-progress-panel {
  padding: 16px 18px;
  min-height: 110px;
  min-width: 0;
  width: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.014));
  transition: background var(--scope-shift-duration) var(--scope-shift-ease), border-color var(--scope-shift-duration) var(--scope-shift-ease), box-shadow var(--scope-shift-duration) var(--scope-shift-ease);
}

.hero-progress-panel .summary-label {
  color: var(--text-muted);
  font-size: clamp(9px, 0.34vw + 8px, 11px);
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-progress-panel strong {
  font-size: clamp(42px, 3.6vw, 58px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-progress-panel #progressValue {
  position: relative;
  z-index: 1;
}

.hero-cycle-panel #cycleValue,
.hero-cycle-panel #cycleTimer,
.hero-progress-panel .summary-label {
  position: relative;
  z-index: 1;
}

.ghost-button {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background-color 120ms ease;
}

.ghost-button:hover,
.ghost-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.subtle-button {
  opacity: 0.86;
}

.summary-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(280px, 420px);
  gap: 14px;
}

.summary-card {
  border-radius: var(--radius);
  padding: 18px 20px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    var(--panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    var(--shadow);
}

.cycle-card {
  justify-content: flex-start;
  gap: 10px;
}

.accent-card {
  border: 1px solid rgba(103, 168, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(48, 213, 155, 0.16), rgba(103, 168, 255, 0.18)),
    var(--panel-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 28px rgba(20, 82, 133, 0.12);
}

.summary-label {
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.summary-card strong {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.summary-value-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.cycle-range {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 10px;
  flex-wrap: nowrap;
  min-height: 54px;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
}

.cycle-range-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding: 0;
  font-size: clamp(18px, 2vw, 30px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 800;
  white-space: nowrap;
}

.cycle-range-separator {
  position: relative;
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.cycle-range-separator::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(126, 240, 197, 0), rgba(126, 240, 197, 0.5), rgba(103, 168, 255, 0.58), rgba(103, 168, 255, 0));
}

.cycle-range-separator::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, rgba(233, 247, 255, 0.96), rgba(117, 194, 255, 0.9) 42%, rgba(93, 157, 255, 0.32) 100%);
  box-shadow:
    0 0 0 4px rgba(103, 168, 255, 0.08),
    0 0 16px rgba(103, 168, 255, 0.22);
}

.summary-subvalue {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--mint);
  letter-spacing: 0.01em;
}

.summary-subvalue .timer-major {
  font-size: 1.02em;
  font-weight: 800;
}

.summary-subvalue .timer-minor {
  font-size: 0.9em;
  font-weight: 700;
  opacity: 0.94;
}

.summary-subvalue .timer-gap {
  width: 2px;
}

.summary-subvalue[data-tone="normal"] {
  color: var(--mint);
}

.summary-subvalue[data-tone="warn"] {
  color: var(--warn);
}

.summary-subvalue[data-tone="danger"] {
  color: var(--danger);
}

.toolbar {
  margin-top: 12px;
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  grid-template-columns: max-content minmax(240px, 1.2fr) repeat(3, minmax(180px, 0.7fr));
  gap: 14px;
  position: relative;
  z-index: 12;
  overflow: visible;
}

.toolbar:has(.custom-select.is-open) {
  z-index: 30;
}

.secondary-toolbar {
  grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1.2fr) minmax(220px, 0.9fr);
}

.scope-toggle-field {
  min-width: 0;
  width: fit-content;
}

.scope-toggle-group {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  width: fit-content;
  min-height: 48px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.scope-toggle-group::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: var(--scope-indicator-width, 0px);
  height: calc(100% - 8px);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 18px rgba(7, 12, 20, 0.18);
  transform: translateX(var(--scope-indicator-offset, 0px));
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), width 220ms ease, opacity 180ms ease;
  opacity: 1;
  pointer-events: none;
}

.scope-toggle-button {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--text-muted);
  padding: 0 18px;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: color 160ms ease, transform 180ms ease;
}

.scope-toggle-button:hover,
.scope-toggle-button:focus-visible {
  color: var(--text);
  transform: translateY(-1px);
  outline: none;
}

.scope-toggle-button[aria-pressed="true"] {
  color: var(--text);
}

.scope-toggle-button[aria-pressed="false"] {
  background: transparent;
}

.scope-toggle-button:disabled {
  cursor: default;
  opacity: 0.6;
  transform: none;
}

.scope-toggle-button:disabled::before {
  box-shadow: none;
}

.alias-editor-panel {
  width: min(1920px, calc(100vw - 4px));
  max-height: min(92vh, 1040px);
  overflow: hidden;
}

.alias-editor-overlay {
  z-index: 110;
  padding: 8px 2px;
  place-items: center;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.account-settings-layout {
  display: grid;
  grid-template-columns: minmax(200px, 248px) minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.account-settings-sidebar,
.account-settings-main {
  min-height: 0;
}

.account-settings-sidebar {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
}

.account-settings-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  padding-right: 2px;
  min-height: 0;
}

.account-settings-section {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
}

.account-settings-section:last-child {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}

.character-settings-section {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.character-settings-section .account-list {
  min-height: 260px;
  padding-right: 12px;
  padding-bottom: 14px;
  scroll-padding-bottom: 14px;
  scrollbar-gutter: stable;
  margin-bottom: 0;
  overflow-x: hidden;
}

.account-list,
.alias-target-list {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable both-edges;
  scrollbar-width: thin;
  scrollbar-color: rgba(123, 144, 184, 0.72) rgba(255, 255, 255, 0.04);
  contain: layout paint;
}

.account-list::-webkit-scrollbar,
.alias-target-list::-webkit-scrollbar {
  width: 12px;
}

.account-list::-webkit-scrollbar-track,
.alias-target-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-left: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.account-list::-webkit-scrollbar-thumb,
.alias-target-list::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
  background: linear-gradient(180deg, rgba(133, 150, 187, 0.92), rgba(91, 108, 146, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.account-list::-webkit-scrollbar-thumb:hover,
.alias-target-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(155, 174, 214, 0.96), rgba(105, 124, 166, 0.96));
}

.account-list::-webkit-scrollbar-corner,
.alias-target-list::-webkit-scrollbar-corner {
  background: rgba(255, 255, 255, 0.04);
}

.account-settings-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.account-settings-section-actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 10px;
  flex-wrap: wrap;
}

.linked-account-field {
  min-width: 260px;
  max-width: 360px;
}

.linked-account-field .custom-select-trigger,
.linked-account-field select {
  min-height: 48px;
}

.danger-button {
  border-color: rgba(255, 123, 123, 0.34);
  background: rgba(255, 123, 123, 0.12);
  color: #ffd8d8;
}

.danger-button:hover,
.danger-button:focus-visible {
  border-color: rgba(255, 123, 123, 0.52);
  background: rgba(255, 123, 123, 0.18);
}

.account-settings-inline {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.account-create-row {
  margin-bottom: 12px;
}

.account-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.account-summary-meta {
  margin: 2px 0 0;
  padding-left: 2px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

#accountList {
  overflow: visible;
  padding-right: 0;
  flex: 0 0 auto;
}

.account-row,
.account-list-empty {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.account-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.character-card {
  grid-template-columns: minmax(108px, 1fr) minmax(110px, 0.9fr) minmax(156px, 1.05fr) minmax(156px, 1.05fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  min-width: 0;
}

.stat-input-field input {
  min-height: 46px;
  padding: 12px 14px;
}

.account-row.is-selected {
  border-color: rgba(103, 168, 255, 0.42);
  background: rgba(103, 168, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(103, 168, 255, 0.14);
}

.account-row-meta {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.account-list-empty {
  color: var(--text-muted);
}

.character-row-name {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
  min-width: 0;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.character-inline-field {
  min-width: 0;
  width: 100%;
}

.character-inline-field input {
  min-width: 0;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 14px;
  border: 1px solid rgba(129, 163, 221, 0.24);
  background:
    linear-gradient(180deg, rgba(44, 54, 79, 0.92), rgba(30, 38, 58, 0.96)),
    rgba(255, 255, 255, 0.02);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.character-inline-field input::placeholder {
  color: rgba(210, 219, 236, 0.44);
}

.character-inline-field input:focus {
  outline: none;
  border-color: rgba(103, 168, 255, 0.46);
  box-shadow: 0 0 0 3px rgba(103, 168, 255, 0.12);
}

.character-number-field {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.character-stat-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(103, 168, 255, 0.12);
  border: 1px solid rgba(103, 168, 255, 0.22);
  color: #cfe0ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.character-job-trigger {
  width: 100%;
  justify-content: flex-start;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.character-job-trigger.is-empty {
  color: var(--text-muted);
}

.character-row-button {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 14px;
  white-space: nowrap;
}

.character-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.character-save-button {
  border-color: rgba(103, 168, 255, 0.28);
  background: rgba(103, 168, 255, 0.12);
  color: #d7e7ff;
}

.character-save-button:hover,
.character-save-button:focus-visible {
  border-color: rgba(103, 168, 255, 0.5);
  background: rgba(103, 168, 255, 0.18);
}

.character-delete-button {
  border-color: rgba(255, 123, 123, 0.34);
  background: rgba(255, 123, 123, 0.12);
  color: #ffd8d8;
}

.character-create-panel {
  width: min(720px, calc(100vw - 24px));
}

.character-create-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.character-create-form .search-field,
.character-create-form .field:first-child {
  grid-column: 1 / -1;
}

.character-create-footer {
  justify-content: flex-end;
}

.alias-target-field {
  min-width: 0;
  height: 100%;
}

.alias-target-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 54px;
  max-height: none;
  height: 100%;
  overflow-y: auto;
  padding-right: 4px;
}

.alias-target-empty {
  margin: 0;
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  color: var(--text-muted);
}

.alias-target-option {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.alias-target-option:hover,
.alias-target-option:focus-visible {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(103, 168, 255, 0.42);
  box-shadow: 0 0 0 3px rgba(103, 168, 255, 0.12);
}

.alias-target-option.is-selected {
  border-color: rgba(103, 168, 255, 0.46);
  background:
    linear-gradient(135deg, rgba(48, 213, 155, 0.12), rgba(45, 106, 208, 0.26)),
    rgba(255, 255, 255, 0.04);
}

.alias-target-option-label {
  font-size: 15px;
  font-weight: 700;
}

.alias-target-option-meta {
  color: var(--text-muted);
  font-size: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: visible;
}

.field span {
  color: var(--text-muted);
  font-size: 13px;
}

.inline-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.action-field {
  justify-content: flex-end;
}

.alias-editor-panel .action-field {
  justify-content: flex-start;
}

.field input,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
}

.toolbar .search-field input {
  border-color: var(--scope-search-border);
  background: var(--scope-search-bg);
  box-shadow: var(--scope-search-shadow);
  transition: border-color var(--scope-shift-duration) var(--scope-shift-ease), background var(--scope-shift-duration) var(--scope-shift-ease), box-shadow var(--scope-shift-duration) var(--scope-shift-ease);
}

.field .custom-select {
  position: relative;
  width: 100%;
}

.field .custom-select.is-open {
  z-index: 40;
}

.custom-select-native {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.custom-select-trigger {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.035);
  color: var(--text);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease, background-color 120ms ease;
}

.custom-select-trigger:hover,
.custom-select-trigger:focus-visible,
.custom-select.is-open .custom-select-trigger {
  outline: none;
  border-color: rgba(103, 168, 255, 0.42);
  box-shadow: 0 0 0 3px rgba(103, 168, 255, 0.12);
  transform: translateY(-1px);
}

.custom-select-trigger-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-trigger-icon {
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(244, 247, 251, 0.72);
  border-bottom: 2px solid rgba(244, 247, 251, 0.72);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 120ms ease;
  flex: 0 0 auto;
}

.custom-select.is-open .custom-select-trigger-icon {
  transform: rotate(-135deg) translateY(-1px);
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 60;
  padding: 6px;
  border-radius: 18px;
  border: 1px solid rgba(103, 168, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(35, 43, 63, 0.98), rgba(19, 24, 35, 0.98)),
    var(--panel);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.custom-select.open-up .custom-select-menu {
  top: auto;
  bottom: calc(100% + 10px);
}

.custom-select-options {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: min(440px, var(--custom-select-max-height, 440px));
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}

.custom-select-options::-webkit-scrollbar {
  display: none;
}

.custom-select-option {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.custom-select-option:hover,
.custom-select-option:focus-visible {
  outline: none;
  color: var(--text);
  background: rgba(103, 168, 255, 0.14);
  transform: translateX(2px);
}

.custom-select-option.is-selected {
  color: #eff6ff;
  background: linear-gradient(135deg, rgba(48, 213, 155, 0.18), rgba(45, 106, 208, 0.4));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.custom-select-option:disabled {
  opacity: 0.45;
  cursor: default;
}

.field select option,
.field select optgroup {
  color: #18202e;
  background: #f4f7fb;
}

.field input:focus,
.field select:focus,
.auth-form input:focus {
  outline: none;
  border-color: rgba(103, 168, 255, 0.42);
  box-shadow: 0 0 0 3px rgba(103, 168, 255, 0.12);
}

.board-panel {
  margin-top: 12px;
  border-radius: 32px;
  padding: 18px;
  position: relative;
  z-index: 1;
}

.auth-panel {
  margin-top: 20px;
  border-radius: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 209, 102, 0.26);
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(50, 44, 35, 0.8);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 34px rgba(0, 0, 0, 0.18);
}

.auth-guide-links {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-guide-button {
  text-decoration: none;
}

body.auth-locked .toolbar,
body.auth-locked .secondary-toolbar,
body.auth-locked .board-panel {
  display: none !important;
}

body.mobile-self-mode .board-meta,
body.mobile-self-mode .board-header-actions {
  display: none !important;
}

body.mobile-self-mode .board-header-leading {
  width: 100%;
}

body.mobile-self-mode .toolbar {
  display: grid !important;
  overflow: visible;
}

body.auth-locked .shell {
  width: min(920px, calc(100vw - 32px));
}

body.auth-locked .hero {
  padding-block: 28px;
}

.auth-form {
  display: flex;
  gap: 12px;
  align-items: center;
}

.auth-form input {
  min-width: 260px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 18, 27, 0.72);
  color: var(--text);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
}

.board-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 14px;
}

.board-header-leading {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.board-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.board-action-button {
  padding-inline: 16px;
  min-height: 38px;
  font-size: 13px;
}

.status-banner-slot {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.board-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.board-subtitle,
.board-meta {
  margin: 6px 0 0;
  color: var(--text-muted);
}

.stage-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.stage-legend-item {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
}

.stage-legend-item[data-tone="intro"] {
  color: #9c7cff;
  background: rgba(116, 72, 255, 0.16);
  border-color: #7448ff;
}

.stage-legend-item[data-tone="hard"] {
  color: #f3b53f;
  background: rgba(243, 181, 63, 0.16);
  border-color: #f3b53f;
}

.stage-legend-item[data-tone="very-hard"] {
  color: #ff4a14;
  background: rgba(255, 74, 20, 0.16);
  border-color: #ff3d00;
}

.stage-legend-item[data-tone="complete"] {
  color: var(--mint);
  background: rgba(126, 240, 197, 0.16);
  border-color: rgba(126, 240, 197, 0.36);
}

.stage-legend-item[data-tone="hell"] {
  color: #ff4a14;
  background: rgba(255, 74, 20, 0.16);
  border-color: #ff3d00;
}

.job-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
}

#jobPickerOverlay {
  z-index: 160;
}

#characterCreateOverlay {
  z-index: 140;
}

.job-picker-overlay[hidden] {
  display: none !important;
}

.job-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 12, 19, 0.64);
  backdrop-filter: blur(8px);
}

.job-picker-panel {
  position: relative;
  width: min(1080px, calc(100vw - 32px));
  max-height: min(86vh, 860px);
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(32, 40, 59, 0.98), rgba(20, 26, 39, 0.98)),
    var(--panel);
  box-shadow: var(--shadow);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.job-picker-panel.alias-editor-panel {
  width: min(1920px, calc(100vw - 4px));
  max-height: min(92vh, 1040px);
}

.job-picker-header,
.job-picker-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.job-picker-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  overflow: auto;
  padding-right: 4px;
}

.job-family {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
}

.job-family-warrior {
  border-color: rgba(255, 186, 124, 0.18);
}

.job-family-archer {
  border-color: rgba(125, 212, 175, 0.18);
}

.job-family-mage {
  border-color: rgba(135, 170, 255, 0.18);
}

.job-family-healer {
  border-color: rgba(126, 240, 197, 0.18);
}

.job-family-bard {
  border-color: rgba(232, 170, 255, 0.18);
}

.job-family-thief {
  border-color: rgba(255, 149, 149, 0.18);
}

.job-family-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.job-family-title {
  font-size: 15px;
  letter-spacing: -0.01em;
}

.job-family-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.job-option {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 10px 14px;
  text-align: center;
  font: inherit;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.job-option-title {
  font-size: 14px;
}

.job-option:hover,
.job-option:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(103, 168, 255, 0.48);
  background: rgba(103, 168, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(103, 168, 255, 0.12);
}

.job-option.is-selected {
  border-color: rgba(48, 213, 155, 0.48);
  background: rgba(48, 213, 155, 0.1);
  color: var(--mint);
}

.job-picker-empty {
  margin: 0;
  padding: 20px 4px;
  color: var(--text-muted);
}

.status-banner {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 220;
  width: min(620px, calc(100vw - 24px));
  min-height: 52px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 14px 34px rgba(5, 10, 18, 0.38);
  transition: opacity 220ms ease, transform 220ms ease, visibility 0s linear 220ms;
}

.status-banner.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity 220ms ease, transform 220ms ease;
}

.status-banner.is-fading {
  opacity: 0;
  visibility: visible;
  transform: translateX(-50%) translateY(-8px);
}

.status-banner[data-tone="success"] {
  background: #17352b;
  color: #bbf4db;
  border: 1px solid rgba(126, 240, 197, 0.28);
}

.status-banner[data-tone="error"] {
  background: #3d1f24;
  color: #ffb8c0;
  border: 1px solid rgba(255, 123, 123, 0.24);
}

.table-shell {
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  overflow-anchor: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    rgba(13, 17, 26, 0.7);
}

.table-scroll {
  overflow: auto;
  max-height: calc(100vh - 340px);
  overflow-anchor: none;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable both-edges;
  scrollbar-width: thin;
  scrollbar-color: rgba(123, 144, 184, 0.72) rgba(255, 255, 255, 0.04);
  contain: layout paint;
}

.table-scroll::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.table-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-left: 1px solid rgba(255, 255, 255, 0.04);
}

.table-scroll::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
  background: linear-gradient(180deg, rgba(133, 150, 187, 0.92), rgba(91, 108, 146, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.table-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(155, 174, 214, 0.96), rgba(105, 124, 166, 0.96));
}

.table-scroll::-webkit-scrollbar-corner {
  background: rgba(255, 255, 255, 0.04);
}

.mobile-board {
  display: none;
}

.mobile-character-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--scope-card-border);
  background: linear-gradient(180deg, var(--scope-card-bg-top), var(--scope-card-bg-bottom));
  box-shadow: var(--scope-card-glow);
  transition: border-color var(--scope-shift-duration) var(--scope-shift-ease), background var(--scope-shift-duration) var(--scope-shift-ease), box-shadow var(--scope-shift-duration) var(--scope-shift-ease);
}

.mobile-character-card:last-child {
  border-bottom: 0;
}

.mobile-card-grid {
  --mobile-side-width: 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--mobile-side-width);
  grid-template-rows: auto auto auto;
  column-gap: 5px;
  row-gap: 6px;
  align-items: start;
}

.mobile-name-line,
.mobile-grid-cell {
  min-width: 0;
}

.mobile-name-line {
  grid-column: 1;
  grid-row: 1;
}

.mobile-grid-cell.is-job,
.mobile-grid-cell.is-stat {
  width: var(--mobile-side-width);
  min-width: var(--mobile-side-width);
  justify-self: end;
}

.mobile-grid-cell.is-job {
  grid-column: 3;
  grid-row: 1;
}

.mobile-group-line-0 {
  grid-column: 1;
  grid-row: 2;
}

.mobile-group-line-1 {
  grid-column: 1;
  grid-row: 3;
}

.mobile-stat-0 {
  grid-column: 3;
  grid-row: 2;
}

.mobile-stat-1 {
  grid-column: 3;
  grid-row: 3;
}

.mobile-name-cluster {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.mobile-account-name,
.mobile-inline-stat-label {
  color: var(--text-muted);
  font-size: 9px;
  white-space: nowrap;
}

.mobile-account-name,
.mobile-character-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-character-name {
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.mobile-side-job-chip {
  min-height: 22px;
  min-width: 0;
  max-width: none;
  width: 100%;
  padding: 0;
  font-size: 11px;
  border-radius: 0;
  justify-self: stretch;
  justify-content: flex-start;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--text);
  font-weight: 700;
}

.mobile-stage-chip-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  line-height: 1;
  transform: none;
  text-align: center;
}

.mobile-inline-stat {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  justify-self: stretch;
  width: 100%;
}

.mobile-inline-stat-control.stat-chip,
.mobile-inline-stat-control.stat-input-inline {
  min-width: 0;
  width: 100%;
  min-height: 24px;
  height: 24px;
  padding: 0;
  border-radius: 0;
  font-size: 11px;
  justify-content: flex-start;
  text-align: left;
  font-variant-numeric: tabular-nums;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.mobile-side-job-chip,
.mobile-inline-stat-label,
.mobile-inline-stat-control.stat-chip,
.mobile-inline-stat-control.stat-input-inline {
  padding-left: 0;
}

.mobile-group-lines {
  display: grid;
  gap: 4px;
}

.mobile-group-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.mobile-group-line-title {
  flex: 0 0 auto;
  width: 34px;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.mobile-group-action.character-group-action {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  font-size: 10px;
}

.mobile-group-line-chips {
  --mobile-chip-size: 22px;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 0 0 auto;
  min-height: var(--mobile-chip-size);
}

.mobile-group-regular-track {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  min-height: var(--mobile-chip-size);
}

.mobile-group-placeholder {
  width: var(--mobile-chip-size);
  min-width: var(--mobile-chip-size);
  height: var(--mobile-chip-size);
  flex: 0 0 var(--mobile-chip-size);
}

.mobile-group-chip-wrap {
  width: var(--mobile-chip-size);
  min-width: var(--mobile-chip-size);
  height: var(--mobile-chip-size);
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.mobile-group-weekend-slot {
  width: var(--mobile-chip-size);
  min-width: var(--mobile-chip-size);
  height: var(--mobile-chip-size);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 var(--mobile-chip-size);
  align-self: center;
}

.mobile-group-weekend-slot.is-empty {
  pointer-events: none;
}

.mobile-group-action.character-group-action,
.mobile-stage-chip {
  width: 22px;
  min-width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-sizing: border-box;
  align-self: center;
}

body.mobile-self-mode .hero {
  padding: 12px 14px;
  gap: 10px;
}

body.mobile-self-mode .hero-copy-block {
  gap: 6px;
}

body.mobile-self-mode .hero h1 {
  font-size: clamp(20px, 8vw, 34px);
}

body.mobile-self-mode .hero-summary-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  align-items: stretch;
  gap: 8px;
}

body.mobile-self-mode .hero-notice-panel,
body.mobile-self-mode .hero-cycle-panel,
body.mobile-self-mode .hero-progress-panel {
  width: auto;
  min-height: 96px;
  padding: 10px;
  border-radius: 20px;
}

body.mobile-self-mode .hero-notice-copy,
body.mobile-self-mode .summary-value-stack,
body.mobile-self-mode .hero-progress-panel {
  gap: 7px;
}

body.mobile-self-mode .hero-notice-copy,
body.mobile-self-mode .summary-value-stack,
body.mobile-self-mode .hero-progress-panel {
  justify-content: flex-start;
}

body.mobile-self-mode .hero-notice-label,
body.mobile-self-mode .hero-progress-panel .summary-label {
  font-size: 9px;
  letter-spacing: 0.1em;
  line-height: 1.1;
}

body.mobile-self-mode .hero-cycle-panel {
  min-width: 0;
}

body.mobile-self-mode .hero-progress-panel {
  min-height: 0;
}

body.mobile-self-mode .hero-progress-panel strong {
  font-size: clamp(27px, 9.2vw, 38px);
}

body.mobile-self-mode .hero-notice-input {
  min-height: 54px;
  font-size: clamp(16px, 4.9vw, 20px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

body.mobile-self-mode .cycle-range {
  min-height: 40px;
  gap: 6px;
  padding: 6px 8px;
}

  font-size: clamp(15px, 4.5vw, 18px);
  letter-spacing: -0.02em;
  font-size: clamp(14px, 4.9vw, 18px);
}

body.mobile-self-mode .cycle-range-separator {
  width: 10px;
  height: 10px;
}

body.mobile-self-mode .hero-progress-panel .summary-label {
  font-size: clamp(8px, 2.2vw, 9px);
  letter-spacing: 0.06em;
}

body.mobile-self-mode .summary-subvalue {
  font-size: 9px;
  line-height: 1.1;
}

body.mobile-self-mode .summary-subvalue .timer-major {
  font-size: 1.08em;
}

body.mobile-self-mode .summary-subvalue .timer-minor {
  font-size: 0.88em;
}

body.mobile-self-mode .board-panel {
  padding: 10px;
}

body.mobile-self-mode .table-shell {
  border-radius: 18px;
}

body.mobile-self-mode .board-header {
  display: none;
}

body.mobile-self-mode .mobile-group-action.character-group-action {
  display: none;
}

body.mobile-self-mode .mobile-group-line {
  gap: 4px;
}

.matrix-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  transform: translateZ(0);
}

.matrix-table thead th {
  position: sticky;
  z-index: 3;
  background:
    linear-gradient(180deg, rgba(44, 53, 75, 0.96), rgba(25, 31, 46, 0.98));
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  text-align: center;
}

.matrix-table thead tr.group-row th {
  top: 0;
  padding-top: 10px;
  padding-bottom: 10px;
}

.matrix-table thead tr.detail-row th {
  top: 41px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.matrix-table th,
.matrix-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

.matrix-table tbody tr:nth-child(odd) td {
  background: rgba(255, 255, 255, 0.018);
}

.matrix-table tbody tr:hover td {
  background: rgba(103, 168, 255, 0.08);
}

.sticky-col {
  position: sticky;
  z-index: 2;
  background: rgba(19, 24, 35, 0.985);
  background-clip: padding-box;
}

.sticky-head {
  z-index: 4;
  background: linear-gradient(180deg, rgba(44, 53, 75, 0.98), rgba(25, 31, 46, 1));
  background-clip: padding-box;
}

.fixed-head {
  vertical-align: middle;
}

.group-head {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.group-head.group-어비스 {
  background: linear-gradient(180deg, rgba(39, 73, 102, 0.98), rgba(24, 39, 59, 0.98));
  color: #9cd5ff;
}

.group-head.group-레이드 {
  background: linear-gradient(180deg, rgba(66, 56, 41, 0.98), rgba(37, 31, 22, 0.98));
  color: #ffd88a;
}

.dungeon-head {
  min-width: 86px;
  max-width: 86px;
  white-space: normal;
  line-height: 1.3;
  word-break: keep-all;
}

.dungeon-group-어비스 {
  color: #d8ecff;
}

.dungeon-group-레이드 {
  color: #fff1cf;
}

.sticky-account {
  left: 0;
  width: 146px;
  min-width: 146px;
  max-width: 146px;
}

.sticky-character {
  left: 146px;
  width: 176px;
  min-width: 176px;
  max-width: 176px;
}

.sticky-job {
  left: 322px;
  width: 108px;
  min-width: 108px;
  max-width: 108px;
}

.sticky-combat-power {
  left: 430px;
  width: 98px;
  min-width: 98px;
  max-width: 98px;
}

.sticky-magic-resistance {
  left: 528px;
  width: 104px;
  min-width: 104px;
  max-width: 104px;
}

.matrix-table tbody td.sticky-account {
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

.matrix-table tbody td.sticky-character,
.matrix-table tbody td.sticky-job,
.matrix-table tbody td.sticky-combat-power,
.matrix-table tbody td.sticky-magic-resistance {
  overflow: hidden;
}

.matrix-table tbody td.sticky-job,
.matrix-table tbody td.sticky-combat-power,
.matrix-table tbody td.sticky-magic-resistance {
  text-align: center;
}

.stat-chip {
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font: inherit;
  cursor: pointer;
}

.stat-chip.has-value {
  color: var(--text);
}

.stat-chip:hover,
.stat-chip:focus-visible {
  border-color: rgba(103, 168, 255, 0.48);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 3px rgba(103, 168, 255, 0.1);
  transform: translateY(-1px);
}

.stat-chip:disabled {
  cursor: default;
  opacity: 1;
}

.stat-input-inline {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(103, 168, 255, 0.42);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 10px;
  font: inherit;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 0 0 3px rgba(103, 168, 255, 0.1);
}

.stat-input-inline:focus {
  outline: none;
}

.metric-cell {
  text-align: center;
}

.metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 13px;
}

.metric-pill strong {
  color: var(--text);
  font-weight: 700;
}

.metric-pill small {
  color: var(--text-muted);
}

.job-chip,
.stage-chip {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  color: var(--text);
  border-radius: 12px;
  font: inherit;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.job-chip {
  min-width: 0;
  width: auto;
  max-width: 100%;
  padding: 10px 18px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--text-muted);
}

.job-chip.has-value {
  color: var(--text);
}

.stage-chip {
  min-width: 62px;
  height: 34px;
  padding: 0 8px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.job-chip:hover,
.job-chip:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(103, 168, 255, 0.48);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 3px rgba(103, 168, 255, 0.1);
}

.stage-chip:hover,
.stage-chip:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(103, 168, 255, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 3px rgba(103, 168, 255, 0.1);
}
.stage-chip[data-tone="none"] {
  color: var(--text-muted);
}

.stage-chip[data-tone="mixed"] {
  color: rgba(255, 255, 255, 0.92);
}

.stage-chip[data-tone="intro"] {
  background: linear-gradient(180deg, rgba(116, 72, 255, 0.24), rgba(116, 72, 255, 0.1));
  border-color: #7448ff;
  color: #b8a4ff;
}

.stage-chip[data-tone="hard"] {
  background: linear-gradient(180deg, rgba(243, 181, 63, 0.24), rgba(243, 181, 63, 0.1));
  border-color: #f3b53f;
  color: #ffd678;
}

.stage-chip[data-tone="very-hard"] {
  background: linear-gradient(180deg, rgba(255, 74, 20, 0.24), rgba(255, 74, 20, 0.1));
  border-color: #ff3d00;
  color: #ff8e68;
}

.stage-chip[data-tone="complete"] {
  background: linear-gradient(180deg, rgba(126, 240, 197, 0.24), rgba(126, 240, 197, 0.1));
  border-color: rgba(126, 240, 197, 0.42);
  color: var(--mint);
}

.stage-chip[data-tone="hell"] {
  background: linear-gradient(180deg, rgba(255, 74, 20, 0.24), rgba(255, 74, 20, 0.1));
  border-color: #ff3d00;
  color: #ff8e68;
}

.character-cell {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-content: stretch;
  column-gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

.character-group-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.character-group-action {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.8);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.character-group-action[data-group="어비스"] {
  color: #d8ecff;
}

.character-group-action[data-group="레이드"] {
  color: #fff1cf;
}

.character-group-action[data-group="어비스"][data-tone="none"] {
  background: rgba(29, 40, 58, 0.36);
  border-color: rgba(143, 170, 201, 0.12);
  color: rgba(193, 214, 237, 0.76);
}

.character-group-action[data-group="레이드"][data-tone="none"] {
  background: rgba(48, 42, 34, 0.36);
  border-color: rgba(197, 174, 128, 0.12);
  color: rgba(230, 216, 188, 0.74);
}

.character-group-action[data-tone="intro"] {
  background: linear-gradient(180deg, rgba(116, 72, 255, 0.24), rgba(116, 72, 255, 0.1));
  border-color: #7448ff;
  color: #b8a4ff;
}

.character-group-action[data-tone="hard"] {
  background: linear-gradient(180deg, rgba(243, 181, 63, 0.24), rgba(243, 181, 63, 0.1));
  border-color: #f3b53f;
  color: #ffd678;
}

.character-group-action[data-tone="very-hard"],
.character-group-action[data-tone="hell"] {
  background: linear-gradient(180deg, rgba(255, 74, 20, 0.24), rgba(255, 74, 20, 0.1));
  border-color: #ff3d00;
  color: #ff8e68;
}

.character-group-action[data-tone="complete"] {
  background: linear-gradient(180deg, rgba(126, 240, 197, 0.24), rgba(126, 240, 197, 0.1));
  border-color: rgba(126, 240, 197, 0.42);
  color: var(--mint);
}

.character-group-action[data-group="어비스"][data-tone="mixed"] {
  background: rgba(35, 51, 73, 0.46);
  border-color: rgba(156, 213, 255, 0.1);
  color: rgba(214, 232, 248, 0.82);
}

.character-group-action[data-group="레이드"][data-tone="mixed"] {
  background: rgba(57, 49, 36, 0.44);
  border-color: rgba(255, 216, 138, 0.1);
  color: rgba(244, 231, 206, 0.82);
}

.character-group-action:hover,
.character-group-action:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(103, 168, 255, 0.08);
}

.character-group-action.is-saving {
  opacity: 0.55;
}

.stage-chip.is-saving {
  opacity: 0.55;
}

.row-label {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.row-label strong {
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-label small {
  color: var(--text-muted);
  font-size: 12px;
}

@media (max-width: 1280px) {
  .sticky-col {
    position: static;
  }

  .sticky-account,
  .sticky-character,
  .sticky-job,
  .sticky-combat-power,
  .sticky-magic-resistance {
    left: auto;
  }
}

@media (max-width: 980px) {
  .shell {
    width: calc(100vw - 16px);
    margin: 8px auto;
    padding: 8px;
  }

  .hero,
  .board-panel,
  .toolbar,
  .summary-card {
    border-radius: 22px;
  }

  .hero,
  .board-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-side,
    .board-header-leading,
    .board-header-actions {
    width: 100%;
  }

  .hero-notice-panel {
    width: auto;
    min-height: 0;
  }

  .hero-side {
    align-items: stretch;
  }

    .board-header-leading {
      justify-content: space-between;
    }

  .hero-summary-stack {
    width: 100%;
    margin-left: 0;
  }

  .hero-cycle-panel {
    min-width: 0;
    max-width: none;
  }

  .stage-legend {
    justify-content: flex-start;
  }

  .hero-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .auth-panel,
  .auth-form,
  .inline-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .auth-form input {
    min-width: 0;
  }

  .summary-grid,
  .toolbar,
  .secondary-toolbar,
  .account-settings-layout,
  .account-settings-inline {
    grid-template-columns: 1fr;
  }

  .character-create-form {
    grid-template-columns: 1fr;
  }

  .character-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }

  .character-row-name {
    grid-column: 1 / -1;
  }

  .character-job-trigger,
  .character-inline-field,
  .character-row-actions,
  .character-row-button {
    width: 100%;
  }

  .character-row-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .character-number-field {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .character-stat-label {
    justify-self: flex-start;
  }

  .account-settings-sidebar,
  .account-settings-main {
    overflow: visible;
  }

  .job-picker-panel {
    width: min(760px, calc(100vw - 20px));
  }

  .character-create-panel {
    width: min(560px, calc(100vw - 20px));
  }

  .alias-editor-overlay {
    padding: 10px;
  }

  .job-picker-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body.mobile-self-mode .toolbar {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 8px;
  }

  .shell {
    width: calc(100vw - 8px);
    margin: 4px auto;
    padding: 4px;
  }

  .hero {
    padding: 18px 16px;
    gap: 14px;
  }

  .hero-notice-panel {
    padding: 8px;
    width: auto;
    max-width: none;
  }

  .hero-notice-panel,
  .hero-cycle-panel,
  .hero-progress-panel {
    min-height: 104px;
    border-radius: 22px;
  }

  .hero-notice-copy,
  .summary-value-stack,
  .hero-progress-panel {
    gap: 8px;
  }

  .hero-notice-copy,
  .summary-value-stack,
  .hero-progress-panel {
    justify-content: flex-start;
  }

  .hero-notice-label,
  .hero-progress-panel .summary-label {
    font-size: 10px;
    letter-spacing: 0.12em;
    line-height: 1.1;
  }

  .hero h1 {
    font-size: clamp(24px, 9.2vw, 42px);
  }

  .eyebrow {
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  .hero-cycle-panel,
  .hero-progress-panel {
    min-width: 0;
    padding: 12px;
  }

  .hero-progress-panel {
    justify-content: flex-start;
  }

  .hero-notice-input {
    min-height: 58px;
    padding: 0 4px;
    font-size: clamp(16px, 4.5vw, 19px);
    line-height: 1.08;
    letter-spacing: -0.02em;
  }

  .hero-progress-panel strong {
    font-size: clamp(32px, 11vw, 44px);
  }

  .cycle-range {
    min-height: 48px;
    padding: 8px 10px;
    gap: 6px;
  }

  .cycle-range-value {
    font-size: clamp(17px, 6.5vw, 24px);
  }

  .cycle-range-separator {
    width: 10px;
    height: 10px;
  }

  .hero-progress-panel .summary-label {
    font-size: clamp(8px, 2.4vw, 10px);
    letter-spacing: 0.08em;
  }

  .summary-subvalue {
    font-size: 11px;
    line-height: 1.1;
  }

  .toolbar,
  .board-panel {
    padding: 14px;
  }

  .toolbar {
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 10px;
  }

  .toolbar > * {
    min-width: 0;
  }

  .toolbar .user-filter-field,
  .toolbar .status-filter-field,
  .toolbar .sort-filter-field {
    display: none;
  }

  .scope-toggle-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 40px;
    width: 100%;
    padding: 3px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
  }

  .scope-toggle-group::before {
    display: none;
  }

  .scope-toggle-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    font-size: clamp(15px, 4.5vw, 18px);
    padding: 0 6px;
    letter-spacing: -0.02em;
    text-align: center;
  }

  .scope-toggle-button[aria-pressed="true"] {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 18px rgba(7, 12, 20, 0.18);
    color: var(--text);
  }

  .scope-toggle-button[aria-pressed="false"] {
    background: transparent;
    box-shadow: none;
  }

  .toolbar > .field {
    min-width: 0;
    gap: 0;
  }

  .toolbar > .field > span {
    display: none;
  }

  .toolbar .search-field,
  .toolbar .custom-select,
  .toolbar .custom-select-trigger,
  .toolbar input {
    min-width: 0;
  }

  .toolbar .custom-select-trigger,
  .toolbar input,
  .toolbar select {
    min-height: 40px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 12px;
  }

  .toolbar .search-field input {
    font-size: 16px;
  }

  .toolbar .custom-select-trigger {
    gap: 8px;
  }

  .toolbar .custom-select-trigger-label {
    font-size: 12px;
  }

  .toolbar .custom-select-trigger-icon {
    width: 8px;
    height: 8px;
  }

  .toolbar .scope-toggle-field {
    width: 100%;
  }

  .toolbar .search-field input::placeholder {
    font-size: 12px;
  }

  .summary-label,
  .summary-label,
  .board-subtitle,
  .board-meta {
    font-size: 12px;
  }

  .board-title {
    font-size: 16px;
  }

  .board-header {
    gap: 12px;
  }

  .board-header-actions,
  .status-banner-slot {
    width: 100%;
  }

  .stage-legend {
    gap: 8px;
    justify-content: flex-start;
  }

  .stage-legend-item {
    min-height: 34px;
    padding: 6px 12px;
  }


@media (max-width: 420px) {
  body.mobile-self-mode .toolbar {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 5px;
  }

  .toolbar {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 5px;
    padding: 8px;
  }

  .scope-toggle-button {
    padding: 0 6px;
    font-size: 10px;
  }

  .toolbar .custom-select-trigger,
  .toolbar input,
  .toolbar select {
    min-height: 38px;
    padding: 9px 10px;
    font-size: 11px;
  }

  .toolbar .search-field input {
    font-size: 16px;
  }

  .toolbar .custom-select-trigger-label,
  .toolbar .search-field input::placeholder {
    font-size: 11px;
  }
}
  .job-picker-list {
    grid-template-columns: 1fr;
  }

  .table-scroll {
    display: none;
  }

  .mobile-board {
    display: flex;
    flex-direction: column;
  }

  body.mobile-self-mode .board-header {
    gap: 0;
  }

  .mobile-character-card {
    padding: 9px 10px;
    gap: 7px;
  }

  .mobile-name-cluster {
    gap: 4px;
  }

  .mobile-character-name {
    font-size: 13px;
  }

  .mobile-card-grid {
    --mobile-weekend-size: 20px;
    --mobile-side-width: 92px;
  }

  .mobile-group-line-chips {
    --mobile-chip-size: 20px;
  }

  .mobile-side-job-chip {
    width: 100%;
    font-size: 10px;
  }

  .mobile-group-action.character-group-action,
  .mobile-stage-chip {
    width: 20px;
    min-width: 20px;
    height: 20px;
    font-size: 9px;
    border-radius: 6px;
  }

  .mobile-inline-stat-control.stat-chip,
  .mobile-inline-stat-control.stat-input-inline {
    width: 100%;
    min-width: 0;
  }

  .mobile-inline-stat {
    grid-template-columns: 9px minmax(0, 1fr);
  }

  .mobile-group-line-title {
    width: 30px;
    font-size: 10px;
  }

  .mobile-group-line-chips {
    gap: 4px;
  }

  .status-banner {
    top: 10px;
    width: min(420px, calc(100vw - 20px));
    padding: 9px 12px;
    font-size: 12px;
  }

  body.mobile-self-mode .hero {
    padding: 10px 12px;
    gap: 8px;
  }

  body.mobile-self-mode .hero-summary-stack {
    gap: 6px;
  }

  body.mobile-self-mode .cycle-range {
    min-height: 38px;
    gap: 5px;
    padding: 6px 7px;
  }

  body.mobile-self-mode .cycle-range-value {
    font-size: clamp(13px, 4.6vw, 17px);
  }

  body.mobile-self-mode .cycle-range-separator {
    width: 9px;
    height: 9px;
  }

  body.mobile-self-mode .summary-subvalue {
    font-size: 10px;
  }

  body.mobile-self-mode .summary-subvalue .timer-major {
    font-size: 1.06em;
  }

  body.mobile-self-mode .summary-subvalue .timer-minor {
    font-size: 0.86em;
  }

  body.mobile-self-mode .board-panel {
    padding: 8px;
  }
}