/* ============================================================
   Apple-inspired Design System
   ============================================================ */

:root {
  /* Surface */
  --bg-page: #f5f5f7;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --bg-subtle: #fafafa;
  --bg-hover: #f5f5f7;
  --bg-active: #ebebed;
  --bg-sidebar: #fbfbfd;

  /* Text */
  --text-primary: #1d1d1f;
  --text-secondary: #515154;
  --text-tertiary: #86868b;
  --text-quaternary: #a1a1a6;
  --text-inverse: #ffffff;

  /* Border */
  --border-subtle: #f5f5f7;
  --border-default: #e5e5ea;
  --border-strong: #d1d1d6;

  /* Accent (minimal use) */
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-soft: #e8f1fd;

  /* Status (subdued) */
  --success: #28a745;
  --success-soft: #e8f5ec;
  --danger: #d13838;
  --danger-soft: #fbeaea;
  --warning: #b25e07;
  --warning-soft: #fdf3e7;
  --info: #0071e3;
  --info-soft: #e8f1fd;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-2xl: 22px;

  /* Shadow (subtle) */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.03);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.04);

  /* Transition */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-base: 200ms;
  --duration-slow: 300ms;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
               "Helvetica Neue", "Pretendard", "Apple SD Gothic Neo", system-ui, sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

body {
  font-feature-settings: "kern" 1, "ss01" 1;
}

/* ============================================================
   Layout
   ============================================================ */

.app-shell {
  display: flex;
  min-height: 100vh;
  background: var(--bg-page);
}

.sidebar {
  width: 240px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-default);
  flex-shrink: 0;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.main-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 56px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-default);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 30;
}

.page-container {
  padding: 28px 32px 60px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

/* ============================================================
   Sidebar Brand & Items
   ============================================================ */

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 18px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1d1d1f 0%, #515154 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 13px;
  font-weight: 700;
}

.nav-section {
  margin-top: 12px;
}

.nav-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--text-tertiary);
  padding: 8px 12px 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: background var(--duration-fast) var(--ease),
              color var(--duration-fast) var(--ease);
  position: relative;
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--bg-active);
  color: var(--text-primary);
  font-weight: 600;
}

.nav-item .icon {
  width: 18px;
  text-align: center;
  font-size: 14px;
  color: var(--text-tertiary);
}

.nav-item.active .icon { color: var(--text-primary); }

.nav-badge {
  margin-left: auto;
  background: var(--text-primary);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
}

.nav-badge.danger { background: var(--danger); }
.nav-badge.muted { background: var(--text-quaternary); }

/* ============================================================
   Cards
   ============================================================ */

.card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-default);
  transition: border-color var(--duration-base) var(--ease),
              box-shadow var(--duration-base) var(--ease),
              transform var(--duration-base) var(--ease-out);
}

.card-hoverable {
  cursor: pointer;
}

.card-hoverable:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.card-body {
  padding: 20px 24px;
}

.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-primary);
  transition: all var(--duration-fast) var(--ease);
  user-select: none;
  white-space: nowrap;
  line-height: 1;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--text-primary);
  color: var(--text-inverse);
  border-color: var(--text-primary);
}
.btn-primary:hover { background: #000; }

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-default);
}
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--border-strong); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); }

.btn-danger {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}
.btn-danger:hover { background: #b82a2a; }

.btn-sm { padding: 6px 10px; font-size: 12px; border-radius: 8px; }
.btn-lg { padding: 10px 18px; font-size: 14px; }

.btn-icon {
  width: 32px; height: 32px; padding: 0;
  border-radius: var(--radius-md);
}

.btn-accent {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-hover); }

/* ============================================================
   Forms
   ============================================================ */

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: border-color var(--duration-fast) var(--ease),
              box-shadow var(--duration-fast) var(--ease);
  line-height: 1.4;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

.form-input::placeholder { color: var(--text-quaternary); }

.form-help { font-size: 12px; color: var(--text-tertiary); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 4px; }

.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 0 12px;
  transition: border-color var(--duration-fast) var(--ease);
}
.search-bar:focus-within { border-color: var(--text-primary); }
.search-bar input {
  border: 0;
  background: transparent;
  outline: none;
  padding: 9px 8px;
  flex: 1;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
}
.search-bar i { color: var(--text-tertiary); font-size: 13px; }

/* ============================================================
   Badge / Pill / Status
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  background: var(--bg-active);
  color: var(--text-secondary);
}

.badge-success { background: var(--success-soft); color: var(--success); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-outline {
  background: transparent;
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--text-quaternary);
}
.dot-success { background: var(--success); }
.dot-danger { background: var(--danger); }
.dot-warning { background: var(--warning); }

/* ============================================================
   KPI Stat
   ============================================================ */

.stat-tile {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 18px 20px;
  transition: all var(--duration-base) var(--ease);
}
.stat-tile:hover {
  border-color: var(--border-strong);
}
.stat-label {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.stat-value {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-top: 4px;
  line-height: 1.1;
}
.stat-sub {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* ============================================================
   Tables
   ============================================================ */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table thead th {
  text-align: left;
  font-weight: 500;
  font-size: 12px;
  color: var(--text-tertiary);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-subtle);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
}
.table tbody tr {
  transition: background var(--duration-fast) var(--ease);
}
.table tbody tr:hover { background: var(--bg-hover); }
.table tbody tr.row-clickable { cursor: pointer; }
.table tbody tr:last-child td { border-bottom: 0; }

/* ============================================================
   Day list (exposure calendar) — 직관적 칩 리스트 ("6월 1일(일) O")
   ============================================================ */

.day-list-wrapper {
  padding: 2px 0;
}

.day-list-month {
  margin-bottom: 18px;
}
.day-list-month:last-of-type { margin-bottom: 10px; }

.day-list-month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 0 2px;
  flex-wrap: wrap;
}
.day-list-month-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.day-list-month-meta {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}
.day-list-month-meta .meta-pill {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-weight: 500;
}
.day-list-month-meta .meta-pill.meta-o {
  background: rgba(29,29,31,0.06);
  color: var(--text-primary);
}
.day-list-month-meta .meta-pill.meta-x {
  background: var(--danger-soft);
  color: var(--danger);
}

.day-list-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.day-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 9px;
  background: white;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
  white-space: nowrap;
  user-select: none;
  line-height: 1;
}
.day-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  border-color: var(--text-tertiary);
}
.day-item .day-item-date {
  font-weight: 600;
  letter-spacing: -0.01em;
}
.day-item .day-item-dow {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 500;
}
.day-item .day-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  background: var(--bg-subtle);
  color: var(--text-tertiary);
  margin-left: 2px;
}

/* 일요일 / 토요일 색상 */
.day-item.is-sun .day-item-dow { color: var(--danger); }
.day-item.is-sat .day-item-dow { color: #2879f0; }

/* 노출 (검정) */
.day-item.exposed {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: white;
}
.day-item.exposed .day-item-dow { color: rgba(255,255,255,0.65); }
.day-item.exposed .day-mark {
  background: rgba(255,255,255,0.18);
  color: white;
}
.day-item.exposed:hover { box-shadow: 0 3px 10px rgba(0,0,0,0.25); }

/* 미노출 (빨강) */
.day-item.not-exposed {
  background: var(--danger-soft);
  border-color: rgba(209,56,56,0.25);
  color: var(--danger);
}
.day-item.not-exposed .day-item-dow { color: rgba(209,56,56,0.7); }
.day-item.not-exposed .day-mark {
  background: rgba(209,56,56,0.15);
  color: var(--danger);
}

/* 데이터 없음 */
.day-item.no-data {
  background: var(--bg-subtle);
  border-style: dashed;
}
.day-item.no-data .day-item-date { color: var(--text-tertiary); font-weight: 500; }
.day-item.no-data .day-mark { color: var(--text-tertiary); opacity: 0.5; }

/* 오늘 강조 */
.day-item.is-today {
  outline: 2px solid var(--accent, #2879f0);
  outline-offset: 1px;
}
.day-item .day-item-today-badge {
  background: var(--accent, #2879f0);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  margin-left: 2px;
  letter-spacing: -0.01em;
}

/* 수동 보정 별표 */
.day-item.manually-adjusted::after {
  content: '*';
  position: absolute;
  top: -3px;
  right: -2px;
  color: var(--warning);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  background: white;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* 범례 */
.day-list-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 12px 4px 0;
  border-top: 1px solid var(--border-subtle);
  margin-top: 14px;
  font-size: 11px;
  color: var(--text-secondary);
}
.day-list-legend .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.day-list-legend .legend-swatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
}
.day-list-legend .swatch-exposed { background: var(--text-primary); color: white; }
.day-list-legend .swatch-not-exposed { background: var(--danger-soft); color: var(--danger); border: 1px solid rgba(209,56,56,0.2); }
.day-list-legend .swatch-nodata { background: var(--bg-subtle); color: var(--text-tertiary); border: 1px solid var(--border-subtle); }
.day-list-legend .swatch-manual { background: rgba(250,204,21,0.16); color: #b45309; border: 1px solid rgba(250,204,21,0.4); }

/* 모바일 */
@media (max-width: 640px) {
  .day-cell { min-height: 38px; }
  .day-cell .day-num { font-size: 10px; }
  .day-cell .day-mark { font-size: 13px; }
}

/* ============================================================
   Modal
   ============================================================ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeIn var(--duration-base) var(--ease);
}
.modal-card {
  background: var(--bg-card);
  border-radius: var(--radius-2xl);
  padding: 28px;
  max-width: 520px;
  width: calc(100% - 32px);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp var(--duration-slow) var(--ease-out);
}

/* ============================================================
   Dropdown menu (avatar etc.)
   ============================================================ */

.dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 50;
  animation: dropdownIn var(--duration-base) var(--ease-out);
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-primary);
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease);
}
.dropdown-item:hover { background: var(--bg-hover); }
.dropdown-divider { height: 1px; background: var(--border-subtle); margin: 4px 6px; }
.dropdown-item .icon { width: 16px; color: var(--text-tertiary); }
.dropdown-item.danger { color: var(--danger); }
.dropdown-item.danger .icon { color: var(--danger); }

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d1d1f 0%, #515154 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: transform var(--duration-fast) var(--ease);
}
.avatar:hover { transform: scale(1.05); }

/* ============================================================
   Notification bell
   ============================================================ */

.bell-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: background var(--duration-fast) var(--ease);
}
.bell-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.bell-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border: 2px solid var(--bg-card);
  border-radius: 50%;
}

/* ============================================================
   Toast
   ============================================================ */

.toast-container {
  position: fixed;
  top: 76px;
  right: 28px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--text-primary);
  color: white;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  max-width: 380px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn var(--duration-base) var(--ease-out);
}
.toast.success { background: #1c7a36; }
.toast.danger { background: #a72929; }
.toast.warning { background: #8a4806; }
.toast i { font-size: 14px; }

/* ============================================================
   Animations
   ============================================================ */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-4px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.fade-in { animation: fadeIn var(--duration-base) var(--ease); }
.slide-up { animation: slideUp var(--duration-slow) var(--ease-out); }

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--bg-hover) 0%, var(--bg-active) 50%, var(--bg-hover) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
  border-radius: 6px;
}

/* ============================================================
   Tabs
   ============================================================ */

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border-default);
  margin-bottom: 20px;
}
.tab {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  cursor: pointer;
  position: relative;
  border-radius: 0;
  background: transparent;
  border: 0;
  margin-bottom: -1px;
  transition: color var(--duration-fast) var(--ease);
}
.tab:hover { color: var(--text-secondary); }
.tab.active {
  color: var(--text-primary);
  font-weight: 600;
  border-bottom: 2px solid var(--text-primary);
}
.tab .count {
  background: var(--bg-active);
  color: var(--text-tertiary);
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 6px;
  font-weight: 500;
}
.tab.active .count { background: var(--text-primary); color: white; }

/* ============================================================
   Empty state
   ============================================================ */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  color: var(--text-tertiary);
  text-align: center;
}
.empty-state .icon {
  font-size: 38px;
  color: var(--text-quaternary);
  margin-bottom: 12px;
}
.empty-state .title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.empty-state .desc {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
  max-width: 320px;
}

/* ============================================================
   Util
   ============================================================ */

.divider { height: 1px; background: var(--border-default); margin: 16px 0; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-quaternary { color: var(--text-quaternary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }

.text-display {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  line-height: 1.1;
}
.text-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}
.text-headline {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.text-body { font-size: 14px; color: var(--text-primary); }
.text-caption { font-size: 12px; color: var(--text-tertiary); }
.text-mono { font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace; font-size: 13px; }

/* Print */
@media print {
  .no-print, .sidebar, .topbar { display: none !important; }
  body, .app-shell, .main-area { background: white !important; display: block !important; }
  .page-container { padding: 0 !important; max-width: none !important; }
  .card { border: 0 !important; box-shadow: none !important; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; border: 2px solid var(--bg-page); }
::-webkit-scrollbar-thumb:hover { background: var(--text-quaternary); }
