:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #64748b;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #06b6d4;
  --bg: #f1f5f9;
  --card-bg: #ffffff;
  --text: #1e293b;
  --text-secondary: #64748b;
  --border: #e2e8f0;
  --sidebar-width: 260px;
  --header-height: 64px;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: var(--bg); color: var(--text); font-size: 14px; }

/* Layout */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-width); background: #0f172a; color: #cbd5e1;
  position: fixed; left: 0; top: 0; bottom: 0; overflow-y: auto; z-index: 100;
  transition: transform 0.3s; display: flex; flex-direction: column;
}
.sidebar .brand { padding: 18px 20px; font-size: 18px; font-weight: 700; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; gap: 10px; }
.sidebar .brand .icon { width: 32px; height: 32px; background: var(--primary); border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center; }
.nav-group { padding: 8px 0; }
.nav-title { padding: 8px 20px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: #94a3b8; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 20px; cursor: pointer; transition: 0.2s; position: relative; }
.nav-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
.nav-item.active { background: rgba(37,99,235,0.15); color: #60a5fa; border-right: 3px solid var(--primary); }
.nav-item .nav-icon { width: 20px; text-align: center; font-size: 16px; }
.nav-item .nav-text { flex: 1; }

.main { flex: 1; margin-left: var(--sidebar-width); display: flex; flex-direction: column; min-height: 100vh; }
.header {
  height: var(--header-height); background: var(--card-bg); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; padding: 0 24px;
  position: sticky; top: 0; z-index: 50;
}
.header-left { display: flex; align-items: center; gap: 16px; }
.menu-toggle { display: none; background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text); }
.page-title { font-size: 18px; font-weight: 600; }
.header-right { display: flex; align-items: center; gap: 16px; }
.header-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; cursor: pointer; }
.content { padding: 20px; flex: 1; overflow: auto; }

/* Login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1e293b, #0f172a); }
.login-card { background: var(--card-bg); padding: 40px; border-radius: var(--radius); width: 420px; max-width: 90%; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.login-card .brand { text-align: center; margin-bottom: 28px; }
.login-card .brand h1 { font-size: 22px; margin-top: 12px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; color: var(--text-secondary); }
.form-control { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); outline: none; transition: 0.2s; font-size: 14px; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border: none; border-radius: var(--radius); cursor: pointer; font-size: 14px; font-weight: 500; transition: 0.2s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-success { background: var(--success); color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-block { width: 100%; }

/* Cards */
.card { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-title { font-size: 16px; font-weight: 600; }
.card-body { padding: 20px; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card { padding: 20px; display: flex; align-items: flex-start; gap: 16px; }
.stat-icon { width: 48px; height: 48px; border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }
.stat-icon.blue { background: #eff6ff; color: var(--primary); }
.stat-icon.green { background: #ecfdf5; color: var(--success); }
.stat-icon.orange { background: #fffbeb; color: var(--warning); }
.stat-icon.red { background: #fef2f2; color: var(--danger); }
.stat-value { font-size: 24px; font-weight: 700; }
.stat-label { color: var(--text-secondary); font-size: 13px; margin-top: 2px; }

/* Tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table thead th { text-align: left; padding: 12px 16px; background: #f8fafc; font-weight: 600; color: var(--text-secondary); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:hover { background: #f8fafc; }
.table tbody tr:last-child td { border-bottom: none; }

/* Tags */
.tag { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.tag-success { background: #d1fae5; color: #065f46; }
.tag-warning { background: #fef3c7; color: #92400e; }
.tag-danger { background: #fee2e2; color: #991b1b; }
.tag-info { background: #cffafe; color: #155e75; }
.tag-default { background: #f1f5f9; color: #475569; }

/* Search & Filters */
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filter-bar .form-control { width: auto; min-width: 180px; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal { background: var(--card-bg); border-radius: var(--radius); width: 640px; max-width: 100%; max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0,0,0,0.25); }
.modal-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-footer { padding: 16px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* Tabs */
.tabs { display: flex; border-bottom: 1px solid var(--border); gap: 8px; margin-bottom: 16px; }
.tab { padding: 10px 16px; cursor: pointer; border-bottom: 2px solid transparent; color: var(--text-secondary); font-weight: 500; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Kanban */
.kanban { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.kanban-col { background: #f8fafc; border-radius: var(--radius); padding: 12px; }
.kanban-col-title { font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.kanban-item { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; margin-bottom: 10px; cursor: pointer; transition: 0.2s; }
.kanban-item:hover { box-shadow: var(--shadow); border-color: var(--primary); }
.kanban-item-title { font-weight: 600; margin-bottom: 6px; }
.kanban-item-meta { color: var(--text-secondary); font-size: 12px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Progress */
.progress { height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--primary); border-radius: 999px; transition: width 0.5s; }

/* Timeline */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 4px; bottom: 4px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 20px; }
.timeline-item::before { content: ''; position: absolute; left: -21px; top: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); border: 2px solid var(--card-bg); }
.timeline-time { font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; }
.timeline-title { font-weight: 600; }
.timeline-desc { color: var(--text-secondary); font-size: 13px; margin-top: 4px; }

/* Empty */
.empty { text-align: center; padding: 60px 20px; color: var(--text-secondary); }
.empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }

/* Sub-parent (level 2) inside nav-children */
.nav-sub-parent {
  display: flex; align-items: center; gap: 10px; padding: 8px 20px 8px 36px;
  cursor: pointer; transition: 0.2s; color: #cbd5e1; position: relative; font-size: 13px;
}
.nav-sub-parent:hover { background: rgba(255,255,255,0.05); color: #fff; }
.nav-sub-parent.open { color: #60a5fa; }
.nav-sub-parent .nav-arrow { margin-left: auto; font-size: 9px; transition: transform 0.2s; color: #94a3b8; }
.nav-sub-parent.open .nav-arrow { transform: rotate(90deg); color: #60a5fa; }
.nav-sub-parent::before {
  content: ''; position: absolute; left: 22px; top: 0; bottom: 0; width: 1px;
  background: rgba(255,255,255,0.08);
}
.nav-sub-children { display: none; }
.nav-sub-children.open { display: block; animation: fadeIn 0.2s ease; }
.nav-grandchild {
  padding: 7px 20px 7px 60px; cursor: pointer; transition: 0.2s;
  color: #94a3b8; font-size: 12px; position: relative; border-right: 3px solid transparent;
}
.nav-grandchild:hover { background: rgba(255,255,255,0.05); color: #fff; }
.nav-grandchild.active { color: #60a5fa; background: rgba(37,99,235,0.12); border-right-color: var(--primary); }
.nav-grandchild::before {
  content: ''; position: absolute; left: 44px; top: 0; bottom: 0; width: 1px;
  background: rgba(255,255,255,0.06);
}

/* Mobile Bottom Nav */
.mobile-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--card-bg); border-top: 1px solid var(--border); z-index: 100; }
.mobile-nav-items { display: flex; justify-content: space-around; padding: 6px 0; }
.mobile-nav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 12px; color: var(--text-secondary); font-size: 11px; cursor: pointer; }
.mobile-nav-item.active { color: var(--primary); }
.mobile-nav-item .icon { font-size: 20px; }

/* Page switcher sections */
.page-section { display: none; }
.page-section.active { display: block; }

/* Responsive */
@media (max-width: 768px) {
  :root { --sidebar-width: 0px; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); width: 260px; }
  .main { margin-left: 0; }
  .menu-toggle { display: inline-flex; }
  .content { padding: 12px; padding-bottom: 70px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-bar .form-control { min-width: 140px; flex: 1; }
  .header { padding: 0 12px; }
  .mobile-nav { display: block; }
  .table { min-width: 600px; }
  .hide-mobile { display: none !important; }
}

/* Utilities */
.text-right { text-align: right; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mt-2 { margin-top: 8px; }
.mr-2 { margin-right: 8px; }
.w-full { width: 100%; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* Tree Menu */
.nav-tree { user-select: none; }
.nav-parent {
  display: flex; align-items: center; gap: 12px; padding: 10px 20px;
  cursor: pointer; transition: 0.2s; color: #cbd5e1; position: relative;
}
.nav-parent:hover { background: rgba(255,255,255,0.05); color: #fff; }
.nav-parent.open { background: rgba(255,255,255,0.04); }
.nav-parent .nav-arrow { margin-left: auto; font-size: 10px; transition: transform 0.2s; color: #94a3b8; }
.nav-parent.open .nav-arrow { transform: rotate(90deg); }
.nav-children { display: none; }
.nav-children.open { display: block; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.nav-child {
  padding: 8px 20px 8px 52px; cursor: pointer; transition: 0.2s;
  color: #94a3b8; font-size: 13px; position: relative; border-right: 3px solid transparent;
}
.nav-child:hover { background: rgba(255,255,255,0.05); color: #fff; }
.nav-child.active { color: #60a5fa; background: rgba(37,99,235,0.12); border-right-color: var(--primary); }
.nav-child::before {
  content: ''; position: absolute; left: 36px; top: 0; bottom: 0; width: 1px;
  background: rgba(255,255,255,0.08);
}

/* ========== Mobile App ========== */
.mobile-app { max-width: 480px; margin: 0 auto; background: #f5f7fa; min-height: 100vh; position: relative; padding-bottom: 64px; }
.mobile-header {
  position: sticky; top: 0; z-index: 50; background: linear-gradient(135deg, var(--primary), #1e40af);
  color: #fff; padding: 16px; display: flex; align-items: center; justify-content: space-between;
}
.mobile-header h1 { font-size: 18px; font-weight: 600; }
.mobile-header .sub { font-size: 12px; opacity: 0.9; }
.mobile-page { display: none; }
.mobile-page.active { display: block; }
.mobile-tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; background: #fff;
  border-top: 1px solid var(--border); display: flex; justify-content: space-around;
  z-index: 100; max-width: 480px; margin: 0 auto;
}
.mobile-tabbar-item { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 6px 0; gap: 3px; color: #94a3b8; font-size: 11px; cursor: pointer; transition: 0.2s; }
.mobile-tabbar-item .icon { font-size: 20px; }
.mobile-tabbar-item.active { color: var(--primary); }

/* Action grid */
.action-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 16px; }
.action-item { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.action-icon { width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.action-label { font-size: 12px; color: var(--text); font-weight: 500; }

/* Mobile cards */
.mobile-section { padding: 0 16px 16px; }
.mobile-section-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.mobile-section-title .more { margin-left: auto; font-size: 13px; color: var(--primary); font-weight: 500; }
.m-card { background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.m-card-row { display: flex; align-items: center; gap: 12px; }
.m-card-icon { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.m-card-body { flex: 1; min-width: 0; }
.m-card-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.m-card-desc { font-size: 12px; color: var(--text-secondary); }
.m-card-right { text-align: right; flex-shrink: 0; }
.m-card-arrow { color: #cbd5e1; font-size: 14px; }

/* Mobile stats row */
.m-stats-row { display: flex; gap: 10px; padding: 0 16px 16px; }
.m-stat { flex: 1; background: #fff; border-radius: 12px; padding: 14px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.m-stat-value { font-size: 22px; font-weight: 700; color: var(--primary); }
.m-stat-label { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

/* Mobile list */
.m-list-item { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); gap: 12px; }
.m-list-item:last-child { border-bottom: none; }
.m-list-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; flex-shrink: 0; }

/* Mobile form */
.m-form-group { margin-bottom: 16px; }
.m-form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--text); }
.m-form-group .form-control { padding: 12px 14px; font-size: 15px; }
.m-btn { padding: 12px; font-size: 15px; border-radius: 10px; }

/* Mobile badge */
.m-badge { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; background: var(--danger); color: #fff; font-size: 10px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }

/* Mobile login */
.m-login { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 24px; background: linear-gradient(180deg, #1e293b, #0f172a); }
.m-login-card { background: #fff; border-radius: 16px; padding: 32px 24px; }
.m-login-title { text-align: center; font-size: 20px; font-weight: 700; margin-bottom: 24px; color: var(--text); }

/* Swipe cards */
.m-swipe-cards { display: flex; gap: 10px; overflow-x: auto; padding: 0 16px 16px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.m-swipe-cards::-webkit-scrollbar { display: none; }
.m-swipe-card { min-width: 260px; background: linear-gradient(135deg, var(--primary), #1e40af); border-radius: 16px; padding: 20px; color: #fff; scroll-snap-align: start; }
.m-swipe-card.orange { background: linear-gradient(135deg, var(--warning), #d97706); }
.m-swipe-card.red { background: linear-gradient(135deg, var(--danger), #dc2626); }
.m-swipe-card.green { background: linear-gradient(135deg, var(--success), #059669); }
.m-swipe-card-title { font-size: 14px; opacity: 0.9; margin-bottom: 8px; }
.m-swipe-card-value { font-size: 28px; font-weight: 700; }

/* Mobile detail page */
.m-detail-page { display: none; position: fixed; inset: 0; background: #f5f7fa; z-index: 300; flex-direction: column; }
.m-detail-page.open { display: flex; }
.m-detail-header { background: #fff; padding: 12px 16px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); }
.m-detail-content { flex: 1; overflow-y: auto; padding: 16px; }
.m-detail-back { font-size: 20px; color: var(--text); background: none; border: none; cursor: pointer; }

/* Mobile media */
@media (min-width: 769px) {
  .mobile-app { border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
}

/* ========== Mobile Core Functions ========== */
.m-core-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.m-core-item { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; }
.m-core-icon {
  width: 56px; height: 56px; border-radius: 16px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 26px; color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); transition: transform 0.2s;
}
.m-core-item:active .m-core-icon { transform: scale(0.92); }
.m-core-label { font-size: 12px; color: var(--text); font-weight: 600; }

/* Mobile Timeline */
.m-timeline { position: relative; padding-left: 20px; }
.m-timeline::before { content: ''; position: absolute; left: 5px; top: 4px; bottom: 4px; width: 2px; background: var(--border); }
.m-timeline-item { position: relative; padding-bottom: 16px; }
.m-timeline-item:last-child { padding-bottom: 0; }
.m-timeline-dot {
  position: absolute; left: -20px; top: 4px; width: 12px; height: 12px;
  border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--border);
}
.m-timeline-body { padding-left: 4px; }

/* Mobile Photo Grid */
.m-photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.m-photo-item { aspect-ratio: 1; overflow: hidden; }

/* Mobile Watermark Preview */
.m-watermark-preview { border-radius: 8px; overflow: hidden; }
.m-watermark-info { background: rgba(0,0,0,0.7); color: #fff; padding: 8px 12px; }

/* Mobile Radio Buttons */
.m-radio-btn {
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 400;
  padding: 8px 16px; border: 1px solid var(--border); border-radius: 20px; cursor: pointer;
  transition: 0.2s;
}
.m-radio-btn:has(input:checked) { border-color: var(--primary); background: #eff6ff; color: var(--primary); }
.m-radio-btn input { display: none; }

/* Mobile Rectify Steps */
.m-rectify-steps { position: relative; padding-left: 24px; }
.m-rectify-steps::before {
  content: ''; position: absolute; left: 8px; top: 12px; bottom: 12px; width: 2px;
  background: var(--border);
}
.m-rectify-step { position: relative; padding-bottom: 20px; }
.m-rectify-step:last-child { padding-bottom: 0; }
.m-rectify-dot {
  position: absolute; left: -24px; top: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: #e2e8f0; border: 3px solid #fff;
  box-shadow: 0 0 0 2px #e2e8f0; transition: 0.3s;
}
.m-rectify-step.completed .m-rectify-dot { background: var(--success); box-shadow: 0 0 0 2px var(--success); }
.m-rectify-step.current .m-rectify-dot { background: var(--primary); box-shadow: 0 0 0 2px var(--primary); animation: mPulse 1.5s infinite; }
.m-rectify-title { font-weight: 600; font-size: 14px; color: var(--text); }
.m-rectify-step.completed .m-rectify-title { color: var(--success); }
.m-rectify-step.current .m-rectify-title { color: var(--primary); }
.m-rectify-desc { font-size: 12px; color: #94a3b8; margin-top: 2px; }
@keyframes mPulse { 0%,100% { box-shadow: 0 0 0 2px var(--primary); } 50% { box-shadow: 0 0 0 6px rgba(37,99,235,0.2); } }

/* Mobile inspect tabs fix */
.m-inspect-tabs .m-inspect-tab { flex:1; text-align:center; padding:12px 4px; font-size:12px; font-weight:500; color:var(--text-secondary); cursor:pointer; border-bottom:2px solid transparent; transition:0.2s; white-space:nowrap; }
.m-inspect-tabs .m-inspect-tab.active { color:var(--primary); border-bottom-color:var(--primary); }
.m-inspect-content { display:none; }
.m-inspect-content.active { display:block; }

/* Mobile task card */
.m-task-card { cursor: pointer; transition: 0.15s; }
.m-task-card:active { transform: scale(0.98); background: #f8fafc; }


