:root {
  color-scheme: light;
  --bg: #fff8f6;
  --panel: #ffffff;
  --panel-soft: #fffdfb;
  --text: #1f2329;
  --muted: #697386;
  --line: #f0dfda;
  --blue: #ff5a4f;
  --blue-dark: #e6453b;
  --green: #13795b;
  --shadow: 0 18px 45px rgba(105, 55, 45, 0.1);
  --radius: 8px;
  font-family:
    Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    Pretendard, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
a.button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 58px;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 251, 0.9);
  backdrop-filter: blur(18px);
}

.header-logo {
  position: absolute;
  left: 50%;
  display: flex;
  align-items: center;
  height: 58px;
  overflow: hidden;
  transform: translateX(-50%);
}

.header-logo img {
  display: block;
  width: auto;
  height: 75px;
  object-fit: contain;
}

.header-back-button {
  position: absolute;
  left: 40px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  padding: 0;
  color: var(--blue);
  background: transparent;
  font-size: 28px;
  font-weight: 900;
}

.header-back-button:hover {
  border-color: #ffd1c9;
  background: #fff1ee;
}

.icon-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.account-nav {
  position: relative;
}

.icon-link {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  padding: 0;
  overflow: hidden;
  color: var(--blue);
  background: transparent;
  font-weight: 800;
}

.icon-link span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border-radius: inherit;
  overflow: hidden;
}

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

.icon-link:hover,
.icon-link.active {
  border-color: #ffd1c9;
  background: #fff1ee;
}

.header-text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 14px;
  color: #344054;
  background: transparent;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.header-text-link:hover,
.header-text-link.active {
  border-color: #ffd1c9;
  background: #fff1ee;
  color: var(--blue);
}

.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  display: grid;
  width: 160px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  animation: menu-in 140ms ease-out;
}

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

.account-menu a,
.account-menu button {
  min-height: 42px;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 14px;
  background: #fff;
  color: #344054;
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.account-menu button {
  border-bottom: 0;
  color: #b42318;
}

.account-menu a:hover,
.account-menu button:hover {
  background: #fff7f5;
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-shell {
  min-height: calc(100vh - 178px);
}

.route-view {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 32px 0 56px;
  animation: page-in 160ms ease-out;
}

.route-view[data-route="chat"] {
  display: grid;
  height: calc(100vh - 146px);
  height: calc(100dvh - 146px);
  min-height: 0;
  padding-bottom: 32px;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero,
.section,
.auth-page,
.form-page,
.checkout-layout {
  display: grid;
  gap: 24px;
}

.hero {
  justify-items: center;
  min-height: min(640px, calc(100vh - 178px));
  align-content: center;
  padding: 56px 0 40px;
  text-align: center;
}

.error-page {
  gap: 20px;
}

.error-code {
  margin: 0;
  font-size: clamp(72px, 16vw, 140px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--line);
}

.error-detail {
  max-width: 520px;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.page-title {
  display: grid;
  justify-items: center;
  gap: 10px;
  max-width: 680px;
}

.page-title h1,
.list-heading h1,
.auth-card h1,
.detail-copy h1 {
  margin: 0;
  letter-spacing: 0;
}

.page-title h1 {
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.08;
}

.page-title p,
.auth-card p,
.detail-copy p,
.request-card p,
.talent-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.kicker {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.search-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: min(760px, 100%);
  min-height: 50px;
  gap: 10px;
  padding: 6px 8px 6px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  box-shadow: 0 20px 60px rgba(255, 90, 79, 0.15);
}

.search-box.wide {
  justify-self: center;
}

.spark,
.ai-search-logo {
  color: var(--blue);
  font-weight: 900;
}

.ai-search-logo {
  display: inline-grid;
  width: 24px;
  height: 34px;
  min-width: 24px;
  place-items: center;
  font-size: 16px;
}

.search-box input {
  min-width: 0;
  height: 36px;
  border: 0;
  outline: 0;
}

.search-box > button,
.message-compose button {
  height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
}

.suggestions,
.chip-row,
.tab-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.home-ai-search {
  margin-top: 4px;
}

.primary-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  grid-auto-rows: max-content;
  align-content: start;
  align-items: start;
  gap: 12px;
  width: min(560px, 100%);
  min-height: 190px;
  margin-top: 12px;
}

.flow-trigger {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: #344054;
  font-weight: 900;
  box-shadow: var(--shadow);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.flow-trigger:hover,
.flow-trigger.active {
  border-color: var(--blue);
  background: #fff1ee;
  color: var(--blue);
  transform: translateY(-1px);
}

.flow-trigger.active {
  box-shadow: 0 16px 36px rgba(255, 90, 79, 0.18);
}

.flow-options {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.flow-options::before {
  content: "";
  justify-self: center;
  width: 2px;
  height: 12px;
  margin-top: -4px;
  border-radius: 999px;
  background: var(--blue);
}

.flow-options[data-flow-options="hire"] {
  grid-column: 1;
}

.flow-options[data-flow-options="work"] {
  grid-column: 2;
}

.flow-options[hidden] {
  display: none;
}

.flow-options.open {
  opacity: 1;
  transform: translateY(0);
}

.flow-options a {
  display: grid;
  min-height: 48px;
  place-items: center;
  border: 1px solid #ffd1c9;
  border-radius: var(--radius);
  background: #fffdfb;
  color: var(--blue);
  font-weight: 850;
}

.flow-options a:hover {
  background: #fff1ee;
}

.suggestions span,
.chip-row span,
.tab {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 11px;
  background: #fff;
  color: #475467;
  font-size: 12px;
  font-weight: 700;
}

.tab.active {
  border-color: var(--blue);
  background: #fff1ee;
  color: var(--blue);
}

.section-head,
.list-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-head h2,
.list-heading h1 {
  margin: 0;
}

.section-head a {
  color: var(--blue);
  font-weight: 800;
}

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

.category-grid a {
  display: grid;
  min-height: 160px;
  place-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: #344054;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.category-grid span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: #f0f3f9;
  color: var(--blue);
}

.filter-actions {
  display: flex;
  gap: 10px;
}

.list-toolbar {
  display: grid;
  gap: 14px;
}

.list-search {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: min(680px, 100%);
}

.list-search input {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  background: #fff;
}

.list-search button {
  flex: 0 0 auto;
  min-height: 42px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 18px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
}

.list-search .list-filters-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-weight: 700;
}

.list-filter-modal {
  width: min(460px, 100%);
}

.category-picker-modal {
  width: min(420px, 100%);
}

.category-picker-list {
  display: grid;
  max-height: min(52vh, 420px);
  gap: 8px;
  overflow-y: auto;
  padding-right: 2px;
}

.category-picker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
  text-align: left;
}

.category-picker-item:hover,
.category-picker-item.is-selected {
  border-color: #ffd1c9;
  background: #fff1ee;
  color: var(--blue);
}

.category-picker-item strong {
  color: var(--blue);
  font-size: 12px;
}

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

.list-filter-form .form-actions {
  margin-top: 4px;
}

.filter-actions select,
.filter-actions button,
.field input,
.field select,
.field .category-select-button,
.field textarea,
.conversation-list input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
}

.visually-hidden-select {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.category-select-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  text-align: left;
  cursor: pointer;
}

.category-select-button::after {
  content: "⌄";
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.category-select-button:hover,
.category-select-button:focus-visible {
  border-color: #ffd1c9;
  background: #fff7f5;
  outline: 0;
}

.filter-actions select,
.filter-actions button {
  width: auto;
  padding: 0 14px;
}

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

.talent-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.list-page-frame {
  position: relative;
  display: grid;
  gap: 54px;
}

.list-pagination {
  position: absolute;
  inset: 0 -62px;
  left: -62px;
  right: -62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.list-pagination span {
  position: absolute;
  left: 50%;
  bottom: -40px;
  min-width: 72px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  transform: translateX(-50%);
}

.list-page-arrow {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 0;
  background: #fff;
  color: var(--blue);
  font-size: 30px;
  font-weight: 900;
  box-shadow: 0 14px 32px rgba(16, 24, 40, 0.12);
  pointer-events: auto;
}

.list-page-arrow:hover {
  border-color: #bcd1f3;
  background: #fff1ee;
}

.list-page-arrow:disabled {
  opacity: 0.45;
}

.list-page-arrow.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

.talent-card,
.request-card,
.summary-card,
.editor-card,
.auth-card,
.checkout-card,
.profile-summary,
.stats-grid article,
.dashboard-panels article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.talent-card {
  overflow: hidden;
}

.request-list-card {
  overflow: hidden;
  padding: 0;
}

.visual {
  position: relative;
  display: block;
  min-height: 190px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.2)),
    linear-gradient(145deg, #dbeafe 0%, #ffffff 42%, #c7d2fe 100%);
}

.visual::before,
.visual::after {
  position: absolute;
  border: 1px solid rgba(52, 64, 84, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  content: "";
}

.visual::before {
  top: 38px;
  left: 36px;
  width: 42%;
  height: 50%;
  box-shadow: 42px 20px 0 rgba(8, 102, 216, 0.12);
}

.visual::after {
  right: 34px;
  bottom: 30px;
  width: 34%;
  height: 38%;
}

.visual.development {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2)),
    linear-gradient(145deg, #dcfce7 0%, #ffffff 44%, #bae6fd 100%);
}

.visual.marketing,
.visual.writing {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.24)),
    linear-gradient(145deg, #fee2e2 0%, #ffffff 45%, #fde68a 100%);
}

.visual.has-image {
  background: #eef2f8;
}

.visual.has-image::before,
.visual.has-image::after {
  display: none;
}

.visual.has-image img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.visual span {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.88);
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.visual.small {
  min-height: 92px;
}

.visual.thumb {
  width: 58px;
  min-width: 58px;
  min-height: 58px;
  border-radius: var(--radius);
}

.card-body,
.request-card,
.summary-card,
.editor-card,
.auth-card,
.checkout-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.meta-line,
.card-action,
.seller-box,
.summary-card dl div,
.checkout-card dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.meta-line strong,
.card-action strong,
.checkout-card strong {
  color: var(--blue);
}

.talent-card h3,
.request-card h3 {
  margin: 0;
  font-size: 19px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: var(--radius);
  padding: 0 16px;
  border: 1px solid transparent;
  font-weight: 800;
  white-space: nowrap;
}

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

.button.primary:hover {
  background: var(--blue-dark);
}

.button.secondary,
.button.quiet {
  border-color: #ffd1c9;
  background: #fff1ee;
  color: var(--blue);
}

.button.quiet {
  min-height: 34px;
  background: #fff7f5;
}

.button.danger {
  border-color: #fecaca;
  background: #fff5f5;
  color: #b42318;
}

.center-action {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.detail-layout,
.checkout-grid,
.dashboard-layout,
.chat-layout,
.search-results-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
  align-items: start;
}

.detail-main {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.detail-main.padded {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.detail-hero {
  min-height: 330px;
}

.detail-copy {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.detail-copy h2,
.summary-card h2,
.checkout-card h2,
.dashboard-panels h2,
.chat-panel h1,
.conversation-list h1 {
  margin: 0;
  font-size: 18px;
}

.seller-box {
  justify-content: flex-start;
}

.chat-post-link {
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 6px 8px;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.chat-post-link:hover,
.chat-post-link:focus-visible {
  border-color: #ffd1c9;
  background: #fff1ee;
  outline: 0;
}

.seller-box span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.avatar {
  display: grid;
  width: 44px;
  height: 44px;
  min-width: 44px;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: #fff1ee;
  color: var(--blue);
  font-weight: 900;
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.avatar.large {
  width: 78px;
  height: 78px;
  min-width: 78px;
  font-size: 28px;
}

.check-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: #344054;
}

.checkout-card {
  position: sticky;
  top: 84px;
}

.checkout-card strong {
  font-size: 30px;
}

.checkout-card p,
.secure-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.back-link {
  color: var(--muted);
  font-weight: 800;
}

.form-page {
  justify-items: center;
}

.editor-card,
.auth-card {
  width: min(520px, 100%);
}

.auth-page {
  min-height: calc(100vh - 178px);
  place-items: center;
}

.auth-card {
  text-align: center;
}

.field {
  display: grid;
  gap: 8px;
  text-align: left;
}

.field span {
  font-weight: 800;
}

.field input,
.field select {
  padding: 0 12px;
}

.field textarea {
  resize: vertical;
  padding: 12px;
}

.upload-box {
  display: grid;
  place-items: center;
  min-height: 120px;
  border: 1px dashed #c4ccda;
  border-radius: var(--radius);
  background: #f8fafc;
  color: var(--muted);
  text-align: center;
}

.upload-box input {
  display: none;
}

.profile-upload {
  min-height: 132px;
  cursor: pointer;
}

.profile-upload span {
  color: var(--blue);
  font-weight: 900;
}

.profile-upload small {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.profile-upload-field {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.profile-image-picker {
  position: relative;
  display: block;
  width: 108px;
  height: 108px;
  cursor: pointer;
}

.profile-image-picker input {
  display: none;
}

.signup-avatar {
  display: grid;
  width: 108px;
  height: 108px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #ffd1c9;
  border-radius: 50%;
  background: #fff1ee;
  color: var(--blue);
  font-size: 34px;
  font-weight: 900;
}

.signup-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.profile-edit-button {
  position: absolute;
  right: 2px;
  bottom: 2px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(8, 102, 216, 0.28);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.profile-upload-field small {
  max-width: 100%;
  color: var(--muted);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.file-drop-zone {
  display: grid;
  gap: 6px;
  min-height: 104px;
  place-items: center;
  border: 1px dashed #c4ccda;
  border-radius: var(--radius);
  background: #f8fafc;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
}

.file-drop-zone span {
  color: var(--blue);
  font-weight: 900;
}

.file-drop-zone small {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.file-drop-zone input {
  display: none;
}

.form-actions,
.auth-options {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.auth-options button,
.auth-options a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: #344054;
  font-weight: 800;
}

.inline-note {
  color: var(--muted);
  font-size: 13px;
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: #b42318;
  font-size: 13px;
  font-weight: 700;
}

.inline-note a {
  color: var(--blue);
  font-weight: 800;
}

.request-card dl,
.summary-card dl,
.checkout-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.request-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  font-weight: 800;
}

.ai-insight {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #cfe8dc;
  border-radius: var(--radius);
  background: #eef9f3;
  color: var(--green);
}

.ai-insight span {
  color: #356859;
}

.ai-search-page {
  gap: 22px;
}

.ai-match-form {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.ai-target-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(420px, 100%);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f4f7fb;
}

.ai-target-control label {
  cursor: pointer;
}

.ai-target-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.ai-target-control span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 5px;
  color: var(--muted);
  font-weight: 800;
}

.ai-target-control input:checked + span {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
}

.ai-target-control input:focus-visible + span {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.ai-query-box {
  width: 100%;
  box-shadow: none;
}

.ai-filter-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  justify-self: start;
  min-width: 150px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.ai-filter-toggle strong {
  color: var(--blue);
  font-size: 18px;
  line-height: 1;
}

.ai-filter-toggle:hover {
  border-color: #bcd1f3;
  background: #f7fbff;
}

.ai-match-options {
  display: grid;
  gap: 16px;
}

.ai-match-options[hidden] {
  display: none;
}

.ai-condition-bar {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 2fr);
  gap: 14px;
  align-items: end;
}

.ai-target-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ai-target-fields[data-ai-target-fields="REQUEST"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ai-target-fields[hidden] {
  display: none;
}

.ai-search-status {
  margin: 0;
  color: var(--muted);
}

.ai-match-results,
.ai-result-list {
  display: grid;
  gap: 16px;
}

.ai-search-state {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 260px;
  padding: 42px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: var(--shadow);
  text-align: center;
}

.ai-search-state span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.ai-search-state h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
}

.ai-search-state p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.ai-search-progress {
  position: relative;
  width: min(360px, 100%);
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #fff1ee;
}

.ai-search-progress i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  border-radius: inherit;
  background: var(--blue);
  animation: ai-search-progress 1.1s ease-in-out infinite alternate;
}

.ai-result-heading,
.ai-result-meta,
.ai-result-footer,
.ai-result-footer > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ai-result-heading h2,
.ai-result-card h3 {
  margin: 0;
}

.ai-result-heading > span,
.ai-result-meta strong {
  color: var(--blue);
  font-weight: 800;
}

.ai-result-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.ai-result-card.text-only {
  grid-template-columns: 1fr;
}

.ai-result-thumbnail {
  min-height: 220px;
  background: #eef2f8;
}

.ai-result-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-result-body {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.ai-result-body > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.ai-recommendation-reason {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-left: 3px solid var(--blue);
  background: #fff7f5;
  color: #344054;
}

.ai-recommendation-reason strong {
  color: var(--blue);
  font-size: 12px;
}

.ai-result-footer {
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.ai-result-footer > div {
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
}

.ai-result-empty {
  display: grid;
  gap: 6px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--muted);
}

.ai-result-summary {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

@keyframes ai-search-progress {
  from {
    transform: translateX(-45%);
  }

  to {
    transform: translateX(210%);
  }
}

.search-results-layout aside {
  display: grid;
  gap: 14px;
}

.chat-layout {
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: stretch;
  height: 100%;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.conversation-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow: hidden;
  padding: 20px;
  border-right: 1px solid var(--line);
}

.conversation-list > :not([data-room-list]) {
  flex: none;
}

.conversation-list [data-room-list] {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-right: 4px;
}

.conversation-list [data-room-list]::-webkit-scrollbar {
  width: 10px;
}

.conversation-list [data-room-list]::-webkit-scrollbar-thumb {
  background: #d8c7c0;
  border-radius: 8px;
  border: 2px solid var(--panel);
}

.conversation-list input {
  padding: 0 12px;
}

.conversation {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: var(--radius);
}

.conversation div:not(.avatar) {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.conversation strong,
.conversation span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation.active,
.conversation:hover {
  background: #fff3ef;
}

.conversation span {
  color: var(--muted);
  font-size: 13px;
}

.chat-avatar {
  width: 38px;
  height: 38px;
  min-width: 38px;
}

.chat-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

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

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

.message-stream {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 10px;
  min-height: 0;
  margin: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7f8fb;
}

.bubble {
  justify-self: start;
  align-self: flex-start;
  width: fit-content;
  max-width: min(520px, 84%);
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.bubble.me {
  justify-self: end;
  align-self: flex-end;
  background: var(--blue);
  color: #fff;
}

.bubble-image {
  padding: 4px;
  display: block;
  line-height: 0;
}

.bubble-image img {
  display: block;
  max-width: 240px;
  max-height: 320px;
  width: auto;
  height: auto;
  border-radius: calc(var(--radius) - 4px);
  object-fit: cover;
}

.trade-bubble {
  display: grid;
  gap: 8px;
  min-width: 240px;
}

.trade-bubble span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.trade-bubble strong {
  font-size: 22px;
}

.trade-bubble p,
.trade-bubble small {
  margin: 0;
  color: var(--muted);
}

.trade-bubble.me span,
.trade-bubble.me p,
.trade-bubble.me small {
  color: rgba(255, 255, 255, 0.78);
}

.trade-bubble .button {
  width: fit-content;
  margin-top: 4px;
}

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

.trade-bubble.me .button.primary {
  background: #fff;
  color: var(--blue);
}

.chat-modal-backdrop {
  position: absolute;
}

.chat-trade-modal {
  width: min(460px, 100%);
}

.trade-modal-form,
.trade-payment-detail {
  display: grid;
  gap: 14px;
}

.trade-payment-detail dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.trade-payment-detail dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.shared-card {
  display: grid;
  width: 230px;
  gap: 8px;
  padding: 10px;
  border-radius: var(--radius);
  background: #fff;
}

.shared-card span {
  color: var(--muted);
  font-size: 13px;
}

.message-compose {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.chat-notice {
  position: absolute;
  right: 20px;
  bottom: 82px;
  z-index: 5;
  max-width: min(360px, calc(100% - 40px));
  padding: 11px 14px;
  border: 1px solid #ffd1c9;
  border-radius: var(--radius);
  background: #fff1ee;
  color: #d94338;
  font-size: 14px;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.chat-notice.error {
  border-color: #fecaca;
  background: #fff1f2;
  color: #b42318;
}

.chat-notice[hidden] {
  display: none;
}

.message-compose input[type="text"],
.message-compose input[type="search"] {
  min-width: 0;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
}

.compose-attach {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 18px;
  border: 1px solid var(--line);
  background: #fff;
}

.compose-attach:hover {
  background: #f2f4f7;
}

.message-compose.uploading {
  opacity: 0.6;
  pointer-events: none;
}

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

.dashboard-menu {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.dashboard-menu a {
  padding: 12px;
  border-radius: var(--radius);
  color: #344054;
  font-weight: 800;
}

.dashboard-menu a.active,
.dashboard-menu a:hover {
  background: #fff1ee;
  color: var(--blue);
}

.dashboard-main {
  display: grid;
  gap: 18px;
}

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

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

.public-profile-posts,
.mypage-authored-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

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

.profile-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.profile-summary h1,
.profile-summary p {
  margin: 0;
}

.profile-summary span {
  color: var(--muted);
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.mypage-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.mypage-portfolio-section {
  grid-row: span 2;
}

.wallet-summary {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.wallet-summary strong {
  font-size: 24px;
}

.wallet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.stats-grid article,
.dashboard-panels article {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.stats-grid span {
  color: var(--muted);
}

.stats-grid strong {
  font-size: 28px;
}

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

.dashboard-panels p {
  display: flex;
  justify-content: space-between;
  margin: 0;
  color: var(--muted);
}

.dashboard-section {
  display: grid;
  gap: 14px;
}

.dashboard-section .section-head {
  align-items: center;
}

.mypage-portfolio-section,
.mypage-wallet-section,
.mypage-trade-section,
.trade-status-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.mypage-trade-preview,
.trade-list {
  display: grid;
  gap: 12px;
}

.trade-page {
  display: grid;
  gap: 20px;
}

.trade-status-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.trade-list-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
  color: inherit;
}

.trade-list-card.is-clickable:hover {
  border-color: #bcd1f3;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
}

.trade-list-card span,
.trade-list-card p {
  margin: 0;
  color: var(--muted);
}

.trade-list-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
}

.trade-list-card.compact h3 {
  font-size: 15px;
}

.wallet-history-modal {
  width: min(640px, calc(100vw - 32px));
}

.wallet-history-list {
  display: grid;
  max-height: min(520px, 62vh);
  gap: 10px;
  overflow: auto;
}

.wallet-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
}

.wallet-history-item h3,
.wallet-history-item p {
  margin: 0;
}

.wallet-history-item span,
.wallet-history-item p,
.wallet-history-item small {
  color: var(--muted);
}

.wallet-history-item strong {
  display: block;
  color: var(--blue);
  text-align: right;
}

.author-profile-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  width: 100%;
  gap: 12px;
  color: inherit;
}

.author-profile-link:hover strong {
  color: var(--blue);
}

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

.mypage-portfolio-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  align-items: stretch;
  gap: 18px;
}

.portfolio-page {
  position: relative;
  min-height: calc(100vh - 236px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 96px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.talent-page {
  position: relative;
  min-height: calc(100vh - 236px);
  padding-bottom: 88px;
}

.portfolio-page-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  align-items: stretch;
  gap: 18px;
}

.floating-create-button {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 18;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 18px 38px rgba(8, 102, 216, 0.28);
  transition: transform 140ms ease, background 140ms ease;
}

.floating-create-button span {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-1px);
}

.floating-create-button:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

.portfolio-write-section {
  width: calc(100vw - 80px);
  max-width: none;
  margin: -8px calc(50% - 50vw) 0;
  padding: 0 40px;
}

.portfolio-write-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: calc(100vh - 180px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.portfolio-editor-pane,
.portfolio-preview-pane {
  min-width: 0;
  padding: 28px;
}

.portfolio-editor-pane {
  display: grid;
  gap: 18px;
  align-content: start;
  border-right: 1px solid var(--line);
}

.portfolio-preview-pane {
  overflow: auto;
  background: #fbfcff;
}

.portfolio-title-input,
.portfolio-content-input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.portfolio-title-input {
  min-height: 64px;
  font-size: 34px;
  font-weight: 900;
}

.portfolio-title-input::placeholder,
.portfolio-content-input::placeholder {
  color: #a3acba;
}

.portfolio-title-rule {
  width: 68px;
  height: 6px;
  border-radius: 999px;
  background: var(--text);
}

.portfolio-write-toolbar {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.portfolio-write-toolbar input {
  display: none;
}

.portfolio-content-input {
  min-height: 48vh;
  resize: vertical;
  font-size: 17px;
  line-height: 1.8;
}

.markdown-preview {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 100%;
  color: var(--text);
}

.markdown-preview h1,
.markdown-preview h2,
.markdown-preview h3,
.markdown-preview p {
  margin: 0;
}

.markdown-preview h1 {
  font-size: 34px;
  line-height: 1.25;
}

.markdown-preview h2 {
  font-size: 26px;
}

.markdown-preview h3,
.markdown-preview h4 {
  font-size: 21px;
}

.markdown-preview p {
  color: #344054;
  font-size: 16px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.markdown-preview img {
  display: block;
  width: 100%;
  max-height: 520px;
  border-radius: var(--radius);
  object-fit: contain;
  background: #eef2f8;
}

.markdown-preview code {
  border-radius: 6px;
  padding: 2px 5px;
  background: #eef2f8;
  color: var(--blue);
  font-size: 0.92em;
}

.portfolio-write-upload {
  min-height: 96px;
}

.talent-thumbnail-preview {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: #fff;
}

.talent-thumbnail-preview[hidden] {
  display: none;
}

.talent-thumbnail-preview img {
  width: 140px;
  height: 88px;
  object-fit: cover;
  border-radius: var(--radius);
  background: #eef2f8;
}

.talent-thumbnail-preview div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.talent-thumbnail-preview span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.talent-thumbnail-preview strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.talent-thumbnail-preview button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #f8fafc;
  color: var(--muted);
  font-weight: 900;
}

.talent-thumbnail-preview button:hover {
  border-color: #ffd1c9;
  background: #fff1ee;
  color: var(--blue);
}

.selected-file-list {
  display: grid;
  gap: 8px;
}

.selected-file-list[hidden] {
  display: none;
}

.selected-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #f8fafc;
}

.selected-file-item div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.selected-file-item strong,
.selected-file-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-file-item small {
  color: var(--muted);
  font-size: 12px;
}

.selected-file-item button {
  display: grid;
  width: 28px;
  height: 28px;
  min-width: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
}

.selected-file-item button:hover {
  border-color: #ffd1c9;
  background: #fff1ee;
  color: var(--blue);
}

.inline-file-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.inline-file-actions a,
.inline-file-actions label,
.inline-file-actions button {
  display: inline-flex;
  width: auto;
  height: 28px;
  min-width: auto;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.inline-file-actions input {
  display: none;
}

.inline-file-actions a:hover,
.inline-file-actions label:hover,
.inline-file-actions button:hover {
  border-color: #ffd1c9;
  background: #fff1ee;
  color: var(--blue);
}

.existing-file-item {
  color: var(--text);
}

.existing-file-item:hover {
  border-color: #ffd1c9;
  background: #fffdfb;
}

.portfolio-write-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.talent-write-toolbar {
  justify-content: flex-start;
}

.talent-detail-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 13px;
}

.talent-detail-summary strong {
  color: var(--blue);
}

.talent-detail-summary span {
  border-radius: 999px;
  padding: 4px 8px;
  background: #fff;
  color: #344054;
  font-weight: 800;
}

.talent-settings-modal {
  width: min(520px, 100%);
}

.talent-portfolio-modal {
  width: min(680px, 100%);
}

.talent-portfolio-list {
  display: grid;
  gap: 10px;
  max-height: 430px;
  overflow: auto;
}

.talent-portfolio-list p {
  margin: 0;
  color: var(--muted);
}

.talent-portfolio-option {
  display: grid;
  width: 100%;
  min-height: 76px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  background: #fff;
  color: var(--text);
  text-align: left;
}

.talent-portfolio-option.has-media {
  grid-template-columns: 88px minmax(0, 1fr);
}

.talent-portfolio-option.text-only {
  grid-template-columns: 1fr;
}

.talent-portfolio-thumb {
  display: block;
  width: 88px;
  height: 76px;
  overflow: hidden;
  background: #eef2f8;
}

.talent-portfolio-thumb img {
  display: block;
  max-width: none;
  width: 88px;
  height: 76px;
  object-fit: cover;
}

.talent-portfolio-option div {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 10px 12px;
}

.talent-portfolio-option strong,
.talent-portfolio-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.talent-portfolio-option span,
.talent-portfolio-option small {
  color: var(--muted);
  font-size: 12px;
}

.talent-portfolio-option:hover,
.talent-portfolio-option:focus-visible {
  border-color: #b7c9ea;
  box-shadow: 0 10px 24px rgba(29, 41, 57, 0.08);
}

.talent-portfolio-option.is-selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.12);
}

.talent-file-section,
.linked-portfolio-section {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.talent-file-section h2,
.linked-portfolio-section h2 {
  margin: 0;
}

.talent-file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.talent-file-card,
.linked-portfolio-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.talent-file-card {
  display: grid;
  color: var(--text);
}

.talent-file-card img,
.linked-portfolio-card img {
  display: block;
  width: 100%;
  height: 138px;
  object-fit: cover;
  background: #eef2f8;
}

.talent-file-card > span,
.linked-portfolio-empty {
  display: grid;
  height: 138px;
  place-items: center;
  background: #eef2f8;
  color: var(--blue);
  font-weight: 900;
}

.talent-file-card div,
.linked-portfolio-card div {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.talent-file-card strong,
.linked-portfolio-card h2 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.talent-file-card small,
.linked-portfolio-card small {
  color: var(--muted);
  font-size: 12px;
}

.linked-portfolio-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.linked-portfolio-card {
  display: grid;
  width: min(520px, 100%);
  min-height: 150px;
  padding: 0;
  color: var(--text);
  text-align: left;
}

.linked-portfolio-card.has-media {
  grid-template-columns: 180px minmax(0, 1fr);
}

.linked-portfolio-card.text-only {
  grid-template-columns: 1fr;
}

.linked-portfolio-card.text-only div {
  padding: 18px;
}

.linked-portfolio-card:hover,
.linked-portfolio-card:focus-visible {
  border-color: #b7c9ea;
  box-shadow: 0 12px 28px rgba(29, 41, 57, 0.08);
}

.linked-portfolio-card img,
.linked-portfolio-empty {
  height: 150px;
  min-height: 150px;
}

.linked-portfolio-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.detail-hero.has-image {
  background: #eef2f8;
}

.detail-hero.has-image::before,
.detail-hero.has-image::after {
  display: none;
}

.detail-hero.has-image img {
  display: block;
  width: 100%;
  height: 330px;
  object-fit: cover;
}

.portfolio-card {
  position: relative;
  display: grid;
  gap: 10px;
  width: 100%;
  text-align: left;
  height: 300px;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.portfolio-card:not(.is-clickable),
.portfolio-card.text-only:not(.is-clickable) {
  padding: 18px;
}

.portfolio-card-open {
  display: grid;
  gap: 10px;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 18px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.portfolio-card.has-media .portfolio-card-open {
  grid-template-rows: 158px minmax(0, 1fr);
  padding: 0;
}

.portfolio-card.has-media .portfolio-card-open > div:not(.portfolio-card-media),
.portfolio-card.text-only .portfolio-card-open {
  padding: 18px;
}

.portfolio-edit-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 50%;
  background: rgba(248, 250, 252, 0.92);
  color: #667085;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.portfolio-edit-button span {
  color: inherit;
  font-size: 18px;
  line-height: 1;
}

.portfolio-edit-button:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #344054;
}

.portfolio-action-menu {
  position: absolute;
  top: 50px;
  right: 10px;
  z-index: 3;
  display: grid;
  min-width: 108px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
}

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

.portfolio-action-menu a,
.portfolio-action-menu button {
  border: 0;
  padding: 10px 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.portfolio-action-menu a:hover,
.portfolio-action-menu button:hover {
  background: #fffdfb;
  color: var(--blue);
}

.portfolio-action-menu button {
  color: #b42318;
}

.portfolio-card-media {
  position: relative;
  height: 158px;
  overflow: hidden;
  background: #fff1ee;
}

.portfolio-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-card-media small {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.portfolio-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.portfolio-card h3,
.portfolio-card p {
  margin: 0;
}

.portfolio-card h3 {
  font-size: 18px;
}

.portfolio-card p {
  color: var(--muted);
  line-height: 1.5;
}

.portfolio-card.has-media p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.portfolio-card.text-only p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(5px);
}

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

.charge-modal {
  display: grid;
  width: min(420px, 100%);
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
  animation: modal-in 160ms ease-out;
}

.modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.modal-head h2 {
  margin: 4px 0 0;
}

.modal-close {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
}

.modal-close:hover {
  border-color: #ffd1c9;
  background: #fff1ee;
  color: var(--blue);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.portfolio-card:hover {
  border-color: #ffd1c9;
  background: #fffdfb;
}

body.modal-open {
  overflow: hidden;
}

.portfolio-detail-modal {
  display: grid;
  width: min(920px, 100%);
  max-height: min(86vh, 920px);
  gap: 18px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
  animation: modal-in 160ms ease-out;
}

.portfolio-detail-modal .modal-head {
  position: sticky;
  top: -22px;
  z-index: 1;
  align-items: center;
  padding: 0 0 12px;
  background: var(--panel);
}

.portfolio-detail-cover {
  display: block;
  width: 100%;
  max-height: 360px;
  border-radius: var(--radius);
  object-fit: cover;
  background: #eef2f8;
}

.portfolio-detail-markdown {
  min-height: auto;
}

.portfolio-detail-files {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.portfolio-detail-files h3 {
  margin: 0;
  font-size: 16px;
}

.portfolio-detail-files a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #f8fafc;
  color: var(--text);
  font-weight: 800;
}

.portfolio-detail-files span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-detail-files small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.checkout-layout > .page-title {
  justify-self: center;
}

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

.portfolio-manage-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.portfolio-form {
  position: sticky;
  top: 82px;
}

.portfolio-form h2,
.portfolio-manage-card h2 {
  margin: 0;
}

.portfolio-manage-card {
  align-content: space-between;
  min-height: 190px;
}

.portfolio-manage-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.portfolio-file-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.portfolio-file-list.empty {
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.portfolio-file-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
}

.portfolio-file-link {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.portfolio-file-link img,
.portfolio-file-link > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: var(--radius);
  background: #fff1ee;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  object-fit: cover;
}

.portfolio-file-link strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-file-link small {
  border-radius: 999px;
  padding: 4px 8px;
  background: #fff1ee;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.portfolio-file-actions {
  display: flex;
  gap: 6px;
}

.portfolio-file-actions .button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.portfolio-file-actions input {
  display: none;
}

.empty-state {
  border-style: dashed;
}

.checkout-grid {
  width: min(720px, 100%);
  justify-self: center;
}

.checkout-grid > div {
  display: grid;
  gap: 18px;
}

.payment-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.payment-option.active {
  border-color: var(--blue);
  background: #f4f8ff;
}

.payment-option span {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
}

.secure-note {
  padding: 12px;
  border-radius: var(--radius);
  background: #effaf4;
  color: var(--green);
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 120px;
  padding: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer strong {
  color: var(--blue);
  font-size: 16px;
}

.site-footer div {
  display: flex;
  gap: 16px;
}

/* 좌우 여백이 좁아지면 양옆 화살표가 화면 밖으로 잘리므로 그리드 하단으로 내린다. */
@media (max-width: 1300px) {
  .list-page-frame {
    gap: 28px;
  }

  .list-pagination {
    position: static;
    inset: auto;
    justify-content: center;
    gap: 14px;
    pointer-events: auto;
  }

  .list-pagination span {
    position: static;
    bottom: auto;
    left: auto;
    transform: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    padding: 10px 22px;
  }

  .category-grid,
  .talent-grid,
  .talent-grid.two-col,
  .request-grid,
  .ai-match-filters,
  .ai-result-grid,
  .portfolio-grid,
  .portfolio-manage-layout,
  .detail-layout,
  .checkout-grid,
  .dashboard-layout,
  .mypage-grid,
  .public-profile-grid,
  .trade-status-layout,
  .search-results-layout {
    grid-template-columns: 1fr;
  }

  .checkout-card {
    position: static;
  }

  .ai-condition-bar,
  .ai-result-card {
    grid-template-columns: 1fr;
  }

  .ai-result-thumbnail {
    min-height: 190px;
    max-height: 280px;
  }

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

@media (max-width: 680px) {
  .site-header {
    justify-content: center;
    min-height: auto;
  }

  .header-back-button {
    left: 14px;
  }

  .header-logo {
    position: static;
    order: -1;
    width: 100%;
    height: 42px;
    transform: none;
  }

  .header-logo img {
    height: 63px;
    margin: 0 auto;
  }

  .icon-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .header-text-link {
    min-height: 34px;
    padding: 0 11px;
    font-size: 12px;
  }

  .route-view {
    width: min(100% - 28px, 1180px);
    padding-top: 22px;
  }

  .route-view[data-route="chat"] {
    height: auto;
    min-height: calc(100vh - 178px);
    padding-bottom: 56px;
  }

  .search-box,
  .message-compose,
  .profile-summary,
  .primary-flow,
  .flow-options,
  .list-search {
    grid-template-columns: 1fr;
    border-radius: var(--radius);
  }

  .primary-flow {
    min-height: 250px;
  }

  .ai-target-fields,
  .ai-target-fields[data-ai-target-fields="REQUEST"] {
    grid-template-columns: 1fr;
  }

  .ai-result-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .section-head,
  .list-heading,
  .chat-panel header,
  .profile-actions,
  .wallet-actions,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .wallet-history-item {
    grid-template-columns: 1fr;
  }

  .wallet-history-item strong {
    text-align: left;
  }

  .filter-actions,
  .form-actions,
  .auth-options {
    display: grid;
  }

  .category-grid,
  .stats-grid,
  .dashboard-panels,
  .portfolio-card-grid,
  .chat-layout {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .chat-panel {
    min-height: 560px;
  }

  .conversation-list {
    max-height: 260px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .portfolio-file-item,
  .portfolio-file-link {
    grid-template-columns: 1fr;
  }

  .portfolio-file-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .portfolio-write-form {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .portfolio-write-section {
    width: min(100% - 28px, 1180px);
    margin: 0 auto;
    padding: 0;
  }

  .portfolio-editor-pane,
  .portfolio-preview-pane {
    padding: 0;
  }

  .portfolio-editor-pane {
    border-right: 0;
  }

  .portfolio-preview-pane {
    border-top: 1px solid var(--line);
    padding-top: 20px;
  }

  .portfolio-title-input {
    font-size: 28px;
  }

  .portfolio-content-input {
    min-height: 320px;
  }

  .talent-thumbnail-preview {
    grid-template-columns: 96px minmax(0, 1fr) auto;
  }

  .talent-thumbnail-preview img {
    width: 96px;
    height: 68px;
  }

  .talent-portfolio-option.has-media {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .talent-portfolio-thumb,
  .talent-portfolio-thumb img {
    width: 72px;
    height: 68px;
  }

  .portfolio-write-actions {
    display: grid;
  }

  .linked-portfolio-head,
  .inline-file-actions {
    align-items: stretch;
    display: grid;
  }

  .linked-portfolio-card {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .linked-portfolio-card img,
  .linked-portfolio-empty {
    height: 140px;
    min-height: 140px;
  }

  .floating-create-button {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }

  .portfolio-page {
    padding: 16px 16px 82px;
  }

  .mypage-portfolio-section {
    padding: 16px;
  }
}
