.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 246, 251, .82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(243, 191, 215, .7);
}

.site-header__inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.03em;
}

.brand img {
  width: 42px;
  height: 42px;
}

.navline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navlink {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 800;
}

.navlink:hover,
.navlink.is-active {
  color: var(--hot);
  background: var(--surface-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 900;
  letter-spacing: -.01em;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--pink-2));
  box-shadow: 0 12px 28px rgba(239, 62, 145, .26);
}

.btn-primary:hover {
  box-shadow: 0 16px 32px rgba(239, 62, 145, .33);
}

.btn-soft {
  background: var(--surface-2);
  border-color: var(--line-2);
  color: var(--hot);
}

.btn-ghost {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, .64);
  color: var(--ink);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: 10px;
}

.btn-wide {
  width: 100%;
}

.btn[disabled],
.btn.is-loading {
  opacity: .72;
  cursor: progress;
}

.card {
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.panel {
  padding: 18px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title h1,
.section-title h2,
.section-title h3 {
  margin: 0;
  letter-spacing: -.04em;
}

.section-title p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.field {
  display: grid;
  gap: 8px;
}

.field span,
.field-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.fieldbox {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.82);
  border-radius: var(--radius);
  transition: box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.fieldbox:focus-within {
  border-color: var(--pink-2);
  box-shadow: 0 0 0 4px rgba(239, 62, 145, .10);
  background: #fff;
}

.fieldbox textarea {
  padding: 13px 0;
}

.form-grid {
  display: grid;
  gap: 14px;
}

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

.notice {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  color: var(--muted);
  line-height: 1.45;
}

.notice strong {
  color: var(--ink);
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  display: grid;
  gap: 10px;
}

.toast {
  width: min(360px, calc(100vw - 36px));
  padding: 13px 14px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  color: var(--ink);
}

.toast small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.custom-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.custom-toggle__track {
  width: 46px;
  height: 28px;
  padding: 3px;
  border-radius: 14px;
  background: #f5d5e4;
  border: 1px solid var(--line);
  transition: background .18s ease;
}

.custom-toggle__knob {
  width: 20px;
  height: 20px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(80, 15, 45, .15);
  transition: transform .18s ease;
}

.custom-toggle[aria-checked="true"] .custom-toggle__track {
  background: linear-gradient(135deg, var(--pink), var(--pink-2));
}

.custom-toggle[aria-checked="true"] .custom-toggle__knob {
  transform: translateX(18px);
}

.dropdown {
  position: relative;
}

.dropdown__button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: #fff;
  font-weight: 900;
}

.dropdown__menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  display: none;
  padding: 7px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: #fff;
  box-shadow: var(--shadow);
}

.dropdown.is-open .dropdown__menu {
  display: grid;
  gap: 4px;
}

.dropdown__item {
  text-align: left;
  padding: 10px 11px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 800;
}

.dropdown__item:hover,
.dropdown__item.is-selected {
  color: var(--hot);
  background: var(--surface-2);
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--surface-3);
  border: 1px solid var(--line-2);
}

.avatar-lg {
  width: 94px;
  height: 94px;
  border-radius: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.74);
  color: var(--muted);
  font-weight: 900;
  font-size: 13px;
}

.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

.empty strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  margin-bottom: 6px;
}

.notice span {
  display: block;
  margin-top: 4px;
}

.notice code {
  display: block;
  margin-top: 10px;
  padding: 10px 11px;
  border-radius: 10px;
  background: rgba(59, 18, 39, .06);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.notice-error {
  background: #fff1f5;
  border-color: #ffb4cd;
  color: #7c2945;
}

.notice-error strong {
  color: #c5165a;
}

.notice-success {
  background: #fff7fb;
  border-color: #ffc8df;
}
