:root {
  --bg: #f6f7f8;
  --surface: #ffffff;
  --surface-soft: #f1f5f4;
  --surface-tint: #F3F7FF;
  --ink: #17201d;
  --muted: #66736e;
  --subtle: #8a9691;
  --line: #dce4e0;
  --line-strong: #c8d2ce;
  --primary: #2F6BFF;
  --primary-dark: #2F6BFF;
  --primary-soft: #EAF1FF;
  --accent: #c78126;
  --danger: #b42318;
  --blue: #245176;
  --shadow: 0 18px 46px rgba(25, 33, 30, 0.1);
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1440px, calc(100% - 48px));
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(320px, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 950;
  letter-spacing: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: transparent;
  color: transparent;
  font-size: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link,
.category-strip button,
.left-rail button {
  border: 0;
  background: transparent;
  color: var(--ink);
}

.nav-link {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  font-weight: 800;
}

.nav-link.active,
.nav-link:hover {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.global-search {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-dark);
  font-size: 1.25rem;
  font-weight: 900;
}

.global-search input {
  width: 100%;
  min-height: 46px;
  padding: 0 18px 0 44px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fbfcfc;
  color: var(--ink);
}

.global-search input:focus {
  outline: 3px solid rgba(47, 107, 255, 0.16);
  border-color: var(--primary);
}

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

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

.inline-login-form {
  display: flex;
  align-items: center;
  gap: 6px;
}

.inline-login-form input {
  width: 132px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.86rem;
}

.inline-login-form input:focus {
  outline: 3px solid rgba(47, 107, 255, 0.16);
  border-color: var(--primary);
}

.icon-button,
.write-button,
.auth-button,
.profile-menu-button,
.text-button,
.chip,
.pill-button,
.wide-action,
.card-action,
.modal-close {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 900;
}

.write-button,
.auth-button.primary,
.card-action.primary,
.wide-action.primary {
  min-height: 42px;
  padding: 0 16px;
  border-color: var(--primary);
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
}

.auth-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 900;
}

.auth-button.ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.profile-menu-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 900;
}

.account-menu-wrap {
  position: relative;
}

.profile-menu-caret {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1;
}

.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 35;
  width: 230px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

.account-menu-head {
  display: grid;
  gap: 3px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.account-menu-head strong {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 950;
}

.account-menu-head span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 850;
  text-align: left;
}

.account-menu button:hover {
  background: var(--surface-soft);
  color: var(--primary);
}

.account-menu button:last-child {
  border-bottom: 0;
}

.account-menu button.danger {
  color: var(--danger);
}

.profile-menu-avatar {
  width: 30px;
  height: 30px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 950;
}

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

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

.mypage-profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.mypage-avatar {
  width: 64px;
  height: 64px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 950;
}

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

.mypage-profile h2,
.mypage-profile p {
  margin: 0;
}

.mypage-profile h2 {
  font-size: 1.25rem;
  font-weight: 950;
}

.mypage-profile p,
.mypage-profile span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.mypage-subline {
  display: block;
  margin-top: 4px;
}

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

.mypage-stats button {
  min-height: 86px;
  display: grid;
  gap: 5px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.mypage-stats strong {
  color: var(--ink);
  font-size: 1.24rem;
  font-weight: 950;
}

.mypage-stats span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.mypage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-strip {
  width: min(1440px, calc(100% - 48px));
  min-height: 46px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  border-top: 1px solid #eef2f0;
}

.category-strip button {
  height: 46px;
  padding: 0;
  color: var(--muted);
  font-weight: 800;
}

.category-strip button:hover {
  color: var(--primary-dark);
}

.app-shell {
  width: min(1440px, calc(100% - 48px));
  margin: 22px auto 48px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.left-rail,
.right-panel {
  position: sticky;
  top: 142px;
  display: grid;
  gap: 16px;
}

.rail-section,
.profile-card,
.activity-card,
.panel,
.modal-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.rail-section {
  padding: 16px;
}

.rail-section h2,
.activity-card h2,
.profile-card h2 {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.left-rail button {
  width: 100%;
  min-height: 36px;
  padding: 0 4px;
  border-radius: 6px;
  text-align: left;
  color: var(--muted);
  font-weight: 750;
}

.left-rail button:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.content-area {
  min-width: 0;
  outline: none;
}

.right-panel {
  gap: 14px;
}

.profile-card,
.activity-card {
  padding: 18px;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 48px;
  height: 48px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 950;
}

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

.profile-head strong {
  display: block;
  font-size: 1.03rem;
}

.profile-head span,
.muted,
.meta,
.empty-state p {
  color: var(--muted);
}

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

.profile-stat {
  padding: 10px 8px;
  border-radius: 8px;
  background: var(--surface-soft);
  text-align: center;
}

.profile-stat strong {
  display: block;
  font-size: 1.05rem;
}

.profile-stat span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

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

.text-button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--primary-dark);
  font-size: 0.83rem;
  font-weight: 900;
}

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

.activity-item {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.activity-item strong {
  font-size: 0.88rem;
}

.activity-item span {
  color: var(--muted);
  font-size: 0.78rem;
}

.activity-card.compact {
  display: grid;
  gap: 8px;
}

.wide-action,
.card-action {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--surface);
  font-weight: 850;
}

.wide-action:hover,
.card-action:hover,
.icon-button:hover,
.text-button:hover {
  border-color: var(--primary);
}

.card-action.danger {
  color: var(--danger);
}

.card-action.danger:hover {
  border-color: var(--danger);
}

.hero {
  overflow: hidden;
  min-height: 310px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.hero-copy {
  padding: 42px;
  display: grid;
  align-content: center;
  gap: 18px;
}

.eyebrow {
  margin: 0;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
}

.hero h1,
.page-head h1 {
  margin: 0;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 680px;
  font-size: 3.35rem;
  line-height: 1.06;
}

.hero p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-actions,
.toolbar,
.filter-row,
.card-actions,
.detail-actions,
.segmented {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-visual {
  min-height: 310px;
  background:
    linear-gradient(145deg, rgba(23, 32, 29, 0.08), rgba(23, 32, 29, 0.28)),
    url("https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1200&q=82") center/cover;
}

.section {
  margin-top: 26px;
}

.section > .section-title-row {
  margin-bottom: 14px;
}

.section h2 {
  margin: 0;
  font-size: 1.28rem;
}

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

.home-notice-strip {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  padding: 7px 12px;
  overflow: hidden;
  border: 1px solid rgba(143, 212, 242, 0.5);
  border-radius: 999px;
  background: rgba(191, 233, 255, 0.42);
  color: #1679A6;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
}

.home-notice-strip span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-notice-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: inline-grid;
  place-items: center;
}

.home-notice-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quick-tile {
  min-height: 94px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-align: left;
}

.quick-tile strong {
  font-size: 0.95rem;
}

.quick-tile span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

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

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.content-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.content-card.clickable:hover,
.quick-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(25, 33, 30, 0.09);
}

.card-media {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(145deg, rgba(47, 107, 255, 0.08), rgba(23, 32, 29, 0.18)),
    var(--image, url("https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=900&q=80")) center/cover;
}

.garage-card .card-actions {
  margin-top: 4px;
}

.garage-placeholder {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--subtle);
  font-size: 0.8rem;
  font-weight: 950;
}

.garage-photo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.garage-photo-chip {
  width: 92px;
  display: grid;
  gap: 5px;
}

.garage-photo-chip img {
  width: 92px;
  height: 66px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--surface-soft);
}

.garage-photo-chip small,
.file-field small {
  color: var(--subtle);
  font-size: 0.76rem;
  font-weight: 750;
}

.profile-edit-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.profile-edit-preview strong,
.profile-edit-preview span {
  display: block;
}

.profile-edit-avatar {
  width: 58px;
  height: 58px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 950;
}

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

.card-body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 950;
}

.badge.neutral {
  background: var(--surface-soft);
  color: var(--muted);
}

.badge.warn {
  background: #fff3df;
  color: var(--accent);
}

.content-card h3,
.line-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.42;
}

.content-card p,
.line-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--subtle);
  font-size: 0.82rem;
}

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

.line-card.text-only {
  grid-template-columns: minmax(0, 1fr) auto;
}

.line-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(47, 107, 255, 0.08), rgba(23, 32, 29, 0.18)),
    var(--image) center/cover;
}

.line-main {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.price {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 950;
  white-space: nowrap;
}

.page-head {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.page-head h1 {
  min-width: 0;
  color: var(--ink);
  font-size: 1.72rem;
  font-weight: 950;
  line-height: 1.2;
}

.page-write-button {
  min-width: 96px;
  flex: 0 0 auto;
}

.toolbar {
  justify-content: space-between;
  margin: 16px 0;
}

.filter-toolbar {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 18px;
}

.filter-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(25, 33, 30, 0.06);
}

.filter-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.filter-button strong {
  min-width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  line-height: 1;
}

.active-filter-summary {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.active-filter-summary span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.filter-row {
  gap: 7px;
}

.chip,
.pill-button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 850;
}

.chip.active,
.pill-button.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.select,
.input {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.segmented {
  width: fit-content;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.segmented button {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.segmented button.active {
  background: var(--primary);
  color: #fff;
}

.filter-sheet {
  display: grid;
  gap: 20px;
}

.filter-sheet-section {
  display: grid;
  gap: 10px;
}

.filter-sheet-section h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
}

.filter-sheet-section .filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.filter-sheet-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 2px;
}

.community-board {
  overflow: hidden;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface);
}

.community-board-head,
.community-board-row {
  display: grid;
  grid-template-columns: 92px minmax(260px, 1fr) 130px 84px 72px 64px;
  align-items: center;
  column-gap: 8px;
}

.community-board-head {
  min-height: 38px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line-strong);
  background: #f7f9fa;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.community-board-row {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.86rem;
  text-align: left;
}

.community-board-row:hover {
  background: #f8fbff;
}

.community-board-badge,
.community-author,
.community-date,
.community-count,
.community-recommend {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.community-date,
.community-count {
  color: var(--subtle);
}

.community-board-badge {
  color: var(--primary-dark);
  font-weight: 850;
}

.community-title-cell {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.community-title-cell strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-title-cell em {
  flex: 0 0 auto;
  color: var(--primary);
  font-style: normal;
  font-weight: 900;
}

.community-author {
  color: #3c4843;
}

.community-recommend {
  color: #d24b43;
  font-weight: 850;
}

.community-banner-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.community-board-banner .banner-viewport {
  aspect-ratio: 2272 / 440;
  height: auto;
  border-radius: 12px;
}

.community-board-banner .banner-slide {
  border-radius: 12px;
}

.board-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 18px;
}

.side-note {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.side-note h3,
.side-note p {
  margin: 0;
}

.side-note p {
  color: var(--muted);
  line-height: 1.55;
}

.empty-state {
  padding: 42px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  text-align: center;
}

.empty-state h2 {
  margin: 0 0 8px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 50;
  min-width: 260px;
  max-width: calc(100% - 48px);
  padding: 14px 18px;
  border-radius: 8px;
  background: #17201d;
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow);
  transform: translate(-50%, 110px);
  opacity: 0;
  transition: 180ms ease;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(13, 18, 17, 0.54);
}

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

.modal-panel {
  width: min(720px, 100%);
  max-height: min(840px, calc(100vh - 56px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.modal-panel.wide {
  width: min(980px, 100%);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  margin: 0;
  font-size: 1.18rem;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 950;
}

.modal-body {
  min-height: 0;
  overflow: auto;
  padding: 20px;
}

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

.form-grid label,
.form-grid .full,
.comment-form {
  display: grid;
  gap: 7px;
}

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

.form-grid span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.form-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.form-grid input,
.form-grid select,
.form-grid textarea,
.comment-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.form-grid textarea,
.comment-form textarea {
  min-height: 110px;
  resize: vertical;
}

.file-field input {
  padding: 9px 10px;
}

.checkbox-field {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.checkbox-field input {
  width: 18px;
  min-height: 18px;
}

.auth-page {
  width: min(560px, 100%);
  margin: 32px auto 56px;
  display: grid;
  gap: 22px;
}

.auth-page-copy {
  display: grid;
  gap: 8px;
}

.auth-page-copy h1,
.auth-page-copy p {
  margin: 0;
}

.auth-page-copy h1 {
  color: var(--ink);
  font-size: 1.7rem;
  font-weight: 950;
}

.auth-page-copy p {
  color: var(--muted);
  line-height: 1.55;
}

.auth-page-form {
  grid-template-columns: 1fr;
}

.auth-page-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
}

.auth-page-actions .card-action.primary {
  width: 100%;
}

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

.auth-nickname-row label {
  min-width: 0;
}

.auth-nickname-row .card-action {
  min-height: 42px;
  white-space: nowrap;
}

.auth-field-message {
  grid-column: 1 / -1;
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.auth-field-message[data-status="success"] {
  color: #12805c;
}

.auth-field-message[data-status="error"] {
  color: var(--danger);
}

.auth-flow-notice {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.signup-input-step,
.auth-verification-step {
  display: grid;
  gap: 12px;
}

.auth-verification-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.auth-verification-card strong {
  color: var(--ink);
  font-weight: 950;
}

.auth-verification-card span {
  color: var(--primary-dark);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.auth-verification-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.auth-resend-button {
  justify-self: start;
}

.auth-email-verification {
  display: flex;
  justify-content: flex-start;
}

.auth-verification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

@media (max-width: 560px) {
  .account-menu {
    right: -8px;
    width: min(260px, calc(100vw - 28px));
  }

  .mypage-profile {
    grid-template-columns: 1fr;
  }

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

  .auth-page {
    margin-top: 20px;
  }

  .auth-nickname-row,
  .auth-page-actions {
    grid-template-columns: 1fr;
  }

  .auth-nickname-row .card-action {
    width: 100%;
  }
}

.terms-agreement {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.terms-heading {
  display: grid;
  gap: 4px;
}

.terms-heading strong,
.terms-box summary span,
.legal-section h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 950;
}

.terms-heading small,
.terms-box > p,
.terms-box summary small,
.legal-effective,
.legal-section p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.terms-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.terms-box summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.terms-box .legal-body {
  max-height: 220px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.legal-body {
  display: grid;
  gap: 12px;
}

.legal-section {
  display: grid;
  gap: 4px;
}

.legal-markdown {
  margin: 0;
  white-space: pre-wrap;
  word-break: keep-all;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.84rem;
  line-height: 1.55;
}

.legal-body.legal-page-content,
.required-term-scroll .legal-page-content {
  padding: 0;
  font-size: 0.88rem;
  line-height: 1.65;
}

.required-term-scroll .legal-page-content table {
  min-width: 640px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  width: min(1136px, calc(100% - 48px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-inner span {
  color: var(--ink);
  font-weight: 900;
}

.footer-inner button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfc;
  color: var(--muted);
  font-weight: 850;
}

.footer-inner a {
  min-height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfc;
  color: var(--muted);
  font-weight: 850;
  text-decoration: none;
}

.footer-inner button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.footer-inner a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.legal-page-shell {
  width: min(960px, calc(100% - 48px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.legal-page-nav {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal-page-nav,
.legal-page-nav div {
  display: flex;
  align-items: center;
}

.legal-page-nav div {
  gap: 8px;
}

.legal-page-nav a {
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 850;
  text-decoration: none;
}

.legal-page-nav > a {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 950;
}

.legal-page-nav a:hover,
.legal-page-nav a[aria-current="page"] {
  border-color: var(--line);
  background: var(--primary-soft);
  color: var(--primary);
}

.legal-page-card {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legal-page-head {
  padding: 34px 40px 28px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-tint) 100%);
}

.legal-page-head p {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.legal-page-head h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.legal-page-markdown {
  margin: 0;
  padding: 34px 40px 42px;
  white-space: pre-wrap;
  word-break: keep-all;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.98rem;
  line-height: 1.8;
}

.legal-page-content {
  padding: 34px 40px 42px;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.75;
  word-break: keep-all;
}

.legal-page-content h1,
.legal-page-content h2,
.legal-page-content h3 {
  margin: 0;
  color: var(--ink);
  letter-spacing: 0;
}

.legal-page-content h1 {
  margin-bottom: 18px;
  font-size: 1.45rem;
  line-height: 1.25;
}

.legal-page-content h2 {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 1.2rem;
  line-height: 1.35;
}

.legal-page-content h3 {
  margin-top: 22px;
  font-size: 1.02rem;
  line-height: 1.4;
}

.legal-page-content p {
  margin: 12px 0 0;
  color: var(--muted);
}

.legal-page-content ul,
.legal-page-content ol {
  margin: 12px 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.legal-page-content li + li {
  margin-top: 7px;
}

.legal-page-content strong {
  color: var(--ink);
  font-weight: 900;
}

.legal-page-content a {
  color: var(--primary);
  font-weight: 850;
}

.legal-page-content hr {
  margin: 30px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.legal-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.legal-page-content table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: var(--surface);
}

.legal-page-content th,
.legal-page-content td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-page-content th {
  background: var(--surface-tint);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 900;
}

.legal-page-content td {
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-page-content th:last-child,
.legal-page-content td:last-child {
  border-right: 0;
}

.legal-page-content tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 720px) {
  .legal-page-shell {
    width: min(100% - 28px, 960px);
    padding: 20px 0 40px;
  }

  .legal-page-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-page-nav div {
    width: 100%;
    overflow-x: auto;
  }

  .legal-page-head,
  .legal-page-content,
  .legal-page-markdown {
    padding-left: 20px;
    padding-right: 20px;
  }

  .legal-page-head h1 {
    font-size: 1.9rem;
  }
}

.terms-check {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 850;
  text-align: left;
}

.terms-check:hover {
  border-color: var(--primary);
}

.terms-check:disabled {
  cursor: not-allowed;
  opacity: 0.64;
}

.terms-check small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.term-check-icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.terms-check[data-agreed="true"] .term-check-icon {
  border-color: var(--primary);
  background: var(--primary);
}

.terms-check[data-agreed="true"] .term-check-icon::after {
  content: "✓";
  color: #fff;
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1;
}

.terms-check[data-agreed="true"] small {
  color: var(--primary);
}

.required-term-review {
  display: grid;
  gap: 14px;
}

.required-term-scroll {
  max-height: min(58vh, 560px);
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.required-term-review > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 20px;
}

.detail-image {
  min-height: 390px;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(47, 107, 255, 0.08), rgba(23, 32, 29, 0.18)),
    var(--image) center/cover;
}

.detail-copy {
  display: grid;
  align-content: start;
  gap: 14px;
}

.detail-copy h3 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.28;
}

.detail-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.comment-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.comment-item {
  padding: 12px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.comment-item strong {
  display: block;
  margin-bottom: 4px;
}

.comment-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.52;
}

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

.settings-nav-row {
  display: flex;
  justify-content: flex-start;
}

.settings-section {
  display: grid;
  gap: 10px;
}

.settings-section h2 {
  margin: 6px 2px 0;
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 950;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.setting-link {
  width: 100%;
  color: inherit;
  text-align: left;
}

.setting-link:hover {
  border-color: rgba(47, 107, 255, 0.32);
}

.setting-link.danger strong,
.setting-link.danger .setting-chevron {
  color: var(--danger);
}

.setting-chevron {
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
}

.setting-row strong,
.setting-row span {
  display: block;
}

.support-center-page {
  display: grid;
  gap: 16px;
}

.support-intro {
  padding: 18px;
  border: 1px solid rgba(47, 107, 255, 0.18);
  border-radius: 8px;
  background: #edf4ff;
}

.support-intro strong,
.support-intro span {
  display: block;
}

.support-intro strong {
  color: var(--primary-dark);
  font-size: 1rem;
  font-weight: 950;
}

.support-intro span {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.support-form,
.support-ticket-list {
  display: grid;
  gap: 12px;
}

.support-form {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.support-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.support-form input,
.support-form select,
.support-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.support-form textarea {
  min-height: 140px;
  resize: vertical;
}

.support-ticket-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.support-ticket-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.support-ticket-head strong,
.support-ticket-head span,
.support-reply strong,
.support-reply span,
.support-reply small {
  display: block;
}

.support-ticket-head strong {
  color: var(--text);
  font-weight: 950;
}

.support-ticket-head span,
.support-reply small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
}

.support-status {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 950;
}

.support-status.done {
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
}

.support-status.wait {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.support-ticket-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
  white-space: pre-wrap;
}

.support-reply {
  display: grid;
  gap: 6px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.support-reply.answered {
  border-color: rgba(22, 163, 74, 0.22);
  background: rgba(22, 163, 74, 0.07);
}

.support-reply strong {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 950;
}

.support-reply span {
  color: var(--muted);
  line-height: 1.5;
  white-space: pre-wrap;
}

.setting-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.85rem;
}

.switch {
  width: 48px;
  height: 28px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-soft);
}

.switch::after {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--muted);
  transition: 160ms ease;
}

.switch.active {
  background: var(--primary-soft);
  border-color: var(--primary);
}

.switch.active::after {
  transform: translateX(20px);
  background: var(--primary);
}

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

.withdrawal-warning {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(239, 68, 68, 0.28);
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.08);
}

.withdrawal-warning strong {
  color: var(--danger);
  font-size: 1.05rem;
  font-weight: 950;
}

.withdrawal-warning p {
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
}

.withdrawal-checks {
  display: grid;
  gap: 10px;
}

.withdrawal-checks div,
.withdrawal-confirm {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.withdrawal-checks strong,
.withdrawal-checks span {
  display: block;
}

.withdrawal-checks span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.withdrawal-confirm {
  display: grid;
  gap: 14px;
}

@media (max-width: 1240px) {
  .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .primary-nav {
    display: none;
  }

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

  .left-rail {
    display: none;
  }

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

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

@media (max-width: 980px) {
  .header-inner,
  .category-strip,
  .app-shell {
    width: min(100% - 28px, 900px);
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 12px 0;
  }

  .global-search {
    grid-column: 1 / -1;
    order: 3;
  }

  .header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .auth-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .inline-login-form {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-end;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .right-panel {
    position: static;
    grid-row: 1;
  }

  .hero,
  .board-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 28px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .hero-visual {
    min-height: 220px;
  }

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

/* User web visual pass: centered content, two-line commerce/community nav,
   banner + category icon row + airy cards inspired by the Ohou PC layout. */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f7f9fa;
  --surface-tint: #F3F7FF;
  --ink: #2f3438;
  --muted: #828c94;
  --subtle: #a4adb3;
  --line: #eaedef;
  --line-strong: #dadde0;
  --primary: #2F6BFF;
  --primary-dark: #2F6BFF;
  --primary-soft: #EAF1FF;
  --accent: #ff7a00;
  --shadow: 0 6px 18px rgba(63, 71, 77, 0.08);
}

body {
  background: var(--bg);
  color: var(--ink);
}

.site-header {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(12px);
}

.header-inner,
.category-strip,
.app-shell {
  width: min(1136px, calc(100% - 48px));
}

.header-inner {
  min-height: 80px;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  gap: 22px;
}

.brand {
  gap: 8px;
  color: var(--primary-dark);
  font-size: 1.55rem;
  font-weight: 950;
}

.brand-mark {
  width: 108px;
  height: 108px;
  border-radius: 24px;
  background: transparent;
}

.primary-nav {
  gap: 18px;
}

.nav-link {
  position: relative;
  min-height: 80px;
  padding: 0;
  border-radius: 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 850;
}

.nav-link.active,
.nav-link:hover {
  background: transparent;
  color: var(--primary-dark);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--primary);
}

.global-search input {
  min-height: 42px;
  border-color: var(--line-strong);
  border-radius: 6px;
  background: #f7f9fa;
}

.search-icon {
  color: var(--muted);
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f7f9fa;
  color: var(--ink);
}

.write-button,
.auth-button.primary,
.card-action.primary,
.wide-action.primary {
  min-height: 40px;
  border-color: var(--primary);
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
}

.category-strip {
  min-height: 50px;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.category-strip button {
  position: relative;
  height: 50px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
}

.category-strip button.active,
.category-strip button:hover {
  color: var(--primary-dark);
}

.category-strip button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--primary);
}

.app-shell {
  display: block;
  margin-top: 30px;
  margin-bottom: 72px;
}

.left-rail,
.right-panel {
  display: none;
}

.content-area {
  width: 100%;
}

.hero {
  min-height: 310px;
  grid-template-columns: minmax(0, 1fr) 43%;
  border: 0;
  border-radius: 8px;
  background: #F3F7FF;
  box-shadow: none;
}

.hero-copy {
  padding: 40px 44px;
}

.eyebrow {
  color: var(--primary-dark);
}

.hero h1 {
  max-width: 570px;
  color: #1f292e;
  font-size: 2.6rem;
  line-height: 1.16;
  font-weight: 900;
}

.hero p {
  max-width: 560px;
  color: #536068;
  font-size: 1rem;
}

.hero-visual {
  min-height: 310px;
}

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

.quick-tile {
  min-height: 116px;
  justify-items: center;
  align-content: start;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
}

.quick-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(47, 107, 255, 0.16), rgba(255, 122, 0, 0.12)),
    #f5f8f9;
  box-shadow: inset 0 0 0 1px #edf1f2;
}

.quick-tile::before {
  width: 72px;
  height: 72px;
  display: none;
  place-items: center;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(47, 107, 255, 0.16), rgba(255, 122, 0, 0.12)),
    #f5f8f9;
  box-shadow: inset 0 0 0 1px #edf1f2;
  color: var(--primary);
  font-size: 34px;
  line-height: 1;
}

.quick-tile:not(:has(.quick-icon))::before {
  display: grid;
}

.quick-tile[data-view="showcase"]::before {
  content: "🚗";
}

.quick-tile[data-view="market"]::before {
  content: "🛍️";
}

.quick-tile[data-view="meetups"]::before {
  content: "👥";
}

.quick-tile[data-view="community"]::before {
  content: "💬";
}

.quick-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quick-tile:hover {
  box-shadow: none;
  transform: translateY(-3px);
}

.quick-tile strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.quick-tile > span:not(.quick-icon) {
  display: none;
}

.section {
  margin-top: 34px;
}

.section > .section-title-row {
  margin-bottom: 16px;
}

.section h2 {
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 900;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--primary-dark);
}

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

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.content-card {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.content-card.clickable:hover {
  box-shadow: none;
  transform: translateY(-3px);
}

.card-media {
  border-radius: 8px;
  background-color: #edf1f2;
}

.card-body {
  padding: 12px 0 0;
}

.badge {
  border-radius: 4px;
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.badge.neutral {
  background: #f5f6f7;
  color: var(--muted);
}

.content-card h3,
.line-card h3 {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 850;
}

.content-card p,
.line-card p {
  color: var(--muted);
  font-size: 0.88rem;
}

.card-meta {
  color: var(--subtle);
}

.list-grid {
  gap: 14px;
}

.line-card {
  grid-template-columns: 160px minmax(0, 1fr) auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.line-card + .line-card {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.line-card.text-only {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.line-card.text-only + .line-card.text-only {
  border-top: 1px solid var(--line);
}

.line-thumb {
  border-radius: 8px;
  background-color: #edf1f2;
}

.banner-section {
  margin-top: 22px;
}

.banner-carousel {
  width: 100%;
  overflow: hidden;
  display: grid;
  gap: 10px;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.banner-carousel.grid-banner {
  grid-column: 1 / -1;
}

.banner-carousel.dragging {
  cursor: grabbing;
}

.banner-viewport {
  width: 100%;
  aspect-ratio: 2272 / 440;
  height: auto;
  overflow: hidden;
  border-radius: 20px;
}

.banner-track {
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.banner-slide {
  position: relative;
  min-width: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: var(--banner-bg, #1f2937);
  color: var(--banner-fg, #fff);
  text-align: left;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.14);
  flex: 0 0 100%;
}

.banner-slide:hover {
  transform: none;
}

.banner-slide-image,
.banner-slide-gradient,
.banner-slide-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.banner-slide-image {
  object-fit: cover;
}

.banner-slide-gradient {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.24)),
    var(--banner-bg, #1f2937);
}

.banner-slide-shade {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.56));
}

.banner-slide-copy {
  position: absolute;
  inset: auto 18px 18px 18px;
  display: grid;
  gap: 8px;
  color: var(--banner-fg, #fff);
}

.banner-slide-copy strong {
  max-width: min(640px, 100%);
  color: inherit;
  font-size: 1.28rem;
  font-weight: 950;
  line-height: 1.15;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.32);
}

.banner-ad-body {
  max-width: min(720px, 100%);
  color: inherit;
  opacity: 0.92;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.45;
}

.banner-dots {
  height: 6px;
  display: flex;
  justify-content: center;
  gap: 4px;
}

.banner-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--line-strong);
  transition: width 180ms ease, background-color 180ms ease;
}

.banner-dots span.active {
  width: 18px;
  background: var(--primary);
}

.banner-campaign {
  display: grid;
  gap: 18px;
}

.banner-campaign-hero {
  overflow: hidden;
  aspect-ratio: 2272 / 440;
  border-radius: 24px;
  background: var(--banner-bg, #1f2937);
}

.banner-campaign-hero img,
.banner-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-campaign-copy {
  display: grid;
  gap: 12px;
}

.banner-campaign-copy h3 {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 950;
}

.banner-campaign-copy p,
.banner-block-text {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.banner-campaign-blocks {
  display: grid;
  gap: 16px;
}

.banner-block-image {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: var(--surface-soft);
}

.banner-inline-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 900;
  text-decoration: underline;
}

.price {
  color: var(--ink);
}

.page-head {
  min-height: 42px;
  gap: 16px;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.page-head h1 {
  color: var(--ink);
  font-size: 1.72rem;
  font-weight: 950;
}

.toolbar {
  margin: 22px 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.chip,
.pill-button {
  min-height: 36px;
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 0.9rem;
}

.chip.active,
.pill-button.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.select,
.input {
  border-color: var(--line-strong);
  border-radius: 6px;
}

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

.side-note {
  border-color: var(--line);
  border-radius: 8px;
  box-shadow: none;
}

.modal-panel {
  border-radius: 8px;
}

@media (max-width: 1240px) {
  .primary-nav {
    display: flex;
  }

  .app-shell {
    display: block;
  }

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

  .community-board-head,
  .community-board-row {
    grid-template-columns: 78px minmax(200px, 1fr) 112px 74px 58px 54px;
  }
}

@media (max-width: 980px) {
  .header-inner,
  .category-strip,
  .app-shell {
    width: min(100% - 28px, 900px);
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .primary-nav {
    grid-column: 1 / -1;
    order: 3;
    min-width: 0;
    overflow-x: auto;
  }

  .global-search {
    grid-column: 1 / -1;
    order: 4;
  }

  .header-actions,
  .auth-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .inline-login-form {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-end;
  }

  .category-strip {
    overflow-x: auto;
  }

  .hero,
  .board-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .quick-grid,
  .card-grid,
  .card-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community-board-head {
    display: none;
  }

  .community-board-row {
    min-height: 64px;
    grid-template-columns: minmax(0, 1fr) 58px;
    grid-template-areas:
      "title recommend"
      "badge meta";
    row-gap: 5px;
    padding: 9px 10px;
  }

  .community-board-badge {
    grid-area: badge;
    text-align: left;
  }

  .community-title-cell {
    grid-area: title;
  }

  .community-author {
    grid-area: meta;
    text-align: left;
  }

  .community-date,
  .community-count {
    display: none;
  }

  .community-recommend {
    grid-area: recommend;
    text-align: right;
  }

  .banner-viewport {
    height: auto;
  }

  .banner-campaign-copy h3 {
    font-size: 1.35rem;
  }
}
