:root {
  --color-primary: #007BFF;
  --color-secondary: #6C757D;
  --color-highlight: #FFC107;
  --color-emergency: #DC3545;
  --color-heading: #0f2747;
  --color-border: #dbe5f4;
  --color-border-soft: #e5e7eb;
  --color-text-body: #374151;
  --color-text-muted: #6b7280;
  --color-surface: #ffffff;
  --color-surface-soft: #f9fbff;
  --radius-md: 10px;
  --radius-lg: 12px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --text-sm: 13px;
  --text-md: 14px;
  --text-lg: 16px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  background: var(--color-surface);
  color: #111827;
}
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #0f2747;
  color: #fff;
}
.logo { font-weight: 800; letter-spacing: 0.02em; }
.common-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 56px;
  padding: 6px 12px;
  border-bottom: 1px solid #e5e7eb;
  background: #0f2747;
  display: grid;
  grid-template-columns: minmax(64px, auto) 1fr minmax(120px, auto);
  align-items: center;
  gap: 6px;
}
.common-header-right {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  max-width: min(72vw, 420px);
}
.common-header .header-user-info {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  max-width: 42vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.common-header .header-logout-btn {
  margin-left: 2px;
}
.common-header .header-login-btn {
  font-size: 12px;
}
.common-logo {
  justify-self: center;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.common-nav-btn {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}
.common-nav-home {
  justify-self: end;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 60px;
  border-bottom: 1px solid #dbe5f4;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.site-header-auth {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-left: auto;
}
.site-header .header-user-info,
.site-header-user-text {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  max-width: 46vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-header-auth .site-login-link.site-header-logout {
  margin-left: 0;
}
.site-logo {
  color: #0f2747;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.site-login-link {
  color: #1e3a8a;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
}
.site-nav-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
}
.site-nav-group--platform {
  padding-right: 4px;
}
.site-nav-sep {
  display: inline-block;
  width: 1px;
  height: 18px;
  background: #c7d7f0;
  align-self: center;
}
.site-nav a {
  color: #1e3a8a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.site-nav a.site-nav-link--demo {
  font-weight: 600;
  color: #5b6b88;
  font-size: 13px;
}
.site-nav a.site-nav-link--demo:hover {
  color: #1e3a8a;
}
.hamburger-btn {
  min-height: 36px;
  min-width: 36px;
  border: 1px solid #dbe5f4;
  border-radius: 8px;
  background: #fff;
  color: #1e3a8a;
  font-size: 18px;
  font-weight: 800;
}
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 44;
}
.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(300px, 85vw);
  height: 100vh;
  background: #fff;
  border-left: 1px solid #dbe5f4;
  z-index: 45;
  padding: 14px;
}
.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-menu-nav {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}
.mobile-menu-nav a {
  min-height: 42px;
  border: 1px solid #dbe5f4;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #1e3a8a;
  font-weight: 700;
  background: #f8fbff;
}
.mobile-menu-nav a.mobile-menu-link--demo {
  font-weight: 600;
  font-size: 13px;
  color: #64748b;
  border-style: dashed;
  background: #fafbff;
}
.mobile-only { display: none; }
.web-only { display: flex; }
.nav { display: flex; gap: 12px; flex-wrap: wrap; }
.nav a { color: #e5edf8; text-decoration: none; font-size: 14px; }
.main { max-width: 980px; margin: 0 auto; padding: var(--space-lg); }
.hero {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 18px;
  background: linear-gradient(160deg, #f8fbff 0%, #ffffff 100%);
}
.eyebrow { margin: 0; color: #1e3a66; font-size: 12px; font-weight: 700; }
h1 { margin: 8px 0 0; color: var(--color-heading); line-height: 1.2; }
.sub { margin: var(--space-sm) 0 0; color: var(--color-text-body); }
.section-sub {
  margin-top: 4px;
  margin-bottom: var(--space-md);
  color: var(--color-text-body);
  font-size: var(--text-md);
}
.hero-actions { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.quick-category {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.quick-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #f3c78a;
  background: #fff7ed;
  color: #9a3412;
  border-radius: 999px;
  padding: 7px 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 6px;
  min-height: 36px;
  padding: 6px 10px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease, background-color 0.16s ease;
  border: 1px solid transparent;
}
.cta:hover,
.util-btn:hover,
.util-btn-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 39, 71, 0.15);
  filter: saturate(1.05);
}
.cta:focus-visible,
.util-btn:focus-visible,
.util-btn-link:focus-visible,
.case-option-btn:focus-visible,
.quick-pill:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}
.cta-role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 800;
}
.cta-top { background: #e54b2a; color: #fff; }
.cta.primary { background: var(--color-primary); color: #fff; }
.cta.secondary { background: var(--color-secondary); color: #fff; }
.cta.emergency { background: var(--color-emergency); color: #fff; }
.util-btn,
.util-btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  min-height: 36px;
  padding: 6px 10px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  border: 1px solid #d1d5db;
  background: var(--color-surface);
  color: var(--color-text-body);
  cursor: pointer;
}
.cta-xl {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 13px;
}
.hero-actions-strong .cta {
  flex: 1 1 220px;
}
.cta-pulse {
  animation: none;
  box-shadow: 0 8px 18px rgba(229, 75, 42, 0.2);
}
@keyframes ctaPulse {
  0% { box-shadow: 0 0 0 0 rgba(229, 75, 42, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(229, 75, 42, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 75, 42, 0); }
}
.cta.primary .cta-role {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.cta.secondary .cta-role {
  background: rgba(17, 24, 39, 0.12);
  color: #111827;
}
.trust-points {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #1f2937;
  font-size: 14px;
}
.trust-points li {
  margin-bottom: 4px;
}
.panel { margin-top: var(--space-lg); }
.panel h2 { margin: 0 0 var(--space-sm); color: var(--color-heading); font-size: 20px; }
.panel-card {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}
.ad-slider-panel {
  padding: 10px;
  border-color: #cfe0fb;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}
.ad-slider-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.ad-slider-head h2 {
  margin: 0;
  font-size: 18px;
}
.ad-slider-note {
  margin: 0;
  font-size: 12px;
  color: #475569;
}
.ad-slider-wrap {
  margin-top: 8px;
  position: relative;
  width: 100%;
  border-radius: 12px;
  border: 1px solid #dbe7fb;
  background: linear-gradient(120deg, #eff6ff 0%, #f8fbff 100%);
  overflow: hidden;
}
.ad-slider-stage-hit {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
  position: relative;
}
.ad-slider-stage-hit:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
.ad-slider-stage {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
  min-height: 260px;
}
.ad-copy {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.ad-copy-specialty {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: #4f6ef7;
  letter-spacing: 0.02em;
}
.ad-copy-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  color: #0f2859;
}
.ad-copy-lawyer-name {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}
.ad-copy-desc {
  margin: 0;
  font-size: 18px;
  color: #334155;
}
.ad-copy-lawyer {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1d4ed8;
}
.ad-copy-sub {
  margin: -2px 0 0;
  font-size: 16px;
  color: #1f2937;
}
.ad-copy-notice {
  margin: 2px 0 0;
  font-size: 13px;
  color: #64748b;
}
.ad-visual {
  min-height: 260px;
  background: #dbeafe;
}
.ad-slide-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ad-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.45);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}
.ad-nav:hover {
  background: rgba(15, 23, 42, 0.62);
}
.ad-prev { left: 10px; }
.ad-next { right: 10px; }
.ad-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.28);
  z-index: 3;
}
.ad-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  padding: 0;
}
.ad-dot.active {
  width: 20px;
  background: #fff;
}

.home-ad-lawyer-modal .home-ad-lawyer-modal__body {
  margin: 10px 0 14px;
  text-align: left;
}
.home-ad-lawyer-modal__strong {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
  color: #0f2747;
}
.home-ad-lawyer-modal__meta {
  margin: 4px 0;
  font-size: 14px;
  color: #374151;
  line-height: 1.45;
}
.home-ad-lawyer-modal__badge {
  margin: 8px 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: #1d4ed8;
}
.home-ad-lawyer-modal__copy {
  margin: 8px 0 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}
.home-ad-lawyer-modal .home-ad-lawyer-modal__actions {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.home-ad-lawyer-modal .home-ad-lawyer-modal__actions .cta {
  width: 100%;
  justify-content: center;
}

.trustnow-fixed-panel {
  padding: 10px;
  border-color: #cfe0fb;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}
.trustnow-fixed-link {
  display: block;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #dbe7fb;
  background: #0f2859;
}
.trustnow-fixed-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 4;
  object-fit: cover;
}
.trustnow-fixed-caption {
  margin: 8px 2px 0;
  font-size: 12px;
  color: #1e3a8a;
}
.consult-panel {
  border: 1px solid #dbe5f4;
  background: #f9fbff;
}
.consult-lead {
  margin: 0 0 10px;
  color: #374151;
  font-size: 14px;
}
.consult-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.consult-connect-panel {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
}
.consult-connect-state {
  margin: 0;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  background: #dcfce7;
  color: #166534;
  font-size: 12px;
  font-weight: 800;
}
.consult-connect-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.consult-record-status {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #eff6ff;
}
.consult-record-status h3 {
  margin: 2px 0 10px;
  font-size: 16px;
  color: #1e3a8a;
}
.consult-record-status dl {
  display: grid;
  gap: 8px;
  margin: 0;
}
.consult-record-status dl div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
}
.consult-record-status dt {
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}
.consult-record-status dd {
  margin: 0;
  color: #0f172a;
  font-size: 13px;
}
.field { margin-bottom: var(--space-md); }
.strong-proof {
  margin: 8px 0 10px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 13px;
  font-weight: 700;
}
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-md);
  padding: 11px 12px;
  font: inherit;
  font-size: 15px;
  background: var(--color-surface);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.25);
  outline: none;
}
.field textarea { resize: vertical; min-height: 120px; }
.error {
  margin: 6px 0 0;
  min-height: 18px;
  color: #d92d20;
  font-size: 13px;
}
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); }
.card {
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  background: var(--color-surface);
  box-shadow: 0 2px 10px rgba(15, 39, 71, 0.06);
}
.card.online { border-color: #bbf7d0; background: #f6fffa; }
.card.busy { border-color: #fde68a; background: #fffbeb; }
.card.offline { border-color: #d1d5db; background: #f9fafb; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.badge { border-radius: 999px; padding: 4px 9px; font-size: 12px; font-weight: 800; }
.badge.online { background: #dcfce7; color: #166534; }
.badge.busy { background: #fef3c7; color: #92400e; }
.badge.offline { background: #e5e7eb; color: #374151; }
.badge.online-strong {
  background: #16a34a;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
}
.meta { color: #4b5563; font-size: 13px; }
.card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 8px;
}
.mobile-sticky { display: none; }
.auth-status-card {
  border: 1px solid #dbe5f4;
  background: #f8fbff;
  border-radius: 12px;
  padding: 12px;
}
.auth-status-line {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #0f2747;
}
.auth-status-desc {
  margin: 8px 0 0;
  font-size: 13px;
  color: #374151;
}
.auth-status-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.auth-mini-badge {
  margin: 0 0 8px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid #dbe5f4;
  border-radius: 999px;
  padding: 0 10px;
  background: #f8fbff;
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 800;
}
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100vw;
  min-height: 100%;
  min-height: 100dvh;
  background: rgba(15, 23, 42, 0.5);
  /* 백드롭 < 상담 패널 < 로그인·간편인증 패널 */
  z-index: 19990;
  pointer-events: auto;
  cursor: pointer;
}

/* 상담·기타 모달 오픈 시 본문 스크롤 잠금 */
html.consult-modal-scroll-lock,
body.consult-modal-scroll-lock,
html.modal-open,
body.modal-open {
  overflow: hidden !important;
  touch-action: none;
  overscroll-behavior: none;
}
.auth-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100% - 24px));
  border: 1px solid #dbe5f4;
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  z-index: 20000;
  pointer-events: auto;
  cursor: default;
}

/* 로그인·간편인증·광고 모달 > 상담 모달 > 백드롭 */
#auth-entry-modal,
#light-auth-modal,
#strong-auth-modal,
#quick-start-modal,
#trust-doc-entry-modal,
#home-ad-lawyer-modal {
  z-index: 20150;
}

.auth-modal button,
.auth-modal .cta,
.auth-modal a.cta {
  pointer-events: auto;
}
.auth-modal h3 {
  margin: 0;
  color: #0f2747;
}
.auth-modal-sub {
  margin: 8px 0 12px;
  font-size: 13px;
  color: #4b5563;
}
.auth-modal-context {
  margin: 8px 0 12px;
  font-size: 13px;
  color: #1f2937;
  font-weight: 700;
}
.auth-modal-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.auth-modal-msg {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 700;
}
.quick-start-modal .auth-modal-sub {
  margin-bottom: 6px;
}
.quick-start-trust-note {
  margin: 0 0 10px;
  padding: 8px 10px;
  border: 1px solid #dbe5f4;
  border-radius: 8px;
  background: #f8fbff;
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 700;
}
.quick-start-choice-wrap {
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
}
.quick-start-choice {
  flex: 1;
  min-height: 38px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.quick-start-choice.active {
  border-color: #fdba74;
  background: #fff7ed;
  color: #9a3412;
}

#trust-docs-entry .trust-doc-1st-note {
  color: #6b7280;
  font-size: 0.95em;
}

.doc-type-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 20px;
}
.doc-type-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
}
.doc-type-chip--active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1e3a8a;
}
.doc-type-chip--soon {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.doc-location-line {
  margin: 4px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}
.doc-list-quick {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.doc-list-quick li {
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
}

.category-panel {
  border: 1px solid #dbe5f4;
  background: #fff;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.category-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  color: #0f2747;
  background: #f3f7ff;
  border: 1px solid #c9daf6;
}

/* 빠른 의뢰 시작 UI: quick-filter.css 참고 */
.case-panel {
  border: 1px solid var(--color-border);
  background: var(--color-surface-soft);
}
.case-lead {
  margin: 0 0 12px;
  color: #374151;
  font-size: 14px;
}
.case-form {
  display: grid;
  gap: 2px;
}
.step-indicator {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}
.case-step-back-wrap {
  margin-bottom: 8px;
}
.step-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}
.step-dot.active {
  border-color: #f08a24;
  background: #fff7ed;
  color: #9a3412;
}
.step-dot.done {
  border-color: #86efac;
  background: #ecfdf3;
  color: #166534;
}
.case-step-current {
  margin: 0 0 8px;
  color: #4b5563;
  font-size: var(--text-sm);
  font-weight: 700;
}
.step-panel {
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: var(--space-md);
}
.case-option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.case-option-btn {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #1f2937;
  min-height: 46px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.case-option-btn.active {
  border-color: #f08a24;
  background: #fff7ed;
  color: #9a3412;
}
.step-title {
  margin: 0 0 10px;
  color: #0f2747;
  font-size: 15px;
  font-weight: 800;
}
.step-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.emergency-callout {
  margin: 0 0 12px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 14px;
  font-weight: 700;
}
.emergency-callout a {
  color: #b91c1c;
}
.case-submit-wrap {
  margin-top: 6px;
}
.case-submit {
  width: 100%;
  border: none;
  cursor: pointer;
  font-size: 16px;
}
.case-submit-note {
  margin: 8px 0 0;
  color: #4b5563;
  font-size: 13px;
}
.case-auth-gate {
  margin-top: 10px;
  border: 1px solid #dbe5f4;
  border-radius: 10px;
  background: #f8fbff;
  padding: 10px;
}
.case-auth-gate-title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #0f2747;
}
.case-auth-gate-desc {
  margin: 6px 0 0;
  font-size: 13px;
  color: #374151;
}
.case-auth-gate-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.case-auth-gate-status {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: #1e3a8a;
}
.docs-strong-auth-gate {
  margin-bottom: 10px;
  border: 1px solid #dbe5f4;
  border-radius: 10px;
  background: #f8fbff;
  padding: 10px;
}
.docs-strong-auth-title {
  margin: 0;
  color: #0f2747;
  font-size: 13px;
  font-weight: 800;
}
.docs-strong-auth-desc {
  margin: 6px 0 0;
  color: #374151;
  font-size: 13px;
}
.docs-strong-auth-steps {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #1f2937;
  font-size: 12px;
}
.docs-strong-auth-steps li {
  margin-bottom: 3px;
}
.docs-strong-auth-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.docs-strong-auth-status {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 800;
  color: #1e3a8a;
}
.case-result {
  margin-top: 12px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  border-radius: 10px;
  padding: 12px;
}
.case-result-title {
  margin: 0;
  color: #166534;
  font-size: 16px;
  font-weight: 800;
}
.case-result-sub {
  margin: 6px 0 10px;
  color: #065f46;
  font-size: 14px;
}
.recommendation-panel {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}
.recommendation-head h2 {
  margin-bottom: 4px;
}
.recommendation-sub {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
}
.recommendation-preview-points {
  margin-top: 10px;
  display: grid;
  gap: 4px;
  color: #1f2937;
  font-size: 13px;
  font-weight: 700;
}
.home-more-panel {
  border: 1px dashed #d1d5db;
  background: #fff;
}
.home-more-btn {
  width: 100%;
  border: none;
  cursor: pointer;
}
.reason-top3 {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}
.reason-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}
.reason-pill.level-high {
  border-color: #86efac;
  background: #ecfdf3;
  color: #166534;
}
.reason-pill.level-mid {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}
.reason-pill.level-low {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.trust-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}
.priority-call-box {
  margin-top: 12px;
  border: 1px solid #fde68a;
  background: #fffbeb;
  border-radius: 12px;
  padding: 12px;
}
.priority-call-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #92400e;
}
.priority-call-text {
  margin: 6px 0 10px;
  color: #7c2d12;
  font-size: 14px;
}
.priority-call-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.recommendation-block {
  margin-top: 14px;
}
.recommendation-block h3 {
  margin: 0 0 8px;
  color: #0f2747;
  font-size: 17px;
}
.ad-block {
  border-top: 1px dashed #d1d5db;
  padding-top: 12px;
}
.ad-note {
  margin: 0 0 8px;
  color: #6b7280;
  font-size: 13px;
}
.recommendation-card {
  border-color: #dbe5f4;
  padding: 10px;
}
.recommendation-card.ad-recommendation-card {
  border-color: #fed7aa;
  background: #fff7ed;
}
.recommendation-short {
  margin: 6px 0 8px;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
}
.recommendation-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.recommendation-lawyer-name {
  margin: 0;
  font-size: 16px;
  color: #111827;
}
.recommendation-meta {
  margin: 4px 0 8px;
  color: #6b7280;
  font-size: 13px;
}
.reason-list {
  margin: 0;
  padding-left: 18px;
  color: #1f2937;
  font-size: 13px;
}
.trust-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mini-chip {
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  padding: 4px 8px;
  font-size: 12px;
  color: #374151;
}
.ad-badge {
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
}

.lawyer-card-top {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: start;
}

.lawyer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e9f2ff;
  color: #1f3a5f;
  font-size: 16px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lawyer-main {
  min-width: 0;
}

.lawyer-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.recommend-tag {
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  background: #fff6cf;
  color: #7a5a00;
  border: 1px solid #ffe082;
}

.action-inline-group {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.action-btn {
  min-height: 36px;
  border-radius: 6px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.action-btn.primary {
  background: #007BFF;
  border-color: #007BFF;
  color: #fff;
}

.action-btn.secondary {
  background: #fff;
  border-color: #cfd4da;
  color: #495057;
}

.action-btn.highlight {
  background: #FFC107;
  border-color: #FFC107;
  color: #3a2d00;
}

.action-btn.emergency {
  background: #DC3545;
  border-color: #DC3545;
  color: #fff;
}

.action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 39, 71, 0.14);
}

.action-btn:active {
  transform: translateY(0);
  opacity: 0.92;
}
.docs-panel {
  border: 1px solid var(--color-border);
  background: var(--color-surface-soft);
}
.docs-lead {
  margin: 0 0 12px;
  color: #374151;
  font-size: 14px;
}
.docs-form {
  display: grid;
  gap: 2px;
}
.docs-summary-panel {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}
.docs-summary-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #f8fbff;
  padding: var(--space-md);
  margin: var(--space-sm) 0;
}
.docs-summary-card p {
  margin: 4px 0;
  color: #1f2937;
  font-size: 13px;
  font-weight: 700;
}
.docs-value {
  margin: 0 0 10px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  border-radius: var(--radius-md);
  padding: 10px;
  font-size: var(--text-sm);
  font-weight: 800;
}
.docs-last-status {
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  padding: 8px 10px;
  background: #fff;
  margin-bottom: 10px;
}
.docs-last-status p {
  margin: 4px 0;
  font-size: var(--text-sm);
  color: #374151;
}
.docs-summary-history {
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  background: #fff;
  padding: 10px;
  margin-bottom: 10px;
}
.docs-history-title {
  margin: 0 0 8px;
  color: #111827;
  font-size: var(--text-sm);
  font-weight: 800;
}
.docs-history-list {
  margin: 0;
  padding-left: 18px;
  color: #374151;
  font-size: var(--text-sm);
}
.docs-history-list li {
  margin-bottom: 4px;
}
/* 홈 · 신뢰 문서 상업형 카드 */
.home-trust-product-section {
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 3vw, 1.75rem);
  background: linear-gradient(180deg, #fafbfc 0%, #ffffff 42%, #f8fafc 100%);
  border: 1px solid #e8ecf1;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
}
.home-trust-product-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 1.75rem;
}
.home-trust-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}
.home-trust-main-copy {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3.8vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.home-trust-lead {
  margin: 0 0 1rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: #475569;
}
.home-trust-lead strong {
  color: #1e293b;
  font-weight: 700;
}
.home-trust-pricing-note {
  display: inline-block;
  margin: 0;
  padding: 0.35rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.home-trust-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.25rem;
  max-width: 1120px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}
@media (max-width: 820px) {
  .home-trust-card-grid {
    grid-template-columns: 1fr;
  }
}
.home-trust-service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}
.home-trust-service-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.09);
  transform: translateY(-3px);
}
.home-trust-card-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f1f5f9;
}
.home-trust-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-trust-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.15rem 1.2rem 1.25rem;
  gap: 0.5rem;
}
.home-trust-card-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.home-trust-card-value {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #1e293b;
  font-weight: 600;
}
.home-trust-card-value strong {
  color: #0f172a;
  font-weight: 800;
}
.home-trust-card-desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #64748b;
}
.home-trust-card-bullets {
  margin: 0.35rem 0 0.65rem;
  padding-left: 1.15rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #475569;
  flex: 1;
}
.home-trust-card-bullets li {
  margin-bottom: 0.35rem;
}
.home-trust-card-bullets li::marker {
  color: #94a3b8;
}
.home-trust-card-cta {
  align-self: stretch;
  text-align: center;
  margin-top: auto;
  padding: 0.65rem 1rem;
  font-weight: 700;
  border-radius: 10px;
}
.home-trust-docs-entry .home-trust-docs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  margin-top: 0.75rem;
}
.home-doc-summary-card {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
  max-width: 28rem;
}
.home-doc-summary-title {
  font-weight: 700;
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}
.home-doc-summary-list {
  margin: 0 0 0.75rem;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}
.home-doc-summary-cta {
  display: inline-block;
  margin-top: 0.25rem;
}
.my-docs-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-top: 0.75rem;
}

.safe-record-panel {
  border: 1px solid var(--color-border);
  background: #fff;
}
.safe-record-progress {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.safe-stage {
  min-height: 34px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #f9fafb;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 8px;
}
.safe-stage.active {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1e3a8a;
}
.safe-record-current {
  margin: 0 0 10px;
  font-size: 13px;
  color: #374151;
}
.safe-record-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.safe-record-links .util-btn-link {
  width: 100%;
  min-height: 40px;
}
.safe-record-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.safe-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fcfdff;
  padding: 12px;
  margin-top: 10px;
}
.safe-card h3 {
  margin: 0 0 8px;
  color: #0f2747;
  font-size: 15px;
}
.safe-business-grid,
.safe-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.safe-business-item,
.safe-kpi-grid p {
  margin: 0;
  border: 1px solid #dbe5f4;
  border-radius: 10px;
  background: #f8fbff;
  padding: 10px;
}
.safe-business-item .k,
.safe-kpi-grid p span {
  margin: 0;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}
.safe-business-item strong,
.safe-kpi-grid p strong {
  display: block;
  margin-top: 4px;
  color: #111827;
  font-size: 14px;
}
.safe-business-item p {
  margin: 6px 0 0;
  color: #374151;
  font-size: 13px;
}
.safe-form {
  display: grid;
  gap: 2px;
}
.safe-inline-actions {
  display: grid;
  gap: 8px;
}
.safe-inline-actions .util-btn,
.safe-inline-actions .cta {
  width: 100%;
}
.safe-timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.safe-summary {
  margin: 8px 0;
  font-size: 13px;
  color: #1f2937;
  font-weight: 700;
}
.safe-current-state {
  margin: 8px 0 0;
  font-size: 13px;
  color: #374151;
}
.safe-state-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  border: 1px solid #93c5fd;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 800;
  padding: 0 10px;
}
.safe-participant-list,
.safe-timeline-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #1f2937;
  font-size: 13px;
}
.safe-timeline-card {
  background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
}
.safe-timeline-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 8px;
}
.safe-timeline-item {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}
.safe-timeline-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 800;
  padding: 0 9px;
}
.safe-timeline-main {
  margin: 8px 0 0;
  color: #1f2937;
  font-size: 13px;
  font-weight: 700;
}
.safe-timeline-meta {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 12px;
}
.safe-latest-content {
  margin: 8px 0 0;
  border: 1px solid #dbe5f4;
  border-radius: 8px;
  background: #f8fbff;
  padding: 8px 10px;
  font-size: 13px;
  color: #1e3a8a;
  font-weight: 700;
}
.safe-feedback {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 800;
}

.loan-start-main {
  max-width: 760px;
}
.loan-flow-mobile {
  margin: 10px 0 0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.loan-flow-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
  padding: 0 10px;
  white-space: nowrap;
}
.loan-flow-chip.active {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1e3a8a;
}
.loan-start-panel {
  margin-top: 14px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: linear-gradient(160deg, #f8fbff 0%, #ffffff 100%);
  padding: 20px;
}
.loan-start-title {
  margin: 6px 0 10px;
  color: #0f2747;
  line-height: 1.2;
}
.loan-start-desc {
  margin: 0;
  color: #374151;
  font-size: 15px;
  line-height: 1.55;
}
.loan-start-guide {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #1f2937;
  font-size: 14px;
}
.loan-start-guide li {
  margin-bottom: 4px;
}
.loan-start-actions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.loan-start-actions .util-btn {
  width: 100%;
}
.loan-login-gate {
  padding: 16px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fff7ed;
}
.loan-author-banner {
  border: 1px solid #dbeafe;
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.loan-author-line {
  margin: 0 0 6px;
  font-size: 14px;
  color: #0f2747;
}
.loan-author-line:last-child {
  margin-bottom: 0;
}
.loan-readonly-input {
  background: #f3f4f6 !important;
  color: #374151 !important;
  cursor: not-allowed;
}
.loan-cp-role-field .loan-static-label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  color: #374151;
  margin-bottom: 4px;
}
.loan-static-value {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #0f2747;
}
.loan-addr-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.loan-addr-row .loan-zip {
  flex: 0 0 100px;
}
.loan-interest-field .loan-interest-label-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 8px;
}
.loan-interest-field .loan-interest-label-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
}
.loan-draft-main {
  max-width: 820px;
}
.loan-draft-panel {
  margin-top: 14px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  padding: 16px;
}
.loan-draft-title {
  margin: 6px 0 8px;
  color: #0f2747;
  line-height: 1.2;
}
.loan-draft-desc {
  margin: 0;
  color: #374151;
  font-size: 14px;
}
.loan-draft-form {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}
.loan-draft-block {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fcfdff;
  padding: 12px;
}
.loan-draft-block h2 {
  margin: 0 0 8px;
  color: #0f2747;
  font-size: 16px;
}
.loan-step2-dl {
  margin: 0;
  display: grid;
  gap: 4px;
}
.loan-step2-dl dt {
  font-weight: 700;
  color: #374151;
  font-size: 13px;
  margin-top: 10px;
}
.loan-step2-dl dt:first-of-type {
  margin-top: 0;
}
.loan-step2-dl dd {
  margin: 0;
  color: #0f2747;
  font-size: 15px;
}
.loan-draft-fold > summary {
  cursor: pointer;
  list-style: none;
  color: #1f2937;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 10px;
}
.loan-draft-fold > summary::-webkit-details-marker {
  display: none;
}
.loan-draft-fold[open] > summary {
  color: #9a3412;
}
.loan-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.loan-help {
  margin: 6px 0 0;
  color: #4b5563;
  font-size: 12px;
}
.loan-draft-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.loan-draft-actions .util-btn,
.loan-draft-actions .util-btn-link,
.loan-draft-actions .cta {
  width: 100%;
}
.loan-share-main {
  max-width: 760px;
}
.loan-share-panel {
  margin-top: 14px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  padding: 16px;
}
.loan-share-title {
  margin: 6px 0 8px;
  color: #0f2747;
}
.loan-share-desc {
  margin: 0;
  color: #374151;
  font-size: 14px;
  line-height: 1.55;
}
.loan-share-status-box {
  margin-top: 10px;
  border: 1px solid #dbe5f4;
  border-radius: 10px;
  background: #f8fbff;
  padding: 10px;
}
.loan-share-doc-id,
.loan-share-current {
  margin: 0;
  font-size: 14px;
  color: #1f2937;
  font-weight: 700;
}
.loan-share-current {
  margin-top: 6px;
}
.loan-share-block {
  margin-top: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fcfdff;
  padding: 12px;
}
.loan-share-block h2 {
  margin: 0 0 8px;
  color: #0f2747;
  font-size: 16px;
}
.loan-share-help {
  margin: 0 0 8px;
  color: #4b5563;
  font-size: 13px;
}
.loan-share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.loan-share-actions .util-btn,
.loan-share-actions .util-btn-link,
.loan-share-actions .cta {
  width: 100%;
}
.loan-inbox-main {
  max-width: 820px;
}
.loan-inbox-panel {
  margin-top: 14px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  padding: 16px;
}
.loan-inbox-title {
  margin: 6px 0 8px;
  color: #0f2747;
}
.loan-inbox-desc {
  margin: 0;
  color: #374151;
  font-size: 14px;
}
.loan-inbox-filter {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}
.loan-inbox-filter .util-btn {
  width: 100%;
}
.loan-inbox-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.loan-inbox-empty {
  border: 1px dashed #d1d5db;
  border-radius: 10px;
  background: #fafafa;
  color: #6b7280;
  font-size: 13px;
  padding: 12px;
}
.loan-inbox-item {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fcfdff;
  padding: 12px;
}
.loan-inbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.loan-inbox-head-titles {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.loan-inbox-item p {
  margin: 4px 0;
  color: #1f2937;
  font-size: 13px;
}
.loan-inbox-item p span {
  color: #6b7280;
  margin-right: 6px;
}
.loan-inbox-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid transparent;
}
.loan-inbox-badge.waiting {
  background: #fff7ed;
  color: #9a3412;
  border-color: #fdba74;
}
.loan-inbox-badge.viewed {
  background: #eff6ff;
  color: #1e3a8a;
  border-color: #93c5fd;
}
.loan-inbox-badge.filled {
  background: #ecfdf3;
  color: #166534;
  border-color: #86efac;
}
.loan-inbox-badge.final-wait {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}
.loan-inbox-badge.done {
  background: #f3f4f6;
  color: #374151;
  border-color: #d1d5db;
}
.loan-inbox-badge.role {
  background: #f0fdf4;
  color: #14532d;
  border-color: #86efac;
  font-weight: 700;
}
.loan-inbox-actions {
  margin-top: 8px;
}
.loan-inbox-actions .cta {
  width: 100%;
}
.loan-join-main {
  max-width: 780px;
}
.loan-join-panel {
  margin-top: 14px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  padding: 16px;
}
.loan-join-title {
  margin: 6px 0 8px;
  color: #0f2747;
}
.loan-join-desc {
  margin: 0;
  color: #374151;
  font-size: 14px;
}
.loan-join-summary {
  margin-top: 10px;
  border: 1px solid #dbe5f4;
  border-radius: 10px;
  background: #f8fbff;
  padding: 10px;
}
.loan-join-summary h2 {
  margin: 0 0 8px;
  color: #0f2747;
  font-size: 15px;
}
.loan-join-summary p {
  margin: 4px 0;
  font-size: 13px;
  color: #1f2937;
}
.loan-join-summary p span {
  color: #6b7280;
  margin-right: 6px;
}
.loan-role-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
}
.loan-join-detail {
  margin-top: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fcfdff;
  padding: 8px 10px;
}
.loan-join-detail summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  color: #1f2937;
}
.loan-join-detail-text {
  margin: 8px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 13px;
  color: #374151;
}
.loan-join-form {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}
.loan-join-input-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fcfdff;
  padding: 12px;
}
.loan-join-input-card h2 {
  margin: 0 0 8px;
  color: #0f2747;
  font-size: 16px;
}
.loan-join-desc--lead {
  font-weight: 700;
  color: #0f2747;
}
.loan-join-desc--muted {
  margin-top: 6px;
  font-size: 14px;
  color: #4b5563;
}
.loan-join-block {
  margin-bottom: 4px;
}
.loan-join-block--mine {
  border-left: 4px solid #2563eb;
}
.loan-join-block--counterparty {
  border-left: 4px solid #64748b;
}
.loan-join-form input[readonly] {
  background: #f3f4f6;
  color: #111827;
  cursor: default;
}
.field-label-static {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 4px;
}
.loan-join-role-line {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  font-weight: 700;
  color: #111827;
}
.loan-inbox-auth-hint {
  margin: 10px 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  color: #334155;
}
.loan-inbox-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.loan-join-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
}
.loan-join-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.loan-join-actions .util-btn,
.loan-join-actions .util-btn-link,
.loan-join-actions .cta {
  width: 100%;
}
.loan-final-main {
  max-width: 820px;
}
.loan-final-panel {
  margin-top: 14px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  padding: 16px;
}
.loan-final-title {
  margin: 6px 0 8px;
  color: #0f2747;
}
.loan-final-desc {
  margin: 0;
  color: #374151;
  font-size: 14px;
}
.loan-final-summary,
.loan-final-party-card,
.loan-final-trust-card {
  margin-top: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fcfdff;
  padding: 12px;
}
.loan-final-summary h2,
.loan-final-party-card h2 {
  margin: 0 0 8px;
  color: #0f2747;
  font-size: 16px;
}
.loan-final-summary p {
  margin: 4px 0;
  font-size: 13px;
  color: #1f2937;
}
.loan-final-summary p span {
  color: #6b7280;
  margin-right: 6px;
}
.loan-final-party-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.loan-final-doc-state {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 10px;
  border: 1px solid #fdba74;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
}
.loan-final-party-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.loan-final-party-list li {
  border: 1px solid #dbe5f4;
  border-radius: 10px;
  background: #f8fbff;
  padding: 10px;
  display: grid;
  gap: 4px;
}
.loan-final-party-list li .k {
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 700;
}
.loan-final-party-list li strong {
  color: #111827;
  font-size: 14px;
}
.loan-final-party-list li em {
  color: #374151;
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
}
.loan-final-trust-card {
  border-color: #bfdbfe;
  background: #eff6ff;
}
.loan-final-trust-title {
  margin: 0;
  color: #1e3a8a;
  font-size: 14px;
  font-weight: 800;
}
.loan-final-trust-desc {
  margin: 6px 0 0;
  color: #1e3a8a;
  font-size: 13px;
}
.loan-final-trust-note {
  margin: 6px 0 0;
  color: #1f2937;
  font-size: 13px;
  font-weight: 700;
}
.loan-final-form {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}
.loan-final-check {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
}
.loan-final-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.loan-final-actions .util-btn,
.loan-final-actions .cta {
  width: 100%;
}
.loan-verify-main {
  max-width: 820px;
}
.loan-verify-panel {
  margin-top: 14px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  padding: 16px;
}
.loan-verify-title {
  margin: 6px 0 8px;
  color: #0f2747;
}
.loan-verify-desc {
  margin: 0;
  color: #374151;
  font-size: 14px;
}
.loan-verify-state-card,
.loan-verify-meta-card,
.loan-verify-party-card {
  margin-top: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fcfdff;
  padding: 12px;
}
.loan-verify-state-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.loan-verify-state-label {
  margin: 0;
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
}
.loan-verify-state-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid transparent;
}
.loan-verify-state-message {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 700;
}
.loan-verify-state-card.state-valid {
  border-color: #86efac;
  background: #ecfdf3;
}
.loan-verify-state-card.state-valid .loan-verify-state-badge {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}
.loan-verify-state-card.state-valid .loan-verify-state-message {
  color: #166534;
}
.loan-verify-state-card.state-tampered {
  border-color: #fecaca;
  background: #fef2f2;
}
.loan-verify-state-card.state-tampered .loan-verify-state-badge {
  background: #fee2e2;
  border-color: #fecaca;
  color: #991b1b;
}
.loan-verify-state-card.state-tampered .loan-verify-state-message {
  color: #991b1b;
}
.loan-verify-state-card.state-pending {
  border-color: #fde68a;
  background: #fffbeb;
}
.loan-verify-state-card.state-pending .loan-verify-state-badge {
  background: #fef3c7;
  border-color: #fde68a;
  color: #92400e;
}
.loan-verify-state-card.state-pending .loan-verify-state-message {
  color: #92400e;
}
.loan-verify-state-card.state-error {
  border-color: #d1d5db;
  background: #f3f4f6;
}
.loan-verify-state-card.state-error .loan-verify-state-badge {
  background: #e5e7eb;
  border-color: #d1d5db;
  color: #374151;
}
.loan-verify-state-card.state-error .loan-verify-state-message {
  color: #374151;
}
.loan-verify-meta-card h2,
.loan-verify-party-card h2 {
  margin: 0 0 8px;
  color: #0f2747;
  font-size: 16px;
}
.loan-verify-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.loan-verify-meta-grid p {
  margin: 0;
  border: 1px solid #dbe5f4;
  border-radius: 10px;
  background: #f8fbff;
  padding: 10px;
  display: grid;
  gap: 4px;
}
.loan-verify-meta-grid p span {
  color: #6b7280;
  font-size: 12px;
}
.loan-verify-meta-grid p strong {
  color: #111827;
  font-size: 13px;
}
.loan-verify-party-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.loan-verify-party-list li {
  border: 1px solid #dbe5f4;
  border-radius: 10px;
  background: #f8fbff;
  padding: 10px;
  display: grid;
  gap: 4px;
}
.loan-verify-party-list li .k {
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 700;
}
.loan-verify-party-list li strong {
  color: #111827;
  font-size: 14px;
}
.loan-verify-party-list li em {
  color: #374151;
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
}
.loan-verify-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.loan-verify-actions .util-btn,
.loan-verify-actions .util-btn-link,
.loan-verify-actions .cta {
  width: 100%;
}
.loan-mobile-sticky-actions {
  background: #fff;
}
.docs-open-detail,
.docs-close-detail {
  width: 100%;
  border: none;
  cursor: pointer;
}
.docs-submit {
  width: 100%;
  border: none;
  cursor: pointer;
}
.doc-reverify-wrap {
  border-top: 1px solid #e5e7eb;
  padding: 12px;
}
.docs-reverify {
  width: 100%;
  border: none;
  cursor: pointer;
}
.doc-status-board {
  margin-top: 12px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}
.doc-status-banner {
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
}
.doc-status-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}
.doc-status-desc {
  margin: 6px 0 0;
  font-size: 14px;
}
.doc-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px;
}
.doc-status-item {
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  padding: 10px;
  background: #fafafa;
}
.doc-status-item .k {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 5px;
}
.doc-status-item strong {
  display: block;
  font-size: 14px;
  color: #111827;
  word-break: break-all;
}
.status-valid .doc-status-banner {
  background: #ecfdf3;
  border-bottom-color: #bbf7d0;
}
.status-valid .doc-status-title,
.status-valid .doc-status-desc {
  color: #166534;
}
.status-tampered .doc-status-banner {
  background: #fef2f2;
  border-bottom-color: #fecaca;
}
.status-tampered .doc-status-title,
.status-tampered .doc-status-desc {
  color: #991b1b;
}
.status-unknown .doc-status-banner {
  background: #fffbeb;
  border-bottom-color: #fde68a;
}
.status-unknown .doc-status-title,
.status-unknown .doc-status-desc {
  color: #92400e;
}
.status-error .doc-status-banner {
  background: #f3f4f6;
  border-bottom-color: #d1d5db;
}
.status-error .doc-status-title,
.status-error .doc-status-desc {
  color: #374151;
}

@media (max-width: 900px) {
  .nav { display: none; }
  .web-only { display: none; }
  .mobile-only { display: inline-flex; }
  .site-header {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 8px;
    padding: 0 10px;
  }
  .site-logo {
    justify-self: center;
  }
  .site-login-link {
    justify-self: end;
    font-size: 12px;
  }
}
@media (max-width: 720px) {
  .common-header {
    min-height: 52px;
    grid-template-columns: minmax(56px, auto) 1fr minmax(100px, 1fr);
  }
  .common-header .header-user-info {
    font-size: 12px;
    max-width: 36vw;
  }
  .main {
    padding: 12px;
  }
  .cards.one-col-mobile { grid-template-columns: 1fr; }
  .ad-slider-panel {
    padding: 8px;
  }
  .ad-slider-head {
    align-items: flex-start;
  }
  .ad-slider-head h2 {
    font-size: 16px;
  }
  .ad-slider-note {
    font-size: 11px;
  }
  .ad-slider-stage {
    grid-template-columns: 1fr;
  }
  .ad-copy {
    padding: 14px 14px 10px;
    gap: 8px;
  }
  .ad-copy-title {
    font-size: 22px;
  }
  .ad-copy-desc,
  .ad-copy-lawyer {
    font-size: 15px;
  }
  .ad-copy-sub {
    font-size: 14px;
  }
  .ad-copy-notice {
    font-size: 12px;
  }
  .ad-visual {
    min-height: 180px;
  }
  .trustnow-fixed-panel {
    padding: 8px;
  }
  .trustnow-fixed-caption {
    font-size: 11px;
  }
  .ad-nav {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }
  .ad-dots {
    bottom: 8px;
    gap: 6px;
  }
  .hero-actions .cta { width: auto; }
  .cta-xl { min-height: 36px; font-size: 13px; }
  .util-btn,
  .util-btn-link { width: auto; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .card-actions { justify-content: flex-start; }
  .consult-actions { grid-template-columns: 1fr; }
  .step-actions { grid-template-columns: 1fr; }
  .case-option-grid { grid-template-columns: 1fr 1fr; }
  .priority-call-actions { grid-template-columns: 1fr 1fr; }
  .doc-status-grid { grid-template-columns: 1fr; }
  .safe-record-progress { grid-template-columns: 1fr 1fr; }
  .safe-record-grid { grid-template-columns: 1fr; }
  .safe-business-grid,
  .safe-kpi-grid { grid-template-columns: 1fr; }
  .safe-record-links { grid-template-columns: 1fr; }
  .loan-start-actions { grid-template-columns: 1fr; }
  .loan-grid-two { grid-template-columns: 1fr; }
  .loan-draft-actions { grid-template-columns: 1fr; }
  .loan-share-actions { grid-template-columns: 1fr; }
  .loan-join-actions { grid-template-columns: 1fr; }
  .loan-final-actions { grid-template-columns: 1fr; }
  .loan-verify-meta-grid { grid-template-columns: 1fr; }
  .loan-verify-actions { grid-template-columns: 1fr; }
  .loan-mobile-sticky-actions {
    position: sticky;
    bottom: 8px;
    z-index: 15;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 8px 24px rgba(15, 39, 71, 0.12);
  }
  body { padding-bottom: 72px; }
  .mobile-sticky {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 30;
  }
  .mobile-sticky--single {
    grid-template-columns: 1fr;
  }
}

/* Lawyer portal */
.lawyer-portal-body {
  background: #f3f6fb;
}
.lawyer-auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}
.lawyer-auth-panel {
  width: min(520px, 100%);
  border: 1px solid #dbe5f4;
  border-radius: 14px;
  background: #fff;
  padding: 18px;
}
.lawyer-auth-top {
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.lawyer-auth-home-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid #dbe5f4;
  border-radius: 999px;
  padding: 0 10px;
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  background: #f8fbff;
}
.lawyer-form {
  display: grid;
  gap: 2px;
}
.lawyer-auth-helper {
  margin: 8px 0 0;
  color: #4b5563;
  font-size: 12px;
}
.lawyer-policy-check {
  margin: 8px 0 12px;
  padding-left: 18px;
  color: #334155;
  font-size: 13px;
  line-height: 1.6;
}
.lawyer-policy-note {
  margin-top: 14px;
  border: 1px solid #dbe5f4;
  background: #f8fbff;
  border-radius: 10px;
  padding: 10px 12px;
}
.lawyer-policy-note p {
  margin: 0 0 8px;
  font-weight: 800;
  color: #1e3a8a;
}
.lawyer-policy-note ul {
  margin: 0;
  padding-left: 18px;
  color: #1f2937;
  font-size: 13px;
}
.lawyer-auth-links {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.lawyer-auth-links a {
  color: #1e3a8a;
  font-size: 13px;
  text-decoration: none;
  font-weight: 700;
}
.lawyer-auth-links a:hover {
  text-decoration: underline;
}
.lawyer-inline-msg {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
}
.lawyer-status-guide {
  margin-top: 12px;
  border: 1px solid #dbe5f4;
  border-radius: 10px;
  background: #f8fbff;
  padding: 10px 12px;
}
.lawyer-status-guide-title {
  margin: 0;
  color: #0f2747;
  font-size: 15px;
  font-weight: 800;
}
.lawyer-status-guide-desc {
  margin: 6px 0 4px;
  color: #374151;
  font-size: 13px;
}
.lawyer-status-guide-access {
  margin: 0;
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 700;
}
.lawyer-status-guide-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lawyer-status-guide-actions button,
.lawyer-status-guide-actions a {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  min-height: 36px;
  padding: 7px 10px;
  background: #fff;
  color: #1f2937;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.lawyer-login-cases {
  margin-top: 12px;
  border: 1px dashed #dbe5f4;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fcfdff;
}
.lawyer-login-cases-title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #0f2747;
}
.lawyer-login-cases-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.lawyer-case-btn {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
}
.lawyer-dashboard-banner {
  margin-bottom: 10px;
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
}
.lawyer-dashboard-header {
  position: sticky;
  top: 0;
}
.lawyer-dashboard-main h1 {
  margin: 0 0 8px;
  font-size: 24px;
}
.btn-primary.small.is-disabled,
.consult-btn--disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lawyer-consult-status {
  margin-top: 4px;
  font-size: 12px;
  color: #4b5563;
}
.lawyer-consult-status-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.consult-status-choice {
  padding: 10px 14px;
  border-radius: 10px;
  border: 2px solid #e5e7eb;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}
.consult-status-choice.active {
  border-color: #1d4ed8;
  background: #eff6ff;
  color: #1e3a8a;
}
.lawyer-summary-cards {
  margin-top: 10px;
}
.lawyer-summary-tools {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.lawyer-summary-tool-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.lawyer-summary-sync {
  margin: 0;
  font-size: 12px;
  color: #4b5563;
  font-weight: 700;
}
.lawyer-section-nav {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.lawyer-section-nav .util-btn-link {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
}
.lawyer-status-value {
  font-size: 18px;
  color: #111827;
}
.layer0-status-card {
  border-width: 1.5px;
}
.layer0-status-card.is-completed {
  border-color: #86efac;
  background: #f0fdf4;
}
.layer0-status-card.is-required {
  border-color: #fde68a;
  background: #fffbeb;
}
.layer0-status-card.is-failed {
  border-color: #fecaca;
  background: #fef2f2;
}
.layer0-status-card.is-maintenance {
  border-color: #c7d2fe;
  background: #eef2ff;
}
.lawyer-status-chip {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}
.chip-completed {
  background: #dcfce7;
  color: #166534;
}
.chip-required {
  background: #fef3c7;
  color: #92400e;
}
.chip-failed {
  background: #fee2e2;
  color: #991b1b;
}
.chip-maintenance {
  background: #e0e7ff;
  color: #3730a3;
}
.layer0-detail-grid {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}
.layer0-meta-item {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.layer0-meta-item span {
  color: #4b5563;
}
.layer0-meta-item strong {
  color: #111827;
}
.layer0-status-message {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
}
.lawyer-toggle-row {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.exposure-quick-btn {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
}
.exposure-quick-btn.is-disabled,
.exposure-quick-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.lawyer-state-reason {
  margin: 10px 0 0;
  font-size: 13px;
  color: #4b5563;
  font-weight: 700;
}
.lawyer-support-link {
  margin-top: 8px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  color: #1e3a8a;
  text-decoration: none;
}
.lawyer-support-link:hover {
  text-decoration: underline;
}
.request-table-wrap {
  display: none;
}
.request-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.request-table th,
.request-table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 9px 8px;
  text-align: left;
  vertical-align: middle;
}
.request-table th {
  color: #4b5563;
  font-weight: 800;
  background: #f8fafc;
}
.request-cards-wrap {
  margin-top: 8px;
}
.request-card.is-urgent {
  border-color: #fca5a5;
  background: #fff7f7;
}
.request-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.request-urgency-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 800;
}
.request-urgency-chip.urgent {
  background: #fee2e2;
  color: #991b1b;
}
.request-urgency-chip.normal {
  background: #e5e7eb;
  color: #374151;
}
.request-meta-line {
  margin: 6px 0 0;
  font-size: 13px;
  color: #374151;
}
.request-detail-btn {
  margin-top: 8px;
}
.is-urgent-row td {
  background: #fffafa;
}
@media (min-width: 900px) {
  .request-table-wrap {
    display: block;
  }
  .request-cards-wrap {
    display: none;
  }
}
.lawyer-operate-panel .card h3 {
  margin: 0 0 8px;
  color: #0f2747;
  font-size: 16px;
}
.lawyer-profile-entry-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.lawyer-profile-entry-actions .util-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lawyer-profile-current-card {
  margin-bottom: 10px;
}
.lawyer-profile-current-grid {
  margin: 10px 0;
  display: grid;
  gap: 8px;
}
.lawyer-profile-current-item {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
  font-size: 13px;
}
.lawyer-profile-current-item span {
  color: #4b5563;
}
.lawyer-profile-current-item strong {
  color: #111827;
}
.lawyer-profile-form-actions {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.lawyer-validation-msg {
  margin-top: 8px;
  color: #991b1b;
  font-size: 13px;
  font-weight: 700;
}
.hint {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 12px;
}

.case-request-panel {
  max-width: 760px;
  margin: 0 auto 96px;
}

.case-request-sticky-summary {
  position: sticky;
  top: 74px;
  z-index: 5;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 12px 0 16px;
}

.case-request-sticky-summary p {
  margin: 4px 0;
}

.case-complete-panel {
  max-width: 760px;
  margin: 0 auto 96px;
}

.case-complete-card {
  border: 1px solid #dbe5f4;
  border-radius: 12px;
  background: #f8fbff;
  padding: 12px 14px;
  margin: 12px 0 16px;
}

.case-complete-card p {
  margin: 6px 0;
}

/* 홈 — 실시간 상담 가능 변호사 툴바 */
.featured-lawyers-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.featured-lawyers-head h2 {
  margin: 0;
}
.featured-lawyers-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.featured-lawyers-sync {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 13px;
}

/* 차용증 문서 상세 — 인쇄: PDF와 동일 계약서 레이아웃·1페이지 */
.print-only {
  display: none;
}
.loan-trust-print-sheet {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 10px;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  font-size: 12px;
  line-height: 1.35;
  page-break-inside: avoid;
  break-inside: avoid;
}
.loan-trust-print-sheet h2 {
  font-size: 12pt;
  text-align: center;
  margin: 0 0 4px;
}
.loan-trust-print-sheet .loan-print-brand {
  text-align: center;
  font-size: 10px;
  color: #374151;
  margin: 0 0 2px;
}
.loan-trust-print-sheet .loan-print-title {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 4px;
}
.loan-evidence-doc .loan-evidence-intro {
  text-align: center;
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.35;
  white-space: pre-line;
}
.loan-evidence-doc .loan-evidence-sec {
  font-size: 12px;
  font-weight: 700;
  margin: 6px 0 4px;
  line-height: 1.35;
}
.loan-evidence-doc .loan-evidence-url {
  word-break: break-all;
  font-size: 10px;
  margin: 4px 0 0;
}
.loan-evidence-doc .loan-evidence-log {
  font-weight: 700;
  margin: 0 0 4px;
}
.loan-trust-print-sheet .loan-print-meta {
  text-align: center;
  margin-bottom: 6px;
  font-size: 11px;
  color: #374151;
}
.loan-trust-print-sheet .loan-print-meta-line {
  margin: 0;
}
.loan-trust-print-sheet .loan-contract-body {
  line-height: 1.35;
  font-size: 12px;
}
.loan-trust-print-sheet .loan-party-group {
  margin: 0 0 6px;
}
.loan-trust-print-sheet .loan-party-title {
  font-weight: 700;
  margin: 0 0 2px;
}
.loan-trust-print-sheet .loan-party-indent {
  margin: 0;
  padding-left: 16px;
}
.loan-trust-print-sheet .loan-trade-block {
  margin: 6px 0 4px;
}
.loan-trust-print-sheet .loan-trade-block p {
  margin: 0.12em 0;
}
.loan-trust-print-sheet .loan-user-rich {
  margin: 4px 0 8px;
  padding: 6px 8px;
  border: 1px solid #e5e7eb;
  background: #fafafa;
  font-size: 11px;
  line-height: 1.35;
  text-align: justify;
}
.loan-trust-print-sheet .loan-user-rich .pdf-user-heading {
  font-weight: 700;
  font-size: 11.5px;
  margin: 5px 0 2px;
  color: #111827;
}
.loan-trust-print-sheet .loan-user-rich .pdf-user-p {
  margin: 0 0 3px;
}
.loan-trust-print-sheet .loan-user-rich .pdf-user-list {
  margin: 2px 0 5px 1.1em;
  padding-left: 0.5em;
}
.loan-trust-print-sheet .loan-user-rich .pdf-user-list li {
  margin: 0 0 2px;
}
.loan-trust-print-sheet .loan-user-rich .pdf-hr {
  border: none;
  border-top: 1px solid #d1d5db;
  margin: 5px 0;
}
.loan-trust-print-sheet .loan-print-confirm {
  margin: 6px 0;
  text-align: justify;
}
.loan-trust-print-sheet .loan-print-confirm p {
  margin: 0.25em 0;
}
.loan-trust-print-sheet .loan-print-written {
  text-align: center;
  margin: 6px 0 4px;
}
.loan-trust-print-sheet .loan-print-written-line {
  margin: 0;
  text-align: center;
  font-size: 12px;
}
.loan-trust-print-sheet .loan-print-sign-right {
  text-align: right;
  margin: 0 0 6px;
}
.loan-trust-print-sheet .loan-print-sign-right p {
  margin: 0.12em 0;
}
.loan-trust-print-sheet .loan-print-verify {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid #9ca3af;
  font-size: 11px;
}
.loan-trust-print-sheet .loan-print-verify-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}
.loan-trust-print-sheet .loan-verify-text-col {
  flex: 1 1 auto;
  min-width: 0;
}
.loan-trust-print-sheet .loan-verify-text-col p {
  margin: 0.12em 0;
}
.loan-trust-print-sheet .loan-verify-qr-col {
  flex: 0 0 auto;
  align-self: flex-end;
  text-align: right;
}
.loan-trust-print-sheet .loan-print-qr {
  width: 56px;
  height: 56px;
  display: block;
  object-fit: contain;
}
.loan-trust-print-sheet .loan-print-verify-head {
  margin: 0 0 0.2em;
}
.loan-trust-print-sheet .loan-print-verify-note {
  margin: 0.25em 0 0;
  font-size: 10px;
  color: #4b5563;
}

.loan-trust-edit-blocked {
  padding: 1rem 0;
}

/* 신뢰 차용증 — 확정·검증 완료 읽기 전용 배너 */
.trust-readonly-banner {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #14532d;
  font-size: 0.92rem;
  line-height: 1.45;
}

/* 문서 대시보드 4구역 */
.my-docs-trust-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}
.my-docs-trust-hub-card {
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 10px;
  padding: 1rem;
  background: var(--color-surface, #fff);
}
.my-docs-trust-hub-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
}
.my-docs-trust-hub-card .my-docs-trust-hub-count {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0.25rem 0 0.5rem;
}
.my-docs-trust-hub-card a {
  font-size: 0.88rem;
}
.my-docs-trust-hub-sub {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  opacity: 0.88;
  line-height: 1.35;
}
.my-docs-empty-note {
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
  color: #6b7280;
}
a.util-btn-link.is-disabled,
a.is-disabled {
  pointer-events: none;
  opacity: 0.55;
  cursor: not-allowed;
  text-decoration: none;
}
.trust-detail-footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border, #e5e7eb);
}
.trust-detail-footer-nav a {
  font-size: 0.92rem;
}
.util-hint.trust-lawyer-queue-hint {
  margin: 0;
  font-size: 0.88rem;
  color: #4b5563;
  width: 100%;
}
#trust-record-sheet.print-only {
  display: none;
}

@media print {
  @page {
    margin: 8mm;
    size: A4;
  }
  body.loan-trust-detail-page .site-header,
  body.loan-trust-detail-page .common-header,
  body.loan-trust-detail-page .mobile-sticky,
  body.loan-trust-detail-page #trust-detail-actions,
  body.loan-trust-detail-page .trust-screen-only {
    display: none !important;
  }
  body.loan-trust-detail-page:not(.trust-print-record-mode) #trust-record-sheet {
    display: none !important;
  }
  body.loan-trust-detail-page.trust-print-record-mode #trust-print-sheet {
    display: none !important;
  }
  body.loan-trust-detail-page.trust-print-record-mode #trust-record-sheet.print-only {
    display: block !important;
  }
  body.loan-trust-detail-page .print-only {
    display: block !important;
  }
  body.loan-trust-detail-page .loan-trust-print-sheet {
    border: none;
    padding: 0;
    max-width: none;
    font-size: 12px;
    line-height: 1.35;
    page-break-inside: avoid;
    break-inside: avoid;
    overflow: visible;
  }
  body.loan-trust-detail-page #trust-print-sheet {
    page-break-after: avoid;
    page-break-inside: avoid;
  }
  body.loan-trust-detail-page .loan-evidence-doc .loan-print-written-line {
    text-align: center;
  }
  body.loan-trust-detail-page {
    background: #fff !important;
  }
  body.loan-trust-detail-page .main {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  body.loan-trust-detail-page .loan-inbox-panel {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
  }
}

.trust-print-gate-msg {
  margin: 0.75rem 0;
  padding: 0.75rem 1rem;
  background: #fef3c7;
  border-radius: 8px;
  color: #92400e;
  font-size: 0.95rem;
}

.my-doc-safety-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.my-doc-safety-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

.my-doc-safety-li {
  margin-bottom: 0.5rem;
}

.my-doc-safety-pick {
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font: inherit;
}

.my-doc-safety-pick:hover {
  border-color: rgba(37, 99, 235, 0.45);
}

.my-doc-safety-detail {
  margin-top: 1rem;
  padding: 1rem;
}

.my-doc-safety-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.75rem;
}

/* 모바일: 홈·공통 패널·광고 슬라이더 밀도 (카드 간격 8~12px, 섹션 16~18px 수준) */
@media (max-width: 768px) {
  .main {
    padding: 12px;
  }

  .panel {
    margin-top: 12px;
  }

  .panel-card {
    padding: 12px;
  }

  .ad-slider-panel {
    padding: 8px;
  }

  .ad-slider-stage {
    min-height: 200px;
  }

  .ad-copy {
    padding: 14px 16px;
    gap: 8px;
  }

  .ad-slider-head h2 {
    font-size: 16px;
  }
}

