@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css'); /* 버전 고정: 예고 없이 바뀌지 않게 */

/* 예시 사이트 색상 그대로 */
:root {
  --blue: #3a5ea0;
  --sky: #35b1da;
  --orange: #e48447;
  --text: #222;
  --muted: #888;
  --line: #e6ebf3;
  --soft: #f4f6fa;
  --danger: #d64545;
  --ok: #1e9e5a;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: 'Pretendard', sans-serif; margin: 0; color: var(--text); min-height: 100vh;
  display: flex; flex-direction: column; overflow-x: hidden;
  background: linear-gradient(-45deg, #f7f9fc, #eef2f8, #dcecf5, #e8f0ff);
  background-size: 400% 400%; animation: gradientBG 15s ease infinite;
}
a { color: var(--blue); }
@keyframes gradientBG { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } }

.bg-shape { position: fixed; border-radius: 50%; filter: blur(70px); z-index: 0; pointer-events: none; animation: floatShape 10s infinite ease-in-out alternate; }
.shape-1 { width: 520px; height: 520px; background: rgba(53, 177, 218, .4); top: -120px; left: -160px; }
.shape-2 { width: 460px; height: 460px; background: rgba(228, 132, 71, .35); bottom: -120px; right: -120px; animation-delay: -5s; }
@keyframes floatShape { to { transform: translate(100px, 100px); } }

/* ───── 헤더 ───── */
.header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 1px 0 rgba(31, 38, 135, .06); }
.header-inner { max-width: 1200px; margin: 0 auto; height: 68px; padding: 0 32px; display: flex; align-items: center; gap: 32px; }
.logo { font-size: 24px; font-weight: 800; text-decoration: none; background: linear-gradient(90deg, var(--blue), var(--sky)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.dot { display: inline-block; min-width: 18px; margin-left: 4px; padding: 1px 6px; border-radius: 10px; background: var(--orange); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; text-align: center; }
.notice-bar { padding: 9px 16px; text-align: center; font-size: 14px; font-weight: 600; color: #fff; background: linear-gradient(90deg, var(--orange), #f0a06c); }

/* ───── 레이아웃 ───── */
.main { position: relative; z-index: 1; flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 40px 32px 64px; }
.page-head { margin-bottom: 28px; }
.page-head h1 { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -.5px; }
.page-head p { margin: 8px 0 0; color: #666; }
.section-title { margin: 56px 0 20px; font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.stack { display: grid; gap: 24px; }
.layout-apply { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.sticky { position: sticky; top: 92px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.danger { color: var(--danger); }

.card { background: rgba(255, 255, 255, .92); border-radius: 24px; padding: 28px; box-shadow: 0 15px 35px rgba(0, 0, 0, .06); animation: slideUp .7s cubic-bezier(.2, .8, .2, 1) both; }
.card h2 { margin: 0 0 18px; font-size: 20px; font-weight: 800; }
.badge { display: inline-block; padding: 6px 12px; margin-bottom: 12px; border-radius: 20px; background: rgba(58, 94, 160, .1); color: var(--blue); font-size: 13px; font-weight: 700; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; background: var(--soft); color: #666; }
.pill.on { background: #e7f8ef; color: var(--ok); }
.pill.warn { background: #fff1e6; color: var(--orange); }
.pill.off { background: #fdecec; color: var(--danger); }
.step-no { display: inline-flex; width: 28px; height: 28px; margin-right: 8px; align-items: center; justify-content: center; border-radius: 50%; background: #eff4ff; color: var(--blue); font-size: 14px; }
.big-emoji { font-size: 52px; }
.big-num { font-size: 44px; font-weight: 800; color: var(--blue); letter-spacing: -1px; }
.big-num small { font-size: 18px; color: var(--muted); }

/* ───── 히어로 ───── */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; padding: 24px 0 16px; }
.hero h1 { margin: 0; font-size: 52px; line-height: 1.2; font-weight: 800; letter-spacing: -1px; background: linear-gradient(90deg, var(--blue), var(--sky)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { margin: 18px 0 28px; font-size: 18px; line-height: 1.7; color: #555; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.mini-list { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; }
.queue-head { display: flex; justify-content: space-between; align-items: center; }
.queue-head h2 { margin: 0; }

/* ───── 버튼 (예시 사이트의 쫀득한 터치 효과) ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 15px 26px;
  border: 0; border-radius: 14px; font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer;
  color: #fff; background: linear-gradient(90deg, var(--orange), #f0a06c); box-shadow: 0 8px 20px rgba(228, 132, 71, .3);
  transition: all .3s cubic-bezier(.25, .8, .25, 1);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn:disabled { background: #c8ced8; box-shadow: none; cursor: not-allowed; transform: none; }
.btn-blue { background: linear-gradient(90deg, var(--blue), var(--sky)); box-shadow: 0 8px 20px rgba(58, 94, 160, .25); }
.btn-ghost { background: #fff; color: var(--blue); box-shadow: inset 0 0 0 2px #dbe5f5; }
.btn-danger { background: var(--danger); box-shadow: none; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; box-shadow: none; }
.btn-sm.btn-ghost { box-shadow: inset 0 0 0 1.5px #dbe5f5; }
.btn-block { width: 100%; }

/* ───── 폼 ───── */
.field { margin-bottom: 16px; }
.field > label, .label { display: block; margin: 0 0 7px; font-size: 14px; font-weight: 700; color: #444; }
.label { margin-top: 18px; }
input[type=text], input[type=password], input[type=tel], input[type=email], input[type=number], input[type=date], input[type=search], input:not([type]), select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 15px; background: #fafbfd; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky); background: #fff; box-shadow: 0 0 0 3px rgba(53, 177, 218, .15); }
textarea { resize: vertical; line-height: 1.6; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: 14px; line-height: 1.5; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--blue); }
.form-narrow { max-width: 480px; margin: 0 auto; }
.form-title { margin: 0 0 24px; font-size: 28px; font-weight: 800; }
.form-links { display: flex; justify-content: center; gap: 18px; margin-top: 20px; font-size: 14px; }
.form-links a { color: #666; text-decoration: none; }
.form-links a:hover { color: var(--blue); }
.error { min-height: 1.2em; margin-top: 10px; color: var(--danger); font-size: 14px; font-weight: 600; white-space: pre-line; }
.result { margin-top: 14px; padding: 14px; border-radius: 12px; background: #eff4ff; color: var(--blue); font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip > span { display: inline-flex; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--soft); font-size: 14px; font-weight: 600; cursor: pointer; transition: .2s; }
.chip input:checked + span { background: var(--blue); color: #fff; }
.chip input:disabled + span { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.chip input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 2px; }

.dropzone { display: block; padding: 40px 16px; text-align: center; cursor: pointer; border: 2px dashed #c9d6ec; border-radius: 18px; background: #f8faff; transition: .2s; }
.dropzone:hover, .dropzone.drag { border-color: var(--sky); background: #eef8fc; }
.dropzone .icon { font-size: 40px; }
.dropzone strong { display: block; margin: 8px 0 4px; }
.dropzone small { color: var(--muted); }
.model-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.model-info div, .kv div { padding: 10px 12px; border-radius: 12px; background: var(--soft); font-size: 12px; color: var(--muted); }
.model-info div { text-align: center; }
.model-info b, .kv b { display: block; margin-top: 2px; font-size: 15px; color: var(--text); word-break: break-all; }
.kv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }

dl.info { display: grid; grid-template-columns: 100px 1fr; gap: 10px 14px; margin: 0 0 18px; font-size: 15px; line-height: 1.6; }
dl.info dt { color: var(--muted); font-weight: 600; }
dl.info dd { margin: 0; }
.free { color: var(--ok); font-size: 18px; }

/* ───── 신청서: 미리보기 · 추천 설정 · 사용량 ───── */
.viewer { height: 380px; margin-top: 14px; border-radius: 18px; overflow: hidden; background: radial-gradient(circle at 50% 30%, #ffffff, #e9eef6); }
.viewer { position: relative; min-width: 0; }
.viewer canvas { position: absolute; inset: 0; display: block; width: 100% !important; height: 100% !important; cursor: grab; touch-action: none; }
.viewer-help { margin: 8px 0 0; }
.easy-box { display: flex; gap: 12px; align-items: flex-start; padding: 16px; margin-bottom: 18px; border-radius: 16px; background: #fff4ec; border: 2px solid #f7d4bd; cursor: pointer; }
.easy-box:has(input:checked) { border-color: var(--orange); background: #ffe9da; }
.easy-box input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--orange); }
.easy-box small { display: block; margin-top: 4px; color: #7a4320; }
fieldset.opts { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset.opts:disabled { opacity: .5; }
fieldset.opts:disabled .chip input:disabled + span { text-decoration: none; opacity: 1; cursor: default; } /* 추천 설정 중엔 '재고 없음' 표시와 구분 */
.rotate-bar { margin-top: 14px; padding: 16px; border-radius: 16px; background: var(--soft); }
.rotate-bar small { display: block; margin: 4px 0 10px; }
.rotate-rows { display: grid; gap: 8px; margin-bottom: 10px; }
.rotate-rows > div { display: flex; align-items: center; gap: 8px; }
.rotate-rows input[type=range] { flex: 1; accent-color: var(--blue); }
.rotate-rows output { width: 42px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.axis { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; color: #fff; font-weight: 800; font-size: 13px; }
.ax-x { background: #e5484d; } .ax-y { background: #30a46c; } .ax-z { background: #3e63dd; }
.usage-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.usage { margin-bottom: 16px; padding: 16px; border-radius: 16px; background: #eff4ff; font-size: 14px; }
.usage-row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed #d3ddef; }
.usage-row.total { border: 0; font-weight: 800; color: var(--blue); }
.usage small { display: block; margin-top: 6px; font-size: 12px; }

.bambu-colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.bambu-color { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 0; border-radius: 10px; background: var(--soft); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.bambu-color i { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 1px solid #ccc; }
.bambu-color.on { background: #eff4ff; box-shadow: inset 0 0 0 2px var(--sky); font-weight: 700; }
input[type=color] { width: 44px; height: 36px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }

/* ───── 안내 박스 ───── */
.notice-box { padding: 16px 18px; border-radius: 16px; background: #fff4ec; border: 1px solid #f7d4bd; color: #7a4320; font-size: 14px; line-height: 1.75; }
.notice-box strong { color: #c4622a; }
.info-box { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: #eff4ff; color: #2c4a80; font-size: 14px; line-height: 1.7; }
.pickup { margin-top: 14px; padding: 18px 20px; border-radius: 16px; background: linear-gradient(135deg, #fff4ec, #ffe9da); border: 2px solid var(--orange); line-height: 1.8; }
.dday { display: inline-block; margin-left: 6px; padding: 1px 10px; border-radius: 8px; background: var(--orange); color: #fff; font-weight: 800; }

/* ───── 상태 ───── */
.status { display: inline-block; padding: 4px 10px; border-radius: 8px; font-size: 13px; font-weight: 700; background: var(--soft); color: #555; }
.status[data-s="접수"] { background: #eff4ff; color: var(--blue); }
.status[data-s="검토중"], .status[data-s="출력대기"] { background: #e6f6fb; color: #1d86a8; }
.status[data-s="출력중"] { background: #fff1e6; color: #c4622a; }
.status[data-s="완료"] { background: #e7f8ef; color: var(--ok); }
.status[data-s="반려"], .status[data-s="폐기"] { background: #fdecec; color: var(--danger); }
.progress { display: flex; gap: 6px; margin: 18px 0; }
.progress span { flex: 1; padding-top: 10px; border-top: 4px solid var(--line); font-size: 12px; color: #aaa; text-align: center; }
.progress span.on { border-color: var(--sky); color: var(--blue); font-weight: 700; }
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.order-id { font-size: 17px; font-weight: 800; color: var(--blue); }

/* ───── 색 · 막대 (공통) ───── */
.swatch { display: inline-block; width: 14px; height: 14px; margin-right: 6px; border-radius: 50%; border: 1px solid #ccc; vertical-align: -2px; }
.bar { height: 8px; margin: 12px 0 6px; border-radius: 4px; background: #eef1f6; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--blue), var(--sky)); }
.bar.low i { background: var(--orange); }

/* 신청서: 소재 → 색상 고르기 */
.mat-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.mat-option input, .color-option input { position: absolute; opacity: 0; pointer-events: none; }
.mat-option > span { display: block; height: 100%; padding: 14px; border-radius: 14px; background: var(--soft); cursor: pointer; transition: .2s; box-shadow: inset 0 0 0 2px transparent; }
.mat-option b { display: block; font-size: 15px; }
.mat-option small { display: block; margin: 4px 0 8px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.mat-option em { font-style: normal; font-size: 12px; color: #555; }
.mat-option .swatch { width: 12px; height: 12px; margin-right: 2px; }
.mat-option input:checked + span { background: #eff4ff; box-shadow: inset 0 0 0 2px var(--blue); }
.mat-option input:disabled + span { opacity: .45; cursor: not-allowed; }
.mat-option input:focus-visible + span, .color-option input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 2px; }
.color-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.color-option > span { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--soft); cursor: pointer; font-size: 14px; transition: .2s; }
.color-option .swatch { width: 22px; height: 22px; margin: 0; flex: none; }
.color-option small { margin-left: auto; color: var(--orange); font-size: 11px; font-weight: 700; }
.color-option input:checked + span { background: var(--blue); color: #fff; }
.color-option input:checked + span small { color: #ffe1cc; }
.color-option input:disabled + span { opacity: .4; cursor: not-allowed; }
fieldset.opts:disabled .mat-option input:disabled + span, fieldset.opts:disabled .color-option input:disabled + span { opacity: 1; cursor: default; }

/* ───── 이용 방법 / 지도 ───── */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.steps div { padding: 22px 12px; border-radius: 18px; background: rgba(255, 255, 255, .92); text-align: center; font-weight: 700; box-shadow: 0 8px 20px rgba(0, 0, 0, .05); }
.steps .ico { display: block; margin-bottom: 8px; font-size: 32px; }
.steps small { display: block; margin-top: 4px; font-weight: 500; color: var(--muted); }
.map { width: 100%; height: 100%; min-height: 360px; border: 0; border-radius: 24px; box-shadow: 0 15px 35px rgba(0, 0, 0, .06); }

/* ───── 대화 ───── */
.chat-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.chat-card { padding: 0; overflow: hidden; }
.chat-top { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, #eff4ff, #fff); }
.chat-top > div { flex: 1; }
.chat-top p { margin: 2px 0 0; }
.chat-card .chat-box { border-radius: 0; height: 520px; }
.chat-box { height: 480px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 16px; background: #f6f8fc; transition: .2s; }
.chat-box.drag { background: #e6f6fb; box-shadow: inset 0 0 0 3px var(--sky); }
.chat-empty { margin: auto; text-align: center; }
.avatar { width: 32px; height: 32px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #e9edf5; font-size: 15px; }
.avatar-staff { background: linear-gradient(135deg, var(--blue), var(--sky)); color: #fff; font-weight: 800; }
.avatar.big { width: 44px; height: 44px; font-size: 18px; }
.msg-row { display: flex; align-items: flex-end; gap: 8px; max-width: 80%; align-self: flex-start; }
.msg-row.me { align-self: flex-end; flex-direction: row-reverse; }
.msg-row time { flex: none; font-size: 11px; color: var(--muted); }
.msg { padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .05); line-height: 1.6; word-break: break-word; }
.msg-row.me .msg { border-radius: 16px 16px 4px 16px; background: var(--blue); color: #fff; }
.msg.notice { background: #fff8ec; border: 1px solid #f7d4bd; }
.msg small { display: block; font-weight: 700; color: var(--blue); font-size: 12px; }
.msg-img { display: block; max-width: 260px; max-height: 260px; margin: 4px 0; border-radius: 10px; }
.msg-file { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; align-items: center; margin: 4px 0; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .05); color: inherit; text-decoration: none; }
.msg-file span { grid-row: span 2; font-size: 22px; }
.msg-file b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-file small { color: inherit; opacity: .7; font-weight: 500; }
.day-sep { align-self: center; margin: 6px 0; font-size: 12px; color: var(--muted); }
.day-sep span { padding: 3px 12px; border-radius: 999px; background: #e9edf5; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 18px 0; }
.quick-btn { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.quick-btn:hover { border-color: var(--sky); color: var(--blue); }
.chat-composer { display: flex; align-items: flex-end; gap: 8px; padding: 12px 18px; }
.chat-composer textarea, .chat-form textarea { flex: 1; height: 46px; min-height: 0; padding: 12px 14px; line-height: 20px; resize: none; overflow-y: hidden; }
.chat-composer .send { padding: 12px 20px; }
.attach { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 12px; background: var(--soft); font-size: 20px; cursor: pointer; }
.attach:hover { background: #e6f6fb; }
.composer-hint { margin: 0; padding: 0 18px 14px; }
.guide { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; line-height: 1.6; }
.chat-form { display: flex; align-items: flex-end; gap: 8px; margin-top: 12px; }
.chat-form textarea { flex: 1; }
.chat-wrap { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; }
.conv-list { display: grid; gap: 6px; align-content: start; max-height: 600px; overflow-y: auto; }
.conv { display: block; width: 100%; padding: 12px; border: 0; border-radius: 12px; background: var(--soft); font: inherit; text-align: left; cursor: pointer; }
.conv.on { background: #eff4ff; box-shadow: inset 0 0 0 2px var(--sky); }
.conv .last { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-head { margin-bottom: 10px; }

/* ───── 표 ───── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
td input, td select, td textarea { padding: 8px 10px; font-size: 14px; }
td textarea { min-width: 180px; }
.memo { margin-top: 6px; padding: 6px 8px; border-radius: 8px; background: #fffbe6; font-size: 12px; color: #6b5a00; }
.inline { display: flex; gap: 6px; align-items: center; }
ul.plain { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; }

/* ───── 관리자: 신청 관리 카드 ───── */
.order-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.order-toolbar input { max-width: 340px; }
.status-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.status-tabs button, .mat-tabs button { padding: 8px 14px; border: 0; border-radius: 999px; background: var(--soft); font: inherit; font-size: 14px; font-weight: 600; color: #555; cursor: pointer; }
.status-tabs button i, .mat-tabs button i { margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: #fff; font-style: normal; font-size: 12px; color: var(--blue); }
.status-tabs button.on, .mat-tabs button.on { background: var(--blue); color: #fff; }
.order-list { display: grid; gap: 10px; }
.order-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); cursor: pointer; transition: .15s; }
.order-card:hover { border-color: var(--sky); box-shadow: 0 6px 16px rgba(53, 177, 218, .12); }
.oc-main { min-width: 0; display: grid; gap: 6px; }
.oc-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.oc-who { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-spec { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.oc-spec span { padding: 3px 9px; border-radius: 8px; background: var(--soft); }
.order-card .memo { margin: 0; }
.oc-actions { display: flex; flex-direction: column; gap: 6px; flex: none; }
.od-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; padding: 14px; border-radius: 14px; background: var(--soft); }
.od-form .btn { grid-column: 1 / -1; justify-self: start; }
details.help { margin-top: 16px; }
details.help summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.wizard { display: grid; gap: 16px; }
.wz-title { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; font-weight: 800; }
.wz-title small { margin-left: 8px; font-weight: 500; }
.bambu-color em { margin-left: auto; font-style: normal; color: var(--ok); font-weight: 800; }
#b-custom { width: 120px; }
.wz-confirm { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: #eff4ff; }
#b-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; }
.after { color: var(--blue); font-size: 17px; }
.inv-group { margin-bottom: 14px; padding: 6px 16px 10px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.inv-head { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.inv-head b { font-size: 16px; color: var(--blue); }
.inv-sum { margin-left: auto; font-size: 13px; color: #555; }
.inv-row { display: grid; grid-template-columns: 18px minmax(120px, 1fr) 120px 80px 74px auto auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.inv-row:last-child { border-bottom: 0; }
.inv-row .swatch, .inv-row .bar { margin: 0; }
.inv-row.empty { opacity: .55; }
.inv-name small { display: block; color: var(--muted); font-size: 12px; }
.inv-g { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 768px) { .inv-row { grid-template-columns: 18px 1fr auto; } .inv-row .bar, .inv-row .pill { display: none; } .wz-confirm { flex-direction: column; align-items: stretch; } }
.tab-filaments { display: flex; flex-direction: column; gap: 24px; }
.tab-filaments .add-card { order: 2; } /* 재고 목록이 먼저, 추가는 아래 */
.mat-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
tr.group-row th { padding-top: 18px; color: var(--blue); font-size: 15px; background: none; }
tr.group-row th small { margin-left: 8px; color: var(--muted); font-weight: 500; }
@media (max-width: 768px) { .order-card { flex-direction: column; align-items: stretch; } .oc-actions { flex-direction: row; } .order-toolbar { flex-direction: column; align-items: stretch; } .order-toolbar input { max-width: none; } }

/* ───── 관리자 ───── */
.admin { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; align-items: start; }
.side { position: sticky; top: 92px; display: grid; gap: 4px; padding: 12px; }
.side button { padding: 12px 14px; border: 0; border-radius: 12px; background: none; font: inherit; font-size: 15px; font-weight: 600; color: #444; text-align: left; cursor: pointer; }
.side button:hover { background: var(--soft); }
.side button.on { background: var(--blue); color: #fff; }
.side button { position: relative; display: flex; align-items: center; gap: 8px; }
.side .ico { width: 22px; text-align: center; }
.side .dot { margin-left: auto; }
/* 좁은 화면: 옆 메뉴 → 위쪽 타일 격자 (항목이 가려지지 않게 전부 보임) */
@media (max-width: 1024px) {
  .admin { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .side { position: static; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 6px; padding: 8px; }
  .side button { flex-direction: column; justify-content: center; gap: 4px; padding: 10px 6px; font-size: 13px; text-align: center; line-height: 1.3; background: var(--soft); }
  .side .ico { width: auto; font-size: 20px; }
  .side .dot { position: absolute; top: 6px; right: 6px; margin: 0; }
  .side .side-guide { display: none; } /* 좁은 화면: 사용법은 상단 ⚙️ 관리 메뉴에서 */
}
@media (max-width: 480px) { .side { grid-template-columns: repeat(4, minmax(0, 1fr)); } .side button { font-size: 11px; padding: 8px 2px; } }
.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { padding: 18px; border: 0; border-radius: 18px; background: rgba(255, 255, 255, .92); box-shadow: 0 8px 20px rgba(0, 0, 0, .05); font: inherit; text-align: left; }
button.stat { cursor: pointer; transition: .2s; }
button.stat:hover { transform: translateY(-2px); }
.stat b { display: block; font-size: 30px; font-weight: 800; color: var(--blue); }
.stat.warn b { color: var(--orange); }
.stat > span { font-size: 13px; color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.toolbar input, .toolbar select { width: auto; min-width: 160px; }
.toolbar input[type=search] { flex: 1; }
fieldset { margin: 0 0 20px; padding: 18px 20px 4px; border: 1px solid var(--line); border-radius: 16px; }
legend { padding: 0 8px; font-weight: 800; color: var(--blue); }
.tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.policy { font-size: 15px; line-height: 1.8; word-break: keep-all; overflow-wrap: anywhere; }
.policy-title { margin: 0 0 18px; font-size: 24px; }
.policy h3 { margin: 28px 0 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 16px; color: var(--blue); scroll-margin-top: 90px; }
.policy p { margin: 4px 0; }
.policy p.item { padding-left: 1.4em; text-indent: -1.4em; }
.policy p.item b { color: #555; }
.policy p.sub { position: relative; margin-left: 1.4em; padding-left: 1em; color: #444; }
.policy p.sub::before { content: '·'; position: absolute; left: 0; font-weight: 800; }
.policy-toc { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; padding: 14px; border-radius: 14px; background: var(--soft); }
.policy-toc a { padding: 4px 10px; border-radius: 8px; background: #fff; color: #444; font-size: 13px; text-decoration: none; }
.policy-toc a:hover { color: var(--blue); }
.consent { width: 100%; margin: 8px 0; font-size: 13px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.consent th, .consent td { padding: 8px 10px; }
.toast { position: fixed; left: 50%; bottom: 32px; z-index: 100; transform: translateX(-50%); padding: 12px 20px; border-radius: 12px; background: #222; color: #fff; font-weight: 600; animation: slideUp .3s both; }
.toast.err { background: var(--danger); }

/* ───── 관리자 모드: 배경을 보라 톤으로 ───── */
body.is-staff { background-image: linear-gradient(-45deg, #f6f3ff, #eee8fb, #e4ddf6, #f1ecff); }
body.is-staff .shape-1 { background: rgba(124, 92, 214, .35); }
body.is-staff .shape-2 { background: rgba(53, 177, 218, .3); }
body.is-staff .header { box-shadow: inset 0 -3px 0 #7c5cd6; }
.staff-badge { margin-left: -14px; padding: 4px 10px; border-radius: 8px; background: #7c5cd6; color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }

/* ───── 문구 편집 모드 ───── */
.edit-bar { position: fixed; right: 24px; bottom: 24px; z-index: 50; display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 14px; background: rgba(255, 255, 255, .9); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.edit-hint { padding: 0 6px; font-size: 13px; color: #555; }
body.editing [data-t] { outline: 2px dashed var(--sky); outline-offset: 2px; border-radius: 4px; cursor: text; }
body.editing [data-t]:focus { outline-style: solid; background: rgba(53, 177, 218, .08); }

/* ───── 권한 창 ───── */
dialog { width: min(640px, calc(100% - 32px)); padding: 28px; border: 0; border-radius: 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, .2); }
dialog.wide-dialog { width: min(1100px, calc(100% - 32px)); }
/* 신청서 보기: 위 = 미리보기, 아래 = 신청서 내용 */
#order-dialog { width: min(920px, calc(100% - 32px)); }
.od-grid { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 8px; }
.od-grid dl.info { grid-template-columns: 110px 1fr; font-size: 14px; }
.od-grid h3 { margin: 18px 0 8px; font-size: 15px; color: var(--blue); }
dialog::backdrop { background: rgba(20, 30, 50, .4); }
.perm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.perm-grid label { display: flex; gap: 10px; padding: 12px; border-radius: 12px; background: var(--soft); cursor: pointer; font-size: 14px; }
.perm-grid label:has(input:checked) { background: #eff4ff; box-shadow: inset 0 0 0 2px var(--sky); }
.perm-grid input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--blue); }
.perm-grid small { display: block; color: var(--muted); }
.perm-pills { display: flex; flex-wrap: wrap; gap: 4px; max-width: 280px; }
@media (max-width: 768px) { .perm-grid { grid-template-columns: 1fr; } .edit-bar { right: 12px; bottom: 12px; } .edit-hint { display: none; } }

/* ───── 푸터 (법적 정보 / 카피라이트) ───── */
.footer { position: relative; z-index: 1; background: rgba(255, 255, 255, .75); border-top: 1px solid var(--line); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 28px 32px; font-size: 13px; line-height: 1.8; color: #777; }
.footer-links { margin-bottom: 8px; }
.footer-links a { margin-right: 18px; color: #555; text-decoration: none; }
.footer p { margin: 0; }
.copy { margin-top: 8px !important; color: #aaa; }

/* ───── 반응형 (기본은 PC) ───── */
@media (max-width: 1024px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .layout-apply { grid-template-columns: minmax(0, 1fr); }
  .sticky { position: static; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .header-inner { height: 60px; padding: 0 16px; }
  .main { padding: 24px 16px 48px; }
  .hero, .grid-2, .grid-3, .admin, .chat-wrap { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 24px; }
  .hero h1 { font-size: 34px; }
  .hero-sub { font-size: 16px; }
  .page-head h1 { font-size: 26px; }
  .section-title { margin-top: 40px; font-size: 22px; }
  .card { padding: 20px; border-radius: 20px; }
  .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .progress span { font-size: 10px; }
  .chat-box, .chat-card .chat-box { height: 60vh; }
  .msg-row { max-width: 92%; }
  .chat-layout { grid-template-columns: 1fr; }
  .footer-inner { padding: 24px 16px; }
  dl.info { grid-template-columns: 80px 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ───── 폐기예정 상태 ───── */
.status[data-s="폐기예정"] { background: #fff1e6; color: #c4622a; box-shadow: inset 0 0 0 1px #f7c9a8; }

/* ───── ⓘ 설명 (마우스 올리면) ───── */
.tip { position: relative; display: inline-flex; width: 18px; height: 18px; margin-left: 4px; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: #dfe7f5; color: var(--blue); font: italic 700 12px Georgia, serif; cursor: help; vertical-align: middle; }
.tip:hover, .tip:focus-visible { background: var(--blue); color: #fff; }
.tip-body { position: absolute; z-index: 40; left: 50%; bottom: calc(100% + 10px); width: 280px; padding: 14px; border-radius: 14px; background: #fff; color: var(--text); font: 400 13px/1.6 'Pretendard', sans-serif; text-align: left; box-shadow: 0 12px 32px rgba(0, 0, 0, .18); opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: .15s; pointer-events: none; }
.tip-body b { display: block; margin-bottom: 4px; color: var(--blue); }
.tip-body svg { display: block; margin: 8px auto 0; max-height: 120px; }
.tip:hover .tip-body, .tip:focus .tip-body { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (max-width: 768px) { .tip-body { left: auto; right: -10px; transform: none; } .tip:hover .tip-body, .tip:focus .tip-body { transform: none; } }

/* ───── 이용 가이드 ───── */
.welcome { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; background: linear-gradient(90deg, #fff4ec, #fff); }
.welcome > div:nth-child(2) { flex: 1; }
.guide-toc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.guide-toc a { padding: 6px 12px; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; text-decoration: none; box-shadow: 0 2px 8px rgba(0, 0, 0, .05); }
.guide-row { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; }
.fig { margin: 0; padding: 12px; border-radius: 16px; background: var(--soft); text-align: center; }
.fig figcaption { margin-top: 6px; font-size: 13px; font-weight: 600; color: #555; }
.fig-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 12px 0; }
.mini-card { padding: 16px; border-radius: 14px; background: var(--soft); }
.mini-card b { font-size: 18px; color: var(--blue); }
.mini-card p { margin: 6px 0 0; font-size: 14px; line-height: 1.6; }
.guide-list { line-height: 1.9; }
.guide-table th { width: 90px; color: var(--blue); }
.guide-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0; list-style: none; counter-reset: s; }
.guide-flow li { padding: 16px; border-radius: 14px; background: var(--soft); font-size: 13px; line-height: 1.6; counter-increment: s; }
.guide-flow li::before { content: counter(s); display: inline-flex; width: 24px; height: 24px; margin-right: 6px; align-items: center; justify-content: center; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; }
.guide-flow b { font-size: 15px; }
.guide-flow b + * , .guide-flow li > :last-child { display: block; }
@media (max-width: 768px) { .guide-row { grid-template-columns: 1fr; } .guide-flow { grid-template-columns: 1fr 1fr; } .welcome { flex-direction: column; text-align: center; } }

/* ───── 3MF 색별 필라멘트 ───── */
.color-map { display: grid; gap: 8px; }
.color-map-row { display: grid; grid-template-columns: auto 1fr minmax(180px, 1.4fr); align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--soft); }
.color-map-row .swatch { width: 22px; height: 22px; margin: 0; }
.color-map-row select { padding: 8px 10px; }
.color-map-note { margin: 8px 0 0; }

/* ───── 통계 ───── */
.stat-bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; height: 160px; padding-top: 10px; }
.stat-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; font-size: 12px; }
.stat-col .bars { display: flex; gap: 3px; align-items: flex-end; height: 120px; }
.stat-col .bars i { width: 14px; border-radius: 4px 4px 0 0; background: var(--sky); min-height: 2px; }
.stat-col .bars i.done { background: var(--blue); }
.stat-col b { font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 14px; font-size: 12px; color: #555; }
.legend i { display: inline-block; width: 10px; height: 10px; margin-right: 4px; border-radius: 2px; vertical-align: -1px; }
.mat-bar { display: grid; grid-template-columns: 110px 1fr 70px; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; }
.mat-bar .bar { margin: 0; }
.mat-bar b { text-align: right; font-variant-numeric: tabular-nums; }

/* ───── 신청 관리자 모드 (권한 받은 회원) = 녹색 / 최고 관리자 = 보라 ───── */
body.is-manager { background-image: linear-gradient(-45deg, #f1fbf4, #e6f6eb, #dbf1e2, #eefaf1); }
body.is-manager .shape-1 { background: rgba(39, 174, 96, .32); }
body.is-manager .shape-2 { background: rgba(53, 177, 218, .25); }
body.is-manager .header { box-shadow: inset 0 -3px 0 #1f9d55; }
body.is-manager .staff-badge { background: #1f9d55; }

/* ───── 이용 정지: 파란 원이 빨강으로 ───── */
body.suspended .shape-1 { background: rgba(214, 69, 69, .45); }
.notice-bar.suspend-bar { background: linear-gradient(90deg, #c0392b, #e05a4f); }


/* ───── 1:1 문의 ───── */
.order-link { display: inline-flex; align-items: center; gap: 2px; margin: 0 2px; padding: 1px 8px; border: 0; border-radius: 6px; background: rgba(58, 94, 160, .12); color: var(--blue); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.order-link:hover { background: var(--blue); color: #fff; }
.msg-row.me .order-link { background: rgba(255, 255, 255, .22); color: #fff; }
.avatar-user { background: linear-gradient(135deg, var(--orange), #f2b07f); }
/* 관리자 화면에서 신청자 말풍선은 눈에 띄는 주황 */
.msg.from-user { background: #fff3e8; border: 2px solid #f3b386; }
.msg.from-user small { color: #c8641f; }
.msg.request { background: #fff8d9; border: 2px solid #f1c40f; }
.msg.request small { color: #9a7b00; }

/* ───── 신청 카드 (작업 현황) ───── */
.ov-body { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; align-items: start; }
.thumb { width: 132px; height: 132px; border-radius: 14px; object-fit: contain; background: var(--soft); border: 1px solid var(--line); }
.thumb-none { display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 800; letter-spacing: 1px; }
.order-view .kv { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 768px) { .ov-body { grid-template-columns: 1fr; } .thumb { width: 100%; height: 180px; } .order-view .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ───── 관리자: 신청 카드·상세 ───── */
.oc-thumb { width: 64px; height: 64px; flex: none; border-radius: 12px; object-fit: contain; background: var(--soft); border: 1px solid var(--line); }
.oc-thumb.none { display: inline-flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; font-weight: 800; }
.order-card .oc-main { flex: 1; }
.od-status { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.od-status .status { font-size: 15px; padding: 6px 14px; }
.od-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 6px 0 4px; }
.od-tiles div { padding: 12px; border-radius: 14px; background: #eff4ff; text-align: center; }
.od-tiles span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.od-tiles b { display: block; margin: 2px 0; font-size: 20px; color: var(--blue); letter-spacing: -.5px; }
.od-tiles small { font-size: 11px; color: var(--muted); }
.edit-req { margin: 12px 0; padding: 14px 16px; border-radius: 14px; background: #fff8d9; border: 2px solid #f1c40f; }
.edit-req ul { margin: 8px 0 12px; padding-left: 20px; line-height: 1.7; }
.od-grid h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.od-edit { margin: 0 0 8px; padding: 14px; border-radius: 14px; background: #fffaf3; border: 2px dashed #f3b386; }
.memo-box { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--soft); line-height: 1.7; }
.od-thumb { display: block; width: 100%; height: 380px; margin-top: 14px; object-fit: contain; border-radius: 16px; background: var(--soft); }
@media (max-width: 768px) { .od-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .oc-thumb { display: none; } }

/* 저장 공간 */
.storage-row { grid-template-columns: 230px 1fr 80px; }
.storage-row small { display: block; font-size: 11px; }
@media (max-width: 768px) { .storage-row { grid-template-columns: 1fr 70px; } .storage-row .bar { display: none; } }

/* 필라멘트 특이사항 */
.inv-name .inv-memo { color: #a3561c; }
.inv-name > b { display: inline-flex; align-items: center; }
/* 1:1 문의 창에서 여는 신청서도 그림을 위에 크게 */
dialog .ov-body { grid-template-columns: 1fr; }
dialog .thumb { width: 100%; height: 280px; }
dialog .order-view .kv { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.inv-row .tip-body { bottom: auto; top: calc(100% + 8px); }

/* 회원 목록 */
tr.withdrawn td { background: #fafafa; color: #999; }
tr.suspended-row td { background: #fff5f5; }
tr.warn-row td { background: #fff8ec; }

/* ───── 신청서: 진행 단계 · 잠금 · 확인 ───── */
.stepper { display: flex; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; counter-reset: s; }
.stepper li { flex: 1; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .7); color: var(--muted); font-weight: 700; font-size: 14px; border: 2px solid transparent; }
.stepper i { display: inline-flex; width: 26px; height: 26px; flex: none; align-items: center; justify-content: center; border-radius: 50%; background: var(--soft); font-style: normal; }
.stepper li.now { border-color: var(--sky); color: var(--blue); background: #fff; }
.stepper li.now i { background: var(--blue); color: #fff; }
.stepper li.done { color: #1f9d55; }
.stepper li.done i { background: #1f9d55; color: #fff; font-size: 0; }
.stepper li.done i::after { content: '✓'; font-size: 14px; }
.lock-hint { display: none; margin: -4px 0 14px; padding: 12px 14px; border-radius: 12px; background: #eff4ff; color: var(--blue); font-weight: 700; font-size: 14px; }
.card.locked .lock-hint { display: block; }
.card.locked > :not(h2):not(.lock-hint) { opacity: .4; pointer-events: none; filter: grayscale(.6); }
dl.info.summary { grid-template-columns: 68px minmax(0, 1fr); gap: 0; font-size: 14px; }
dl.info.summary dt, dl.info.summary dd { padding: 9px 0; border-bottom: 1px solid var(--line); line-height: 1.5; }
dl.info.summary dt { padding-right: 8px; white-space: nowrap; }
dl.info.summary dd { font-weight: 600; word-break: break-all; }
dl.info.summary dd .swatch { vertical-align: -2px; }
.checklist { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--soft); list-style: none; display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.checklist li.ok { color: #1f9d55; font-weight: 700; }
@media (max-width: 768px) { .stepper li span { display: none; } .stepper li { justify-content: center; } }
@media (max-width: 768px) { .od-thumb, #od-viewer { height: 260px; } dialog .order-view .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.presence { font-size: 11px; color: var(--muted); white-space: nowrap; }
.presence.live { color: #1f9d55; font-weight: 700; animation: livePulse 2s infinite; }
@keyframes livePulse { 50% { opacity: .55; } }

/* ───── FAQ ───── */
.faq-list { display: grid; gap: 10px; }
.faq-item { padding: 0; overflow: hidden; }
.faq-item summary { display: flex; align-items: center; gap: 12px; padding: 18px 22px; font-weight: 700; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '＋'; margin-left: auto; color: var(--muted); }
.faq-item[open] summary::after { content: '－'; }
.faq-q { display: inline-flex; width: 28px; height: 28px; flex: none; align-items: center; justify-content: center; border-radius: 50%; background: var(--blue); color: #fff; font-size: 14px; }
.faq-a { padding: 0 22px 20px 62px; line-height: 1.8; color: #444; }

/* ───── 만족도 ───── */
.review-box { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: #fffaf0; border: 2px solid #f6d58b; }
.stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.stars input { position: absolute; opacity: 0; width: 0; }
.stars label { font-size: 28px; line-height: 1; color: #ddd; cursor: pointer; transition: .1s; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: #f5b301; }
.stars input:focus-visible + label { outline: 2px solid var(--sky); border-radius: 4px; }
.star-show { color: #f5b301; letter-spacing: 1px; }

/* ───── 출력 실패 기록 · 반려 사유 ───── */
.fail-list { display: grid; gap: 6px; margin: 0 0 10px; }
.fail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: #fff3f0; font-size: 13px; }
.fail-row .btn { margin-left: auto; }
.fail-form { display: grid; grid-template-columns: 1.3fr 100px 1fr auto; gap: 8px; align-items: end; padding: 12px; border-radius: 12px; background: var(--soft); }
.fail-form .field { margin: 0; }
.fail-form .check { grid-column: 1 / -1; margin: 0; font-size: 13px; }
.reject-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; grid-column: 1 / -1; }
.reject-chips button { padding: 6px 10px; border: 1px solid #f3c1c1; border-radius: 999px; background: #fff; color: var(--danger); font: inherit; font-size: 12px; cursor: pointer; text-align: left; }
.reject-chips button:hover { background: #fdecec; }
@media (max-width: 768px) { .fail-form { grid-template-columns: 1fr 1fr; } }

/* ───── 공지 ───── */
.notice-form { margin-bottom: 16px; border: 2px dashed #c9d6ee; }
.faq-item.pinned { border: 2px solid #f6d58b; }
.notice-title { flex: 1; min-width: 0; }
.home-notices { display: grid; gap: 8px; }
.home-notices a { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 14px; background: rgba(255, 255, 255, .92); color: var(--text); text-decoration: none; box-shadow: 0 6px 16px rgba(0, 0, 0, .04); }
.home-notices a:hover { color: var(--blue); }
.home-notices a span:first-of-type { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 관리자: 정기 휴무 요일 선택 */
.weekday-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.staff-memo { background: #f3f0ff; color: #5b43b0; }
.staff-note textarea { background: #f8f6ff; border-color: #dcd3fb; }
.csv-form { display: flex; align-items: center; gap: 6px; }
.csv-form input { width: 140px; padding: 7px 8px; font-size: 13px; }
@media (max-width: 768px) { .csv-form { flex-wrap: wrap; } .csv-form input { width: auto; flex: 1; } }
.grade-box { margin: 0 0 16px; }

/* ───── 상단 메뉴 (PC) ───── */
.header-inner { gap: 28px; }
.nav { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.nav-main, .nav-user { display: flex; align-items: center; gap: 2px; }
.nav a, .drop > summary { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px; color: #444; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .15s, color .15s; }
.nav a:hover, .nav a.active, .drop > summary:hover, .drop.active > summary, .drop[open] > summary { background: #eff4ff; color: var(--blue); }
.nav-main > a .ico, .nav-user > a .ico { display: none; }
.nav a.nav-cta { margin-left: 6px; background: var(--blue); color: #fff; }
.nav a.nav-cta:hover { background: #2f4f8a; color: #fff; }
.nav a.nav-admin { color: #6b4fd0; }
body.is-manager .nav a.nav-admin { color: #1f9d55; }
.nav .dot { margin-left: 0; }

/* 드롭다운 (안내 · 내 이름) */
.drop { position: relative; }
.drop > summary { list-style: none; }
.drop > summary::-webkit-details-marker { display: none; }
.drop > summary::after { content: ''; width: 6px; height: 6px; margin-left: 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .6; transition: transform .15s; }
.drop[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.drop-panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; min-width: 190px; padding: 6px; border-radius: 14px; background: #fff; box-shadow: 0 14px 36px rgba(31, 38, 135, .16); display: grid; gap: 2px; animation: dropIn .12s ease-out; }
.drop-right .drop-panel { left: auto; right: 0; }
.drop-panel a { display: flex; padding: 10px 12px; font-size: 14px; }
.drop-panel a .ico { display: inline-block; width: 20px; text-align: center; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-4px); } }
.avatar-mini { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--sky)); color: #fff; font-size: 13px; font-weight: 800; }
body.is-staff .avatar-mini { background: #7c5cd6; }
body.is-manager .avatar-mini { background: #1f9d55; }

/* ☰ 버튼 (모바일) */
.menu-btn { display: none; position: relative; width: 42px; height: 42px; margin-left: auto; padding: 0; border: 0; border-radius: 12px; background: transparent; cursor: pointer; }
.menu-btn span { position: absolute; left: 11px; width: 20px; height: 2px; border-radius: 2px; background: #333; transition: transform .2s, opacity .2s; }
.menu-btn span:nth-child(1) { top: 14px; } .menu-btn span:nth-child(2) { top: 20px; } .menu-btn span:nth-child(3) { top: 26px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu-dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

/* 아래 탭바 (모바일 · 로그인 시) */
.tabbar { display: none; }

/* 중간 화면: 글자·간격 줄이기 */
@media (max-width: 1100px) {
  .header-inner { gap: 16px; padding: 0 20px; }
  .nav a, .drop > summary { padding: 8px 10px; font-size: 14px; }
  .uname { display: none; }
}

/* ───── 모바일 ───── */
@media (max-width: 768px) {
  .header-inner { height: 60px; padding: 0 12px 0 16px; gap: 10px; }
  .logo { font-size: 21px; }
  .staff-badge { margin-left: -4px; padding: 3px 8px; font-size: 11px; }
  .menu-btn { display: block; }
  /* 헤더의 backdrop-filter 때문에 fixed 기준이 헤더가 되므로 높이를 직접 지정 */
  .nav { position: fixed; top: 60px; left: 0; right: 0; height: calc(100vh - 60px); height: calc(100dvh - 60px); z-index: 40; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: 12px 16px 100px; background: #fff; overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: .18s; }
  .nav.open { visibility: visible; opacity: 1; transform: none; }
  body.menu-open { overflow: hidden; }
  .nav-main, .nav-user { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-user { order: -1; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
  .nav a, .drop > summary { padding: 14px 12px; font-size: 16px; border-radius: 12px; }
  .nav-main > a .ico, .nav-user > a .ico { display: inline-block; width: 24px; text-align: center; }
  .nav .dot { margin-left: auto; }
  .nav a.nav-cta { margin: 6px 0 0; justify-content: center; }
  /* 모바일에선 드롭다운을 펼친 목록으로 */
  #nav .drop > summary { pointer-events: none; padding: 16px 12px 6px; color: var(--muted); font-size: 13px; }
  #nav .drop > summary::after { display: none; }
  #nav .drop.active > summary, #nav .drop[open] > summary { background: none; color: var(--muted); }
  #nav .drop > .drop-panel { position: static; display: grid; min-width: 0; padding: 0; box-shadow: none; background: none; animation: none; }
  #nav .drop-panel a { padding: 14px 12px; font-size: 16px; }
  #nav .drop-right > summary { pointer-events: none; padding: 6px 12px 10px; color: var(--text); font-size: 16px; }
  .uname { display: inline; }

  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 -1px 0 var(--line), 0 -6px 20px rgba(0, 0, 0, .05); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 4px 0; color: #777; font-size: 11px; font-weight: 600; text-decoration: none; }
  .tabbar a span { position: relative; font-size: 20px; line-height: 1.2; filter: grayscale(.8); opacity: .75; }
  .tabbar a.active { color: var(--blue); }
  .tabbar a.active span { filter: none; opacity: 1; }
  .tab-dot { position: absolute; top: 0; right: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
  body.has-tabbar { padding-bottom: 64px; }
  body.has-tabbar .edit-bar { bottom: 80px; }
  body.has-tabbar .toast { bottom: 84px; }
}

/* ───── 자유게시판 ───── */
.board-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.board-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.board-tools .status-tabs { border: 0; margin: 0; padding: 0; }
.board-tools input { width: 240px; }
.tab-link { padding: 8px 14px; border-radius: 999px; background: var(--soft); color: #555; font-size: 14px; font-weight: 600; text-decoration: none; }
.tab-link.on { background: var(--blue); color: #fff; }
.board-list { margin-top: 14px; padding: 8px; }
/* 줄마다 둥근 모서리: 마우스를 올리거나 고정 글 배경이 칠해져도 둥근 목록 상자 안에서 깔끔하게 (각진 사각형이 삐져나오지 않게) */
.post-row { position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; color: var(--text); text-decoration: none; transition: background .15s; }
.post-row + .post-row::before { content: ''; position: absolute; top: 0; left: 14px; right: 14px; border-top: 1px solid var(--line); }
.post-row:hover, .post-row:focus-visible { background: #f2f6ff; outline: none; }
.post-row:hover::before, .post-row:hover + .post-row::before, .post-row.pinned::before, .post-row.pinned + .post-row::before { border-color: transparent; }
.post-row.pinned { background: #fffaf0; }
.post-row.pinned:hover { background: #fff3dc; }
.post-row:focus-visible { box-shadow: inset 0 0 0 2px var(--sky); }
.post-cat { justify-self: start; padding: 3px 10px; border-radius: 8px; background: #eff4ff; color: var(--blue); font-size: 12px; font-weight: 700; white-space: nowrap; }
.post-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.post-cnt { color: var(--orange); font-weight: 700; }
.post-meta { color: var(--muted); font-size: 13px; white-space: nowrap; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
.pager a { min-width: 36px; padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, .9); color: #555; text-align: center; text-decoration: none; font-weight: 600; }
.pager a.on { background: var(--blue); color: #fff; }
.post-top { display: flex; gap: 6px; margin-top: 14px; }
.post-h { margin: 10px 0 6px; font-size: 26px; line-height: 1.35; word-break: break-word; }
.post-img { display: block; max-width: 100%; max-height: 560px; margin: 18px 0; border-radius: 16px; object-fit: contain; background: var(--soft); }
.post-body { margin: 18px 0 22px; font-size: 16px; line-height: 1.85; word-break: break-word; }
.post-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.post-actions .spacer { flex: 1; }
#comments-view { margin-top: 16px; }
.comments { display: grid; gap: 2px; margin-bottom: 14px; }
.comment { padding: 12px 0; border-bottom: 1px dashed var(--line); line-height: 1.7; word-break: break-word; }
.c-head { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; font-size: 14px; }
.c-del { margin-left: auto; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.c-del:hover { color: var(--danger); }
.c-form { display: flex; gap: 8px; align-items: flex-end; }
.c-form textarea { flex: 1; resize: vertical; }
.small-drop { padding: 18px; }
.w-preview { display: block; max-width: 100%; max-height: 260px; margin-top: 10px; border-radius: 12px; }
@media (max-width: 768px) {
  .board-head { flex-direction: column; align-items: stretch; }
  .board-tools input { width: 100%; }
  .board-tools form { width: 100%; }
  .post-row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 12px; }
  .board-list { padding: 6px; }
  .post-meta { font-size: 12px; }
  .post-h { font-size: 21px; }
  .c-form { flex-direction: column; align-items: stretch; }
}
/* 신청 관리 도구줄: 좁아지면 줄바꿈 (제목·버튼 글자가 쪼개지지 않게) */
.order-toolbar { flex-wrap: wrap; }
.order-toolbar h2, .csv-form button { white-space: nowrap; }
.order-toolbar input[type=search] { flex: 1 1 220px; }

/* ───── 오늘 할 일 · 대기 순번 ───── */
.todo-card { margin-bottom: 20px; border: 2px solid #c9d6ee; }
.todo-card h2 { margin-top: 0; }
.todo-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.todo { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 0; border-radius: 12px; background: #eff4ff; color: var(--blue); font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.todo b { min-width: 26px; padding: 2px 8px; border-radius: 8px; background: var(--blue); color: #fff; text-align: center; }
.todo.off { background: #fdecec; color: var(--danger); }
.todo.off b { background: var(--danger); }
.todo.calm { background: var(--soft); color: #555; }
.todo.calm b { background: #888; }
.todo:hover { filter: brightness(.96); }
.queue-line { margin: -4px 0 14px; padding: 10px 14px; border-radius: 12px; background: #eaf7ef; color: #1f7a45; font-size: 14px; }

/* ───── 신청 관리 도구줄 · 탭 정리 ───── */
.toolbar-right { display: flex; align-items: center; gap: 8px; flex: 1 1 300px; justify-content: flex-end; }
.toolbar-right input[type=search] { flex: 1; max-width: 360px; }
.tool-drop > summary.btn { padding: 8px 12px; }
.tool-drop > summary.btn::after { display: none; }
.tool-drop .drop-panel { min-width: 260px; padding: 12px; gap: 10px; }
.tool-drop .csv-form { display: grid; gap: 6px; }
.tool-drop .csv-form input { width: 100%; }
.status-tabs button.zero { opacity: .55; }
.status-tabs button.zero.on { opacity: 1; }
.step-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: -6px 0 16px; padding: 4px; border-radius: 12px; background: var(--soft); width: fit-content; max-width: 100%; }
.step-tabs button { padding: 6px 12px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: 13px; font-weight: 600; color: #555; cursor: pointer; }
.step-tabs button i { margin-left: 3px; font-style: normal; color: var(--muted); }
.step-tabs button.on { background: #fff; color: var(--blue); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.pill.test { background: #fff3cd; color: #8a6d00; }
@media (max-width: 768px) { .toolbar-right { flex-basis: 100%; } .toolbar-right input[type=search] { max-width: none; } }

/* ───── 관리자 상단 메뉴 (⚙️ 관리 ▾) ───── */
.admin-drop > summary.nav-admin { color: #6b4fd0; }
body.is-manager .admin-drop > summary.nav-admin { color: #1f9d55; }
.admin-drop .drop-panel { min-width: 250px; }
.admin-drop .drop-panel a, .admin-drop .drop-panel button { display: flex; align-items: center; gap: 0; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: #444; font: inherit; font-size: 14px; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
.admin-drop .drop-panel a:hover, .admin-drop .drop-panel button:hover { background: #eff4ff; color: var(--blue); }
.admin-drop .drop-panel .ico { display: inline-block; width: 26px; }
.admin-drop .drop-panel .dot { margin-left: auto; }
.admin-drop hr { width: 100%; margin: 4px 0; border: 0; border-top: 1px solid var(--line); }
@media (max-width: 768px) {
  .admin-drop > summary.nav-admin { color: var(--muted); }
  .admin-drop .drop-panel a, .admin-drop .drop-panel button { padding: 14px 12px; font-size: 16px; }
}

/* ───── 테스트 모드 ───── */
.notice-bar.test-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(90deg, #f1c40f, #f5d76e); color: #4a3b00; }
.test-bar .btn { padding: 5px 12px; background: #4a3b00; box-shadow: none; }
body.test-mode .header { box-shadow: inset 0 -3px 0 #f1c40f; }

/* ───── 관리자 사용법 ───── */
.side-guide { color: var(--muted) !important; }
.guide-dialog { width: min(520px, calc(100% - 32px)); text-align: center; }
.gd-top { display: flex; justify-content: space-between; align-items: center; }
.gd-ico { margin-top: 6px; font-size: 52px; line-height: 1.2; }
.guide-dialog h2 { margin: 8px 0 10px; }
.gd-body { min-height: 120px; color: #444; line-height: 1.8; text-align: left; }
.gd-dots { display: flex; justify-content: center; gap: 6px; margin: 18px 0 14px; }
.gd-dots i { width: 8px; height: 8px; border-radius: 50%; background: #d5deea; transition: .2s; }
.gd-dots i.on { width: 22px; border-radius: 4px; background: var(--blue); }

/* 신청서: 긴 파일 이름·방향 돌리기 줄이 좁은 화면을 밀어내지 않게 */
.layout-apply > *, .layout-apply .stack, .layout-apply .card { min-width: 0; }
.dropzone strong, .summary dd { overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .rotate-rows > div { display: grid; grid-template-columns: 28px auto minmax(0, 1fr) 44px auto; align-items: center; gap: 6px; }
  .rotate-rows .btn { padding: 6px 8px; font-size: 12px; }
  .viewer { height: 300px; }
}

/* ───── 작업 현황 ───── */
.kb-steps { display: flex; align-items: stretch; gap: 4px; padding: 6px; margin-bottom: 18px; border-radius: 16px; background: var(--soft); overflow-x: auto; scrollbar-width: thin; }
.kb-step { flex: 1 0 auto; position: relative; display: grid; grid-template-columns: auto auto; grid-template-areas: "ico n" "label label"; justify-content: center; align-items: center; column-gap: 6px; min-width: 92px;
  padding: 10px 12px; border: 0; border-radius: 12px; background: none; font: inherit; color: #555; cursor: pointer; transition: .15s; }
.kb-step .kb-ico { grid-area: ico; font-size: 18px; }
.kb-step b { grid-area: n; font-size: 22px; color: var(--blue); line-height: 1.1; }
.kb-step .kb-label { grid-area: label; font-size: 13px; font-weight: 600; white-space: nowrap; }
.kb-step em { position: absolute; top: 4px; right: 6px; font-style: normal; font-size: 11px; font-weight: 700; color: var(--danger); }
.kb-step:hover { background: rgba(255, 255, 255, .7); }
.kb-step.on { background: #fff; box-shadow: 0 2px 10px rgba(31, 38, 135, .1); color: var(--blue); }
.kb-step.zero b { color: #b9c2cf; }
.kb-step.late b, .kb-step.late { color: var(--danger); }
.kb-step.late.on { background: #fff5f5; }
.kb-arrow { align-self: center; flex: none; color: #b9c2cf; font-size: 20px; }
.kb-title { margin: 0 0 12px; font-size: 16px; }
.kb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.kb-card { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); cursor: pointer; transition: .15s; }
.kb-card:hover { border-color: var(--sky); box-shadow: 0 6px 16px rgba(53, 177, 218, .12); }
.kb-card.late { border-color: #f3b0b0; background: #fffafa; }
.kb-top { display: flex; gap: 10px; align-items: center; min-width: 0; }
.kb-top img, .kb-ext { width: 48px; height: 48px; flex: none; border-radius: 10px; object-fit: contain; background: var(--soft); }
.kb-ext { display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: var(--muted); }
.kb-top div { min-width: 0; }
.kb-top small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
.kb-meta { font-size: 13px; color: #555; }
.kb-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.kb-when { font-size: 13px; font-weight: 600; color: #666; }
.kb-empty { grid-column: 1 / -1; padding: 30px 0; }
@media (max-width: 768px) {
  .kb-steps { gap: 2px; padding: 4px; }
  .kb-arrow { display: none; }
  .kb-step { min-width: 72px; padding: 8px 6px; }
  .kb-step b { font-size: 18px; }
  .kb-step .kb-label { font-size: 12px; }
  .kb-grid { grid-template-columns: 1fr; }
}

/* ───── 대시보드 정리 ───── */
.todo-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.todo-head h2 { margin: 0; }
.todo-sum { display: flex; flex-wrap: wrap; gap: 6px; }
.todo-sum button { padding: 6px 12px; border: 0; border-radius: 999px; background: var(--soft); color: #555; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.todo-sum button b { margin-left: 2px; color: var(--blue); }
.todo-sum button:hover { background: #eff4ff; }
.dash-sys { margin-top: 24px; }
.dash-sys > .card { margin-top: 0 !important; }
/* 휴대폰: 미리보기 그림이 없는 신청은 빈 'STL' 상자를 숨김 */
@media (max-width: 768px) { .thumb-none { display: none; } }
@media (max-width: 768px) { .tool-drop .drop-panel { max-width: calc(100vw - 32px); } }
@media (max-width: 768px) { .oc-thumb.none { display: none; } }
.policy-section { margin: 30px 0 4px; padding: 10px 14px; border-radius: 12px; background: #eff4ff; color: var(--blue); font-size: 17px; }
.policy-section small { color: var(--muted); font-size: 13px; font-weight: 600; }
.policy p.note { margin-left: 1.4em; color: #555; font-size: 14px; }
