:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #eff6ff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #dbe4ef;
  --brand: #2563eb;
  --brand-2: #06b6d4;
  --accent: #f59e0b;
  --trust: #16a34a;
  --navy: #101828;
  --navy-2: #16243a;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, "Pretendard", "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

body.auth-locked .app-shell {
  display: none;
}

body:not(.auth-locked) .auth-screen {
  display: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(420px, 520px);
  gap: 40px;
  align-items: center;
  padding: 40px;
  background:
    linear-gradient(rgba(16, 24, 40, 0.66), rgba(16, 24, 40, 0.74)),
    url("https://images.pexels.com/photos/34207359/pexels-photo-34207359.jpeg?auto=compress&cs=tinysrgb&w=1600")
      center / cover;
  color: #ffffff;
}

.auth-brand {
  width: min(760px, 100%);
}

.auth-brand img {
  width: 126px;
  height: auto;
  margin-bottom: 22px;
}

.auth-brand span {
  display: block;
  color: #bcd7ff;
  font-size: 15px;
  font-weight: 800;
}

.auth-brand h1 {
  margin: 10px 0 14px;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.08;
}

.auth-brand p {
  max-width: 640px;
  margin: 0;
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.7;
}

.login-card {
  display: grid;
  gap: 16px;
  width: 100%;
  min-width: 0;
  max-height: calc(100vh - 80px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.26);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.language-switch {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.language-btn {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #ffffff;
  font-size: 12px;
}

.language-btn.active {
  border-color: var(--brand);
  color: #ffffff;
  background: var(--brand);
}

.app-language-switch {
  justify-content: center;
}

.auth-tab {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
}

.auth-tab.active {
  color: #ffffff;
  background: var(--navy);
}

.auth-panel {
  display: none;
  gap: 16px;
  min-width: 0;
}

.auth-panel.active {
  display: grid;
}

#signup-form {
  gap: 12px;
}

#signup-form h2 {
  font-size: 24px;
}

#signup-form .login-submit {
  position: sticky;
  bottom: -24px;
  margin-top: 4px;
  border-radius: 8px;
}

.signup-success {
  text-align: left;
}

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

.success-summary {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.success-summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

.success-summary strong {
  color: var(--ink);
  text-align: right;
}

.login-card h2 {
  margin: 0;
  font-size: 26px;
}

.login-role {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.signup-role {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.login-role-btn,
.signup-role-btn,
.login-submit,
.session-box button {
  border: 0;
  border-radius: 8px;
}

.login-role-btn {
  min-height: 44px;
  color: var(--muted);
  background: transparent;
}

.signup-role-btn {
  min-height: 44px;
  color: var(--muted);
  background: transparent;
}

.login-role-btn.active,
.signup-role-btn.active {
  color: #ffffff;
  background: var(--brand);
}

.signup-role-panel {
  display: none;
  gap: 12px;
}

.signup-role-panel.active {
  display: grid;
}

.company-staff-fields,
.signup-account-fields {
  display: grid;
  gap: 12px;
}

.company-staff-fields[hidden],
.signup-account-fields[hidden] {
  display: none;
}

.login-card label,
.company-extra label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.login-card input[type="email"],
.login-card input[type="password"],
.login-card input[type="text"],
.login-card input[type="tel"] {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.signup-copy,
.signup-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.signup-status.is-found {
  color: var(--trust);
  font-weight: 800;
}

.signup-status.is-new {
  color: #8a5700;
  font-weight: 800;
}

.field-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 8px;
  min-width: 0;
}

.field-action button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: var(--brand);
  font-weight: 800;
}

.company-suggestions {
  display: grid;
  gap: 6px;
  max-height: 174px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.company-suggestions[hidden] {
  display: none;
}

.company-suggestion {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 48px;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  text-align: left;
  background: #f8fafc;
}

.company-suggestion:hover {
  background: var(--surface-soft);
}

.company-suggestion strong,
.company-suggestion span {
  display: block;
}

.company-suggestion span {
  color: var(--muted);
  font-size: 12px;
}

.existing-company {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
}

.existing-company[hidden] {
  display: none;
}

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

.existing-company-grid div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.existing-company-grid span,
.existing-company p {
  color: var(--muted);
  font-size: 12px;
}

.existing-company-grid strong {
  color: var(--ink);
  font-size: 14px;
}

.existing-company p {
  margin: 0;
  line-height: 1.5;
}

.same-name-company-btn {
  min-height: 40px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  color: var(--brand);
  background: #ffffff;
  font-weight: 800;
}

.company-extra {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-inline-size: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.company-extra[hidden] {
  display: none;
}

.company-extra legend {
  padding: 0 6px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.company-extra label:first-of-type {
  grid-column: 1 / -1;
}

.freelancer-skill-picker {
  display: grid;
  gap: 10px;
}

.skill-picker-head,
.selected-skill-box > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.skill-picker-head strong {
  color: var(--brand);
  font-size: 12px;
  font-weight: 500;
}

.freelancer-skill-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.freelancer-skill-columns section,
.selected-skill-box {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.freelancer-skill-columns h3 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.signup-skill-list,
.selected-skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: flex-start;
}

.signup-skill-list {
  max-height: 130px;
  overflow-y: auto;
}

.signup-skill-option,
.selected-skill-chip {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font-size: 12px;
  font-weight: 500;
}

.selected-skill-chip {
  max-width: 100%;
  height: auto;
  padding-block: 7px;
  text-align: left;
  line-height: 1.35;
}

.selected-skill-chip small,
.skill-option-badge {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.8;
}

.selected-skill-chip span {
  overflow-wrap: anywhere;
}

.signup-skill-option.is-selected,
.selected-skill-chip {
  border-color: var(--brand);
  color: #ffffff;
  background: var(--brand);
}

.signup-skill-empty {
  color: var(--muted);
  font-size: 12px;
}

.skill-picker-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.custom-skill-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 6px;
}

.custom-skill-form input {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  font-size: 12px;
}

.custom-skill-form button {
  min-height: 36px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  color: var(--brand);
  background: #ffffff;
  font-size: 12px;
  font-weight: 500;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}

.auto-login {
  display: flex !important;
  grid-template-columns: none;
  flex-direction: row;
  align-items: center;
  gap: 10px !important;
  color: var(--muted) !important;
  font-weight: 600 !important;
}

.login-hint,
.login-error {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.login-error {
  color: #dc2626;
}

.login-submit {
  min-height: 48px;
  color: #ffffff;
  background: var(--brand);
  font-weight: 800;
}

.login-divider {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 4px 0;
  color: var(--muted);
  font-size: 12px;
}

.login-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}

.login-divider span {
  position: relative;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.94);
}

.social-login {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.social-btn {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 800;
}

.social-btn span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.social-btn.google span {
  background: #4285f4;
}

.social-btn.naver {
  border-color: #03c75a;
}

.social-btn.naver span {
  background: #03c75a;
}

.social-btn.kakao {
  border-color: #f6d84f;
  background: #ffeb63;
}

.social-btn.kakao span {
  color: #3a2a00;
  background: #f6d84f;
}

.social-login.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.social-note {
  min-height: 18px;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.test-account-panel {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.test-account-panel > span {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.test-account-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.test-account-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font-size: 12px;
  font-weight: 500;
}

.test-account-actions button:hover {
  border-color: var(--brand);
  color: var(--brand);
}

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

.sidebar {
  background: var(--navy);
  color: #eef4ff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

@media (min-width: 901px) {
  .app-shell {
    display: block;
    padding-left: 280px;
  }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    box-sizing: border-box;
    overflow: hidden;
  }

  .main {
    min-width: 0;
  }

  .sidebar-panel {
    flex: 0 0 auto;
  }
}

.brand {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 14px;
  align-items: center;
}

.brand-logo {
  display: block;
  width: 94px;
  height: auto;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 15px;
  line-height: 1.3;
}

.brand span {
  color: #b6c4d8;
  font-size: 12px;
  margin-top: 4px;
}

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

.nav-item,
.primary-action,
.ghost-action,
.message-form button {
  border: 0;
  border-radius: 8px;
  min-height: 42px;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  padding: 12px 14px;
  color: #c7d3e6;
  background: transparent;
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  color: #08331f;
  background: #86efac;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.nav-item.active,
.nav-item:hover {
  color: #ffffff;
  background: rgba(37, 99, 235, 0.24);
}

.sidebar-panel {
  margin-top: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-panel p {
  margin: 8px 0 0;
  color: #dbe6f5;
  line-height: 1.55;
  font-size: 14px;
}

.main {
  padding: 28px;
  overflow: hidden;
}

.topbar,
.section-head,
.hero-strip,
.metric-grid,
.content-grid,
.messenger,
.business-footer {
  width: min(1180px, 100%);
  margin-inline: auto;
}

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

.topbar {
  flex-wrap: wrap;
}

.topbar > div:first-child {
  flex: 1 1 360px;
  min-width: 0;
}

.session-box {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

#session-name {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.session-main {
  color: var(--muted);
  font-size: 13px;
}

.session-premium-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 260px;
  padding: 7px 10px;
  overflow: hidden;
  color: #4a3100;
  border: 1px solid rgba(213, 157, 44, 0.42);
  border-radius: 999px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.62), transparent 34%),
    linear-gradient(135deg, #fff3bc 0%, #e8b94f 45%, #f8df8d 100%);
  box-shadow: 0 10px 24px rgba(152, 104, 16, 0.18);
}

.session-premium-badge::after {
  content: "";
  position: absolute;
  inset: -50% auto -50% -35%;
  width: 40%;
  transform: rotate(22deg);
  background: rgba(255, 255, 255, 0.42);
}

.session-premium-badge strong,
.session-premium-badge span {
  position: relative;
  z-index: 1;
  color: inherit;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.session-premium-badge strong {
  font-weight: 800;
  letter-spacing: 0.04em;
}

.session-premium-badge span {
  font-weight: 500;
}

.session-box button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 12px;
  color: var(--brand);
  border: 1px solid var(--line);
  background: var(--surface);
  white-space: nowrap;
}

.topbar h1 {
  margin: 4px 0 0;
  font-size: 42px;
  line-height: 1.15;
  overflow-wrap: normal;
  word-break: keep-all;
}

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

.hero-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 26px;
  padding: 24px;
  border-radius: 8px;
  background: linear-gradient(120deg, #ffffff 0%, #eaf3ff 62%, #eefbfd 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.hero-media {
  position: relative;
  min-height: 260px;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--navy);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(16, 24, 40, 0.22), rgba(37, 99, 235, 0.08));
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}

.hero-strip h2,
.section-head h2 {
  margin: 0;
}

.talent-filter {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 8px;
  align-items: stretch;
  min-width: min(780px, 100%);
}

#talents-view .section-head {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
}

#talents-view .section-head > div:first-child {
  display: grid;
  justify-items: start;
}

#talents-view .talent-filter {
  width: 100%;
  min-width: 0;
  margin-top: 2px;
}

.talent-filter.is-collapsed {
  display: none;
}

.filter-toggle {
  min-height: 32px;
  margin-top: 10px;
  padding-inline: 12px;
}

.talent-filter section {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.talent-filter h3 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.talent-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: flex-start;
  max-height: 112px;
  overflow-y: auto;
}

.talent-filter-option {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font-size: 12px;
  font-weight: 500;
}

.talent-filter-option.is-selected {
  border-color: var(--brand);
  color: #ffffff;
  background: var(--brand);
}

.talent-filter-selected {
  grid-column: 1 / -1;
}

.talent-filter-selected-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#talent-filter-reset {
  width: auto;
  min-width: 108px;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1;
}

#project-support-filter-reset {
  width: auto;
  min-width: 108px;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1;
}

.project-support-filter-wrap {
  width: min(1180px, 100%);
  display: grid;
  gap: 10px;
  margin: 0 auto 14px;
}

.project-support-filter-wrap[hidden] {
  display: none;
}

.project-support-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

#project-support-hide-applied,
#project-support-my-skills {
  width: auto;
  min-width: 118px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1;
}

#project-support-hide-applied.is-active,
#project-support-my-skills.is-active {
  border-color: rgba(22, 115, 69, 0.26);
  color: #167345;
  background: #e8f7ef;
}

#project-support-my-skills:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.project-support-selected-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-strip p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.business-footer {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  padding: 18px 0 4px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.business-footer strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.business-footer p {
  margin: 0;
}

.business-footer nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.business-footer button {
  padding: 0;
  border: 0;
  color: var(--brand);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.business-footer button:hover {
  text-decoration: underline;
}

.primary-action {
  padding: 0 18px;
  color: #ffffff;
  background: var(--brand);
  white-space: nowrap;
}

body[data-role="company"] #primary-action,
body[data-role="freelancer"] #primary-action {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 30;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.28);
}

body[data-role="company"] #company-profile-action {
  position: fixed;
  right: 28px;
  bottom: 84px;
  z-index: 30;
  min-height: 44px;
  padding: 0 18px;
  color: var(--brand);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

body:not([data-role="company"]) #company-profile-action {
  display: none;
}

body[data-role="company"] .main,
body[data-role="freelancer"] .main {
  padding-bottom: 146px;
}

.ghost-action {
  padding: 0 14px;
  color: var(--brand);
  border: 1px solid var(--line);
  background: var(--surface);
  white-space: nowrap;
}

.view {
  display: none;
  margin-top: 26px;
}

.view.active {
  display: block;
}

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

.metric-grid.is-admin {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card,
.panel,
.entity-card,
.contract-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric-card {
  padding: 20px;
}

.metric-card span,
.metric-card small {
  display: block;
  color: var(--muted);
}

.metric-card strong {
  display: block;
  margin: 10px 0 4px;
  font-size: 34px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  gap: 16px;
  margin-top: 16px;
}

.panel {
  padding: 22px;
}

.admin-signup-panel {
  margin-top: 16px;
}

.admin-signup-panel[hidden] {
  display: none;
}

.trend-period-tabs {
  display: grid;
  grid-template-columns: repeat(2, 72px);
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f6f9;
}

.trend-period-btn {
  min-height: 34px;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
}

.trend-period-btn.is-active {
  color: #ffffff;
  background: var(--brand);
}

.trend-legend {
  display: flex;
  gap: 18px;
  margin: 14px 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.trend-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trend-legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.trend-legend .is-company,
.trend-bar.is-company {
  background: #1565c0;
}

.trend-legend .is-freelancer,
.trend-bar.is-freelancer {
  background: #16815b;
}

.signup-trend-chart {
  display: grid;
  grid-template-columns: repeat(var(--trend-columns, 8), minmax(64px, 1fr));
  gap: 10px;
  min-height: 248px;
  padding: 18px 8px 0;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.trend-point {
  display: grid;
  grid-template-rows: 190px auto auto;
  gap: 4px;
  min-width: 64px;
  text-align: center;
}

.trend-bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 6px;
  min-height: 0;
}

.trend-bar-wrap {
  display: flex;
  width: 24px;
  height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
}

.trend-bar-wrap > span {
  color: var(--muted);
  font-size: 11px;
}

.trend-bar {
  display: block;
  width: 100%;
  min-height: 4px;
  border-radius: 4px 4px 0 0;
}

.trend-point > strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
}

.trend-point > small,
.trend-tracking-note {
  color: var(--muted);
  font-size: 11px;
}

.trend-tracking-note {
  margin: 12px 0 0;
}

.match-list,
.card-list,
.contract-board,
.trust-list,
.thread-list,
.chat-body {
  display: grid;
  gap: 12px;
}

.review-summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(21, 101, 192, 0.18);
  border-radius: 8px;
  background: #f7fbff;
}

.review-summary-card h3 {
  margin: 6px 0 8px;
  color: var(--ink);
  font-size: 26px;
}

.review-summary-card p,
.company-review-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.review-score-large {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  font-size: 28px;
  font-weight: 800;
}

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

.review-metrics article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.review-metrics span,
.review-section-title span,
.company-review-head span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.review-metrics strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 24px;
}

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

.review-section-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-top: 6px;
}

.review-section-title h3 {
  margin: 0;
  color: var(--ink);
}

.company-review-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

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

.company-review-head strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.review-rating {
  min-width: 48px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff4d9;
  color: #8a5700;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.review-mini-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.review-mini-scores span {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--brand);
  font-size: 12px;
}

.match-row,
.entity-card,
.contract-card,
.thread-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.match-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

.match-row h3,
.entity-card h3,
.contract-card h3 {
  margin: 0 0 8px;
}

.entity-card {
  overflow: hidden;
}

.card-thumb {
  width: calc(100% + 32px);
  height: 180px;
  margin: -16px -16px 16px;
  object-fit: cover;
  display: block;
  background: var(--surface-soft);
}

.meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag,
.status {
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  color: var(--brand);
  background: var(--surface-soft);
}

.status {
  color: #8a5700;
  background: #fff4d9;
}

.project-filter {
  width: min(1180px, 100%);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 auto 14px;
}

.project-filter-btn {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #ffffff;
  font-size: 13px;
}

.project-filter-btn.is-active {
  border-color: rgba(21, 101, 192, 0.34);
  color: var(--brand);
  background: #eff6ff;
}

body[data-role="freelancer"] #project-filter {
  display: none;
}

.project-status-chip {
  border: 1px solid transparent;
}

.project-status-chip.is-open {
  color: #155fb8;
  border-color: rgba(21, 95, 184, 0.18);
  background: #eaf3ff;
}

.project-status-chip.is-progress {
  color: #9a5b00;
  border-color: rgba(180, 103, 0, 0.2);
  background: #fff4d9;
}

.project-status-chip.is-confirming {
  color: #8a5a00;
  border-color: rgba(180, 103, 0, 0.2);
  background: #fff4d6;
}

.project-status-chip.is-completed {
  color: #167345;
  border-color: rgba(22, 115, 69, 0.2);
  background: #e8f7ef;
}

.score {
  min-width: 72px;
  color: var(--trust);
  font-size: 22px;
  font-weight: 900;
  text-align: right;
}

.trust-list div {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.trust-list div:last-child {
  border-bottom: 0;
}

.card-list,
.contract-board {
  width: min(1180px, 100%);
  margin: 16px auto 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-list.sectioned-list {
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.card-list.sectioned-list .recommendation-section + .recommendation-section {
  margin-top: 0;
}

.skill-admin {
  width: min(1180px, 100%);
  margin: 16px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.skill-column {
  display: grid;
  grid-template-rows: auto minmax(280px, 1fr) auto;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.skill-column-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}

.skill-column-head h3 {
  margin: 0;
  font-size: 20px;
}

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

.skill-items {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 280px;
}

.skill-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 8px 8px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.skill-item.is-active {
  border-color: var(--brand);
  background: var(--surface-soft);
}

.skill-item button {
  min-height: 28px;
  border: 0;
  border-radius: 6px;
}

.skill-select-btn {
  min-width: 0;
  color: var(--ink);
  text-align: left;
  background: transparent;
}

.skill-menu-btn {
  width: 34px;
  color: var(--brand);
  background: var(--surface-soft);
}

.skill-action-menu {
  position: absolute;
  top: 38px;
  right: 8px;
  z-index: 15;
  min-width: 112px;
  display: grid;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.14);
}

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

.skill-action-menu button {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  color: var(--ink);
  text-align: left;
  background: transparent;
}

.skill-action-menu button:hover {
  background: var(--surface-soft);
}

.skill-action-menu .is-danger {
  color: #b91c1c;
}

.skill-add-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 8px;
}

.skill-add-form input {
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.skill-add-form button {
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: var(--brand);
}

.skill-admin-note {
  width: min(1180px, 100%);
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 13px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: hidden;
  overscroll-behavior: none;
  background: rgba(15, 23, 42, 0.58);
}

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

html:has(.modal-backdrop:not([hidden])),
body:has(.modal-backdrop:not([hidden])) {
  overflow: hidden;
  overscroll-behavior: none;
}

.talent-card {
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease;
}

.project-card {
  position: relative;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease;
}

.project-company-name {
  display: block;
  margin-bottom: 6px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
}

.company-rating-status {
  color: #805500;
  border-color: #ead7a2;
  background: #fff8e3;
}

.company-rating-status.is-new {
  color: var(--muted);
  border-color: var(--line);
  background: var(--surface-soft);
}

.project-proposal-received {
  color: #14532d;
  border-color: rgba(20, 83, 45, 0.2);
  background: #ecfdf5;
}

.premium-recommend-chip {
  color: #7a4b00;
  border-color: rgba(210, 152, 24, 0.28);
  background: #fff7df;
}

.talent-review-highlight {
  color: #006c5b;
  border-color: rgba(0, 108, 91, 0.2);
  background: #eaf7f4;
}

.recommendation-section {
  display: grid;
  gap: 12px;
}

.recommendation-section + .recommendation-section {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.recommendation-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.recommendation-section-head h3 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
}

.recommendation-section-head > strong {
  color: var(--brand);
  font-size: 14px;
  white-space: nowrap;
}

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

.recommendation-section.is-recommended .recommendation-section-head h3 {
  color: #7a4b00;
}

.project-application-indicator {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(0, 121, 107, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #00796b;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14);
}

.project-application-indicator.is-proposal {
  border-color: rgba(20, 83, 45, 0.24);
  background: rgba(236, 253, 245, 0.96);
  color: #14532d;
}

.project-application-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 121, 107, 0.2);
  border-radius: 8px;
  background: #e9f7f4;
  color: #0f3d38;
}

.project-application-alert span {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
  font-weight: 700;
}

.project-application-alert p {
  margin: 0;
  color: #315b56;
  font-size: 13px;
  line-height: 1.45;
}

.project-application-alert button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  background: #00796b;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.project-application-alert button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.application-message-modal {
  width: min(560px, calc(100vw - 36px));
}

.policy-modal {
  position: relative;
  box-sizing: border-box;
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100dvh - 44px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.policy-modal-body {
  display: grid;
  gap: 16px;
  color: var(--ink);
}

.policy-section {
  display: grid;
  gap: 7px;
}

.policy-section h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
}

.policy-section p,
.policy-section li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.policy-section p,
.policy-section ul {
  margin: 0;
}

.policy-section ul {
  padding-left: 18px;
}

.application-message-body {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow: auto;
}

.application-message-body p {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface-soft);
  line-height: 1.6;
}

.talent-card:hover,
.talent-card:focus-visible,
.project-card:hover,
.project-card:focus-visible {
  border-color: rgba(21, 101, 192, 0.34);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.14);
  transform: translateY(-2px);
  outline: 0;
}

.talent-modal {
  position: relative;
  width: min(880px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(300px, 1fr);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.28);
}

.talent-modal img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  background: var(--surface-soft);
}

.talent-modal-body {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  padding: 26px;
  overflow: auto;
}

.talent-modal-body h2 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.22;
}

.talent-modal-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.talent-modal-title-row h2 {
  min-width: 0;
}

#talent-detail-review-btn {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
}

.talent-detail-reviews {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(210, 152, 24, 0.28);
  border-radius: 8px;
  background: #fffaf0;
}

.talent-detail-reviews[hidden] {
  display: none;
}

.talent-detail-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.talent-detail-review-head strong {
  color: var(--ink);
  font-size: 14px;
}

.talent-detail-review-head span {
  color: #8a5700;
  font-size: 12px;
}

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

.talent-detail-review-grid div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid rgba(210, 152, 24, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.76);
}

.talent-detail-review-grid span {
  color: var(--muted);
  font-size: 12px;
}

.talent-detail-review-grid strong {
  color: #7a4b00;
  font-size: 14px;
}

.detail-review-list {
  display: grid;
  gap: 8px;
}

.detail-review-item {
  display: grid;
  gap: 8px;
  padding: 11px;
  border: 1px solid rgba(210, 152, 24, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
}

.detail-review-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.detail-review-item-head div {
  display: grid;
  gap: 3px;
}

.detail-review-item-head strong {
  color: var(--ink);
  font-size: 13px;
}

.detail-review-item-head span,
.detail-review-item > p {
  color: var(--muted);
  font-size: 12px;
}

.detail-review-item > p {
  line-height: 1.6;
}

.project-company-value-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

#project-company-review-btn {
  min-height: 30px;
  padding: 0 9px;
  font-size: 11px;
}

.project-company-reviews {
  grid-column: 1 / -1;
}

.talent-modal-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.talent-detail-label {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 14px;
}

.talent-proposal-history {
  display: grid;
  gap: 8px;
}

.talent-proposal-list {
  display: grid;
  gap: 8px;
}

.talent-proposal-list article {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.talent-proposal-list strong,
.talent-proposal-list span {
  display: block;
}

.talent-proposal-list strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.talent-proposal-list span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.brand-experience-card,
.brand-experience-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.brand-experience-card {
  margin-top: 2px;
}

.brand-badge {
  display: inline-grid;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 999px;
  color: var(--ink);
  background: #ffffff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.14);
}

.modal-close-btn:hover {
  background: #ffffff;
}

.confirm-modal {
  width: min(420px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.26);
}

.confirm-modal h2 {
  margin: 8px 0 10px;
  font-size: 24px;
}

.confirm-modal p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.modal-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.talent-modal .modal-actions {
  grid-template-columns: 1fr;
}

.project-apply-btn {
  width: 100%;
  margin-top: 4px;
}

.project-apply-btn.is-applied,
#project-detail-apply-btn.is-applied {
  color: #167345;
  border: 1px solid rgba(22, 115, 69, 0.22);
  background: #e8f7ef;
}

.project-apply-btn.is-applied:disabled,
#project-detail-apply-btn.is-applied:disabled {
  opacity: 1;
  cursor: default;
}

.danger-action {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: #dc2626;
}

.rename-field {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.rename-field input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.rename-field select,
.rename-field textarea {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

.rename-field select {
  min-height: 44px;
}

.rename-field textarea {
  resize: vertical;
  line-height: 1.55;
}

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

.proposal-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.project-modal {
  position: relative;
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.28);
}

.project-modal h2 {
  max-width: 720px;
  margin: 8px 0 18px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.3;
}

.project-form {
  display: grid;
  gap: 16px;
}

.premium-upgrade-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(213, 157, 44, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.72), transparent 36%),
    linear-gradient(135deg, #fff8d8 0%, #f3d273 45%, #fbecb2 100%);
  box-shadow: 0 14px 32px rgba(152, 104, 16, 0.12);
}

.premium-upgrade-card div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.premium-kicker {
  color: #7a4d00;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.premium-upgrade-card strong {
  color: #3d2a03;
  font-size: 17px;
  font-weight: 700;
}

.premium-upgrade-card p {
  margin: 0;
  color: #654914;
  font-size: 13px;
  line-height: 1.55;
}

.premium-upgrade-card.is-active {
  border-color: rgba(19, 105, 74, 0.34);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.72), transparent 36%),
    linear-gradient(135deg, #e5fff3 0%, #89dfb9 44%, #cff7e2 100%);
  box-shadow: 0 14px 32px rgba(19, 105, 74, 0.13);
}

.premium-upgrade-card.is-active .premium-kicker,
.premium-upgrade-card.is-active strong,
.premium-upgrade-card.is-active p {
  color: #064e3b;
}

.premium-upgrade-btn {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 15px;
  color: #4a3100;
  border: 1px solid rgba(125, 81, 0, 0.24);
  background: rgba(255, 255, 255, 0.66);
}

.premium-upgrade-card.is-active .premium-upgrade-btn {
  color: #047857;
  border-color: rgba(4, 120, 87, 0.28);
}

.premium-action-group {
  display: grid;
  flex: 0 0 auto;
  gap: 7px;
}

.premium-cancel-btn {
  min-height: 36px;
  padding: 0 14px;
  color: #9f1239;
  border: 1px solid rgba(190, 18, 60, 0.22);
  background: rgba(255, 255, 255, 0.72);
}

.membership-danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  background: #fff7f8;
}

.membership-danger-zone div {
  display: grid;
  gap: 5px;
}

.membership-danger-zone strong {
  color: #9f1239;
  font-size: 14px;
}

.membership-danger-zone p {
  margin: 0;
  color: #7f1d1d;
  font-size: 12px;
  line-height: 1.55;
}

.membership-danger-zone .danger-action {
  flex: 0 0 auto;
  white-space: nowrap;
}

.company-member-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.company-member-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.company-member-head strong {
  color: var(--ink);
  font-size: 14px;
}

.company-member-head span {
  color: var(--muted);
  font-size: 12px;
}

.company-member-list {
  display: grid;
  gap: 8px;
}

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

.company-member-item strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.company-member-item span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.project-detail-summary {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.project-detail-summary[hidden] {
  display: none;
}

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

.project-detail-grid div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.project-detail-grid span {
  color: var(--muted);
  font-size: 12px;
}

.project-detail-grid strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

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

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

.project-status-panel > div {
  display: grid;
  gap: 8px;
  min-width: 0;
}

#project-contract-section[hidden],
#project-modal-eyebrow[hidden] {
  display: none;
}

.project-status-label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.project-status-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.project-confirmation-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.project-confirmation-status span {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.project-confirmation-status span.is-confirmed {
  color: #167345;
  border-color: rgba(22, 115, 69, 0.2);
  background: #e8f7ef;
}

.project-status-final {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: var(--muted);
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.project-confirm-cancel {
  width: auto;
  justify-self: start;
  min-height: 38px;
  padding: 0 14px;
  color: #a33a32;
  border-color: rgba(163, 58, 50, 0.22);
  background: #fff7f6;
}

.project-status-note {
  margin: 2px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(21, 101, 192, 0.14);
  border-radius: 8px;
  color: #33506f;
  background: #f6faff;
  font-size: 12px;
  line-height: 1.55;
}

.project-status-step,
.project-contract-talent {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  letter-spacing: 0;
  cursor: pointer;
}

.project-status-step {
  min-height: 42px;
  padding: 0 10px;
  font-size: 13px;
}

.project-status-step.is-current,
.project-contract-talent.is-selected {
  border-color: rgba(21, 101, 192, 0.42);
  color: var(--brand);
  background: #eff6ff;
}

.project-status-step:disabled {
  color: var(--muted);
  background: #f1f5f9;
  cursor: not-allowed;
}

.project-status-step.is-current:disabled {
  color: var(--brand);
  background: #eff6ff;
  cursor: default;
}

.project-contract-talent-list {
  display: grid;
  gap: 8px;
}

.project-contract-talent {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px;
  min-height: 48px;
  padding: 9px 11px;
  text-align: left;
}

.project-contract-talent.is-locked {
  background: #f8fafc;
}

.project-contract-talent.is-locked.is-selected {
  color: var(--brand);
  background: #eff6ff;
}

.project-contract-talent:hover,
.project-contract-talent:focus-visible {
  border-color: rgba(21, 101, 192, 0.34);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  outline: 0;
}

.project-contract-talent strong {
  font-size: 13px;
  font-weight: 500;
}

.project-contract-talent span {
  color: var(--muted);
  font-size: 12px;
}

.project-review-modal select,
.project-review-modal textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

.project-review-modal {
  box-sizing: border-box;
  width: min(620px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

#project-review-modal {
  align-items: start;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

#project-review-modal > .project-review-modal {
  margin: auto;
  flex: 0 0 auto;
}

.project-review-modal .modal-actions {
  position: sticky;
  bottom: -1px;
  z-index: 2;
  padding-top: 12px;
  padding-bottom: 2px;
  background: #ffffff;
}

.project-review-modal select {
  min-height: 42px;
  padding: 0 12px;
}

.project-review-modal textarea {
  min-height: 108px;
  padding: 12px;
  line-height: 1.55;
  resize: vertical;
}

.project-review-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(21, 101, 192, 0.16);
  border-radius: 8px;
  background: #f6faff;
}

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

.project-review-total strong {
  color: var(--brand);
  font-size: 26px;
}

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

.project-proposal-panel {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.project-proposal-panel[hidden],
.project-status-panel[hidden] {
  display: none !important;
}

body[data-role="freelancer"] .project-proposal-panel {
  display: none !important;
}

.project-proposal-list {
  display: grid;
  gap: 8px;
}

.project-proposal-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  background: #ffffff;
  font: inherit;
  text-align: left;
  letter-spacing: 0;
  cursor: pointer;
}

.project-proposal-item.is-compact {
  cursor: default;
}

.project-proposal-item:hover,
.project-proposal-item:focus-visible {
  border-color: rgba(21, 101, 192, 0.34);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  outline: 0;
}

.project-proposal-item > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.project-proposal-item strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.project-proposal-item span {
  color: var(--muted);
  font-size: 12px;
}

.candidate-mode {
  width: fit-content;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  line-height: 1.2;
}

.candidate-mode.is-proposal {
  color: #155fb8;
  background: #eaf3ff;
}

.candidate-mode.is-application {
  color: #167345;
  background: #e8f7ef;
}

.candidate-mode.is-both {
  color: #6d3fb8;
  background: #f1ecff;
}

.contract-confirm-state {
  width: fit-content;
  padding: 4px 8px;
  color: #8a5a00 !important;
  font-size: 11px !important;
  font-weight: 400;
  white-space: nowrap;
  border-radius: 999px;
  background: #fff4d6;
}

.contract-confirm-state.is-confirmed {
  color: #167345 !important;
  background: #e8f7ef;
}

.compact-action {
  width: auto;
  min-width: 52px;
  min-height: 30px;
  padding: 0 9px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.compact-action[data-application-view-id],
.compact-action[data-proposal-view-id] {
  min-width: 82px;
}

.compact-action:disabled {
  color: var(--muted);
  background: #f1f5f9;
  cursor: default;
}

.project-form.is-detail-mode label,
.project-form.is-detail-mode .form-grid,
.project-form.is-detail-mode .project-skill-columns {
  display: none;
}

.project-form.is-detail-mode .project-skill-picker {
  background: #ffffff;
}

.project-form.is-detail-mode .selected-skill-chip {
  cursor: default;
}

.project-form:not(.is-detail-mode) .project-proposal-panel,
.project-form:not(.is-detail-mode) .project-status-panel {
  display: none;
}

.project-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.project-form input,
.project-form select,
.project-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

.project-form textarea {
  min-height: 108px;
  padding: 12px;
  line-height: 1.55;
  resize: vertical;
}

.project-skill-picker {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

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

.project-skill-columns section {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.project-skill-columns h3 {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.entity-card p,
.contract-card p {
  color: var(--muted);
  line-height: 1.55;
}

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

.messenger.freelancer-management {
  display: block;
}

.messenger.freelancer-management .chat-panel {
  display: none;
}

.messenger.freelancer-management .thread-list {
  padding: 18px;
}

.managed-project-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.managed-project-count {
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

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

.managed-project-count strong {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
}

.managed-project-count small {
  margin-left: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.managed-project-count em {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 8px;
  padding: 0 8px;
  border: 1px solid rgba(20, 83, 45, 0.2);
  border-radius: 999px;
  background: #ecfdf5;
  color: #14532d;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.managed-project-groups {
  display: grid;
  gap: 24px;
}

.managed-project-group + .managed-project-group {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.managed-project-group-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.managed-project-group-head h3,
.managed-project-group-head p {
  margin: 0;
}

.managed-project-group-head h3 {
  font-size: 18px;
}

.managed-project-group-head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.managed-project-group-head > strong {
  color: var(--brand);
  font-size: 14px;
  white-space: nowrap;
}

.managed-project-list {
  display: grid;
  gap: 8px;
}

.managed-project-card {
  position: relative;
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 62px 14px 16px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.managed-project-card:hover {
  border-color: var(--brand);
  background: var(--surface-soft);
}

.managed-project-card strong,
.managed-project-card span {
  display: block;
}

.managed-project-card > div:first-child span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.managed-project-card > div:first-child .managed-project-company {
  margin: 0 0 5px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
}

.managed-project-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.managed-project-meta > span {
  padding: 5px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  border-radius: 999px;
  background: var(--surface-soft);
}

.managed-project-meta .status-open {
  color: #8a5a00;
  background: #fff4d6;
}

.managed-project-meta .status-in_progress {
  color: #1d5fa7;
  background: #e8f2ff;
}

.managed-project-meta .status-progress_confirming,
.managed-project-meta .status-completion_confirming {
  color: #8a5a00;
  background: #fff4d6;
}

.managed-project-meta .status-completed {
  color: #167345;
  background: #e8f7ef;
}

.managed-project-empty {
  margin: 0;
  padding: 18px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.thread-list,
.chat-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.thread-list {
  padding: 12px;
}

.thread-item {
  box-shadow: none;
}

.thread-item.active {
  border-color: var(--brand);
  background: var(--surface-soft);
}

.chat-panel {
  min-height: 520px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.chat-header {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.chat-header strong,
.chat-header span {
  display: block;
}

.chat-header span,
.thread-item span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.chat-body {
  align-content: end;
  padding: 18px;
}

.bubble {
  max-width: 70%;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface-soft);
}

.bubble.mine {
  justify-self: end;
  color: #fff;
  background: var(--brand);
}

.message-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.message-form input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.message-form button {
  padding: 0 18px;
  color: #ffffff;
  background: var(--brand);
}

@media (min-width: 901px) and (max-width: 1360px) {
  .topbar {
    align-items: center;
  }

  .topbar > div:first-child {
    flex-basis: 100%;
    width: 100%;
  }

  .topbar h1 {
    font-size: 32px;
  }

  .app-language-switch {
    flex: 0 0 auto;
  }

  .session-box {
    flex: 1 1 420px;
    min-width: 0;
  }

  #session-name {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
  }
}

@media (max-width: 900px) {
  .auth-screen {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
    padding: 18px;
  }

  .auth-brand img {
    width: 96px;
    margin-bottom: 12px;
  }

  .auth-brand h1 {
    margin: 8px 0 10px;
  }

  .auth-brand p {
    font-size: 15px;
    line-height: 1.55;
  }

  .login-card {
    max-height: none;
    overflow: visible;
    padding: 18px;
  }

  .social-login {
    grid-template-columns: 1fr;
  }

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

  .managed-project-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .managed-project-meta {
    justify-content: flex-start;
  }

  .field-action,
  .form-grid,
  .existing-company-grid,
  .freelancer-skill-columns,
  .talent-filter,
  .project-skill-columns,
  .company-extra,
  .review-summary-card,
  .review-metrics {
    grid-template-columns: 1fr;
  }

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

  .review-score-large {
    width: 72px;
    height: 72px;
    font-size: 24px;
  }

  .review-section-title,
  .company-review-head {
    align-items: start;
    flex-direction: column;
  }

  #signup-form .login-submit {
    position: static;
    margin: 0;
    border-radius: 8px;
  }

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

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 14px;
    gap: 14px;
  }

  .brand {
    grid-template-columns: 86px 1fr;
  }

  .brand-logo {
    width: 86px;
  }

  .nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-item {
    white-space: nowrap;
  }

  .sidebar-panel {
    display: none;
  }

  .main {
    padding: 18px;
  }

  .topbar,
  .hero-strip,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    gap: 14px;
  }

  .topbar > div:first-child {
    flex: none;
    width: 100%;
  }

  .topbar h1 {
    font-size: 28px;
  }

  .hero-strip {
    display: flex;
  }

  .hero-media {
    min-height: 210px;
  }

  .hero-media img {
    min-height: 210px;
  }

  .session-box {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  #session-name {
    align-items: flex-start;
    flex-direction: column;
    white-space: normal;
  }

  .session-premium-badge {
    max-width: 100%;
  }

  .talent-modal {
    overflow: auto;
  }

  .primary-action,
  .ghost-action {
    width: 100%;
  }

  body[data-role="company"] #primary-action,
  body[data-role="freelancer"] #primary-action {
    right: 16px;
    bottom: 16px;
    width: auto;
    max-width: calc(100vw - 32px);
  }

  body[data-role="company"] #company-profile-action {
    right: 16px;
    bottom: 72px;
    width: auto;
    max-width: calc(100vw - 32px);
  }

  .metric-grid,
  .content-grid,
  .card-list,
  .contract-board,
  .skill-admin,
  .messenger {
    grid-template-columns: 1fr;
  }

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

  .admin-signup-panel .section-head {
    align-items: flex-start;
  }

  .signup-trend-chart {
    grid-template-columns: repeat(var(--trend-columns, 8), minmax(64px, 1fr));
  }

  .talent-modal {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .talent-modal img {
    min-height: 220px;
    max-height: 280px;
  }

  .talent-modal-body {
    padding: 20px;
  }

  .talent-modal-body h2 {
    font-size: 23px;
  }

  .talent-modal-title-row {
    align-items: stretch;
    flex-direction: column;
  }

  #talent-detail-review-btn {
    width: 100%;
  }

  .talent-detail-review-grid {
    grid-template-columns: 1fr;
  }

  .project-modal {
    padding: 20px;
  }

  .project-modal h2 {
    font-size: 21px;
  }

  .premium-upgrade-card {
    align-items: stretch;
    flex-direction: column;
  }

  .premium-upgrade-btn {
    width: 100%;
  }

  .premium-action-group,
  .premium-cancel-btn {
    width: 100%;
  }

  .membership-danger-zone {
    align-items: stretch;
    flex-direction: column;
  }

  .membership-danger-zone .danger-action {
    width: 100%;
  }

  .project-detail-grid {
    grid-template-columns: 1fr;
  }

  .project-status-panel {
    grid-template-columns: 1fr;
  }

  .project-review-score-grid {
    grid-template-columns: 1fr;
  }

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

  .score {
    text-align: left;
  }

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

  .bubble {
    max-width: 86%;
  }
}
