/* ============================================================
   당근 작업실 (Carrot Studio) — Design Tokens
   Based on SEED Design v2 (Karrot)
   Ref: DESIGN.md sections 2, 3, 5
   ============================================================ */

:root {
  /* Colors — SEED semantic (product) */
  --color-primary: #ff6f0f;
  --color-primary-hover: #ff9e66;
  --color-primary-pressed: #ff9e66;
  --color-on-primary: #ffffff;

  --color-canvas: #ffffff;
  --color-background: #f2f3f6;
  --color-surface: #f7f8fa;

  --color-fg: #212124;
  --color-fg-muted: #868b94;
  --color-hairline: #eaebee;
  --color-brand-tint: #fff5f0;

  --color-danger: #fa2314;
  --color-info: #009ceb;
  --color-success: #1aa174;

  /* Spacing (4px base grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-full: 9999px;

  /* Typography scale (SEED v2) */
  --font-family-sans:
    -apple-system, BlinkMacSystemFont,
    'Pretendard Variable', Pretendard,
    'Apple SD Gothic Neo', 'Malgun Gothic',
    system-ui, 'Helvetica Neue', Arial, sans-serif;

  --text-h1: 48px;
  --text-h2: 42px;
  --text-h3: 34px;
  --text-title: 24px;
  --text-body: 16px;
  --text-body-sm: 14px;

  --leading-heading: 1.35;
  --leading-body: 1.5;

  --tracking-body: -0.02em;

  /* Motion (SEED §15) */
  --motion-instant: 0ms;
  --motion-fast: 150ms;
  --motion-standard: 250ms;
  --motion-slow: 350ms;
  --motion-page: 300ms;

  --ease-enter: cubic-bezier(0.0, 0.0, 0.2, 1);
  --ease-exit: cubic-bezier(0.4, 0.0, 1, 1);
  --ease-standard: cubic-bezier(0.4, 0.0, 0.2, 1);

  /* Layout */
  --sidebar-width: 240px;
  --header-height: 56px;
  --container-max: 1200px;
}

/* Pretendard Variable (CDN) */
@font-face {
  font-family: 'Pretendard Variable';
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/npm/pretendard@1.3.9/dist/web/variable/woff2/PretendardVariable.woff2') format('woff2-variations');
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
}
body {
  background: var(--color-background);
  color: var(--color-fg);
  font-family: var(--font-family-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  line-height: var(--leading-heading);
  letter-spacing: 0;
  font-weight: 700;
  color: var(--color-fg);
}
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
p { margin: 0; }
a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover { text-decoration: underline; }
button {
  font-family: inherit;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
}
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
::placeholder { color: var(--color-fg-muted); }

/* ============================================================
   Typography utilities
   ============================================================ */
.text-title { font-size: var(--text-title); font-weight: 700; line-height: var(--leading-heading); }
.text-body { font-size: var(--text-body); }
.text-body-sm { font-size: var(--text-body-sm); }
.text-muted { color: var(--color-fg-muted); }
.text-danger { color: var(--color-danger); }
.text-success { color: var(--color-success); }
.text-primary { color: var(--color-primary); }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }

/* ============================================================
   Box Button (SEED)
   sizes: xsmall(28) / small(32) / medium(40) / large(48) / xlarge(56)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 40px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-body-sm);
  font-weight: 600;
  line-height: 1;
  transition: background var(--motion-fast) var(--ease-standard),
              color var(--motion-fast) var(--ease-standard),
              opacity var(--motion-fast) var(--ease-standard);
  user-select: none;
  white-space: nowrap;
}
.btn:disabled {
  background: var(--color-hairline) !important;
  color: var(--color-fg-muted) !important;
  cursor: not-allowed;
}
.btn-xs { height: 28px; padding: 0 var(--space-3); font-size: 12px; }
.btn-sm { height: 32px; padding: 0 var(--space-3); }
.btn-md { height: 40px; }
.btn-lg { height: 48px; padding: 0 var(--space-5); font-size: var(--text-body); }
.btn-xl { height: 56px; padding: 0 var(--space-6); font-size: var(--text-body); }

/* Variants */
.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.btn-primary:hover:not(:disabled) { background: var(--color-primary-hover); }
.btn-primary-low {
  background: var(--color-brand-tint);
  color: var(--color-primary);
}
.btn-primary-low:hover:not(:disabled) { background: #ffe7d6; }
.btn-secondary {
  background: var(--color-canvas);
  color: var(--color-fg);
  border: 1px solid var(--color-hairline);
}
.btn-secondary:hover:not(:disabled) { background: var(--color-surface); }
.btn-danger {
  background: var(--color-danger);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--color-fg-muted);
}
.btn-ghost:hover:not(:disabled) { background: var(--color-surface); color: var(--color-fg); }
.btn-block { width: 100%; }

/* ============================================================
   Text Field (SEED)
   ============================================================ */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.field-label {
  font-size: var(--text-body-sm);
  font-weight: 600;
  color: var(--color-fg);
}
.field-desc {
  font-size: var(--text-body-sm);
  color: var(--color-fg-muted);
}
.field-error {
  font-size: 13px;
  color: var(--color-danger);
}
.input, .textarea {
  width: 100%;
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
  padding: 0 var(--space-4);
  height: 48px;
  font-size: var(--text-body);
  color: var(--color-fg);
  transition: border-color var(--motion-fast) var(--ease-standard);
  outline: none;
}
.textarea {
  height: auto;
  min-height: 120px;
  padding: var(--space-3) var(--space-4);
  resize: vertical;
  line-height: var(--leading-body);
}
.input:focus, .textarea:focus {
  border-color: var(--color-primary);
  border-width: 2px;
  padding: 0 15px;  /* compensate 1px for 2px border */
}
.textarea:focus { padding: 11px 15px; }
.input:disabled, .textarea:disabled {
  background: var(--color-surface);
  color: var(--color-fg-muted);
  cursor: not-allowed;
}
.input.is-invalid, .textarea.is-invalid {
  border-color: var(--color-danger);
  border-width: 2px;
}

/* ============================================================
   Card (surface)
   ============================================================ */
.card {
  background: var(--color-canvas);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}
.card-flat {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}
.card-outlined {
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

/* ============================================================
   Badge
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.badge-neutral { background: var(--color-hairline); color: var(--color-fg); }
.badge-primary { background: var(--color-brand-tint); color: var(--color-primary); }
.badge-success { background: #e8f7f0; color: var(--color-success); }
.badge-danger { background: #fee6e4; color: var(--color-danger); }
.badge-info { background: #e6f4fd; color: var(--color-info); }
.badge-muted { background: var(--color-surface); color: var(--color-fg-muted); }

/* ============================================================
   Layout: sidebar + main
   ============================================================ */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--color-canvas);
  border-right: 1px solid var(--color-hairline);
  padding: var(--space-6) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar-brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  padding: 0 var(--space-3);
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  color: var(--color-fg-muted);
  font-size: var(--text-body-sm);
  font-weight: 500;
  transition: background var(--motion-fast) var(--ease-standard),
              color var(--motion-fast) var(--ease-standard);
}
.sidebar-item:hover { background: var(--color-surface); color: var(--color-fg); text-decoration: none; }
.sidebar-item.is-active { background: var(--color-brand-tint); color: var(--color-primary); }
.sidebar-user {
  margin-top: auto;
  padding: var(--space-3);
  border-top: 1px solid var(--color-hairline);
  padding-top: var(--space-4);
  font-size: var(--text-body-sm);
}
.main {
  padding: var(--space-8);
  max-width: var(--container-max);
  width: 100%;
}
.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
}
.main-title { font-size: var(--text-title); font-weight: 700; }

@media (max-width: 768px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main { padding: var(--space-4); }
}

/* ============================================================
   Onboarding wizard (page-route style, not modal)
   ============================================================ */
.onboarding-shell {
  min-height: 100vh;
  background: var(--color-background);
  display: flex;
  flex-direction: column;
}
.onboarding-header {
  background: var(--color-canvas);
  border-bottom: 1px solid var(--color-hairline);
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.onboarding-progress {
  height: 4px;
  background: var(--color-hairline);
  position: relative;
  overflow: hidden;
}
.onboarding-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--color-primary);
  transition: width var(--motion-standard) var(--ease-standard);
}
.onboarding-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  padding: var(--space-10);
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .onboarding-main { grid-template-columns: 1fr; padding: var(--space-6); }
}
.onboarding-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: 20px;
  padding: 36px 32px 32px;
}
@media (max-width: 600px) {
  .onboarding-form { padding: 24px 20px; border-radius: 16px; }
}
.onboarding-step-label {
  font-size: var(--text-body-sm);
  color: var(--color-primary);
  font-weight: 600;
}
.onboarding-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-fg);
  line-height: 1.35;
  margin-bottom: var(--space-2);
}
.onboarding-sub {
  color: var(--color-fg-muted);
  font-size: var(--text-body);
  margin-bottom: var(--space-6);
}
.onboarding-preview {
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  align-self: flex-start;
  position: sticky;
  top: var(--space-6);
}
.onboarding-footer {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-hairline);
  background: var(--color-canvas);
}

/* ============================================================
   Chip (used for tone selection, tag suggestions)
   ============================================================ */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  font-size: var(--text-body-sm);
  color: var(--color-fg);
  cursor: pointer;
  transition: all var(--motion-fast) var(--ease-standard);
  user-select: none;
}
.chip:hover { background: var(--color-surface); }
.chip.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary);
}
.chip-outline.is-active {
  background: var(--color-brand-tint);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ============================================================
   Sosik preview card — 당근 소식 UI 스타일 (온보딩용 축약형)
   Full version: .demo-sosik-* (landing demo)
   ============================================================ */
.sosik-card {
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: 16px;
  overflow: hidden;
}
.sosik-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-fg-muted);
  overflow: hidden;
}
.sosik-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sosik-card-image-placeholder {
  font-size: 40px;
  color: var(--color-fg-muted);
}
/* 스토어 스트립 */
.sosik-card-store-strip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px 10px;
}
.sosik-card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-brand-tint);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 15px;
}
.sosik-card-store-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sosik-card-store-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-fg);
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.sosik-card-store-meta {
  font-size: 12px;
  color: var(--color-fg-muted);
  line-height: 1.3;
}
.sosik-card-follow-btn {
  flex-shrink: 0;
  background: var(--color-primary);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: default;
  font-family: inherit;
  opacity: 1;
}
.sosik-card-follow-btn:disabled { opacity: 1; }
/* 본문 */
.sosik-card-body {
  padding: 4px 14px 14px;
}
.sosik-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-fg);
  letter-spacing: -0.03em;
  line-height: 1.3;
  margin-bottom: 6px;
  word-break: keep-all;
}
.sosik-card-cat-time {
  font-size: 12px;
  color: var(--color-fg-muted);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.sosik-card-caption {
  font-size: 14px;
  color: var(--color-fg);
  white-space: pre-wrap;
  line-height: 1.6;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

/* ============================================================
   Snackbar / toast (SEED)
   ============================================================ */
.snackbar {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1c20;
  color: #fff;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-body-sm);
  z-index: 100;
  animation: snackbar-in var(--motion-standard) var(--ease-enter);
}
@keyframes snackbar-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ============================================================
   Utilities
   ============================================================ */
.stack { display: flex; flex-direction: column; }
.stack-1 > * + * { margin-top: var(--space-1); }
.stack-2 > * + * { margin-top: var(--space-2); }
.stack-3 > * + * { margin-top: var(--space-3); }
.stack-4 > * + * { margin-top: var(--space-4); }
.stack-6 > * + * { margin-top: var(--space-6); }
.stack-8 > * + * { margin-top: var(--space-8); }

.row { display: flex; align-items: center; }
.row-2 { gap: var(--space-2); }
.row-3 { gap: var(--space-3); }
.row-4 { gap: var(--space-4); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* Auth modal overlay */
.auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* ============================================================
   Brand mark & landing (Toss-style: 여백 넓게, 색 최소)
   ============================================================ */
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 17px;
  color: var(--color-fg);
  letter-spacing: -0.03em;
}

.landing-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-canvas);
}

.landing-header {
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-canvas);
  border-bottom: 1px solid var(--color-hairline);
  position: sticky;
  top: 0;
  z-index: 20;
}

.landing-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 88px 24px 120px;
}

.landing-hero {
  width: 100%;
  max-width: 640px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.landing-title {
  font-size: 48px;
  line-height: 1.2;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--color-fg);
}
.landing-title-accent { color: var(--color-primary); }

.landing-sub {
  font-size: 17px;
  color: var(--color-fg-muted);
  line-height: 1.6;
  letter-spacing: -0.01em;
  max-width: 480px;
}

/* Demo form — Toss-style hero input */
.landing-demo-form {
  width: 100%;
  max-width: 560px;
  margin-top: 32px;
  display: flex;
  gap: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-hairline);
  border-radius: 14px;
  padding: 6px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.landing-demo-form:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(255, 111, 15, 0.12);
  background: var(--color-canvas);
}
.landing-demo-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 14px 16px;
  font-size: 16px;
  color: var(--color-fg);
  font-family: inherit;
  letter-spacing: -0.01em;
}
.landing-demo-input::placeholder { color: var(--color-fg-muted); }

.landing-demo-error {
  margin-top: 12px;
  color: #d84343;
  font-size: 14px;
  background: #fff1f1;
  border-radius: 10px;
  padding: 10px 14px;
  max-width: 560px;
  width: 100%;
  text-align: left;
}

.landing-demo-hint {
  margin-top: 12px;
  font-size: 13px;
  color: var(--color-fg-muted);
  letter-spacing: -0.01em;
}

/* Demo result */
.landing-demo-result {
  width: 100%;
  max-width: 960px;
  margin-top: 72px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.demo-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.demo-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
}

/* Panel header — 진하고 밝게 (오렌지 넘버 뱃지 + 굵은 헤딩 + 서브카피)
   이전엔 회색 13px 굵기600 한 줄이었음 → 이제 존재감 큰 3-요소 헤더 */
.demo-panel-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0 4px;
}
.demo-panel-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow:
    0 1px 2px rgba(255, 111, 15, 0.24),
    0 6px 16px rgba(255, 111, 15, 0.22);
  letter-spacing: -0.02em;
}
.demo-panel-heading-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding-top: 1px;
}
.demo-panel-heading {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-fg);
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.demo-panel-sub {
  font-size: 13px;
  color: var(--color-fg-muted);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

/* Business profile card
   width 통일: 우측 폰 프레임(max 360)과 시각적으로 균형 맞도록
   좌측 프로필 카드도 max-width 제한 + column 중앙 정렬 */
.demo-profile-card {
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 360px;
  align-self: center;
  box-shadow:
    0 1px 2px rgba(15, 17, 21, 0.04),
    0 10px 30px rgba(15, 17, 21, 0.06);
}
.demo-profile-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--color-surface);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--color-fg-muted);
}
.demo-profile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.demo-profile-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.demo-profile-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-fg);
}
.demo-profile-category {
  font-size: 13px;
  color: var(--color-fg-muted);
}
.demo-profile-meta {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.demo-profile-meta-row {
  font-size: 14px;
  color: var(--color-fg);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.5;
}
.demo-profile-meta-row .meta-key {
  color: var(--color-fg-muted);
  min-width: 40px;
  flex-shrink: 0;
}
.demo-profile-reviews {
  margin-top: 8px;
  font-size: 13px;
  color: var(--color-fg-muted);
}
.demo-profile-chips {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.demo-chip {
  font-size: 12px;
  color: var(--color-fg);
  background: var(--color-surface);
  border-radius: 999px;
  padding: 4px 10px;
  letter-spacing: -0.01em;
}

/* ==========================================================
   Sosik preview — 미니멀 디바이스 프레임 + 실제 당근 소식 UI
   - dneasy: 다크 아이폰 목업 → 우리는 라이트 미니멀 프레임 (차별화)
   - 참조: assets/refs/karrot_sosik_ui_*.png, dneasy_review_preview.png
   ========================================================== */
.demo-sosik-card {
  /* 이제 컨테이너 역할 — device-frame과 caption을 감쌈 */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

/* ── 디바이스 프레임 (라이트 미니멀 스타일) ─────────────── */
.device-frame {
  position: relative;
  width: 100%;
  max-width: 360px; /* 좌측 profile card와 동일한 max-width로 정렬 통일 */
  background: #ffffff;
  border: 1px solid var(--color-hairline);
  border-radius: 36px;
  padding: 10px 8px 8px;
  box-shadow:
    0 1px 2px rgba(15, 17, 21, 0.04),
    0 10px 30px rgba(15, 17, 21, 0.08),
    0 20px 60px rgba(15, 17, 21, 0.06);
  /* 은은한 상단 하이라이트로 리얼 디바이스 느낌 */
}
.device-frame::before {
  /* 프레임 이너 스트로크로 두께감 */
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 30px;
  border: 1px solid rgba(15, 17, 21, 0.04);
  pointer-events: none;
}
/* Dynamic Island 스타일 pill */
.device-frame-island {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 82px;
  height: 22px;
  background: #17181b;
  border-radius: 999px;
  z-index: 3;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
/* 프레임 안쪽 화면 — 실제 소식 카드가 이 안에 렌더링됨 */
.device-frame-screen {
  position: relative;
  background: var(--color-canvas);
  border-radius: 28px;
  overflow: hidden;
  padding-top: 44px; /* dynamic island 여백 */
  display: flex;
  flex-direction: column;
}
/* island가 화면 위에 자연스럽게 얹혀지도록 스크린 상단 여백 확보 */
.device-frame-screen .demo-sosik-topbar {
  /* topbar를 island와 겹치지 않게 살짝 우측 정렬 조정 */
  padding-top: 4px;
}

/* 프레임 아래 안내 캡션 (D) — 톤다운
   이전엔 오렌지 pill로 강했음. 상단 헤더가 강조 위계를 먹었으므로
   여기는 부드러운 회색 서브텍스트로 위계를 낮춤 */
.demo-preview-caption {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 2px;
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-fg-muted);
  letter-spacing: -0.01em;
  margin-top: 2px;
  opacity: 0.85;
}
.demo-preview-caption-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-fg-muted);
  flex-shrink: 0;
  opacity: 0.6;
  animation: pulse-dot 2.2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.75); }
}
.demo-preview-caption-text { line-height: 1; }

/* 1) 상단 툴바 — 화이트 배경 (블랙 대체) */
.demo-sosik-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 12px;
  background: var(--color-canvas);
  border-bottom: 1px solid transparent; /* 이미지와 자연스럽게 연결 */
  position: relative;
  z-index: 2;
}
.demo-sosik-topbar-back {
  font-size: 24px;
  color: var(--color-fg);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: default;
}
.demo-sosik-topbar-right {
  display: flex;
  align-items: center;
  gap: 4px;
}
.demo-sosik-topbar-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-fg);
  font-size: 18px;
  cursor: default;
}

/* 2) 이미지 + 페이지 인디케이터 */
.demo-sosik-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--color-surface);
  overflow: hidden;
}
.demo-sosik-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.demo-sosik-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--color-fg-muted);
  background: var(--color-surface);
}
.demo-sosik-image-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(33, 33, 36, 0.55);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: -0.01em;
  backdrop-filter: blur(4px);
}
/* (C) AI 생성 뱃지 — 좌측 하단 (dneasy 우측 → 우리는 반대) */
.demo-sosik-ai-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(33, 33, 36, 0.55);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px 3px 8px;
  border-radius: 999px;
  letter-spacing: -0.01em;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.demo-sosik-ai-badge-icon {
  font-size: 11px;
  color: #ffd08a;
  line-height: 1;
  transform: translateY(-0.5px);
}
.demo-sosik-ai-badge-text { line-height: 1; }

/* 3) 가게 정보 스트립 */
.demo-sosik-store-strip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px 12px;
  background: var(--color-canvas);
}
.demo-sosik-store-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-brand-tint);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 16px;
  overflow: hidden;
}
.demo-sosik-store-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.demo-sosik-store-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-fg);
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.demo-sosik-store-meta {
  font-size: 13px;
  color: var(--color-fg-muted);
  line-height: 1.3;
}
.demo-sosik-store-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--color-fg);
  font-weight: 500;
  margin-top: 2px;
  line-height: 1.3;
}
.demo-sosik-star {
  color: #ffc93c;
  font-size: 14px;
  line-height: 1;
}
.demo-sosik-rating-value {
  font-weight: 700;
}
.demo-sosik-rating-sep {
  color: var(--color-fg-muted);
  font-weight: 400;
}
.demo-sosik-follow-btn {
  flex-shrink: 0;
  background: var(--color-primary);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: default;
  align-self: flex-start;
  margin-top: 2px;
  font-family: inherit;
}
.demo-sosik-follow-btn:hover { background: var(--color-primary); }

/* 4) 소식 제목 */
.demo-sosik-title {
  padding: 4px 16px 6px;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-fg);
  letter-spacing: -0.03em;
  line-height: 1.3;
  word-break: keep-all;
}

/* 5) 카테고리·시점 */
.demo-sosik-cat-time {
  padding: 0 16px 12px;
  font-size: 13px;
  color: var(--color-fg-muted);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* 6) 본문 */
.demo-sosik-body {
  padding: 4px 16px 14px;
  font-size: 15px;
  color: var(--color-fg);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: keep-all;
  letter-spacing: -0.02em;
}

/* 7) 문의/조회 stats */
.demo-sosik-stats {
  padding: 0 16px 16px;
  font-size: 13px;
  color: var(--color-fg-muted);
  letter-spacing: -0.01em;
}

/* 8) 하단 액션 바 */
.demo-sosik-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 16px;
  border-top: 1px solid var(--color-hairline);
  background: var(--color-canvas);
}
.demo-sosik-like {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 2px 6px;
  cursor: default;
}
.demo-sosik-like-icon {
  font-size: 22px;
  color: var(--color-fg-muted);
  line-height: 1;
}
.demo-sosik-like-count {
  font-size: 11px;
  color: var(--color-fg-muted);
  margin-top: 2px;
  line-height: 1;
}
.demo-sosik-phone-btn,
.demo-sosik-chat-btn {
  flex: 1;
  height: 44px;
  border: 0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: default;
  font-family: inherit;
}
.demo-sosik-phone-btn {
  background: #3d434c;   /* 다크 그레이 (블랙 아님) */
  color: #ffffff;
  flex: 0.9;
}
.demo-sosik-phone-btn:disabled { opacity: 1; }
.demo-sosik-chat-btn {
  background: var(--color-primary);
  color: #ffffff;
  flex: 1.1;
}
.demo-sosik-chat-btn:disabled { opacity: 1; }

.landing-demo-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
}

.hidden { display: none !important; }

@media (max-width: 768px) {
  .landing-main { padding: 56px 20px 80px; }
  .landing-title { font-size: 32px; }
  .landing-sub { font-size: 15px; }
  .landing-demo-form { flex-direction: column; padding: 8px; gap: 8px; }
  .landing-demo-form .btn { width: 100%; }
  .landing-demo-result { margin-top: 48px; }
  .demo-panels { grid-template-columns: 1fr; gap: 40px; }
  .device-frame { max-width: 320px; }
  .demo-profile-card { max-width: 320px; }
  .demo-panel-heading { font-size: 16px; }
  .demo-panel-num { width: 28px; height: 28px; font-size: 13px; }
}

/* ============================================================
   Auth modal — extra polish
   ============================================================ */
.auth-card {
  width: 100%;
  max-width: 400px;
  padding: 32px;
  animation: modalIn var(--motion-standard) var(--ease-enter);
}
.auth-title { font-size: 20px; font-weight: 700; }
.auth-switch { margin-top: 8px; }
.btn-link {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--color-primary);
  font-weight: 600;
  cursor: pointer;
  font: inherit;
  margin-left: 4px;
}
.btn-link:hover { text-decoration: underline; }

@keyframes modalIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================
   Skeleton
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, #eaebee 0%, #f7f8fa 50%, #eaebee 100%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.4s ease-in-out infinite;
  border-radius: 6px;
}
.skeleton-line { height: 14px; }
@keyframes skeletonPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   Main header layout
   ============================================================ */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.main-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
.badge-soft {
  background: var(--color-brand-tint);
  color: var(--color-primary);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

/* ============================================================
   Dashboard KPI cards
   ============================================================ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.kpi-card {
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: 12px;
  padding: 20px;
  transition: border-color var(--motion-fast);
}
.kpi-card:hover { border-color: #d5d7da; }
.kpi-label {
  font-size: 13px;
  color: var(--color-fg-muted);
  font-weight: 500;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.kpi-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.kpi-sub { font-size: 12px; color: var(--color-fg-muted); margin-top: 4px; }
.kpi-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.kpi-badge--good { background: #e5f7ef; color: var(--color-success); }
.kpi-badge--warn { background: #fff5e0; color: #b26a00; }

/* ============================================================
   Alert card (dashboard '이어서 하기' etc.)
   ============================================================ */
.alert-card {
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-left: 4px solid var(--color-primary);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.alert-card--warn { border-left-color: #f5a623; background: #fffbf1; }
.alert-card--info { border-left-color: var(--color-info); }
.alert-card--success { border-left-color: var(--color-success); background: #f0faf5; }
.alert-title { font-weight: 700; margin-bottom: 4px; font-size: 15px; }
.alert-sub { color: var(--color-fg-muted); font-size: 13px; }

/* ============================================================
   Section card
   ============================================================ */
.section-card {
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: 12px;
  padding: 20px 24px;
}
.section-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.section-desc {
  color: var(--color-fg-muted);
  font-size: 13px;
  margin-bottom: 16px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 8px;
}

/* ============================================================
   Week grid (7 days, dneasy-style)
   ============================================================ */
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.week-day {
  background: var(--color-surface);
  border-radius: 8px;
  padding: 10px 6px;
  text-align: center;
  min-height: 72px;
  border: 1px solid transparent;
}
.week-day.is-today { border-color: var(--color-primary); background: var(--color-brand-tint); }
.week-day-dow { font-size: 11px; color: var(--color-fg-muted); }
.week-day-num { font-size: 18px; font-weight: 700; margin-top: 2px; }
.week-day-dots {
  display: flex;
  gap: 3px;
  justify-content: center;
  margin-top: 6px;
  min-height: 8px;
}
.week-day-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-hairline);
}
.week-day-dot--scheduled { background: var(--color-primary); }
.week-day-dot--published { background: var(--color-success); }
.week-day-dot--review { background: #f5a623; }

/* ============================================================
   Topic chips (dneasy 소식거리)
   ============================================================ */
.topic-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.topic-add-chip {
  background: var(--color-surface);
  border: 1px dashed #c8ccd2;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-fg);
  cursor: pointer;
  transition: all var(--motion-fast);
}
.topic-add-chip:hover {
  border-style: solid;
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-brand-tint);
}
.topic-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.topic-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--color-surface);
  border-radius: 8px;
  border: 1px solid var(--color-hairline);
}
.topic-item-content { font-size: 14px; }
.topic-item-remove {
  background: transparent;
  border: 0;
  color: var(--color-fg-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 13px;
}
.topic-item-remove:hover { background: #eaebee; color: var(--color-danger); }

.topic-scope-tabs { display: inline-flex; gap: 4px; margin-bottom: 12px; }
.topic-scope-tab {
  background: transparent;
  border: 1px solid var(--color-hairline);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--color-fg-muted);
  cursor: pointer;
}
.topic-scope-tab.is-active {
  background: var(--color-fg);
  color: white;
  border-color: var(--color-fg);
}

.topic-input-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.topic-input-row .input { flex: 1; }

/* ============================================================
   Post list & tabs
   ============================================================ */
.posts-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--color-hairline);
  overflow-x: auto;
}
.tab {
  background: transparent;
  border: 0;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-fg-muted);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}
.tab:hover { color: var(--color-fg); }
.tab.is-active {
  color: var(--color-primary);
  font-weight: 700;
}
.tab.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--color-primary);
}

.post-list-item {
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: 12px;
  padding: 16px 20px;
  cursor: pointer;
  transition: all var(--motion-fast);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.post-list-item:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(255, 111, 15, 0.08);
}
.post-list-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background: var(--color-surface);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-list-body { flex: 1; min-width: 0; }
.post-list-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.post-list-preview {
  color: var(--color-fg-muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 8px;
}
.post-list-meta {
  font-size: 12px;
  color: var(--color-fg-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.post-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.post-status--review { background: #fff5e0; color: #b26a00; }
.post-status--scheduled { background: var(--color-brand-tint); color: var(--color-primary); }
.post-status--published { background: #e5f7ef; color: var(--color-success); }
.post-status--rejected { background: #f7d5d3; color: var(--color-danger); }

/* ============================================================
   Slide panel (post detail)
   ============================================================ */
.slide-panel {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}
.slide-panel:not(.hidden) { pointer-events: auto; }
.slide-panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity var(--motion-standard) var(--ease-standard);
}
.slide-panel:not(.hidden) .slide-panel-backdrop { opacity: 1; }
.slide-panel-body {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 100%;
  background: var(--color-canvas);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.08);
  transform: translateX(100%);
  transition: transform var(--motion-standard) var(--ease-enter);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.slide-panel:not(.hidden) .slide-panel-body { transform: translateX(0); }
.slide-panel-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.slide-panel-title { font-size: 18px; font-weight: 700; }
.slide-panel-content {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}
.slide-panel-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--color-hairline);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.post-detail-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: var(--color-surface);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.post-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.post-detail-title { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.post-detail-meta { color: var(--color-fg-muted); font-size: 13px; margin-bottom: 20px; }
.post-detail-body {
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
  color: var(--color-fg);
}

/* Karrot mock preview inside slide panel */
.karrot-mock {
  border: 1px solid var(--color-hairline);
  border-radius: 12px;
  padding: 16px;
  margin-top: 24px;
  background: var(--color-surface);
}
.karrot-mock-head {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.karrot-mock-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-brand-tint);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.karrot-mock-name { font-weight: 700; font-size: 14px; }
.karrot-mock-time { font-size: 12px; color: var(--color-fg-muted); }
.karrot-mock-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.karrot-mock-body { font-size: 13px; color: var(--color-fg); line-height: 1.6; white-space: pre-wrap; max-height: 120px; overflow: hidden; position: relative; }
.karrot-mock-body::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 24px;
  background: linear-gradient(180deg, transparent, var(--color-surface));
  pointer-events: none;
}

/* ============================================================
   Plans (billing page)
   ============================================================ */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .plans-grid { grid-template-columns: 1fr; }
}
.plan-card {
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  transition: all var(--motion-standard);
}
.plan-card--featured {
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(255, 111, 15, 0.08);
}
.plan-badge {
  position: absolute;
  top: -12px; left: 24px;
  background: var(--color-primary);
  color: white;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.plan-name { font-weight: 700; font-size: 16px; color: var(--color-fg-muted); margin-bottom: 8px; }
.plan-price { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.plan-price b { font-size: 32px; font-weight: 800; color: var(--color-primary); }
.plan-desc { color: var(--color-fg-muted); font-size: 14px; margin-bottom: 16px; }
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

/* ============================================================
   Admin styling
   ============================================================ */
.app-shell--admin {
  --color-primary-hover: var(--color-primary-hover);
}
.sidebar--admin {
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.admin-table-wrap {
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: 12px;
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.admin-table thead th {
  text-align: left;
  padding: 12px 16px;
  background: var(--color-surface);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--color-hairline);
  position: sticky; top: 0;
}
.admin-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-hairline);
}
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: var(--color-surface); }
.admin-table code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  color: var(--color-fg-muted);
  background: var(--color-surface);
  padding: 1px 6px;
  border-radius: 4px;
}

/* Small badges reused across admin */
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  background: var(--color-surface);
  color: var(--color-fg-muted);
}
.tag--agency { background: #eef2ff; color: #4c50e0; }
.tag--solo { background: #fef5e6; color: #b26a00; }
.tag--admin { background: #212124; color: white; }
.tag--onboarding { background: #eaebee; color: var(--color-fg-muted); }
.tag--active { background: #e5f7ef; color: var(--color-success); }
.tag--suspended { background: #f7d5d3; color: var(--color-danger); }

/* ============================================================
   Sidebar item icon slot
   ============================================================ */
.sidebar-item-icon {
  width: 20px;
  text-align: center;
  font-size: 16px;
  flex-shrink: 0;
}

.sidebar-user-name { font-weight: 600; font-size: 14px; }

/* ============================================================
   Sosik card — placeholder variant + spacing
   ============================================================ */
.sosik-card--placeholder .sosik-card-image {
  background: var(--color-surface);
  color: var(--color-fg-muted);
  font-size: 32px;
}

/* ============================================================
   Empty state
   ============================================================ */
.empty-state {
  padding: 48px 24px;
  text-align: center;
  background: var(--color-canvas);
  border: 1px dashed var(--color-hairline);
  border-radius: 12px;
}
.empty-state-icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.6;
}
.empty-state-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.empty-state-desc { color: var(--color-fg-muted); font-size: 13px; }

/* ============================================================
   /app/posts/:id — 검수 상세 (2-pane review)
   ── dneasy와 같은 목적, 다른 감성 ──
   좌: 정보/액션  ·  우: sticky device-frame 미리보기
   ============================================================ */

/* 상단 back + 상태 topbar */
.review-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0 16px;
  border-bottom: 1px solid var(--color-hairline);
  margin-bottom: 24px;
}
.review-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px 6px 6px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--color-fg-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}
.review-back:hover {
  background: var(--color-surface);
  color: var(--color-fg);
}
.review-back > span:first-child {
  font-size: 20px;
  line-height: 1;
  margin-right: 2px;
}
.review-topbar-status { display: inline-flex; }

/* 2-pane 레이아웃 */
.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  align-items: start;
}
.review-pane { min-width: 0; }
.review-pane--preview { display: flex; justify-content: center; }
.review-preview-sticky {
  position: sticky;
  top: 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.review-preview-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

/* Skeleton */
.review-skeleton {
  padding: 24px;
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review-skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f2f3f6 0%, #eaebee 50%, #f2f3f6 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 헤더 카드 — 상태 + 생성 시각 */
.review-header-card {
  padding: 18px 20px;
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.review-header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--color-fg-muted);
}
.review-header-meta-sep { opacity: 0.5; }

/* (E) 상태 pill — outline + dot (dneasy는 solid) */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-fg);
  line-height: 1;
}
.status-pill--lg {
  padding: 6px 14px 6px 10px;
  font-size: 13px;
  gap: 8px;
}
.status-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-fg-muted);
  flex-shrink: 0;
}
.status-pill--lg .status-pill-dot {
  width: 7px;
  height: 7px;
}
.status-pill.is-review { background: var(--color-brand-tint); border-color: rgba(255, 111, 15, 0.2); color: var(--color-primary); }
.status-pill.is-scheduled { background: #eff6ff; border-color: rgba(59, 130, 246, 0.2); color: #1d4ed8; }
.status-pill.is-published, .status-pill.is-approved { background: #ecfdf5; border-color: rgba(16, 185, 129, 0.2); color: #047857; }
.status-pill.is-rejected { background: #fef2f2; border-color: rgba(239, 68, 68, 0.2); color: #b91c1c; }
.status-pill.is-draft { background: var(--color-surface); border-color: var(--color-hairline); color: var(--color-fg-muted); }

/* pulse dot animation on 검수대기 */
.status-pill.is-review .status-pill-dot {
  animation: pulse-dot 1.8s ease-in-out infinite;
}

/* (G) 배포 예정 info box */
.deploy-info-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 14px 14px;
  background: linear-gradient(135deg, #fff5f0 0%, #ffffff 100%);
  border: 1px solid rgba(255, 111, 15, 0.18);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.deploy-info-box::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--color-primary);
  border-radius: 3px 0 0 3px;
}
.deploy-info-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.deploy-info-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--color-canvas);
  border: 1px solid rgba(255, 111, 15, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.deploy-info-text { min-width: 0; }
.deploy-info-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.deploy-info-when {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-fg);
  line-height: 1.35;
}
.deploy-info-change {
  padding: 6px 10px;
  background: transparent;
  border: 1px solid rgba(255, 111, 15, 0.28);
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}
.deploy-info-change:hover { background: rgba(255, 111, 15, 0.08); }

/* (H) 필드 라벨 스타일 (제목/본문) — muted uppercase micro-label */
.review-field {
  padding: 18px 20px;
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: 14px;
}
.review-field-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-fg-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.review-field-label::before {
  content: '';
  width: 3px;
  height: 12px;
  background: var(--color-primary);
  border-radius: 2px;
  opacity: 0.55;
}
.review-field-value {
  color: var(--color-fg);
  word-break: break-word;
}
.review-field-value--title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}
.review-field-value--body {
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
}
.review-field-value--seed {
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-fg-muted);
  padding: 10px 12px;
  background: var(--color-surface);
  border-radius: 8px;
}

/* (F) 액션 바 — primary + text-links (dneasy는 3버튼 균등) */
.review-action-bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 8px;
}
.review-action-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 20px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow:
    0 1px 2px rgba(255, 111, 15, 0.24),
    0 8px 20px rgba(255, 111, 15, 0.22);
  transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.review-action-primary:hover:not(:disabled) {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow:
    0 1px 2px rgba(255, 111, 15, 0.24),
    0 12px 26px rgba(255, 111, 15, 0.28);
}
.review-action-primary:active:not(:disabled) { transform: translateY(0); }
.review-action-primary:disabled { opacity: 0.55; cursor: not-allowed; }
.review-action-primary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  line-height: 1;
}

.review-action-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.review-action-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-fg-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.review-action-link:hover:not(:disabled) {
  background: var(--color-surface);
  color: var(--color-fg);
}
.review-action-link:disabled { opacity: 0.5; cursor: not-allowed; }
.review-action-link--danger:hover:not(:disabled) {
  background: #fef2f2;
  color: var(--color-danger);
}
.review-action-link-icon { font-size: 12px; opacity: 0.7; }
.review-action-link-sep {
  color: var(--color-hairline);
  font-size: 12px;
  user-select: none;
}

.review-action-secondary {
  width: 100%;
  padding: 14px 20px;
  background: var(--color-canvas);
  color: var(--color-fg);
  border: 1px solid var(--color-hairline);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
.review-action-secondary:hover:not(:disabled) { background: var(--color-surface); }
.review-action-secondary--danger { color: var(--color-danger); }
.review-action-secondary--danger:hover:not(:disabled) { background: #fef2f2; }

.review-action-done {
  padding: 14px 20px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
}

/* ============================================================
   인라인 편집 모드 (수정하기 클릭 시)
   dneasy는 "실시간 반영돼요" 안내만 있고 실제로는 저장 전 반영 X.
   우리는 진짜 실시간 반영이라 배너 문구도 다르게.
   ============================================================ */
.review-edit-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #fff5f0 0%, #fff9f5 100%);
  border: 1px solid rgba(255, 111, 15, 0.18);
  border-radius: 12px;
  margin-bottom: 4px;
}
.review-edit-banner-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(255, 111, 15, 0.2);
}
.review-edit-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 1px;
}
.review-edit-banner-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}
.review-edit-banner-sub {
  font-size: 12.5px;
  color: var(--color-fg-muted);
  line-height: 1.45;
}

.review-field--edit .review-field-label {
  margin-bottom: 8px;
}
.review-edit-input,
.review-edit-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1.5px solid var(--color-hairline);
  border-radius: 12px;
  background: #fff;
  color: var(--color-fg);
  font-size: 14.5px;
  line-height: 1.55;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}
.review-edit-input {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.review-edit-textarea {
  resize: vertical;
  min-height: 200px;
  max-height: 500px;
  white-space: pre-wrap;
}
.review-edit-input:focus,
.review-edit-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 111, 15, 0.12);
}
.review-edit-counter {
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--color-fg-muted);
  text-align: right;
  letter-spacing: -0.01em;
}
.review-edit-counter.is-warn {
  color: var(--color-primary);
  font-weight: 600;
}

/* Responsive: 900px 이하는 1-column, preview는 non-sticky */
@media (max-width: 900px) {
  .review-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .review-preview-sticky {
    position: static;
  }
  .review-pane--preview {
    order: -1; /* 모바일에서는 미리보기가 먼저 오도록 */
  }
}
@media (max-width: 600px) {
  .review-topbar { margin-bottom: 16px; padding-bottom: 12px; }
  .review-field { padding: 16px; }
  .deploy-info-box { padding: 12px 14px 12px 12px; }
  .deploy-info-icon { width: 32px; height: 32px; font-size: 15px; }
  .review-action-primary { padding: 14px 18px; font-size: 14.5px; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
