:root {
  --ink: #111114;
  --ink-2: #24242a;
  --muted: #71717a;
  --line: #dedbd4;
  --soft-line: #ebe7df;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --warm: #f3eadb;
  --accent: #c70f2e;
  --accent-2: #e04a4f;
  --gold: #b68a3a;
  --green: #276a4b;
  --shadow: 0 18px 60px rgba(17, 17, 20, 0.1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  letter-spacing: 0;
}

body.theme-dark {
  --ink: #f6f0e6;
  --ink-2: #e6ded1;
  --muted: #b9ad9c;
  --line: #3a342b;
  --soft-line: #2f2a24;
  --paper: #11100f;
  --surface: #191713;
  --warm: #241f18;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.36);
  background: var(--paper);
  color: var(--ink);
}

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

button {
  cursor: pointer;
}

.home-body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(251, 250, 247, 0.96) 0%, rgba(251, 250, 247, 0.78) 42%, #ffffff 100%),
    url("https://images.unsplash.com/photo-1531058020387-3be344556be6?auto=format&fit=crop&w=2200&q=82");
  background-attachment: fixed;
  background-position: center top;
  background-size: cover;
}

.home-body a {
  color: inherit;
  text-decoration: none;
}

.home-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(17, 17, 20, 0.08);
  background: rgba(251, 250, 247, 0.9);
  backdrop-filter: blur(18px);
}

.home-logo {
  width: max-content;
  display: grid;
  justify-self: start;
  gap: 2px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.home-logo span {
  color: var(--accent);
}

.home-logo strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.home-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.home-nav a,
.home-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
}

.home-nav a {
  color: var(--ink-2);
}

.home-nav a:hover {
  background: rgba(199, 15, 46, 0.08);
  color: var(--accent);
}

.home-cta {
  width: max-content;
  justify-self: end;
  background: var(--ink);
  color: #ffffff;
  white-space: nowrap;
}

.home-body .home-cta {
  color: #ffffff;
}

.home-main {
  overflow: hidden;
}

.home-hero {
  min-height: calc(100vh - 77px);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.72fr);
  align-items: center;
  gap: clamp(32px, 6vw, 86px);
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(52px, 8vw, 92px) 0;
}

.hero-copy {
  max-width: 690px;
}

.hero-copy h1 {
  margin: 0;
  max-width: 780px;
  color: var(--ink);
  font-size: clamp(44px, 5vw, 78px);
  font-weight: 900;
  line-height: 1.03;
}

.hero-copy p {
  max-width: 660px;
  margin: 24px 0 0;
  color: #4b4b52;
  font-size: 20px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-preview {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(17, 17, 20, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 30px 90px rgba(17, 17, 20, 0.16);
  backdrop-filter: blur(16px);
}

.preview-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--soft-line);
}

.preview-top span,
.category-card span,
.workflow-line span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.preview-top strong {
  max-width: 240px;
  font-size: 14px;
  line-height: 1.45;
  text-align: right;
}

.preview-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #ffffff;
}

.preview-photo {
  aspect-ratio: 1;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(17, 17, 20, 0.08), rgba(17, 17, 20, 0.18)),
    url("https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=600&q=80");
  background-position: center;
  background-size: cover;
}

.preview-card h2 {
  margin: 0;
  font-size: 24px;
}

.preview-card p {
  margin: 8px 0 14px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

.preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.preview-tags span {
  padding: 6px 8px;
  border-radius: 999px;
  background: var(--warm);
  color: #6d4a12;
  font-size: 12px;
  font-weight: 800;
}

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

.preview-metrics div {
  min-height: 92px;
  padding: 14px;
  border-radius: 8px;
  background: #17171b;
  color: #ffffff;
}

.preview-metrics span {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 800;
}

.preview-metrics strong {
  display: block;
  margin-top: 12px;
  font-size: 26px;
  line-height: 1;
}

.category-hub,
.home-workflow {
  padding: clamp(64px, 8vw, 104px) clamp(20px, 5vw, 72px);
  background: #ffffff;
}

.home-section-heading {
  width: min(1080px, 100%);
  margin: 0 auto 28px;
}

.home-section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.15;
}

.home-section-heading p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: min(1080px, 100%);
  margin: 0 auto;
}

.category-card {
  min-height: 242px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #ffffff;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.category-card:hover {
  border-color: rgba(199, 15, 46, 0.34);
  box-shadow: 0 20px 46px rgba(17, 17, 20, 0.1);
  transform: translateY(-3px);
}

.category-card.feature {
  background: #16161a;
  color: #ffffff;
}

.category-card h3 {
  margin: 22px 0 0;
  font-size: 22px;
  line-height: 1.25;
}

.category-card p {
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.category-card.feature p {
  color: rgba(255, 255, 255, 0.68);
}

.category-card strong {
  margin-top: auto;
  color: var(--accent);
  font-size: 14px;
}

.category-card.feature strong {
  color: #ffffff;
}

.home-workflow {
  background: var(--paper);
}

.workflow-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(1080px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--soft-line);
}

.workflow-line div {
  min-height: 210px;
  padding: 24px;
  background: #ffffff;
}

.workflow-line strong {
  display: block;
  margin-top: 24px;
  font-size: 20px;
}

.workflow-line p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.brand-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 20px 20px;
  color: #f8f4ea;
  background:
    linear-gradient(180deg, rgba(9, 10, 12, 0.82), rgba(9, 10, 12, 0.98)),
    url("https://images.unsplash.com/photo-1516280440614-37939bbacd81?auto=format&fit=crop&w=900&q=80");
  background-size: cover;
  background-position: center;
}

.brand-block {
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.brand-logo-image {
  display: block;
  width: min(158px, 100%);
  height: auto;
}

.brand-mark {
  font-size: 29px;
  font-weight: 900;
  line-height: 1;
}

.brand-mark span {
  color: #ff3150;
}

.brand-block p {
  margin: 8px 0 14px;
  font-size: 22px;
  font-weight: 800;
}

.brand-block small {
  display: block;
  color: rgba(248, 244, 234, 0.72);
  line-height: 1.55;
}

.side-nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 14px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: rgba(248, 244, 234, 0.84);
  font-weight: 700;
  text-align: left;
}

.nav-item.active,
.nav-item:hover {
  background: var(--accent);
  color: white;
}

.nav-icon {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
}

.rail-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.rail-footer strong,
.rail-footer span {
  display: block;
}

.rail-footer strong {
  font-size: 13px;
}

.rail-footer span {
  margin-top: 8px;
  color: rgba(248, 244, 234, 0.75);
  font-size: 12px;
}

.workspace {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--soft-line);
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(16px);
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

.topbar p,
.section-heading p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.top-actions,
.resume-actions,
.match-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.primary-button,
.ghost-button {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 800;
}

.primary-button {
  background: var(--accent);
  color: white;
  box-shadow: 0 10px 24px rgba(199, 15, 46, 0.22);
}

.ghost-button {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink-2);
}

.primary-button:disabled,
.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

.view {
  display: none;
  padding: 22px 28px 28px;
}

.view.active {
  display: block;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.search-box span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 800;
}

.filter-chip.active {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 22px;
  align-items: start;
}

.member-area,
.detail-panel,
.resume-input-panel,
.profile-register-panel,
.analysis-panel,
.mypage-card-panel,
.mypage-analysis-panel,
.matching-layout > section,
.assistant-panel,
.inquiry-layout > section,
.inquiry-list {
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
}

.member-area {
  padding: 18px;
}

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

.section-heading h2 {
  font-size: 22px;
}

select {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink-2);
  font-weight: 700;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.member-card {
  position: relative;
  overflow: hidden;
  min-height: 258px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--surface);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.member-card:hover,
.member-card.selected {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 16px 34px rgba(17, 17, 20, 0.14);
}

.member-card.selected::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid var(--accent);
  pointer-events: none;
}

.member-card button {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.member-empty-state,
.detail-empty-state {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  min-height: 280px;
  align-content: center;
  justify-items: start;
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
}

.detail-empty-state {
  min-height: 420px;
}

.member-empty-state span,
.detail-empty-state span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.member-empty-state h3,
.detail-empty-state h3 {
  font-size: 24px;
}

.member-empty-state p,
.detail-empty-state p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.6;
}

.member-empty-state div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.member-photo {
  position: relative;
  height: 164px;
  background: linear-gradient(135deg, #ddd7cd, #fbfaf7);
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.member-index {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
}

.member-body {
  padding: 12px;
}

.member-body h3 {
  font-size: 17px;
}

.member-body p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.tag {
  padding: 4px 7px;
  border-radius: 5px;
  background: #f1eee8;
  color: #5b5145;
  font-size: 11px;
  font-weight: 800;
}

.detail-panel {
  position: sticky;
  top: 104px;
  overflow: hidden;
}

.profile-hero {
  padding: 22px;
  border-bottom: 1px solid var(--soft-line);
}

.profile-top {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 16px;
}

.profile-avatar {
  width: 116px;
  height: 146px;
  overflow: hidden;
  border-radius: 7px;
  background: var(--warm);
}

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

.profile-meta h2 {
  margin-bottom: 6px;
  font-size: 25px;
}

.profile-meta p {
  margin-bottom: 10px;
  color: var(--muted);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.stat-box {
  padding: 10px;
  border: 1px solid var(--soft-line);
  border-radius: 6px;
  background: var(--paper);
}

.stat-box span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.stat-box strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.tab-strip {
  display: flex;
  gap: 18px;
  padding: 0 22px;
  border-bottom: 1px solid var(--soft-line);
}

.tab-button {
  padding: 16px 0 13px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.tab-button.active {
  border-color: var(--accent);
  color: var(--accent);
}

.profile-content {
  padding: 18px 22px 22px;
}

.video-box {
  display: grid;
  place-items: center;
  height: 132px;
  margin-bottom: 16px;
  border-radius: 7px;
  background:
    linear-gradient(120deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.12)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=900&q=80");
  background-size: cover;
  background-position: center;
  color: white;
  font-weight: 900;
}

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

.content-list li {
  line-height: 1.5;
}

.score-panel {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #eadac0;
  border-radius: 7px;
  background: #fff7ea;
}

.score-ring {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border: 9px solid #ead8ba;
  border-top-color: var(--accent);
  border-right-color: var(--accent);
  border-radius: 50%;
}

.score-ring strong {
  font-size: 24px;
}

.bar-list {
  display: grid;
  gap: 9px;
}

.bar-row {
  display: grid;
  grid-template-columns: 92px 1fr 42px;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.bar {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: #ead8ba;
}

.bar span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.resume-layout,
.profile-register-layout,
.mypage-layout,
.matching-layout,
.inquiry-layout,
.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 22px;
  align-items: start;
}

.resume-input-panel,
.profile-register-panel,
.analysis-panel,
.mypage-card-panel,
.mypage-analysis-panel,
.matching-layout > section,
.assistant-panel,
.inquiry-layout > section,
.inquiry-list,
.admin-panel {
  padding: 20px;
}

.admin-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--paper);
}

.admin-row strong,
.admin-row span,
.admin-row p,
.admin-row small {
  overflow-wrap: anywhere;
}

.admin-row strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
}

.admin-row span,
.admin-row small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-row p {
  margin-top: 8px;
  color: var(--ink-2);
  line-height: 1.45;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-actions button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #c9a86c;
  border-radius: 6px;
  background: #fffaf0;
  color: #7a111c;
  font-weight: 900;
  cursor: pointer;
}

.admin-loading,
.admin-empty {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

textarea {
  width: 100%;
  min-height: 240px;
  padding: 16px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
}

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

.profile-register-layout[hidden],
.profile-public-panel[hidden] {
  display: none;
}

.profile-register-grid label,
.mypage-form label,
.profile-textarea-label {
  display: grid;
  gap: 8px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 900;
}

.profile-register-grid input,
.profile-register-grid select,
.mypage-form input,
.mypage-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  outline: 0;
}

.mypage-form input[readonly] {
  background: #f1eee8;
  color: #6f675e;
  cursor: not-allowed;
}

.profile-textarea-label {
  margin-top: 16px;
}

.profile-textarea-label textarea,
.mypage-form textarea {
  min-height: 130px;
  padding: 14px;
}

.file-drop {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 18px;
  border: 1px dashed #c7ae83;
  border-radius: 8px;
  background: #fff8ec;
  color: #6d4a12;
}

.file-drop input {
  width: 100%;
}

.file-drop span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.file-drop strong {
  color: var(--ink);
  font-size: 15px;
}

.file-drop em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.5;
}

.profile-media-editor {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fffdf9;
}

.profile-media-preview {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  border-radius: 8px;
  background: #111111;
  color: #ffffff;
}

.profile-media-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.62;
}

.profile-media-preview img {
  position: relative;
  z-index: 1;
  width: 86px;
  height: 108px;
  margin: 20px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  object-fit: cover;
}

.profile-media-preview div:not(.profile-media-bg) {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  padding: 0 20px 18px;
}

.profile-media-preview strong {
  font-size: 21px;
}

.profile-media-preview span {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.profile-media-controls {
  display: grid;
  gap: 12px;
}

.profile-media-controls label {
  display: grid;
  gap: 8px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 900;
}

.profile-media-controls input {
  width: 100%;
}

.profile-media-controls p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.profile-public-panel {
  display: grid;
  gap: 18px;
}

.profile-share-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 22px;
  min-height: 390px;
  padding: 30px;
  border: 1px solid #d7c9b5;
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(17, 17, 20, 0.94), rgba(17, 17, 20, 0.55)),
    var(--profile-bg);
  background-position: center;
  background-size: cover;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.profile-share-card-top,
.profile-share-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-share-card-top span,
.profile-public-section > span {
  color: #d6a24b;
  font-size: 12px;
  font-weight: 900;
}

.profile-share-card-main {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  align-items: end;
}

.profile-share-card-main img {
  width: 150px;
  aspect-ratio: 4 / 5;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  object-fit: cover;
  background: #f2eadc;
}

.profile-share-card-main strong {
  display: block;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
}

.profile-share-card-main p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  font-weight: 900;
}

.profile-share-card-main em {
  display: block;
  margin-top: 8px;
  color: #d6a24b;
  font-style: normal;
  font-weight: 900;
}

.profile-share-intro {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
  line-height: 1.7;
}

.profile-share-card small {
  color: rgba(255, 255, 255, 0.58);
  overflow-wrap: anywhere;
}

.ghost-button.light {
  border-color: rgba(255, 255, 255, 0.42);
  color: #ffffff;
}

.profile-public-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: 16px;
}

.profile-public-section {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.profile-public-section.span-2 {
  grid-column: 1 / -1;
}

.profile-public-section > span {
  color: var(--accent);
}

.profile-public-section h3 {
  font-size: 23px;
}

.profile-public-section p {
  color: var(--muted);
  line-height: 1.65;
}

.public-share-shell {
  min-height: calc(100vh - 190px);
  display: grid;
  place-items: center;
}

.public-share-card,
.public-share-empty {
  width: min(760px, 100%);
  display: grid;
  gap: 18px;
  padding: clamp(28px, 6vw, 54px);
  border: 1px solid #d7c9b5;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(17, 17, 20, 0.94), rgba(17, 17, 20, 0.78)),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1600&q=80");
  background-position: center;
  background-size: cover;
  color: #ffffff;
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.22);
}

.public-share-card span,
.public-share-empty span {
  color: #d6a24b;
  font-size: 12px;
  font-weight: 900;
}

.public-share-card h2,
.public-share-empty h2 {
  font-size: clamp(42px, 7vw, 74px);
  line-height: 1;
}

.public-share-card p,
.public-share-empty p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
  font-weight: 900;
}

.public-share-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.public-share-meta strong,
.public-share-meta em {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff7ea;
  font-style: normal;
  font-weight: 900;
}

.public-share-card blockquote {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.7;
}

.profile-onboarding {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 22px;
  padding: 24px;
  border: 1px solid #d7c9b5;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(17, 17, 20, 0.92), rgba(17, 17, 20, 0.72)),
    linear-gradient(135deg, #fff8ec, #ffffff);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.profile-onboarding[hidden] {
  display: none;
}

.onboarding-copy {
  display: grid;
  gap: 10px;
}

.onboarding-copy span,
.onboarding-steps li.complete strong {
  color: #d6a24b;
  font-size: 12px;
  font-weight: 900;
}

.onboarding-copy h2 {
  max-width: 520px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.1;
}

.onboarding-copy p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.65;
}

.onboarding-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.onboarding-steps li {
  display: grid;
  gap: 10px;
  min-height: 138px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
}

.onboarding-steps li.active {
  border-color: #d6a24b;
  background: rgba(214, 162, 75, 0.16);
}

.onboarding-steps li.complete {
  border-color: rgba(214, 162, 75, 0.56);
}

.onboarding-steps strong {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.onboarding-steps span {
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.onboarding-steps p {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  line-height: 1.45;
}

.onboarding-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.survey-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--soft-line);
}

.survey-header h3 {
  font-size: 19px;
}

.survey-header p {
  max-width: 720px;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.survey-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.survey-item {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 18px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--soft-line);
  border-radius: 7px;
  background: #fffdf9;
}

.survey-item span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.survey-item p {
  margin-top: 5px;
  color: var(--ink-2);
  line-height: 1.45;
}

.survey-choice-group {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
}

.survey-choice-group legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}

.survey-choice-group label {
  position: relative;
  display: grid;
  gap: 5px;
  min-height: 76px;
  padding: 10px 6px;
  border: 1px solid var(--soft-line);
  border-radius: 7px;
  background: var(--paper);
  color: var(--muted);
  text-align: center;
  cursor: pointer;
}

.survey-choice-group label.selected {
  border-color: var(--accent);
  background: #fff1f1;
  color: var(--accent);
  box-shadow: inset 0 0 0 2px rgba(199, 15, 46, 0.08);
}

.survey-choice-group input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.survey-choice-group span {
  color: inherit;
  font-size: 17px;
  font-weight: 900;
}

.survey-choice-group em {
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.25;
}

.analysis-panel {
  min-height: 430px;
}

.analysis-card {
  display: grid;
  gap: 16px;
}

.analysis-waiting {
  min-height: 390px;
  align-content: center;
}

.analysis-waiting span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.analysis-waiting h2 {
  margin-top: 8px;
  font-size: 25px;
  line-height: 1.25;
}

.analysis-waiting p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.65;
}

.analysis-waiting-steps {
  display: grid;
  gap: 10px;
}

.analysis-waiting-steps div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--soft-line);
  border-radius: 7px;
  background: var(--paper);
}

.analysis-waiting-steps strong {
  color: #8a6a2f;
  font-size: 12px;
}

.analysis-waiting-steps span {
  color: var(--ink-2);
  font-size: 14px;
}

.analysis-summary {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  align-items: center;
}

.analysis-metrics,
.profile-analysis-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.radar-card {
  display: grid;
  place-items: center;
  min-height: 290px;
  border: 1px solid #eadac0;
  border-radius: 8px;
  background: #fff8ec;
}

.radar-card.compact {
  min-height: 246px;
}

.radar-chart {
  width: min(100%, 280px);
  height: auto;
  overflow: visible;
}

.radar-grid {
  fill: rgba(182, 138, 58, 0.05);
  stroke: rgba(182, 138, 58, 0.34);
  stroke-width: 1;
}

.radar-axis {
  stroke: rgba(17, 17, 20, 0.18);
  stroke-width: 1;
}

.radar-value {
  fill: rgba(199, 15, 46, 0.22);
  stroke: var(--accent);
  stroke-width: 3;
  filter: drop-shadow(0 12px 22px rgba(199, 15, 46, 0.14));
}

.radar-point {
  fill: #ffffff;
  stroke: var(--accent);
  stroke-width: 3;
}

.radar-chart text {
  fill: #574d43;
  font-size: 11px;
  font-weight: 900;
}

.competency-grid {
  display: grid;
  gap: 10px;
}

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

.analysis-note-list div {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid var(--soft-line);
  border-radius: 6px;
  background: #fffdf9;
}

.analysis-note-list strong {
  color: var(--accent);
  font-size: 12px;
}

.analysis-note-list span {
  color: #4d463d;
  line-height: 1.45;
}

.locked-note {
  padding: 12px 14px;
  border: 1px solid #eadac0;
  border-radius: 6px;
  background: #fff7ea;
  color: #6d4a12;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
}

.large-score {
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  border: 11px solid #ead8ba;
  border-top-color: var(--accent);
  border-right-color: var(--accent);
  border-radius: 50%;
}

.large-score strong {
  font-size: 34px;
}

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

.insight-box {
  padding: 14px;
  border: 1px solid var(--soft-line);
  border-radius: 7px;
  background: var(--paper);
}

.mypage-form .span-2 {
  grid-column: 1 / -1;
}

.mypage-form button {
  grid-column: 1 / -1;
  justify-self: start;
}

.mypage-business-card,
.account-summary-card,
.readonly-score-card,
.mypage-section-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid #d7c9b5;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(17, 17, 20, 0.94), rgba(17, 17, 20, 0.8)),
    linear-gradient(135deg, #fff8ec, #ffffff);
  color: #ffffff;
  box-shadow: 0 18px 48px rgba(17, 17, 20, 0.14);
}

.mypage-business-card span,
.account-summary-card span,
.readonly-score-card span,
.mypage-section-card > span {
  color: #d6a24b;
  font-size: 11px;
  font-weight: 900;
}

.mypage-business-card h3,
.account-summary-card h3,
.readonly-score-card h3,
.mypage-section-card h3 {
  font-size: 34px;
}

.mypage-business-card p,
.account-summary-card p,
.readonly-score-card p,
.mypage-section-card p {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.mypage-business-card dl,
.account-summary-card dl {
  display: grid;
  gap: 9px;
  margin: 0;
}

.mypage-business-card dl div,
.account-summary-card dl div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mypage-business-card dt,
.account-summary-card dt {
  color: #d6a24b;
  font-size: 11px;
  font-weight: 900;
}

.mypage-business-card dd,
.account-summary-card dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  overflow-wrap: anywhere;
}

.mypage-business-card strong,
.account-summary-card strong {
  color: #fff7ea;
  line-height: 1.55;
}

.mypage-section-card,
.readonly-score-card {
  margin-top: 16px;
  background: #fffdf9;
  color: var(--ink);
}

.mypage-section-card > span {
  color: var(--accent);
}

.mypage-section-card h3 {
  font-size: 22px;
}

.mypage-section-card p,
.readonly-score-card p {
  color: var(--muted);
  line-height: 1.55;
}

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

.mypage-profile-facts div {
  display: grid;
  gap: 6px;
  min-height: 76px;
  padding: 13px;
  border: 1px solid var(--soft-line);
  border-radius: 7px;
  background: var(--paper);
}

.mypage-profile-facts strong {
  color: #8a6a2f;
  font-size: 12px;
}

.mypage-profile-facts em {
  color: var(--ink);
  font-style: normal;
  font-weight: 900;
}

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

.mypage-match-card {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--soft-line);
  border-radius: 7px;
  background: var(--paper);
}

.mypage-match-card p {
  color: var(--muted);
  font-size: 13px;
}

.mypage-match-card .small-button {
  justify-self: start;
}

.readonly-score-card .radar-card {
  background: #fff8ec;
}

.insight-box h3 {
  margin-bottom: 8px;
  font-size: 15px;
}

.insight-box p {
  color: var(--muted);
  line-height: 1.45;
}

.match-controls {
  margin-bottom: 16px;
}

.match-controls select {
  min-width: 190px;
}

.match-table {
  overflow: hidden;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--surface);
}

.match-row {
  display: grid;
  grid-template-columns: 42px 1.2fr 0.7fr 0.8fr 94px;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border-bottom: 1px solid var(--soft-line);
}

.match-row:last-child {
  border-bottom: 0;
}

.match-row.header {
  background: #f3f0ea;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.mini-person {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-person img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.mini-person strong {
  display: block;
}

.mini-person span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.match-score {
  color: var(--accent);
  font-weight: 900;
}

.match-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.48fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: rgba(199, 15, 46, 0.05);
}

.match-summary span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.match-summary strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
}

.match-summary p,
.match-summary em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
}

.small-button {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 900;
}

.assistant-panel {
  position: sticky;
  top: 104px;
}

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

.assistant-header h2 {
  font-size: 20px;
}

.assistant-header span {
  padding: 4px 7px;
  border-radius: 5px;
  background: #fff2d4;
  color: #8a5a00;
  font-size: 11px;
  font-weight: 900;
}

.assistant-bubble,
.assistant-answer {
  padding: 14px;
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink-2);
  line-height: 1.55;
}

.question-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.question-list button {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink-2);
  font-weight: 800;
  text-align: left;
}

.question-list button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

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

.inquiry-form label {
  display: grid;
  gap: 8px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 900;
}

.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
}

.inquiry-form textarea {
  min-height: 150px;
}

.inquiry-list {
  display: grid;
  gap: 12px;
}

.inquiry-item {
  padding: 14px;
  border: 1px solid var(--soft-line);
  border-radius: 7px;
  background: var(--surface);
}

.inquiry-item strong,
.inquiry-item span {
  display: block;
}

.inquiry-item span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 7px;
  background: #111114;
  color: white;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .home-header {
    grid-template-columns: auto auto;
  }

  .home-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-preview {
    max-width: 720px;
  }

  .category-grid,
  .workflow-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .brand-block p,
  .brand-block small,
  .rail-footer,
  .nav-item:not(.active) {
    display: none;
  }

  .brand-mark {
    font-size: 18px;
  }

  .nav-item {
    justify-content: center;
    padding: 14px 0;
    font-size: 0;
  }

  .nav-icon {
    font-size: 18px;
  }

  .split-layout,
  .resume-layout,
  .profile-register-layout,
  .mypage-layout,
  .matching-layout,
  .inquiry-layout,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .profile-onboarding,
  .onboarding-steps {
    grid-template-columns: 1fr;
  }

  .onboarding-actions {
    justify-content: flex-start;
  }

  .detail-panel,
  .assistant-panel {
    position: static;
  }

  .member-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .home-body {
    background-attachment: scroll;
  }

  .home-header {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px;
  }

  .home-logo {
    margin-right: auto;
  }

  .home-nav {
    order: 3;
    width: 100%;
  }

  .home-nav a,
  .home-cta {
    min-height: 36px;
    padding: 0 10px;
    font-size: 13px;
    white-space: nowrap;
  }

  .home-hero {
    width: min(100% - 32px, 540px);
    padding: 40px 0 56px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
  }

  .preview-top,
  .preview-card,
  .preview-metrics,
  .category-grid,
  .workflow-line {
    grid-template-columns: 1fr;
  }

  .preview-top {
    display: grid;
  }

  .preview-top strong {
    max-width: none;
    text-align: left;
  }

  .category-hub,
  .home-workflow {
    padding: 56px 16px;
  }

  .category-card {
    min-height: 210px;
  }

  .app-shell {
    display: block;
  }

  .brand-rail {
    position: static;
    height: auto;
    padding: 16px;
  }

  .brand-block {
    padding-bottom: 0;
    border: 0;
  }

  .brand-block p,
  .brand-block small {
    display: block;
  }

  .side-nav {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 16px;
  }

  .nav-item {
    display: grid;
    justify-items: center;
    gap: 5px;
    font-size: 11px;
    text-align: center;
  }

  .topbar,
  .search-row,
  .section-heading {
    display: grid;
  }

  .topbar {
    position: static;
    padding: 20px 16px;
  }

  .view {
    padding: 16px;
  }

  .member-grid,
  .insight-grid,
  .profile-register-grid,
  .profile-media-editor,
  .profile-public-grid,
  .profile-share-card-main,
  .mypage-form,
  .mypage-profile-facts,
  .analysis-metrics,
  .profile-analysis-grid,
  .survey-item {
    grid-template-columns: 1fr;
  }

  .survey-header {
    display: grid;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .profile-top,
  .analysis-summary {
    grid-template-columns: 1fr;
  }

  .match-summary {
    grid-template-columns: 1fr;
  }

  .mypage-form .span-2,
  .mypage-form button,
  .profile-public-section.span-2 {
    grid-column: auto;
  }

  .survey-choice-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .match-row {
    grid-template-columns: 32px 1fr;
  }

  .match-row > :nth-child(n + 3) {
    display: none;
  }
}

/* Reference-style homepage */
.reference-home {
  min-height: 100vh;
  background: #f7f2ea;
  color: #111111;
}

.reference-home a {
  color: inherit;
  text-decoration: none;
}

.reference-shell {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  min-height: 100vh;
}

.reference-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 44px 28px 30px;
  border-right: 2px solid #b98938;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.98)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=900&q=80");
  background-position: center;
  background-size: cover;
  color: #f8f2e7;
}

.reference-brand {
  display: grid;
  gap: 8px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.reference-brand span {
  color: #d3a04c;
  font-size: 34px;
  font-weight: 900;
  line-height: 0.92;
}

.reference-brand strong {
  font-size: 31px;
  font-weight: 900;
  line-height: 1.05;
}

.reference-brand small {
  margin-top: 10px;
  color: #d6a24b;
  font-size: 13px;
  font-weight: 800;
}

.reference-menu {
  display: grid;
  gap: 8px;
  margin-top: 32px;
}

.reference-menu a {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 3px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 800;
}

.reference-menu a.active,
.reference-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #d6a24b;
}

.menu-symbol {
  width: 20px;
  display: inline-flex;
  justify-content: center;
  color: currentColor;
  font-size: 18px;
  line-height: 1;
}

.sidebar-note {
  margin-top: auto;
  padding-top: 24px;
}

.sidebar-note span {
  color: #d6a24b;
  font-size: 12px;
  font-weight: 900;
}

.sidebar-note strong {
  display: block;
  margin-top: 8px;
  color: #ffffff;
  font-size: 19px;
}

.sidebar-note p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.65;
}

.reference-main {
  min-width: 0;
  background: #fbf7ef;
}

.reference-topbar {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 40px 0 56px;
  border-bottom: 1px solid #ddd4c5;
  background: rgba(255, 252, 247, 0.96);
}

.reference-topnav {
  display: flex;
  align-items: center;
  gap: clamp(26px, 3.4vw, 78px);
  min-width: 0;
}

.reference-topnav a {
  color: #171717;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.reference-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.reference-search {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #161616;
  font-weight: 900;
  white-space: nowrap;
}

.reference-search span {
  font-size: 22px;
  line-height: 1;
}

.reference-cta,
.reference-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}

.reference-cta {
  border: 1px solid #c12324;
  background: linear-gradient(180deg, #c91518, #9d0708);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.reference-outline {
  border: 1px solid rgba(211, 160, 76, 0.8);
  background: rgba(0, 0, 0, 0.34);
  color: #ffffff;
}

.reference-hero {
  position: relative;
  min-height: 585px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 0.72fr);
  align-items: center;
  gap: clamp(34px, 4.5vw, 76px);
  padding: 62px 40px 58px 86px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.56) 48%, rgba(0, 0, 0, 0.38) 100%),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=2200&q=84");
  background-position: center;
  background-size: cover;
  color: #ffffff;
}

.reference-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 92px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.44));
  pointer-events: none;
}

.reference-hero-copy,
.reference-preview {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  margin: 0;
  font-size: clamp(46px, 4.5vw, 72px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0;
}

.reference-hero-copy h1 {
  margin: 24px 0 0;
  font-size: clamp(66px, 7vw, 118px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
}

.reference-hero-copy > strong {
  display: inline-block;
  margin-top: 30px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(211, 160, 76, 0.72);
  color: #d8a653;
  font-size: clamp(19px, 1.7vw, 28px);
  line-height: 1.25;
}

.reference-hero-copy > p:not(.hero-kicker) {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 21px;
  line-height: 1.78;
}

.reference-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 38px;
}

.reference-cta.large,
.reference-outline {
  min-width: 276px;
  min-height: 72px;
  font-size: 19px;
}

.reference-preview {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.76);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.preview-heading strong {
  font-size: 20px;
}

.preview-heading span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
}

.preview-heading span::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-radius: 50%;
  background: #13c46b;
}

.preview-layout {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 13px;
}

.preview-stats {
  display: grid;
  gap: 8px;
}

.preview-stats div {
  min-height: 80px;
  display: grid;
  align-content: center;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.preview-stats span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 900;
}

.preview-stats strong {
  margin-top: 5px;
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
}

.preview-stats em {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-style: normal;
}

.preview-screen {
  min-height: 354px;
  padding: 20px;
  border-radius: 8px;
  background: #ffffff;
  color: #151515;
}

.screen-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.screen-toolbar strong {
  font-size: 19px;
}

.screen-toolbar button {
  min-height: 36px;
  padding: 0 20px;
  border: 0;
  border-radius: 4px;
  background: #b50508;
  color: #ffffff;
  font-weight: 900;
}

.screen-search {
  display: flex;
  align-items: center;
  height: 38px;
  margin-top: 16px;
  padding: 0 14px;
  border: 1px solid #e8e4df;
  border-radius: 4px;
  color: #b0a9a0;
  font-size: 12px;
}

.screen-filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.screen-filters span {
  min-height: 32px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #eee7dd;
  border-radius: 4px;
  color: #776f66;
  font-size: 11px;
  font-weight: 800;
}

.screen-members {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.screen-members article {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 14px 8px;
  border: 1px solid #eee9e2;
  border-radius: 6px;
  background: #fffdf9;
  text-align: center;
}

.screen-members img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.screen-members strong {
  font-size: 13px;
}

.screen-members span {
  color: #726b63;
  font-size: 11px;
  font-weight: 700;
}

.reference-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 386px;
  gap: 0;
  border-bottom: 1px solid #d7cec0;
  background: #fffaf3;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 38px 28px 44px 50px;
}

.service-card {
  min-height: 190px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 15px;
  padding: 28px;
  border: 1px solid #ded4c5;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(42, 31, 17, 0.06);
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.service-card:hover {
  border-color: rgba(174, 5, 9, 0.5);
  box-shadow: 0 18px 36px rgba(42, 31, 17, 0.12);
  transform: translateY(-3px);
}

.service-card h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.service-card p {
  margin: 13px 0 0;
  color: #4c4740;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.7;
}

.service-card > strong {
  justify-self: end;
  color: #111111;
  font-size: 26px;
  line-height: 1;
}

.service-icon {
  position: relative;
  width: 38px;
  height: 38px;
  color: #b50609;
}

.service-icon::before,
.service-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.member-icon::before {
  top: 2px;
  left: 11px;
  width: 16px;
  height: 16px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.member-icon::after {
  left: 5px;
  bottom: 2px;
  width: 28px;
  height: 17px;
  border: 3px solid currentColor;
  border-radius: 18px 18px 4px 4px;
}

.ai-icon::before {
  inset: 7px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.ai-icon::after {
  inset: 0;
  background:
    radial-gradient(circle at 50% 3px, currentColor 0 3px, transparent 4px),
    radial-gradient(circle at 50% 35px, currentColor 0 3px, transparent 4px),
    radial-gradient(circle at 3px 50%, currentColor 0 3px, transparent 4px),
    radial-gradient(circle at 35px 50%, currentColor 0 3px, transparent 4px);
}

.resume-icon::before {
  inset: 3px 7px 2px 6px;
  border: 3px solid currentColor;
  border-radius: 3px;
}

.resume-icon::after {
  left: 13px;
  top: 13px;
  width: 15px;
  height: 12px;
  border-top: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
}

.culture-icon::before {
  inset: 7px;
  border: 3px solid currentColor;
  border-radius: 9px;
  transform: rotate(28deg);
}

.culture-icon::after {
  left: 16px;
  top: 0;
  width: 6px;
  height: 38px;
  border-radius: 6px;
  background: currentColor;
  box-shadow: -15px 16px 0 currentColor, 15px 16px 0 currentColor;
  transform: rotate(45deg);
}

.education-icon::before {
  left: 2px;
  top: 8px;
  width: 34px;
  height: 18px;
  border: 3px solid currentColor;
  transform: skewX(-18deg);
}

.education-icon::after {
  left: 13px;
  top: 23px;
  width: 16px;
  height: 9px;
  border: 3px solid currentColor;
  border-top: 0;
}

.business-icon::before {
  left: 4px;
  top: 11px;
  width: 30px;
  height: 22px;
  border: 3px solid currentColor;
  border-radius: 4px;
}

.business-icon::after {
  left: 13px;
  top: 5px;
  width: 12px;
  height: 9px;
  border: 3px solid currentColor;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}

.media-icon::before {
  inset: 6px 4px;
  border: 3px solid currentColor;
  border-radius: 5px;
}

.media-icon::after {
  left: 16px;
  top: 14px;
  border-left: 11px solid currentColor;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

.inquiry-icon::before {
  left: 3px;
  top: 7px;
  width: 32px;
  height: 24px;
  border: 3px solid currentColor;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
}

.inquiry-icon::after {
  left: 25px;
  top: 23px;
  width: 10px;
  height: 10px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
}

.notice-panel {
  padding: 34px 40px 34px 30px;
  border-left: 1px solid #ded4c5;
  background: rgba(253, 248, 239, 0.9);
}

.notice-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.notice-heading h2 {
  margin: 0;
  font-size: 22px;
}

.notice-heading a {
  color: #5a5146;
  font-size: 13px;
  font-weight: 800;
}

.notice-panel ul {
  display: grid;
  gap: 18px;
  margin: 28px 0 36px;
  padding: 0;
  list-style: none;
}

.notice-panel li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #2a2927;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.notice-panel time {
  color: #766d61;
  white-space: nowrap;
}

.support-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  padding: 28px;
  border: 1px solid #cfc4b4;
  border-radius: 6px;
  background: #fbf7f0;
}

.support-icon {
  font-size: 38px;
  line-height: 1;
}

.support-card h3 {
  margin: 0;
  font-size: 19px;
}

.support-card p {
  margin: 12px 0 18px;
  color: #4d4740;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.7;
}

.support-card a {
  display: inline-flex;
  justify-content: center;
  min-width: 170px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #bd1517;
  color: #af080b;
  font-weight: 900;
  line-height: 44px;
}

.reference-footer {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: clamp(24px, 5vw, 86px);
  padding: 0 56px;
  background: #050505;
  color: #fff5e6;
}

.reference-footer span {
  color: #d5a24d;
  font-weight: 900;
}

.reference-footer strong {
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
}

@media (max-width: 1480px) {
  .reference-shell {
    grid-template-columns: 232px minmax(0, 1fr);
  }

  .reference-sidebar {
    padding: 34px 22px 24px;
  }

  .reference-brand span {
    font-size: 29px;
  }

  .reference-brand strong {
    font-size: 27px;
  }

  .reference-topbar {
    padding: 0 28px;
  }

  .reference-topnav {
    gap: 28px;
  }

  .reference-hero {
    grid-template-columns: minmax(0, 0.96fr) minmax(420px, 0.78fr);
    gap: 30px;
    min-height: 570px;
    padding: 46px 28px 46px 48px;
  }

  .reference-preview {
    max-width: none;
  }

  .hero-kicker {
    font-size: clamp(40px, 4.1vw, 60px);
  }

  .reference-hero-copy h1 {
    font-size: clamp(58px, 6.2vw, 88px);
  }

  .reference-hero-copy > p:not(.hero-kicker) {
    font-size: 18px;
  }

  .reference-cta.large,
  .reference-outline {
    min-width: 230px;
    min-height: 62px;
    font-size: 17px;
  }

  .reference-dashboard {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .service-grid {
    padding: 28px 18px 34px 30px;
  }

  .service-card {
    min-height: 178px;
    padding: 22px;
  }

  .notice-panel {
    padding: 28px 24px;
  }
}

@media (max-width: 1080px) {
  .reference-shell {
    grid-template-columns: 204px minmax(0, 1fr);
  }

  .reference-sidebar {
    padding: 24px 18px 20px;
  }

  .reference-brand {
    padding-bottom: 28px;
  }

  .reference-brand span {
    font-size: 25px;
  }

  .reference-brand strong {
    font-size: 23px;
  }

  .reference-brand small {
    font-size: 11px;
  }

  .reference-menu {
    margin-top: 22px;
  }

  .reference-menu a {
    gap: 9px;
    padding: 0 8px;
    font-size: 13px;
  }

  .sidebar-note {
    display: none;
  }

  .reference-topbar {
    height: auto;
    flex-wrap: wrap;
    padding: 16px 22px;
  }

  .reference-topnav {
    flex-wrap: wrap;
    gap: 16px 26px;
  }

  .reference-actions {
    margin-left: auto;
  }

  .reference-hero {
    grid-template-columns: 1fr;
  }

  .reference-preview {
    max-width: 760px;
  }

  .reference-dashboard {
    grid-template-columns: 1fr;
  }

  .notice-panel {
    border-left: 0;
    border-top: 1px solid #ded4c5;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 26px 22px;
  }
}

@media (max-width: 720px) {
  .reference-shell {
    grid-template-columns: 1fr;
  }

  .reference-sidebar {
    position: static;
    height: auto;
    padding: 22px 18px 18px;
  }

  .reference-brand {
    padding-bottom: 20px;
  }

  .reference-menu {
    grid-template-columns: 1fr 1fr;
  }

  .reference-actions,
  .reference-hero-actions {
    display: grid;
    width: 100%;
  }

  .reference-cta,
  .reference-outline,
  .reference-cta.large {
    width: 100%;
    min-width: 0;
  }

  .reference-hero {
    min-height: auto;
    padding: 42px 18px;
  }

  .reference-hero-copy h1 {
    font-size: 58px;
  }

  .reference-hero-copy > p:not(.hero-kicker) {
    font-size: 17px;
  }

  .preview-layout {
    grid-template-columns: 1fr;
  }

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

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

  .service-grid {
    grid-template-columns: 1fr;
  }

  .notice-panel {
    padding: 28px 18px;
  }

  .support-card {
    grid-template-columns: 1fr;
  }

  .reference-footer {
    display: grid;
    gap: 12px;
    padding: 22px 18px;
  }
}

/* Reference-style platform subpages */
.platform-body {
  min-height: 100vh;
  background: #fbf7ef;
  color: #111111;
}

.platform-body .app-shell {
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
  background: #fbf7ef;
}

.platform-body .brand-rail {
  padding: 34px 22px 24px;
  border-right: 2px solid #b98938;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.98)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=900&q=80");
  background-position: center;
  background-size: cover;
  color: #f8f2e7;
}

.platform-body .brand-block {
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.platform-body .brand-logo-image {
  width: min(158px, 100%);
}

.platform-body .brand-mark {
  color: #d3a04c;
  font-size: 29px;
  font-weight: 900;
}

.platform-body .brand-mark span {
  color: #d3a04c;
}

.platform-body .brand-block p {
  margin: 8px 0 0;
  color: #ffffff;
  font-size: 27px;
  font-weight: 900;
  line-height: 1.05;
}

.platform-body .brand-block small {
  margin-top: 14px;
  color: #d6a24b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.platform-body .side-nav {
  gap: 8px;
  margin-top: 30px;
}

.platform-body .nav-item {
  min-height: 46px;
  gap: 13px;
  padding: 0 12px;
  border-radius: 3px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 900;
}

.platform-body .nav-item.active,
.platform-body .nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #d6a24b;
}

.platform-body .nav-icon {
  width: 22px;
  height: 22px;
  color: currentColor;
  font-size: 18px;
}

.platform-body .rail-footer {
  border-top: 0;
  padding-top: 24px;
}

.platform-body .rail-footer strong {
  color: #d6a24b;
  font-size: 12px;
  font-weight: 900;
}

.platform-body .rail-footer span {
  max-width: 170px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
}

.platform-body .workspace {
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(251, 247, 239, 0.92), rgba(251, 247, 239, 1)),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1800&q=76");
  background-attachment: fixed;
  background-position: center top;
  background-size: cover;
}

.platform-body .topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 98px;
  padding: 20px 36px;
  border-bottom: 1px solid #ddd4c5;
  background: rgba(255, 252, 247, 0.95);
  backdrop-filter: blur(18px);
}

.platform-body .topbar h1 {
  color: #111111;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0;
}

.platform-body .topbar p {
  max-width: 760px;
  color: #5e564c;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.65;
}

body.theme-dark.platform-body,
body.theme-dark.platform-body .app-shell {
  background: var(--paper);
  color: var(--ink);
}

body.theme-dark.platform-body .workspace {
  background:
    linear-gradient(180deg, rgba(17, 16, 15, 0.94), rgba(17, 16, 15, 1)),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1800&q=76");
  background-attachment: fixed;
  background-position: center top;
  background-size: cover;
}

body.theme-dark.platform-body .topbar {
  border-bottom-color: var(--line);
  background: rgba(17, 16, 15, 0.95);
}

body.theme-dark.platform-body .topbar h1,
body.theme-dark.platform-body .topbar p {
  color: var(--ink);
}

body.theme-dark.platform-body .ghost-button,
body.theme-dark.platform-body .small-button,
body.theme-dark.platform-body .search-box,
body.theme-dark.platform-body .filter-chip,
body.theme-dark.platform-body .member-card,
body.theme-dark.platform-body .member-empty-state,
body.theme-dark.platform-body .detail-empty-state,
body.theme-dark.platform-body .detail-panel,
body.theme-dark.platform-body .resume-input-panel,
body.theme-dark.platform-body .profile-register-panel,
body.theme-dark.platform-body .profile-public-panel,
body.theme-dark.platform-body .analysis-panel,
body.theme-dark.platform-body .mypage-card-panel,
body.theme-dark.platform-body .mypage-analysis-panel,
body.theme-dark.platform-body .assistant-panel,
body.theme-dark.platform-body .profile-share-card,
body.theme-dark.platform-body .public-share-card,
body.theme-dark.platform-body .profile-onboarding,
body.theme-dark.platform-body .mypage-business-card,
body.theme-dark.platform-body .mypage-section-card,
body.theme-dark.platform-body .mypage-match-card {
  border-color: var(--line);
  background: rgba(25, 23, 19, 0.94);
  color: var(--ink);
}

body.theme-dark.platform-body input,
body.theme-dark.platform-body select,
body.theme-dark.platform-body textarea {
  border-color: var(--line);
  background: #11100f;
  color: var(--ink);
}

.platform-body .top-actions {
  gap: 12px;
}

.platform-body .primary-button,
.platform-body .ghost-button,
.platform-body .small-button {
  border-radius: 4px;
  font-weight: 900;
}

.platform-body .primary-button {
  border: 1px solid #c12324;
  background: linear-gradient(180deg, #c91518, #9d0708);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(150, 0, 0, 0.18);
}

.platform-body .ghost-button,
.platform-body .small-button {
  border-color: #cfc4b4;
  background: rgba(255, 252, 247, 0.88);
  color: #161616;
}

.platform-body .view {
  padding: 30px 36px 38px;
}

.platform-body .search-row {
  grid-template-columns: minmax(260px, 460px) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.platform-body .search-box {
  height: 58px;
  border-color: #ded4c5;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(42, 31, 17, 0.06);
}

.platform-body .search-box span {
  color: #af080b;
}

.platform-body .search-box input::placeholder,
.platform-body textarea::placeholder {
  color: #a8a096;
}

.platform-body .filter-group {
  gap: 9px;
}

.platform-body .filter-chip {
  height: 44px;
  border-color: #ded4c5;
  border-radius: 4px;
  background: rgba(255, 252, 247, 0.9);
  color: #151515;
  box-shadow: 0 8px 18px rgba(42, 31, 17, 0.04);
}

.platform-body .filter-chip.active {
  border-color: #b50609;
  background: linear-gradient(180deg, #c91518, #9d0708);
  color: #ffffff;
}

.platform-body .split-layout {
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 24px;
}

.platform-body .member-area,
.platform-body .detail-panel,
.platform-body .resume-input-panel,
.platform-body .analysis-panel,
.platform-body .matching-layout > section,
.platform-body .assistant-panel,
.platform-body .inquiry-layout > section,
.platform-body .inquiry-list {
  border: 1px solid #ded4c5;
  border-radius: 6px;
  background: rgba(255, 252, 247, 0.9);
  box-shadow: 0 18px 40px rgba(42, 31, 17, 0.1);
}

.platform-body .member-area {
  padding: 22px;
}

.platform-body .section-heading {
  margin-bottom: 20px;
}

.platform-body .section-heading h2 {
  color: #111111;
  font-size: 24px;
  font-weight: 900;
}

.platform-body .section-heading p {
  color: #6a6258;
  font-weight: 700;
}

.platform-body select,
.platform-body textarea,
.platform-body .inquiry-form select,
.platform-body .inquiry-form textarea {
  border-color: #d8cec0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.94);
  color: #161616;
}

.platform-body .member-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.platform-body .member-card {
  min-height: 276px;
  border-color: #ded4c5;
  border-radius: 5px;
  background: #fffdf9;
  box-shadow: 0 10px 26px rgba(42, 31, 17, 0.06);
}

.platform-body .member-card .member-preview-button {
  display: block;
  width: 100%;
  height: auto;
  min-height: 276px;
  padding: 0 0 46px;
}

.platform-body .member-card .card-detail-cta {
  position: absolute;
  right: 13px;
  bottom: 12px;
  z-index: 3;
  width: auto;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #cfc4b4;
  border-radius: 4px;
  background: rgba(255, 252, 247, 0.92);
  color: #af080b;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(42, 31, 17, 0.1);
}

.platform-body .member-card:hover,
.platform-body .member-card.selected {
  border-color: rgba(175, 8, 11, 0.62);
  box-shadow: 0 18px 34px rgba(42, 31, 17, 0.14);
}

.platform-body .member-card.selected::before {
  border-color: #b50609;
}

.platform-body .member-photo {
  height: 172px;
  background: #f1eadf;
}

.platform-body .member-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.28));
  pointer-events: none;
}

.platform-body .member-index {
  z-index: 1;
  border: 1px solid rgba(222, 212, 197, 0.8);
  background: rgba(255, 252, 247, 0.88);
}

.platform-body .member-body {
  padding: 15px;
}

.platform-body .member-body h3 {
  font-size: 18px;
  font-weight: 900;
}

.platform-body .member-body p {
  color: #5e564c;
  font-weight: 700;
}

.platform-body .tag {
  border: 1px solid #eadfce;
  border-radius: 999px;
  background: #f6eddd;
  color: #705017;
}

.platform-body .detail-panel,
.platform-body .assistant-panel {
  top: 122px;
}

.platform-body .profile-hero {
  border-bottom-color: #ded4c5;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.03), transparent),
    #fffdf9;
}

.platform-body .profile-avatar {
  border: 1px solid #ded4c5;
  border-radius: 5px;
}

.platform-body .profile-open-trigger {
  padding: 0;
  cursor: pointer;
}

.platform-body .profile-meta h2 {
  font-size: 28px;
  font-weight: 900;
}

.platform-body .profile-meta p {
  color: #5e564c;
  font-weight: 800;
}

.platform-body .stat-box,
.platform-body .insight-box,
.platform-body .inquiry-item {
  border-color: #e0d6c8;
  border-radius: 5px;
  background: #fbf6ed;
}

.platform-body .stat-box strong,
.platform-body .match-score {
  color: #af080b;
}

.platform-body .tab-strip {
  border-bottom-color: #ded4c5;
}

.platform-body .tab-button.active {
  border-color: #b50609;
  color: #af080b;
}

.platform-body .video-box {
  border-radius: 5px;
  background:
    linear-gradient(120deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.2)),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1200&q=80");
  background-position: center;
  background-size: cover;
}

.platform-body .score-panel {
  border-color: #e0c68c;
  background: #fff8ea;
}

.platform-body .score-ring,
.platform-body .large-score {
  border-color: #ead8ba;
  border-top-color: #b50609;
  border-right-color: #b50609;
}

.platform-body .bar {
  background: #ead8ba;
}

.platform-body .bar span {
  background: #b50609;
}

.platform-body .resume-layout,
.platform-body .profile-register-layout,
.platform-body .mypage-layout,
.platform-body .matching-layout,
.platform-body .inquiry-layout,
.platform-body .admin-layout {
  gap: 24px;
}

.platform-body .match-table {
  border-color: #ded4c5;
  border-radius: 5px;
  background: #fffdf9;
}

.platform-body .match-summary {
  border-color: #ead8ba;
  background: #fff8ea;
}

.platform-body .match-row {
  border-bottom-color: #ebe2d5;
}

.platform-body .match-row.header {
  background: #f4ead9;
  color: #5e564c;
}

.platform-body .assistant-header span {
  border: 1px solid #e1c37d;
  background: #fff3d3;
  color: #8a5a00;
}

.platform-body .assistant-bubble,
.platform-body .assistant-answer {
  border: 1px solid #e6dacb;
  border-radius: 5px;
  background: #fbf6ed;
}

.platform-body .question-list button {
  border-color: #ded4c5;
  border-radius: 4px;
  background: #fffdf9;
}

.platform-body .question-list button:hover {
  border-color: #af080b;
  color: #af080b;
}

.platform-body .inquiry-form label {
  color: #1a1815;
}

.platform-body .toast {
  background: #111111;
  color: #fff7ea;
}

.modal-open {
  overflow: hidden;
}

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  contain: layout paint;
  transition:
    opacity 160ms ease,
    visibility 0s linear 180ms;
}

.profile-modal.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.profile-modal-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(0, 0, 0, 0.58);
  transition: opacity 160ms ease;
}

.profile-modal.show .profile-modal-backdrop {
  opacity: 1;
}

.profile-modal-card {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100vw - 42px));
  max-height: calc(100vh - 56px);
  overflow: auto;
  border: 1px solid #d7c9b5;
  border-radius: 8px;
  background: #fffaf2;
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.32);
  opacity: 0;
  transform: translate3d(0, 30px, 0) scale(0.985);
  transition:
    opacity 180ms ease,
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.profile-modal.show .profile-modal-card {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@keyframes profileCardIn {
  from {
    opacity: 0;
    transform: translateY(44px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.profile-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.32);
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
}

.profile-card-hero {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 128px;
  gap: 26px;
  align-items: end;
  min-height: 250px;
  padding: 34px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.45)),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1600&q=80");
  background-position: center;
  background-size: cover;
  color: #ffffff;
}

.profile-card-photo {
  width: 190px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: #f1eadf;
}

.profile-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card-title span {
  color: #d6a24b;
  font-size: 12px;
  font-weight: 900;
}

.profile-card-title h2 {
  margin-top: 10px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
}

.profile-card-title p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  font-weight: 800;
}

.profile-card-score {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border: 8px solid rgba(234, 216, 186, 0.5);
  border-top-color: #d20b12;
  border-right-color: #d20b12;
  border-radius: 50%;
  justify-self: end;
}

.profile-card-score span {
  font-size: 11px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.7);
}

.profile-card-score strong {
  font-size: 30px;
  line-height: 1;
}

.profile-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
}

.profile-card-section {
  padding: 20px;
  border: 1px solid #e3d6c5;
  border-radius: 6px;
  background: #fffdf9;
}

.profile-card-section.span-2 {
  grid-column: 1 / -1;
}

.profile-card-section h3 {
  margin-bottom: 12px;
  color: #111111;
  font-size: 18px;
}

.profile-card-section p,
.profile-card-section li,
.profile-definition dd {
  color: #4d463d;
  line-height: 1.65;
}

.profile-definition {
  display: grid;
  gap: 10px;
  margin: 0;
}

.profile-definition div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee3d4;
}

.profile-definition dt {
  color: #8a6a2f;
  font-size: 12px;
  font-weight: 900;
}

.profile-definition dd {
  margin: 0;
  font-weight: 900;
}

.profile-match-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.profile-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 20px 20px;
}

.preview-mini-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #e6dacb;
  border-radius: 5px;
  background: #fbf6ed;
}

.preview-mini-list strong {
  color: #af080b;
  font-size: 13px;
}

.preview-mini-list span {
  color: #5e564c;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 1480px) {
  .platform-body .app-shell {
    grid-template-columns: 232px minmax(0, 1fr);
  }

  .platform-body .brand-rail {
    padding: 24px 18px 20px;
  }

  .platform-body .brand-mark {
    font-size: 25px;
  }

  .platform-body .brand-block p {
    font-size: 23px;
  }

  .platform-body .brand-block small {
    font-size: 11px;
  }

  .platform-body .nav-item {
    gap: 9px;
    padding: 0 8px;
    font-size: 13px;
  }

  .platform-body .topbar {
    padding: 18px 28px;
  }

  .platform-body .view {
    padding: 26px 28px 34px;
  }

  .platform-body .member-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .platform-body .split-layout {
    grid-template-columns: minmax(0, 1fr) 380px;
  }
}

@media (max-width: 1180px) {
  .platform-body .app-shell {
    grid-template-columns: 204px minmax(0, 1fr);
  }

  .platform-body .brand-block p,
  .platform-body .brand-block small,
  .platform-body .rail-footer,
  .platform-body .nav-item:not(.active) {
    display: block;
  }

  .platform-body .brand-mark {
    font-size: 25px;
  }

  .platform-body .nav-item {
    display: flex;
    justify-content: flex-start;
    padding: 0 8px;
    font-size: 13px;
  }

  .platform-body .nav-item:not(.active) {
    display: flex;
  }

  .platform-body .member-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .platform-body .search-row {
    grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  }

  .platform-body .filter-group {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .platform-body .filter-chip {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .platform-body .split-layout,
  .platform-body .resume-layout,
  .platform-body .profile-register-layout,
  .platform-body .mypage-layout,
  .platform-body .matching-layout,
  .platform-body .inquiry-layout,
  .platform-body .admin-layout {
    grid-template-columns: 1fr;
  }

  .platform-body .profile-onboarding,
  .platform-body .onboarding-steps {
    grid-template-columns: 1fr;
  }

  .platform-body .onboarding-actions {
    justify-content: flex-start;
  }

  .platform-body .detail-panel,
  .platform-body .assistant-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .platform-body .app-shell {
    display: block;
  }

  .platform-body .brand-rail {
    position: static;
    height: auto;
    padding: 18px;
  }

  .platform-body .brand-block {
    padding-bottom: 14px;
  }

  .platform-body .brand-block p,
  .platform-body .brand-block small {
    display: block;
  }

  .platform-body .side-nav {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 16px;
  }

  .platform-body .nav-item,
  .platform-body .nav-item:not(.active) {
    display: grid;
    justify-items: center;
    gap: 5px;
    font-size: 11px;
    text-align: center;
  }

  .platform-body .topbar {
    position: static;
    display: grid;
    gap: 18px;
    padding: 20px 18px;
  }

  .platform-body .top-actions,
  .platform-body .resume-actions,
  .platform-body .match-controls {
    display: grid;
    grid-template-columns: 1fr;
  }

  .platform-body .view {
    padding: 18px;
  }

  .platform-body .search-row {
    grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
    gap: 12px;
  }

  .platform-body .member-grid,
  .platform-body .insight-grid,
  .platform-body .profile-register-grid,
  .platform-body .profile-media-editor,
  .platform-body .profile-public-grid,
  .platform-body .profile-share-card-main,
  .platform-body .mypage-form,
  .platform-body .mypage-profile-facts,
  .platform-body .analysis-metrics,
  .platform-body .profile-analysis-grid,
  .platform-body .survey-item {
    grid-template-columns: 1fr;
  }

  .platform-body .survey-header {
    display: grid;
  }

  .platform-body .mypage-form .span-2,
  .platform-body .mypage-form button,
  .platform-body .profile-public-section.span-2 {
    grid-column: auto;
  }

  .platform-body .survey-choice-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-modal {
    padding: 14px;
  }

  .profile-modal-card {
    width: calc(100vw - 28px);
    max-height: calc(100vh - 28px);
  }

  .profile-card-hero,
  .profile-card-grid {
    grid-template-columns: 1fr;
  }

  .profile-card-hero {
    padding: 24px;
  }

  .profile-card-photo {
    width: min(180px, 100%);
  }

  .profile-card-score {
    justify-self: start;
  }

  .profile-card-section.span-2 {
    grid-column: auto;
  }

  .profile-match-strip,
  .profile-card-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .platform-body .search-row {
    grid-template-columns: 1fr;
  }
}

/* Portal shell: left navigation changes only the right page */
.portal-body {
  min-height: 100vh;
  margin: 0;
  background: #050505;
  color: #111111;
}

.portal-body button {
  font: inherit;
}

.portal-shell {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  min-height: 100vh;
  background: #fbf7ef;
}

.portal-sidebar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 44px 28px 30px;
  border-right: 2px solid #b98938;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.98)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=900&q=80");
  background-position: center;
  background-size: cover;
  color: #f8f2e7;
}

.portal-brand {
  display: block;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  color: inherit;
  text-decoration: none;
}

.portal-brand-logo {
  display: block;
  width: min(158px, 100%);
  height: auto;
  margin: 0 auto;
}

.portal-sidebar-auth {
  display: grid;
  gap: 8px;
  padding: 18px 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.sidebar-auth-guest,
.sidebar-auth-user {
  display: grid;
  gap: 8px;
}

.sidebar-auth-guest[hidden],
.sidebar-auth-user[hidden] {
  display: none;
}

.sidebar-auth-guest {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sidebar-auth-user {
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(211, 160, 76, 0.3);
  background: rgba(255, 255, 255, 0.07);
}

.sidebar-auth-guest button,
.sidebar-auth-user button {
  min-height: 38px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 900;
}

.sidebar-auth-guest button:first-child,
.sidebar-auth-user button {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff8ed;
}

.sidebar-auth-guest button:last-child {
  border: 1px solid rgba(211, 160, 76, 0.52);
  background: rgba(211, 160, 76, 0.16);
  color: #d3a04c;
}

.sidebar-auth-user span {
  min-width: 0;
  overflow: hidden;
  color: #fff8ed;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-brand span {
  color: #d3a04c;
  font-size: 34px;
  font-weight: 900;
  line-height: 0.92;
}

.portal-brand strong {
  color: #ffffff;
  font-size: 31px;
  font-weight: 900;
  line-height: 1.05;
}

.portal-brand small {
  margin-top: 10px;
  color: #d6a24b;
  font-size: 13px;
  font-weight: 800;
}

.portal-menu {
  display: grid;
  gap: 8px;
  margin-top: 32px;
}

.portal-menu button {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 900;
  text-align: left;
}

.portal-menu button.active,
.portal-menu button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #d6a24b;
}

.portal-sidebar-note {
  margin-top: auto;
  padding-top: 24px;
}

.portal-sidebar-note span {
  color: #d6a24b;
  font-size: 12px;
  font-weight: 900;
}

.portal-sidebar-note strong {
  display: block;
  margin-top: 8px;
  color: #ffffff;
  font-size: 19px;
}

.portal-sidebar-note p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.65;
}

.portal-stage {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 100vh;
  overflow: hidden;
  background: #fbf7ef;
}

.portal-page {
  min-height: 0;
  background: #fbf7ef;
  contain: paint;
  will-change: opacity, transform;
}

.portal-home-page {
  min-height: 0;
  overflow: auto;
}

.portal-page.entering {
  animation: portalPageIn 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.portal-page.leaving {
  animation: portalPageOut 160ms ease both;
}

@keyframes portalPageIn {
  from {
    opacity: 0;
    transform: translateY(34px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes portalPageOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-14px);
  }
}

.portal-topbar {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 40px 0 56px;
  border-bottom: 1px solid #ddd4c5;
  background: rgba(255, 252, 247, 0.96);
  z-index: 20;
}

.portal-topnav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.2vw, 68px);
}

.portal-topnav button,
.portal-search {
  border: 0;
  background: transparent;
  color: #171717;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.portal-topnav button.active {
  color: #a20b0c;
}

.portal-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.portal-auth-actions,
.portal-auth-user,
.portal-account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.portal-auth-actions[hidden],
.portal-auth-user[hidden],
.portal-account[hidden] {
  display: none;
}

.auth-text-button,
.auth-join-button,
.portal-auth-user button {
  min-height: 38px;
  border-radius: 4px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 900;
}

.auth-text-button {
  border: 1px solid #d8cbb9;
  background: rgba(255, 255, 255, 0.58);
  color: #171717;
}

.auth-join-button,
.portal-auth-user button {
  border: 1px solid rgba(193, 35, 36, 0.76);
  background: #ffffff;
  color: #a20b0c;
}

.portal-auth-user span {
  color: #171717;
  font-size: 14px;
  font-weight: 900;
}

.portal-account {
  position: relative;
  gap: 7px;
}

.portal-account-name {
  color: #171717;
  font-size: 14px;
  font-weight: 900;
}

.portal-account-toggle {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #d8cbb9;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.72);
  color: #171717;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.06);
}

.portal-account-toggle span {
  width: 8px;
  height: 8px;
  border-right: 2px solid #a20b0c;
  border-bottom: 2px solid #a20b0c;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms ease;
}

.portal-account.open .portal-account-toggle span {
  transform: translateY(2px) rotate(225deg);
}

.portal-account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  width: 224px;
  padding: 8px;
  border: 1px solid #d8cbb9;
  border-radius: 6px;
  background: rgba(255, 252, 247, 0.98);
  box-shadow: 0 22px 56px rgba(17, 17, 17, 0.18);
}

.portal-account-menu[hidden] {
  display: none;
}

.portal-account-menu > button,
.portal-theme-switch {
  width: 100%;
  border-radius: 4px;
}

.portal-account-menu > button {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #171717;
  font-size: 14px;
  font-weight: 900;
  text-align: left;
}

.portal-account-menu > button:hover {
  background: rgba(193, 35, 36, 0.08);
  color: #a20b0c;
}

.portal-theme-switch {
  display: grid;
  gap: 8px;
  margin: 4px 0;
  padding: 10px;
  border: 1px solid rgba(216, 203, 185, 0.8);
  background: rgba(255, 255, 255, 0.72);
}

.portal-theme-switch > span {
  color: #7b6d59;
  font-size: 12px;
  font-weight: 900;
}

.portal-theme-switch div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.portal-theme-switch button {
  min-height: 34px;
  border: 1px solid #d8cbb9;
  border-radius: 4px;
  background: #ffffff;
  color: #171717;
  font-size: 13px;
  font-weight: 900;
}

.portal-theme-switch button.active {
  border-color: #a20b0c;
  background: #a20b0c;
  color: #ffffff;
}

body.theme-dark .portal-stage,
body.theme-dark .portal-page,
body.theme-dark .portal-frame-page,
body.theme-dark .portal-frame-stack,
body.theme-dark .portal-frame-page .portal-route-frame {
  background: var(--paper);
}

body.theme-dark .portal-topbar {
  border-bottom-color: var(--line);
  background: rgba(17, 16, 15, 0.96);
}

body.theme-dark .portal-topnav button,
body.theme-dark .portal-search,
body.theme-dark .portal-auth-user span,
body.theme-dark .portal-account-name {
  color: var(--ink);
}

body.theme-dark .portal-topnav button.active {
  color: #ff8b92;
}

body.theme-dark .auth-text-button,
body.theme-dark .portal-account-toggle,
body.theme-dark .portal-account-menu,
body.theme-dark .portal-theme-switch,
body.theme-dark .portal-theme-switch button {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

body.theme-dark .portal-theme-switch > span {
  color: var(--muted);
}

body.theme-dark .portal-account-toggle span {
  border-color: #ff8b92;
}

body.theme-dark .portal-account-menu > button {
  color: var(--ink);
}

body.theme-dark .portal-account-menu > button:hover {
  background: rgba(199, 15, 46, 0.16);
  color: #ff7b84;
}

body.theme-dark .portal-theme-switch button.active {
  border-color: #d54b52;
  background: #d54b52;
  color: #ffffff;
}

.portal-search {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.portal-search span {
  font-size: 22px;
}

.portal-cta,
.portal-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}

.portal-cta {
  border: 1px solid #c12324;
  background: linear-gradient(180deg, #c91518, #9d0708);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.portal-outline {
  border: 1px solid rgba(211, 160, 76, 0.8);
  background: rgba(0, 0, 0, 0.34);
  color: #ffffff;
}

.auth-modal-open {
  overflow: hidden;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 28px;
}

.auth-modal[hidden] {
  display: none;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 62% 38%, rgba(211, 160, 76, 0.22), transparent 34%),
    rgba(8, 9, 10, 0.74);
  backdrop-filter: blur(9px);
  animation: authBackdropIn 180ms ease both;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid rgba(211, 160, 76, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(247, 241, 231, 0.98)),
    #fffaf2;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  padding: 30px;
  animation: authCardIn 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid #d8cbb9;
  border-radius: 50%;
  background: #ffffff;
  color: #161616;
  font-size: 22px;
  line-height: 1;
}

.auth-card-header {
  display: grid;
  gap: 8px;
  padding-right: 34px;
}

.auth-card-header span {
  color: #b20f18;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.auth-card-header h2 {
  margin: 0;
  color: #15110c;
  font-size: 28px;
  line-height: 1.15;
}

.auth-card-header p {
  margin: 0;
  color: #6d6255;
  font-size: 14px;
  line-height: 1.6;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 24px 0 18px;
  border: 1px solid #dfd3c4;
  border-radius: 6px;
  overflow: hidden;
  background: #f2eadf;
}

.auth-tabs button {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #756657;
  font-size: 15px;
  font-weight: 900;
}

.auth-tabs button.active {
  background: #111111;
  color: #fff7ea;
}

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

.auth-form[hidden] {
  display: none;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: #3e3429;
  font-size: 13px;
  font-weight: 900;
}

.auth-form input,
.auth-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d9ccbd;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.86);
  color: #171717;
  font: inherit;
  font-size: 15px;
  padding: 0 13px;
}

.auth-form input:focus,
.auth-form select:focus {
  outline: 2px solid rgba(211, 160, 76, 0.45);
  border-color: #d3a04c;
}

.auth-check {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px !important;
  color: #615648;
  font-weight: 800 !important;
}

.auth-check input {
  width: 18px;
  min-height: 18px;
  padding: 0;
}

.auth-submit {
  min-height: 50px;
  margin-top: 4px;
  border: 1px solid #b20f18;
  border-radius: 5px;
  background: linear-gradient(180deg, #c91518, #9d0708);
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
}

.auth-helper,
.auth-message {
  margin: 0;
  color: #766b5e;
  font-size: 13px;
  line-height: 1.5;
}

.auth-message {
  min-height: 20px;
  margin-top: 14px;
  font-weight: 800;
}

.auth-message[data-type="error"] {
  color: #a20b0c;
}

.auth-message[data-type="success"] {
  color: #0b6672;
}

@keyframes authBackdropIn {
  from {
    opacity: 0;
  }
}

@keyframes authCardIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

.portal-hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 0.78fr);
  align-items: center;
  gap: 30px;
  padding: 46px 28px 46px 48px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.56) 48%, rgba(0, 0, 0, 0.38) 100%),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=2200&q=84");
  background-position: center;
  background-size: cover;
  color: #ffffff;
}

.portal-hero-copy,
.portal-preview {
  position: relative;
  z-index: 1;
}

.portal-kicker {
  margin: 0;
  font-size: clamp(40px, 4.1vw, 60px);
  font-weight: 300;
  line-height: 1;
}

.portal-hero-copy h1 {
  margin: 24px 0 0;
  font-size: clamp(58px, 6.2vw, 88px);
  font-weight: 900;
  line-height: 0.95;
}

.portal-hero-copy > strong {
  display: inline-block;
  margin-top: 30px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(211, 160, 76, 0.72);
  color: #d8a653;
  font-size: clamp(19px, 1.7vw, 28px);
}

.portal-hero-copy > p:not(.portal-kicker) {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 19px;
  line-height: 1.78;
}

.portal-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 38px;
}

.portal-cta.large,
.portal-outline {
  min-width: 230px;
  min-height: 62px;
  font-size: 17px;
}

.portal-preview {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.76);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.portal-frame-page {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #fbf7ef;
}

.portal-frame-stack {
  position: absolute;
  inset: 0;
  overflow: hidden;
  contain: layout paint;
  background: #fbf7ef;
}

.portal-frame-page .portal-route-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  background: #fbf7ef;
  transition:
    opacity 220ms ease,
    transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.portal-frame-page .portal-route-frame.active {
  z-index: 1;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.portal-chatbot {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: grid;
  justify-items: end;
  gap: 12px;
  color: #111111;
  pointer-events: none;
}

.portal-chatbot-toggle {
  order: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 1px solid rgba(211, 160, 76, 0.82);
  border-radius: 50%;
  background: #111111;
  color: #fff8ed;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  pointer-events: auto;
}

.chatbot-toggle-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #fffaf2;
}

.portal-chatbot-panel {
  order: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  width: min(380px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 112px));
  overflow: hidden;
  border: 1px solid #d7c9b5;
  border-radius: 8px;
  background: #fffaf2;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  transform-origin: right bottom;
  animation: chatbotPanelIn 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  pointer-events: auto;
}

.portal-chatbot-panel[hidden] {
  display: none;
}

@keyframes chatbotPanelIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid rgba(211, 160, 76, 0.28);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.72)),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=900&q=72");
  background-position: center;
  background-size: cover;
  color: #ffffff;
}

.chatbot-header-avatar {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #fffaf2;
  box-shadow: 0 0 0 2px rgba(211, 160, 76, 0.82);
}

.chatbot-header > div {
  min-width: 0;
  margin-right: auto;
}

.chatbot-header span {
  display: block;
  color: #d6a24b;
  font-size: 11px;
  font-weight: 900;
}

.chatbot-header strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
  line-height: 1.2;
}

.chatbot-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.36);
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
}

.chatbot-messages {
  display: grid;
  gap: 12px;
  max-height: none;
  min-height: 0;
  overflow: auto;
  padding: 16px;
  background: #fbf7ef;
}

.chatbot-message {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.chatbot-message > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: #111111;
  color: #d6a24b;
  font-size: 11px;
  font-weight: 900;
}

.chatbot-message-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.chatbot-message > .chatbot-message-avatar {
  overflow: hidden;
  background: #fffaf2;
  box-shadow: 0 0 0 1px rgba(211, 160, 76, 0.58);
}

.chatbot-message.user > span {
  background: #b50609;
  color: #ffffff;
}

.chatbot-message p {
  min-width: 0;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #e4d9ca;
  border-radius: 8px;
  background: #ffffff;
  color: #25211d;
  font-size: 13px;
  line-height: 1.58;
}

.chatbot-message.user p {
  border-color: #c12324;
  background: #fff4f2;
}

.chatbot-route-action {
  justify-self: start;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid #b50609;
  border-radius: 4px;
  background: transparent;
  color: #9d0708;
  font-size: 12px;
  font-weight: 900;
}

.chatbot-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 14px;
  background: #fbf7ef;
}

.chatbot-suggestions button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #ded4c5;
  border-radius: 999px;
  background: #fffaf2;
  color: #25211d;
  font-size: 12px;
  font-weight: 800;
}

.chatbot-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 8px;
  padding: 14px 16px 16px;
  border-top: 1px solid #e4d9ca;
  background: #fffaf2;
}

.chatbot-form input {
  width: 100%;
  min-width: 0;
  height: 40px;
  border: 1px solid #d7c9b5;
  border-radius: 4px;
  background: #ffffff;
  color: #171717;
  font-size: 13px;
  padding: 0 12px;
}

.chatbot-form button {
  height: 40px;
  border: 1px solid #c12324;
  border-radius: 4px;
  background: linear-gradient(180deg, #c91518, #9d0708);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.portal-loader {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  gap: 14px;
  background: rgba(251, 247, 239, 0.88);
  color: #111111;
  font-weight: 900;
}

.portal-loader[hidden] {
  display: none;
}

.portal-loader span {
  width: 34px;
  height: 34px;
  margin: 0 auto;
  border: 4px solid #ead8ba;
  border-top-color: #b50609;
  border-radius: 50%;
  animation: portalSpin 780ms linear infinite;
}

@keyframes portalSpin {
  to {
    transform: rotate(360deg);
  }
}

.platform-body.embed-mode .app-shell {
  display: block;
  min-height: 100vh;
}

.platform-body.embed-mode .brand-rail {
  display: none;
}

.platform-body.embed-mode .workspace {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(251, 247, 239, 0.92), rgba(251, 247, 239, 1)),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1800&q=76");
  background-position: center top;
  background-size: cover;
}

.platform-body.embed-mode .topbar {
  position: sticky;
  top: 0;
}

.platform-body.public-share-only .app-shell {
  grid-template-columns: 1fr;
}

.platform-body.public-share-only .brand-rail,
.platform-body.public-share-only .top-actions {
  display: none;
}

.platform-body.public-share-only .workspace {
  min-height: 100vh;
}

@media (max-width: 1080px) {
  .portal-shell {
    grid-template-columns: 204px minmax(0, 1fr);
  }

  .portal-sidebar {
    padding: 24px 18px 20px;
  }

  .portal-brand span {
    font-size: 25px;
  }

  .portal-brand strong {
    font-size: 23px;
  }

  .portal-brand small {
    font-size: 11px;
  }

  .portal-menu button {
    gap: 9px;
    padding: 0 8px;
    font-size: 13px;
  }

  .portal-topbar {
    height: auto;
    flex-wrap: wrap;
    padding: 16px 22px;
  }

  .portal-topnav {
    flex-wrap: wrap;
    gap: 16px 26px;
  }

  .portal-actions {
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .portal-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .portal-shell {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    position: static;
    height: auto;
    padding: 22px 18px 18px;
  }

  .portal-brand {
    padding-bottom: 20px;
  }

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

  .portal-sidebar-note {
    display: none;
  }

  .portal-chatbot {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .portal-chatbot-panel {
    width: min(362px, 100%);
    max-height: min(620px, calc(100vh - 88px));
  }

  .portal-actions,
  .portal-hero-actions {
    display: grid;
    width: 100%;
  }

  .portal-auth-actions,
  .portal-auth-user,
  .portal-account {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .portal-auth-user {
    grid-template-columns: 1fr auto;
  }

  .portal-account {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .portal-account-menu {
    width: 100%;
  }

  .portal-account-menu {
    left: 0;
    right: auto;
  }

  .portal-cta,
  .portal-outline,
  .portal-cta.large {
    width: 100%;
    min-width: 0;
  }

  .auth-card {
    padding: 24px 18px;
  }

  .portal-hero {
    min-height: auto;
    padding: 42px 18px;
  }

  .portal-frame-page,
  .portal-frame-stack,
  .portal-frame-page .portal-route-frame {
    height: 100%;
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-page.entering,
  .portal-page.leaving,
  .portal-frame-page .portal-route-frame,
  .profile-modal,
  .profile-modal-backdrop,
  .profile-modal-card,
  .auth-backdrop,
  .auth-card,
  .portal-chatbot-panel {
    animation: none;
    transition: none;
    transform: none;
  }
}
