/* ============================================================
   (주)청아시스템 인트라넷 - Workspace Modules
   ------------------------------------------------------------
   - 인력 · k-apt · 캘린더 · 메일 · 업무일지 · 자료실
   - 단지 사진 · AI 실행 · PC 프로필 · 조직도
   - base.css의 디자인 토큰만 사용합니다.
   ============================================================ */

/* ---------------- Shared helpers ---------------- */
.btn--xs {
  height: 27px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 10.5px;
  gap: 4px;
}
.btn--xs .icon { width: 12px; height: 12px; }

.field-hint {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-top: 1px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.55;
}
.field-hint .icon { width: 12px; height: 12px; margin-top: 1px; flex: none; color: var(--brand-400); }

.field--check { justify-content: flex-end; }
.field--check > label { display: flex; align-items: center; gap: 7px; min-height: 36px; font-weight: 600; }
.field--check input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--brand-600); }

.form-note--rose { background: var(--rose-50); }
.form-note--rose .icon { color: var(--rose-500); }

.filter-pill--alert { border-color: var(--peach-100); color: var(--peach-700); background: var(--peach-50); }
.filter-pill--alert:hover { border-color: var(--peach-500); color: var(--peach-700); }
.filter-pill--alert.is-active { border-color: var(--peach-500); background: var(--peach-100); color: var(--peach-700); }

.csv-preview,
.csv-sample {
  padding: 10px 13px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: #F8FAFE;
  color: var(--ink-soft);
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 10.5px;
  line-height: 1.65;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}
.csv-sample { margin-top: 8px; color: var(--muted); }

.import-status,
.photo-import-status {
  margin-top: 10px;
  padding: 10px 13px;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.55;
}
.photo-import-result {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 9px;
  padding: 11px 14px;
  border: 1px solid var(--mint-100);
  border-radius: 11px;
  background: var(--mint-50);
  font-size: 10.5px;
  line-height: 1.6;
}
.photo-import-result strong { color: var(--mint-700); font-size: 11.5px; }
.photo-import-result span { color: var(--ink-soft); }

/* ---------------- 파일 배지 ---------------- */
.file-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: 40px;
  height: 26px;
  padding: 0 7px;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.file-badge--pdf { color: #C24156; background: #FFE8EC; }
.file-badge--doc { color: #2B59C3; background: #E7EEFF; }
.file-badge--xls { color: #0C7A55; background: #DDF7EC; }
.file-badge--ppt { color: #B85B1C; background: #FFEBD9; }
.file-badge--hwp { color: #2B6E9E; background: #E3F3FC; }
.file-badge--txt { color: #55617A; background: #EFF2F8; }
.file-badge--img { color: #6C57CC; background: #EFEAFE; }
.file-badge--zip { color: #8A6A1F; background: #FBF1D8; }
.file-badge--etc { color: var(--muted); background: #F2F5FA; }

/* ---------------- 사진 (프로필 · 단지) ---------------- */
.avatar-photo,
.photo-block {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  overflow: hidden;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 750;
  letter-spacing: -.02em;
  box-shadow: 0 1px 4px rgba(78, 94, 130, .10);
}
.avatar-photo img,
.photo-block img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .25s ease;
}
.avatar-photo.is-loaded img,
.photo-block.is-loaded img { opacity: 1; }
.avatar-photo__fallback,
.photo-block__fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  line-height: 1;
}
.avatar-photo.is-loaded .avatar-photo__fallback,
.photo-block.is-loaded .photo-block__fallback { opacity: 0; }
.avatar-photo--sm { width: 30px; height: 30px; font-size: 11px; border-width: 1px; }
.avatar-photo--md { width: 40px; height: 40px; font-size: 13px; }
.avatar-photo--lg { width: 50px; height: 50px; font-size: 17px; }
.avatar-photo--xl { width: 68px; height: 68px; font-size: 22px; }
.avatar-photo--blue, .photo-block--blue { color: var(--brand-700); background: linear-gradient(135deg, #EAF0FF, #D7E2FF); }
.avatar-photo--mint, .photo-block--mint { color: var(--mint-700); background: linear-gradient(135deg, #E9FBF4, #D2F7E8); }
.avatar-photo--lavender, .photo-block--lavender { color: var(--lavender-700); background: linear-gradient(135deg, #F2EDFF, #E5DDFF); }
.avatar-photo--peach, .photo-block--peach { color: var(--peach-700); background: linear-gradient(135deg, #FFF4E8, #FFE7CF); }
.avatar-photo--sky, .photo-block--sky { color: var(--sky-700); background: linear-gradient(135deg, #EAF9FF, #D6F2FF); }
.avatar-photo--rose, .photo-block--rose { color: var(--rose-700); background: linear-gradient(135deg, #FFF0F3, #FFDEE5); }

.photo-block {
  border-radius: 14px;
  border-width: 1px;
  border-color: rgba(255, 255, 255, .7);
}
.photo-block__fallback .icon { width: 38%; height: 38%; min-width: 18px; min-height: 18px; }

/* ---------------- 단지 사진 카드 ---------------- */
.site-card--photo {
  padding: 0;
  gap: 0;
  overflow: hidden;
}
.site-card--photo::before { display: none; }
.site-card-photo-wrap {
  position: relative;
  aspect-ratio: 16 / 7.4;
  overflow: hidden;
  background: linear-gradient(135deg, #EAF0FF, #EFFCF7);
}
.site-card-photo-wrap .site-thumb {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.site-card-photo-wrap .site-thumb .photo-block__fallback .icon { width: 30px; height: 30px; }
.site-card--photo .site-card-status {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(40, 56, 90, .12);
}
.site-card-alert {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  border-radius: 7px;
  background: rgba(255, 244, 246, .94);
  color: var(--rose-700);
  font-size: 9.5px;
  font-weight: 750;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(40, 56, 90, .10);
}
.site-card-alert .icon { width: 12px; height: 12px; }
.site-card-body {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 14px 16px 15px;
}
.site-card-dday { flex: none; }
.site-card--expiring { border-color: var(--peach-100); }
.site-card--expiring:hover { border-color: var(--peach-500); }
.site-address-actions { display: inline-flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }

/* 단지 상세 사진 */
.site-detail-photo {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  border: 2px solid #fff;
  box-shadow: var(--shadow-card);
}
.site-detail-photo-actions { display: flex; gap: 4px; margin-left: auto; align-self: flex-start; }
.site-detail-tags { display: inline-flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }

/* 단지 사진 편집 */
.site-photo-edit {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 13px;
  background: #FBFCFE;
}
.site-photo-preview {
  width: 92px;
  height: 70px;
  border-radius: 11px;
  border: 1px solid var(--line);
  box-shadow: none;
}
.site-photo-edit-copy { flex: 1; min-width: 0; }
.site-photo-edit-copy strong { display: block; color: var(--ink); font-size: 12px; font-weight: 750; }
.site-photo-edit-copy p { margin-top: 2px; color: var(--muted); font-size: 10.5px; line-height: 1.55; }
.site-photo-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* ---------------- 대시보드 90일 · 오늘 일정 ---------------- */
.dash-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.dash-focus-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-top: 3px solid var(--brand-200);
}
.dash-focus-card--peach { border-top-color: #FFD3A8; }
.dash-focus-card--lavender { border-top-color: #D8CDFF; }
.dash-focus-card > .card-head { flex: none; }
.dash-focus-body { flex: 1; padding: 8px 12px 10px; }
.dash-agenda-row { width: 100%; }
.dash-agenda-time {
  flex: none;
  min-width: 46px;
  color: var(--brand-600);
  font-size: 10.5px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.dash-focus-body .mini-row { width: 100%; }
.dash-focus-body .mini-row + .mini-row { margin-top: 2px; }

/* 단지 계약 만료 목록 */
.site-contract-list { padding: 4px 12px 8px; }
.site-contract-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 8px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  text-align: left;
  transition: background .16s;
}
.site-contract-row:hover { background: var(--peach-50); }
.site-contract-row + .site-contract-row { border-top: 1px dashed var(--line); }
.site-contract-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 10px;
}
.site-contract-icon .icon { width: 16px; height: 16px; }
.site-contract-copy { flex: 1; min-width: 0; }
.site-contract-copy strong { display: block; color: var(--ink); font-size: 11.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-contract-copy small { display: block; margin-top: 1px; color: var(--muted); font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------- 모바일 전환 기본값 ---------------- */
.attendance-mobile,
.contract-mobile { display: none; }
.attendance-desktop,
.contract-desktop { display: block; }
.contract-desktop.table-wrap { display: block; }

/* ---------------- 스위치 ---------------- */
.switch { position: relative; display: inline-flex; flex: none; width: 40px; height: 23px; }
.switch input { position: absolute; inset: 0; z-index: 2; margin: 0; opacity: 0; cursor: pointer; }
.switch > span {
  width: 100%;
  height: 100%;
  border-radius: 99px;
  background: #DFE6F2;
  transition: background .2s;
}
.switch > span::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(50, 66, 96, .20);
  transition: transform .2s;
}
.switch input:checked + span { background: var(--brand-500); }
.switch input:checked + span::after { transform: translateX(17px); }
.switch input:focus-visible + span { outline: 2px solid var(--brand-500); outline-offset: 2px; }

/* ============================================================
   현장 인력
   ============================================================ */
.workers-page { display: flex; flex-direction: column; gap: 18px; }

.workers-toolbar {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 14px 16px;
}
.workers-toolbar-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.workers-toolbar-row--bottom {
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.workers-search { flex: 1 1 260px; min-width: 200px; height: 38px; }
.worker-filter-select { width: auto; min-width: 122px; height: 38px; flex: none; }
.worker-count-line {
  margin-left: auto;
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
}
.worker-count-line strong { color: var(--ink); font-size: 12px; font-weight: 750; }
.worker-role-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.worker-role-pills .filter-pill { height: 29px; padding: 0 11px; font-size: 11px; }
.workers-tool-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.worker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.worker-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.worker-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-100);
  box-shadow: 0 16px 30px -22px rgba(60, 76, 120, .34);
}
.worker-card-top { display: flex; align-items: flex-start; gap: 10px; }
.worker-card-copy { flex: 1; min-width: 0; }
.worker-card-copy strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
  letter-spacing: -.03em;
}
.worker-card-copy > span {
  display: block;
  margin-top: 1px;
  color: var(--brand-600);
  font-size: 10.5px;
  font-weight: 700;
}
.worker-card-copy small {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9.8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.worker-card-copy small .icon { width: 11px; height: 11px; flex: none; color: var(--muted-light); }
.worker-card-top .status-pill { flex: none; }

.worker-card-contact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #FAFCFF;
  border: 1px solid #EFF4FC;
}
.worker-contact-link {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .16s;
}
.worker-contact-link:hover { color: var(--brand-600); }
.worker-contact-link .icon { width: 12px; height: 12px; flex: none; color: var(--brand-400); }
.worker-contact-link.is-muted { color: var(--muted-light); font-weight: 500; }
.worker-contact-link.is-muted .icon { color: var(--muted-light); }

.worker-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  color: var(--muted);
  font-size: 9.8px;
}
.worker-card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.worker-card-meta .icon { width: 11px; height: 11px; color: var(--muted-light); }
.worker-card-memo {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 7px 9px;
  border-left: 2px solid var(--brand-100);
  border-radius: 0 7px 7px 0;
  background: var(--brand-50);
  color: var(--ink-soft);
  font-size: 9.8px;
  line-height: 1.55;
}
.worker-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
}
.worker-card-id { color: var(--muted-light); font-size: 9px; font-weight: 650; }
.worker-card-actions { display: flex; gap: 5px; }
.worker-card-actions .btn { font-size: 10.5px; height: 29px; padding: 0 9px; border-radius: 8px; }
.worker-card-actions .btn .icon { width: 12px; height: 12px; }

.worker-empty { grid-column: 1 / -1; }
.worker-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 4px 2px;
  color: var(--muted);
  font-size: 10.5px;
}
.worker-pager strong { color: var(--ink-soft); font-weight: 750; }
.worker-pager-actions { display: flex; align-items: center; gap: 7px; }
.worker-page-num {
  min-width: 52px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* 인력 상세 */
.worker-detail-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px;
  border-radius: 15px;
  background: linear-gradient(120deg, #F2F6FF, #F1FBF7);
}
.worker-detail-copy { flex: 1; min-width: 0; }
.worker-detail-copy strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 780;
  letter-spacing: -.03em;
}
.worker-detail-copy strong span { color: var(--brand-600); font-size: 11.5px; font-weight: 700; margin-left: 3px; }
.worker-detail-copy small {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
}
.worker-detail-copy small .icon { width: 12px; height: 12px; }
.worker-detail-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.worker-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 14px;
}
.worker-detail-grid > div {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #FCFDFF;
}
.worker-detail-grid span { display: block; color: var(--muted); font-size: 9.3px; }
.worker-detail-grid strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 700;
  word-break: break-all;
}
.worker-detail-memo {
  margin-top: 10px;
  padding: 10px 13px;
  border-radius: 11px;
  background: var(--peach-50);
}
.worker-detail-memo span { color: var(--peach-700); font-size: 9.3px; font-weight: 750; }
.worker-detail-memo p { margin-top: 2px; color: var(--ink-soft); font-size: 10.5px; line-height: 1.6; }
.worker-detail-site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #FBFCFE;
}
.worker-detail-site > span { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-soft); font-size: 10.5px; font-weight: 600; }
.worker-detail-site .icon { width: 13px; height: 13px; color: var(--brand-500); }

/* ============================================================
   k-apt 입찰공고
   ============================================================ */
.kapt-page { display: flex; flex-direction: column; gap: 18px; }

.kapt-demo-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 15px;
  border: 1px solid var(--brand-100);
  border-radius: 14px;
  background: linear-gradient(120deg, var(--brand-50), #F7FBFF);
}
.kapt-demo-note > .icon { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--brand-500); }
.kapt-demo-note > div { flex: 1; min-width: 0; }
.kapt-demo-note strong { display: block; color: var(--ink); font-size: 11.5px; font-weight: 750; }
.kapt-demo-note p { margin-top: 2px; color: var(--ink-soft); font-size: 10.5px; line-height: 1.6; }
.kapt-demo-note b { color: var(--brand-700); font-weight: 700; }
.kapt-demo-note .btn { flex: none; }

.kapt-condition-card {
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}
.kapt-condition-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.kapt-condition-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.kapt-condition-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 11px;
  background: var(--lavender-50);
  color: var(--lavender-600);
}
.kapt-condition-icon .icon { width: 18px; height: 18px; }
.kapt-condition-title strong { display: block; color: var(--ink); font-size: 13px; font-weight: 760; letter-spacing: -.02em; }
.kapt-condition-title small { display: block; margin-top: 1px; color: var(--muted); font-size: 9.8px; }
.kapt-condition-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.kapt-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 27px;
  padding: 0 10px;
  border: 1px solid var(--brand-100);
  border-radius: 8px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}
.kapt-chip em { font-style: normal; color: var(--brand-500); font-size: 9px; font-weight: 750; }
.kapt-chip--muted { border-color: var(--line); background: #F7F9FD; color: var(--muted); }
.kapt-chip--muted em { color: var(--muted-light); }
.kapt-chip--mint { border-color: var(--mint-100); background: var(--mint-50); color: var(--mint-700); }
.kapt-chip--mint em { color: var(--mint-600); }

.kapt-list-card { overflow: hidden; }
.kapt-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.kapt-tabs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.kapt-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  transition: all .16s;
}
.kapt-tab:hover { background: #F7F9FE; color: var(--ink-soft); }
.kapt-tab span {
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 99px;
  background: #F0F4FA;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}
.kapt-tab.is-active { border-color: var(--brand-100); background: var(--brand-50); color: var(--brand-700); }
.kapt-tab.is-active span { background: #fff; color: var(--brand-600); }

.kapt-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 18px 18px;
  background: #FBFCFE;
}
.kapt-notice {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.kapt-notice:hover {
  transform: translateY(-2px);
  border-color: var(--brand-100);
  box-shadow: 0 14px 26px -22px rgba(60, 76, 120, .34);
}
.kapt-notice.is-new { border-color: var(--brand-100); }
.kapt-notice.is-hidden { opacity: .75; background: #FAFBFD; }
.kapt-notice-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.kapt-notice-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; min-width: 0; }
.kapt-notice-badges .badge { font-size: 9.3px; padding: 2px 6px; }
.kapt-notice .dday { flex: none; }
.kapt-new-dot {
  width: 6px;
  height: 6px;
  margin-left: 1px;
  border-radius: 50%;
  background: var(--rose-500);
  box-shadow: 0 0 0 3px rgba(251, 113, 133, .16);
}
.kapt-notice-title {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
  letter-spacing: -.02em;
  text-align: left;
  transition: color .16s;
}
.kapt-notice-title:hover { color: var(--brand-600); }
.kapt-notice-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  color: var(--muted);
  font-size: 9.5px;
}
.kapt-notice-meta span { display: inline-flex; align-items: center; gap: 4px; }
.kapt-notice-meta .icon { width: 11px; height: 11px; color: var(--muted-light); }
.kapt-notice-summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 10.5px;
  line-height: 1.6;
  min-height: 33px;
}
.kapt-notice-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
}
.kapt-notice-tags { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.kapt-notice-tags span {
  padding: 2px 6px;
  border-radius: 6px;
  background: #F5F8FD;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}
.kapt-notice-actions { display: flex; align-items: center; gap: 2px; flex: none; }
.kapt-notice-actions .icon-btn { width: 28px; height: 28px; border-radius: 8px; }
.kapt-notice-actions .icon-btn .icon { width: 14px; height: 14px; }
.kapt-notice-actions .icon-btn.is-on { background: var(--peach-50); color: var(--peach-600); }
.kapt-notice-actions .btn { height: 29px; padding: 0 9px; font-size: 10px; border-radius: 8px; }

/* 공고 상세 */
.kapt-detail-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-bottom: 12px; }
.kapt-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.kapt-detail-grid > div {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #FCFDFF;
}
.kapt-detail-grid span { display: block; color: var(--muted); font-size: 9.3px; }
.kapt-detail-grid strong { display: block; margin-top: 2px; color: var(--ink); font-size: 11.5px; font-weight: 700; line-height: 1.5; }
.kapt-detail-grid strong .icon { width: 12px; height: 12px; color: var(--mint-600); vertical-align: -2px; }
.kapt-detail-section { margin-top: 14px; }
.kapt-detail-section h3 { margin-bottom: 5px; color: var(--ink); font-size: 12px; font-weight: 750; }
.kapt-detail-section p { color: var(--ink-soft); font-size: 11.5px; line-height: 1.72; }
.kapt-detail-reasons {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 13px;
  border-radius: 11px;
  background: var(--mint-50);
}
.kapt-detail-reasons span { display: flex; align-items: flex-start; gap: 5px; color: var(--mint-700); font-size: 10.5px; line-height: 1.5; }
.kapt-detail-reasons .icon { width: 12px; height: 12px; margin-top: 2px; flex: none; }
.kapt-detail-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.kapt-detail-tags span {
  padding: 3px 8px;
  border-radius: 7px;
  background: var(--lavender-50);
  color: var(--lavender-700);
  font-size: 9.5px;
  font-weight: 650;
}

/* 연결 안내 */
.help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.help-block {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #FBFCFE;
}
.help-block strong { display: block; color: var(--ink); font-size: 11px; font-weight: 700; }
.help-block p { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.help-block code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 9.5px;
  word-break: break-all;
}

/* ============================================================
   일정 · 캘린더
   ============================================================ */
.cal-page { display: flex; flex-direction: column; gap: 18px; }

.cal-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.cal-summary-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.cal-summary-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 10px;
}
.cal-summary-icon .icon { width: 17px; height: 17px; }
.cal-summary-item small { display: block; color: var(--muted); font-size: 9.5px; }
.cal-summary-item strong {
  display: block;
  margin-top: 1px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-summary-item strong em { margin-left: 2px; color: var(--muted); font-size: 10px; font-style: normal; font-weight: 650; }
.cal-summary-next strong { font-size: 12.5px; letter-spacing: -.02em; }
.cal-summary-next > div { min-width: 0; }
.cal-summary-next > div > span { display: block; margin-top: 1px; color: var(--muted); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 306px;
  gap: 18px;
  align-items: start;
}
.cal-main-card { overflow: hidden; }
.cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.cal-nav { display: flex; align-items: center; gap: 5px; }
.cal-nav .icon-btn { width: 32px; height: 32px; border-radius: 9px; border-color: var(--line); }
.cal-nav .icon-btn .icon { width: 16px; height: 16px; }
.cal-month-label {
  min-width: 132px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 790;
  letter-spacing: -.04em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.cal-filters { display: flex; gap: 4px; flex-wrap: wrap; }
.cal-filters .filter-pill { height: 29px; padding: 0 11px; font-size: 11px; }

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: #FBFCFE;
}
.cal-weekdays span {
  padding: 8px 4px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 750;
  text-align: center;
}
.cal-weekdays .is-sun { color: var(--rose-500); }
.cal-weekdays .is-sat { color: var(--sky-600); }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  padding: 0 1px 1px;
}
.cal-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  min-height: 104px;
  padding: 6px 6px 7px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
}
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-cell:hover { background: #FAFCFF; }
.cal-cell.is-outside { background: #FCFDFF; }
.cal-cell.is-outside .cal-day-number,
.cal-cell.is-outside .cal-event { opacity: .38; }
.cal-cell.is-selected { background: var(--brand-50); box-shadow: inset 0 0 0 1.5px var(--brand-200); z-index: 1; }
.cal-cell.is-today { background: linear-gradient(180deg, #F4F8FF, #FFFDF8); }
.cal-cell.is-today.is-selected { background: var(--brand-50); }
.cal-cell-head { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 22px; }
.cal-day-number {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 3px;
  border-radius: 7px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cal-cell.is-sun .cal-day-number { color: var(--rose-500); }
.cal-cell.is-sat .cal-day-number { color: var(--sky-600); }
.cal-cell.is-today .cal-day-number { background: var(--brand-600); color: #fff; box-shadow: 0 3px 8px -3px rgba(91, 124, 250, .6); }
.cal-today-label {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--mint-50);
  color: var(--mint-700);
  font-size: 8px;
  font-weight: 750;
}
.cal-event-count {
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: #EFF3FA;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 700;
}
.cal-cell-events { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal-event {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-width: 0;
  padding: 2px 4px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  font-size: 9px;
  font-weight: 650;
  text-align: left;
  transition: background .14s;
}
.cal-event:hover { background: rgba(109, 141, 255, .10); }
.cal-event i { width: 5px; height: 5px; flex: none; border-radius: 50%; background: var(--brand-500); }
.cal-event span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-event--blue { color: var(--brand-700); }
.cal-event--blue i { background: var(--brand-500); }
.cal-event--mint { color: var(--mint-700); }
.cal-event--mint i { background: var(--mint-500); }
.cal-event--peach { color: var(--peach-700); }
.cal-event--peach i { background: var(--peach-500); }
.cal-event--rose { color: var(--rose-700); }
.cal-event--rose i { background: var(--rose-500); }
.cal-event--lavender { color: var(--lavender-700); }
.cal-event--lavender i { background: var(--lavender-500); }
.cal-event--sky { color: var(--sky-700); }
.cal-event--sky i { background: var(--sky-500); }
.cal-event--slate { color: var(--ink-soft); }
.cal-event--slate i { background: var(--muted-light); }
.cal-event.is-personal { font-style: normal; background: rgba(241, 245, 255, .6); }
.cal-more { padding: 1px 4px; color: var(--muted); font-size: 8.5px; font-weight: 650; }

.cal-agenda { border-top: 1px solid var(--line); background: #FCFDFF; }
.cal-agenda-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 18px 8px;
}
.cal-agenda-head h3 { color: var(--ink); font-size: 13px; font-weight: 760; letter-spacing: -.02em; }
.cal-agenda-head p { margin-top: 1px; color: var(--muted); font-size: 9.5px; }
.cal-agenda-list { display: flex; flex-direction: column; gap: 2px; padding: 0 10px 12px; }
.cal-agenda-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  transition: background .15s, border-color .15s;
}
.cal-agenda-item:hover { border-color: var(--brand-100); background: #fff; }
.cal-agenda-time {
  flex: none;
  width: 48px;
  color: var(--brand-700);
  font-size: 10px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.cal-agenda-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--brand-500); }
.cal-agenda-dot--mint { background: var(--mint-500); }
.cal-agenda-dot--peach { background: var(--peach-500); }
.cal-agenda-dot--rose { background: var(--rose-500); }
.cal-agenda-dot--lavender { background: var(--lavender-500); }
.cal-agenda-dot--sky { background: var(--sky-500); }
.cal-agenda-dot--slate { background: var(--muted-light); }
.cal-agenda-copy { flex: 1; min-width: 0; }
.cal-agenda-copy strong { display: block; color: var(--ink); font-size: 11.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-agenda-copy small { display: block; color: var(--muted); font-size: 9.3px; }
.cal-agenda-empty {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0 16px 14px;
  padding: 12px 13px;
  border-radius: 10px;
  background: #F6F9FE;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}
.cal-agenda-empty .icon { width: 14px; height: 14px; margin-top: 1px; flex: none; color: var(--brand-400); }

.cal-side { display: flex; flex-direction: column; gap: 14px; }
.cal-side-card > .card-head { padding: 14px 16px 0; }
.cal-side-card .card-title { font-size: 12.5px; }
.cal-side-card .card-sub { font-size: 9.5px; }
.cal-side-card .head-stat { height: 24px; min-width: 30px; padding: 0 8px; font-size: 9.5px; }
.cal-side-empty { padding: 14px 16px 18px; color: var(--muted); font-size: 10.5px; }
.cal-today-list { display: flex; flex-direction: column; gap: 2px; padding: 8px 8px 12px; }
.cal-today-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  transition: background .15s;
}
.cal-today-item:hover { background: #F8FAFF; }
.cal-today-item.is-next { border-color: var(--brand-100); background: var(--brand-50); }
.cal-today-time {
  flex: none;
  min-width: 42px;
  color: var(--brand-700);
  font-size: 9.5px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.cal-today-copy { flex: 1; min-width: 0; }
.cal-today-copy strong { display: block; color: var(--ink); font-size: 10.5px; font-weight: 650; line-height: 1.45; }
.cal-today-copy small { display: flex; align-items: center; gap: 3px; margin-top: 1px; color: var(--muted); font-size: 9px; }
.cal-today-copy small .icon { width: 10px; height: 10px; }
.cal-today-empty {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 14px 12px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}
.cal-today-empty .icon { width: 14px; height: 14px; flex: none; color: var(--mint-500); }

.cal-upcoming { display: flex; flex-direction: column; gap: 1px; padding: 6px 8px 10px; }
.cal-upcoming-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  text-align: left;
  transition: background .15s;
}
.cal-upcoming-item:hover { background: #F8FAFF; }
.cal-upcoming-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 34px;
  flex: none;
  border-radius: 8px;
  background: #F4F7FD;
  color: var(--ink);
}
.cal-upcoming-date strong { font-size: 12px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cal-upcoming-date small { color: var(--muted); font-size: 7.5px; font-weight: 650; }
.cal-upcoming-copy { flex: 1; min-width: 0; }
.cal-upcoming-copy strong { display: block; color: var(--ink); font-size: 10.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-upcoming-copy small { display: block; color: var(--muted); font-size: 8.8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-upcoming-tone {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 7px;
  background: var(--brand-50);
  color: var(--brand-600);
}
.cal-upcoming-tone .icon { width: 12px; height: 12px; }
.cal-upcoming-tone--mint { background: var(--mint-50); color: var(--mint-600); }
.cal-upcoming-tone--peach { background: var(--peach-50); color: var(--peach-600); }
.cal-upcoming-tone--rose { background: var(--rose-50); color: var(--rose-600); }
.cal-upcoming-tone--lavender { background: var(--lavender-50); color: var(--lavender-600); }
.cal-upcoming-tone--sky { background: var(--sky-50); color: var(--sky-600); }
.cal-upcoming-tone--slate { background: #F3F6FB; color: var(--muted); }

.cal-alert-card { padding: 14px 16px; }
.cal-alert-row { display: flex; align-items: flex-start; gap: 9px; }
.cal-alert-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 9px;
  background: var(--peach-50);
  color: var(--peach-600);
}
.cal-alert-icon .icon { width: 16px; height: 16px; }
.cal-alert-row > div { flex: 1; min-width: 0; }
.cal-alert-row strong { display: block; color: var(--ink); font-size: 11.5px; font-weight: 700; }
.cal-alert-row p { margin-top: 1px; color: var(--muted); font-size: 9.5px; line-height: 1.55; }

/* 일정 상세 */
.event-detail-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border-radius: 14px;
  background: linear-gradient(120deg, #F3F7FF, #F6FBFF);
}
.event-detail-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 12px;
}
.event-detail-icon .icon { width: 20px; height: 20px; }
.event-detail-head > div { flex: 1; min-width: 0; }
.event-detail-head > div strong { display: block; color: var(--ink); font-size: 13px; font-weight: 750; }
.event-detail-head > div span { display: block; color: var(--muted); font-size: 10px; }
.event-detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}
.event-detail-facts > div { padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: #FCFDFF; }
.event-detail-facts span { display: block; color: var(--muted); font-size: 9.3px; }
.event-detail-facts strong { display: block; margin-top: 1px; color: var(--ink); font-size: 11.5px; font-weight: 700; }
.event-detail-desc {
  margin-top: 10px;
  padding: 11px 13px;
  border-radius: 10px;
  background: #FBFCFE;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.7;
}
.cal-check-label {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}
.cal-check-label input { width: 15px; height: 15px; accent-color: var(--brand-600); }

/* ============================================================
   메일
   ============================================================ */
.mail-page { display: flex; flex-direction: column; gap: 16px; }

.mail-status-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 13px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #F5F9FF, #F4FCF9 60%, #FFFDF8);
  box-shadow: var(--shadow-sm);
}
.mail-account { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.mail-provider-logo {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 11px;
  background: #03C75A;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.04em;
  box-shadow: 0 5px 12px -6px rgba(3, 199, 90, .7);
}
.mail-account-copy { min-width: 0; }
.mail-account-copy span { display: block; color: var(--muted); font-size: 9px; }
.mail-account-copy strong { display: block; color: var(--ink); font-size: 12.5px; font-weight: 750; letter-spacing: -.02em; }
.mail-account-copy small { display: block; margin-top: 1px; color: var(--muted); font-size: 9px; }
.mail-connection {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 21px;
  padding: 0 7px;
  border-radius: 6px;
  background: #F3F6FB;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 700;
  white-space: nowrap;
}
.mail-connection i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted-light); }
.mail-connection.is-connected { background: var(--mint-50); color: var(--mint-700); }
.mail-connection.is-connected i { background: var(--mint-500); }
.mail-stats { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; flex: 1; }
.mail-stat { min-width: 66px; }
.mail-stat span { display: block; color: var(--muted); font-size: 8.5px; }
.mail-stat strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.mail-stat strong small { margin-left: 1px; color: var(--muted); font-size: 8.5px; font-weight: 600; }
.mail-stat--sync { min-width: 92px; }
.mail-stat--sync strong { font-size: 10px; font-weight: 700; letter-spacing: 0; line-height: 1.5; }
.mail-banner-actions { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-left: auto; }
.mail-banner-actions .btn { height: 31px; padding: 0 10px; font-size: 10.5px; }

.mail-shell {
  display: grid;
  grid-template-columns: 188px 316px minmax(0, 1fr);
  height: clamp(520px, calc(100vh - 310px), 820px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

/* 폴더 */
.mail-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--line);
  background: #FBFCFE;
}
.mail-side-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  padding: 14px 12px 9px;
}
.mail-side-head strong { display: block; color: var(--ink); font-size: 12px; font-weight: 760; }
.mail-side-head span { display: block; margin-top: 1px; color: var(--muted); font-size: 8.8px; word-break: break-all; }
.mail-side-head .icon-btn { width: 27px; height: 27px; border-radius: 8px; background: #fff; border-color: var(--line); }
.mail-side-head .icon-btn .icon { width: 14px; height: 14px; }
.mail-folders { display: flex; flex-direction: column; gap: 2px; padding: 2px 8px; flex: 1; overflow-y: auto; }
.mail-folder {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  height: 34px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 650;
  text-align: left;
  transition: all .15s;
}
.mail-folder .icon { width: 15px; height: 15px; flex: none; color: var(--muted); }
.mail-folder span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-folder em {
  min-width: 17px;
  padding: 1px 4px;
  border-radius: 99px;
  background: #EFF3FA;
  color: var(--muted);
  font-size: 8.5px;
  font-style: normal;
  font-weight: 750;
  text-align: center;
}
.mail-folder:hover { background: #F4F7FD; }
.mail-folder.is-active { border-color: var(--brand-100); background: var(--brand-50); color: var(--brand-700); }
.mail-folder.is-active .icon { color: var(--brand-600); }
.mail-folder.is-active em { background: #fff; color: var(--brand-600); }
.mail-side-foot { padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.mail-side-foot .btn { height: 33px; font-size: 11px; }
.mail-side-foot p { display: flex; align-items: flex-start; gap: 3px; margin-top: 7px; color: var(--muted-light); font-size: 8px; line-height: 1.5; }
.mail-side-foot p .icon { width: 10px; height: 10px; margin-top: 1px; flex: none; }

/* 목록 */
.mail-list-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 1px solid var(--line); }
.mail-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 14px 7px;
}
.mail-list-head > div:first-child { display: flex; align-items: baseline; gap: 5px; }
.mail-list-head strong { color: var(--ink); font-size: 12.5px; font-weight: 760; }
.mail-list-head span { color: var(--muted); font-size: 9px; }
.mail-list-actions { display: flex; gap: 2px; }
.mail-list-actions .icon-btn { width: 28px; height: 28px; border-radius: 8px; }
.mail-list-actions .icon-btn .icon { width: 14px; height: 14px; }
.mail-search {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 33px;
  margin: 0 12px 7px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #FBFCFE;
  transition: border-color .16s, box-shadow .16s;
}
.mail-search:focus-within { border-color: var(--brand-400); background: #fff; box-shadow: 0 0 0 3px rgba(109, 141, 255, .09); }
.mail-search .icon { width: 14px; height: 14px; color: var(--muted); }
.mail-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 10.5px; }
.mail-search input::placeholder { color: var(--muted-light); }
.mail-filters { display: flex; gap: 2px; padding: 0 12px 7px; border-bottom: 1px solid var(--line); }
.mail-filters button {
  height: 25px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 650;
  transition: all .15s;
}
.mail-filters button:hover { background: #F6F9FE; color: var(--ink-soft); }
.mail-filters button.is-active { background: var(--brand-50); color: var(--brand-700); }
.mail-list { flex: 1; min-height: 0; overflow-y: auto; padding: 3px 6px 6px; }
.mail-item {
  display: block;
  width: 100%;
  padding: 9px 9px 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  transition: background .14s, border-color .14s;
}
.mail-item + .mail-item { border-top: 1px dashed transparent; }
.mail-item:hover { background: #F8FAFE; }
.mail-item.is-active { border-color: var(--brand-100); background: var(--brand-50); }
.mail-item.is-unread { background: #FBFCFF; }
.mail-item.is-unread:hover { background: #F6F9FF; }
.mail-item-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.mail-item-sender {
  min-width: 0;
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mail-item.is-unread .mail-item-sender { color: var(--ink); font-weight: 750; }
.mail-item-date { flex: none; color: var(--muted-light); font-size: 8.3px; }
.mail-item-subject {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
  color: var(--ink);
  font-size: 10.8px;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mail-item.is-unread .mail-item-subject { font-weight: 750; }
.mail-star { display: inline-flex; flex: none; color: var(--peach-500); }
.mail-star .icon { width: 11px; height: 11px; }
.mail-item-preview {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.5;
}
.mail-item-foot { display: flex; align-items: center; gap: 4px; margin-top: 4px; min-height: 13px; }
.mail-unread-label {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--brand-600);
  color: #fff;
  font-size: 7.5px;
  font-weight: 750;
}
.mail-attach-label { display: inline-flex; align-items: center; gap: 1px; color: var(--muted); font-size: 8px; }
.mail-attach-label .icon { width: 9px; height: 9px; }
.mail-tag {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--mint-50);
  color: var(--mint-700);
  font-size: 7.5px;
  font-weight: 700;
}
.mail-demo-label { margin-left: auto; color: var(--muted-light); font-size: 7.5px; }
.mail-list-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 13px;
  border-top: 1px solid var(--line);
  background: #FCFDFF;
  color: var(--muted-light);
  font-size: 8.3px;
}
.mail-list-foot span { display: inline-flex; align-items: center; gap: 3px; }
.mail-list-foot .icon { width: 10px; height: 10px; }

/* 읽기 */
.mail-reader { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: #fff; }
.mail-reader-inner { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.mail-reader-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.mail-back { display: none; width: 30px; height: 30px; flex: none; border: 1px solid var(--line); border-radius: 8px; }
.mail-back .icon { width: 15px; height: 15px; }
.mail-reader-title { flex: 1; min-width: 0; }
.mail-reader-title h2 {
  margin-top: 5px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 770;
  letter-spacing: -.03em;
  line-height: 1.4;
}
.mail-reader-actions { display: flex; align-items: center; gap: 2px; flex: none; }
.mail-reader-actions .icon-btn { width: 29px; height: 29px; border-radius: 8px; }
.mail-reader-actions .icon-btn .icon { width: 14px; height: 14px; }
.mail-reader-actions .btn { height: 30px; padding: 0 9px; font-size: 10px; border-radius: 8px; }
.mail-reader-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 15px 18px 18px; }
.mail-from { display: flex; align-items: flex-start; gap: 9px; }
.mail-from-copy { flex: 1; min-width: 0; }
.mail-from-top { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.mail-from-top strong { color: var(--ink); font-size: 12px; font-weight: 750; }
.mail-from-email { color: var(--muted); font-size: 9.3px; word-break: break-all; }
.mail-from-to { margin-top: 2px; color: var(--muted); font-size: 9.3px; }
.mail-from-to span { display: inline-block; margin-right: 4px; padding: 1px 5px; border-radius: 4px; background: #F3F6FB; color: var(--muted); font-size: 8px; font-weight: 650; }
.mail-from-date { flex: none; color: var(--muted-light); font-size: 8.8px; }
.mail-body { margin-top: 17px; padding-top: 15px; border-top: 1px dashed var(--line); }
.mail-body p { color: var(--ink-soft); font-size: 11.8px; line-height: 1.85; }
.mail-body p + p { margin-top: 9px; }
.mail-attachments {
  margin-top: 16px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #FBFCFE;
}
.mail-attachments h3 { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; color: var(--ink); font-size: 10.5px; font-weight: 700; }
.mail-attachments h3 .icon { width: 12px; height: 12px; color: var(--muted); }
.mail-attachments h3 span { color: var(--muted); font-size: 9px; font-weight: 500; }
.mail-attachment {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  text-align: left;
  transition: background .14s;
}
.mail-attachment:hover { background: var(--brand-50); }
.mail-attachment .icon { width: 14px; height: 14px; color: var(--brand-500); }
.mail-attachment-copy { flex: 1; min-width: 0; }
.mail-attachment-copy strong { display: block; color: var(--ink); font-size: 10px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-attachment-copy small { display: block; color: var(--muted); font-size: 8.5px; }
.mail-reply-bar {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.mail-reply-bar .btn { height: 31px; font-size: 10.5px; }
.mail-demo-note {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 13px;
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--peach-50);
  color: var(--peach-700);
  font-size: 9.3px;
  line-height: 1.6;
}
.mail-demo-note .icon { width: 12px; height: 12px; margin-top: 1px; flex: none; }
.mail-reader-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 100%;
  padding: 30px 22px;
  text-align: center;
}
.mail-reader-empty-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 5px;
  border-radius: 18px;
  background: linear-gradient(135deg, #EFF4FF, #EFFCF8);
  color: var(--brand-400);
}
.mail-reader-empty-icon .icon { width: 26px; height: 26px; }
.mail-reader-empty strong { color: var(--ink); font-size: 13px; font-weight: 750; }
.mail-reader-empty p { max-width: 240px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.mail-reader-empty .btn { margin-top: 8px; }

.mail-tip {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 11px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: #FBFCFE;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}
.mail-tip > .icon { width: 14px; height: 14px; margin-top: 1px; flex: none; color: var(--brand-400); }
.mail-tip strong { color: var(--ink-soft); font-weight: 700; }

/* 메일 작성 */
.mail-compose { display: flex; flex-direction: column; gap: 9px; }
.mail-ai-banner {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid var(--lavender-100);
  border-radius: 10px;
  background: var(--lavender-50);
  color: var(--lavender-700);
  font-size: 10.5px;
  line-height: 1.55;
}
.mail-ai-banner .icon { width: 15px; height: 15px; margin-top: 1px; flex: none; }
.mail-compose-from {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  padding: 8px 11px;
  border-radius: 9px;
  background: #F7F9FD;
  color: var(--muted);
  font-size: 10px;
}
.mail-compose-from strong { color: var(--ink-soft); font-size: 10.5px; font-weight: 650; }
.mail-compose-row { display: flex; align-items: center; gap: 9px; }
.mail-compose-row label {
  width: 54px;
  flex: none;
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 700;
}
.mail-compose-row .input { flex: 1; height: 38px; }
.mail-compose-body { display: flex; flex-direction: column; gap: 6px; }
.mail-compose-body .textarea { min-height: 190px; line-height: 1.7; }
.mail-signature-preview { padding: 9px 12px; border-left: 2px solid var(--brand-200); border-radius: 0 8px 8px 0; background: #FBFCFE; }
.mail-signature-preview span { color: var(--brand-500); font-size: 8.5px; font-weight: 750; }
.mail-signature-preview p { margin-top: 2px; color: var(--muted); font-size: 9.5px; line-height: 1.6; }
.mail-signature-preview small { display: block; margin-top: 3px; color: var(--muted-light); font-size: 8.5px; }
.mail-compose-attach { padding: 9px 11px; border: 1px dashed var(--line-strong); border-radius: 10px; background: #FBFCFE; }
.mail-selected-files { display: flex; flex-direction: column; gap: 5px; margin-top: 7px; }
.mail-no-files { padding: 3px 0; color: var(--muted-light); font-size: 9.5px; }
.mail-mobile-guide { display: flex; flex-direction: column; gap: 11px; }
.mail-mobile-hero {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--brand-50), var(--mint-50));
}
.mail-mobile-hero > .icon { width: 22px; height: 22px; flex: none; color: var(--brand-500); }
.mail-mobile-hero strong { display: block; color: var(--ink); font-size: 12px; font-weight: 750; word-break: break-all; }
.mail-mobile-hero p { margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.mail-mobile-steps { display: flex; flex-direction: column; gap: 8px; }
.mail-mobile-steps > div { display: flex; align-items: flex-start; gap: 8px; }
.mail-mobile-steps > div > span {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 9.5px;
  font-weight: 800;
}
.mail-mobile-steps p { color: var(--ink-soft); font-size: 10.5px; line-height: 1.6; }
.mail-mobile-steps strong { color: var(--ink); font-weight: 700; }
.mail-mobile-actions { display: flex; flex-direction: column; gap: 7px; }
.mail-mobile-actions p { display: flex; align-items: flex-start; gap: 4px; color: var(--muted); font-size: 9.3px; line-height: 1.55; }
.mail-mobile-actions p .icon { width: 11px; height: 11px; margin-top: 1px; flex: none; }

/* ============================================================
   개인별 업무일지
   ============================================================ */
.worklog-page { display: flex; flex-direction: column; gap: 18px; }
.worklog-list-card { overflow: hidden; }
.worklog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  flex-wrap: wrap;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.worklog-toolbar-right { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.worklog-toolbar .search-field { width: 208px; height: 34px; }
.worklog-site-select { width: auto; min-width: 122px; height: 34px; }
.worklog-range-tabs button,
.worklog-status-tabs button { height: 26px; font-size: 10.5px; }
.worklog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 15px 18px 18px;
  background: #FBFCFE;
}
.worklog-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: border-color .16s, box-shadow .16s;
}
.worklog-card:hover { border-color: var(--brand-100); box-shadow: 0 12px 24px -22px rgba(60, 76, 120, .34); }
.worklog-card-top { display: flex; align-items: flex-start; gap: 9px; }
.worklog-who { flex: 1; min-width: 0; }
.worklog-who strong { display: block; color: var(--ink); font-size: 11.8px; font-weight: 700; }
.worklog-who strong span { margin-left: 2px; color: var(--muted); font-size: 9.3px; font-weight: 500; }
.worklog-who small { display: flex; align-items: center; gap: 3px; margin-top: 1px; color: var(--muted); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.worklog-who small .icon { width: 10px; height: 10px; flex: none; }
.worklog-card-top .status-pill { flex: none; }
.worklog-title {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12.3px;
  font-weight: 750;
  line-height: 1.45;
  letter-spacing: -.02em;
  text-align: left;
  transition: color .15s;
}
.worklog-title:hover { color: var(--brand-600); }
.worklog-preview {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 10.2px;
  line-height: 1.6;
  min-height: 32px;
}
.worklog-meta { display: flex; flex-wrap: wrap; gap: 3px 11px; color: var(--muted); font-size: 9px; }
.worklog-meta span { display: inline-flex; align-items: center; gap: 3px; }
.worklog-meta .icon { width: 10px; height: 10px; color: var(--muted-light); }
.worklog-files { display: flex; flex-direction: column; gap: 3px; }
.worklog-file {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #FBFCFE;
  text-align: left;
  transition: background .14s;
}
.worklog-file:hover { background: var(--brand-50); }
.worklog-file .file-badge { min-width: 32px; height: 19px; font-size: 7.5px; border-radius: 5px; }
.worklog-file-name { flex: 1; min-width: 0; color: var(--ink-soft); font-size: 9px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.worklog-file-size { flex: none; color: var(--muted-light); font-size: 8px; }
.worklog-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}
.worklog-actions .btn { height: 27px; padding: 0 8px; font-size: 9.8px; border-radius: 7px; }
.worklog-actions .btn .icon { width: 11px; height: 11px; }
.worklog-delete { width: 27px; height: 27px; margin-left: auto; border-radius: 7px; color: var(--muted-light); }
.worklog-delete:hover { background: var(--rose-50); color: var(--rose-600); border-color: transparent; }
.worklog-delete .icon { width: 13px; height: 13px; }

/* 업무일지 상세 */
.worklog-detail-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 14px;
  background: linear-gradient(120deg, #F3F7FF, #F3FCF8);
}
.worklog-detail-who { flex: 1; min-width: 0; }
.worklog-detail-who strong { display: block; color: var(--ink); font-size: 16px; font-weight: 780; letter-spacing: -.03em; }
.worklog-detail-who strong span { margin-left: 2px; color: var(--muted); font-size: 10px; font-weight: 500; }
.worklog-detail-who small { display: block; margin-top: 1px; color: var(--muted); font-size: 9.8px; }
.worklog-detail-sections { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.worklog-detail-sections > div { padding: 10px 13px; border: 1px solid var(--line); border-radius: 11px; background: #FCFDFF; }
.worklog-detail-sections span { display: block; color: var(--muted); font-size: 9px; font-weight: 700; }
.worklog-detail-sections p { margin-top: 3px; color: var(--ink-soft); font-size: 11.3px; line-height: 1.75; }
.worklog-detail-block { margin-top: 12px; }
.worklog-detail-block h3 { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; color: var(--ink); font-size: 11px; font-weight: 750; }
.worklog-detail-block h3 .icon { width: 12px; height: 12px; color: var(--muted); }
.worklog-detail-files { display: flex; flex-direction: column; gap: 4px; }
.worklog-detail-file {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  text-align: left;
  transition: background .14s, border-color .14s;
}
.worklog-detail-file:hover { border-color: var(--brand-100); background: var(--brand-50); }
.worklog-detail-file > span:nth-child(2) { flex: 1; min-width: 0; }
.worklog-detail-file strong { display: block; color: var(--ink); font-size: 10.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.worklog-detail-file small { display: block; color: var(--muted); font-size: 8.8px; }
.worklog-detail-file > .icon { width: 14px; height: 14px; color: var(--brand-500); }
.worklog-detail-empty { padding: 8px 2px; color: var(--muted-light); font-size: 10px; }

/* 업로드 */
.worklog-upload {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: #FBFCFE;
  cursor: pointer;
  transition: border-color .16s, background .16s;
}
.worklog-upload:hover { border-color: var(--brand-400); background: var(--brand-50); }
.worklog-upload-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-500);
}
.worklog-upload-icon .icon { width: 17px; height: 17px; }
.worklog-upload strong { display: block; color: var(--ink); font-size: 11.5px; font-weight: 700; }
.worklog-upload small { display: block; margin-top: 1px; color: var(--muted); font-size: 9.3px; line-height: 1.5; }
.worklog-selected-list { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.worklog-selected-file {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.worklog-selected-file > span:nth-child(2) { flex: 1; min-width: 0; }
.worklog-selected-file strong { display: block; color: var(--ink); font-size: 10px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.worklog-selected-file small { display: block; color: var(--muted); font-size: 8.5px; }
.worklog-selected-file .icon-btn { width: 24px; height: 24px; flex: none; border-radius: 6px; }
.worklog-selected-file .icon-btn .icon { width: 12px; height: 12px; }
.worklog-selected-empty { padding: 3px 0; color: var(--muted-light); font-size: 9.5px; }

/* ============================================================
   문서 자료실 - 미리보기 · 업로드 · Office 안내
   ============================================================ */
.doc-type-select { width: auto; min-width: 106px; height: 36px; }
.doc-attached {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--brand-50);
  color: var(--brand-600);
  font-size: 8.5px;
  font-weight: 650;
  vertical-align: 1px;
}
.doc-attached .icon { width: 9px; height: 9px; }

.doc-preview-head { display: flex; align-items: flex-start; gap: 11px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.doc-preview-head .file-icon { flex: none; }
.doc-preview-meta { flex: 1; min-width: 0; }
.doc-preview-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 180px;
  margin-top: 13px;
}
.doc-preview-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 160px;
  border-radius: 12px;
  background: #FBFCFE;
  color: var(--muted);
  font-size: 11px;
}
.doc-preview-loading .icon { width: 16px; height: 16px; animation: spin 1s linear infinite; }
.doc-preview-note {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  padding: 8px 11px;
  border-radius: 8px;
  background: #F7F9FD;
  color: var(--muted);
  font-size: 9.3px;
  line-height: 1.55;
}
.doc-preview-note .icon { width: 11px; height: 11px; margin-top: 1px; flex: none; color: var(--brand-400); }
.doc-pdf-preview {
  width: 100%;
  height: min(58vh, 480px);
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #F5F7FB;
}
.doc-image-preview {
  display: grid;
  place-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #F5F7FB;
}
.doc-image-preview img { max-height: 56vh; width: auto; border-radius: 7px; object-fit: contain; }
.doc-text-preview {
  max-height: 50vh;
  margin: 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #FBFCFE;
  color: var(--ink-soft);
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 10.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  overflow: auto;
}
.doc-path-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #FBFCFE;
}
.doc-path-box > span { display: inline-flex; align-items: center; gap: 4px; flex: none; color: var(--muted); font-size: 9px; }
.doc-path-box .icon { width: 12px; height: 12px; }
.doc-path-box code {
  flex: 1;
  min-width: 0;
  color: var(--ink-soft);
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 9.5px;
  word-break: break-all;
}
.doc-path-box .icon-btn { width: 26px; height: 26px; flex: none; border-radius: 6px; }
.doc-path-box .icon-btn .icon { width: 12px; height: 12px; }

.doc-demo-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 24px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 13px;
  background: linear-gradient(160deg, #FBFCFE, #F7FAFF);
  text-align: center;
}
.doc-demo-brand { color: var(--brand-500); font-size: 8.5px; font-weight: 750; letter-spacing: .06em; }
.doc-demo-preview h3 { color: var(--ink); font-size: 15px; font-weight: 760; letter-spacing: -.03em; }
.doc-demo-line { width: 36px; height: 2px; border-radius: 2px; background: var(--brand-200); }
.doc-demo-skeleton { display: flex; flex-direction: column; gap: 5px; width: min(320px, 100%); margin: 5px 0; }
.doc-demo-skeleton span { height: 7px; border-radius: 99px; background: #EAF0FA; }
.doc-demo-skeleton span:nth-child(1) { width: 100%; }
.doc-demo-skeleton span:nth-child(2) { width: 92%; }
.doc-demo-skeleton span:nth-child(3) { width: 96%; }
.doc-demo-skeleton span:nth-child(4) { width: 64%; }
.doc-demo-desc { max-width: 360px; color: var(--muted); font-size: 10px; line-height: 1.65; }
.doc-demo-preview .btn { margin-top: 3px; }

/* Office 미리보기 */
.office-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 26px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 13px;
  background: linear-gradient(160deg, #FBFCFE, #F6FAFF);
  text-align: center;
}
.office-preview-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 62px;
  height: 62px;
  justify-content: center;
  border-radius: 16px;
  font-size: 9px;
  font-weight: 800;
}
.office-preview-icon .icon { width: 25px; height: 25px; }
.office-preview-copy { max-width: 420px; }
.office-preview-copy h3 { margin-top: 5px; color: var(--ink); font-size: 14px; font-weight: 760; letter-spacing: -.02em; word-break: break-all; }
.office-preview-copy p { margin-top: 4px; color: var(--ink-soft); font-size: 10.3px; line-height: 1.65; }
.office-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 9px; }
.office-steps span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 600;
}
.office-steps i {
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 7.5px;
  font-style: normal;
  font-weight: 800;
}
.office-warning {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-top: 8px;
  color: var(--peach-700);
  font-size: 9.3px;
  line-height: 1.55;
  text-align: left;
}
.office-warning .icon { width: 11px; height: 11px; margin-top: 1px; flex: none; }

/* 업로드 영역 */
.doc-upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.doc-quick-help {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.doc-quick-help-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 10px;
  background: var(--peach-50);
  color: var(--peach-600);
}
.doc-quick-help-icon .icon { width: 16px; height: 16px; }
.doc-quick-help > div { flex: 1; min-width: 0; }
.doc-quick-help strong { display: block; color: var(--ink); font-size: 11px; font-weight: 700; }
.doc-quick-help p { margin-top: 1px; color: var(--muted); font-size: 9.3px; line-height: 1.5; }
.doc-quick-help .btn { flex: none; }
.doc-upload-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: #FBFCFE;
  cursor: pointer;
  transition: border-color .16s, background .16s;
}
.doc-upload-picker:hover,
.doc-upload-picker.is-dragover { border-color: var(--brand-400); background: var(--brand-50); }
.doc-upload-picker-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-500);
}
.doc-upload-picker-icon .icon { width: 17px; height: 17px; }
.doc-upload-picker > div { flex: 1; min-width: 0; }
.doc-upload-picker strong { display: block; color: var(--ink); font-size: 11.5px; font-weight: 700; }
.doc-upload-picker small { display: block; margin-top: 1px; color: var(--muted); font-size: 9.3px; }
.doc-upload-selected { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }

/* Office 안내 모달 */
.office-guide { display: flex; flex-direction: column; gap: 12px; }
.office-guide-hero {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px;
  border-radius: 13px;
  background: linear-gradient(120deg, var(--brand-50), var(--mint-50));
}
.office-guide-hero > .icon { width: 22px; height: 22px; flex: none; color: var(--brand-500); }
.office-guide-hero strong { display: block; color: var(--ink); font-size: 12.5px; font-weight: 750; }
.office-guide-hero p { margin-top: 2px; color: var(--ink-soft); font-size: 10.3px; line-height: 1.6; }
.office-type-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.office-type-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #FCFDFF;
}
.office-type-card strong { margin-top: 2px; color: var(--ink); font-size: 10.5px; font-weight: 700; }
.office-type-card small { color: var(--muted); font-size: 8.8px; line-height: 1.45; }
.office-guide-steps { display: flex; flex-direction: column; gap: 7px; }
.office-guide-step { display: flex; align-items: flex-start; gap: 9px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.office-guide-step > span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 9.5px;
  font-weight: 800;
}
.office-guide-step strong { display: block; color: var(--ink); font-size: 10.8px; font-weight: 700; }
.office-guide-step p { margin-top: 1px; color: var(--muted); font-size: 9.8px; line-height: 1.55; }
.office-guide-step code { padding: 1px 4px; border-radius: 4px; background: var(--brand-50); color: var(--brand-700); font-size: 9px; }

/* ============================================================
   PC 프로필 · 간편 로그인
   ============================================================ */
.profile-gate {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(720px 460px at 12% 6%, rgba(109, 141, 255, .28), transparent 68%),
    radial-gradient(660px 420px at 92% 94%, rgba(52, 211, 153, .20), transparent 70%),
    linear-gradient(140deg, #EEF3FF 0%, #F7F9FF 48%, #EDFAF6 100%);
  overflow-y: auto;
  animation: fadeIn .25s ease both;
}
.profile-gate.is-out { animation: fadeOut .2s ease both; }
.pg-shell {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  width: min(980px, 100%);
  min-height: 566px;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 40px 90px -34px rgba(48, 66, 110, .42), 0 12px 30px -16px rgba(48, 66, 110, .18);
  overflow: hidden;
}

.pg-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 30px 24px;
  background:
    radial-gradient(360px 280px at 92% 6%, rgba(255, 225, 200, .30), transparent 72%),
    radial-gradient(420px 320px at -10% 100%, rgba(86, 199, 245, .34), transparent 70%),
    linear-gradient(150deg, #4F6EF7 0%, #5C7BF6 46%, #4FA8DC 100%);
  color: #fff;
  overflow: hidden;
}
.pg-brand::after {
  content: '';
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
}
.pg-brand-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; position: relative; z-index: 1; }
.pg-logo {
  width: 154px;
  height: auto;
  padding: 8px 11px;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 8px 20px -12px rgba(20, 34, 68, .4);
}
.pg-brand-badge {
  padding: 2px 7px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 99px;
  color: #fff;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .1em;
}
.pg-brand-copy { position: relative; z-index: 1; }
.pg-brand-eyebrow { display: block; color: rgba(255, 255, 255, .72); font-size: 9.5px; font-weight: 700; letter-spacing: .16em; }
.pg-brand-copy h1 {
  margin-top: 8px;
  color: #fff;
  font-size: 31px;
  font-weight: 820;
  letter-spacing: -.055em;
  line-height: 1.32;
}
.pg-brand-copy h1 em { color: #FFE2C8; font-style: normal; }
.pg-brand-copy p {
  max-width: 300px;
  margin-top: 11px;
  color: rgba(255, 255, 255, .78);
  font-size: 11.5px;
  line-height: 1.72;
}
.pg-brand-points { display: flex; flex-direction: column; gap: 7px; margin-top: 20px; }
.pg-brand-points span { display: flex; align-items: center; gap: 7px; color: rgba(255, 255, 255, .9); font-size: 10.5px; font-weight: 600; }
.pg-dot { width: 6px; height: 6px; flex: none; border-radius: 50%; }
.pg-dot--blue { background: #B9CAFF; }
.pg-dot--mint { background: #7DE7C4; }
.pg-dot--peach { background: #FFD09F; }
.pg-brand-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .20);
  color: rgba(255, 255, 255, .64);
  font-size: 8.5px;
}

.pg-panel { display: flex; flex-direction: column; min-width: 0; background: #fff; }
.pg-panel-inner { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 32px 34px 18px; }
.pg-panel-foot {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  padding: 11px 34px 16px;
  border-top: 1px solid var(--line);
  background: #FCFDFF;
  color: var(--muted-light);
  font-size: 8.8px;
  line-height: 1.55;
}
.pg-panel-foot .icon { width: 11px; height: 11px; margin-top: 1px; flex: none; }

.pg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.pg-eyebrow { display: block; color: var(--brand-500); font-size: 8.5px; font-weight: 750; letter-spacing: .14em; }
.pg-head h2 {
  margin-top: 5px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.35;
}
.pg-head p { margin-top: 4px; color: var(--muted); font-size: 10.3px; line-height: 1.6; }
.pg-device {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  height: 25px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #FBFCFE;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 650;
}
.pg-device .icon { width: 11px; height: 11px; }

.pg-profile-list { display: flex; flex-direction: column; gap: 7px; }
.pg-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  text-align: left;
  transition: border-color .16s, background .16s, box-shadow .16s, transform .16s;
}
.pg-profile:hover {
  transform: translateY(-1px);
  border-color: var(--brand-200);
  background: #FCFDFF;
  box-shadow: 0 10px 22px -20px rgba(60, 76, 120, .4);
}
.pg-profile.is-active { border-color: var(--brand-200); background: var(--brand-50); }
.pg-profile-copy { flex: 1; min-width: 0; }
.pg-profile-copy strong { display: block; color: var(--ink); font-size: 12.5px; font-weight: 750; }
.pg-profile-copy strong em { margin-left: 2px; color: var(--brand-600); font-size: 9.8px; font-style: normal; font-weight: 650; }
.pg-profile-copy small { display: block; color: var(--muted); font-size: 9.3px; }
.pg-profile-copy > span { display: block; margin-top: 1px; color: var(--muted-light); font-size: 8.8px; word-break: break-all; }
.pg-profile-end { display: flex; align-items: center; gap: 4px; flex: none; }
.pg-lock {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 5px;
  border-radius: 4px;
  background: #F3F6FB;
  color: var(--muted);
  font-size: 7.5px;
  font-weight: 650;
}
.pg-lock .icon { width: 8px; height: 8px; }
.pg-arrow {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #F4F7FD;
  color: var(--muted);
  transition: background .16s, color .16s;
}
.pg-profile:hover .pg-arrow { background: var(--brand-100); color: var(--brand-700); }
.pg-arrow .icon { width: 12px; height: 12px; }

.pg-list-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.pg-list-actions .btn { height: 35px; font-size: 11px; }
.pg-auto {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 550;
  cursor: pointer;
}
.pg-auto input { width: 14px; height: 14px; accent-color: var(--brand-600); }
.pg-local-note {
  display: flex;
  align-items: flex-start;
  gap: 3px;
  margin-top: 6px;
  color: var(--muted-light);
  font-size: 8.5px;
  line-height: 1.55;
}
.pg-local-note .icon { width: 10px; height: 10px; margin-top: 1px; flex: none; }

/* PIN */
.pg-pin-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 22px 20px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(170deg, #FBFCFE, #F6F9FF);
  text-align: center;
}
.pg-pin-card > strong { margin-top: 6px; color: var(--ink); font-size: 15px; font-weight: 780; letter-spacing: -.03em; }
.pg-pin-card > small { color: var(--muted); font-size: 9.8px; word-break: break-all; }
.pg-pin-form { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 100%; margin-top: 13px; }
.pg-pin-input {
  width: 168px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .35em;
  text-align: center;
  transition: border-color .16s, box-shadow .16s;
}
.pg-pin-input:focus { outline: 0; border-color: var(--brand-400); box-shadow: 0 0 0 4px rgba(109, 141, 255, .12); }
.pg-pin-form .btn { width: 168px; height: 39px; font-size: 12px; }
.pg-error { color: var(--rose-600); font-size: 9.5px; font-weight: 600; }
.pg-back {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 12px;
  padding: 3px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 9.8px;
  font-weight: 600;
}
.pg-back:hover { background: #F5F8FD; color: var(--brand-600); }
.pg-back .icon { width: 12px; height: 12px; }
.pg-back--top { margin-top: 2px; flex: none; }

/* 새 프로필 */
.pg-create-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.pg-create-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

/* ============================================================
   AI 실행 · 스키마 안내
   ============================================================ */
.ai-action--exec {
  border-color: var(--lavender-100) !important;
  background: var(--lavender-50) !important;
  color: var(--lavender-700) !important;
}
.ai-action--exec:hover { border-color: var(--lavender-500) !important; }
.ai-action-tag {
  margin-left: 2px;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--lavender-100);
  color: var(--lavender-700);
  font-size: 7.5px;
  font-weight: 750;
  letter-spacing: .02em;
}
.ai-exec-summary {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid var(--brand-100);
  border-radius: 13px;
  background: var(--brand-50);
}
.ai-exec-summary--mint { border-color: var(--mint-100); background: var(--mint-50); }
.ai-exec-summary--peach { border-color: var(--peach-100); background: var(--peach-50); }
.ai-exec-summary--rose { border-color: var(--rose-100); background: var(--rose-50); }
.ai-exec-summary--lavender { border-color: var(--lavender-100); background: var(--lavender-50); }
.ai-exec-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 10px;
  background: #fff;
  color: var(--brand-600);
}
.ai-exec-summary--mint .ai-exec-icon { color: var(--mint-600); }
.ai-exec-summary--peach .ai-exec-icon { color: var(--peach-600); }
.ai-exec-summary--rose .ai-exec-icon { color: var(--rose-600); }
.ai-exec-summary--lavender .ai-exec-icon { color: var(--lavender-600); }
.ai-exec-icon .icon { width: 17px; height: 17px; }
.ai-exec-summary > div { flex: 1; min-width: 0; }
.ai-exec-summary strong { display: block; color: var(--ink); font-size: 12px; font-weight: 750; }
.ai-exec-summary p { margin-top: 1px; color: var(--ink-soft); font-size: 10.3px; line-height: 1.6; }

.ai-schema-block {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #FBFCFE;
  overflow: hidden;
}
.ai-schema-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: #F6F9FE;
}
.ai-schema-head strong { color: var(--ink); font-size: 10.5px; font-weight: 750; }
.ai-schema-head span {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--brand-50);
  color: var(--brand-600);
  font-size: 7.5px;
  font-weight: 750;
  letter-spacing: .04em;
}
.ai-schema {
  max-height: 240px;
  margin: 0;
  padding: 11px 13px;
  overflow: auto;
  color: var(--ink-soft);
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 9.5px;
  line-height: 1.65;
  white-space: pre;
}
.ai-schema-note {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  padding: 9px 12px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 9.3px;
  line-height: 1.6;
}
.ai-schema-note .icon { width: 12px; height: 12px; margin-top: 1px; flex: none; color: var(--lavender-500); }
.ai-schema-note code,
.ai-schema-types code {
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--lavender-50);
  color: var(--lavender-700);
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 8.8px;
}
.ai-schema-types {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 0 12px 11px;
}
.ai-schema-types span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; }

/* ============================================================
   조직도
   ============================================================ */
.org-chart-card { overflow: hidden; }
.org-chart {
  overflow-x: auto;
  padding: 18px 18px 8px;
  background:
    radial-gradient(circle at 50% 0, rgba(109, 141, 255, .05), transparent 62%),
    #FCFDFF;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.org-chart-inner { min-width: 640px; display: flex; flex-direction: column; align-items: center; }
.org-ceo {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid var(--brand-100);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 10px 24px -20px rgba(60, 76, 120, .4);
}
.org-ceo-copy strong { display: block; color: var(--ink); font-size: 12.5px; font-weight: 760; }
.org-ceo-copy span { display: block; color: var(--muted); font-size: 9.3px; }
.org-ceo-badge {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: .05em;
}
.org-trunk { width: 1.5px; height: 24px; background: var(--line-strong); }
.org-branches {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  padding-top: 22px;
}
.org-branches::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1.5px;
  background: var(--line-strong);
}
.org-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 11px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-align: center;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.org-node::before {
  content: '';
  position: absolute;
  top: -22px;
  left: 50%;
  width: 1.5px;
  height: 22px;
  background: var(--line-strong);
}
.org-node:hover {
  transform: translateY(-2px);
  border-color: var(--brand-200);
  box-shadow: 0 12px 24px -20px rgba(60, 76, 120, .4);
}
.org-node-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  margin-bottom: 2px;
}
.org-node-icon .icon { width: 15px; height: 15px; }
.org-node strong { color: var(--ink); font-size: 10.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.org-node small { color: var(--muted); font-size: 8.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.org-node-count {
  margin-top: 2px;
  padding: 1px 6px;
  border-radius: 99px;
  background: #F3F6FB;
  color: var(--muted);
  font-size: 7.5px;
  font-weight: 700;
}
.org-chart-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 18px;
  color: var(--muted-light);
  font-size: 9px;
}
.org-chart-foot span { display: inline-flex; align-items: center; gap: 4px; }
.org-chart-foot .icon { width: 11px; height: 11px; }
.org-chart-scroll-hint { display: none !important; }
.directory-list-card { overflow: hidden; }

/* ============================================================
   모바일 근태 · 계약 카드
   ============================================================ */
.attendance-mobile-card {
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.attendance-mobile-card + .attendance-mobile-card { margin-top: 7px; }
.attendance-mobile-top { display: flex; align-items: center; gap: 9px; }
.attendance-mobile-copy { flex: 1; min-width: 0; }
.attendance-mobile-copy strong { display: block; color: var(--ink); font-size: 12px; font-weight: 700; }
.attendance-mobile-copy strong span { margin-left: 2px; color: var(--muted); font-size: 9px; font-weight: 500; }
.attendance-mobile-copy small { display: block; color: var(--muted); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.attendance-mobile-top .status-pill { flex: none; }
.attendance-mobile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}
.attendance-mobile-grid > div { text-align: center; }
.attendance-mobile-grid > div + div { border-left: 1px solid var(--line); }
.attendance-mobile-grid span { display: block; color: var(--muted); font-size: 8.5px; }
.attendance-mobile-grid strong { display: block; margin-top: 1px; color: var(--ink-soft); font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.attendance-mobile-grid strong.is-empty { color: var(--muted-light); font-weight: 500; }
.attendance-mobile-note {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-top: 7px;
  padding: 6px 8px;
  border-radius: 7px;
  background: var(--peach-50);
  color: var(--peach-700);
  font-size: 8.8px;
  line-height: 1.5;
}
.attendance-mobile-note .icon { width: 10px; height: 10px; margin-top: 1px; flex: none; }

.contract-mobile-card {
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.contract-mobile-card + .contract-mobile-card { margin-top: 7px; }
.contract-mobile-top { display: flex; align-items: center; gap: 9px; }
.contract-mobile-top .contract-site-copy { flex: 1; min-width: 0; }
.contract-mobile-title { display: block; margin-top: 8px; color: var(--ink); font-size: 11.5px; font-weight: 700; line-height: 1.45; }
.contract-mobile-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 6px 0 8px;
  color: var(--muted);
  font-size: 9px;
}
.contract-mobile-meta .status-pill { margin-left: auto; }

/* ============================================================
   반응형
   ============================================================ */
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1380px) {
  .worker-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mail-shell { grid-template-columns: 176px 300px minmax(0, 1fr); }
  .cal-layout { grid-template-columns: minmax(0, 1fr) 288px; }
  .dash-focus-grid { gap: 14px; }
}

@media (max-width: 1220px) {
  .worker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-focus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-focus-card--lavender { grid-column: span 2; }
  .dash-focus-card--lavender .dash-focus-body .mini-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 10px; }
  .cal-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cal-layout { grid-template-columns: minmax(0, 1fr); }
  .cal-side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .cal-alert-card { height: 100%; }
  .mail-shell { grid-template-columns: 168px 288px minmax(0, 1fr); }
  .mail-stats { gap: 13px; }
  .worklog-toolbar .search-field { width: 180px; }
  .office-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .kapt-list { grid-template-columns: 1fr; }
  .doc-upload-row { grid-template-columns: 1fr; }
  .worker-detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mail-shell { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 540px; }
  .mail-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .mail-side-head { align-items: center; padding: 10px 14px 7px; }
  .mail-side-head > div { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
  .mail-side-head strong { font-size: 11.5px; }
  .mail-side-head span { margin-top: 0; }
  .mail-side-head .icon-btn { display: none; }
  .mail-folders { flex-direction: row; gap: 4px; padding: 0 10px 9px; overflow-x: auto; overflow-y: hidden; }
  .mail-folder { width: auto; height: 30px; flex: none; padding: 0 9px; border-color: var(--line); background: #fff; font-size: 10px; }
  .mail-folder span { flex: none; }
  .mail-folder em { min-width: 15px; padding: 0 4px; }
  .mail-side-foot { display: none; }
  .mail-list-pane { border-right: 0; min-height: 430px; max-height: 560px; }
  .mail-reader { display: none; min-height: 480px; }
  .mail-shell.is-reading { min-height: 540px; }
  .mail-shell.is-reading .mail-list-pane { display: none; }
  .mail-shell.is-reading .mail-reader { display: flex; }
  .mail-back { display: inline-grid; }
  .mail-reader-head { position: sticky; top: 0; z-index: 2; background: #fff; }
  .mail-reader-scroll { max-height: none; }
  .mail-shell .mail-reader-empty { min-height: 380px; }
  .cal-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cal-alert-card { grid-column: span 2; }
  .worker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .worklog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .ai-shell { display: flex; flex-direction: column; }
  .ai-chat { order: 1; min-height: 520px; }
  .ai-side { order: 2; }
  .dash-focus-grid { grid-template-columns: 1fr; }
  .dash-focus-card--lavender { grid-column: auto; }
  .dash-focus-card--lavender .dash-focus-body .mini-list { display: block; }
  .cal-side { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cal-alert-card { grid-column: auto; }
  .kapt-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .worker-detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pg-shell { width: min(900px, 100%); }
  .pg-panel-inner { padding: 28px 28px 16px; }
  .pg-panel-foot { padding: 10px 28px 14px; }
  .org-chart-scroll-hint { display: inline-flex !important; }
}

@media (max-width: 900px) {
  .cal-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cal-alert-card { grid-column: span 2; }
  .cal-cell { min-height: 92px; }
  .kapt-list { grid-template-columns: 1fr; }
  .kapt-toolbar .search-field { width: 100% !important; }
  .worklog-grid { grid-template-columns: 1fr; }
  .mail-status-banner { gap: 12px; }
  .mail-stats { order: 3; flex-basis: 100%; padding-top: 9px; border-top: 1px dashed var(--line); }
  .mail-banner-actions { margin-left: 0; }
  .mail-stat--sync { margin-left: auto; }
  .pg-shell { grid-template-columns: minmax(0, 1fr); min-height: 0; width: min(560px, 100%); }
  .pg-brand { flex-direction: row; align-items: center; gap: 12px; padding: 15px 20px; }
  .pg-brand-copy { flex: 1; min-width: 0; }
  .pg-brand-eyebrow, .pg-brand-copy p, .pg-brand-points, .pg-brand-foot { display: none; }
  .pg-brand-copy h1 { margin: 0; font-size: 19px; line-height: 1.35; }
  .pg-logo { width: 122px; padding: 6px 8px; }
  .pg-brand-badge { display: none; }
  .pg-panel-inner { padding: 24px 26px 16px; }
  .pg-panel-foot { padding: 10px 26px 14px; }
  .org-chart-inner { min-width: 600px; }
}

@media (max-width: 720px) {
  /* 상단 신규 서식 버튼은 아이콘만 남깁니다. */
  .btn-new-form > span:first-child { display: inline-flex; }
  .btn-new-form > span:last-child { display: none; }

  /* 모바일 목록 전환 */
  .attendance-desktop { display: none; }
  .attendance-mobile { display: block; padding: 10px 12px 13px; }
  .contract-desktop { display: none; }
  .contract-mobile { display: block; padding: 10px 12px 13px; }

  .workers-page { gap: 14px; }
  .workers-toolbar { padding: 11px 12px; gap: 9px; }
  .workers-toolbar-row { gap: 6px; }
  .workers-search { flex: 1 1 100%; min-width: 0; }
  .worker-filter-select { flex: 1 1 44%; min-width: 0; }
  .worker-count-line { margin-left: 0; }
  .workers-toolbar-row--bottom { padding-top: 8px; }
  .workers-tool-actions { width: 100%; }
  .workers-tool-actions .btn { flex: 1; }
  .worker-grid { grid-template-columns: 1fr; gap: 10px; }
  .worker-card { padding: 13px; }
  .worker-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .worker-pager { justify-content: center; }
  .worker-pager-actions { width: 100%; justify-content: center; }

  .kapt-page { gap: 14px; }
  .kapt-demo-note { padding: 11px 12px; flex-wrap: wrap; }
  .kapt-demo-note > div { flex-basis: calc(100% - 30px); }
  .kapt-demo-note .btn { width: 100%; margin-top: 2px; }
  .kapt-condition-card { padding: 12px 13px; }
  .kapt-condition-icon { width: 33px; height: 33px; }
  .kapt-condition-chips { gap: 4px; }
  .kapt-chip { height: 25px; font-size: 9.3px; }
  .kapt-toolbar { padding: 11px 13px; }
  .kapt-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 1px; }
  .kapt-tab { flex: none; height: 29px; padding: 0 9px; font-size: 10.5px; }
  .kapt-list { padding: 12px; gap: 10px; }
  .kapt-notice { padding: 12px 13px; }
  .kapt-notice-title { font-size: 12.2px; }
  .kapt-notice-foot { flex-wrap: wrap; }
  .kapt-notice-actions { width: 100%; justify-content: flex-end; }
  .kapt-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-grid { grid-template-columns: 1fr; }

  .cal-page { gap: 14px; }
  .cal-summary { gap: 7px; }
  .cal-summary-item { padding: 10px 11px; gap: 8px; }
  .cal-summary-icon { width: 31px; height: 31px; border-radius: 9px; }
  .cal-summary-icon .icon { width: 15px; height: 15px; }
  .cal-summary-item strong { font-size: 15px; }
  .cal-summary-next strong { font-size: 11.5px; }
  .cal-toolbar { padding: 11px 12px; gap: 8px; }
  .cal-nav { width: 100%; justify-content: space-between; }
  .cal-month-label { font-size: 14.5px; }
  .cal-filters { width: 100%; }
  .cal-filters .filter-pill { flex: 1; }
  .cal-weekdays span { padding: 6px 2px; font-size: 8.5px; }
  .cal-cell { min-height: 76px; padding: 3px 3px 5px; gap: 2px; }
  .cal-day-number { min-width: 19px; height: 19px; font-size: 10px; border-radius: 6px; }
  .cal-today-label { display: none; }
  .cal-event-count { min-width: 14px; height: 14px; font-size: 7.5px; }
  .cal-cell-events { flex-direction: row; flex-wrap: wrap; gap: 3px; padding-top: 1px; }
  .cal-event { width: auto; padding: 0; gap: 0; }
  .cal-event i { width: 5px; height: 5px; }
  .cal-event span { display: none; }
  .cal-event:nth-child(n+4) { display: none; }
  .cal-more { display: none; }
  .cal-agenda-head { padding: 11px 13px 6px; }
  .cal-agenda-head h3 { font-size: 12px; }
  .cal-agenda-list { padding: 0 6px 10px; }
  .cal-agenda-item { padding: 7px 8px; gap: 7px; }
  .cal-agenda-time { width: 41px; font-size: 9.3px; }
  .cal-agenda-copy strong { font-size: 10.8px; }
  .cal-agenda-copy .badge { display: none; }
  .cal-side { grid-template-columns: 1fr; }
  .cal-alert-card { grid-column: auto; }
  .cal-side-card > .card-head { padding: 12px 14px 0; }

  .mail-page { gap: 13px; }
  .mail-status-banner { padding: 11px 13px; }
  .mail-account { min-width: 0; flex: 1 1 100%; }
  .mail-account-copy strong { font-size: 12px; }
  .mail-stats { gap: 12px; }
  .mail-banner-actions { width: 100%; }
  .mail-banner-actions .btn { flex: 1; justify-content: center; }
  .mail-shell { border-radius: 16px; min-height: 500px; }
  .mail-list-pane { max-height: 560px; }
  .mail-reader { min-height: 440px; }
  .mail-reader-head { padding: 11px 12px 9px; gap: 6px; }
  .mail-reader-title h2 { font-size: 13.5px; }
  .mail-reader-actions .icon-btn:nth-child(2) { display: none; }
  .mail-reader-scroll { padding: 13px 14px 16px; }
  .mail-body p { font-size: 11.3px; }
  .mail-from-copy { min-width: 0; }
  .mail-from-date { display: none; }
  .mail-compose-row { align-items: flex-start; flex-direction: column; gap: 3px; }
  .mail-compose-row label { width: auto; }
  .mail-compose-row .input { width: 100%; height: 36px; }
  .mail-compose-body .textarea { min-height: 150px; }
  .mail-tip { font-size: 9.3px; }

  .worklog-page { gap: 14px; }
  .worklog-toolbar { padding: 10px 13px; }
  .worklog-toolbar-right { width: 100%; }
  .worklog-toolbar .search-field { width: 100%; flex: 1 1 100%; }
  .worklog-site-select { flex: 1; }
  .worklog-grid { padding: 12px; gap: 10px; }
  .worklog-card { padding: 12px; }
  .worklog-detail-sections p { font-size: 10.8px; }

  .doc-upload-row { gap: 9px; }
  .doc-quick-help { flex-wrap: wrap; }
  .doc-quick-help .btn { width: 100%; }
  .doc-preview-head { gap: 9px; }
  .doc-preview-body { min-height: 150px; }
  .doc-pdf-preview { height: 46vh; }
  .office-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .office-guide-hero { padding: 12px; }
  .office-preview { padding: 20px 14px; }

  .profile-gate { padding: 10px; align-items: flex-start; }
  .pg-shell { border-radius: 22px; }
  .pg-brand { padding: 13px 16px; }
  .pg-logo { width: 112px; padding: 5px 7px; }
  .pg-brand-copy h1 { font-size: 16px; }
  .pg-panel-inner { padding: 20px 18px 14px; }
  .pg-panel-foot { padding: 9px 18px 13px; }
  .pg-head h2 { font-size: 18px; }
  .pg-profile { padding: 9px 10px; gap: 8px; }
  .pg-profile-copy strong { font-size: 12px; }
  .pg-profile-copy > span { display: none; }
  .pg-create-form { grid-template-columns: 1fr; }
  .pg-create-actions { position: sticky; bottom: 0; background: #fff; }
  .pg-pin-card { padding: 18px 14px 15px; }

  .ai-schema-types { grid-template-columns: 1fr; }
  .ai-exec-summary { padding: 11px 12px; }
  .ai-chat { min-height: 470px; }
  .ai-chat-body { min-height: 270px; }

  .doc-layout { gap: 11px; }
  .doc-side { gap: 9px; }
  .doc-cat-card { padding: 7px; }
  .doc-cat-label { display: none; }
  .doc-cat-card .doc-cat-list { display: flex; flex-wrap: nowrap; gap: 4px; overflow-x: auto; padding: 2px; }
  .doc-cat { flex: 0 0 auto; width: auto; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; }
  .doc-cat em { margin-left: 2px; }
  .doc-storage, .doc-office-tip, .doc-side > .card:last-child { display: none; }

  .org-chart { padding: 14px 12px 4px; }
  .org-chart-foot { padding: 8px 13px; }
  .org-branches { gap: 7px; }

  .site-photo-edit { gap: 10px; }
  .site-photo-preview { width: 74px; height: 58px; }
  .site-card-body { padding: 12px 13px 13px; }
}

@media (max-width: 560px) {
  .worker-detail-hero { flex-wrap: wrap; }
  .worker-detail-grid { grid-template-columns: 1fr; }
  .worker-card-foot { flex-wrap: wrap; }
  .worker-card-actions { width: 100%; }
  .worker-card-actions .btn { flex: 1; justify-content: center; }
  .worker-card-copy strong { font-size: 13.5px; }

  .kapt-condition-title strong { font-size: 12px; }
  .kapt-condition-title small { font-size: 9px; }
  .kapt-condition-head .btn { width: 100%; }
  .kapt-notice-badges .badge { font-size: 8.8px; }
  .kapt-notice-meta { gap: 3px 9px; }
  .kapt-detail-grid { gap: 5px; }
  .kapt-detail-grid > div { padding: 8px 9px; }

  .cal-summary-item { padding: 9px 10px; gap: 6px; }
  .cal-summary-icon { width: 27px; height: 27px; }
  .cal-summary-icon .icon { width: 13px; height: 13px; }
  .cal-summary-item small { font-size: 8.5px; }
  .cal-summary-item strong { font-size: 13.5px; }
  .cal-summary-next > div > span { display: none; }
  .cal-cell { min-height: 64px; }
  .cal-grid { border-radius: 0; }
  .cal-agenda-time { width: 36px; }
  .cal-upcoming-item { padding: 6px; }
  .event-detail-facts { grid-template-columns: 1fr; }

  .mail-stat { min-width: 54px; }
  .mail-stat--sync { display: none; }
  .mail-stat strong { font-size: 13.5px; }
  .mail-folders { padding: 0 8px 8px; }
  .mail-folder { padding: 0 8px; font-size: 9.3px; }
  .mail-folder .icon { width: 13px; height: 13px; }
  .mail-reader-actions .btn { padding: 0 7px; }
  .mail-reader-actions .btn .icon { width: 13px; height: 13px; }
  .mail-reply-bar .btn { flex: 1; justify-content: center; }
  .mail-mobile-hero { padding: 11px; }

  .worklog-toolbar-right { gap: 4px; }
  .worklog-range-tabs { width: 100%; }
  .worklog-range-tabs button { flex: 1; }
  .worklog-status-tabs { flex: 1; }
  .worklog-status-tabs button { flex: 1; }
  .worklog-site-select { width: 100%; flex: 1 1 100%; }

  .doc-quick-help .btn { width: auto; }
  .doc-preview-note { font-size: 8.8px; }
  .office-steps { flex-direction: column; align-items: stretch; }
  .office-steps span { justify-content: center; }
  .office-type-card small { font-size: 8.3px; }

  .pg-brand { flex-direction: column; align-items: flex-start; gap: 7px; padding: 12px 15px; }
  .pg-brand-copy h1 { font-size: 15px; }
  .pg-head { flex-wrap: wrap; }
  .pg-device { display: none; }
  .pg-profile-copy small { font-size: 8.8px; }
  .pg-lock { display: none; }
  .pg-panel-inner { padding: 17px 15px 12px; }
  .pg-panel-foot { padding: 8px 15px 11px; }
  .pg-pin-card { padding: 16px 12px 13px; }

  .ai-schema-note { font-size: 8.8px; }
  .ai-schema { font-size: 8.8px; }
  .ai-exec-icon { width: 31px; height: 31px; }

  .org-chart-inner { min-width: 560px; }
  .org-node { padding: 9px 6px; }
  .org-node strong { font-size: 9.8px; }
  .org-node small { font-size: 8px; }

  .site-card-photo-wrap { aspect-ratio: 16 / 7; }
  .site-card-body { gap: 9px; }
  .site-photo-edit { flex-direction: column; align-items: stretch; }
  .site-photo-preview { width: 100%; height: 92px; }
  .site-photo-edit-copy { text-align: left; }
}

@media (max-width: 420px) {
  .cal-cell { min-height: 57px; padding: 3px 2px 4px; }
  .cal-day-number { min-width: 17px; height: 17px; font-size: 9px; }
  .cal-event-count { display: none; }
  .cal-event i { width: 4px; height: 4px; }
  .cal-today .cal-day-number { min-width: 17px; }
  .cal-month-label { min-width: 112px; font-size: 13.5px; }

  .kapt-notice-actions .btn { flex: 1; justify-content: center; }
  .kapt-notice-tags { display: none; }
  .kapt-detail-grid { grid-template-columns: 1fr; }

  .worker-filter-select { flex: 1 1 100%; }
  .worker-role-pills { gap: 4px; }
  .worker-role-pills .filter-pill { height: 27px; padding: 0 9px; font-size: 10px; }

  .mail-account { flex-wrap: wrap; }
  .mail-connection { margin-left: 48px; }
  .mail-stats { gap: 9px; }
  .mail-stat { min-width: 48px; }
  .mail-banner-actions .btn { font-size: 9.8px; padding: 0 8px; }
  .mail-reader-actions .icon-btn { width: 26px; height: 26px; }
  .mail-reader-actions .icon-btn:nth-child(3) { display: none; }
  .mail-item { padding: 8px 8px 7px; }
  .mail-item-subject { font-size: 10.3px; }

  .worklog-actions .btn { flex: 1; justify-content: center; }
  .worklog-delete { flex: none; }

  .doc-upload-picker { flex-wrap: wrap; }
  .doc-upload-picker .badge { margin-left: 46px; }
  .office-type-grid { grid-template-columns: 1fr; }
  .office-type-card { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .office-type-card strong { margin: 0 0 0 4px; }
  .office-type-card small { flex-basis: 100%; }

  .pg-brand-copy { display: none; }
  .pg-brand { padding: 10px 13px; }
  .pg-logo { width: 104px; }
  .pg-profile-end .badge { display: none; }
  .pg-panel-inner { padding: 15px 12px 10px; }
  .pg-panel-foot { padding: 7px 12px 10px; font-size: 8.2px; }
  .pg-list-actions .btn { flex: 1; }
  .pg-pin-input { width: 100%; max-width: 168px; }
  .pg-pin-form .btn { width: 100%; max-width: 168px; }

  .ai-schema-head { padding: 8px 10px; }
  .ai-schema { padding: 9px 10px; }
  .ai-schema-note { padding: 8px 10px; }
  .ai-schema-types { padding: 0 10px 9px; }

  .site-address-actions { width: 100%; }
  .site-address-actions .btn { flex: 1; }
}

@media (max-width: 380px) {
  .cal-weekdays span { font-size: 8px; }
  .cal-cell { min-height: 52px; }
  .cal-cell-events { gap: 2px; }
  .mail-folder span { max-width: 62px; }
  .worker-card-copy strong { font-size: 13px; }
  .worker-card-actions .btn { font-size: 9.8px; padding: 0 7px; }
  .kapt-tab { font-size: 9.8px; padding: 0 8px; }
  .pg-head h2 { font-size: 16.5px; }
  .pg-profile-copy strong { font-size: 11.5px; }
}

/* ---------------- 보조 컴포넌트 ---------------- */
.cal-today-card { background: linear-gradient(180deg, #FFFFFF, #FBFDFF); }
.site-contract-card { overflow: hidden; }
.site-contract-card > .card-head { padding-bottom: 6px; }

.doc-office-tip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 15px 16px;
  background: linear-gradient(160deg, #FFFDF8, #FFF9F1);
  border-color: var(--peach-100);
}
.doc-office-tip-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-bottom: 2px;
  border-radius: 10px;
  background: #fff;
  color: var(--peach-600);
  box-shadow: 0 3px 10px -6px rgba(201, 120, 34, .5);
}
.doc-office-tip-icon .icon { width: 17px; height: 17px; }
.doc-office-tip strong { color: var(--ink); font-size: 11.5px; font-weight: 750; }
.doc-office-tip p { color: var(--muted); font-size: 9.5px; line-height: 1.6; }
.doc-office-tip .text-link { margin-top: 2px; font-size: 10.5px; }

.profile-manage-list { display: flex; flex-direction: column; gap: 6px; }
.profile-manage-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.profile-manage-row.is-active { border-color: var(--brand-100); background: var(--brand-50); }
.profile-manage-copy { flex: 1; min-width: 0; }
.profile-manage-copy strong { display: block; color: var(--ink); font-size: 12px; font-weight: 730; }
.profile-manage-copy small { display: block; color: var(--muted); font-size: 9.5px; }
.profile-pin-note {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 2px;
  color: var(--muted-light);
  font-size: 8.5px;
}
.profile-pin-note .icon { width: 9px; height: 9px; }
.profile-manage-actions { display: flex; gap: 4px; flex: none; }
.profile-manage-actions .btn { height: 29px; padding: 0 9px; font-size: 10px; }

.worker-photo-edit {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 13px;
  background: #FBFCFE;
}
.worker-photo-edit-copy { flex: 1; min-width: 0; }
.worker-photo-edit-copy strong { display: block; color: var(--ink); font-size: 12px; font-weight: 750; }
.worker-photo-edit-copy p { margin: 2px 0 7px; color: var(--muted); font-size: 10px; line-height: 1.55; }

.worklog-stats { margin-bottom: 0; }
.worklog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  background: #FCFDFF;
  color: var(--muted-light);
  font-size: 9px;
}
.worklog-foot span { display: inline-flex; align-items: center; gap: 3px; }
.worklog-foot strong { color: var(--ink-soft); font-weight: 750; }
.worklog-foot .icon { width: 10px; height: 10px; }

@media (max-width: 720px) {
  .doc-office-tip { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 7px; }
  .doc-office-tip p { flex-basis: calc(100% - 44px); }
  .doc-office-tip .text-link { margin-left: 43px; }
  .profile-manage-row { flex-wrap: wrap; }
  .profile-manage-actions { width: 100%; justify-content: flex-end; }
  .worker-photo-edit { gap: 10px; }
  .worklog-foot { padding: 9px 13px; }
}

@media (max-width: 560px) {
  .worker-photo-edit { flex-direction: column; align-items: flex-start; }
  .worker-photo-edit-copy { width: 100%; }
}

/* ---------------- 모바일 최종 보정 ---------------- */
@media (max-width: 720px) {
  .app-main { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .doc-storage,
  .doc-office-tip,
  .doc-side > .card:last-child { display: none; }
}

@media (max-width: 560px) {
  .ai-chat { min-height: 390px; }
  .ai-chat-body { min-height: 190px; }
}

@media (max-width: 420px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .stat-card { padding: 13px 12px 12px; border-radius: 15px; }
  .stat-top { gap: 5px; }
  .stat-label { font-size: 10.5px; }
  .stat-icon { width: 28px; height: 28px; border-radius: 9px; }
  .stat-icon .icon { width: 14px; height: 14px; }
  .stat-value { margin-top: 6px; font-size: 23px; }
  .stat-unit { margin-left: 2px; font-size: 10px; }
  .stat-progress { margin-top: 8px; }
  .stat-foot { margin-top: 8px; min-height: 18px; gap: 3px 5px; }
  .stat-sub { font-size: 9px; }
  .trend { padding: 1px 5px; font-size: 8.8px; }
  .trend .icon { width: 9px; height: 9px; }

  .doc-cat { padding: 6px 9px; font-size: 10px; }
  .doc-cat .icon { width: 12px; height: 12px; }
  .doc-cat em { min-width: 15px; height: 15px; font-size: 8px; }
}




/* ---------------- 데이터 백업 · 복원 ---------------- */
.backup-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-50) 0%, #FFFFFF 58%, var(--mint-50) 100%);
}
.backup-hero-copy { flex: 1; min-width: 0; }
.backup-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--brand-600);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
}
.backup-hero strong { display: block; color: var(--ink); font-size: 16px; font-weight: 780; letter-spacing: -.02em; }
.backup-hero p { margin-top: 5px; color: var(--muted); font-size: 12.5px; line-height: 1.65; }
.backup-hero-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: var(--brand-600);
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(79, 110, 247, .16);
  box-shadow: var(--shadow-sm);
}
.backup-hero-icon .icon { width: 24px; height: 24px; }
.backup-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.backup-summary > div {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}
.backup-summary span { display: block; color: var(--muted); font-size: 10.5px; font-weight: 650; }
.backup-summary strong { display: block; margin-top: 3px; color: var(--ink); font-size: 15px; font-weight: 780; }
.backup-step { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.backup-step-head { display: flex; align-items: flex-start; gap: 10px; }
.backup-step-no {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  color: var(--brand-700);
  background: var(--brand-50);
  font-size: 11px;
  font-weight: 800;
}
.backup-step-head strong { display: block; color: var(--ink); font-size: 13.5px; font-weight: 750; }
.backup-step-head p { margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.backup-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.backup-restore-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.backup-picked {
  flex: 1;
  min-width: 150px;
  padding: 9px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: var(--surface-soft);
}
.backup-picked span {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.backup-picked small { display: block; margin-top: 2px; color: var(--muted); font-size: 10.5px; }
.backup-status {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.55;
}
.backup-status--info { color: var(--brand-700); background: var(--brand-50); }
.backup-status--success { color: var(--mint-700); background: var(--mint-50); }
.backup-status--danger { color: var(--rose-700); background: var(--rose-50); }

@media (max-width: 720px) {
  .backup-hero { padding: 15px 16px; }
  .backup-hero-icon { display: none; }
  .backup-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .backup-actions .btn { flex: 1 1 auto; }
  .backup-restore-row .btn { flex: 1 1 auto; }
  .backup-picked { flex-basis: 100%; order: 3; }
}
