/* 얄란코리아 렌탈시스템 고객용 — look of the Windows app (Ui.cs colours) */
:root {
  --theme: #3B99FF; --theme-dark: #1F6FD1; --bg: #F3F5F9; --card: #fff; --text: #222; --sub: #8F939C; --line: #E6E8EE;
  --red: #F04B4B; --green: #19B26B; --orange: #FF8A00; --side: #16213A; --side-sel: #25365A; --head: #F5F7FB; --sel: #E8F2FF; --link: #1F6FD1;
  --font: -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Noto Sans CJK KR", "Noto Sans KR", "NanumGothic", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 13px; -webkit-font-smoothing: antialiased; }
body.busy, body.busy * { cursor: progress !important; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
input[type=text], input[type=password], input[type=date], input:not([type]), select, textarea {
  height: 30px; border: 1px solid #CDD2DA; border-radius: 5px; background: #fff; padding: 0 8px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--theme); box-shadow: 0 0 0 2px rgba(59, 153, 255, .15); }
input:disabled, select:disabled { background: #F2F3F5; color: #9AA0A8; }
input::placeholder, textarea::placeholder { color: #A8AEB8; }
input[type=checkbox] { width: 15px; height: 15px; margin: 0; accent-color: var(--theme); vertical-align: middle; cursor: pointer; }
select { padding: 0 4px; }
a { color: var(--theme); cursor: pointer; text-decoration: none; }
a:hover { text-decoration: underline; }
.sub { color: var(--sub); }
.small { font-size: 12.5px; }
.red { color: var(--red); }
.pad6 { display: inline-block; padding: 6px; }

/* ───── buttons ───── */
.btn { height: 36px; width: 110px; border-radius: 6px; border: 1px solid transparent; font-weight: 700; font-size: 14px; cursor: pointer; padding: 0 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 0 auto; transition: background-color .08s; }
.btn.pri { background: var(--theme); color: #fff; }
.btn.pri:hover { background: #62adff; }
.btn.pri:active { background: #2f8ef5; }
.btn.sec { background: #fff; color: var(--text); border-color: var(--line); }
.btn.sec:hover { background: #F2F6FC; }
.btn.sec:active { background: #E8EEF7; }
.btn:disabled, .btn:disabled:hover { background: rgb(200, 205, 212) !important; color: #fff !important; border-color: transparent; cursor: default; }
.btn.big { font-size: 16px; }
.btn.wide { width: 100% !important; }
.btn.pm { font-size: 19px; padding: 0; line-height: 1; }
.btn:focus-visible { outline: 2px solid rgba(59, 153, 255, .45); outline-offset: 1px; }

/* ───── shell ───── */
.shell { display: flex; height: 100vh; }
.side { width: 210px; flex: 0 0 210px; background: var(--side); display: flex; flex-direction: column; }
.logo { height: 64px; background: #fff; padding: 14px 12px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.menu { flex: 1; overflow-y: auto; padding: 4px 0; }
.nav { height: 42px; margin: 1px 2px; padding-left: 20px; display: flex; align-items: center; color: rgb(210, 216, 230); font-size: 14px; cursor: pointer; user-select: none; }
.nav:hover { background: rgb(30, 44, 72); }
.nav.on { background: var(--side-sel); color: #fff; font-weight: 700; }
.nav-sec { height: 28px; padding: 0 0 4px 10px; display: flex; align-items: flex-end; color: rgb(110, 122, 150); font-size: 11px; font-weight: 700; user-select: none; }
.ver { height: 30px; flex: 0 0 30px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: rgb(140, 150, 175); }
.content { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.head { height: 56px; flex: 0 0 56px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 20px; gap: 12px; }
.head .back { display: none; margin-left: -4px; font-size: 13px; }
.head.is-sub .back { display: inline-block; }
.h-title { font-size: 19px; font-weight: 700; white-space: nowrap; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; user-select: none; }
.h-right { text-align: right; white-space: nowrap; user-select: none; }
.h-cust { font-weight: 700; font-size: 14px; }
.h-clock { font-size: 12.5px; color: var(--sub); margin-top: 2px; }
.host { flex: 1; position: relative; min-height: 0; }

/* ───── pages ───── */
.page { position: absolute; inset: 0; overflow: auto; padding: 16px 20px; display: flex; flex-direction: column; }
.page > * { flex: 0 0 auto; }
.page.fill { overflow: hidden; }
.page.fill > .fillcard, .page.fill > .split { flex: 1 1 auto; min-height: 0; }
.page.detail { padding-top: 12px; padding-bottom: 20px; }

/* ───── cards ───── */
.card { background: #fff; border-radius: 10px; padding: 12px 16px; position: relative; }
.card.titled { padding-top: 44px; }
.card-title { position: absolute; left: 16px; top: 13px; right: 16px; display: flex; align-items: center; height: 22px; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; }
.card-title i { width: 4px; height: 16px; background: var(--theme); margin-right: 6px; flex: 0 0 4px; }
.card.fillcard { display: flex; flex-direction: column; padding: 12px; min-height: 0; }
.card.fillcard.titled { padding-top: 44px; }
.card.fillcard > * { flex: 0 0 auto; }
.card.fillcard > .grid-wrap, .card.fillcard > .grid-host { flex: 1 1 auto; min-height: 60px; }
.grid-host { display: flex; flex-direction: column; min-height: 0; }
.grid-host > .grid-wrap { flex: 1 1 auto; }
.card.topcard { padding: 6px 8px 4px; }
.shead { display: flex; align-items: center; height: 40px; font-size: 15px; background: #fff; flex: 0 0 auto; }
.shead i { width: 4px; height: 16px; background: var(--theme); margin: 0 6px 0 4px; flex: 0 0 4px; }
.shead small { margin-left: 6px; font-size: 12.5px; }
.mline { display: flex; align-items: center; padding: 0 4px; white-space: pre-wrap; }
.mline[style*="center"] { justify-content: center; }
.mpara { padding: 2px 4px; line-height: 1.45; white-space: pre-wrap; }
.split { display: flex; gap: 12px; min-height: 0; }
.split > .card { flex: 1 1 0; min-width: 0; }
.split.one > .card { flex: 1 1 100%; }

/* ───── filter bar / actions ───── */
.filterbar { display: flex; flex-wrap: wrap; align-items: center; background: #fff; padding: 8px 10px 4px; }
.filterbar .flabel { color: var(--sub); margin: 0 2px 0 8px; white-space: nowrap; font-size: 13px; }
.filterbar .flabel.strong { color: var(--text); font-weight: 700; font-size: 14px; margin-left: 16px; }
.filterbar .fctl { margin: 4px 6px 4px 2px; }
.filterbar .fbtn { margin: 3px 4px; }
.combo { height: 30px; }
.daterange, .bf { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.daterange select { width: 90px; }
.daterange input[type=date] { width: 132px; padding: 0 6px; }
.daterange .tilde { color: var(--sub); }
.actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; height: 44px; padding: 4px 10px 0; background: #fff; }
.actions .hint { color: var(--sub); margin-right: 12px; }
.hint.right { text-align: right; color: var(--sub); font-size: 12.5px; padding: 6px 4px; }
.gfoot { color: var(--sub); font-size: 12px; padding: 6px 2px 0; flex: 0 0 auto; }
.bar-right { display: flex; justify-content: flex-end; padding-top: 8px; }

/* ───── tabs ───── */
.tabs { display: flex; height: 38px; border-bottom: 1px solid var(--line); background: #fff; flex: 0 0 auto; }
.tab { display: flex; align-items: center; justify-content: center; color: var(--sub); font-weight: 700; font-size: 14px; cursor: pointer; position: relative; user-select: none; }
.tab.on { color: var(--theme); }
.tab.on::after { content: ''; position: absolute; left: 25%; right: 25%; bottom: 0; height: 3px; background: var(--theme); }

/* ───── grid ───── */
.grid-wrap { position: relative; overflow: auto; background: #fff; outline: none; min-height: 0; }
.grid-wrap.fixed { overflow: visible; }
.grid-wrap.fixed.is-empty { min-height: 94px; }
table.grid { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
table.grid th { position: sticky; top: 0; z-index: 1; height: 34px; background: var(--head); color: var(--sub); font-weight: 700; font-size: 12.5px; text-align: left; padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.grid td { height: 34px; padding: 0 6px; border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.grid .r { text-align: right; }
table.grid .c { text-align: center; }
table.grid th.c, table.grid td.c { padding: 0 2px; text-overflow: clip; }
table.grid tbody tr { cursor: default; }
table.grid tbody tr:hover { background: #FAFBFD; }
table.grid tbody tr.sel { background: var(--sel); }
table.grid tbody tr.sum { font-weight: 700; background: #F7F9FC; }
table.grid td.link { color: var(--link) !important; text-decoration: underline; cursor: pointer; }
.grid-wrap.fixed table.grid th { position: static; }
.grid-empty { position: absolute; left: 0; right: 0; top: 34px; height: 60px; display: flex; align-items: center; justify-content: center; color: var(--sub); pointer-events: none; }
.grid-wrap:not(.fixed) .grid-empty { height: auto; bottom: 0; max-height: 120px; }

/* ───── more bar ───── */
.morebar { height: 44px; position: relative; display: flex; align-items: center; justify-content: center; background: #fff; border-top: 1px solid var(--line); flex: 0 0 auto; }
.more-info { position: absolute; left: 12px; color: var(--sub); font-size: 12.5px; }

/* ───── info list ───── */
.infolist { display: grid; align-items: start; column-gap: 0; }
.il-l { color: var(--sub); padding: 6px 4px; }
.il-v { padding: 6px 12px 6px 4px; word-break: break-all; }

/* ───── home ───── */
.notice { height: 40px; background: #FFF6E8; color: #B36200; font-size: 14px; display: flex; align-items: center; padding-left: 14px; border-radius: 8px; }
.kpi { display: flex; gap: 12px; }
.kpi:empty { display: none; }
.kpi-card { flex: 1 1 0; min-width: 180px; height: 92px; padding: 14px 18px; }
.kpi-v { font-size: 22px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-l { color: var(--sub); margin-top: 12px; }
.notes .note-row { display: flex; align-items: center; justify-content: space-between; height: 34px; font-size: 14px; }
.more-link { font-size: 13px; margin-right: 6px; white-space: nowrap; }
.quick { display: flex; gap: 10px; padding-top: 8px; }
.chart-box { position: relative; width: 100%; }
.chart-box canvas { position: absolute; left: 0; top: 0; }

/* ───── order detail ───── */
.steps { display: flex; height: 86px; }
.step { flex: 1 1 0; position: relative; text-align: center; min-width: 0; }
.step-dot { width: 16px; height: 16px; border-radius: 50%; margin: 10px auto 0; position: relative; z-index: 1; }
.step-line { position: absolute; top: 17px; left: calc(50% + 10px); width: calc(100% - 20px); height: 2px; }
.step-t { margin-top: 6px; color: var(--sub); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step.on .step-t { color: var(--text); font-weight: 700; }
.step-tm { margin-top: 4px; color: var(--sub); font-size: 11px; }
.dnote { padding: 6px 2px 4px; font-size: 12.5px; }
.dcaption { padding: 12px 2px 4px; font-size: 14px; font-weight: 700; }
.pics { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.resign { color: var(--red); margin: 60px 8px 0; }
.ib { padding: 2px; }
.ib-l { color: var(--sub); margin-bottom: 4px; }
.ib-pic { position: relative; border: 1px solid #C9CED8; background: #FAFBFC; cursor: pointer; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ib-pic.none { cursor: default; }
.ib-pic img { max-width: 100%; max-height: 100%; object-fit: contain; display: none; }
.ib-pic img.ok { display: block; }
.ib-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--sub); }
.thumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; padding: 4px 0; }
.thumb { border: 1px solid #C9CED8; background: #F0F2F6; cursor: pointer; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.signbox { width: 420px; height: 160px; border: 1px solid #C9CED8; background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; margin-top: 4px; }
.signbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gnote { padding: 8px 4px 0; flex: 0 0 auto; }

/* ───── order add ───── */
.arrears { background: #FFF4E5; color: #C45A00; font-weight: 700; font-size: 14px; padding: 10px 14px; border-radius: 8px; }
.oa-bf { display: flex; align-items: center; flex-wrap: wrap; height: 44px; }
.oa-lab { font-size: 14px; margin-right: 8px; }
.combo-edit { width: 160px; height: 32px !important; font-size: 14px; }
.oa-bf .sub.small { margin-left: 6px; }
.oa-rows { display: flex; flex-direction: column; }
.oa-row { display: flex; align-items: center; height: 48px; gap: 12px; }
.pickbox { width: 440px; height: 36px; display: flex; align-items: center; border: 1px solid #CDD2DA; border-radius: 6px; background: #fff; padding: 0 0 0 10px; cursor: pointer; font-size: 14px; text-align: left; flex: 0 0 auto; }
.pickbox:hover { border-color: var(--theme); }
.pickbox .pb-t { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pickbox.empty .pb-t { color: #A8AEB8; }
.pickbox .pb-a { width: 28px; text-align: center; color: var(--sub); }
.oa-qty { width: 140px; height: 32px !important; text-align: right; font-size: 14.5px; }
.oa-info { white-space: nowrap; }
.hr { height: 13px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.oa-totals { display: flex; align-items: center; height: 38px; font-size: 14.5px; gap: 4px; }
.oa-total { color: var(--red); font-weight: 700; font-size: 16px; }
.oa-submit { padding-top: 16px; padding-bottom: 14px; }

/* ───── linen picker ───── */
.lp { display: flex; flex-direction: column; height: 100%; }
.lp-search { height: 34px !important; margin: 6px 0; font-size: 14.5px; flex: 0 0 auto; }
.tree { flex: 1; overflow: auto; border: 1px solid #C9CED8; outline: none; padding: 4px 0; font-size: 14.5px; }
.tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul ul { padding-left: 20px; display: none; }
.tree li.open > ul { display: block; }
.tn { height: 28px; display: flex; align-items: center; cursor: default; padding-left: 4px; white-space: nowrap; user-select: none; }
.tn:hover { background: #F2F6FC; }
.tn.sel { background: var(--theme); color: #fff !important; }
.tw { width: 18px; text-align: center; color: var(--sub); font-size: 11px; cursor: pointer; }
.has > .tn > .tw::before { content: '▸'; }
.has.open > .tn > .tw::before { content: '▾'; }
.tn.sel .tw { color: #fff; }
.leaf > .tn { color: var(--theme-dark); }

/* ───── statement page ───── */
.st-state { color: var(--theme); margin: 0 0 0 10px; }
.st-bottom { display: flex; flex-direction: column; padding: 8px 4px 0; flex: 0 0 auto; }
.st-sum { font-weight: 700; font-size: 14.5px; }
.st-info { color: var(--sub); font-size: 12.5px; margin-top: 6px; line-height: 1.4; }
.st-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.pv { display: flex; flex-direction: column; height: 100%; }
.pv-scroll { flex: 1; overflow: auto; background: #808080; display: flex; justify-content: center; padding: 14px; }
.pv-page { height: 100%; display: flex; justify-content: center; }
.pv-page svg { height: 100%; width: auto; aspect-ratio: 210 / 297; max-width: 100%; display: block; box-shadow: 0 2px 10px rgba(0,0,0,.35); background: #fff; }
.pv-bar { height: 46px; display: flex; align-items: center; gap: 8px; padding: 0 8px; background: #fff; flex: 0 0 auto; }
.pv-n { margin: 0 10px; }

/* ───── recon ───── */
.rc-sums { display: flex; align-items: center; height: 40px; padding-left: 10px; gap: 20px; }
.rc-total { color: var(--red); font-weight: 700; font-size: 16px; }
.rc-sub { font-size: 14px; }
.rc-warn { color: var(--red); font-weight: 700; }

/* ───── stock / account stats ───── */
.stats { display: flex; gap: 10px; padding: 8px 4px 4px; }
.stats:empty { display: none; }
.stat { width: 220px; height: 80px; background: #F7F9FC; border-radius: 6px; padding: 10px 14px; }
.stat-v { font-size: 21px; font-weight: 700; }
.stat-l { color: var(--sub); margin-top: 6px; }

/* ───── my page ───── */
.my-head { display: flex; align-items: center; justify-content: space-between; height: 92px; padding: 0 20px 0 24px !important; }
.my-name { font-size: 20px; font-weight: 700; }
.my-sub { color: var(--sub); margin-top: 8px; }
.my-card { padding: 8px 12px !important; }
.my-item { height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 14.5px; }
.my-item:hover { background: #F5F8FD; }
.my-r { color: var(--sub); font-size: 13px; }
.acc-box { display: flex; flex-direction: column; height: 100%; }
.acc-list { flex: 1; overflow: auto; outline: none; border-top: 1px solid var(--line); }
.acc { height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; cursor: pointer; border-bottom: 1px solid var(--line); }
.acc b { display: block; font-size: 14.5px; }
.acc small { color: var(--sub); }
.acc.sel { background: var(--theme); color: #fff; }
.acc.sel small, .acc.sel .acc-cur { color: #fff; }
.acc-cur { color: var(--theme); font-weight: 700; }

/* ───── contact ───── */
.contact { width: 100%; max-width: 720px; margin: 0 auto; }
.contact-logo { height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 14px; }
.contact-yalan { font-size: 34px; font-weight: 700; color: var(--theme); letter-spacing: 1px; }
.contact-name { font-size: 19px; font-weight: 700; margin: 8px 0 6px; }
.terms { display: flex; gap: 24px; font-size: 14px; padding: 6px 0; }

/* ───── rate ───── */
.star-row { display: flex; align-items: center; height: 54px; }
.stars { display: flex; gap: 8px; }
.star { font-size: 40px; line-height: 44px; color: #DCDFE6; cursor: pointer; user-select: none; }
.star.on { color: #FFB400; }
.stars.ro .star { cursor: default; }
.rate-cap { color: var(--orange); font-weight: 700; font-size: 14.5px; margin-left: 16px; }
.chips-box { display: flex; flex-wrap: wrap; gap: 8px 10px; padding: 6px 0; }
.chip { height: 34px; padding: 0 15px; border-radius: 17px; border: 1px solid var(--line); background: #F5F6F8; color: var(--text); cursor: pointer; font-size: 13px; display: inline-flex; align-items: center; }
.chip.on { background: #E8F2FF; border-color: var(--theme); color: var(--theme); }
.chip.ro { cursor: default; }
.rate-comment { width: 100%; height: 120px; padding: 8px; resize: vertical; font-size: 14px; line-height: 1.5; }
.photo-box { display: flex; gap: 12px; padding: 6px 0; }
.ptile { width: 108px; height: 108px; background: #F0F2F6; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ptile img { max-width: 100%; max-height: 100%; cursor: pointer; }
.ptile .px { position: absolute; right: 0; top: 0; width: 24px; height: 24px; background: rgba(60, 60, 66, .78); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.padd { width: 108px; height: 108px; border: 1px solid #C9CED8; background: #F5F7FB; color: var(--sub); font-size: 34px; display: flex; align-items: center; justify-content: center; cursor: pointer; user-select: none; }
.padd.busy { font-size: 12.5px; }
.rate-done { text-align: center; padding: 10px 0 20px; }
.rate-check { font-size: 48px; color: var(--green); font-weight: 700; height: 80px; display: flex; align-items: flex-end; justify-content: center; }
.rate-msg { font-size: 16px; font-weight: 700; margin-top: 14px; }
.rate-text { padding: 6px 4px; font-size: 14px; white-space: pre-wrap; }

/* ───── sign ───── */
.sign-bar { height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; border-top: 1px solid var(--line); flex: 0 0 auto; }
.sign-note { font-size: 14px; padding: 2px 4px 6px; }
.sigwrap { padding: 4px 4px 0; }
.sigpad { display: block; cursor: crosshair; touch-action: none; }

/* ───── dialogs ───── */
#modals { position: fixed; inset: 0; pointer-events: none; z-index: 50; }
.overlay { position: fixed; inset: 0; background: rgba(20, 26, 40, .38); display: flex; align-items: center; justify-content: center; pointer-events: auto; }
.dlg { background: #fff; border-radius: 10px; box-shadow: 0 12px 40px rgba(0, 0, 0, .28); width: 460px; max-width: calc(100vw - 40px); max-height: calc(100vh - 40px); display: flex; flex-direction: column; overflow: hidden; }
.dlg-head { height: 44px; flex: 0 0 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 20px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 14.5px; }
.dlg-x { width: 32px; height: 32px; border: 0; background: transparent; font-size: 22px; color: var(--sub); cursor: pointer; border-radius: 6px; }
.dlg-x:hover { background: #F2F4F7; color: var(--text); }
.dlg-body { padding: 16px 24px; overflow: auto; flex: 1 1 auto; min-height: 0; }
.dlg-bar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 0 20px 16px; flex: 0 0 auto; }
.dlg-bar.even { justify-content: space-between; }
.dlg.tall .dlg-body, .dlg.picker .dlg-body, .dlg.preview .dlg-body { display: flex; flex-direction: column; }
.dlg.tall .dlg-body > *, .dlg.picker .dlg-body > *, .dlg.preview .dlg-body > * { flex: 1 1 auto; min-height: 0; }
.dlg.preview .dlg-body { padding: 0; }
.dlg-scroll { overflow: auto; }
.ask-text { white-space: pre-wrap; font-size: 14px; line-height: 1.6; min-height: 70px; padding: 6px 0; }
.dlg.ask .dlg-body { padding: 20px 24px 12px; }
.dlg.signdlg .dlg-body { padding: 14px 20px 10px; }
.dlg.gallery { width: 960px; height: 720px; background: #000; }
.dlg.gallery .dlg-head { background: #1E1E22; color: #fff; border-color: #333; }
.dlg.gallery .dlg-body { padding: 0; display: flex; }
.gal { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.gal-main { flex: 1; display: flex; min-height: 0; }
.gal-nav { width: 48px; border: 0; background: #1E1E22; color: #fff; font-size: 30px; font-weight: 700; cursor: pointer; }
.gal-nav:hover { background: #2C2C33; }
.gal-pic { flex: 1; display: flex; align-items: center; justify-content: center; min-width: 0; }
.gal-pic img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gal-info { height: 34px; flex: 0 0 34px; background: #1E1E22; color: #fff; display: flex; align-items: center; justify-content: center; }
.dlg.viewer { width: auto; min-width: 400px; }
.viewer-pic { background: #fff; display: flex; justify-content: center; }
.viewer-pic img { max-width: calc(100vw - 120px); max-height: calc(100vh - 160px); object-fit: contain; }
.form1 { display: flex; flex-direction: column; }
.form1 label { margin: 12px 0 6px; font-size: 14.5px; }
.form1 input { height: 34px; font-size: 15px; }
.form1 .ferr { min-height: 26px; color: var(--red); padding-top: 6px; }
.form1 .req { color: var(--red); }
.form2 { display: grid; grid-template-columns: 120px 1fr; gap: 12px 10px; align-items: center; font-size: 14px; }
.form2 input { height: 32px; }
.form-note { color: var(--sub); font-size: 12px; margin-top: 14px; }
.chiplist { display: flex; flex-direction: column; }
.chiplist .chips { flex: 1; overflow: auto; font-family: Menlo, Consolas, monospace; font-size: 14px; line-height: 1.7; user-select: text; }
.chip-tip { color: var(--orange); font-size: 12.5px; padding: 4px 0; }
.order-row { display: flex; align-items: center; gap: 8px; height: 34px; font-size: 14px; }

/* ───── login ───── */
.login-screen { height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #EEF3FA 0%, #F3F5F9 60%); overflow: auto; }
.login-card { width: 460px; background: #fff; border-radius: 12px; box-shadow: 0 8px 30px rgba(22, 33, 58, .12); padding: 30px 40px 22px; }
.login { display: flex; flex-direction: column; }
.lg-emblem { width: 64px; height: 64px; align-self: center; margin-bottom: 8px; }
.lg-title { text-align: center; color: var(--theme); font-size: 24px; font-weight: 700; }
.lg-sub { text-align: center; color: var(--sub); font-size: 12.5px; margin: 6px 0 18px; }
.lg-l { font-size: 14.5px; margin: 8px 0 6px; }
.lg-in { height: 36px !important; font-size: 16px; }
.lg-chk { display: flex; align-items: center; gap: 4px; margin-top: 12px; font-size: 14px; cursor: pointer; user-select: none; }
.lg-chk.small { font-size: 12px; margin-top: 16px; align-items: flex-start; line-height: 1.4; }
.lg-chk.small input { margin-top: 1px; }
.lg-err { min-height: 24px; color: var(--red); padding-top: 6px; }
.login .btn { margin-top: 2px; }
.lg-note { text-align: center; color: var(--sub); font-size: 12px; margin-top: 22px; }
.dlg.login-dlg .dlg-body { padding: 16px 30px 18px; }

/* ───── toast ───── */
#toast { position: fixed; left: 50%; bottom: 60px; transform: translateX(-50%); max-width: 520px; background: rgba(45, 45, 50, .93); color: #fff; font-size: 14.5px; padding: 10px 16px; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 100; white-space: pre-wrap; text-align: center; }
#toast.on { opacity: 1; }
