.shell-root { max-width: 720px; margin: 0 auto; padding: 40px 16px 20px; }
.shell-root:empty { display: none; }
.shell-root .panel { padding: 24px; }
.shell-root h1 { font-size: clamp(28px, 7vw, 44px); margin-bottom: 10px; }
.shell-root p { margin: 0 0 12px; }
.shell-root .eyebrow { margin-bottom: 8px; }
.shell-root form { display: grid; gap: 4px; margin-top: 8px; }
.shell-root .btn { justify-self: start; margin-top: 12px; text-decoration: none; display: inline-block; }
.shell-notice { border-left: 3px solid var(--warn); background: rgba(232, 163, 58, 0.08); padding: 10px 14px; border-radius: 6px; margin: 14px 0; }
.shell-notice.err { border-left-color: var(--bad); background: rgba(224, 72, 62, 0.1); color: #ffb0a8; }
.shell-skel { height: 120px; border-radius: var(--radius); background: linear-gradient(90deg, var(--panel), var(--panel-2), var(--panel)); background-size: 200% 100%; animation: shell-pulse 1.4s linear infinite; }
@keyframes shell-pulse { to { background-position: -200% 0; } }
.shell-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin: 0 0 0 auto; padding: 0; }
.shell-foot { padding-top: 24px; }
.shell-foot a { color: var(--gold); }
.key-input-row { display: flex; align-items: stretch; gap: 8px; min-width: 0; }
.key-input-row input { flex: 1; min-width: 0; }
form .key-input-row .btn { flex: 0 0 auto; margin: 0; white-space: nowrap; }
@media (max-width: 680px) { .shell-root { padding-top: 24px; } .shell-root .btn { justify-self: stretch; text-align: center; } }
@media (prefers-reduced-motion: reduce) { .shell-skel { animation: none; } }
.shell-root .panel + .panel { margin-top: 18px; }
.shell-fs { border: 0; padding: 0; margin: 0; min-width: 0; }
.shell-fs:disabled { opacity: 0.5; }
.shell-fs .seg { margin-bottom: 8px; }
.faction-radios { border: 0; padding: 0; margin: 0; min-width: 0; }
.faction-options { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.faction-option { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; }
.faction-option input[type="radio"] {
  appearance: auto; width: 18px; height: 18px; min-height: 0;
  padding: 0; margin: 0; accent-color: var(--gold);
}
.faction-option input[type="radio"]:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; box-shadow: none; }
.faction-radios:disabled .faction-option, .shell-fs:disabled .faction-option { cursor: not-allowed; }
.invite-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.shell-settings .invite-actions .btn { margin-top: 0; }
#s-invite-link { font-size: 14px; }
.ts-box { margin: 12px 0 0; min-height: 4px; }
.shell-root .check { display: flex; gap: 10px; align-items: center; margin: 14px 0 0; }
.shell-root .check input { width: auto; }
.cred { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; margin: 12px 0; padding: 12px; border: 1px dashed var(--gold-dim); border-radius: 8px; background: rgba(0, 0, 0, 0.3); }
.cred .label { grid-column: 1 / -1; margin: 0; }
.cred-val { color: var(--gold-2); font: 700 17px/1.4 var(--body); overflow-wrap: anywhere; user-select: all; }
.shell-root .cred .btn { margin: 0; }
.shell-det { margin-top: 20px; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.shell-det summary { cursor: pointer; color: var(--gold); font-weight: 700; }
.shell-list { margin: 8px 0; padding-left: 20px; }
.shell-settings { max-width: 720px; margin: 0 auto; }
.shell-settings .panel { margin-bottom: 18px; }
.shell-settings form { display: grid; gap: 4px; }
.shell-settings .btn { justify-self: start; margin-top: 12px; }
.danger-zone { border-color: #6d2420; }
.shell-bar .form-msg { flex: 0 1 auto; align-self: center; margin: 0; font-size: 14px; }
@media (max-width: 680px) { .cred { grid-template-columns: 1fr; } .shell-settings .btn { justify-self: stretch; } .shell-bar { flex-wrap: wrap; } }
.shell-root .prose h2 { margin-top: 20px; }
.shell-root .demo { pointer-events: none; user-select: none; }
.shell-root .demo .frames { grid-template-columns: 1fr; }
.shell-foot { flex-wrap: wrap; align-items: center; }
.shell-foot a { color: var(--gold); }

/* Unified UX pass: landing, login, recovery, settings */
.shell-root { padding: 32px 16px 16px; display: grid; gap: 16px; }
.shell-root .panel, .shell-settings .panel { padding: 24px; margin: 0; box-shadow: none; background: var(--panel); }
.shell-root .panel + .panel { margin-top: 0; }
.shell-settings { display: grid; gap: 16px; }
.shell-settings .panel { margin-bottom: 0; }
.shell-root h1 { font-size: clamp(26px, 6vw, 36px); margin-bottom: 8px; }
.shell-root p { margin-bottom: 12px; }
.shell-root form, .shell-settings form { gap: 8px; }
.shell-root .btn, .shell-settings .btn { margin-top: 12px; min-height: 40px; }
.key-input-row { gap: 8px; }
.key-input-row .btn, form .key-input-row .btn { min-height: 40px; }
.shell-notice { padding: 12px 16px; margin: 16px 0; }
.shell-det { margin-top: 24px; padding-top: 12px; }
.shell-det summary { min-height: 36px; display: flex; align-items: center; }
.cred { padding: 12px 16px; margin: 16px 0; }
.danger-zone { border-color: #6d2420; background: var(--panel); }
.shell-bar { align-items: center; }
.shell-bar .btn { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.banner-inner .titles { flex: 1; min-width: 0; }
.guild-name-home { display: block; text-decoration: none; }
.guild-name-home h1 { overflow-wrap: anywhere; }
.banner .crest:focus-visible, .guild-name-home:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 4px; border-radius: 4px; }
.shell-bar .form-msg { flex-basis: 100%; text-align: right; }
#shell-bar-msg:empty { display: none; }
@media (max-width: 680px) {
  .banner-inner { flex-wrap: wrap; }
  .banner-inner .shell-bar { width: 100%; justify-content: space-between; }
}
.shell-root .demo { opacity: .85; }
.shell-skel { height: 96px; }
@media (max-width: 680px) { .shell-root { padding: 16px 12px; } .shell-root .panel, .shell-settings .panel { padding: 16px; } }
.shell-more > summary, .danger-det > summary { font: 700 15px/1 var(--head); letter-spacing: .04em; color: var(--gold-2); min-height: 40px; }
.shell-more { border-top: 1px solid var(--line-soft); }
.shell-more[open] > .panel { margin-top: 16px; }
.danger-det { border-top-color: #6d2420; }
.danger-det[open] > .panel { margin-top: 16px; }
