:root {
  --bg: #0b1118;
  --panel: #121a24;
  --panel-2: #17212d;
  --line: #263241;
  --text: #edf2f7;
  --muted: #95a3b8;
  --accent: #42d9c8;
  --accent-soft: rgba(66, 217, 200, 0.14);
  --danger: #f87171;
  --warning: #fbbf24;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.app-shell { min-height: 100vh; background: linear-gradient(180deg, rgba(11,17,24,0.96), rgba(11,17,24,1)); }
.sticky-shell {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 16px 12px;
  background: rgba(11, 17, 24, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(38, 50, 65, 0.85);
}
.tab-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
}

.topbar-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.profile-slot {
  display: none;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}
.profile-slot.is-visible { display: flex; }
.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  max-width: min(320px, 42vw);
  border: 1px solid rgba(66, 217, 200, 0.28);
  background: rgba(18, 26, 36, 0.96);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 10px 6px 6px;
  overflow: hidden;
}
.profile-avatar,
.profile-avatar-fallback {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  flex: 0 0 34px;
}
.profile-avatar {
  object-fit: cover;
  background: #0f1721;
  border: 1px solid rgba(38, 50, 65, 0.92);
}
.profile-avatar-fallback {
  display: grid;
  place-items: center;
  background: #0f1721;
  border: 1px solid rgba(38, 50, 65, 0.92);
  font-weight: 700;
}
.profile-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.identity-row.is-hidden { display: none; }
.tab-btn, .btn {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 14px;
  min-height: 44px;
}
.tab-btn.active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(66, 217, 200, 0.32);
  background: rgba(22, 34, 48, 0.95);
}
.identity-row {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(220px, 1fr) minmax(220px, 1fr) auto auto;
  gap: 12px;
  margin-top: 12px;
  align-items: center;
}
.identity-notice,
input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
}
.identity-notice {
  padding: 12px 14px;
  color: #b7f7ee;
}
.identity-notice.warn {
  color: #cdeffd;
  border-color: rgba(66, 217, 200, 0.26);
}
.identity-notice.ok {
  color: #b7f7ee;
  border-color: rgba(66, 217, 200, 0.38);
}
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
}
textarea { resize: vertical; }
.btn.secondary { background: var(--panel-2); color: var(--text); }
.btn.primary {
  background: rgba(255,255,255,0.96);
  color: #0f1721;
  border-color: rgba(255,255,255,0.84);
}
.btn.danger {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.12);
}
.btn:disabled,
.create-choice:disabled { opacity: 0.55; cursor: not-allowed; }
.link-btn {
  border: none;
  background: transparent;
  color: #59d8ff;
  padding: 0;
}
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(15, 23, 33, 0.25);
  border-top-color: rgba(15, 23, 33, 0.9);
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: -2px;
}
.hidden { display: none !important; }
@keyframes spin { to { transform: rotate(360deg); } }

.content-shell { padding: 18px 16px 32px; }
.page-head h1 { margin: 0 0 18px; font-size: 22px; }
.section-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px 20px;
}
.section-title-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-card h2 { margin: 0; font-size: 18px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-lg { display: flex; flex-direction: column; gap: 20px; }
.grid-2, .manage-grid, .dashboard-grid, .create-grid {
  display: grid;
  gap: 16px;
}
.grid-2, .create-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.manage-grid, .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.actions.compact { gap: 8px; }
.notice {
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.1);
  color: #ffdf94;
  border-radius: 16px;
  padding: 12px 14px;
}
.notice.warn { background: rgba(251, 191, 36, 0.1); }
.empty {
  border: 1px dashed rgba(149, 163, 184, 0.3);
  border-radius: 16px;
  padding: 16px;
  color: var(--muted);
}
.empty.small { padding: 12px; }
.muted { color: var(--muted); }
.mini { font-size: 12px; }
.recruit-list { display: flex; flex-direction: column; gap: 14px; }
.recruit-card, .owned-card, .joined-card {
  background: var(--panel-2);
  border: 1px solid rgba(38, 50, 65, 0.92);
  border-radius: 18px;
  padding: 16px;
}
.recruit-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.owner-mark {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #0f1721;
  border: 1px solid var(--line);
  font-weight: 700;
}
.owner-meta { min-width: 0; }
.owner-name, .game-name { font-weight: 700; }
.owner-name, .game-name { font-size: 18px; }
.game-name { margin-bottom: 8px; }
.state-badges { margin-left: auto; }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: #233142;
  color: #d5e6f7;
}
.badge.ok { background: rgba(66, 217, 200, 0.16); color: #aef5eb; }
.badge.warn { background: rgba(251, 191, 36, 0.14); color: #ffe198; }
.badge.soft { background: #223244; color: #cbe2ff; }
.quota-row, .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.create-choice {
  min-height: 104px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  padding: 18px;
  text-align: left;
}
.create-choice span { display: block; font-weight: 700; margin-bottom: 8px; }
.create-choice small { color: var(--muted); display: block; }
.kv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--panel-2);
  border: 1px solid rgba(38, 50, 65, 0.92);
}
.setting-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}
.checkbox-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  padding: 8px 0;
  font-weight: 600;
}
.checkbox-row input { width: 18px; height: 18px; accent-color: #8b2be2; }
.setting-toggle-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.setting-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--panel-2);
  border: 1px solid rgba(38, 50, 65, 0.92);
}
.setting-toggle-row strong {
  display: block;
  line-height: 1.45;
}
.setting-toggle-row input {
  width: 18px;
  height: 18px;
  accent-color: #8b2be2;
  flex: 0 0 auto;
}
.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
}
.notification-settings-card { min-height: 100%; }
.applicant-list { display: flex; flex-direction: column; gap: 10px; }
.applicant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(15, 23, 33, 0.55);
  border: 1px solid rgba(38, 50, 65, 0.92);
}
.report-row {
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--panel-2);
  border: 1px solid rgba(38, 50, 65, 0.92);
}
.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  min-width: 220px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 33, 0.95);
  border: 1px solid rgba(38, 50, 65, 0.92);
  box-shadow: 0 14px 40px rgba(0,0,0,0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { border-color: rgba(66, 217, 200, 0.42); }
.toast.error { border-color: rgba(248, 113, 113, 0.42); }

@media (max-width: 1100px) {
  .identity-row {
    grid-template-columns: 1fr 1fr 1fr auto;
  }
}

@media (max-width: 900px) {
  .identity-row,
  .grid-2,
  .manage-grid,
  .dashboard-grid,
  .create-grid {
    grid-template-columns: 1fr;
  }
  .section-title-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .sticky-shell {
    padding: calc(env(safe-area-inset-top, 0px) + 6px) 10px 10px;
  }
  .content-shell {
    padding: 14px 10px 24px;
  }
  .tab-btn, .btn {
    padding: 10px 12px;
    min-height: 42px;
    border-radius: 12px;
  }
  .identity-notice, input, select, textarea {
    border-radius: 12px;
  }
  .section-card {
    padding: 16px;
    border-radius: 18px;
  }
}

.identity-row input{min-width:0}.identity-row #userIdInput{flex:1 1 220px}.identity-row #displayNameInput{flex:1 1 260px}
@media (max-width: 768px){.sticky-shell{top:0}.identity-row{grid-template-columns:1fr}.identity-notice{grid-column:1}.identity-row #saveIdentityBtn,.identity-row #dmVerifyBtn{width:100%}}

.dm-verify-btn{touch-action:manipulation;pointer-events:auto;position:relative;z-index:2}
.dm-verify-btn.is-loading{opacity:.75}

.dm-verify-btn {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}


.app-shell.embedded-mobile {
  padding-top: calc(env(safe-area-inset-top, 0px) + 52px);
}

@media (max-width: 640px) {
  .app-shell.embedded-mobile {
    padding-top: calc(env(safe-area-inset-top, 0px) + 58px);
  }
  .tab-row { gap: 8px; }
  .tab-btn, .btn {
    padding: 9px 10px;
    min-height: 40px;
  }
  .identity-row {
    gap: 10px;
    margin-top: 10px;
  }
  .identity-notice {
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.45;
  }
}

body.drawer-open { overflow: hidden; }
.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font-size: 22px;
}
.side-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 82vw);
  background: rgba(11, 17, 24, 0.98);
  border-right: 1px solid var(--line);
  transform: translateX(-100%);
  transition: transform .2s ease;
  z-index: 80;
  padding: 16px;
}
.side-drawer.open { transform: translateX(0); }
.side-drawer-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; }
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 70;
}
.drawer-backdrop.show { opacity: 1; pointer-events: auto; }
.drawer-nav { display:flex; flex-direction:column; gap:10px; }
.drawer-link {
  width: 100%; text-align: left; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); border-radius: 14px; padding: 12px 14px;
}
.drawer-link.active { border-color: var(--accent); }
.priority-stack, .status-card-grid, .game-count-grid { display:grid; gap:14px; }
.priority-card {
  display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 18px; border-radius:18px; border:1px solid var(--line); background: var(--panel);
}
.priority-card.warn { border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.08); }
.game-count-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.game-count-card {
  display:flex; flex-direction:column; gap:8px; align-items:flex-start; padding:16px; border-radius:18px; border:1px solid var(--line); background: var(--panel-2); color: var(--text);
}
.status-card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.home-status-grid { display:grid; gap:14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-status-card, .home-status-detail-card { padding:16px; border-radius:18px; border:1px solid var(--line); background: var(--panel-2); display:flex; align-items:center; justify-content:space-between; gap:14px; }
.home-status-count { font-size: 28px; font-weight: 800; line-height: 1.1; margin-top: 6px; }
.home-status-preview { color: var(--muted); font-size: 13px; margin-top: 8px; line-height: 1.45; }
.home-status-modal .stack-lg { margin-top: 8px; }
.owner-inline { display:flex; align-items:center; gap:10px; }
.owner-mark.small { width: 38px; height: 38px; font-size: 14px; }
.owner-name.small { font-size: 15px; }
@media (max-width: 900px) {
  .game-count-grid, .status-card-grid, .home-status-grid, .settings-layout { grid-template-columns: 1fr; }
  .priority-card { flex-direction: column; align-items: stretch; }
}
@media (min-width: 901px) {
  .menu-toggle, .side-drawer, .drawer-backdrop { display: none; }
}
@media (max-width: 900px) {
  .tab-row { display: none; }
}

.dashboard-group-stack { display:flex; flex-direction:column; gap:16px; }
.dashboard-group { border:1px solid var(--line); border-radius:20px; background: var(--panel); overflow:hidden; }
.dashboard-group-toggle { width:100%; border:0; background:transparent; color:var(--text); cursor:pointer; padding:18px 20px; display:flex; align-items:flex-start; justify-content:space-between; gap:16px; text-align:left; }
.dashboard-group-summary { display:flex; flex-direction:column; gap:6px; }
.dashboard-group-summary-help { font-size:13px; line-height:1.6; font-weight:500; }
.dashboard-group-caret { font-size:24px; line-height:1; color:var(--muted); }
.dashboard-group-body { padding: 0 20px 20px; display:flex; flex-direction:column; gap:16px; }
.dashboard-group-help-box { padding:14px 16px; border-radius:16px; background:rgba(66,217,200,.08); border:1px solid rgba(66,217,200,.18); }
.dashboard-group-help-box strong { display:block; margin-bottom:6px; }
.dashboard-group-help { margin: 0; line-height: 1.7; }
.row-editor-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.row-editor-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.row-editor-item.triple {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .75fr) minmax(0, 1fr) auto;
}
.row-editor-item input,
.row-editor-item select {
  width: 100%;
}
.btn.subtle {
  background: rgba(255,255,255,.04);
}
.dashboard-two-col { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:14px; }
.nested-card { background: rgba(15,23,33,.42); }
@media (max-width: 900px) { .dashboard-two-col { grid-template-columns: 1fr; } }
.mypage-primary-grid { align-items: stretch; }
.profile-hero-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
}
.mypage-avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(38, 50, 65, 0.92);
  background: #0f1721;
}
.mypage-avatar.fallback {
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
}
.profile-hero-meta { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.profile-hero-name { font-size: 24px; font-weight: 800; }
.profile-hero-dept {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.profile-hero-dept strong { color: var(--text); }
.intro-summary-card { position: relative; }
.intro-summary-block { display: flex; flex-direction: column; gap: 12px; }
.intro-row { display: flex; flex-direction: column; gap: 8px; }
.intro-label { font-size: 13px; color: var(--muted); }
.intro-text-card {
  min-height: 112px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--panel-2);
  border: 1px solid rgba(38, 50, 65, 0.92);
  line-height: 1.65;
  white-space: pre-wrap;
}
.actions.end { justify-content: flex-end; }
.actions.spread { justify-content: space-between; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(66, 217, 200, 0.25);
  background: rgba(66, 217, 200, 0.08);
  color: var(--text);
  font-size: 13px;
}
.pill.removable {
  background: rgba(66, 217, 200, 0.12);
}
.social-card { overflow: hidden; }
.orbit-animated .ring-one { animation: orbitSpinSlow 96s linear infinite; }
.orbit-animated .ring-two { animation: orbitSpinSlowReverse 124s linear infinite; }
.orbit-animated .ring-one-node { animation: orbitFloat 7.6s ease-in-out infinite; }
.orbit-animated .ring-two-node { animation: orbitFloat 8.8s ease-in-out infinite; }
.orbit-animated .ring-one-node .orbit-avatar { animation: orbitKeepUpright 96s linear infinite; }
.orbit-animated .ring-two-node .orbit-avatar { animation: orbitKeepUprightReverse 124s linear infinite; }
.social-orbit-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 330px;
}
.social-orbit {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1 / 1;
}
.orbit-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  border: 1px dashed rgba(66, 217, 200, 0.22);
  transform: translate(-50%, -50%);
}
.ring-one { width: 240px; height: 240px; }
.ring-two { width: 308px; height: 308px; opacity: .45; }
.orbit-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 128px;
  height: 128px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(66, 217, 200, 0.16), rgba(66, 217, 200, 0.08));
  border: 1px solid rgba(66, 217, 200, 0.35);
  display: grid;
  place-items: center;
  padding: 10px;
}
.orbit-center-avatar { width: 88px; height: 88px; border-radius: 999px; object-fit: cover; border: 1px solid rgba(38, 50, 65, 0.92); background: #0f1721; }
.orbit-center-avatar-fallback { display: grid; place-items: center; font-size: 28px; font-weight: 800; color: var(--text); }
.orbit-node {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  text-align: center;
  margin-left: 0;
  margin-top: 0;
  overflow: visible;
}
.orbit-node-button { background: transparent; border: 0; padding: 0; cursor: pointer; overflow: visible; }
.orbit-node-button.is-selected .orbit-avatar { box-shadow: 0 0 0 2px rgba(66, 217, 200, .65), 0 0 24px rgba(66, 217, 200, .28); }
.orbit-avatar {
  width: 44px;
  height: 44px;
  margin: 0;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--panel-2);
  border: 1px solid rgba(38, 50, 65, 0.92);
  font-weight: 800;
}
.orbit-name { font-size: 12px; font-weight: 700; line-height: 1.2; }
.orbit-meta { font-size: 11px; color: var(--muted); margin-top: 4px; }
.selectable-chip.active, .selectable-chip.is-selected, .chip.active, .chip.is-selected { background: rgba(66, 217, 200, 0.22); border-color: rgba(66, 217, 200, 0.65); color: #d9fffb; box-shadow: inset 0 0 0 1px rgba(66, 217, 200, .32); }
.action-log-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.action-log-card {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--panel-2);
  border: 1px solid rgba(38, 50, 65, 0.92);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.action-log-time { font-size: 12px; color: var(--muted); }
.action-log-label { font-weight: 700; line-height: 1.4; }
.action-log-detail { color: var(--muted); font-size: 12px; min-height: 18px; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  z-index: 90;
}
.modal-card {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  z-index: 91;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 24px 72px rgba(0,0,0,.45);
}
.profile-editor-modal textarea { min-height: 140px; }
.profile-modal-field {
  padding: 14px;
  border-radius: 18px;
  background: rgba(15, 23, 33, 0.55);
  border: 1px solid rgba(38, 50, 65, 0.92);
}
.field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.picker-chips { margin-bottom: 0; }
.custom-add-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
@media (max-width: 900px) {
  .action-log-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .row-editor-item,
  .row-editor-item.triple {
    grid-template-columns: 1fr;
  }
  .profile-hero-card {
    align-items: flex-start;
    padding: 16px;
  }
  .mypage-avatar {
    width: 60px;
    height: 60px;
  }
  .profile-hero-name { font-size: 20px; }
  .social-orbit-wrap { min-height: 280px; }
  .ring-one { width: 190px; height: 190px; }
  .ring-two { width: 246px; height: 246px; }
  .orbit-center { width: 108px; height: 108px; }
  .orbit-node { width: 0; }
  .modal-card {
    top: auto;
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-height: calc(100vh - 24px);
    transform: none;
    border-radius: 20px;
  }
}


.boot-splash {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: #05070b;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity .28s ease, visibility .28s ease;
}
.boot-splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.boot-splash-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #05070b;
}
.boot-splash-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,.52));
}
.boot-splash-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 20px;
}
.boot-splash-copy strong {
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: .04em;
}
.boot-splash-copy span {
  color: rgba(255,255,255,.82);
  font-size: 14px;
}
.social-placeholder-wrap {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.social-placeholder-image {
  width: min(100%, 340px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  opacity: .92;
}
.social-placeholder-note {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.orbit-node-button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: inherit;
}
.orbit-node-button.is-selected .orbit-avatar {
  border-color: rgba(66, 217, 200, 0.72);
  box-shadow: 0 0 0 4px rgba(66, 217, 200, 0.16);
}
.orbit-avatar {
  overflow: hidden;
}
.orbit-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.orbit-avatar-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}
.social-selected-card {
  margin-top: 6px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(15, 23, 33, 0.55);
  border: 1px solid rgba(38, 50, 65, 0.92);
}
.section-title-row.compact {
  align-items: center;
}


.ring-one-node .orbit-avatar {
  width: 46px;
  height: 46px;
}
.ring-two-node {
  width: 0;
}
.ring-two-node .orbit-avatar {
  width: 36px;
  height: 36px;
  margin-bottom: 5px;
}
.ring-two-node .orbit-name {
  font-size: 11px;
}
.ring-two-node .orbit-meta {
  font-size: 10px;
}
.orbit-node-placeholder {
  color: var(--muted);
  cursor: default;
}
.orbit-avatar-placeholder {
  padding: 2px;
  background: rgba(255,255,255,.04);
}
.orbit-avatar-placeholder .orbit-avatar-image {
  object-fit: contain;
}
.has-no-second-ring .ring-one {
  width: 248px;
  height: 248px;
}
@media (max-width: 640px) {
  .ring-two-node {
    width: 62px;
  }
  .ring-two-node .orbit-avatar {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 640px) {
  .setting-toggle-row, .home-status-card, .home-status-detail-card { align-items: flex-start; flex-direction: column; }
  .setting-toggle-row input { align-self: flex-end; }
}


@keyframes orbitSpinSlow { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes orbitSpinSlowReverse { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(-360deg); } }
@keyframes orbitKeepUpright { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(-360deg); } }
@keyframes orbitKeepUprightReverse { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes orbitFloat { 0%,100% { margin-top: 0; } 50% { margin-top: -4px; } }

@keyframes orbitPulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.06); }
}
