:root {
  --bg: #f1f5fc;
  --card: #ffffff;
  --blue: #2f7bff;
  --blue-d: #1c5fe0;
  --blue-s: #e7f0ff;
  --blue-ss: #f4f8ff;
  --ink: #17233d;
  --sub: #64748f;
  --mute: #94a1b8;
  --line: #e1e8f4;
  --ok: #17a673;
  --ok-s: #e2f6ee;
  --warn-s: #fff3d9;
  --bad: #e5484d;
  --bad-s: #ffe9ea;
  --s1: #2a78d6; /* 그래프 1번: 가입 */
  --s2: #eb6834; /* 그래프 2번: 첫 구매 */
  --r: 18px;
  --shadow: 0 1px 2px rgba(23, 35, 61, 0.04), 0 8px 24px rgba(47, 123, 255, 0.07);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Pretendard Variable', Pretendard, 'Malgun Gothic', -apple-system, sans-serif;
  color: var(--ink); background: var(--bg); min-height: 100vh; font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: not-allowed; opacity: 0.5; }
:focus-visible { outline: 3px solid rgba(47, 123, 255, 0.45); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
small { color: var(--mute); font-size: 12.5px; }

/* 공통 부품 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 15px; border-radius: 12px; font-weight: 700; font-size: 14px;
  background: #fff; border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; white-space: nowrap; transition: 0.12s;
}
.btn:hover:not(:disabled) { border-color: #b9cdf0; background: var(--blue-ss); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 4px 12px rgba(47, 123, 255, 0.28); }
.btn.primary:hover:not(:disabled) { background: var(--blue-d); border-color: var(--blue-d); }
.btn.ghost { border-color: transparent; background: var(--blue-ss); color: var(--blue-d); }
.btn.big { width: 100%; padding: 13px; font-size: 16px; border-radius: 14px; }
.btn.small { padding: 6px 11px; font-size: 13px; border-radius: 10px; }
.btn.off { pointer-events: none; opacity: 0.45; }
.link { color: var(--blue-d); font-weight: 600; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; margin-left: 10px; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--sub); flex: none; }
.icon-btn:hover { background: var(--blue-s); color: var(--blue-d); }
.grow { flex: 1; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.fine { color: var(--mute); font-size: 13px; margin: 6px 0 0; }
.note { color: var(--sub); font-size: 14px; background: var(--blue-ss); border-radius: 12px; padding: 11px 14px; margin: 12px 0; }
.note.warn { background: var(--warn-s); color: #7a5200; }
.err { color: var(--bad); font-size: 14px; font-weight: 600; margin: 10px 0 0; }
.bad-t { color: var(--bad); }
.loading { display: flex; align-items: center; gap: 10px; color: var(--sub); padding: 40px 10px; justify-content: center; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--blue-s); border-top-color: var(--blue); animation: spin 0.7s linear infinite; display: inline-block; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.boot { min-height: 100vh; display: grid; place-items: center; }

.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #eef1f6; color: #5b6880; white-space: nowrap; }
.chip.gray { background: #eef1f6; color: #5b6880; }
.chip.blue { background: var(--blue-s); color: var(--blue-d); }
.chip.sky { background: #e0f4ff; color: #0b6fa8; }
.chip.green { background: var(--ok-s); color: #0d7a53; }
.chip.violet { background: #eee9ff; color: #5a3fc4; }
.chip.amber { background: var(--warn-s); color: #8a5a00; }
.chip.pink { background: #ffe8f0; color: #c02a63; }
.chip.big { padding: 7px 14px; font-size: 14px; cursor: pointer; }
.chip.add { background: #fff; border: 1.5px dashed #b9cdf0; color: var(--blue-d); cursor: pointer; }
.chip-x { margin-left: 2px; font-size: 14px; line-height: 1; color: inherit; opacity: 0.6; }
.chip-x:hover { opacity: 1; }
.chips { display: inline-flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 7px; background: #9aa7bd; }
.dot.blue, .color.blue { background: #2f7bff; } .dot.green, .color.green { background: #17a673; } .dot.amber, .color.amber { background: #f0a020; }
.dot.pink, .color.pink { background: #e8528a; } .dot.violet, .color.violet { background: #7a5cf0; } .dot.gray, .color.gray { background: #9aa7bd; }

.field { display: block; margin: 12px 0; }
.field > span { display: block; font-size: 13.5px; font-weight: 700; color: var(--sub); margin-bottom: 5px; }
.field input, .inp, textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 13px; background: #fff; outline: none; transition: 0.12s;
}
.field input:focus, .inp:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 123, 255, 0.12); }
.field small { display: block; margin-top: 4px; }
.sel {
  appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748f' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 32px 8px 12px; font-weight: 600; font-size: 14px; max-width: 100%;
}
.num-in { display: inline-flex; align-items: center; gap: 6px; }
.num-in .inp { width: 110px; padding: 8px 11px; }
.num-in em { font-style: normal; color: var(--sub); font-size: 14px; }

.toasts { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 90; align-items: center; }
.toast { background: #17233d; color: #fff; padding: 11px 18px; border-radius: 14px; font-weight: 600; font-size: 14px; box-shadow: 0 10px 30px rgba(23, 35, 61, 0.25); animation: rise 0.2s; }
.toast.bad { background: var(--bad); }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } }

.veil { position: fixed; inset: 0; background: rgba(23, 35, 61, 0.38); display: grid; place-items: center; z-index: 60; padding: 16px; }
.modal { background: #fff; border-radius: 22px; padding: 22px; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 30px 80px rgba(23, 35, 61, 0.3); animation: rise 0.18s; }
.modal.wide { width: min(620px, 100%); }
.modal-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.modal-h h3 { font-size: 18px; letter-spacing: -0.02em; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

/* 들어오기 전 화면 */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(900px 420px at 80% -10%, #d5e6ff 0%, transparent 60%), var(--bg); }
.auth-card { background: #fff; border-radius: 26px; box-shadow: var(--shadow); padding: 30px; width: min(430px, 100%); }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.auth-brand b { display: block; font-size: 16px; } .auth-brand span { font-size: 12.5px; color: var(--sub); }
.logo { width: 40px; height: 40px; flex: none; }
.auth-card h1 { font-size: 23px; letter-spacing: -0.03em; }
.auth-sub { color: var(--sub); margin-top: 6px; font-size: 14.5px; }
.auth-card form { margin-top: 8px; }
.auth-card .btn.big { margin-top: 10px; }
.seg-tabs { display: flex; background: var(--bg); border-radius: 12px; padding: 4px; margin: 18px 0 6px; }
.seg-tabs button { flex: 1; padding: 8px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--sub); }
.seg-tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(23, 35, 61, 0.1); }

/* 틀 */
.shell { display: grid; grid-template-columns: 216px minmax(0, 1fr); min-height: 100vh; }
.side { background: #fff; border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.side-brand { display: flex; align-items: center; gap: 11px; padding: 0 6px 20px; }
.side-brand b { display: block; font-size: 16px; letter-spacing: -0.02em; } .side-brand span { font-size: 11.5px; color: var(--mute); letter-spacing: 0.08em; font-weight: 700; }
.nav { display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 12px; border-radius: 12px; font-weight: 700; color: var(--sub); margin-bottom: 4px; text-align: left; }
.nav:hover { background: var(--blue-ss); color: var(--blue-d); }
.nav.on { background: var(--blue-s); color: var(--blue-d); }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 12px 6px 0; border-top: 1px solid var(--line); }
.me { flex: 1; min-width: 0; } .me b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .me span { font-size: 12px; color: var(--mute); }
.main { padding: 26px 30px 80px; min-width: 0; }
.demo { background: var(--warn-s); color: #7a5200; border: 1.5px dashed #f0c56a; padding: 11px 16px; border-radius: 14px; font-size: 14px; margin-bottom: 18px; }
.demo b { color: #5f4000; } .demo .link { color: #5f4000; }

.page { max-width: 1240px; } .page.narrow { max-width: 860px; }
.page-h { margin-bottom: 20px; } .page-h h1, .list-h h1 { font-size: 25px; letter-spacing: -0.03em; } .page-h p, .list-h p { color: var(--sub); margin-top: 2px; }
.sec-t { font-size: 15px; color: var(--sub); font-weight: 700; margin-bottom: 10px; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 18px; }
.card-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.card-h h2 { font-size: 17px; letter-spacing: -0.02em; } .card-h p { color: var(--sub); font-size: 13.5px; margin-top: 2px; }
.err-card { color: var(--bad); font-weight: 600; }

/* 오늘: 챙길 고객 */
.todo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 20px; }
.todo { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 18px; text-align: left; border: 2px solid transparent; transition: 0.12s; display: block; }
.todo:hover { border-color: #b9cdf0; transform: translateY(-2px); }
.todo-top { display: flex; justify-content: space-between; gap: 8px; color: var(--blue-d); }
.todo-n { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.todo-v { font-size: 15px; color: var(--sub); margin-top: 6px; } .todo-v b { font-size: 34px; letter-spacing: -0.03em; color: var(--blue-d); margin-right: 2px; line-height: 1.15; }
.todo-s { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ok); font-weight: 600; margin-top: 2px; }
.todo-tip { font-size: 13px; color: var(--sub); margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.todo.zero .todo-v b { color: var(--mute); } .todo.zero .todo-s { color: var(--mute); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tile { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 15px 17px; }
.tile-l { font-size: 13px; font-weight: 700; color: var(--sub); }
.tile-v { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.25; margin-top: 2px; } .tile-v small { font-size: 14px; font-weight: 700; color: var(--sub); margin-left: 2px; }
.tile-s { font-size: 12.5px; color: var(--mute); margin-top: 2px; }
.delta.up { color: var(--ok); font-weight: 600; } .delta.down { color: var(--bad); font-weight: 600; }

.two { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--sub); font-weight: 600; margin-bottom: 4px; }
.legend i, .tip i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 6px; }
.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .grid { stroke: #e9eef7; stroke-width: 1; } .chart .axis { fill: var(--mute); font-size: 11.5px; }
.tip { position: absolute; top: 4px; transform: translateX(-50%); background: #17233d; color: #fff; border-radius: 12px; padding: 9px 12px; font-size: 12.5px; pointer-events: none; white-space: nowrap; display: grid; gap: 2px; z-index: 2; }
.tip b { font-size: 12px; opacity: 0.75; font-weight: 600; } .tip em { font-style: normal; font-weight: 700; margin-left: 4px; }
.stage-list { display: grid; gap: 6px; }
.stage { display: grid; grid-template-columns: 82px 1fr auto; gap: 12px; align-items: center; padding: 9px 8px; border-radius: 12px; text-align: left; }
.stage:hover { background: var(--blue-ss); }
.stage-n { font-weight: 700; font-size: 14px; }
.stage-bar { height: 14px; background: #f0f4fb; border-radius: 4px; overflow: hidden; } .stage-bar i { display: block; height: 100%; background: var(--s1); border-radius: 0 4px 4px 0; }
.stage-v { font-size: 13px; color: var(--sub); min-width: 86px; text-align: right; } .stage-v b { color: var(--ink); font-size: 15px; }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid #f0f4fb; font-size: 14px; } .feed li:first-child { border-top: 0; }
.feed time { margin-left: auto; color: var(--mute); font-size: 12.5px; white-space: nowrap; }
.feed-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--s1); flex: none; } .feed-dot.order { background: var(--s2); }
.name-link { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: #c5d3ea; text-underline-offset: 3px; }
.name-link:hover { color: var(--blue-d); }
.feed .empty { color: var(--mute); }

.table-wrap { overflow-x: auto; }
.table-wrap.dim { opacity: 0.55; }
table.mini { border-collapse: collapse; font-size: 13.5px; width: 100%; }
table.mini th { text-align: left; color: var(--sub); font-size: 12.5px; padding: 6px 10px; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
table.mini td { padding: 8px 10px; border-bottom: 1px solid #f0f4fb; }
.r { text-align: right; }

/* 고객 화면 */
.cust { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 20px; align-items: start; max-width: 1480px; }
.segs { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 12px 10px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
.seg-g { padding: 4px 0 8px; } .seg-g + .seg-g { border-top: 1px solid #f0f4fb; padding-top: 10px; }
.seg-t { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--mute); padding: 2px 10px 6px; }
.mini-btn { display: inline-flex; align-items: center; gap: 2px; color: var(--blue-d); font-weight: 700; font-size: 12px; padding: 2px 6px; border-radius: 7px; } .mini-btn:hover { background: var(--blue-s); }
.seg-row { display: flex; align-items: center; border-radius: 10px; } .seg-row:hover { background: var(--blue-ss); } .seg-row.on { background: var(--blue-s); }
.seg-btn { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; text-align: left; font-weight: 600; font-size: 14px; min-width: 0; }
.seg-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .seg-btn em { font-style: normal; color: var(--mute); font-size: 12.5px; font-weight: 700; }
.seg-row.on .seg-btn { color: var(--blue-d); } .seg-row.on .seg-btn em { color: var(--blue-d); }
.x-btn { width: 24px; height: 24px; border-radius: 7px; color: var(--mute); display: none; place-items: center; margin-right: 4px; flex: none; } .seg-row:hover .x-btn { display: grid; } .x-btn:hover { background: var(--bad-s); color: var(--bad); }
.seg-empty { font-size: 12.5px; color: var(--mute); padding: 0 10px 4px; }
.seg-select { display: none; }

.list-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.list-n { text-align: right; color: var(--sub); } .list-n b { font-size: 28px; color: var(--ink); letter-spacing: -0.03em; margin-right: 2px; }
.list-n span { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ok); font-weight: 600; justify-content: flex-end; }
.tipbar { background: var(--blue-s); color: var(--blue-d); border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 12px; color: var(--mute); min-width: 250px; flex: 0 1 300px; }
.search input { border: 0; outline: 0; padding: 9px 0; width: 100%; background: transparent; color: var(--ink); }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 123, 255, 0.12); }
.toggle { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; color: var(--sub); }
.toggle.on { background: var(--ok-s); border-color: #9fdcc4; color: #0d7a53; }

table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); font-size: 14px; overflow: hidden; }
table.tbl th { text-align: left; font-size: 12.5px; color: var(--sub); padding: 11px 12px; border-bottom: 1.5px solid var(--line); white-space: nowrap; background: #fafcff; }
table.tbl td { padding: 11px 12px; border-bottom: 1px solid #f0f4fb; vertical-align: middle; white-space: nowrap; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tbody tr { cursor: pointer; } table.tbl tbody tr:hover { background: var(--blue-ss); } table.tbl tbody tr.sel { background: var(--blue-s); }
table.tbl th.r, table.tbl td.r { text-align: right; }
.ck { width: 36px; } .ck input { width: 17px; height: 17px; accent-color: var(--blue); cursor: pointer; }
.who { display: flex; flex-direction: column; gap: 3px; } .who b { font-size: 14.5px; }
.phone { color: var(--sub); } .sms { margin-left: 6px; color: #cfd8e6; vertical-align: -3px; display: inline-block; } .sms.on { color: var(--ok); }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 14px; color: var(--sub); font-size: 14px; }
.empty-box { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 46px 20px; text-align: center; display: grid; gap: 4px; color: var(--sub); } .empty-box b { color: var(--ink); font-size: 16px; }

/* 한 사람 보기 */
.drawer-veil { position: fixed; inset: 0; background: rgba(23, 35, 61, 0.28); z-index: 50; }
.drawer { position: absolute; right: 0; top: 0; bottom: 0; width: min(460px, 100%); background: #fff; padding: 26px 24px 60px; overflow: auto; box-shadow: -20px 0 60px rgba(23, 35, 61, 0.18); animation: slide 0.2s; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.drawer-x { position: absolute; right: 14px; top: 14px; }
.drawer h3 { font-size: 13px; color: var(--sub); margin: 24px 0 8px; font-weight: 700; }
.d-head { display: flex; gap: 14px; align-items: center; padding-right: 40px; } .d-head h2 { font-size: 21px; letter-spacing: -0.02em; margin-bottom: 4px; }
.avatar { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; font-weight: 800; font-size: 21px; background: #eef1f6; color: #5b6880; flex: none; }
.avatar.first { background: var(--blue-s); color: var(--blue-d); } .avatar.repeat { background: var(--ok-s); color: #0d7a53; } .avatar.vip { background: #eee9ff; color: #5a3fc4; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 18px; }
.facts div { background: var(--blue-ss); border-radius: 13px; padding: 10px 13px; } .facts span { display: block; font-size: 12px; color: var(--sub); font-weight: 600; } .facts b { font-size: 16px; }
dl.info { display: grid; grid-template-columns: 110px 1fr; gap: 7px 10px; margin: 0 0 10px; font-size: 14px; } dl.info dt { color: var(--sub); } dl.info dd { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tag-pick { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; } .tag-pick .chip { cursor: pointer; }
.orders { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.orders li { border: 1.5px solid var(--line); border-radius: 13px; padding: 10px 13px; }
.o-top { display: flex; gap: 10px; align-items: center; } .o-top span { margin-left: auto; font-weight: 700; } .o-item { color: var(--sub); font-size: 13.5px; margin-top: 3px; }
.note-in { display: grid; gap: 6px; justify-items: end; } .note-in textarea { resize: vertical; }
.notes { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; } .notes li { background: #fffbea; border-radius: 12px; padding: 10px 13px; } .notes p { white-space: pre-wrap; font-size: 14px; }

/* 분류 만들기·내려받기 */
.rule-match { display: flex; align-items: center; gap: 8px; margin: 12px 0; color: var(--sub); font-weight: 600; flex-wrap: wrap; }
.rule-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; background: var(--blue-ss); padding: 8px; border-radius: 13px; }
.colors { display: flex; gap: 10px; margin: 6px 0 4px; } .color { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line); } .color.on { box-shadow: 0 0 0 2.5px var(--ink); }
.pick { display: grid; gap: 2px; width: 100%; text-align: left; border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 15px; margin-top: 8px; position: relative; }
.pick:hover:not(:disabled) { border-color: var(--blue); background: var(--blue-ss); } .pick b em { font-style: normal; color: var(--blue-d); margin-left: 4px; } .pick span { color: var(--sub); font-size: 13.5px; }
.pick .spin { position: absolute; right: 14px; top: 16px; }

/* 설정 */
.copy { display: flex; align-items: center; gap: 8px; background: var(--blue-ss); border-radius: 12px; padding: 8px 10px; margin: 8px 0; }
.copy span { font-size: 12.5px; font-weight: 700; color: var(--sub); white-space: nowrap; } .copy code { flex: 1; font-size: 12.5px; overflow: auto; white-space: nowrap; font-family: ui-monospace, Consolas, monospace; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; display: grid; gap: 4px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-s); color: var(--blue-d); font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.steps li.done::before { content: '✓'; background: var(--ok-s); color: var(--ok); }
.steps li > span { color: var(--sub); font-size: 14px; } .steps .btn { justify-self: start; margin-top: 4px; }
.more { margin-top: 14px; } .more summary { cursor: pointer; color: var(--sub); font-size: 13.5px; font-weight: 600; }
.prod { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid #f0f4fb; flex-wrap: wrap; } .prod b { flex: 1; min-width: 180px; }
.pw { max-width: 360px; }

/* 좁은 화면(태블릿·폰) */
@media (max-width: 1100px) {
  .two { grid-template-columns: 1fr; }
  .cust { grid-template-columns: 1fr; }
  .segs { display: none; }
  .seg-select { display: block; margin-bottom: 8px; border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 12px; font-weight: 700; background: #fff; max-width: 100%; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; bottom: 0; top: auto; left: 0; right: 0; height: auto; flex-direction: row; align-items: center; padding: 6px 10px; border-right: 0; border-top: 1px solid var(--line); z-index: 40; }
  .side-brand, .me { display: none; }
  .side nav { display: flex; flex: 1; justify-content: space-around; }
  .nav { flex-direction: column; gap: 2px; font-size: 11.5px; padding: 6px 14px; margin: 0; width: auto; }
  .side-foot { margin: 0; border: 0; padding: 0; }
  .main { padding: 16px 14px 96px; }
  .page-h h1, .list-h h1 { font-size: 22px; }
  .search { flex: 1 1 100%; min-width: 0; }
  .list-n { text-align: left; } .list-n span { justify-content: flex-start; }
  table.tbl, table.tbl tbody, table.tbl tr, table.tbl td { display: block; }
  table.tbl { background: transparent; box-shadow: none; }
  table.tbl thead { display: none; }
  table.tbl tbody tr { background: #fff; border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 10px; padding: 12px 14px 10px 44px; position: relative; }
  table.tbl td { border: 0; padding: 2px 0; white-space: normal; text-align: left !important; }
  table.tbl td[data-l]:not([data-l='고객'])::before { content: attr(data-l); display: inline-block; width: 82px; color: var(--mute); font-size: 12.5px; }
  table.tbl td.ck { position: absolute; left: 12px; top: 12px; width: auto; }
  .drawer { padding: 22px 16px 90px; }
  .toasts { bottom: 84px; }
}
