:root {
  --admin-bg: #eef1f5;
  --admin-panel: #ffffff;
  --admin-line: #e3e8ef;
  --admin-navy: #13233f;
  --admin-muted: #6b7280;
  --admin-accent: #1f6b5c;
  --admin-accent-soft: #e8f4f1;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Pretendard, "Noto Sans KR", system-ui, sans-serif;
  background: var(--admin-bg);
  color: var(--admin-navy);
}
.sn-page {
  max-width: min(1600px, calc(100% - 24px));
  margin: 0 auto;
  padding: 28px 18px 48px;
}
.sn-page[hidden],
#staff-app[hidden],
#staff-gate[hidden] {
  display: none !important;
}
.sn-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.sn-gate-card {
  width: min(420px, 100%);
  background: var(--admin-panel);
  border: 1px solid var(--admin-line);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 18px 40px rgba(19, 35, 63, 0.08);
  display: grid;
  gap: 12px;
}
.sn-gate-eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--admin-muted);
}
.sn-gate-card h1 {
  margin: 0;
  font-size: 26px;
  color: var(--admin-navy);
}
.sn-gate-sub {
  margin: 0;
  color: var(--admin-muted);
  font-size: 14px;
  line-height: 1.6;
}
.sn-gate-label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}
.sn-gate-label input {
  height: 44px;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  padding: 0 12px;
  font: inherit;
}
.sn-gate-error {
  margin: 0;
  min-height: 1.2em;
  color: #b42318;
  font-size: 13px;
}
.sn-gate-hint {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--admin-muted);
  line-height: 1.5;
}
.sn-gate-hint a {
  color: var(--admin-navy);
  font-weight: 700;
}
.sn-header {
  margin-bottom: 18px;
}
.sn-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.sn-staff-mode {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sn-staff-hello-inline {
  margin: 0;
  font-weight: 800;
  color: var(--admin-navy);
  font-size: 14px;
  white-space: nowrap;
}
.sn-staff-hello-inline[hidden] {
  display: none !important;
}
.sn-staff-mode-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(380px, 90vw);
  background: #fff;
  border: 1px solid var(--admin-line);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  z-index: 20;
  display: grid;
  gap: 10px;
}
.sn-staff-mode-panel[hidden] {
  display: none !important;
}
.sn-staff-mode-panel label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}
.sn-staff-mode-panel input {
  height: 40px;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  padding: 0 12px;
  font: inherit;
}
.sn-staff-hello {
  margin: 0;
  font-weight: 800;
  color: var(--admin-navy);
}
#staff-mode-tab.active {
  background: var(--admin-navy);
  color: #fff;
  border-color: var(--admin-navy);
}
.sn-staff-assign-list {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
  max-height: 320px;
  overflow: auto;
}
.sn-staff-assign-row {
  display: grid;
  grid-template-columns: 90px 1fr 72px;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
}
.sn-staff-assign-row span { color: var(--admin-navy); }
.sn-staff-assign-row input {
  width: 100%;
  height: 36px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  padding: 0 10px;
  font: inherit;
  font-weight: 500;
}
.sn-staff-assign-row input[data-leave-key] { text-align: center; }
.sn-leave-summary {
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef6f3;
  border: 1px solid #cfe5dc;
  color: var(--admin-navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sn-leave-summary[hidden] { display: none !important; }
.cal-item-status {
  display: inline-block;
  margin-top: 2px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}
.cal-item-status.pending { background: #fff4e5; color: #b45309; }
.cal-item-status.approved { background: #e8f5ee; color: #157347; }
.cal-cell.dim { opacity: 0.45; }
.sn-vac-status { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: #475569; }
.sn-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--admin-muted);
}
.sn-header h1 {
  margin: 0 0 8px;
  font-size: 28px;
}
.sn-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 8px;
}
.sn-title-row h1,
.sn-title-row h2 {
  margin: 0;
}
.sn-lang-switch {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.sn-lang-switch button {
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--admin-line);
  border-radius: 999px;
  background: #fff;
  color: var(--admin-navy);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.sn-lang-switch button.active {
  background: var(--admin-navy);
  border-color: var(--admin-navy);
  color: #fff;
}
.sn-sub {
  margin: 0;
  color: var(--admin-muted);
  font-size: 14px;
}
.admin-btn {
  height: 44px;
  border: none;
  border-radius: 12px;
  background: var(--admin-navy);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  padding: 0 18px;
}
.admin-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.admin-btn-secondary {
  height: 40px;
  border: 1px solid var(--admin-line);
  background: #fff;
  border-radius: 10px;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 600;
}
.ops-note { margin-top: 10px; font-size: 12px; color: var(--admin-muted); }
.snk-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;flex-wrap:wrap}
.snk-title{margin:0 0 6px;font-size:18px}
.snk-toolbar-lead .snk-title{margin:0}
.staff-notion-detail{overflow:auto}

.staff-notion-tabs{display:flex;flex-wrap:wrap;gap:4px;margin:0 0 16px}
.staff-notion-tab{border:1px solid var(--admin-line);background:#fff;color:var(--admin-navy);border-radius:999px;padding:7px 11px;font:inherit;font-weight:700;cursor:pointer}
.staff-notion-tab.active{background:var(--admin-navy);color:#fff;border-color:var(--admin-navy)}
.staff-notion-board{display:grid;grid-template-columns:220px minmax(0,1fr);gap:16px;--sn-body-h:1260px;--sn-panel-h:1480px;min-height:var(--sn-panel-h);align-items:stretch}
.staff-notion-detail{min-width:0;overflow:hidden;background:#fff;border:1px solid var(--admin-line);border-radius:14px;padding:14px;min-height:var(--sn-panel-h);display:flex;flex-direction:column}
.staff-notion-list{background:#fff;border:1px solid var(--admin-line);border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:10px;min-height:var(--sn-panel-h)}
.staff-notion-kanban-panel,
.staff-notion-weekly-panel,
.staff-notion-monthly-panel,
.staff-notion-cal-panel,
.staff-notion-notes-panel{display:flex;flex-direction:column;flex:1 1 auto;height:calc(var(--sn-panel-h) - 36px);min-height:calc(var(--sn-panel-h) - 36px);max-height:calc(var(--sn-panel-h) - 36px);width:100%;box-sizing:border-box;overflow:hidden}
.staff-notion-kanban-panel > .snk-toolbar,
.staff-notion-kanban-panel > .sn-filter-bar,
.staff-notion-notes-panel > .snk-toolbar,
.staff-notion-notes-panel > .sn-filter-bar{flex:0 0 auto}
.staff-notion-kanban-panel .snk-wrap,
.staff-notion-notes-panel .snk-wrap{flex:1 1 auto;min-height:0;height:auto;overflow:hidden;align-items:stretch}
.staff-notion-kanban-panel .snk-col,
.staff-notion-notes-panel .snk-col{min-height:0;height:100%;max-height:100%}
.staff-notion-cal-panel .cal-root,
.staff-notion-cal-panel .cal-board{flex:1 1 auto;min-height:var(--sn-body-h)}
.staff-notion-cal-panel .cal-side{min-height:var(--sn-body-h)}
.staff-notion-cal-panel .cal-notice{flex:1 1 auto;min-height:420px}
.staff-notion-weekly-panel .snk-toolbar,
.staff-notion-weekly-panel .sn-weekly-nav,
.staff-notion-weekly-panel .sn-weekly-save-row,
.staff-notion-monthly-panel .snk-toolbar,
.staff-notion-monthly-panel .sn-weekly-nav,
.staff-notion-monthly-panel .sn-weekly-save-row{flex:0 0 auto}
.staff-notion-weekly-panel .sn-weekly-root,
.staff-notion-monthly-panel .sn-weekly-root{flex:1 1 auto;min-height:0;height:auto;display:flex;flex-direction:column;gap:0}
.staff-notion-weekly-panel .sn-weekly-memo,
.staff-notion-monthly-panel .sn-weekly-memo{flex:1 1 auto;min-height:0;height:auto;display:flex;flex-direction:column}
.staff-notion-weekly-panel .sn-weekly-memo textarea,
.staff-notion-monthly-panel .sn-weekly-memo textarea{flex:1 1 auto;min-height:0;height:100%;resize:vertical}
.staff-notion-new{width:100%;border:1.5px dashed #c5ccd8;background:#f8fafc;border-radius:12px;padding:12px;font:inherit;font-weight:700;color:var(--admin-navy);cursor:pointer}
.staff-notion-new:hover{background:#eef5ff;border-color:#9db7e8}
.staff-notion-items{display:flex;flex-direction:column;gap:16px;overflow:auto;flex:1;overflow-x:hidden}
.staff-notion-item{text-align:left;border:1px solid var(--admin-line);background:#fff;border-radius:12px;padding:14px 12px;cursor:pointer;font:inherit;box-sizing:border-box;max-width:100%}
.staff-notion-item.active{border-color:#7c5cbf;box-shadow:0 0 0 2px rgba(124,92,191,.15)}
.staff-notion-item-title{font-weight:700;color:var(--admin-navy);line-height:1.4;margin-bottom:0;word-break:break-word}
.staff-notion-item-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:var(--admin-muted)}
.staff-notion-badge{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:3px 8px;font-weight:700;font-size:12px;background:#f3f4f6;color:#4b5563}
.staff-notion-badge i{width:7px;height:7px;border-radius:50%;background:currentColor;display:inline-block}
.staff-notion-badge.st-request{background:#e8f1ff;color:#2563eb}
.staff-notion-badge.st-progress{background:#e8f8ef;color:#059669}
.staff-notion-badge.st-feedback{background:#f3e8ff;color:#7c3aed}
.staff-notion-badge.st-done{background:#ecfdf5;color:#047857}
.staff-notion-badge.st-hold{background:#f3f4f6;color:#6b7280}
.staff-notion-empty{display:grid;place-items:center;min-height:560px;color:var(--admin-muted);font-weight:600}
.staff-notion-label{display:block;font-size:13px;font-weight:700;color:var(--admin-muted);margin:0 0 6px}
.staff-notion-title,.staff-notion-body,.staff-notion-status,.staff-notion-comment-form input,.staff-notion-comment-form textarea{width:100%;border:1px solid var(--admin-line);border-radius:10px;padding:10px 12px;font:inherit;background:#fff}
.staff-notion-title{margin-bottom:14px;font-weight:700}
.staff-notion-body{margin-bottom:14px;resize:vertical;line-height:1.55}
.staff-notion-status-row{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.staff-notion-actions{display:flex;gap:8px}
.staff-notion-del{color:#b91c1c!important;border-color:#fecaca!important;background:#fff5f5!important}
.staff-notion-meta{font-size:12px;color:var(--admin-muted);margin-bottom:18px}
.staff-notion-comments h3{margin:0 0 10px;font-size:15px}
.staff-notion-comment-list{display:flex;flex-direction:column;gap:10px;margin-bottom:12px;max-height:280px;overflow:auto}
.staff-notion-comment{border:1px solid var(--admin-line);border-radius:10px;padding:10px 12px;background:#f8fafc}
.staff-notion-comment-head{font-size:12px;color:var(--admin-muted);margin-bottom:6px;font-weight:700}
.staff-notion-comment-body{line-height:1.5;color:var(--admin-navy);white-space:pre-wrap;word-break:break-word}
.staff-notion-comment-form{display:grid;grid-template-columns:160px 1fr auto;gap:8px;align-items:start}
@media (max-width:980px){
  .staff-notion-board{grid-template-columns:1fr}
  .staff-notion-list{min-height:auto}
  .staff-notion-comment-form{grid-template-columns:1fr}
}

.staff-notion-kanban-panel[hidden],.staff-notion-editor[hidden]{display:none!important}.staff-notion-empty{display:none!important}

.staff-notion-cal-panel[hidden],.staff-notion-notes-panel[hidden],.staff-notion-kanban-panel[hidden],.staff-notion-weekly-panel[hidden],.staff-notion-monthly-panel[hidden]{display:none!important}
.sn-weekly-nav{display:flex;align-items:center;justify-content:center;gap:12px;margin:0 0 12px;padding:10px 12px;border:1px solid var(--admin-line,#e3e8ef);border-radius:12px;background:#f8fafc;box-sizing:border-box}
.sn-weekly-nav strong{font-size:16px;color:var(--admin-navy,#13233f);min-width:220px;text-align:center}
.sn-weekly-root{display:grid;gap:12px}
.sn-weekly-memo,.sn-weekly-day{display:grid;gap:6px;background:#fff;border:1px solid var(--admin-line,#e3e8ef);border-radius:12px;padding:12px;box-sizing:border-box}
.sn-weekly-day-label{font-size:13px;font-weight:800;color:#13233f}
.sn-weekly-memo textarea,.sn-weekly-day textarea{width:100%;border:1px solid #e3e8ef;border-radius:10px;padding:12px 14px;font:inherit;line-height:1.55;resize:vertical;box-sizing:border-box;min-height:120px}
.sn-weekly-save-row{display:flex;justify-content:flex-end;margin-top:12px}
.sn-actions-end{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.sn-actions-split{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.sn-actions-right{display:flex;align-items:center;gap:8px;margin-left:auto}
.staff-notes-content{width:100%;min-height:420px;border:1px solid var(--admin-line);border-radius:12px;padding:14px;font:inherit;line-height:1.55;resize:vertical;box-sizing:border-box}.sn-page .staff-notion-board{margin-top:8px}.sn-page .admin-modal-backdrop{display:none;position:fixed;inset:0;background:rgba(15,23,42,.45);place-items:center;z-index:90;padding:20px}.sn-page .admin-modal-backdrop.open{display:grid}.sn-page .admin-modal{background:#fff;border-radius:16px;padding:18px;width:min(640px,94vw);max-height:90vh;overflow:auto}.sn-page .admin-modal-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px}.sn-page .item-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.sn-page .cal-day-write-row{display:flex;gap:8px;align-items:center}

/* Hide native number input steppers */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button{
  -webkit-appearance:none!important;
  appearance:none!important;
  display:none!important;
  margin:0!important;
  opacity:0!important;
  height:0!important;
  width:0!important;
  pointer-events:none!important;
}
input[type=number]{
  -moz-appearance:textfield!important;
  appearance:textfield!important;
}
