@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #3182F6;
  --blue-dark: #1B64DA;
  --blue-light: #E8F3FF;
  --gray-50: #F9FAFB;
  --gray-100: #F2F4F6;
  --gray-200: #E5E8EB;
  --gray-300: #D1D6DB;
  --gray-400: #B0B8C1;
  --gray-500: #8B95A1;
  --gray-600: #6B7684;
  --gray-700: #4E5968;
  --gray-800: #333D4B;
  --gray-900: #191F28;
  --green-50: #F0FDF4;
  --green-600: #16A34A;
  --purple-50: #FAF5FF;
  --purple-600: #9333EA;
  --shadow: 0 2px 8px rgba(0,0,0,.04);
  --shadow-hover: 0 4px 16px rgba(0,0,0,.08);
  --radius: 16px;
  --max-w: 480px;
}

body {
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--gray-100);
  color: var(--gray-900);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }

/* Layout */
.page { max-width: var(--max-w); margin: 0 auto; padding-bottom: 80px; }
.page.no-nav { padding-bottom: 24px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 16px; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.header-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.header-title { font-size: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.back-btn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; margin-left: -4px;
  color: var(--gray-600); border-radius: 8px;
}
.back-btn:hover { color: var(--gray-900); }
.header-action { font-size: 14px; font-weight: 600; color: var(--blue); display: flex; align-items: center; gap: 4px; }

/* Content */
.content { padding: 24px 16px; }
.section-title { font-size: 16px; font-weight: 700; color: var(--gray-800); margin-bottom: 16px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-header .section-title { margin-bottom: 0; }

/* Card */
.card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px;
}
.card + .card, .card-list .card { margin-top: 12px; }
.card-list { display: flex; flex-direction: column; gap: 12px; }
.card-hover:hover { box-shadow: var(--shadow-hover); transition: box-shadow .2s; }

/* Buttons */
.btn-primary {
  display: block; width: 100%; padding: 16px;
  background: var(--blue); color: #fff;
  font-size: 16px; font-weight: 600;
  border: none; border-radius: 12px; cursor: pointer;
  transition: background .2s, transform .1s;
}
.btn-primary:hover { background: var(--blue-dark); }
.btn-primary:active { transform: scale(.98); }

.btn-secondary {
  display: block; width: 100%; padding: 16px;
  background: var(--gray-100); color: var(--gray-800);
  font-size: 16px; font-weight: 600;
  border: none; border-radius: 12px; cursor: pointer;
  transition: background .2s;
}
.btn-secondary:hover { background: var(--gray-200); }

.btn-inline {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 14px; font-weight: 600; color: var(--blue);
  background: none; border: none; cursor: pointer;
}

.btn-dashed {
  width: 100%; padding: 24px;
  background: #fff; border: 2px dashed var(--gray-300);
  border-radius: var(--radius); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--gray-500); font-weight: 600; font-size: 15px;
  transition: all .2s;
}
.btn-dashed:hover { border-color: var(--blue); color: var(--blue); background: rgba(232,243,255,.3); }

/* Stats */
.stats-row { display: flex; gap: 12px; margin-bottom: 24px; align-items: stretch; }
.stats-row .card + .card { margin-top: 0; }
.stat-card {
  flex: 1; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 120px; min-height: 120px; padding: 16px 12px;
}
.stat-label { font-size: 13px; color: var(--gray-500); margin-bottom: 6px; flex-shrink: 0; }
.stat-value { font-size: 24px; font-weight: 700; line-height: 1.2; }
.stat-sub { font-size: 11px; color: var(--gray-400); margin-top: 6px; min-height: 16px; line-height: 16px; }
.stat-sub-placeholder { visibility: hidden; }
.btn-admin-dash {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px; margin-bottom: 24px;
  border: 2px solid var(--blue); border-radius: 12px;
  background: #fff; color: var(--blue);
  font-size: 15px; font-weight: 700; text-decoration: none;
}
.btn-admin-dash:hover { background: var(--blue-light); }
.completed-card-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.btn-blog-sm {
  display: block; text-align: center; padding: 10px 14px; border-radius: 10px;
  font-size: 13px; font-weight: 700; text-decoration: none;
  background: linear-gradient(135deg, #7C3AED, #9333EA); color: #fff;
}

/* Hero card */
.hero-card {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff; border-radius: var(--radius); padding: 24px; margin-bottom: 24px;
}
.hero-card .label { font-size: 13px; opacity: .7; margin-bottom: 4px; }
.hero-card .value { font-size: 28px; font-weight: 700; }
.hero-card .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 16px; }
.hero-card .top { display: flex; align-items: center; gap: 8px; opacity: .8; font-size: 13px; margin-bottom: 8px; }

/* Period tabs */
.period-tabs {
  display: flex; gap: 8px; overflow-x: auto;
  margin-bottom: 24px; padding-bottom: 4px;
  scrollbar-width: none;
}
.period-tabs::-webkit-scrollbar { display: none; }
.period-tab {
  flex-shrink: 0; padding: 8px 16px;
  border-radius: 999px; border: none; cursor: pointer;
  font-size: 14px; font-weight: 600;
  background: #fff; color: var(--gray-600);
  transition: all .2s;
}
.period-tab.active { background: var(--blue); color: #fff; }
.period-tab:hover:not(.active) { background: var(--gray-200); }

/* Work log card */
.time-badge {
  display: inline-flex; padding: 4px 12px;
  background: var(--blue-light); color: var(--blue);
  font-size: 14px; font-weight: 600; border-radius: 8px;
}
.log-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.log-cost { font-size: 16px; font-weight: 700; }
.log-location { font-size: 13px; color: var(--gray-500); margin-bottom: 4px; }
.log-desc { font-size: 15px; font-weight: 500; color: var(--gray-800); }
.photo-row { display: flex; gap: 8px; margin-top: 12px; }
.photo-thumb {
  width: 64px; height: 64px; background: var(--gray-100);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--gray-400);
}

/* Avatar */
.avatar {
  border-radius: 50%; background: var(--blue-light); color: var(--blue);
  font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.avatar-sm { width: 32px; height: 32px; font-size: 13px; }
.avatar-md { width: 40px; height: 40px; font-size: 16px; }
.avatar-lg { width: 56px; height: 56px; font-size: 20px; }

/* Badge */
.badge {
  display: inline-flex; padding: 4px 10px;
  border-radius: 8px; font-size: 12px; font-weight: 600;
}
.badge-pending { background: var(--gray-100); color: var(--gray-600); }
.badge-progress { background: var(--blue-light); color: var(--blue); }
.badge-done { background: var(--green-50); color: var(--green-600); }

/* Profile row */
.profile-row { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.profile-name { font-size: 18px; font-weight: 700; }
.profile-sub { font-size: 13px; color: var(--gray-500); }

/* Worker list item */
.worker-item {
  display: flex; align-items: center; gap: 16px; cursor: pointer;
}
.worker-info { flex: 1; min-width: 0; }
.worker-name { font-size: 16px; font-weight: 700; }
.worker-phone { font-size: 13px; color: var(--gray-500); }
.worker-stats { text-align: right; flex-shrink: 0; }
.worker-count { font-size: 16px; font-weight: 700; }
.worker-cost { font-size: 13px; color: var(--blue); font-weight: 600; }
.chevron { color: var(--gray-300); flex-shrink: 0; }

/* Alert banner */
.alert-banner {
  background: var(--blue-light); border: 1px solid rgba(49,130,246,.2);
  border-radius: var(--radius); padding: 16px; margin-bottom: 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.alert-title { font-size: 14px; font-weight: 600; color: var(--blue); }
.alert-sub { font-size: 12px; color: rgba(49,130,246,.7); margin-top: 2px; }
.alert-link { font-size: 14px; font-weight: 600; color: var(--blue); }

/* Order card */
.order-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.order-worker { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.order-location { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.order-location svg { flex-shrink: 0; margin-top: 2px; color: var(--gray-400); }
.order-desc { font-size: 13px; color: var(--gray-500); padding-left: 24px; margin-bottom: 12px; }
.order-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--gray-100);
}
.order-time { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--blue); font-weight: 600; }
.order-created { font-size: 11px; color: var(--gray-400); }

/* Section dot */
.section-label { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: var(--gray-800); margin-bottom: 16px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-blue { background: var(--blue); }
.dot-gray { background: var(--gray-300); }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--gray-700); margin-bottom: 8px;
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 14px 16px;
  background: var(--gray-100); border: none; border-radius: 12px;
  font-size: 15px; font-family: inherit; color: var(--gray-900);
  outline: none; transition: box-shadow .2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  box-shadow: 0 0 0 2px rgba(49,130,246,.3);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--gray-400); }
.form-textarea { min-height: 120px; resize: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.input-with-unit { position: relative; }
.input-with-unit .form-input { padding-right: 40px; }
.input-unit { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--gray-500); }

/* Photo upload */
.photo-grid { display: flex; gap: 12px; flex-wrap: wrap; }
.photo-item { position: relative; width: 80px; height: 80px; }
.photo-item .photo-thumb { width: 100%; height: 100%; }
.photo-remove {
  position: absolute; top: -6px; right: -6px;
  width: 20px; height: 20px; background: var(--gray-700); color: #fff;
  border: none; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.photo-add {
  width: 80px; height: 80px;
  border: 2px dashed var(--gray-300); border-radius: 12px;
  background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--gray-400); font-size: 10px; gap: 4px;
  transition: all .2s;
}
.photo-add:hover { border-color: var(--blue); color: var(--blue); }

/* Bottom nav */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; border-top: 1px solid var(--gray-200); z-index: 50;
}
.bottom-nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex;
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 12px 0; font-size: 11px; font-weight: 500;
  color: var(--gray-400); transition: color .2s;
}
.nav-item.active { color: var(--blue); }
.nav-item svg { width: 22px; height: 22px; }

/* Home */
.home { min-height: 100vh; display: flex; flex-direction: column; }
.home-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px; }
.home-logo {
  width: 80px; height: 80px; background: var(--blue);
  border-radius: 24px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px; box-shadow: var(--shadow);
}
.home-title { font-size: 28px; font-weight: 700; text-align: center; margin-bottom: 8px; }
.home-sub { color: var(--gray-500); text-align: center; margin-bottom: 40px; }
.home-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px 32px; }
.role-list { width: 100%; max-width: 384px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.role-card {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); transition: all .2s;
}
.role-card:hover { box-shadow: var(--shadow-hover); transform: scale(.99); }
.role-card:active { transform: scale(.98); }
.role-icon {
  width: 56px; height: 56px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.role-icon.blue { background: var(--blue-light); color: var(--blue); }
.role-icon.purple { background: var(--purple-50); color: var(--purple-600); }
.role-icon.green { background: var(--green-50); color: var(--green-600); }
.role-title { font-size: 18px; font-weight: 700; }
.role-desc { font-size: 13px; color: var(--gray-500); }
.home-footer { text-align: center; font-size: 11px; color: var(--gray-400); padding-bottom: 32px; }

/* Tech stack (index) */
.tech-stack {
  width: 100%; max-width: 520px;
  background: #fff; border-radius: var(--radius);
  padding: 20px 20px 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
}
.tech-stack-title {
  font-size: 13px; font-weight: 700; color: var(--gray-500);
  text-align: center; letter-spacing: 0.04em;
  text-transform: uppercase; margin-bottom: 16px;
}
.tech-stack-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.tech-stack-group {
  background: var(--gray-50); border-radius: 14px;
  padding: 14px 14px 12px;
  border: 1px solid var(--gray-100);
}
.tech-stack-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.tech-stack-head h3 {
  font-size: 13px; font-weight: 700; color: var(--gray-800);
}
.tech-stack-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.tech-dot-front { background: #3182F6; box-shadow: 0 0 0 3px rgba(49,130,246,.2); }
.tech-dot-back { background: #16A34A; box-shadow: 0 0 0 3px rgba(22,163,74,.2); }
.tech-dot-infra { background: #EA580C; box-shadow: 0 0 0 3px rgba(234,88,12,.2); }
.tech-dot-db { background: #9333EA; box-shadow: 0 0 0 3px rgba(147,51,234,.2); }
.tech-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tech-chip {
  font-size: 11px; font-weight: 600; padding: 5px 10px;
  border-radius: 999px; background: #fff;
  color: var(--gray-700); border: 1px solid var(--gray-200);
  line-height: 1.2;
}
.tech-chip-html { background: #FFF4ED; color: #C2410C; border-color: #FED7AA; }
.tech-chip-css { background: #EFF6FF; color: #1D4ED8; border-color: #BFDBFE; }
.tech-chip-js { background: #FEFCE8; color: #A16207; border-color: #FEF08A; }
.tech-chip-node { background: #ECFDF5; color: #047857; border-color: #A7F3D0; }
.tech-chip-express { background: #F0FDF4; color: #15803D; border-color: #BBF7D0; }
.tech-chip-rest { background: #F8FAFC; color: #475569; border-color: #E2E8F0; }
.tech-chip-aws { background: #FFF7ED; color: #C2410C; border-color: #FED7AA; }
.tech-chip-ubuntu { background: #FDF4FF; color: #7E22CE; border-color: #E9D5FF; }
.tech-chip-mysql { background: #EFF6FF; color: #1E40AF; border-color: #BFDBFE; }

@media (max-width: 400px) {
  .tech-stack-grid { grid-template-columns: 1fr; }
}

/* Empty state */
.empty { text-align: center; padding: 64px 16px; color: var(--gray-400); }
.empty-icon { width: 64px; height: 64px; background: var(--gray-200); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 24px; }
.empty p { font-size: 14px; }

/* Date group */
.date-label { font-size: 13px; font-weight: 600; color: var(--gray-500); margin-bottom: 12px; }
.date-group + .date-group { margin-top: 24px; }

/* Bell badge */
.bell-wrap { position: relative; display: flex; padding: 4px; color: var(--gray-600); }
.bell-badge {
  position: absolute; top: 0; right: 0;
  width: 16px; height: 16px; background: #EF4444; color: #fff;
  font-size: 10px; font-weight: 700; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* Form card highlight */
.form-card { border: 2px solid rgba(49,130,246,.2); }
.form-actions { display: flex; gap: 12px; padding-top: 8px; }
.form-actions .btn-primary, .form-actions .btn-secondary { flex: 1; }

/* Utility */
.mb-24 { margin-bottom: 24px; }
.mb-16 { margin-bottom: 16px; }
.space-y-24 > * + * { margin-top: 24px; }
.hidden { display: none !important; }

/* SVG icons inline sizing */
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }

/* Clickable log card */
.log-card-link { display: block; cursor: pointer; transition: box-shadow .2s, transform .1s; }
.log-card-link:active { transform: scale(.99); }
.log-tap-hint { font-size: 12px; color: var(--blue); margin-top: 12px; font-weight: 500; }
.photo-thumb.more { font-size: 14px; font-weight: 600; color: var(--gray-500); }
.thumb-gif {
  position: absolute; bottom: 2px; right: 2px;
  background: rgba(0,0,0,.6); color: #fff; font-size: 9px;
  padding: 1px 4px; border-radius: 4px; font-weight: 700;
}
.photo-thumb { position: relative; overflow: hidden; }

/* Detail page */
.detail-info .detail-row {
  display: flex; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--gray-100); font-size: 14px;
}
.detail-info .detail-row:last-child { border-bottom: none; }
.detail-label { flex-shrink: 0; width: 72px; font-weight: 600; color: var(--gray-500); }
.media-count { font-size: 13px; font-weight: 600; color: var(--blue); }
.media-hint { font-size: 12px; color: var(--gray-400); margin: -8px 0 16px; }

.media-grid-large {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px;
}
.media-card {
  position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden;
  background: var(--gray-100);
}
.media-card img { width: 100%; height: 100%; object-fit: cover; }
.media-gif-badge {
  position: absolute; bottom: 4px; left: 4px;
  background: rgba(0,0,0,.65); color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px;
}
.media-remove {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px; background: rgba(0,0,0,.6); color: #fff;
  border: none; border-radius: 50%; cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}

.upload-area { margin-bottom: 24px; }

.convert-progress {
  background: var(--blue-light); border-radius: 12px; padding: 16px; margin-bottom: 24px;
}
.convert-progress-bar {
  height: 6px; background: rgba(49,130,246,.2); border-radius: 3px; overflow: hidden; margin-bottom: 8px;
}
.convert-progress-fill {
  height: 100%; background: var(--blue); border-radius: 3px; width: 0; transition: width .3s;
}
.convert-progress p { font-size: 13px; color: var(--blue); font-weight: 500; text-align: center; }

.btn-complete {
  width: 100%; padding: 16px;
  background: var(--green-600); color: #fff;
  font-size: 16px; font-weight: 600;
  border: none; border-radius: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .2s, transform .1s;
}
.btn-complete:hover { background: #15803D; }
.btn-complete:active { transform: scale(.98); }
.complete-hint { font-size: 12px; color: var(--gray-400); text-align: center; margin-top: 8px; }
.complete-section { margin-top: 8px; }

.completed-banner {
  display: flex; align-items: center; gap: 16px;
  background: var(--green-50); border: 1px solid rgba(22,163,74,.2);
  border-radius: var(--radius); padding: 20px; color: var(--green-600);
}
.completed-title { font-size: 16px; font-weight: 700; }
.completed-sub { font-size: 13px; opacity: .8; margin-top: 4px; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; padding: 24px;
}
.modal {
  background: #fff; border-radius: 20px; padding: 28px 24px;
  width: 100%; max-width: 340px; text-align: center;
}
.modal-title { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.modal-desc { font-size: 14px; color: var(--gray-500); line-height: 1.6; margin-bottom: 24px; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn-primary, .modal-actions .btn-secondary { flex: 1; padding: 14px; }

/* Office tabs */
.office-tabs {
  display: flex; background: #fff; border-bottom: 1px solid var(--gray-200);
  max-width: var(--max-w); margin: 0 auto;
}
.office-tab {
  flex: 1; padding: 14px; border: none; background: none;
  font-size: 14px; font-weight: 600; color: var(--gray-400);
  cursor: pointer; position: relative; transition: color .2s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.office-tab.active { color: var(--blue); }
.office-tab.active::after {
  content: ''; position: absolute; bottom: 0; left: 20%; right: 20%;
  height: 2px; background: var(--blue); border-radius: 1px;
}
.tab-badge {
  background: #EF4444; color: #fff; font-size: 10px; font-weight: 700;
  padding: 1px 6px; border-radius: 999px; min-width: 18px;
}

/* Alert cards */
.alert-card { cursor: pointer; transition: background .2s; }
.alert-unread { border-left: 3px solid var(--blue); }
.alert-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.alert-new-dot { width: 8px; height: 8px; background: #EF4444; border-radius: 50%; }
.alert-card-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.alert-card-sub { font-size: 13px; color: var(--gray-500); margin-bottom: 4px; }
.alert-card-desc { font-size: 13px; color: var(--gray-600); }

/* Small action buttons */
.completed-actions { display: flex; gap: 8px; margin-top: 12px; }
.btn-sm {
  flex: 1; padding: 10px; border: none; border-radius: 10px;
  font-size: 13px; font-weight: 600; cursor: pointer; text-align: center;
}
.btn-sm-primary { background: var(--blue-light); color: var(--blue); }
.btn-sm-secondary { background: var(--gray-100); color: var(--gray-700); }
a.btn-sm { display: flex; align-items: center; justify-content: center; }

.doc-actions { display: flex; flex-direction: column; gap: 10px; }

.doc-bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: flex; gap: 10px; padding: 12px 16px; max-width: 480px; margin: 0 auto;
  background: #fff; border-top: 1px solid var(--gray-200);
  box-shadow: 0 -4px 16px rgba(0,0,0,.06);
}
.doc-bottom-bar button {
  flex: 1; padding: 14px 8px; border: none; border-radius: 12px;
  font-size: 14px; font-weight: 700; cursor: pointer;
}
.btn-doc-email { background: var(--blue); color: #fff; }
.btn-doc-insurance { background: var(--green-600); color: #fff; }
.doc-type-row { align-items: flex-start; }
.doc-type-row input { margin-top: 4px; }

.log-billing-tag {
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px;
  background: var(--gray-100); color: var(--gray-500); margin-left: 6px;
}
.log-billing-tag.companion { background: #FEF3C7; color: #B45309; }
.log-client-name { font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 4px; }

/* Blog */
.blog-page { padding-bottom: 88px; }
.blog-card { margin-bottom: 20px; }
.blog-card-brand { font-size: 12px; font-weight: 700; color: var(--blue); margin-bottom: 8px; }
.blog-card-title { font-size: 22px; font-weight: 800; line-height: 1.35; margin-bottom: 12px; color: var(--gray-900); }
.blog-card-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--gray-500); }
.blog-para { font-size: 15px; line-height: 1.7; color: var(--gray-700); margin-bottom: 14px; }
.blog-section-label { font-size: 16px; font-weight: 700; margin: 24px 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--blue); color: var(--gray-800); }
.blog-list { margin: 0 0 20px 18px; font-size: 14px; color: var(--gray-600); line-height: 1.6; }
.blog-list li { margin-bottom: 6px; }
.blog-hero-inapp { position: relative; margin-bottom: 16px; border-radius: 12px; overflow: hidden; }
.blog-hero-inapp img { width: 100%; max-height: 280px; object-fit: cover; display: block; }
.blog-empty { text-align: center; padding: 32px; color: var(--gray-400); background: var(--gray-50); border-radius: 12px; margin-bottom: 20px; }
.blog-media-item { position: relative; }
.blog-cap { font-size: 11px; color: var(--gray-400); text-align: center; margin-top: 6px; }
.blog-cta-card {
  margin-top: 28px; padding: 20px; border-radius: 16px; text-align: center;
  background: linear-gradient(135deg, #E8F3FF, #F0F7FF);
}
.blog-cta-card p { font-size: 15px; font-weight: 700; color: var(--blue); margin-bottom: 4px; }
.blog-cta-card small { font-size: 13px; color: var(--gray-500); }
.btn-blog {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px; border: none; border-radius: 12px;
  font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none;
  background: linear-gradient(135deg, #7C3AED, #9333EA); color: #fff;
}
.btn-blog-outline {
  background: #fff; color: #7C3AED; border: 2px solid #7C3AED;
}
.completed-actions-row { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

/* Admin worker calendar & charts */
.cal-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.cal-nav-btn {
  width: 36px; height: 36px; border: none; border-radius: 10px;
  background: var(--gray-100); color: var(--gray-700); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.cal-nav-btn:hover { background: var(--gray-200); }
.cal-nav-title { font-size: 16px; font-weight: 700; color: var(--gray-900); }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
}
.cal-weekday {
  text-align: center; font-size: 11px; font-weight: 600;
  color: var(--gray-400); padding: 6px 0;
}
.cal-weekday.sun { color: #DC2626; }
.cal-weekday.sat { color: #2563EB; }
.cal-cell {
  min-height: 58px; border-radius: 10px; padding: 4px 3px;
  background: var(--gray-50); border: 1px solid transparent;
  cursor: default; text-align: center;
}
.cal-cell.empty { background: transparent; border: none; }
.cal-cell.in-range { cursor: pointer; }
.cal-cell.in-range:hover { background: var(--blue-light); border-color: rgba(49,130,246,.2); }
.cal-cell.selected { background: var(--blue); border-color: var(--blue); color: #fff; }
.cal-cell.selected .cal-count, .cal-cell.selected .cal-cost { color: rgba(255,255,255,.9); }
.cal-cell.today { border-color: var(--blue); }
.cal-day-num { font-size: 12px; font-weight: 700; line-height: 1.2; margin-bottom: 2px; }
.cal-cell.sun .cal-day-num { color: #DC2626; }
.cal-cell.sat .cal-day-num { color: #2563EB; }
.cal-cell.selected .cal-day-num { color: #fff; }
.cal-count { font-size: 10px; font-weight: 700; color: var(--blue); }
.cal-cost { font-size: 9px; color: var(--gray-500); margin-top: 1px; }
.cal-cell.no-data { opacity: 0.35; }
.chart-card { margin-bottom: 20px; }
.chart-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; color: var(--gray-800); }
.chart-sub { font-size: 11px; color: var(--gray-400); margin-bottom: 16px; }
.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 140px; padding-top: 8px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.bar-track { width: 100%; max-width: 36px; height: 100px; display: flex; align-items: flex-end; justify-content: center; }
.bar-fill {
  width: 100%; border-radius: 6px 6px 2px 2px; min-height: 4px;
  transition: height .3s ease;
}
.bar-fill.revenue { background: linear-gradient(180deg, #60A5FA, #3182F6); }
.bar-fill.count { background: linear-gradient(180deg, #34D399, #16A34A); }
.bar-val { font-size: 9px; font-weight: 700; color: var(--gray-600); text-align: center; line-height: 1.2; word-break: keep-all; }
.bar-label { font-size: 10px; color: var(--gray-500); font-weight: 600; }
.cal-day-detail { margin-top: 16px; }
.cal-day-detail.empty-detail {
  text-align: center; padding: 24px; color: var(--gray-400); font-size: 13px;
  background: var(--gray-50); border-radius: 12px;
}

/* Toggle switch - 실무자 권한 */
.role-card { display: flex; align-items: center; gap: 16px; }
.toggle-switch {
  display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0;
}
.toggle-switch input { display: none; }
.toggle-slider {
  width: 48px; height: 28px; background: var(--gray-200); border-radius: 14px;
  position: relative; cursor: pointer; transition: background .2s;
}
.toggle-slider::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; background: #fff; border-radius: 50%;
  transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.toggle-switch input:checked + .toggle-slider { background: var(--blue); }
.toggle-switch input:checked + .toggle-slider::after { transform: translateX(20px); }
.toggle-label { font-size: 11px; font-weight: 600; color: var(--gray-500); }

/* Nav buttons */
.nav-btn-row { display: flex; gap: 8px; margin: 12px 0; }
.nav-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px; border-radius: 12px; font-size: 14px; font-weight: 600;
  text-decoration: none; transition: opacity .2s;
}
.nav-tmap { background: #E8F3FF; color: #3182F6; }
.nav-kakao { background: #FEE500; color: #3C1E1E; }
.nav-btn-sm { padding: 8px; font-size: 12px; }

/* Call row */
.order-client-block { margin-bottom: 10px; }
.order-client-name { font-size: 15px; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }
.order-client-addr { font-size: 13px; color: var(--gray-500); line-height: 1.4; }

.call-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--gray-50); border-radius: 12px; padding: 14px 16px;
}
.call-info { flex: 1; min-width: 0; }
.call-label { font-size: 13px; font-weight: 700; color: var(--gray-800); display: block; }
.call-addr { font-size: 12px; color: var(--gray-500); display: block; margin-top: 2px; line-height: 1.35; }
.call-phone { font-size: 16px; font-weight: 700; color: var(--gray-900); display: block; margin-top: 4px; }
.call-actions { display: flex; gap: 8px; flex-shrink: 0; }
.call-save-btn {
  display: flex; align-items: center; gap: 4px;
  background: #fff; color: var(--gray-700); border: 1px solid var(--gray-200);
  padding: 10px 12px; border-radius: 10px; font-size: 13px; font-weight: 600;
  cursor: pointer;
}
.call-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--green-600); color: #fff;
  padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600;
  text-decoration: none;
}

.worker-check-list {
  display: flex; flex-direction: column; gap: 4px;
  max-height: 240px; overflow-y: auto; margin-bottom: 12px;
  border: 1px solid var(--gray-200); border-radius: 12px; padding: 8px 12px;
}
.worker-check-list .check-row { padding: 8px 4px; border-bottom: 1px solid var(--gray-100); }
.worker-check-list .check-row:last-child { border-bottom: none; }
.worker-check-list .check-row.is-assigned { opacity: 0.45; pointer-events: none; }

/* Special flags */
.flag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.flag-chip {
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 8px;
}
.flag-waterproof { background: #E0F2FE; color: #0369A1; }
.flag-revisit { background: #FEF3C7; color: #B45309; }
.flag-note { background: var(--gray-100); color: var(--gray-700); max-width: 100%; }

/* Assign chips */
.assign-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.assign-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-light); color: var(--blue);
  padding: 6px 12px 6px 6px; border-radius: 999px; font-size: 13px; font-weight: 600;
}
.assign-empty { font-size: 13px; color: var(--gray-400); }

/* Checkbox row */
.check-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; font-size: 14px; font-weight: 500; cursor: pointer;
}
.check-row input { width: 18px; height: 18px; accent-color: var(--blue); }
