/* ===================================
   우가24 - 공통 스타일
   Tone: 베이지/크림 화이트 + 파스텔 포인트
=================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #F8F6F2;
  --card: #FFFFFF;
  --border: #ECE6DE;
  --text: #2F2A26;
  --subtext: #7B756E;
  --beige: #E8D8C8;
  --beige-light: #F4EDE3;
  --sage: #DCE7DF;
  --sage-light: #EEF4EF;
  --blush: #F3E1E4;
  --blush-light: #FAF0F2;
  --gold: #D8C4A6;
  --gold-light: #F2EAD8;
  --warning: #E9C9B9;
  --warning-light: #FDF2EC;
  --green: #A8CBA8;
  --green-light: #EEF6EE;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 8px 24px rgba(0,0,0,0.04);
  --shadow-hover: 0 12px 32px rgba(0,0,0,0.08);
}

/* ===== DARK MODE VARIABLES ===== */
[data-theme="dark"] {
  --bg: #1C1914;
  --card: #242118;
  --border: #38332A;
  --text: #EDE8E0;
  --subtext: #9B9589;
  --beige: #4A3E31;
  --beige-light: #312A22;
  --sage: #2A3D2C;
  --sage-light: #1E2D20;
  --blush: #3D2B2E;
  --blush-light: #291E21;
  --gold: #4A3A20;
  --gold-light: #302818;
  --warning: #4A3020;
  --warning-light: #2C1E14;
  --green: #2A4A2C;
  --green-light: #1C2E1E;
  --shadow: 0 8px 24px rgba(0,0,0,0.32);
  --shadow-hover: 0 12px 32px rgba(0,0,0,0.48);
}

/* ===== DARK MODE OVERRIDES (hardcoded colors) ===== */
[data-theme="dark"] .header {
  background: rgba(28,25,20,0.97);
}
[data-theme="dark"] .mobile-tab-bar {
  background: rgba(28,25,20,0.98);
}
[data-theme="dark"] .mob-more-sheet {
  background: var(--card);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.4);
}
[data-theme="dark"] .tab-btn.active {
  background: var(--card);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
[data-theme="dark"] .kanban-item {
  background: var(--card);
}
[data-theme="dark"] .hero-chip {
  background: var(--card);
}
[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #221F19 0%, #1A1712 100%);
}
[data-theme="dark"] .btn-secondary:hover {
  background: var(--card);
}
[data-theme="dark"] tr:hover td {
  background: var(--border);
}
[data-theme="dark"] .info-row,
[data-theme="dark"] .checklist-item,
[data-theme="dark"] .status-row,
[data-theme="dark"] .schedule-item,
[data-theme="dark"] .budget-row,
[data-theme="dark"] .mob-more-item {
  border-bottom-color: var(--border);
}
[data-theme="dark"] .memo-card {
  background: linear-gradient(135deg, var(--blush-light) 0%, #221820 100%);
  border-color: var(--blush);
}
[data-theme="dark"] .modal-box {
  background: var(--card);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
}
.logo-icon { font-size: 22px; }
.logo-text { font-size: 16px; font-weight: 700; letter-spacing: -0.3px; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  text-decoration: none;
  color: var(--subtext);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.nav a:hover, .nav a.active {
  background: var(--beige-light);
  color: var(--text);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: background 0.2s;
}
.icon-btn:hover { background: var(--beige-light); }

.badge {
  position: relative;
}
.badge::after {
  content: '2';
  position: absolute;
  top: 2px; right: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #E8826A;
  color: white;
  font-size: 9px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.section { margin: 32px 0; }
.section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== CARDS ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card-title {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-subtitle {
  font-size: 12px;
  color: var(--subtext);
  margin-top: 2px;
}
.card-link {
  font-size: 12px;
  color: #A89880;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s;
}
.card-link:hover { color: var(--text); }

/* ===== INFO ROWS ===== */
.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid #F5F0EA;
}
.info-row:last-child { border-bottom: none; }

.info-label {
  font-size: 12px;
  color: var(--subtext);
  min-width: 90px;
}
.info-value {
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.masked { letter-spacing: 2px; color: var(--subtext); }

.action-btn {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  color: var(--subtext);
  transition: all 0.2s;
  font-family: inherit;
}
.action-btn:hover { background: var(--beige); color: var(--text); }

/* ===== KPI ===== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 0 0 32px 0;
}
.kpi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  box-shadow: var(--shadow);
  text-align: center;
}
.kpi-label {
  font-size: 11px;
  color: var(--subtext);
  margin-bottom: 6px;
}
.kpi-value {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.kpi-sub {
  font-size: 10px;
  color: var(--subtext);
  margin-top: 4px;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #FDF8F2 0%, #F0E8DE 100%);
  padding: 64px 32px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, #F3E1E4 0%, transparent 70%);
  top: -100px; right: -80px;
  opacity: 0.5;
}
.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 60px;
  position: relative;
  z-index: 1;
}
.hero-left { flex: 1; padding-bottom: 48px; }
.hero-badge {
  display: inline-block;
  background: var(--beige);
  color: #7A6A58;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.hero-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -1px;
  margin-bottom: 14px;
}
.hero-desc {
  font-size: 15px;
  color: var(--subtext);
  margin-bottom: 28px;
  max-width: 460px;
}
.hero-btns { display: flex; gap: 12px; }
.btn-primary {
  padding: 13px 24px;
  background: var(--text);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.btn-primary:hover { background: #1a1612; transform: translateY(-1px); }
.btn-secondary {
  padding: 13px 24px;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.btn-secondary:hover { background: white; border-color: var(--beige); }

.hero-right {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 24px;
  padding-top: 8px;
}
.hero-chip {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
}
.chip-icon { font-size: 20px; }
.chip-label { font-size: 11px; color: var(--subtext); }
.chip-value { font-size: 14px; font-weight: 700; }

/* ===== PROGRESS ===== */
.progress-wrap { margin: 10px 0; }
.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 5px;
}
.progress-bar {
  height: 7px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #C5A880 0%, #D8C4A6 100%);
  transition: width 0.8s ease;
}
.progress-fill.sage { background: linear-gradient(90deg, #8BB48E 0%, #B5D0B5 100%); }
.progress-fill.blush { background: linear-gradient(90deg, #C98FA0 0%, #E0B8C2 100%); }

/* ===== CHECKLIST ===== */
.checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #F5F0EA;
  cursor: pointer;
}
.checklist-item:last-child { border-bottom: none; }
.checklist-item input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: #8BB48E;
  cursor: pointer;
  flex-shrink: 0;
}
.checklist-label { font-size: 13px; flex: 1; transition: all 0.2s; }
.checklist-item.done .checklist-label {
  text-decoration: line-through;
  color: var(--subtext);
}
.chore-meta { font-size: 11px; color: var(--subtext); }

/* ===== TAGS / BADGES ===== */
.tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}
.tag-sage { background: var(--sage); color: #4A7A4A; }
.tag-blush { background: var(--blush); color: #8A4A58; }
.tag-beige { background: var(--beige); color: #7A6A58; }
.tag-warning { background: var(--warning); color: #8A5030; }
.tag-gold { background: var(--gold-light); color: #7A6040; }
.tag-green { background: var(--green-light); color: #3A6A3A; }

/* ===== QUICK ACTIONS ===== */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.quick-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  font-family: inherit;
  transition: all 0.2s;
}
.quick-btn:hover { background: var(--beige-light); border-color: var(--beige); }
.quick-btn .q-icon { font-size: 16px; }

/* ===== STATUS ROW ===== */
.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #F5F0EA;
}
.status-row:last-child { border-bottom: none; }
.status-name { font-size: 13px; font-weight: 500; }
.status-amount { font-size: 14px; font-weight: 700; }
.status-sub { font-size: 11px; color: var(--subtext); }

/* ===== SCHEDULE ITEMS ===== */
.schedule-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #F5F0EA;
}
.schedule-item:last-child { border-bottom: none; }
.d-badge {
  min-width: 48px;
  text-align: center;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
}
.d-urgent { background: #FCE8E0; color: #C0503A; }
.d-soon { background: var(--warning-light); color: #B06030; }
.d-ok { background: var(--sage-light); color: #4A8A4A; }
.schedule-info { flex: 1; }
.schedule-name { font-size: 13px; font-weight: 500; }
.schedule-sub { font-size: 11px; color: var(--subtext); }

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 40px 32px 0;
  max-width: 1280px;
  margin: 0 auto;
}
.page-title { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.page-desc { font-size: 14px; color: var(--subtext); }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--text);
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  z-index: 999;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ===== TABS ===== */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 16px;
}
.tab-btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  color: var(--subtext);
  transition: all 0.2s;
}
.tab-btn.active { background: white; color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }

/* ===== MEMO CARD ===== */
.memo-card {
  background: linear-gradient(135deg, #FFF9F4 0%, #FFF0F3 100%);
  border: 1px solid #F3E1E4;
}
.memo-block { margin-bottom: 14px; }
.memo-block:last-child { margin-bottom: 0; }
.memo-block-title { font-size: 11px; font-weight: 700; color: #C08080; margin-bottom: 4px; }
.memo-block-content { font-size: 13px; color: var(--text); line-height: 1.6; }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  background: var(--card);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 32px 28px;
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-brand { flex: 1; }
.footer-logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-tagline {
  font-size: 12px;
  color: var(--subtext);
  margin-bottom: 20px;
  line-height: 1.6;
}
.footer-nav {
  display: flex;
  gap: 20px;
}
.footer-nav-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
  border: none;
  background: none;
  font-family: inherit;
  padding: 0;
}
.footer-nav-link:hover { color: #A89880; }
.footer-share-btn { color: #5A8A5A !important; }
.footer-share-btn:hover { color: #3A6A3A !important; }

/* ===== 공유 배너 ===== */
.share-strip {
  background: var(--beige-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: block;
  transition: background 0.15s;
}
.share-strip:hover { background: var(--beige); }
.share-strip:active { background: var(--gold); }
.share-strip-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.share-strip-copy { display: none; }
.share-strip-btn { display: none; }

.footer-company {
  flex: 0 0 auto;
  text-align: right;
}
.footer-company-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.footer-company-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-company-row {
  font-size: 11px;
  color: var(--subtext);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.footer-company-row .fc-label {
  font-weight: 600;
  color: var(--subtext);
  flex-shrink: 0;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-copyright {
  font-size: 11px;
  color: var(--subtext);
}
.footer-contact {
  font-size: 11px;
  color: var(--subtext);
}
.footer-contact a {
  color: var(--subtext);
  text-decoration: none;
}
.footer-contact a:hover { color: var(--text); }

/* footer feedback/about modal */
.footer-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 600;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.footer-modal-overlay.open { display: flex; }
.footer-modal-box {
  background: var(--card);
  border-radius: 20px;
  padding: 32px;
  width: 480px;
  max-width: 100%;
  box-shadow: 0 24px 48px rgba(0,0,0,0.15);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.footer-modal-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
  padding-right: 40px;
}
.footer-modal-sub {
  font-size: 13px;
  color: var(--subtext);
  margin-bottom: 24px;
  line-height: 1.6;
}
.footer-modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--subtext);
}
.footer-modal-close:hover { background: var(--beige); color: var(--text); }
.footer-field { margin-bottom: 14px; }
.footer-label { font-size: 12px; font-weight: 700; color: var(--subtext); margin-bottom: 5px; display: block; }
.footer-input, .footer-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.footer-input:focus, .footer-textarea:focus { border-color: #B5A090; background: var(--card); }
.footer-textarea { resize: vertical; min-height: 120px; }
.footer-submit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  background: var(--text);
  color: white;
  margin-top: 4px;
  transition: all 0.2s;
}
.footer-submit:hover { opacity: 0.88; }

@media (max-width: 768px) {
  .footer-top { flex-direction: column; gap: 24px; }
  .footer-company { text-align: left; }
  .footer-company-row { justify-content: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-inner { padding: 32px 16px 24px; }
  .footer-nav { flex-direction: column; gap: 12px; }
}

/* ===== KANBAN BOARD ===== */
.kanban-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.kanban-col {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.kanban-col-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.kanban-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 8px;
}
.kanban-item:last-child { margin-bottom: 0; }
.kanban-item-name { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.kanban-item-meta { font-size: 11px; color: var(--subtext); }

/* ===== BUDGET CATEGORY ===== */
.budget-row {
  padding: 12px 0;
  border-bottom: 1px solid #F5F0EA;
}
.budget-row:last-child { border-bottom: none; }
.budget-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.budget-name { font-size: 13px; font-weight: 500; }
.budget-amounts { font-size: 12px; color: var(--subtext); }
.budget-amounts strong { color: var(--text); font-weight: 700; }

/* ===== TABLE ===== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
th {
  font-weight: 700;
  font-size: 11px;
  color: var(--subtext);
  background: var(--bg);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
tr:hover td { background: #FEFCF9; }

/* ===== MOBILE BOTTOM TAB BAR ===== */
.mobile-tab-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 6px 0 env(safe-area-inset-bottom, 8px);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}
.mobile-tab-bar-inner {
  display: flex;
  align-items: stretch;
}
.mob-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 4px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  color: var(--subtext);
  transition: color 0.18s;
  min-height: 52px;
}
.mob-tab-icon {
  font-size: 22px;
  line-height: 1;
  transition: transform 0.18s;
}
.mob-tab-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.mob-tab.active { color: #E87070; }
.mob-tab.active .mob-tab-icon { transform: scale(1.12); }
.mob-tab:not(.active):active .mob-tab-icon { transform: scale(0.92); }

/* 더보기 sheet */
.mob-more-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.28);
  z-index: 350;
}
.mob-more-overlay.open { display: block; }
.mob-more-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: white;
  border-radius: 20px 20px 0 0;
  padding: 12px 0 calc(80px + env(safe-area-inset-bottom, 8px));
  z-index: 360;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.34,1.2,0.64,1);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.12);
}
.mob-more-sheet.open { transform: translateY(0); }
.mob-more-handle {
  width: 36px; height: 4px; border-radius: 2px;
  background: var(--border); margin: 0 auto 16px;
}
.mob-more-title {
  font-size: 13px; font-weight: 700; color: var(--subtext);
  padding: 0 20px 10px; letter-spacing: 0.2px;
}
.mob-more-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; text-decoration: none; color: var(--text);
  font-size: 16px; font-weight: 600;
  border-bottom: 1px solid #F5F0EA; transition: background 0.15s;
}
.mob-more-item:last-child { border-bottom: none; }
.mob-more-item:active { background: var(--bg); }
.mob-more-item-icon {
  width: 44px; height: 44px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; background: var(--bg); flex-shrink: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .kanban-wrap { grid-template-columns: repeat(2, 1fr); }
  .hero-right { display: none; }
  .hero-title { font-size: 28px; }
}
@media (max-width: 768px) {
  .mobile-tab-bar { display: block; }
  body { padding-bottom: 72px; }

  .header { padding: 0 16px; height: 56px; }
  .nav { display: none; }
  .logo-text { font-size: 15px; }

  .container { padding: 0 16px; }
  .hero { padding: 28px 16px 0; }
  .page-header { padding: 20px 16px 0; }
  .page-title { font-size: 22px; }
  .page-desc { font-size: 13px; }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .kanban-wrap { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }

  .hero-title { font-size: 22px; }
  .hero-desc { font-size: 14px; }

  .card { padding: 18px; }
  .kpi-card { padding: 14px; }
  .kpi-value { font-size: 17px; }

  .section { margin: 20px 0; }
  .section-title { font-size: 16px; }

  /* Toast above tab bar on mobile */
  .toast { bottom: 88px; }

  .footer { margin-top: 32px; padding: 28px 16px; }

  th, td { padding: 10px 12px; }
}
