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

:root {
  --bg: #0b0d10;
  --sidebar: #0e1115;
  --surface: #13171c;
  --surface-raised: #181d23;
  --surface-soft: #101419;
  --text: #f4f6f8;
  --text-soft: #c2c8d0;
  --muted: #7f8894;
  --line: #262c34;
  --line-strong: #343c46;
  --primary: #d7ff69;
  --primary-hover: #e2ff91;
  --primary-ink: #11150a;
  --purchase: #5bb8c7;
  --purchase-bg: #12262b;
  --absence: #ee8a72;
  --absence-bg: #2b1b19;
  --success: #70c99b;
  --success-bg: #16271f;
  --danger: #ef7878;
  --shadow: 0 18px 50px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  letter-spacing: 0;
  min-height: 100vh;
}

button, input, select, textarea { font: inherit; letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
button, summary { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, strong, .brand { font-family: "DM Sans", "Noto Sans KR", sans-serif; }

.app-shell { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 24px 16px 16px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand { align-items: center; display: flex; gap: 11px; min-width: 0; padding: 0 8px; }
.brand-mark {
  align-items: center;
  background: var(--primary);
  border-radius: 6px;
  color: var(--primary-ink);
  display: inline-flex;
  flex: 0 0 32px;
  font-family: "DM Sans", sans-serif;
  font-size: 17px;
  font-weight: 700;
  height: 32px;
  justify-content: center;
}
.brand-copy { display: grid; min-width: 0; }
.brand-copy strong { font-size: 13px; letter-spacing: 1.2px; }
.brand-copy small { color: var(--muted); font-size: 10px; margin-top: 1px; }
.brand + .nav { margin-top: 28px; }

.store-context { border-bottom: 1px solid var(--line); margin: 26px 0 14px; padding: 0 8px 18px; }
.store-kicker { color: var(--muted); display: block; font-size: 10px; font-weight: 700; margin-bottom: 7px; text-transform: uppercase; }
.current-store { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-list-link { color: var(--primary); display: inline-block; font-size: 10px; font-weight: 600; margin-top: 9px; }
.store-list-link:hover { color: var(--primary-hover); }
.store-switcher { position: relative; }
.store-switcher summary { align-items: center; cursor: pointer; display: flex; font-weight: 700; justify-content: space-between; list-style: none; }
.store-switcher summary::-webkit-details-marker { display: none; }
.store-menu { background: #1b2026; border: 1px solid var(--line-strong); border-radius: 7px; box-shadow: var(--shadow); display: grid; left: 0; min-width: 208px; padding: 6px; position: absolute; top: 30px; z-index: 40; }
.store-menu a { align-items: center; border-radius: 5px; color: var(--text-soft); display: flex; font-size: 13px; justify-content: space-between; padding: 9px 10px; }
.store-menu a:hover, .store-menu a.selected { background: #252b33; color: var(--text); }
.store-menu a span { color: var(--primary); font-size: 10px; }

.nav { display: grid; gap: 5px; }
.nav a { align-items: center; border-radius: 6px; color: var(--muted); display: flex; font-size: 13px; font-weight: 600; gap: 11px; min-height: 42px; padding: 0 11px; transition: background .16s ease, color .16s ease; }
.nav a:hover { background: var(--surface-raised); color: var(--text-soft); }
.nav a.active { background: #20251d; color: var(--primary); }
.nav-symbol { align-items: center; display: inline-flex; font-family: system-ui, sans-serif; font-size: 18px; height: 22px; justify-content: center; width: 22px; }
.nav .mobile-support-link { display: none; }

.support-link { align-items: center; background: #201f15; border: 1px solid #393624; border-radius: 6px; color: #f3e86a; display: grid; font-size: 12px; font-weight: 700; gap: 10px; grid-template-columns: 24px minmax(0, 1fr) auto; margin-top: auto; min-height: 42px; padding: 0 11px; }
.support-link:hover, .support-link:focus-visible { background: #292719; border-color: #514c2b; color: #fff486; outline: 0; }
.support-symbol { align-items: center; background: #f7e85b; border-radius: 50%; color: #28230a; display: inline-flex; font-family: "DM Sans", sans-serif; font-size: 11px; height: 21px; justify-content: center; width: 21px; }
.support-arrow { color: #9d9550; font-family: system-ui, sans-serif; font-size: 12px; }
.support-link:hover .support-arrow { color: currentColor; }

.sidebar-footer { align-items: center; border-top: 1px solid var(--line); display: grid; gap: 10px; grid-template-columns: 34px minmax(0, 1fr) auto; margin-top: 10px; padding: 16px 7px 2px; }
.user-avatar, .mini-avatar { align-items: center; background: #252b32; border: 1px solid #343b45; border-radius: 50%; color: var(--text-soft); display: inline-flex; flex: 0 0 auto; font-weight: 700; justify-content: center; }
.user-avatar { height: 34px; width: 34px; }
.mini-avatar { font-size: 11px; height: 28px; width: 28px; }
.user-meta { display: grid; min-width: 0; }
.user-meta strong { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta span { color: var(--muted); font-size: 10px; }

.icon-button { align-items: center; background: transparent; border: 1px solid var(--line); border-radius: 6px; color: var(--text-soft); cursor: pointer; display: inline-flex; font-size: 17px; height: 34px; justify-content: center; padding: 0; width: 34px; }
.icon-button:hover { background: var(--surface-raised); border-color: var(--line-strong); color: var(--text); }
.logout-button, .mobile-logout { background: transparent; border: 0; color: var(--muted); font-size: 10px; min-height: 32px; padding: 0 4px; }
.logout-button:hover, .mobile-logout:hover { color: var(--text); }

.workspace { min-width: 0; }
.mobile-header { display: none; }
.page { margin: 0 auto; max-width: 1500px; padding: 42px 44px 64px; }

.messages { display: grid; gap: 8px; margin-bottom: 20px; }
.message { align-items: center; background: var(--surface-raised); border: 1px solid var(--line-strong); border-radius: 6px; color: var(--text-soft); display: flex; gap: 10px; padding: 11px 13px; }
.message-dot { background: var(--purchase); border-radius: 50%; height: 7px; width: 7px; }
.message.success .message-dot { background: var(--success); }
.message.error .message-dot { background: var(--danger); }

.page-heading { align-items: flex-end; display: flex; gap: 24px; justify-content: space-between; margin-bottom: 30px; }
.page-heading > div { min-width: 0; }
.dashboard-heading { align-items: flex-start; }
.page-heading h1 { font-size: 30px; line-height: 1.3; margin: 0; overflow-wrap: anywhere; }
.eyebrow, .section-label { color: var(--primary); font-family: "DM Sans", sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 1.4px; margin-bottom: 8px; text-transform: uppercase; }
.heading-copy { color: var(--muted); line-height: 1.7; margin: 7px 0 0; }
.role-chip, .role-badge, .status-tag { border-radius: 999px; display: inline-flex; font-size: 11px; font-weight: 700; white-space: nowrap; }
.role-chip { background: #1d2219; border: 1px solid #333e24; color: var(--primary); padding: 7px 11px; }

.attendance-hero { align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; display: flex; gap: 28px; justify-content: space-between; margin-bottom: 16px; min-height: 148px; padding: 28px 30px; }
.attendance-state { align-items: center; display: flex; gap: 18px; }
.attendance-state h2 { font-size: 21px; margin: 0 0 7px; }
.attendance-state p:last-child { color: var(--muted); margin: 0; }
.kiosk-hero .as-link { flex: 0 0 auto; }
.status-orb { background: #424952; border: 7px solid #1c2127; border-radius: 50%; box-shadow: 0 0 0 1px #4b535e; flex: 0 0 46px; height: 46px; width: 46px; }
.status-orb.live { background: var(--primary); border-color: #2b3418; box-shadow: 0 0 0 1px #53622d; }
.status-orb.complete { background: var(--success); border-color: #1d3529; box-shadow: 0 0 0 1px #3f6c55; }

.clock-actions, .actions, .form-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 9px; }
button, .as-link { align-items: center; border: 0; border-radius: 6px; cursor: pointer; display: inline-flex; font-weight: 700; gap: 14px; justify-content: center; min-height: 40px; padding: 0 15px; }
.primary { background: var(--primary); color: var(--primary-ink); }
.primary:hover { background: var(--primary-hover); }
.secondary { background: #20252b; border: 1px solid var(--line-strong); color: var(--text-soft); }
.secondary:hover { background: #272d35; color: var(--text); }
.large { min-height: 48px; min-width: 138px; padding: 0 19px; }
button:disabled { cursor: not-allowed; opacity: .34; }

.metric-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 16px; }
.metric-grid.staff-metrics { grid-template-columns: minmax(240px, 1fr); max-width: 420px; }
.metric-grid.pos-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric-card { background: var(--surface-soft); border: 1px solid var(--line); border-radius: 8px; min-height: 138px; padding: 21px 23px; }
.metric-card > span { color: var(--muted); font-size: 12px; font-weight: 600; }
.metric-card strong { display: block; font-size: 32px; line-height: 1; margin: 15px 0 9px; }
.metric-card strong small { color: var(--muted); font-family: "Noto Sans KR", sans-serif; font-size: 12px; margin-left: 5px; }
.metric-card p { color: var(--muted); font-size: 11px; margin: 0; }
.metric-card.accent-card { border-color: #394327; }
.metric-card.accent-card strong { color: var(--primary); }

.content-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.6fr) minmax(310px, .7fr); }
.content-grid.pos-content { grid-template-columns: minmax(0, 760px); }
.panel, .form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.panel { min-width: 0; padding: 22px; }
.panel-heading { align-items: center; display: flex; gap: 20px; justify-content: space-between; margin-bottom: 18px; }
.panel-heading h2 { font-size: 17px; margin: 0; }
.panel-heading .section-label { margin-bottom: 4px; }
.text-link { color: var(--text-soft); font-size: 12px; font-weight: 600; }
.text-link span, .panel-footer-link span { color: var(--primary); margin-left: 5px; }
.text-link:hover, .panel-footer-link:hover { color: var(--text); }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; min-width: 720px; width: 100%; }
th, td { border-bottom: 1px solid var(--line); padding: 15px 12px; text-align: left; vertical-align: middle; }
th { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
td { color: var(--text-soft); font-size: 12px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255,255,255,.012); }
.compact-table { min-width: 600px; }
.compact-table th, .compact-table td { padding: 13px 9px; }
.person-cell { align-items: center; color: var(--text); display: flex; gap: 9px; }
.person-cell > div { display: grid; min-width: 0; overflow-wrap: anywhere; }
.person-cell small { color: var(--muted); font-size: 10px; margin-top: 2px; }
.time-cell { color: var(--text); font-family: "DM Sans", sans-serif; font-variant-numeric: tabular-nums; }
.weekday-inline { color: var(--muted); font-size: 10px; margin-left: 4px; }
.status-tag { background: #22272d; color: var(--muted); padding: 4px 8px; }
.status-tag.done { background: var(--success-bg); color: var(--success); }
.status-tag.working { background: #29301a; color: var(--primary); }
.table-action { text-align: right; }
.table-action a { border-bottom: 1px solid var(--line-strong); color: var(--text-soft); font-weight: 600; padding-bottom: 2px; }
.muted-text { color: var(--muted); }

.empty-state { color: var(--muted); padding: 45px 16px !important; text-align: center; }
.empty-state span, .empty-state small { display: block; }
.empty-state span { color: var(--text-soft); font-weight: 600; }
.empty-state small { font-size: 11px; margin-top: 5px; }

.schedule-panel { display: flex; flex-direction: column; }
.schedule-list { display: grid; }
.schedule-item { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 11px; grid-template-columns: 38px 2px minmax(0, 1fr) auto; min-height: 67px; padding: 9px 0; }
.schedule-item:hover .schedule-content strong { color: var(--primary); }
.schedule-item time { display: grid; text-align: center; }
.schedule-item time strong { font-size: 17px; line-height: 1; }
.schedule-item time span { color: var(--muted); font-size: 9px; margin-top: 4px; text-transform: uppercase; }
.schedule-line { background: var(--purchase); border-radius: 4px; height: 28px; }
.schedule-line.absence { background: var(--absence); }
.schedule-content { display: grid; min-width: 0; }
.schedule-type { color: var(--muted); font-size: 9px; margin-bottom: 2px; }
.schedule-content strong { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-footer-link { color: var(--text-soft); font-size: 12px; font-weight: 600; margin-top: auto; padding-top: 19px; }

.filter-bar { align-items: flex-end; display: flex; flex-wrap: wrap; gap: 8px; }
.month-field { display: grid; gap: 5px; }
.month-field span { color: var(--muted); font-size: 10px; font-weight: 600; }
input, select, textarea { background: #0f1317; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--text); outline: 0; padding: 10px 11px; width: 100%; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237f8894' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 14px 14px;
  padding-right: 42px;
}
input:focus, select:focus, textarea:focus { border-color: #738845; box-shadow: 0 0 0 3px rgba(215,255,105,.08); }
input::placeholder, textarea::placeholder { color: #5c6570; }
input[type="month"] { min-height: 40px; width: 170px; }
input[type="checkbox"] { accent-color: var(--primary); height: 16px; justify-self: start; width: 16px; }
.table-panel { padding: 0; }
.table-panel .table-wrap { padding: 0 10px 10px; }
.table-title { border-bottom: 1px solid var(--line); margin: 0; padding: 19px 22px; }
.table-title h2 { font-size: 15px; }
.table-title p { color: var(--muted); font-size: 11px; margin: 4px 0 0; }
.legend, .calendar-legend { align-items: center; color: var(--muted); display: flex; flex-wrap: wrap; font-size: 10px; gap: 15px; }
.legend span, .calendar-legend span { align-items: center; display: inline-flex; gap: 6px; }
.legend-dot { background: var(--muted); border-radius: 50%; display: inline-block; height: 6px; width: 6px; }
.legend-dot.working { background: var(--primary); }
.legend-dot.complete { background: var(--success); }
.legend-dot.purchase { background: var(--purchase); }
.legend-dot.absence { background: var(--absence); }

.role-badge { background: #22272d; color: var(--text-soft); padding: 5px 9px; }
.role-badge.owner { background: #2b301e; color: var(--primary); }
.role-badge.manager { background: var(--purchase-bg); color: var(--purchase); }
.account-state { align-items: center; color: var(--success); display: inline-flex; font-size: 11px; gap: 6px; }
.account-state i { background: currentColor; border-radius: 50%; height: 6px; width: 6px; }
.account-state.inactive { color: var(--muted); }

.platform-heading { margin-bottom: 36px; }
.platform-heading-actions { align-items: center; display: flex; gap: 10px; }
.store-directory { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.directory-heading { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding: 20px 24px; }
.directory-heading h2 { font-size: 17px; margin: 0; }
.directory-heading .section-label { margin-bottom: 4px; }
.directory-heading > span { color: var(--muted); font-size: 10px; }
.store-list { display: grid; }
.store-row { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 18px; grid-template-columns: minmax(180px, 1fr) minmax(240px, .8fr) auto; min-height: 112px; min-width: 0; padding: 20px 24px; }
.store-row:last-child { border-bottom: 0; }
.store-row:hover { background: rgba(255,255,255,.012); }
.store-identity { align-items: center; display: flex; gap: 13px; min-width: 0; }
.store-initial { align-items: center; background: #252c23; border: 1px solid #3d4831; border-radius: 7px; color: var(--primary); display: inline-flex; flex: 0 0 42px; font-size: 16px; font-weight: 700; height: 42px; justify-content: center; }
.store-identity h3 { font-size: 15px; margin: 0 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-identity p { color: var(--muted); font-size: 10px; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; min-width: 0; }
.store-stats > div { border-left: 1px solid var(--line); padding-left: 18px; }
.store-stats dt { color: var(--muted); font-size: 9px; margin-bottom: 6px; }
.store-stats dd { color: var(--text); font-family: "DM Sans", "Noto Sans KR", sans-serif; font-size: 18px; font-weight: 700; margin: 0; }
.store-stats dd small { color: var(--muted); font-family: "Noto Sans KR", sans-serif; font-size: 9px; margin-left: 3px; }
.enter-store { min-width: 158px; }
.directory-empty { min-height: 220px; }

.calendar-heading { margin-bottom: 24px; }
.calendar-toolbar { align-items: center; display: flex; justify-content: space-between; margin-bottom: 14px; }
.calendar-toolbar-actions { align-items: flex-end; display: grid; gap: 9px; justify-items: end; }
.product-filter select { background-color: var(--surface); font-size: 11px; min-height: 36px; min-width: 210px; padding: 7px 42px 7px 10px; width: auto; }
.calendar-setup-notice { align-items: center; background: #20251d; border: 1px solid #394327; border-radius: 7px; color: var(--text-soft); display: flex; font-size: 11px; justify-content: space-between; margin-bottom: 14px; padding: 11px 13px; }
.calendar-setup-notice a { color: var(--primary); font-weight: 700; }
.month-navigation { align-items: center; display: flex; gap: 13px; }
.month-navigation h2 { font-size: 18px; margin: 0; min-width: 126px; text-align: center; }
.calendar-scroll { border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; }
.calendar { background: var(--surface); display: grid; grid-template-columns: repeat(7, minmax(130px, 1fr)); min-width: 910px; overflow: visible; }
.weekday { background: #101419; border-right: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 700; padding: 12px 10px; text-align: center; }
.weekday:nth-child(7) { border-right: 0; }
.weekday.sunday { color: var(--absence); }
.weekday.saturday { color: var(--purchase); }
.day { border-right: 1px solid var(--line); border-top: 1px solid var(--line); min-height: 154px; padding: 9px; position: relative; }
.day:nth-child(7n) { border-right: 0; }
.day.muted { background: #0f1216; color: #4c535c; }
.day.today { background: #171c17; box-shadow: inset 0 0 0 1px #5c6d35; }
.day-head { align-items: center; display: flex; justify-content: space-between; margin-bottom: 8px; pointer-events: none; position: relative; z-index: 2; }
.day-head > span { align-items: center; display: inline-flex; font-family: "DM Sans", sans-serif; font-size: 11px; font-weight: 700; height: 23px; justify-content: center; width: 23px; }
.mobile-day-label { display: none !important; }
.day.today .day-number { background: var(--primary); border-radius: 50%; color: var(--primary-ink); }
.day-actions { align-items: center; display: flex; gap: 2px; pointer-events: auto; }
.day-add-button { align-items: center; border-radius: 4px; color: var(--primary); display: inline-flex; font-family: system-ui, sans-serif; font-size: 16px; font-weight: 500; height: 23px; justify-content: center; opacity: .78; width: 23px; }
.day-add-button:hover, .day-add-button:focus-visible { background: #272d33; color: var(--primary); opacity: 1; outline: 0; }
.day-menu { pointer-events: auto; position: relative; }
.day-menu summary { align-items: center; border-radius: 4px; color: var(--muted); cursor: pointer; display: inline-flex; font-family: system-ui, sans-serif; font-size: 17px; height: 23px; justify-content: center; list-style: none; opacity: .55; width: 23px; }
.day-menu summary::-webkit-details-marker { display: none; }
.day-menu summary:hover, .day-menu summary:focus-visible, .day-menu[open] summary { background: #272d33; color: var(--text); opacity: 1; outline: 0; }
.day-menu[open] { z-index: 30; }
.day-menu-popover { background: #1a1f25; border: 1px solid var(--line-strong); border-radius: 7px; box-shadow: var(--shadow); display: grid; min-width: 218px; padding: 6px; position: absolute; right: 0; top: 28px; z-index: 30; }
.day:nth-last-child(-n+7) .day-menu-popover { bottom: 28px; top: auto; }
.day-menu-label { color: var(--muted); font-size: 9px; font-weight: 700; padding: 6px 9px 4px; }
.day-menu-item { background: transparent; border-radius: 5px; color: var(--text-soft); font-size: 11px; justify-content: flex-start; min-height: 36px; padding: 0 9px; width: 100%; }
.day-menu-item:hover { background: #252b33; color: var(--text); }
.day-menu-item.selected { color: var(--absence); }
.day-menu-item.danger { color: var(--danger); }
.day-menu-item:disabled { background: transparent; color: #59616b; }
.day-menu-empty { color: #59616b; font-size: 10px; padding: 8px 9px; }
.day-menu-separator { border-top: 1px solid var(--line); margin: 5px 3px; }
.day-items { display: grid; gap: 6px; position: relative; z-index: 1; }
.cal-item { background: var(--purchase-bg); border-left: 2px solid var(--purchase); border-radius: 5px; min-width: 0; padding: 7px 32px 7px 8px; position: relative; }
.cal-item.absence { background: var(--absence-bg); border-left-color: var(--absence); }
.cal-item.done { background: var(--success-bg); border-left-color: var(--success); }
.cal-main { display: grid; min-width: 0; }
.cal-kicker { align-items: center; color: var(--purchase); display: flex; font-size: 8px; font-weight: 700; gap: 4px; margin-bottom: 4px; min-width: 0; text-transform: uppercase; white-space: nowrap; }
.cal-kicker i { color: var(--muted); font-style: normal; }
.cal-supplier { color: var(--muted); font-weight: 600; overflow: hidden; text-overflow: ellipsis; text-transform: none; white-space: nowrap; }
.cal-item.absence .cal-kicker { color: var(--absence); }
.cal-item.done .cal-kicker { color: var(--success); }
.cal-order-line { align-items: baseline; display: flex; gap: 5px; min-width: 0; }
.cal-title { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-order-quantity { color: var(--text-soft); flex: 0 0 auto; font-family: "DM Sans", "Noto Sans KR", sans-serif; font-size: 11px; font-weight: 700; white-space: nowrap; }
.cal-memo { border-top: 1px solid rgba(255,255,255,.08); color: var(--muted); font-family: "Noto Sans KR", sans-serif; font-size: 8px; line-height: 1.5; margin-top: 5px; overflow: hidden; padding-top: 4px; text-overflow: ellipsis; white-space: nowrap; }
.cal-delete-form { position: absolute; right: 3px; top: 3px; }
.trash-button { background: rgba(11,13,16,.2); border: 1px solid transparent; color: #a0a8b2; height: 27px; min-height: 27px; padding: 0; width: 27px; }
.trash-button svg { height: 16px; width: 16px; }
.trash-button:hover, .trash-button:focus-visible { background: rgba(239,120,120,.12); border-color: rgba(239,120,120,.3); color: var(--danger); outline: 0; }
.completion-button { background: transparent; border-top: 1px solid rgba(255,255,255,.08); border-radius: 0; color: var(--muted); font-size: 9px; gap: 5px; justify-content: flex-start; margin-top: 6px; min-height: 24px; padding: 5px 0 0; width: 100%; }
.completion-button i { align-items: center; border: 1px solid #53606b; border-radius: 3px; display: inline-flex; font-size: 8px; font-style: normal; height: 13px; justify-content: center; width: 13px; }
.completion-button.checked { color: var(--success); }
.completion-button.checked i { background: var(--success); border-color: var(--success); color: #102018; }
.mobile-calendar-empty { display: none; }

.confirm-dialog { background: var(--surface-raised); border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: 0 24px 80px rgba(0,0,0,.55); color: var(--text); margin: auto; max-width: calc(100vw - 32px); padding: 24px; width: 390px; }
.confirm-dialog::backdrop { background: rgba(4,6,8,.76); backdrop-filter: blur(3px); }
.confirm-dialog-icon { align-items: center; background: rgba(239,120,120,.12); border: 1px solid rgba(239,120,120,.25); border-radius: 7px; color: var(--danger); display: flex; height: 40px; justify-content: center; margin-bottom: 17px; width: 40px; }
.confirm-dialog-icon svg { height: 20px; width: 20px; }
.confirm-dialog-copy h2 { font-size: 18px; margin: 0 0 8px; }
.confirm-dialog-copy p { color: var(--text-soft); line-height: 1.6; margin: 0; overflow-wrap: anywhere; }
.confirm-dialog-copy span { color: var(--muted); display: block; font-size: 11px; margin-top: 7px; }
.confirm-dialog-actions { display: grid; gap: 9px; grid-template-columns: 1fr 1fr; margin-top: 24px; }
.confirm-dialog-actions button { width: 100%; }
.danger-button { background: var(--danger); color: #1a0909; }
.danger-button:hover, .danger-button:focus-visible { background: #ff9292; outline: 0; }

.product-layout, .absence-layout { display: grid; gap: 16px; grid-template-columns: minmax(280px, .65fr) minmax(0, 1.35fr); }
.product-create-panel { align-self: start; box-shadow: none; }
.product-list-panel, .absence-list-panel { min-height: 300px; }
.panel-count { color: var(--muted); font-size: 11px; }
.product-rows, .absence-rows { display: grid; }
.product-row { align-items: center; border-top: 1px solid var(--line); display: grid; gap: 13px; grid-template-columns: 36px minmax(0, 1fr) auto auto; min-height: 72px; padding: 12px 4px; }
.product-row:first-child, .absence-row:first-child { border-top: 0; }
.product-row:hover { background: rgba(255,255,255,.012); }
.product-initial { align-items: center; background: #252c23; border: 1px solid #3d4831; border-radius: 6px; color: var(--primary); display: inline-flex; font-weight: 700; height: 36px; justify-content: center; width: 36px; }
.product-row > span:nth-child(2), .absence-row > span:nth-child(2) { display: grid; min-width: 0; }
.product-row strong, .absence-row strong { font-size: 13px; }
.product-row small, .absence-row small { color: var(--muted); font-size: 10px; margin-top: 3px; overflow-wrap: anywhere; }
.absence-eyebrow { color: var(--absence); }
.compact-back { margin-bottom: 28px; }
.absence-row { align-items: center; border-top: 1px solid var(--line); display: grid; gap: 12px; grid-template-columns: 28px minmax(0, 1fr) auto; min-height: 68px; padding: 11px 4px; }
.danger-text-button { background: transparent; color: var(--danger); font-size: 11px; min-height: 34px; padding: 0 5px; }
.danger-text-button:hover { color: #ff9a9a; }
.form-empty-state { align-items: center; display: grid; gap: 18px; justify-items: start; min-height: 180px; }
.selected-unit { background: var(--surface-soft); border-left: 2px solid var(--purchase); color: var(--muted); font-size: 10px; margin: -4px 0 0; padding: 8px 10px; }

.clock-terminal { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; margin: 0 auto; max-width: 680px; padding: 30px; }
.terminal-status { align-items: center; border-bottom: 1px solid var(--line); display: flex; gap: 17px; margin-bottom: 27px; padding-bottom: 24px; }
.terminal-status > div { display: grid; }
.terminal-status .section-label { margin-bottom: 3px; }
.terminal-status strong { font-size: 34px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.terminal-status > div > span { color: var(--muted); font-size: 11px; margin-top: 5px; }
.clock-form { display: grid; gap: 10px; }
.clock-form label { color: var(--text-soft); font-size: 11px; font-weight: 600; }
.clock-form input { font-family: "DM Sans", monospace; font-size: 32px; font-variant-numeric: tabular-nums; height: 68px; letter-spacing: 0; text-align: center; }
.clock-submit-grid { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin-top: 7px; }
.clock-submit { font-size: 15px; min-height: 54px; }
.terminal-note { color: var(--muted); font-size: 10px; line-height: 1.7; margin: 22px 0 0; text-align: center; }
.employee-picker { display: grid; gap: 18px; }
.employee-picker h2 { font-size: 19px; margin: 0 0 6px; }
.employee-picker > div > p:last-child { color: var(--muted); font-size: 11px; margin: 0; }
.employee-picker-list { display: grid; gap: 9px; }
.employee-choice { background: var(--surface-soft); border: 1px solid var(--line-strong); display: grid; gap: 11px; grid-template-columns: 28px minmax(0, 1fr) auto auto; justify-content: stretch; min-height: 54px; padding: 8px 13px; text-align: left; width: 100%; }
.employee-choice:hover { background: #1b2026; border-color: #4a545f; }
.employee-choice strong { font-size: 13px; }
.employee-choice-action { color: var(--primary); font-size: 11px; font-weight: 700; }
.employee-picker-back { color: var(--muted); font-size: 11px; justify-self: start; }
.employee-picker-back:hover { color: var(--text); }
.field-error { color: var(--danger); font-size: 11px; }

.form-layout { display: grid; gap: 70px; grid-template-columns: minmax(250px, .7fr) minmax(420px, 1fr); margin: 35px auto 0; max-width: 1020px; }
.form-intro { padding-top: 8px; }
.form-intro h1 { font-size: 29px; margin-bottom: 10px; }
.back-link { color: var(--muted); display: inline-block; font-size: 12px; margin-bottom: 54px; }
.back-link:hover { color: var(--text); }
.form-card { box-shadow: var(--shadow); padding: 27px; }
.stack { display: grid; gap: 17px; }
.styled-form > p, .styled-form label { display: grid; gap: 7px; margin: 0; }
.styled-form > p:has(input[type="checkbox"]) { align-items: center; grid-template-columns: auto 1fr; }
.styled-form > p:has(input[type="checkbox"]) label { grid-column: 2; grid-row: 1; }
.styled-form > p > label, .styled-form label > span { color: var(--text-soft); font-size: 11px; font-weight: 600; }
.styled-form .helptext { color: var(--muted); font-size: 10px; }
.errorlist { color: var(--danger); font-size: 11px; list-style: none; margin: 0 0 4px; padding: 0; }
.form-actions { border-top: 1px solid var(--line); justify-content: flex-end; margin-top: 8px; padding-top: 20px; }
.platform-create-layout { max-width: 1120px; }
.provision-form { gap: 0; }
.provision-section { border: 0; border-bottom: 1px solid var(--line); margin: 0; padding: 0 0 24px; }
.provision-section + .provision-section { padding-top: 24px; }
.provision-section legend { color: var(--text); font-family: "DM Sans", "Noto Sans KR", sans-serif; font-size: 14px; font-weight: 700; margin-bottom: 17px; padding: 0; }
.provision-section legend span { color: var(--primary); font-size: 10px; margin-right: 8px; }
.field-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-grid label { display: grid; gap: 7px; min-width: 0; }
.field-grid label > span { color: var(--text-soft); font-size: 11px; font-weight: 600; }
.field-grid .full-field { grid-column: 1 / -1; }
.provision-form .form-actions { margin-top: 24px; }
.form-note { border-left: 2px solid var(--purchase); display: grid; gap: 3px; margin-top: 28px; padding-left: 11px; }
.form-note.absence { border-left-color: var(--absence); margin-top: 14px; }
.form-note strong { font-size: 11px; }
.form-note span { color: var(--muted); font-size: 10px; line-height: 1.6; }

.auth-body { background: var(--bg); }
.auth-page { min-height: 100vh; }
.login-shell { display: grid; grid-template-columns: minmax(380px, .92fr) minmax(500px, 1.08fr); min-height: 100vh; }
.login-brand-panel { background: #101418; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: 44px 52px 38px; }
.login-brand { padding: 0; }
.login-statement { max-width: 550px; padding: 60px 0; }
.login-statement .eyebrow { margin-bottom: 18px; }
.login-statement h1 { font-size: clamp(38px, 4.4vw, 66px); line-height: 1.22; margin-bottom: 25px; }
.login-statement > p:last-child { color: var(--muted); font-size: 15px; line-height: 1.9; max-width: 430px; }
.login-footnote { color: #4f5862; font-family: "DM Sans", sans-serif; font-size: 9px; letter-spacing: 1.2px; margin: 0; }
.login-form-panel { align-items: center; display: flex; justify-content: center; padding: 42px; }
.auth-card { max-width: 390px; width: 100%; }
.auth-heading { margin-bottom: 31px; }
.auth-heading h2 { font-size: 28px; margin: 0 0 9px; }
.auth-heading > p:last-child { color: var(--muted); line-height: 1.6; }
.auth-card label { display: grid; gap: 7px; }
.auth-card label > span { color: var(--text-soft); font-size: 11px; font-weight: 600; }
.auth-card input { min-height: 48px; }
.login-button { font-size: 13px; justify-content: space-between; margin-top: 5px; min-height: 49px; padding: 0 18px; width: 100%; }
.auth-help { border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.6; margin: 28px 0 0; padding-top: 18px; }
.form-error { background: #2a181a; border: 1px solid #553035; border-radius: 6px; color: #f3a2a2; font-size: 11px; padding: 10px 12px; }
.mobile-login-mark { display: none; }

@media (max-width: 1200px) {
  .page { padding: 36px 28px 56px; }
  .content-grid { grid-template-columns: 1fr; }
  .schedule-panel { min-height: 300px; }
  .schedule-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; }
  .form-layout { gap: 38px; }
  .store-row { grid-template-columns: minmax(220px, 1fr) auto; }
  .store-stats { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 820px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  .app-shell { display: block; max-width: 100%; width: 100%; }
  .workspace, .page { max-width: 100%; min-width: 0; width: 100%; }
  .sidebar { border-bottom: 1px solid var(--line); border-right: 0; bottom: 0; flex-direction: row; height: 62px; left: 0; padding: 7px 10px; position: fixed; right: 0; top: auto; z-index: 50; }
  .sidebar > .brand, .store-context, .support-link, .sidebar-footer { display: none; }
  .nav { display: grid; gap: 4px; grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; }
  .nav a { flex-direction: column; font-size: 9px; gap: 1px; justify-content: center; min-height: 48px; padding: 2px 5px; }
  .nav a:only-child { justify-self: center; max-width: 92px; width: 100%; }
  .nav a span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-symbol { font-size: 17px; height: 21px; }
  .nav .mobile-support-link { color: #f3e86a; display: flex; }
  .nav .mobile-support-link .nav-symbol { color: #f3e86a; font-size: 15px; }
  .mobile-header { align-items: center; background: rgba(14,17,21,.96); border-bottom: 1px solid var(--line); display: flex; height: 58px; justify-content: space-between; padding: 0 18px; position: sticky; top: 0; z-index: 30; }
  .mobile-brand { align-items: center; display: flex; font-size: 11px; gap: 8px; letter-spacing: 1px; }
  .mobile-brand .brand-mark { flex-basis: 27px; font-size: 14px; height: 27px; }
  .mobile-header-actions { align-items: center; display: flex; gap: 8px; min-width: 0; }
  .mobile-store { color: var(--muted); font-size: 11px; max-width: 45vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-header-actions form { flex: 0 0 auto; }
  .mobile-logout { white-space: nowrap; }
  .page { margin: 0; padding: 27px 17px 92px; }
  .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 22px; width: 100%; }
  .page-heading > div { width: 100%; }
  .page-heading h1 { font-size: 25px; }
  .role-chip { align-self: flex-start; }
  .attendance-hero { align-items: stretch; flex-direction: column; padding: 22px 19px; }
  .attendance-state { align-items: flex-start; }
  .status-orb { flex-basis: 36px; height: 36px; width: 36px; }
  .attendance-state h2 { font-size: 18px; }
  .clock-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .clock-actions form, .clock-actions button { width: 100%; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card:last-child { grid-column: 1 / -1; }
  .metric-grid.staff-metrics { grid-template-columns: 1fr; }
  .metric-grid.pos-metrics { grid-template-columns: 1fr 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .panel { padding: 18px; }
  .table-panel { padding: 0; }
  .schedule-list { grid-template-columns: 1fr; }
  .filter-bar { width: 100%; }
  .month-field { flex: 1 1 150px; }
  input[type="month"] { width: 100%; }
  .calendar-toolbar { align-items: flex-start; flex-direction: column; gap: 14px; }
  .calendar-toolbar-actions { align-items: stretch; justify-items: stretch; width: 100%; }
  .product-filter select { width: 100%; }
  .calendar-legend { padding-left: 2px; }
  .table-panel .table-wrap, .records-panel .table-wrap { overflow: visible; padding: 0; }
  .table-panel .table-wrap { padding: 0 12px 12px; }
  .responsive-table { display: block; min-width: 0; }
  .responsive-table thead { display: none; }
  .responsive-table tbody { display: grid; gap: 10px; }
  .responsive-table tr { background: var(--surface-soft); border: 1px solid var(--line); border-radius: 7px; display: grid; gap: 0 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; }
  .responsive-table td { align-items: center; border: 0; display: flex; font-size: 12px; justify-content: flex-end; min-width: 0; padding: 8px 0; text-align: right; }
  .responsive-table td:first-child { border-bottom: 1px solid var(--line); grid-column: 1 / -1; justify-content: flex-start; margin-bottom: 5px; padding: 0 0 12px; text-align: left; }
  .responsive-table td[data-label]::before { color: var(--muted); content: attr(data-label); font-size: 9px; font-weight: 600; margin-right: auto; padding-right: 8px; }
  .responsive-table td.empty-state { display: block; grid-column: 1 / -1; margin: 0; padding: 28px 12px !important; text-align: center; }
  .responsive-table td.empty-state::before { display: none; }
  .responsive-table .table-action { border-top: 1px solid var(--line); grid-column: 1 / -1; justify-content: stretch; margin-top: 5px; padding-top: 12px; }
  .responsive-table .table-action a { align-items: center; background: #20252b; border: 1px solid var(--line-strong); border-radius: 5px; display: flex; justify-content: center; min-height: 36px; padding: 0 12px; width: 100%; }
  .records-panel .responsive-table tbody { gap: 8px; }
  .calendar-scroll { border: 0; border-radius: 0; overflow: visible; }
  .calendar { background: transparent; display: grid; gap: 9px; grid-template-columns: 1fr; min-width: 0; }
  .calendar .weekday, .calendar .day { display: none; }
  .calendar .day.in-month { background: var(--surface); border: 1px solid var(--line); border-radius: 7px; box-shadow: none; display: block; min-height: 58px; padding: 13px; }
  .calendar .day.in-month.today { border-color: #5c6d35; }
  .calendar .day-head { margin-bottom: 10px; }
  .calendar .day-number { display: none; }
  .calendar .mobile-day-label { color: var(--text); display: inline-flex !important; font-size: 12px; height: auto; justify-content: flex-start; width: auto; }
  .calendar .day-add-button, .calendar .day-menu summary { background: #272d33; opacity: 1; }
  .calendar .day-menu-popover { max-width: calc(100vw - 62px); min-width: 238px; }
  .calendar .day-items { gap: 8px; }
  .calendar .cal-item { padding: 10px 11px; }
  .calendar .cal-title { font-size: 12px; }
  .calendar .cal-order-quantity { font-size: 11px; }
  .calendar .cal-memo { font-size: 9px; white-space: normal; }
  .product-layout, .absence-layout { grid-template-columns: 1fr; }
  .product-row { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .product-row .text-link { display: none; }
  .form-layout { display: block; margin-top: 0; }
  .form-intro { margin-bottom: 25px; }
  .back-link { margin-bottom: 30px; }
  .form-note { display: none; }
  .form-card { padding: 21px 18px; }
  .field-grid { grid-template-columns: 1fr; }
  .field-grid .full-field { grid-column: auto; }
  .clock-terminal { max-width: 100%; padding: 22px 18px; width: 100%; }
  .clock-form input { font-size: 28px; height: 64px; }
  .platform-heading { margin-bottom: 24px; }
  .platform-heading-actions { align-items: stretch; width: 100%; }
  .platform-heading-actions .as-link { margin-left: auto; }
  .directory-heading { padding: 18px; }
  .directory-heading > span { display: none; }
  .store-row { align-items: stretch; gap: 18px; grid-template-columns: 1fr; padding: 20px 18px; }
  .store-stats { grid-column: auto; grid-row: auto; }
  .store-stats > div { padding-left: 12px; }
  .enter-store { width: 100%; }
  .login-shell { display: block; }
  .login-brand-panel { display: none; }
  .login-form-panel { min-height: 100vh; padding: 28px 22px; }
  .mobile-login-mark { align-items: center; background: var(--primary); border-radius: 6px; color: var(--primary-ink); display: inline-flex; font-family: "DM Sans", sans-serif; font-size: 17px; font-weight: 700; height: 34px; justify-content: center; margin-bottom: 54px; width: 34px; }
}

@media (max-width: 520px) {
  .dashboard-heading .heading-copy { display: none; }
  .metric-grid { gap: 10px; }
  .metric-card { min-height: 124px; padding: 18px 17px; }
  .metric-card strong { font-size: 28px; }
  .metric-card p { line-height: 1.5; }
  .panel-heading { align-items: flex-start; }
  .legend { display: none; }
  .filter-bar .primary { flex: 1 1 100%; }
  .calendar-heading { flex-direction: row; }
  .calendar-heading > div { flex: 1 1 auto; width: auto; }
  .calendar-heading .heading-copy { display: none; }
  .calendar-heading .as-link { flex: 0 0 auto; white-space: nowrap; }
  .calendar-setup-notice { align-items: flex-start; flex-direction: column; gap: 6px; }
  .product-row .account-state { font-size: 9px; }
  .form-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .form-actions > * { width: 100%; }
  .employee-choice { grid-template-columns: 28px minmax(0, 1fr) auto; }
  .employee-choice .role-badge { display: none; }
}
