/* ODDNU 운영 도구(admin). 디자인 캔버스 'ODDNU 관리자 ERP'를 옮겼다. 색과 서체는 brand/tokens 를 따른다. */
:root {
    --cream: #F3EBDD;
    --morning: #AEC4D0;
    --navy: #24364A;
    --coral: #CB7769;
    --paper: #FBF8F2;
    --stone: #6B655C;
    --stone-dark: #5E584F;
    --hearth: #A44E40;
    --sky: #4F6B7C;
    --line: #E2D6C2;
    --card-line: #ECE4D6;
    --row-line: #F0E9DC;
    --info-bg: #E4EDF2;
    --info: #3E5A6B;
    --warn-bg: #F8E7E2;
    --warn: #9A4436;
    --warn-strong: #7E3328;
    --font-display: "Gowun Batang", serif;
    --font-body: "Pretendard Variable", Pretendard, -apple-system, "Noto Sans KR", system-ui, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
    margin: 0;
    background: var(--paper);
    color: var(--navy);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    word-break: keep-all;
    overflow-wrap: anywhere;
    -webkit-text-size-adjust: 100%;
}
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--sky); }
a:hover { color: var(--navy); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
h1:focus, h2:focus { outline: none; }
.mono { font-family: var(--font-mono); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--stone); }
.muted-dark { color: var(--stone-dark); }
.small { font-size: 12px; }
.strong { font-weight: 700; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, 8px); }
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }
.grow { flex: 1 1 auto; min-width: 0; }

/* ---- 틀: 왼쪽 메뉴 + 본문. 좁은 화면에서는 메뉴가 위로 쌓인다. ---- */
.shell { min-height: 100vh; display: flex; flex-wrap: wrap; }
.side {
    flex: 1 1 248px;
    padding: 22px 12px 28px;
    background: var(--navy);
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.side__brand { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; text-decoration: none; }
.side__brand img { width: 100px; height: auto; display: block; }
.side__tag {
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(243, 235, 221, .34);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--cream);
}
.side__groups { display: flex; flex-direction: column; gap: 18px; }
.side__group { display: flex; flex-wrap: wrap; gap: 2px; }
.side__label {
    flex: 1 1 100%;
    margin: 0 0 4px;
    padding: 0 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    color: rgba(243, 235, 221, .64);
}
.side__link {
    flex: 1 1 168px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(243, 235, 221, .86);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}
.side__link:hover { color: var(--paper); background: rgba(243, 235, 221, .08); }
.side__link.active { background: var(--cream); color: var(--navy); font-weight: 700; }
.side__link.active .icon { color: var(--hearth); }
.side__badge {
    margin-left: auto;
    min-width: 24px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(243, 235, 221, .16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--cream);
}
.side__link.active .side__badge { background: var(--navy); color: var(--cream); }

.main { flex: 999 1 560px; min-width: 0; padding: 0 clamp(16px, 3vw, 40px) 64px; }
.main__inner { max-width: 1320px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }

.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 20px; }
.search { position: relative; flex: 1 1 320px; max-width: 560px; margin: 0; }
.search > .icon { position: absolute; left: 14px; top: 13px; color: var(--stone); pointer-events: none; }
.search input {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 104px 0 42px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #FFFFFF;
    font-size: 14px;
}
.search__hint {
    position: absolute;
    right: 8px;
    top: 8px;
    height: 28px;
    padding: 0 9px;
    border-radius: 8px;
    background: var(--cream);
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--stone-dark);
    pointer-events: none;
}
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 8px; position: relative; }
.account {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 4px 12px 4px 4px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #FFFFFF;
    color: var(--navy);
    cursor: pointer;
    text-align: left;
}
.account__text { display: flex; flex-direction: column; line-height: 1.3; }
.account__email { font-size: 13px; font-weight: 600; }
.account__role { font-size: 12px; color: var(--stone); }
.avatar {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--hearth);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}
.avatar--sky { background: var(--sky); }
.avatar--navy { background: var(--navy); }
.avatar--stone { background: var(--stone); }
.avatar--cream { background: var(--cream); color: var(--navy); box-shadow: inset 0 0 0 1px var(--line); }
.avatar--dashed { background: transparent; color: var(--stone); border: 1.5px dashed #C9BBA4; }
.menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 20;
    min-width: 220px;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid var(--card-line);
    background: #FFFFFF;
    box-shadow: 0 12px 32px rgba(36, 54, 74, .14);
    display: flex;
    flex-direction: column;
}
.menu__item {
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--navy);
    text-decoration: none;
    cursor: pointer;
    text-align: left;
}
.menu__item:hover { background: var(--paper); }
.menu__note { padding: 8px 12px; font-size: 12px; color: var(--stone); }

/* ---- 제목 ---- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-head__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.title { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.title--mono { font-family: var(--font-mono); font-size: 32px; font-weight: 600; letter-spacing: .02em; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .16em; color: var(--hearth); }
.subtitle { font-size: 14px; color: var(--stone-dark); }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--stone); }
.crumbs a { text-decoration: none; }
.section-title { font-size: 16px; font-weight: 700; }
.serif-title { font-family: var(--font-display); font-size: 19px; font-weight: 700; }

/* ---- 단추 ---- */
.btn {
    height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}
.btn[disabled], .btn.is-disabled { opacity: .4; cursor: default; pointer-events: none; }
.btn--primary { background: var(--navy); color: var(--paper); }
.btn--primary:hover { color: var(--paper); background: #1B2A3A; }
.btn--secondary { background: #FFFFFF; border: 1px solid var(--line); color: var(--navy); }
.btn--secondary:hover { color: var(--navy); background: var(--paper); }
.btn--soft { background: var(--paper); border: 1px solid var(--line); color: var(--navy); }
.btn--cream { background: var(--cream); color: var(--navy); }
.btn--cream:hover { color: var(--navy); }
.btn--danger { background: var(--hearth); color: #FFFFFF; }
.btn--danger:hover { color: #FFFFFF; background: #8E4135; }
.btn--danger-outline { background: #FFFFFF; border: 1px solid #E2C2B9; color: var(--warn-strong); }
.btn--ghost { background: transparent; color: var(--sky); padding: 0 12px; }
.btn--ghost-light { background: transparent; border: 1px solid rgba(243, 235, 221, .32); color: var(--cream); }
.btn--link-danger { background: transparent; color: var(--hearth); padding: 0 12px; }
.btn--lg { height: 52px; border-radius: 14px; font-size: 15px; font-weight: 700; }
.btn--block { width: 100%; }
.icon-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    cursor: pointer;
    flex: none;
}
.icon-btn--plain { border: 0; background: transparent; }
.dot {
    position: absolute;
    top: 9px;
    right: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hearth);
    box-shadow: 0 0 0 2px #FFFFFF;
}

/* ---- 카드 ---- */
.card { padding: 22px; border-radius: 16px; border: 1px solid var(--card-line); background: #FFFFFF; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card--flush { padding: 0; gap: 0; }
.card--soft { background: var(--cream); border-color: transparent; }
.card--navy { background: var(--navy); border-color: transparent; color: var(--cream); }
.card--warn { background: var(--warn-bg); border-color: transparent; }
.card--accent { border: 1.5px solid var(--navy); }
.card--danger { border: 1.5px solid #E2C2B9; }
.card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.card__pad { padding: 18px 22px 12px; }
.grid { display: grid; gap: var(--gap, 16px); grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 320px), 100%), 1fr)); align-items: start; }
.split { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; }
.split__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.split__side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
/* 요약 카드가 화면을 따라 내려오게 옆 칸을 본문 높이만큼 늘린다(만들기 화면). */
.split__side:has(> .summary) { align-self: stretch; }
.split__list { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }

/* ---- 표 ---- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.table th { padding: 12px 12px; text-align: left; font-size: 12px; font-weight: 600; color: var(--stone); white-space: nowrap; }
.table thead tr { background: var(--paper); }
.table td { padding: 14px 12px; vertical-align: middle; }
.table tbody tr { border-top: 1px solid var(--row-line); }
.table th:first-child, .table td:first-child { padding-left: 20px; }
.table th:last-child, .table td:last-child { padding-right: 20px; }
.table .right { text-align: right; }
.table .center { text-align: center; }
.table--plain thead tr { background: transparent; }
.table--plain th:first-child, .table--plain td:first-child { padding-left: 0; }
.table--plain th:last-child, .table--plain td:last-child { padding-right: 0; }
.table tr.selected { background: #FFFBF3; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover { background: #FFFCF7; }
.cell-stack { display: flex; flex-direction: column; }
.cell-stack a { text-decoration: none; color: var(--navy); }
.cell-sub { font-size: 12px; color: var(--stone); }
.empty { padding: 28px 20px; text-align: center; color: var(--stone); }

/* ---- 칩 ---- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip--info { background: var(--info-bg); color: var(--info); }
.chip--wait { background: var(--cream); color: var(--stone-dark); }
.chip--warn { background: var(--warn-bg); color: var(--warn); }
.chip--navy { background: var(--navy); color: var(--paper); }
.chip--outline { border: 1px solid var(--line); color: var(--stone-dark); }
.chip--dashed { border: 1px dashed #C9BBA4; color: var(--stone-dark); }
.chip--danger { background: var(--hearth); color: #FFFFFF; }
.chip--lg { padding: 4px 12px 4px 8px; font-size: 13px; font-weight: 700; }

/* ---- 진행 막대 ---- */
.bar { display: block; flex: none; height: 6px; border-radius: 3px; background: var(--cream); overflow: hidden; min-width: 40px; }
/* 가로 줄 안에서는 남은 폭을 채운다. 세로로 쌓인 곳에서는 늘리지 않는다(flex: 1 이면 높이가 0이 된다). */
.row > .bar, .feed__bar > .bar { flex: 1 1 auto; }
.bar > span { display: block; height: 100%; border-radius: 3px; background: var(--navy); }
.bar--done > span { background: var(--stone); }
.bar--coral > span { background: var(--coral); }
.bar--thin { height: 4px; }
.stacked { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--line); }
.stacked span { display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--stone-dark); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ---- 입력 ---- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.label { font-size: 13px; font-weight: 600; }
.label__sub { font-size: 12px; font-weight: 500; color: var(--stone); }
.input, .select, .textarea {
    height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #FFFFFF;
    font-size: 14px;
    color: var(--navy);
    width: 100%;
    min-width: 0;
}
.textarea { height: auto; padding: 12px; line-height: 1.6; resize: vertical; }
.input--mono { font-family: var(--font-mono); font-size: 15px; }
.input--num { text-align: right; width: 84px; font-size: 15px; }
.input--center { text-align: center; font-weight: 700; }
.input--warn { border: 1.5px solid var(--coral); }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--navy); flex: none; }
.radio-card {
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1.5px solid var(--line);
    background: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}
.radio-card.on { border-color: var(--navy); }
.radio-card input { margin: 0; accent-color: var(--navy); flex: none; }
.radio-card__text { display: flex; flex-direction: column; gap: 2px; }
.radio-card__title { font-weight: 700; }
.radio-card__sub { font-size: 12px; color: var(--stone); }
.form-error { padding: 10px 12px; border-radius: 10px; background: var(--warn-bg); font-size: 13px; font-weight: 600; color: var(--warn-strong); }
.form-note { font-size: 13px; color: var(--stone); line-height: 1.6; }
.notice { padding: 14px 18px; border-radius: 14px; background: var(--navy); display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--paper); }
.notice--soft { background: var(--info-bg); color: var(--info); }
.hint-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--stone); }

.segmented { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: var(--cream); }
.segmented__btn {
    height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    border: 0;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: var(--stone-dark);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.segmented__btn.on { background: #FFFFFF; box-shadow: 0 1px 2px rgba(36, 54, 74, .08); font-weight: 700; color: var(--navy); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #FFFFFF; font-size: 13px; font-weight: 500; cursor: pointer; }
.pill.on { background: var(--navy); border-color: var(--navy); color: var(--paper); font-weight: 600; }
.stepper { display: flex; align-items: center; gap: 6px; }

/* ---- 할 일·숫자 카드 ---- */
.todo { padding: 18px 20px; border-radius: 16px; border: 1px solid var(--card-line); background: #FFFFFF; color: var(--navy); text-decoration: none; display: flex; flex-direction: column; gap: 8px; }
.todo:hover { color: var(--navy); border-color: var(--line); box-shadow: 0 6px 18px rgba(36, 54, 74, .06); }
.todo__label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--stone); }
.todo__label .icon { color: var(--hearth); }
.todo__label .chip { margin-left: auto; }
.todo__value { display: flex; align-items: baseline; gap: 4px; }
.todo__number { font-size: 32px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.todo__unit { font-size: 14px; color: var(--stone); }
.todo__detail { font-size: 13px; color: var(--stone); }
.todo__link { margin-top: 4px; display: flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; color: var(--sky); }
.stat { padding: 18px 20px; border-radius: 16px; border: 1px solid var(--card-line); background: #FFFFFF; display: flex; flex-direction: column; gap: 6px; color: var(--navy); text-decoration: none; }
.stat--navy { background: var(--navy); border-color: transparent; color: var(--paper); }
.stat__label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--stone-dark); }
.stat--navy .stat__label { color: rgba(243, 235, 221, .8); }
.stat__number { font-size: 28px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat__unit { font-size: 14px; font-weight: 500; color: var(--stone); }
.stat--navy .stat__unit { color: rgba(243, 235, 221, .8); }
.stat__note { font-size: 12px; color: var(--stone); }

/* 집으로 가는 길 */
.road { padding: 22px 24px 26px; border-radius: 20px; background: var(--cream); display: flex; flex-direction: column; gap: 20px; }
.road__scroll { overflow-x: auto; }
.road__steps { position: relative; min-width: 720px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.road__line { position: absolute; left: 10%; right: 10%; top: 16px; height: 4px; border-radius: 2px; background: var(--coral); }
.road__step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.road__node { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--coral); background: var(--paper); display: flex; align-items: center; justify-content: center; color: var(--hearth); }
.road__node--home { border: 0; background: var(--cream); }
.road__label { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--stone-dark); }
.road__label--home { color: var(--hearth); }
.road__number { font-size: 26px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.road__number small { font-size: 13px; font-weight: 500; color: var(--stone); }
.road__note { font-size: 12px; color: var(--stone-dark); }

/* 진행 단계 */
.steps { position: relative; min-width: 640px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.steps__done { position: absolute; left: 10%; top: 13px; height: 3px; border-radius: 2px; background: var(--coral); }
.steps__todo { position: absolute; right: 10%; top: 13px; height: 0; border-top: 3px dashed #D9CBB3; }
.steps__step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.steps__node { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #D9CBB3; background: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--hearth); }
.steps__node--done { border: 0; background: var(--coral); color: #FFFFFF; }
.steps__node--current { border-color: var(--navy); }
.steps__node--current::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--navy); }
.steps__node--partial { border-color: var(--coral); }
.steps__label { margin-top: 6px; font-size: 13px; font-weight: 600; }
.steps__label--todo { color: var(--stone); }
.steps__note { font-size: 12px; color: var(--stone); }

/* 세로 이력 */
.timeline { position: relative; display: flex; flex-direction: column; gap: 22px; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 3px; border-radius: 2px; background: var(--coral); }
.timeline__item { position: relative; display: flex; gap: 14px; }
.timeline__node { flex: none; width: 29px; height: 29px; border-radius: 50%; border: 3px solid var(--coral); background: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.timeline__node--home { border: 0; }
.timeline__node--muted { border-color: #D9CBB3; }
.timeline__text { display: flex; flex-direction: column; gap: 2px; }
.timeline__title { font-weight: 600; }
.timeline__title--home { color: var(--hearth); }
.timeline__note { font-size: 13px; color: var(--stone); }

/* 사이즈 표·수량 */
.matrix td, .matrix th { padding: 10px 8px; }
.matrix th:first-child, .matrix td:first-child { padding-left: 0; }
.matrix th:last-child, .matrix td:last-child { padding-right: 0; }
.matrix tbody tr { border-top: 1px solid var(--row-line); }
.matrix tfoot tr { border-top: 1.5px solid var(--line); }
.swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; flex: none; box-shadow: inset 0 0 0 1px rgba(36, 54, 74, .12); }
.swatch--lg { width: 18px; height: 40px; border-radius: 6px; }
.color-name { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.cell-qty { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.stock-cell { padding: 12px 14px; border-radius: 12px; background: var(--paper); }
.stock-cell--low { background: var(--warn-bg); box-shadow: inset 0 0 0 1.5px var(--coral); }
.low { background: var(--warn-bg); }
.low strong { color: var(--warn); }

/* 메시지 */
.bubble { max-width: 88%; display: flex; flex-direction: column; gap: 4px; }
.bubble p { padding: 10px 14px; border-radius: 4px 14px 14px 14px; background: var(--cream); font-size: 14px; white-space: pre-line; }
.bubble--mine { align-self: flex-end; align-items: flex-end; }
.bubble--mine p { border-radius: 14px 4px 14px 14px; background: var(--navy); color: var(--paper); }
.bubble span { font-size: 12px; color: var(--stone); }

/* QR 찾기 */
.finder-bar { padding: 20px 22px; border-radius: 16px; background: var(--navy); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.finder-bar h2 { flex: 1 1 200px; font-size: 16px; font-weight: 700; color: var(--paper); }
.finder-bar h2 span { display: block; font-size: 13px; font-weight: 400; color: rgba(243, 235, 221, .76); }
.finder-bar form { flex: 3 1 420px; margin: 0; display: flex; gap: 8px; }
.finder-bar input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border-radius: 14px; border: 0; background: var(--paper); font-family: var(--font-mono); font-size: 17px; letter-spacing: .04em; }

/* 라벨 미리보기 */
.label-art {
    position: relative;
    width: 232px;
    padding: 24px 22px 20px;
    border-radius: 8px;
    background: #F7F1E6;
    box-shadow: 0 10px 28px rgba(36, 54, 74, .14);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.label-art::before { content: ""; position: absolute; inset: 7px; border: 1.5px dashed rgba(36, 54, 74, .3); border-radius: 5px; pointer-events: none; }
.label-art__title { font-size: 15px; font-weight: 700; }
.label-art__scan { font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.label-art img { width: 54px; height: auto; }
.label-art .label-art__qr { width: 150px; height: 150px; display: block; }

/* 출고 스캔 */
.scan-panel { padding: 24px; border-radius: 20px; background: var(--navy); display: flex; flex-direction: column; gap: 14px; }
.scan-panel h2 { font-size: 17px; font-weight: 700; color: var(--paper); }
.scan-panel form { margin: 0; display: flex; gap: 8px; }
.scan-input { position: relative; flex: 1; min-width: 0; display: flex; }
.scan-input .icon { position: absolute; left: 18px; top: 19px; color: var(--stone); pointer-events: none; }
.scan-input input { flex: 1; min-width: 0; height: 60px; padding: 0 16px 0 52px; border-radius: 16px; border: 0; background: var(--paper); font-family: var(--font-mono); font-size: 19px; letter-spacing: .04em; }
.scan-panel .btn { height: 60px; border-radius: 16px; padding: 0 24px; font-size: 16px; font-weight: 700; }
.scan-note { font-size: 13px; color: rgba(243, 235, 221, .8); }
.scan-note .mono { color: var(--paper); }
.camera { position: relative; height: 300px; border-radius: 24px; background: #1B2A3A; overflow: hidden; }
.camera video { width: 100%; height: 100%; object-fit: cover; display: block; }
.camera__frame { position: absolute; left: 50%; top: 50%; width: 220px; height: 220px; transform: translate(-50%, -50%); }
.camera__frame i { position: absolute; width: 34px; height: 34px; border: 4px solid var(--cream); }
.camera__frame i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.camera__frame i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 12px 0 0; }
.camera__frame i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 12px; }
.camera__frame i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }
.camera__line { position: absolute; left: 14px; right: 14px; top: 20px; height: 3px; border-radius: 2px; background: var(--coral); box-shadow: 0 0 12px rgba(203, 119, 105, .8); animation: scanline 2.6s ease-in-out infinite; }
.camera__hint { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-size: 13px; font-weight: 500; color: rgba(243, 235, 221, .86); }
@keyframes scanline { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(176px); } }
.item-row { padding: 14px 0; border-top: 1px solid var(--row-line); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.item-thumb { flex: none; width: 40px; height: 40px; border-radius: 10px; }
.scanned { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--navy); font-size: 13px; font-weight: 600; color: var(--paper); }
.waiting { display: inline-flex; padding: 6px 12px; border-radius: 999px; border: 1.5px dashed #D9CBB3; font-size: 13px; font-weight: 600; color: var(--stone); }
.alert { padding: 20px 22px; border-radius: 16px; border: 1.5px solid var(--coral); background: var(--warn-bg); display: flex; flex-direction: column; gap: 14px; }
.queue-item { padding: 12px; border-radius: 12px; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.queue-item.on { background: var(--cream); }
.queue-num { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #D9CBB3; color: var(--stone); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none; }
.queue-item.on .queue-num { border: 0; background: var(--navy); color: var(--paper); }
.queue-item.done .queue-num { border: 0; background: var(--coral); color: #FFFFFF; }

/* 목록 카드(교환·반품·상품) */
.list-card { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--card-line); background: #FFFFFF; color: var(--navy); display: flex; flex-direction: column; gap: 6px; text-decoration: none; text-align: left; cursor: pointer; width: 100%; }
.list-card.on { border: 1.5px solid var(--navy); }
.list-card:hover { color: var(--navy); }

/* 권한 표 */
.roles-table th, .roles-table td { padding: 12px 10px; text-align: center; }
.roles-table th:first-child, .roles-table td:first-child { text-align: left; padding-left: 20px; }
.roles-table .owner-col { background: #F7F3EC; }
.roles-table thead .owner-col { background: var(--navy); color: var(--paper); border-radius: 14px 14px 0 0; }
.roles-table .group-row th { padding: 10px 20px; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--hearth); background: var(--paper); }
.roles-table .dash { color: #9C907E; }
.roles-table .privacy-row { background: var(--warn-bg); border-top: 1.5px solid var(--line); }

/* 대화상자 */
.dialog-back { position: fixed; inset: 0; z-index: 40; background: rgba(36, 54, 74, .42); display: flex; align-items: center; justify-content: center; padding: 16px; }
.dialog { width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; padding: 24px; border-radius: 20px; background: #FFFFFF; box-shadow: 0 20px 48px rgba(36, 54, 74, .24); display: flex; flex-direction: column; gap: 16px; }
.dialog h2 { font-size: 18px; font-weight: 700; }

/* 로그인 */
.login { min-height: 100vh; display: flex; flex-wrap: wrap; background: var(--paper); }
.login__art { flex: 1 1 480px; min-height: 360px; padding: 48px 32px; background: var(--navy); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px; }
.login__art svg { width: 240px; height: auto; overflow: visible; }
.login__tagline { font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1.5; text-align: center; color: var(--cream); }
.login__main { flex: 1 1 480px; padding: 48px 24px; display: flex; align-items: center; justify-content: center; }
.login__card { width: 100%; max-width: 380px; display: flex; flex-direction: column; }
.login__card img { width: 132px; height: auto; display: block; }
.login__card h1 { margin-top: 36px; }
.login__card p.lead { margin-top: 8px; font-size: 15px; color: var(--stone); }
.google-button { margin-top: 32px; height: 56px; border-radius: 16px; border: 1.5px solid var(--line); background: #FFFFFF; color: var(--navy); display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 16px; font-weight: 600; cursor: pointer; }
.login__note { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.6; color: var(--stone); }
.symbol-road { fill: none; stroke: var(--coral); stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; animation: draw 1.3s cubic-bezier(.65, 0, .35, 1) .2s backwards; }
.symbol-house { fill: var(--coral); transform-box: fill-box; transform-origin: 50% 100%; animation: house .55s cubic-bezier(.34, 1.56, .64, 1) 1.25s backwards; }
.symbol-glow { fill: var(--cream); fill-opacity: .14; animation: fade .8s ease 1.6s backwards; }
@keyframes draw { from { stroke-dashoffset: 100; } }
@keyframes house { from { opacity: 0; transform: translateY(4px) scale(.8); } }
@keyframes fade { from { opacity: 0; } }

/* 휴대폰 화면(생산처 진행 알리기) */
.phone { max-width: 480px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); }
.phone__top { height: 56px; flex: none; display: flex; align-items: center; gap: 4px; padding: 0 12px 0 4px; }
.phone__top img { width: 76px; height: auto; }
.phone__body { padding: 6px 16px 0; display: flex; flex-direction: column; gap: 16px; }
.phone__actions { margin-top: auto; padding: 16px 16px 20px; display: flex; flex-direction: column; gap: 4px; }
.stage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stage-btn { height: 52px; border-radius: 14px; border: 1.5px solid var(--line); background: #FFFFFF; font-size: 15px; font-weight: 600; color: var(--navy); cursor: pointer; }
.stage-btn.on { background: var(--navy); border-color: var(--navy); color: var(--paper); }

/* 로딩 */
.loading-line { padding: 48px 0; display: flex; justify-content: center; color: var(--stone); }
.boot { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: var(--stone); }
.boot svg { width: 96px; height: auto; }

#blazor-error-ui {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    padding: 12px 16px;
    background: var(--warn-bg);
    color: var(--warn-strong);
    font-size: 14px;
}
#blazor-error-ui .reload { margin-left: 8px; }
#blazor-error-ui .dismiss { float: right; cursor: pointer; }

/* 라벨 인쇄 */
.print-bar { position: sticky; top: 0; z-index: 10; padding: 12px 20px; background: var(--navy); color: var(--paper); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.print-bar .grow { font-size: 14px; }
.sheet { width: 210mm; margin: 16px auto; padding: 10mm; background: #FFFFFF; box-shadow: 0 6px 24px rgba(36, 54, 74, .12); }
.sheet__group { break-inside: avoid; margin-bottom: 6mm; }
.sheet__head { display: flex; justify-content: space-between; gap: 8px; padding-bottom: 2mm; margin-bottom: 3mm; border-bottom: 1px solid var(--line); font-size: 11pt; font-weight: 700; }
.sheet__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3mm; }
.sheet__label { break-inside: avoid; border: 0.3mm dashed #C9BBA4; border-radius: 2mm; padding: 3mm 2mm 2mm; display: flex; flex-direction: column; align-items: center; gap: 1.5mm; }
.sheet__label strong { font-size: 9pt; }
.sheet__label svg { width: 26mm; height: 26mm; }
.sheet__scan { font-size: 6.5pt; font-weight: 700; letter-spacing: .12em; }
.sheet__label img { width: 11mm; height: auto; }
.sheet__code { font-family: var(--font-mono); font-size: 7pt; color: var(--stone-dark); }
@media print {
    @page { size: A4; margin: 0; }
    html, body { background: #FFFFFF; }
    .print-bar { display: none; }
    .sheet { margin: 0; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
}

/* ---- 홈 목록 ---- */
.panel { padding: 20px 22px 8px; border-radius: 16px; border: 1px solid var(--card-line); background: #FFFFFF; min-width: 0; }
.panel--pad { padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.panel__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin-bottom: 6px; }
.more { min-height: 44px; display: flex; align-items: center; font-size: 13px; font-weight: 600; text-decoration: none; }
.feed { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; padding: 14px 0; border-top: 1px solid var(--row-line); color: var(--navy); text-decoration: none; }
.feed:hover { color: var(--navy); }
.feed__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.feed__title { font-size: 14px; font-weight: 600; }
.feed__sub { font-size: 12px; color: var(--stone); }
.feed__bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
.feed__bar .small { color: var(--stone-dark); white-space: nowrap; font-variant-numeric: tabular-nums; }
.feed .chip { align-self: start; }
.log-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--row-line); }
.log-row__time { font-size: 12px; color: var(--stone); font-variant-numeric: tabular-nums; }
.log-row__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.log-row__sub { font-size: 12px; color: var(--stone); }
.low-table td, .low-table th { padding: 12px 0; }
.low-table th { padding-top: 0; padding-bottom: 8px; }
.low-table td.num-low { font-weight: 700; color: var(--warn); }
.stack > .chip, .stack > .btn { align-self: flex-start; }

/* ---- 만들기 화면(발주·QR·주문) ---- */
.step-title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; }
.step-title > span:first-child { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: var(--paper); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.toggle { height: 44px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #FFFFFF; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--navy); cursor: pointer; }
.toggle.on { padding-left: 10px; border-color: var(--navy); background: var(--navy); color: var(--paper); font-weight: 600; }
.qty-input { width: 84px; height: 44px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: #FFFFFF; font-size: 15px; text-align: right; color: var(--navy); }
.qty-input.low { border: 1.5px solid var(--coral); background: #FFFBF9; }
.low-key { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--warn); }
.low-key::before { content: ""; width: 10px; height: 10px; border-radius: 3px; border: 1.5px solid var(--coral); }
.equation { padding: 16px 18px; border-radius: 14px; background: var(--cream); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-variant-numeric: tabular-nums; }
.equation b { font-size: 18px; }
.equation__result { color: var(--hearth); font-weight: 600; }
.equation__result b { font-size: 22px; color: var(--navy); }
.warn-box { padding: 14px 16px; border-radius: 14px; background: var(--warn-bg); font-size: 13px; font-weight: 500; color: var(--warn); }
.dropzone { position: relative; min-height: 88px; padding: 16px; border-radius: 14px; border: 1.5px dashed #D9CBB3; background: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; cursor: pointer; color: var(--sky); }
.dropzone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone__title { font-size: 14px; font-weight: 600; }
.file-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--paper); font-size: 14px; }
.file-row .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.summary { padding: 22px; border-radius: 16px; background: var(--navy); color: var(--cream); display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }
.summary h2 { font-size: 16px; font-weight: 700; color: var(--paper); }
.summary dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 16px; font-size: 14px; font-variant-numeric: tabular-nums; }
.summary dt { color: rgba(243, 235, 221, .72); }
.summary dd { text-align: right; color: var(--paper); }
.summary dd.strong { font-weight: 700; }
.summary p { font-size: 12px; line-height: 1.6; color: rgba(243, 235, 221, .76); }
.fields { display: grid; gap: 14px 16px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }

/* ---- 발주 상세 ---- */
.request { padding: 20px 22px; border-radius: 16px; background: var(--warn-bg); display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.request__body { flex: 1 1 420px; min-width: 0; display: flex; gap: 14px; }
.request__icon { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #FFFFFF; display: flex; align-items: center; justify-content: center; color: var(--warn); }
.request h2 { font-size: 15px; font-weight: 700; color: var(--warn-strong); }
.done-cell { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.done-cell .muted { font-weight: 400; }
.mini-bar { width: 72px; height: 4px; border-radius: 2px; background: var(--cream); overflow: hidden; }
.mini-bar > span { display: block; height: 100%; background: var(--navy); }
.mini-bar--full > span { background: var(--coral); }
.legend-line { display: inline-flex; align-items: center; gap: 6px; }
.legend-line::before { content: ""; width: 14px; height: 4px; border-radius: 2px; background: var(--legend, var(--navy)); }
.info-list { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; font-size: 14px; }
.info-list dt { color: var(--stone-dark); }
.info-list dd { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.records { padding: 14px 16px; border-radius: 12px; background: var(--paper); display: flex; flex-direction: column; gap: 6px; }
.records p { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.records p span:last-child { color: var(--stone); font-variant-numeric: tabular-nums; white-space: nowrap; }
.message-form { display: flex; gap: 8px; margin: 0; }
.message-form input { flex: 1; min-width: 0; }
.messages { display: flex; flex-direction: column; gap: 12px; max-height: 420px; overflow-y: auto; }
.big-number { display: flex; align-items: baseline; gap: 4px; }
.big-number > span:first-child { font-size: 32px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.big-number > span:last-child { font-size: 14px; color: var(--stone); }
