:root {
  color-scheme: light;
  --bg: #071e39;
  --bg-soft: #0e3158;
  --card: rgba(12, 48, 86, 0.96);
  --gold: #f2be3f;
  --gold-soft: #ffdc79;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f6f8fb;
  --muted: #a4b4c5;
  --input: #f5f7fb;
  --accent: #38a7ff;
  --accent-soft: #66d3ff;
  --danger: #ff6d6d;
  --shadow: 0 20px 60px rgba(7, 20, 39, 0.35);
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-md: 15px;
  --fs-lg: 17px;
  --fs-xl: 22px;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

html {
  width: 100%;
  color-scheme: light;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(85, 180, 255, 0.25), transparent 32%),
    radial-gradient(circle at bottom right, rgba(166, 218, 174, 0.22), transparent 30%),
    linear-gradient(180deg, #eef7ff 0%, #d9ecfe 45%, #c2d9ee 100%);
  color: var(--text);
  font-size: var(--fs-md);
}

.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.phone-frame {
  width: min(100%, 430px);
  min-height: calc(100vh - 32px);
  min-height: calc(100dvh - 32px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  background: linear-gradient(180deg, rgba(5, 20, 38, 0.97), rgba(9, 40, 73, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 18px 18px;
  background: rgba(2, 15, 30, 0.76);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.topbar h1,
.hero-card h2,
.notice-card h3,
.sheet-head h2,
.dashboard-title,
.home-copy-card h2 {
  margin: 0;
}

.topbar h1 {
  font-size: 30px;
  line-height: 1.1;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 700;
}

.switch-btn,
.ghost-btn,
.secondary-btn,
.inline-btn,
.seg-btn,
.primary-btn {
  cursor: pointer;
}

.switch-btn,
.ghost-btn {
  min-height: 48px;
  border: 1px solid rgba(143, 207, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  color: var(--text);
  padding: 0 16px;
  border-radius: 16px;
  font-size: var(--fs-md);
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(4, 18, 33, 0.18);
}

#app {
  padding: 16px;
  max-height: calc(100vh - 102px);
  max-height: calc(100dvh - 102px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .app-shell {
    padding: 0;
    align-items: stretch;
  }

  .phone-frame {
    width: 100vw;
    max-width: 100vw;
    min-height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: 0;
  }

  #app {
    max-height: calc(100dvh - 90px);
  }

  .topbar {
    gap: 10px;
    padding: 14px 16px 12px;
  }

  .topbar h1 {
    font-size: 22px;
    line-height: 1.06;
  }

  .topbar .eyebrow {
    margin-bottom: 4px;
    font-size: 10px;
  }

  .topbar .switch-btn {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    font-size: 14px;
  }

  .admin-create-head {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-create-toggle {
    width: 100%;
  }
}

.screen {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-card,
.notice-card,
.auth-panel,
.dashboard-card,
.tip-card,
.stats-card {
  border-radius: 22px;
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-card,
.auth-panel,
.dashboard-card,
.tip-card,
.stats-card {
  background: var(--card);
  border: 1px solid var(--line);
}

.soft-hero {
  background: linear-gradient(135deg, rgba(242, 190, 63, 0.16), rgba(56, 167, 255, 0.16));
}

.notice-card {
  background: linear-gradient(180deg, #efbc3f, #d59d20);
  color: #312101;
}

.muted {
  color: var(--muted);
  line-height: 1.6;
  font-size: var(--fs-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 12px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-full {
  grid-column: 1 / -1;
}

.field span {
  font-size: var(--fs-sm);
  font-weight: 700;
}

.field em {
  color: var(--danger);
  font-style: normal;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: var(--input);
  color: #203348;
  padding: 14px 14px;
  outline: none;
  font-size: var(--fs-md);
  font-weight: 500;
}

.native-select-hidden {
  display: none !important;
}

.custom-select-trigger {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: var(--input);
  color: #203348;
  padding: 14px 40px 14px 14px;
  min-height: 50px;
  outline: none;
  font-size: var(--fs-md);
  font-weight: 500;
  text-align: left;
  position: relative;
  cursor: pointer;
}

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

.custom-select-trigger.is-placeholder {
  color: #72849a;
}

.custom-select-trigger:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.custom-select-caret {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  opacity: 0.58;
  pointer-events: none;
}

.custom-select-trigger.simulate-select,
.custom-select-trigger.record-status-select {
  display: flex;
  align-items: center;
  padding-right: 34px;
}

.custom-select-trigger.simulate-select .custom-select-caret,
.custom-select-trigger.record-status-select .custom-select-caret {
  right: 12px;
  border-right-color: rgba(234, 242, 250, 0.74);
  border-bottom-color: rgba(234, 242, 250, 0.74);
}

textarea {
  resize: vertical;
  min-height: 96px;
}

input[readonly] {
  background: rgba(245, 247, 251, 0.78);
}

.primary-btn,
.secondary-btn {
  border: 0;
  min-height: 52px;
  border-radius: 18px;
  padding: 0 16px;
  font-weight: 800;
  font-size: var(--fs-md);
  letter-spacing: 0.01em;
}

.primary-btn {
  color: white;
  background: linear-gradient(135deg, #2c8fff, #1ca3ff);
  box-shadow: 0 12px 26px rgba(31, 154, 255, 0.32);
}

.primary-soft {
  background: linear-gradient(135deg, #f3bd47, #ffd56f);
  color: #173152;
  box-shadow: 0 10px 24px rgba(243, 189, 71, 0.34);
}

.secondary-btn {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 22px rgba(4, 18, 33, 0.14);
}

.photo-preview {
  margin-top: 6px;
  width: 100%;
  border-radius: 18px;
  max-height: 240px;
  object-fit: cover;
}

.photo-preview-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.photo-preview-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.photo-preview-thumb.is-main {
  grid-column: span 3;
  aspect-ratio: 16 / 10;
}

.hidden {
  display: none !important;
}

.tip-card p,
.dashboard-head p,
.list-item p,
.list-item small,
.notice-card p,
.home-note {
  margin: 0;
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 0 12px 12px;
}

.custom-select-sheet {
  z-index: 42;
}

.notice-dialog-sheet {
  z-index: 44;
  align-items: center;
  padding: 18px;
}

.activity-status-sheet {
  z-index: 43;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 12, 22, 0.7);
}

.sheet-panel {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;
  width: min(100%, 430px);
  background: #0a2441;
  border-radius: 24px;
  border: 1px solid var(--line);
  padding: 16px 14px 20px;
  max-height: min(68vh, 620px);
  overflow-y: auto;
  box-shadow: 0 22px 40px rgba(4, 14, 28, 0.34);
}

.custom-select-panel {
  width: min(100%, 430px);
  max-height: min(72vh, 660px);
}

.activity-status-panel {
  width: min(100%, 430px);
  max-height: min(78vh, 720px);
  overscroll-behavior: contain;
  transition: top 220ms ease, bottom 220ms ease, max-height 220ms ease, border-radius 220ms ease;
}

.activity-status-sheet.is-docked-top .activity-status-panel {
  top: calc(env(safe-area-inset-top, 0px) + 8px);
  bottom: 8px;
  max-height: none;
  border-radius: 20px;
}

.notice-dialog-panel {
  position: relative;
  width: min(100%, 390px);
  border-radius: 24px;
  padding: 22px 16px 16px;
  background:
    radial-gradient(circle at top right, rgba(118, 201, 255, 0.14), transparent 42%),
    linear-gradient(155deg, rgba(14, 52, 84, 0.96), rgba(8, 34, 58, 0.98));
  border: 1px solid rgba(122, 194, 255, 0.2);
  box-shadow: 0 26px 46px rgba(4, 14, 28, 0.4);
}

.notice-dialog-content {
  display: grid;
  gap: 10px;
}

.notice-dialog-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.notice-dialog-message {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(230, 239, 248, 0.92);
}

.notice-dialog-actions {
  margin-top: 16px;
  display: grid;
}

.notice-dialog-actions.is-confirm {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.notice-dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #dbe8f5;
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.custom-select-head h2 {
  font-size: 20px;
}

.custom-select-options {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.custom-select-option {
  width: 100%;
  min-height: 50px;
  border-radius: 16px;
  border: 1px solid rgba(122, 194, 255, 0.12);
  background:
    radial-gradient(circle at top right, rgba(118, 201, 255, 0.08), transparent 44%),
    linear-gradient(160deg, rgba(16, 56, 91, 0.9), rgba(9, 37, 64, 0.96));
  color: #e6eff8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
}

.custom-select-option-label {
  min-width: 0;
}

.custom-select-option-mark {
  opacity: 0;
  color: #6fd4ff;
  font-size: 17px;
  font-weight: 800;
}

.custom-select-option.active {
  border-color: rgba(116, 202, 255, 0.52);
  background:
    radial-gradient(circle at top right, rgba(156, 220, 255, 0.14), transparent 42%),
    linear-gradient(140deg, rgba(44, 138, 228, 0.34), rgba(13, 59, 106, 0.96));
  box-shadow: 0 10px 18px rgba(6, 28, 52, 0.2);
}

.custom-select-option.active .custom-select-option-mark {
  opacity: 1;
}

.custom-select-option:disabled {
  opacity: 0.55;
}

.matchmaker-profile-sheet-panel {
  width: min(100%, 420px);
  max-height: min(72vh, 660px);
}

.matchmaker-settings-sheet-panel {
  width: min(100%, 420px);
  max-height: min(72vh, 660px);
}

.matchmaker-settings-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: var(--fs-xs);
  line-height: 1.6;
}

.sheet-head,
.dashboard-head,
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.admin-create-head {
  align-items: flex-start;
}

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

.admin-action-card .card-head {
  height: 100%;
  min-height: 132px;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
}

.admin-create-toggle {
  min-height: 44px;
  white-space: nowrap;
  width: 100%;
}

.admin-roster-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.admin-roster-tab {
  min-height: 36px;
  border-radius: 12px;
  font-size: 13px;
  padding: 0 10px;
}

.admin-roster-tab.active {
  border-color: rgba(242, 190, 63, 0.42);
  background: linear-gradient(135deg, rgba(242, 190, 63, 0.18), rgba(56, 167, 255, 0.18));
  color: #ffe8ab;
}

.sheet-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sheet-head-actions .ghost-btn {
  min-height: 44px;
  padding: 0 14px;
}

.account-list,
.dashboard-stack {
  display: grid;
  gap: 12px;
}


.account-item,
.list-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
}

.account-item {
  padding: 12px;
  border-radius: 16px;
}

.account-item button,
.inline-btn {
  width: 100%;
  border: 0;
  min-height: 42px;
  border-radius: 14px;
  padding: 0 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  color: var(--text);
  margin-top: 8px;
  font-size: var(--fs-sm);
  font-weight: 700;
}

.inline-btn.danger {
  border: 1px solid rgba(255, 109, 109, 0.28);
  background: linear-gradient(180deg, rgba(255, 109, 109, 0.18), rgba(255, 109, 109, 0.08));
  color: #ffd6d6;
}

.matchmaker-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.matchmaker-action-row .inline-btn {
  margin-top: 0;
}

.matchmaker-role-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.matchmaker-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.matchmaker-top-row p {
  margin: 0;
}

.status-inline-btn {
  width: auto;
  min-width: 92px;
  min-height: 38px;
  margin-top: 0;
  padding: 0 18px;
}

.home-screen {
  gap: 14px;
}

.brand-hero {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: 28px;
  background: linear-gradient(180deg, #5aa6f2 0%, #4a92db 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 36px rgba(9, 51, 97, 0.28);
}

.brand-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: end;
  gap: 8px;
}

.hero-eyebrow {
  color: rgba(255, 255, 255, 0.88);
}

.brand-title-cn {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  font-size: clamp(34px, 11vw, 58px);
  line-height: 0.95;
  font-weight: 800;
  color: #fff8ef;
  text-shadow:
    -1px 0 rgba(17, 40, 70, 0.55),
    1px 0 rgba(17, 40, 70, 0.55),
    0 1px rgba(17, 40, 70, 0.55),
    0 -1px rgba(17, 40, 70, 0.55);
}

.god-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f3bd47, #ffd56f);
  color: #fffdfa;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.couple-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.couple-illustration {
  width: 100%;
  max-width: 170px;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(15, 58, 108, 0.28));
}

.hero-lines {
  position: absolute;
  left: -18px;
  right: -10px;
  bottom: 42px;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.hero-lines span {
  height: 1px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transform: rotate(-6deg);
}

.hero-lines span:nth-child(1) {
  width: 82%;
}

.hero-lines span:nth-child(2) {
  width: 68%;
  margin-left: 10%;
}

.hero-lines span:nth-child(3) {
  width: 58%;
  margin-left: 3%;
}

.hero-stars .star {
  position: absolute;
  z-index: 2;
  width: 18px;
  height: 18px;
}

.hero-stars .star::before,
.hero-stars .star::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 999px;
}

.hero-stars .star::before {
  width: 2px;
  height: 18px;
}

.hero-stars .star::after {
  width: 18px;
  height: 2px;
}

.star-top {
  top: 20px;
  left: 92px;
}

.star-bottom {
  right: 16px;
  bottom: 84px;
}

.home-copy-card {
  padding: 18px 18px 20px;
  border-radius: 24px;
  background: rgba(248, 252, 255, 0.96);
  color: #14304d;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.home-copy-card h2 {
  text-align: center;
  font-size: 24px;
}

.verse-lines {
  margin-top: 10px;
  display: grid;
  gap: 4px;
}

.verse-lines p {
  margin: 0;
  text-align: center;
  line-height: 1.65;
}

.home-actions {
  display: grid;
  gap: 10px;
}

.home-note {
  padding: 0 6px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  font-size: 13px;
}

.service-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 10px;
  border-radius: 22px;
  border: 1px solid rgba(122, 194, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(242, 190, 63, 0.09), rgba(56, 167, 255, 0.08)),
    radial-gradient(circle at top left, rgba(255, 214, 111, 0.08), transparent 34%),
    radial-gradient(circle at bottom right, rgba(89, 187, 255, 0.12), transparent 40%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.service-nav-btn {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025)),
    linear-gradient(155deg, rgba(17, 60, 98, 0.86), rgba(10, 39, 69, 0.92));
  color: var(--text);
  font-weight: 700;
  font-size: var(--fs-sm);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -10px 14px rgba(5, 16, 30, 0.06);
}

.service-nav-btn.active {
  background:
    linear-gradient(135deg, rgba(242, 190, 63, 0.18), rgba(56, 167, 255, 0.28)),
    radial-gradient(circle at top left, rgba(255, 230, 156, 0.14), transparent 42%);
  border-color: rgba(242, 190, 63, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 20px rgba(6, 28, 52, 0.16);
}

.service-nav-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top left, rgba(255, 203, 220, 0.28), transparent 40%),
    linear-gradient(135deg, rgba(244, 121, 166, 0.34), rgba(255, 167, 210, 0.24));
  border: 1px solid rgba(255, 187, 215, 0.32);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.hearted-summary-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(122, 194, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(242, 190, 63, 0.08), rgba(56, 167, 255, 0.09)),
    radial-gradient(circle at top right, rgba(255, 190, 213, 0.12), transparent 42%),
    linear-gradient(160deg, rgba(15, 53, 87, 0.92), rgba(8, 34, 59, 0.98));
}

.hearted-summary-copy {
  display: grid;
  gap: 4px;
}

.hearted-summary-copy strong {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
}

.hearted-summary-copy small {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(226, 236, 246, 0.74);
}

.hearted-summary-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hearted-summary-pill {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px 8px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.hearted-summary-pill strong {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.hearted-summary-pill small {
  grid-column: 2;
  font-size: 11px;
  color: rgba(226, 236, 246, 0.66);
}

.hearted-summary-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7cc7ff, #3696ff);
  box-shadow: 0 0 0 4px rgba(74, 177, 255, 0.12);
}

.hearted-summary-dot.mutual {
  background: linear-gradient(135deg, #ff9fc9, #f06fa8);
  box-shadow: 0 0 0 4px rgba(244, 121, 166, 0.12);
}

.hearted-summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hearted-mini-chip,
.hearted-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(233, 241, 248, 0.84);
  font-size: 12px;
  font-weight: 700;
}

.hearted-stack {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.hearted-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(122, 194, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(242, 190, 63, 0.06), rgba(56, 167, 255, 0.08)),
    radial-gradient(circle at top right, rgba(116, 202, 255, 0.08), transparent 42%),
    linear-gradient(160deg, rgba(14, 52, 84, 0.94), rgba(8, 34, 58, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -16px 24px rgba(5, 16, 30, 0.08);
}

.hearted-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hearted-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background:
    radial-gradient(circle at top left, rgba(255, 209, 225, 0.22), transparent 42%),
    linear-gradient(135deg, rgba(244, 121, 166, 0.28), rgba(56, 167, 255, 0.18));
  border: 1px solid rgba(255, 185, 211, 0.26);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.hearted-dot.mutual {
  background:
    radial-gradient(circle at top left, rgba(255, 219, 168, 0.22), transparent 42%),
    linear-gradient(135deg, rgba(242, 190, 63, 0.28), rgba(244, 121, 166, 0.22));
  border-color: rgba(242, 190, 63, 0.28);
}

.hearted-cute-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #ffd98a;
  font-size: 12px;
  font-weight: 800;
}

.hearted-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: center;
}

.hearted-user {
  min-width: 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) minmax(96px, 112px);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hearted-user.mine {
  background: linear-gradient(180deg, rgba(56, 167, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.hearted-user.target {
  background: linear-gradient(180deg, rgba(244, 121, 166, 0.06), rgba(255, 255, 255, 0.03));
}

.hearted-avatar {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #96c6ff, #317fe4);
}

.hearted-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hearted-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
}

.hearted-avatar-fallback.target {
  background: linear-gradient(135deg, #ffb7d2, #e6659b);
}

.hearted-user-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.hearted-user-copy strong {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.hearted-user-copy small {
  font-size: 11px;
  line-height: 1.45;
  color: rgba(228, 238, 247, 0.72);
  word-break: break-word;
}

.hearted-user-copy .hearted-city-line {
  margin-top: -1px;
  color: rgba(228, 238, 247, 0.84);
}

.hearted-matchmaker-btn {
  width: 100%;
  min-height: 72px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 8px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  background:
    radial-gradient(circle at top right, rgba(255, 219, 168, 0.08), transparent 42%),
    linear-gradient(155deg, rgba(25, 67, 105, 0.62), rgba(12, 40, 67, 0.72));
  color: #ffffff;
  text-align: center;
}

.hearted-matchmaker-btn.is-disabled {
  opacity: 0.64;
  cursor: default;
}

.hearted-matchmaker-btn small {
  font-size: 10px;
  font-weight: 700;
  color: rgba(226, 236, 246, 0.66);
  line-height: 1.3;
}

.hearted-matchmaker-btn strong {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  word-break: break-word;
}

.hearted-link {
  width: 38px;
  height: 38px;
  justify-self: center;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.hearted-link.mutual {
  color: #ffd98a;
  border-color: rgba(242, 190, 63, 0.2);
}

.hearted-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
  color: #ffffff;
}

.hearted-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hearted-state {
  padding: 12px 14px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.025)),
    linear-gradient(155deg, rgba(16, 50, 81, 0.82), rgba(9, 33, 58, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(232, 240, 247, 0.84);
  font-size: 13px;
  line-height: 1.65;
}

.matchmaker-profile-card {
  display: grid;
  gap: 14px;
}

.matchmaker-profile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.matchmaker-profile-top h3 {
  margin: 4px 0 0;
  font-size: 28px;
  line-height: 1.1;
  color: #ffffff;
}

.matchmaker-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.matchmaker-profile-actions {
  display: grid;
}

.matchmaker-profile-actions .primary-btn {
  width: 100%;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 360px) {
  .matchmaker-profile-grid {
    grid-template-columns: 1fr;
  }
}

.instant-toolbar {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.instant-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.instant-add-btn {
  min-height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at top right, rgba(118, 201, 255, 0.12), transparent 44%),
    linear-gradient(160deg, rgba(22, 68, 108, 0.94), rgba(10, 42, 73, 0.98));
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.instant-add-btn.active {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 10px 20px rgba(8, 31, 56, 0.18);
}

.instant-add-btn.active.male {
  border-color: rgba(116, 202, 255, 0.58);
  background:
    radial-gradient(circle at top right, rgba(150, 219, 255, 0.18), transparent 42%),
    linear-gradient(140deg, rgba(50, 151, 255, 0.28), rgba(12, 60, 108, 0.94));
}

.instant-add-btn.active.female {
  border-color: rgba(255, 169, 203, 0.52);
  background:
    radial-gradient(circle at top right, rgba(255, 197, 222, 0.14), transparent 42%),
    linear-gradient(140deg, rgba(244, 121, 166, 0.24), rgba(97, 35, 77, 0.92));
}

.instant-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.instant-helper-note {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.simulate-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.simulate-pair-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(122, 194, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(242, 190, 63, 0.08), rgba(56, 167, 255, 0.08)),
    radial-gradient(circle at top right, rgba(118, 201, 255, 0.12), transparent 42%);
}

.simulate-pair-copy {
  display: grid;
  gap: 4px;
}

.simulate-pair-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.simulate-pair-copy strong {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

.simulate-confirm-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(242, 190, 63, 0.26);
  background:
    radial-gradient(circle at top left, rgba(255, 229, 148, 0.14), transparent 42%),
    linear-gradient(135deg, rgba(242, 190, 63, 0.24), rgba(56, 167, 255, 0.18));
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.simulate-confirm-btn:disabled {
  opacity: 0.55;
}

.simulate-search-wrap,
.simulate-select-wrap {
  display: grid;
  gap: 6px;
}

.simulate-toolbar-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--muted);
}

.simulate-input,
.simulate-select {
  width: 100%;
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0 12px;
  font-size: var(--fs-sm);
  font-weight: 600;
  outline: none;
}

.simulate-input::placeholder {
  color: rgba(246, 248, 251, 0.38);
}

.simulate-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.simulate-columns.split-scroll {
  align-items: start;
}

.simulate-column {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.simulate-column.split-panel {
  min-height: 0;
}

.simulate-frame-wrap {
  position: relative;
  --simulate-capture-height: 168px;
}

.simulate-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.simulate-column-head.active {
  background:
    radial-gradient(circle at top right, rgba(118, 201, 255, 0.12), transparent 40%),
    linear-gradient(145deg, rgba(26, 86, 140, 0.24), rgba(18, 55, 92, 0.46));
  border-color: rgba(116, 202, 255, 0.24);
}

.simulate-column-head h4 {
  margin: 0;
  font-size: var(--fs-md);
  font-weight: 800;
  color: #9bdcff;
}

.simulate-column-head span {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--muted);
}

.simulate-column-head.female h4 {
  color: #ffb4d4;
}

.simulate-list {
  display: grid;
  gap: 10px;
}

.simulate-list.split-list {
  max-height: min(58vh, 620px);
  overflow-y: auto;
  padding-top: 6px;
  padding-bottom: calc(var(--simulate-capture-height) + 18px);
  padding-right: 4px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.simulate-list.split-list::-webkit-scrollbar {
  width: 4px;
}

.simulate-list.split-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(116, 202, 255, 0.28);
}

.simulate-capture-frame {
  position: absolute;
  top: 6px;
  left: 2px;
  right: 8px;
  height: var(--simulate-capture-height);
  border-radius: 24px;
  border: 2px solid rgba(116, 202, 255, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(27, 113, 190, 0.14);
  background: linear-gradient(180deg, rgba(56, 167, 255, 0.03), rgba(56, 167, 255, 0.01));
  pointer-events: none;
  z-index: 2;
}

.simulate-capture-frame.female {
  border-color: rgba(255, 169, 203, 0.4);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(153, 68, 105, 0.12);
  background: linear-gradient(180deg, rgba(244, 121, 166, 0.03), rgba(244, 121, 166, 0.01));
}

.simulate-card {
  width: 100%;
  padding: 10px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.96), rgba(236, 244, 250, 0.94));
  border: 1px solid rgba(217, 229, 239, 0.92);
  box-shadow: 0 8px 18px rgba(7, 28, 48, 0.1);
  color: #243446;
  display: grid;
  gap: 7px;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.simulate-card.in-frame {
  border-color: rgba(96, 183, 255, 0.82);
  box-shadow:
    0 12px 28px rgba(7, 28, 48, 0.16),
    0 0 0 2px rgba(96, 183, 255, 0.18);
  transform: scale(1.015);
}

.simulate-card-top {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.simulate-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #96c6ff, #317fe4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.simulate-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.simulate-avatar-fallback {
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
}

.simulate-card-head {
  min-width: 0;
  display: grid;
  gap: 2px;
}

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

.simulate-name-row strong {
  min-width: 0;
  font-size: var(--fs-md);
  font-weight: 800;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.simulate-name-row span {
  flex: 0 0 auto;
  font-size: var(--fs-sm);
  color: #607086;
  font-weight: 600;
}

.simulate-tag-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.simulate-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  max-width: 100%;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff7fb;
  border: 1px solid #f6d7e7;
  color: #e977a6;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.simulate-tag.income {
  min-width: 0;
}

.simulate-tag.education {
  min-width: 0;
}

.simulate-tag.job {
  min-width: 0;
}

.simulate-meta-line {
  min-width: 0;
  color: #53647a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.simulate-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  color: #4f5f73;
  font-size: 11px;
  font-weight: 600;
}

.simulate-meta-grid span {
  min-width: 0;
  padding: 4px 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(221, 231, 241, 0.9);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.simulate-empty {
  padding: 18px 12px;
  border-radius: 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--fs-sm);
}

.record-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 2px 8px;
  margin-right: 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.record-tag.formal {
  background: rgba(242, 190, 63, 0.22);
  color: var(--gold-soft);
}

.record-tag.simulate {
  background: rgba(56, 167, 255, 0.18);
  color: #9bdcff;
}

.record-tag.dating {
  background: rgba(56, 167, 255, 0.22);
  color: #b9e6ff;
}

.record-tag.married {
  background: rgba(80, 201, 120, 0.18);
  color: #c9f8d7;
}

.record-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.user-view-switch.is-locked {
  display: flex;
  justify-content: flex-end;
}

.user-view-switch.is-locked .record-switch-btn {
  flex: 0 0 min(48%, 180px);
}

.sheep-card-head h3 {
  flex: 0 0 auto;
}

.sheep-card-head {
  flex-wrap: wrap;
}

.sheep-stage-select-wrap {
  flex: 1 1 160px;
  min-width: 132px;
  max-width: 220px;
}

.sheep-stage-select-wrap .simulate-select {
  min-height: 40px;
}

.sheep-card-head .muted {
  flex: 1 1 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.record-switch-btn {
  min-height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(79, 162, 255, 0.1), transparent 42%),
    linear-gradient(155deg, rgba(18, 65, 107, 0.92), rgba(8, 39, 71, 0.98));
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.record-switch-btn.active {
  background:
    linear-gradient(135deg, rgba(242, 190, 63, 0.18), rgba(56, 167, 255, 0.26)),
    radial-gradient(circle at top left, rgba(255, 230, 156, 0.14), transparent 42%);
  border-color: rgba(242, 190, 63, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 20px rgba(6, 28, 52, 0.14);
}

.user-blessing-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 214, 121, 0.18), transparent 42%),
    radial-gradient(circle at 90% 0%, rgba(96, 193, 255, 0.18), transparent 44%),
    linear-gradient(145deg, rgba(15, 55, 96, 0.9), rgba(8, 39, 71, 0.98));
}

.user-blessing-card.married {
  border-color: rgba(113, 214, 153, 0.28);
  background:
    radial-gradient(circle at 10% 10%, rgba(170, 241, 184, 0.16), transparent 44%),
    radial-gradient(circle at 90% 0%, rgba(127, 214, 255, 0.16), transparent 44%),
    linear-gradient(145deg, rgba(15, 74, 88, 0.9), rgba(7, 50, 75, 0.98));
}

.user-blessing-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.user-blessing-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #fff0c8;
  border: 1px solid rgba(242, 190, 63, 0.32);
  background: rgba(242, 190, 63, 0.16);
}

.user-blessing-card.married .user-blessing-tag {
  color: #d8ffe7;
  border-color: rgba(113, 214, 153, 0.36);
  background: rgba(113, 214, 153, 0.18);
}

.user-blessing-head small {
  color: rgba(214, 232, 246, 0.9);
  font-size: 13px;
  font-weight: 600;
}

.user-blessing-copy {
  margin: 0;
  color: #f4fbff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.6;
}

.user-blessing-meta {
  margin: 0;
  color: rgba(188, 214, 233, 0.9);
  font-size: 14px;
  font-weight: 600;
}

.user-blessing-sign {
  margin: 0;
  color: #9cc1dd;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.record-panel {
  display: grid;
  gap: 12px;
}

.record-list {
  display: grid;
  gap: 10px;
}

.record-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.record-rich-card {
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(79, 162, 255, 0.08), transparent 42%),
    linear-gradient(155deg, rgba(24, 63, 101, 0.94), rgba(11, 40, 69, 0.98));
  border-color: rgba(122, 194, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 24px rgba(7, 24, 44, 0.16);
}

.record-topline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.record-days-pill {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background:
    radial-gradient(circle at top left, rgba(150, 219, 255, 0.14), transparent 42%),
    linear-gradient(135deg, rgba(56, 167, 255, 0.18), rgba(16, 92, 171, 0.18));
  border: 1px solid rgba(116, 202, 255, 0.18);
  color: #d8f1ff;
  font-size: 12px;
  font-weight: 800;
}

.record-score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background:
    radial-gradient(circle at top left, rgba(255, 229, 148, 0.14), transparent 42%),
    linear-gradient(135deg, rgba(242, 190, 63, 0.22), rgba(56, 167, 255, 0.18));
  border: 1px solid rgba(242, 190, 63, 0.18);
  color: #fff4c7;
  font-size: 12px;
  font-weight: 800;
}

.record-people {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
}

.record-person {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.record-person.male {
  background: linear-gradient(180deg, rgba(56, 167, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.record-person.female {
  background: linear-gradient(180deg, rgba(244, 121, 166, 0.06), rgba(255, 255, 255, 0.03));
}

.record-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #96c6ff, #317fe4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.record-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.record-avatar-fallback {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
}

.record-person-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.record-person-copy strong {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.record-person-copy small {
  font-size: 11px;
  color: rgba(230, 238, 246, 0.7);
  line-height: 1.35;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
}

.record-pair-link {
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  font-weight: 800;
}

.record-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.record-meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(234, 241, 248, 0.84);
  font-size: 12px;
  font-weight: 700;
}

.record-note-editor {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(79, 162, 255, 0.08), transparent 42%),
    linear-gradient(155deg, rgba(17, 51, 82, 0.9), rgba(9, 34, 58, 0.96));
  border: 1px solid rgba(122, 194, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -12px 20px rgba(6, 20, 36, 0.08);
}

.record-note-head {
  font-size: 13px;
  font-weight: 800;
  color: #d7e7f7;
}

.record-note-textarea {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.6;
  outline: none;
}

.record-note-textarea::placeholder {
  color: rgba(214, 226, 238, 0.42);
}

.record-note-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.record-note-btn {
  min-height: 42px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
}

.record-note-btn.ghost {
  border: 1px solid rgba(174, 194, 214, 0.2);
  background:
    radial-gradient(circle at top left, rgba(213, 225, 238, 0.1), transparent 42%),
    linear-gradient(135deg, rgba(92, 113, 136, 0.24), rgba(58, 74, 97, 0.24));
  color: #e4edf6;
}

.record-note-btn.primary {
  border: 1px solid rgba(116, 202, 255, 0.26);
  background:
    radial-gradient(circle at top left, rgba(150, 219, 255, 0.14), transparent 42%),
    linear-gradient(135deg, rgba(56, 167, 255, 0.24), rgba(16, 92, 171, 0.24));
  color: #ffffff;
}

.record-bottomline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.record-summary-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.025)),
    linear-gradient(155deg, rgba(16, 50, 81, 0.82), rgba(9, 33, 58, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.record-summary-copy strong {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  color: #ffffff;
}

.record-summary-copy small {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.record-action-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
  justify-content: center;
}

.record-action-wrap.triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.record-action-wrap.double-tight {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

.record-action-wrap.hidden {
  display: none;
}

.record-action-wrap.single {
  grid-template-columns: minmax(160px, 220px);
}

.record-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.record-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.record-copy strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.record-copy small {
  font-size: 13px;
  color: var(--muted);
}

.record-convert-btn {
  min-height: 40px;
  min-width: 0;
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(242, 190, 63, 0.26);
  background:
    radial-gradient(circle at top left, rgba(255, 229, 148, 0.14), transparent 42%),
    linear-gradient(135deg, rgba(242, 190, 63, 0.24), rgba(56, 167, 255, 0.18));
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  justify-self: start;
  padding: 0 14px;
}

.record-convert-btn.blue {
  border-color: rgba(116, 202, 255, 0.26);
  background:
    radial-gradient(circle at top left, rgba(150, 219, 255, 0.14), transparent 42%),
    linear-gradient(135deg, rgba(56, 167, 255, 0.24), rgba(16, 92, 171, 0.24));
}

.record-convert-btn.slate {
  border-color: rgba(174, 194, 214, 0.2);
  background:
    radial-gradient(circle at top left, rgba(213, 225, 238, 0.1), transparent 42%),
    linear-gradient(135deg, rgba(92, 113, 136, 0.24), rgba(58, 74, 97, 0.24));
}

.record-convert-btn.danger {
  border-color: rgba(255, 131, 131, 0.24);
  background:
    radial-gradient(circle at top left, rgba(255, 188, 188, 0.12), transparent 42%),
    linear-gradient(135deg, rgba(223, 84, 84, 0.24), rgba(170, 34, 34, 0.22));
}

.record-status-field {
  display: block;
  width: 100%;
}

.record-status-select {
  width: 100%;
  min-height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(174, 194, 214, 0.2);
  background:
    radial-gradient(circle at top left, rgba(213, 225, 238, 0.1), transparent 42%),
    linear-gradient(135deg, rgba(92, 113, 136, 0.24), rgba(58, 74, 97, 0.24));
  color: #e4edf6;
  font-size: 14px;
  font-weight: 800;
  padding: 0 38px 0 14px;
  outline: none;
}

.matchmaker-main-panel {
  width: 100%;
}

.dashboard-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(242, 190, 63, 0.18), rgba(56, 167, 255, 0.18));
  border: 1px solid var(--line);
}

.matchmaker-head-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.matchmaker-dashboard-head {
  display: block;
}

.matchmaker-head-shell {
  display: grid;
  gap: 10px;
}

.matchmaker-head-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.matchmaker-head-actions {
  display: grid;
  justify-items: end;
  gap: 6px;
  width: auto;
  align-content: start;
  margin-top: -2px;
}

.matchmaker-head-time {
  margin: 0;
  color: rgba(232, 240, 247, 0.76);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
}

.matchmaker-head-profile-btn {
  width: auto;
  min-width: 84px;
  min-height: 34px;
  border-radius: 11px;
  padding: 0 10px;
  border: 1px solid rgba(242, 190, 63, 0.3);
  background:
    linear-gradient(135deg, rgba(242, 190, 63, 0.18), rgba(56, 167, 255, 0.28)),
    radial-gradient(circle at top left, rgba(255, 230, 156, 0.14), transparent 42%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 20px rgba(6, 28, 52, 0.16);
}

.matchmaker-verse-card {
  display: grid;
  gap: 6px;
  margin-top: 2px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(255, 223, 154, 0.14), transparent 42%),
    linear-gradient(155deg, rgba(12, 49, 82, 0.5), rgba(8, 34, 59, 0.56));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.matchmaker-verse-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.matchmaker-verse-head small {
  font-size: 11px;
  color: rgba(226, 236, 246, 0.66);
}

.matchmaker-verse-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background:
    radial-gradient(circle at top left, rgba(255, 223, 154, 0.16), transparent 42%),
    linear-gradient(135deg, rgba(242, 190, 63, 0.22), rgba(56, 167, 255, 0.14));
  border: 1px solid rgba(242, 190, 63, 0.24);
  color: #ffe08a;
  font-size: 11px;
  font-weight: 800;
}

.matchmaker-verse-text {
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.matchmaker-verse-ref {
  color: rgba(226, 236, 246, 0.66);
  font-size: 11px;
  line-height: 1.4;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  align-self: start;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: var(--fs-xs);
  font-weight: 700;
}

.matchmaker-head-top .role-pill {
  justify-self: end;
}

.dashboard-screen {
  gap: 14px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stats-tab {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 108px;
  text-align: center;
  border: 1px solid rgba(74, 177, 255, 0.18);
  color: var(--text);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
  padding: 16px 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background:
    radial-gradient(circle at top right, rgba(109, 196, 255, 0.18), transparent 42%),
    radial-gradient(circle at bottom left, rgba(255, 219, 133, 0.08), transparent 38%),
    linear-gradient(155deg, rgba(18, 65, 107, 0.94), rgba(8, 39, 71, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -14px 20px rgba(5, 16, 30, 0.12),
    0 8px 18px rgba(4, 18, 34, 0.16);
}

.stats-tab::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 12px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  pointer-events: none;
}

.stats-tab.no-count {
  justify-content: center;
}

.stats-tab-spacer {
  display: block;
  width: 54px;
  height: 7px;
  border-radius: 999px;
  background:
    radial-gradient(circle at left, rgba(255, 228, 150, 0.9), transparent 30%),
    linear-gradient(90deg, rgba(242, 190, 63, 0.9), rgba(80, 182, 255, 0.56));
  box-shadow: 0 4px 10px rgba(16, 53, 91, 0.24);
  margin: 0 auto;
}

.stats-tab.active {
  background:
    radial-gradient(circle at top right, rgba(167, 228, 255, 0.26), transparent 40%),
    radial-gradient(circle at bottom left, rgba(255, 224, 145, 0.1), transparent 38%),
    linear-gradient(140deg, rgba(42, 151, 255, 0.48), rgba(9, 60, 112, 0.98));
  border-color: rgba(116, 202, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(40, 166, 255, 0.28),
    0 14px 28px rgba(8, 31, 56, 0.3);
  transform: translateY(-2px);
}

.stats-tab.active small,
.stats-tab.active strong {
  color: #ffffff;
}

.stats-tab small {
  display: block;
  width: 100%;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-align: center;
}

.stats-card strong {
  display: block;
  margin-top: 0;
  font-size: 31px;
  line-height: 1;
  font-weight: 800;
}

.stats-tab strong {
  display: block;
  margin: 0;
  font-size: 35px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}

.stats-tab-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  margin-top: 2px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(122, 194, 255, 0.12);
  border: 1px solid rgba(122, 194, 255, 0.2);
  color: rgba(214, 236, 255, 0.9);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.list-item {
  display: grid;
  gap: 6px;
}

.list-item.is-admin-account {
  border-color: rgba(242, 190, 63, 0.42);
  box-shadow: inset 0 0 0 1px rgba(242, 190, 63, 0.08);
}

.list-item.is-matchmaker-account {
  border-color: rgba(134, 195, 255, 0.22);
}

.meta-line {
  color: var(--muted);
  font-size: 13px;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

.role-chip-admin {
  color: #ffe6a6;
  border: 1px solid rgba(242, 190, 63, 0.46);
  background: linear-gradient(180deg, rgba(242, 190, 63, 0.24), rgba(242, 190, 63, 0.1));
}

.role-chip-matchmaker {
  color: #d9efff;
  border: 1px solid rgba(122, 194, 255, 0.38);
  background: linear-gradient(180deg, rgba(122, 194, 255, 0.2), rgba(122, 194, 255, 0.08));
}

.activity-summary-card h3 {
  margin: 0;
}

.activity-encourage {
  margin: 4px 0 0;
  color: #ffe4a3;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 700;
}

.activity-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(122, 194, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

.activity-item p {
  margin: 0;
}

.activity-item.is-top {
  border-color: rgba(242, 190, 63, 0.44);
  box-shadow: inset 0 0 0 1px rgba(242, 190, 63, 0.12);
}

.status-grid-panels {
  display: grid;
  gap: 12px;
}

.status-panel {
  position: relative;
  overflow: hidden;
}

.status-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.9;
}

.status-panel.neon-cyan::before {
  background: radial-gradient(circle at top right, rgba(65, 240, 255, 0.18), transparent 42%);
}

.status-panel.neon-blue::before {
  background: radial-gradient(circle at top right, rgba(74, 177, 255, 0.2), transparent 42%);
}

.status-panel.neon-indigo::before {
  background: radial-gradient(circle at top right, rgba(117, 120, 255, 0.2), transparent 42%);
}

.status-panel.neon-amber::before {
  background: radial-gradient(circle at top right, rgba(242, 190, 63, 0.2), transparent 42%);
}

.status-panel.neon-purple::before {
  background: radial-gradient(circle at top right, rgba(204, 117, 255, 0.2), transparent 42%);
}

.status-panel.neon-pink::before {
  background: radial-gradient(circle at top right, rgba(255, 120, 182, 0.2), transparent 42%);
}

.status-panel.neon-slate::before {
  background: radial-gradient(circle at top right, rgba(201, 217, 236, 0.12), transparent 42%);
}

.status-range-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
  padding: 4px;
  border-radius: 16px;
  border: 1px solid rgba(122, 194, 255, 0.22);
  background: rgba(8, 42, 82, 0.5);
}

.status-range-btn {
  min-height: 38px;
  border: 1px solid rgba(122, 194, 255, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(225, 244, 255, 0.88);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.18s ease;
}

.status-range-btn.active {
  color: #c9f4ff;
  border-color: rgba(79, 210, 255, 0.52);
  background: linear-gradient(180deg, rgba(79, 210, 255, 0.24), rgba(79, 210, 255, 0.12));
  box-shadow: inset 0 0 0 1px rgba(79, 210, 255, 0.2);
}

.status-chart-wrap {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.status-chart-row {
  display: grid;
  gap: 6px;
}

.status-chart-row-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.status-chart-row-head p {
  margin: 0;
}

.status-chart-row-head small {
  color: #dff2ff;
  font-size: 12px;
}

.status-chart-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.status-chart-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #34d9ff, #8e74ff, #ff89be);
  box-shadow: 0 0 12px rgba(86, 194, 255, 0.44);
}

.status-subgrid {
  margin-top: 10px;
  display: grid;
  gap: 12px;
}

.status-alert-item {
  margin: 6px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 170, 170, 0.28);
  background: linear-gradient(180deg, rgba(255, 138, 138, 0.12), rgba(255, 138, 138, 0.04));
  color: #ffd6d6;
  font-size: 13px;
}

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

.gender-filter-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.sheep-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.flock-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.advanced-filter-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 12px;
}

.advanced-filter-toggle,
.advanced-filter-reset {
  min-height: 42px;
  border-radius: 14px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 800;
}

.advanced-filter-toggle {
  border: 1px solid rgba(116, 202, 255, 0.2);
  background:
    radial-gradient(circle at top right, rgba(118, 201, 255, 0.12), transparent 42%),
    linear-gradient(155deg, rgba(20, 59, 94, 0.92), rgba(10, 41, 70, 0.98));
  color: #eaf3fb;
}

.advanced-filter-toggle.active {
  background:
    linear-gradient(135deg, rgba(242, 190, 63, 0.16), rgba(56, 167, 255, 0.22)),
    radial-gradient(circle at top left, rgba(255, 230, 156, 0.12), transparent 42%);
  border-color: rgba(242, 190, 63, 0.24);
}

.advanced-filter-reset {
  border: 1px solid rgba(174, 194, 214, 0.2);
  background:
    radial-gradient(circle at top left, rgba(213, 225, 238, 0.1), transparent 42%),
    linear-gradient(135deg, rgba(92, 113, 136, 0.24), rgba(58, 74, 97, 0.24));
  color: #e4edf6;
}

.flock-range-field {
  display: grid;
  gap: 6px;
  grid-column: 1 / -1;
}

.flock-range-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.flock-range-sep {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.gender-filter-btn {
  min-height: 50px;
  border: 1px solid rgba(74, 177, 255, 0.14);
  border-radius: 16px;
  padding: 0 12px;
  background:
    radial-gradient(circle at top right, rgba(79, 162, 255, 0.14), transparent 44%),
    linear-gradient(155deg, rgba(20, 59, 94, 0.92), rgba(10, 41, 70, 0.98));
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.gender-filter-btn strong {
  font-size: 21px;
  line-height: 1;
}

.gender-filter-label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.gender-filter-btn.active {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 10px 22px rgba(8, 31, 56, 0.2);
}

.gender-filter-btn.active.male {
  background:
    radial-gradient(circle at top right, rgba(150, 219, 255, 0.18), transparent 42%),
    linear-gradient(140deg, rgba(50, 151, 255, 0.26), rgba(12, 60, 108, 0.92));
  border-color: rgba(116, 202, 255, 0.55);
}

.gender-filter-btn.active.female {
  background:
    radial-gradient(circle at top right, rgba(255, 197, 222, 0.14), transparent 42%),
    linear-gradient(140deg, rgba(244, 121, 166, 0.24), rgba(97, 35, 77, 0.92));
  border-color: rgba(255, 169, 203, 0.5);
}

.sheep-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.sheep-card {
  min-width: 0;
  width: 100%;
  min-height: 126px;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid rgba(219, 229, 239, 0.96);
  background:
    radial-gradient(circle at top right, rgba(99, 196, 255, 0.14), transparent 32%),
    linear-gradient(180deg, #fbfdff 0%, #eef4fa 100%);
  color: #243446;
  box-shadow: 0 8px 20px rgba(7, 28, 48, 0.1);
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
  cursor: pointer;
}

.sheep-card.no-score {
  grid-template-columns: 48px minmax(0, 1fr);
}

.sheep-avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #7bc0ff, #2a7be7);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.sheep-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sheep-avatar-fallback {
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
}

.sheep-card-body {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
}

.sheep-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  line-height: 1.1;
}

.sheep-gender {
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 700;
  transform: translateY(-1px);
}

.sheep-gender.female {
  color: #ff7ca8;
}

.sheep-gender.male {
  color: #4d8ff5;
}

.sheep-id {
  color: #7b8ba0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.sheep-name {
  min-width: 0;
  color: #1f2937;
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sheep-id-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.sheep-phone {
  color: #5d6878;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.sheep-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.sheep-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 21px;
  padding: 0 7px;
  border-radius: 999px;
  background: #fff7fb;
  border: 1px solid #f6d7e7;
  color: #e977a6;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  max-width: 100%;
}

.sheep-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  color: #4f5f73;
  font-size: 11px;
  font-weight: 600;
}

.sheep-meta-grid span {
  min-width: 0;
  padding: 4px 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(221, 231, 241, 0.9);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sheep-score {
  width: 28px;
  height: 28px;
  border-radius: 12px;
  background: linear-gradient(180deg, #1ca3ff, #1487df);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(20, 135, 223, 0.18);
}

.detail-page {
  display: grid;
  gap: 14px;
}

.detail-page-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detail-page-title {
  font-size: var(--fs-lg);
  font-weight: 800;
  color: #ffffff;
}

.detail-back-btn {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: var(--fs-sm);
  font-weight: 700;
}

.detail-hero {
  overflow: hidden;
  border-radius: 22px;
  position: relative;
  width: 136px;
  min-width: 136px;
  height: 176px;
  background: linear-gradient(135deg, #d9e8ff, #b5d4ff 48%, #8fbfff);
  border: 1px solid rgba(221, 231, 241, 0.9);
  box-shadow: 0 10px 22px rgba(10, 32, 55, 0.1);
}

.detail-hero-img {
  display: block;
  width: 100%;
  height: 176px;
  object-fit: cover;
  cursor: zoom-in;
}

.detail-hero-fallback {
  width: 100%;
  height: 176px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(135deg, #4aa2ff, #1e6fd9);
}

.detail-hero-initial {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  font-size: 30px;
  font-weight: 800;
}

.detail-info-card,
.detail-section {
  border-radius: 22px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(239, 244, 249, 0.96));
  border: 1px solid rgba(221, 231, 241, 0.94);
  color: #26384a;
}

.detail-summary {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.detail-photo-stack {
  display: grid;
  gap: 8px;
}

.detail-thumb-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.detail-thumb-btn {
  padding: 0;
  border: 0;
  background: none;
  flex: 0 0 32px;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid transparent;
}

.detail-thumb-btn img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.detail-thumb-btn.is-active {
  border-color: rgba(44, 143, 255, 0.55);
  box-shadow: 0 8px 18px rgba(33, 111, 217, 0.18);
}

.detail-photo-count {
  position: absolute;
  right: 8px;
  bottom: 8px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 35, 60, 0.68);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(6px);
}

.photo-viewer-sheet {
  z-index: 46;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.photo-viewer-backdrop {
  background: rgba(2, 10, 18, 0.9);
}

.photo-viewer-panel {
  position: relative;
  width: min(100vw - 20px, 760px);
  height: min(80vh, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-viewer-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 16px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.42);
}

.photo-viewer-close,
.photo-viewer-nav {
  border: 0;
  color: #ffffff;
  background: rgba(10, 28, 46, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.28);
}

.photo-viewer-close {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  font-size: 24px;
  line-height: 1;
  z-index: 2;
}

.photo-viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 32px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.photo-viewer-nav.prev {
  left: 8px;
}

.photo-viewer-nav.next {
  right: 8px;
}

.photo-viewer-count {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 8px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 27, 44, 0.7);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 700;
}

.detail-summary-main {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.detail-name-row,
.detail-main-line,
.detail-quick-row,
.detail-action-row,
.detail-bottom-actions {
  display: flex;
  align-items: center;
}

.detail-name-row {
  gap: 12px;
  align-items: flex-start;
}

.detail-main-line {
  gap: 8px;
  flex-wrap: wrap;
}

.detail-main-line strong {
  font-size: 24px;
  font-weight: 800;
  color: #1e2e42;
}

.detail-id {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #7a8799;
}

.detail-sub-line {
  margin-top: 4px;
  font-size: var(--fs-sm);
  color: #78879a;
  line-height: 1.7;
}

.detail-matchmaker-link {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  color: #5e7390;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(94, 115, 144, 0.3);
  text-underline-offset: 3px;
}

.detail-matchmaker-link.is-static {
  cursor: default;
  text-decoration: none;
}

.detail-heart-pill {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f19cc1, #e27db0);
  color: #ffffff;
  font-size: var(--fs-xs);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.detail-quick-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.detail-gender-box {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 14px;
  background: #f0f4f9;
  border: 1px solid #dfe7f0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  min-width: 0;
}

.detail-gender-label {
  font-size: var(--fs-sm);
  color: #7d8ca0;
  font-weight: 700;
}

.detail-gender-box strong {
  font-size: var(--fs-sm);
  color: #e276a4;
}

.detail-identity-chip {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 14px;
  background: #f4f6f9;
  border: 1px solid #e1e7ee;
  color: #5e7085;
  font-size: var(--fs-sm);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  white-space: nowrap;
}

.detail-action-chip,
.detail-bottom-btn {
  border: 0;
  font-size: var(--fs-sm);
  font-weight: 800;
}

.detail-action-row {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 0.8fr 0.9fr;
  gap: 8px;
  margin-top: 14px;
}

.detail-action-chip {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 14px;
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(18, 42, 66, 0.12);
}

.detail-action-chip.blue,
.detail-bottom-btn.blue {
  background: linear-gradient(135deg, #55a9ff, #3a89e9);
}

.detail-action-chip.gold,
.detail-bottom-btn.gold {
  background: linear-gradient(135deg, #f0d142, #e8be28);
  color: #3d3207;
}

.detail-action-chip-call {
  color: #ffffff;
}

.detail-bottom-btn.danger {
  background: linear-gradient(135deg, #f06a61, #e54d43);
}

.user-heart-wrap {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.user-heart-btn {
  position: relative;
  overflow: hidden;
  min-height: 46px;
  min-width: 136px;
  padding: 0 18px;
  border: 1px solid rgba(255, 167, 200, 0.4);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff8fb;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.01em;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 238, 245, 0.36), transparent 38%),
    radial-gradient(circle at 78% 80%, rgba(255, 174, 204, 0.3), transparent 38%),
    linear-gradient(135deg, #ff8bb6, #f66da8 44%, #e75792 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 10px 24px rgba(213, 68, 131, 0.28);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
  animation: user-heart-glow 2.2s ease-in-out infinite;
}

.user-heart-btn::after {
  content: "";
  position: absolute;
  top: -22px;
  left: -30%;
  width: 32%;
  height: 130%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.04));
  transform: rotate(12deg);
  pointer-events: none;
  opacity: 0.7;
}

.user-heart-btn.is-return {
  border-color: rgba(255, 191, 127, 0.48);
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 246, 224, 0.36), transparent 40%),
    radial-gradient(circle at 75% 78%, rgba(255, 204, 140, 0.26), transparent 40%),
    linear-gradient(135deg, #ffaf6f, #ff956f 46%, #ff7d80 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 10px 24px rgba(217, 109, 67, 0.27);
}

.user-heart-btn.is-sent {
  border-color: rgba(139, 201, 255, 0.48);
  background:
    radial-gradient(circle at 24% 18%, rgba(232, 247, 255, 0.36), transparent 40%),
    radial-gradient(circle at 78% 82%, rgba(157, 205, 255, 0.26), transparent 40%),
    linear-gradient(135deg, #63b8ff, #4d9ef5 45%, #2f7ddd 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 10px 22px rgba(47, 113, 194, 0.23);
  animation: none;
}

.user-heart-btn.is-mutual {
  border-color: rgba(255, 214, 119, 0.52);
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 248, 220, 0.4), transparent 40%),
    radial-gradient(circle at 78% 82%, rgba(255, 214, 158, 0.28), transparent 40%),
    linear-gradient(135deg, #ffcf63, #f7ad57 40%, #f08267 100%);
  color: #3d2a0c;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 10px 24px rgba(191, 124, 48, 0.27);
  animation: none;
}

.user-heart-btn:disabled {
  cursor: default;
}

.user-heart-btn:not(:disabled):active {
  transform: translateY(1px) scale(0.985);
}

.user-heart-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05em;
  height: 1em;
  font-size: 26px;
  line-height: 1;
  transform: translateY(-1px) scale(1.08);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

@keyframes user-heart-glow {
  0%,
  100% {
    filter: saturate(1) brightness(1);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.34),
      0 10px 24px rgba(213, 68, 131, 0.26);
  }
  50% {
    filter: saturate(1.06) brightness(1.04);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.38),
      0 12px 28px rgba(227, 78, 143, 0.34);
  }
}

.detail-metric-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.detail-metric-card {
  min-height: 78px;
  padding: 12px 12px;
  border-radius: 16px;
  background: #f4f6f9;
  border: 1px solid #e1e7ee;
  display: grid;
  align-content: start;
  gap: 8px;
}

.detail-metric-card.wide {
  grid-column: 1 / -1;
}

.detail-metric-card.compact .detail-metric-value {
  font-size: 16px;
  line-height: 1.35;
  word-break: break-all;
}

.detail-metric-label {
  font-size: var(--fs-xs);
  color: #8a97a8;
  font-weight: 700;
}

.detail-metric-value {
  font-size: 20px;
  color: #2b3b4e;
  line-height: 1.4;
  font-weight: 800;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.detail-phone-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.detail-section-title {
  font-size: 18px;
  font-weight: 800;
  color: #1e2e42;
}

.detail-section-body {
  margin-top: 12px;
  min-height: 74px;
  padding: 14px;
  border-radius: 16px;
  background: #f4f6f9;
  border: 1px solid #e1e7ee;
  font-size: var(--fs-md);
  line-height: 1.8;
  color: #33465c;
}

.detail-remark {
  margin-top: 12px;
  min-height: 110px;
  border-radius: 16px;
  border: 1px solid #dfe7f0;
  background: #f4f6f9;
  color: #33465c;
  padding: 14px;
  font-size: var(--fs-md);
}

.detail-bottom-actions {
  gap: 10px;
}

.detail-bottom-btn {
  flex: 1 1 0;
  min-height: 52px;
  border-radius: 16px;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(14, 34, 58, 0.12);
}

@media (max-width: 420px) {
  .detail-quick-row {
    grid-template-columns: 1.12fr repeat(3, minmax(0, 1fr));
  }

  .detail-gender-box,
  .detail-identity-chip {
    min-height: 32px;
    padding: 0 6px;
    border-radius: 12px;
    font-size: 12px;
  }

  .detail-gender-box {
    gap: 5px;
  }

  .detail-gender-label,
  .detail-gender-box strong {
    font-size: 12px;
  }

  .detail-action-row {
    grid-template-columns: 1.15fr 0.8fr 0.8fr 1.15fr;
  }

  .detail-action-chip {
    min-height: 34px;
    padding: 0 8px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 360px) {
  .form-grid,
  .brand-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .field-full {
    grid-column: auto;
  }

  .couple-wrap {
    justify-content: center;
  }

  .couple-illustration {
    max-width: 150px;
  }

  .hero-lines {
    bottom: 132px;
  }

  .sheep-card {
    min-height: 120px;
    padding: 9px;
    grid-template-columns: 42px minmax(0, 1fr) 26px;
    gap: 9px;
  }

  .sheep-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .sheep-name {
    font-size: 16px;
  }

  .sheep-id {
    font-size: 11px;
  }

  .sheep-phone {
    font-size: 11px;
  }

  .sheep-tag {
    min-height: 21px;
    font-size: 10px;
  }

  .sheep-meta-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    font-size: 11px;
  }

  .sheep-score {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .gender-filter-btn {
    min-height: 46px;
    padding: 0 10px;
  }

  .gender-filter-btn strong {
    font-size: 19px;
  }

  .gender-filter-label {
    font-size: 13px;
  }

  .stats-tab {
    min-height: 92px;
    padding: 12px 8px 10px;
  }

  .stats-tab small {
    font-size: 13px;
  }

  .stats-card strong {
    font-size: 24px;
  }

  .stats-tab strong {
    font-size: 24px;
  }

  .service-nav {
    gap: 8px;
    padding: 8px;
  }

  .record-switch {
    gap: 8px;
  }

  .record-switch-btn {
    min-height: 42px;
    font-size: 13px;
    padding: 0 10px;
  }

  .user-view-switch.is-locked .record-switch-btn {
    flex-basis: min(56%, 180px);
  }

  .sheep-stage-select-wrap {
    min-width: 116px;
    max-width: 170px;
  }

  .sheep-stage-select-wrap .simulate-select {
    min-height: 38px;
    font-size: 13px;
  }

  .user-blessing-card {
    padding: 14px;
    gap: 10px;
  }

  .user-blessing-copy {
    font-size: 18px;
  }

  .user-blessing-meta {
    font-size: 13px;
  }

  .user-blessing-sign {
    font-size: 20px;
  }

  .record-item {
    padding: 12px;
  }

  .record-rich-card {
    padding: 14px;
  }

  .record-copy strong {
    font-size: 15px;
  }

  .record-summary-copy strong {
    font-size: 14px;
  }

  .record-summary-copy small {
    font-size: 11px;
  }

  .record-people {
    grid-template-columns: 1fr;
  }

  .record-pair-link {
    display: none;
  }

  .record-person {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
  }

  .record-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .record-person-copy strong {
    font-size: 14px;
  }

  .record-meta-chips {
    gap: 6px;
  }

  .record-meta-chip {
    min-height: 26px;
    padding: 0 8px;
    font-size: 11px;
  }

  .record-note-editor {
    padding: 12px;
  }

  .record-note-textarea {
    min-height: 124px;
    font-size: 13px;
  }

  .record-bottomline {
    gap: 10px;
  }

  .record-action-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 360px;
    width: 100%;
    margin: 0 auto;
    justify-content: center;
  }

  .record-action-wrap.triple {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 100%;
  }

  .record-action-wrap.double-tight {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
  }

  .record-action-wrap.single {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

  .record-action-wrap .record-convert-btn {
    width: 100%;
  }

  .instant-action-row,
  .instant-filter-grid,
  .simulate-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .simulate-toolbar-label {
    font-size: 12px;
  }

  .simulate-input,
  .simulate-select {
    min-height: 40px;
    padding: 0 34px 0 10px;
    font-size: 13px;
  }

  .simulate-pair-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px 12px;
  }

  .instant-add-btn {
    min-height: 44px;
    font-size: 14px;
  }

  .instant-helper-note {
    font-size: 11px;
  }

  .simulate-columns.split-scroll {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .simulate-list.split-list {
    max-height: min(54vh, 520px);
    padding-right: 2px;
  }

  .simulate-frame-wrap {
    --simulate-capture-height: 156px;
  }

  .simulate-capture-frame {
    right: 4px;
  }

  .detail-hero {
    width: 136px;
    min-width: 136px;
    height: 176px;
  }

  .detail-hero-img,
  .detail-hero-fallback {
    height: 176px;
  }

  .detail-summary {
    grid-template-columns: 136px minmax(0, 1fr);
    gap: 14px;
  }

  .detail-thumb-row {
    gap: 8px;
  }

  .detail-thumb-btn {
    flex-basis: 44px;
  }

  .detail-photo-count {
    right: 6px;
    bottom: 6px;
    min-height: 22px;
    padding: 0 7px;
    font-size: 10px;
  }

  .detail-main-line strong {
    font-size: 22px;
  }

  .detail-quick-row,
  .detail-action-row {
    gap: 6px;
  }

  .detail-quick-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .detail-action-row {
    grid-template-columns: 1.25fr 0.8fr 0.8fr 0.9fr;
  }

  .detail-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-metric-card.wide {
    grid-column: 1 / -1;
  }

  .detail-metric-card.compact .detail-metric-value {
    font-size: 15px;
  }

  .detail-bottom-actions {
    flex-direction: row;
  }
}
