:root { --shop-ink: #20251b; --shop-muted: #7b8073; --shop-line: #e8e5db; --shop-canvas: #f7f6f1; --shop-card: #fff; --shop-olive: #ddeb78; --shop-olive-soft: #f1f7d9; --shop-red: #a64d43; }
[v-cloak] { display: none !important; }
.shop-page { min-height: 100vh; background: var(--shop-canvas); }
.shop-shell { min-height: 100vh; }
.shop-topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 74px; padding: 12px clamp(16px, 5vw, 64px); border-bottom: 1px solid rgba(232, 229, 219, .92); background: rgba(255,255,255,.9); backdrop-filter: blur(18px); }
.shop-topbar .brand { padding: 0; color: var(--shop-ink); }
.shop-topbar .brand small, .auth-card .brand small { display: block; margin-top: 3px; color: var(--shop-muted); font-size: 10px; }
.top-user { display: flex; align-items: center; gap: 9px; color: var(--shop-ink); }
.top-user > span:not(.user-dot) { display: grid; gap: 2px; }
.top-user small { color: var(--shop-muted); font-size: 10px; }
.user-dot { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--shop-olive); color: var(--shop-ink); font-weight: 900; }
.shop-main { width: min(1420px, 100%); margin: 0 auto; padding: 30px clamp(16px, 5vw, 64px) 60px; }
.shop-page-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.shop-page-head h1 { margin: 0; color: var(--shop-ink); font-size: clamp(23px, 3vw, 30px); letter-spacing: -.04em; }
.shop-page-head p { margin: 8px 0 0; color: var(--shop-muted); font-size: 13px; }
.shop-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; padding: 5px; border: 1px solid var(--shop-line); border-radius: 15px; background: #f1f0eb; }
.shop-nav button { flex: 1 1 130px; border: 0; border-radius: 11px; background: transparent; color: var(--shop-muted); padding: 10px 14px; font-size: 12px; font-weight: 800; }
.shop-nav button.active { background: var(--shop-ink); color: var(--shop-olive); box-shadow: 0 4px 12px rgba(32,37,27,.12); }
.shop-section { display: grid; gap: 16px; }
.shop-stats { display: grid; gap: 14px; }
.shop-stats.stats-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shop-stats .stat { border: 1px solid var(--shop-line); border-radius: 22px; background: var(--shop-card); box-shadow: 0 7px 20px rgba(75,70,52,.06); }
.panel { overflow: hidden; border: 1px solid var(--shop-line); border-radius: 22px; background: var(--shop-card); box-shadow: 0 7px 20px rgba(75,70,52,.06); }
.panel .section-title { min-height: 62px; }
.panel .section-title p { max-width: 680px; }
.filterbar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; padding: 14px 16px; border: 1px solid var(--shop-line); border-radius: 18px; background: #fff; }
.filterbar-wide .filter-field { min-width: 150px; }
.filter-field { display: grid; min-width: 130px; flex: 1 1 150px; gap: 5px; color: var(--shop-muted); font-size: 10px; font-weight: 800; }
.filter-field.keyword { flex-basis: 230px; }
.filter-field input, .filter-field select { width: 100%; min-height: 35px; border: 1px solid var(--shop-line); border-radius: 10px; background: #fff; color: var(--shop-ink); padding: 7px 9px; font-size: 12px; outline: none; }
.filter-field input:focus, .filter-field select:focus { border-color: #aec13d; box-shadow: 0 0 0 3px rgba(174,193,61,.15); }
.table-wrap { overflow-x: auto; }
.table-wrap table { min-width: 980px; }
.table-sub, .table-line { display: block; margin-top: 4px; color: var(--shop-muted); font-size: 10px; }
.table-line:first-child { margin-top: 0; }
.deadline-cell { min-width: 190px; }
.deadline-cell .deadline-time { display: block; margin-top: 3px; }
.deadline-cell .deadline-time:first-child { margin-top: 0; }
.action-cell { min-width: 235px; }
.action-cell .btn { margin: 2px 3px 2px 0; }
.link-button { border: 0; background: transparent; color: #526e92; padding: 0; font-size: 12px; font-weight: 850; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.link-button:hover { color: var(--shop-ink); }
.break { overflow-wrap: anywhere; word-break: break-word; }
.money { color: #c45b43; font-weight: 900; white-space: nowrap; }
.batch-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 11px 14px; border: 1px solid #dce6ae; border-radius: 14px; background: var(--shop-olive-soft); color: #68752f; font-size: 11px; font-weight: 800; }
.wallet-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; padding: 20px; }
.detail-grid > div { min-height: 76px; padding: 14px; border: 1px solid var(--shop-line); border-radius: 14px; background: #fbfaf7; }
.detail-grid span, .detail-grid strong { display: block; overflow-wrap: anywhere; }
.detail-grid span { color: var(--shop-muted); font-size: 10px; font-weight: 800; }
.detail-grid strong { margin-top: 9px; color: var(--shop-ink); font-size: 13px; }
.auth-wrap { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: radial-gradient(circle at 18% 8%, #eff6ca 0 18%, transparent 42%), var(--shop-canvas); }
.auth-startup { display: grid; width: min(440px, 100%); justify-items: center; padding: 32px; border: 1px solid var(--shop-line); border-radius: 28px; background: rgba(255,255,255,.92); box-shadow: 0 24px 64px rgba(75,70,52,.12); text-align: center; }
.auth-startup .brand { justify-content: center; padding: 0 0 24px; color: var(--shop-ink); }
.auth-startup .brand > span:last-child { display: grid; gap: 0; color: var(--shop-ink); }
.auth-startup .brand small { display: block; margin-top: 3px; color: var(--shop-muted); font-size: 10px; }
.auth-startup h1 { margin: 5px 0 0; color: var(--shop-ink); font-size: 23px; letter-spacing: -.04em; }
.auth-startup .auth-copy { margin: 9px 0 0; }
.auth-startup .notice { width: 100%; margin: 12px 0 0; text-align: left; }
.auth-welcome { padding-top: 26px; }
.auth-welcome .brand { padding-bottom: 26px; }
.nickname-welcome { width: 100%; min-width: 0; }
.welcome-avatar { position: relative; display: grid; width: 66px; height: 66px; margin: 0 auto 22px; place-items: center; border: 5px solid #f6f9e8; border-radius: 23px; background: var(--shop-olive); color: var(--shop-ink); font-size: 25px; font-weight: 800; transform: rotate(-5deg); }
.welcome-avatar > span { position: absolute; right: -6px; bottom: -5px; display: grid; width: 23px; height: 23px; place-items: center; border: 3px solid #fff; border-radius: 50%; background: var(--shop-ink); color: var(--shop-olive); }
.welcome-greeting { margin: 0 0 8px; color: #65733b; font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.nickname-welcome h1 { font-size: 29px; letter-spacing: -.035em; }
.nickname-welcome .auth-copy { margin: 12px 0 27px; font-size: 13px; line-height: 1.8; }
.welcome-form { display: grid; gap: 14px; text-align: left; }
.welcome-form .field { gap: 9px; }
.welcome-form .field > span { color: #68705f; font-size: 12px; }
.welcome-form .field input { min-height: 48px; padding: 12px 14px; font-size: 16px; font-weight: 500; }
.welcome-form > .btn { min-height: 46px; border-radius: 12px; font-size: 13px; }
.welcome-form .notice { margin: 0; }
.welcome-skip { min-height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--shop-muted); font-size: 12px; cursor: pointer; }
.welcome-skip:hover { background: #f6f7ef; color: var(--shop-ink); }
.welcome-skip:focus-visible { outline: 2px solid #aec13d; outline-offset: 2px; }
.welcome-skip:disabled { opacity: .55; cursor: wait; }
.welcome-skip span { margin-left: 4px; }
.welcome-foot { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 20px 0 0; color: #929983; font-size: 10px; }
.auth-spinner { width: 42px; height: 42px; margin: 5px 0 13px; border: 4px solid #e2e8c5; border-top-color: #9ead35; border-radius: 50%; animation: shop-auth-spin .8s linear infinite; }
@keyframes shop-auth-spin { to { transform: rotate(360deg); } }
.auth-card { width: min(440px, 100%); padding: 32px; border: 1px solid var(--shop-line); border-radius: 28px; background: rgba(255,255,255,.92); box-shadow: 0 24px 64px rgba(75,70,52,.12); }
.auth-card .brand { justify-content: center; padding: 0 0 20px; color: var(--shop-ink); }
.auth-card .brand > span:last-child { display: grid; gap: 0; }
.auth-card h1 { margin: 6px 0 0; font-size: 26px; letter-spacing: -.04em; text-align: center; }
.auth-copy { margin: 9px 0 19px; color: var(--shop-muted); font-size: 12px; line-height: 1.7; text-align: center; }
.auth-tabs { display: flex; gap: 5px; margin: 4px 0 17px; padding: 4px; border-radius: 12px; background: #f2f1ec; }
.auth-tab { flex: 1; border: 0; border-radius: 9px; background: transparent; color: var(--shop-muted); padding: 8px; font-size: 12px; font-weight: 800; }
.auth-tab.active { background: #fff; color: var(--shop-ink); box-shadow: 0 3px 9px rgba(75,70,52,.07); }
.auth-form { display: grid; gap: 13px; }
.field { display: grid; gap: 6px; color: #555c4d; font-size: 11px; font-weight: 800; }
.field.full { grid-column: 1/-1; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #dedbd1; border-radius: 11px; background: #fff; color: var(--shop-ink); outline: 0; padding: 10px 11px; font-size: 12px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #aec13d; box-shadow: 0 0 0 3px rgba(174,193,61,.16); }
.field textarea { min-height: 90px; resize: vertical; }
.field input[readonly] { background: #f2f3e8; color: #68752f; }
.field-note, .auth-foot { color: var(--shop-muted); font-size: 10px; line-height: 1.6; }
.auth-foot { margin: 20px 0 0; text-align: center; }
.btn.wide { width: 100%; }
.notice.error { border-color: #f0c9c3; background: #fff1ef; color: var(--shop-red); margin-bottom: 12px; }
.notice.warn { border-color: #efd9b8; background: #fff8ec; color: #8b642e; }
.notice.info { border-color: #c9d9ed; background: #f2f7fd; color: #526e92; }
.loading { display: grid; min-height: 240px; place-items: center; color: var(--shop-muted); }
.modal-layer { z-index: 60; }
.modal { width: min(720px, 100%); }
.modal-body { display: grid; gap: 14px; }
.modal-body .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; }
.detail-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.detail-group { padding: 14px; border: 1px solid var(--shop-line); border-radius: 14px; background: #fbfaf7; }
.detail-group-wide { grid-column: 1/-1; }
.detail-group h4 { margin: 0 0 9px; color: var(--shop-ink); font-size: 12px; }
.detail-group p { display: grid; grid-template-columns: 105px minmax(0,1fr); gap: 8px; margin: 0; padding: 7px 0; border-bottom: 1px solid #eeece6; font-size: 11px; }
.detail-group p:last-child { border-bottom: 0; }
.detail-group p > span { color: var(--shop-muted); }
.detail-group strong { color: var(--shop-ink); overflow-wrap: anywhere; font-weight: 700; }
.service-record-list { display: grid; gap: 8px; }
.service-record-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eeece6; }
.service-record-row:last-child { border-bottom: 0; }
.service-record-copy { display: grid; min-width: 0; gap: 3px; }
.service-record-copy > span { color: var(--shop-muted); font-size: 10px; }
.service-record-copy > strong { overflow-wrap: anywhere; }
.service-record-copy > small { color: var(--shop-muted); font-size: 10px; }
.order-progress-group { min-width: 0; }
.order-progress { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; min-width: 0; padding: 8px 2px 2px; }
.order-progress-step { position: relative; display: grid; min-width: 0; justify-items: center; gap: 7px; padding: 2px 4px; color: #a4a89e; text-align: center; }
.order-progress-step:not(:last-child)::after { position: absolute; top: 15px; right: calc(-50% + 15px); left: calc(50% + 15px); height: 2px; background: #e7e7df; content: ''; }
.order-progress-marker { z-index: 1; display: grid; width: 30px; height: 30px; place-items: center; border: 2px solid #e3e5dc; border-radius: 50%; background: #fff; color: #9ba096; font-size: 11px; font-weight: 900; }
.order-progress-copy { display: grid; min-width: 0; gap: 4px; }
.order-progress-copy strong, .order-progress-copy small { min-width: 0; overflow-wrap: anywhere; }
.order-progress-copy strong { color: inherit; font-size: 11px; font-weight: 800; }
.order-progress-copy small { color: var(--shop-muted); font-size: 10px; line-height: 1.4; }
.order-progress-step.is-done, .order-progress-step.is-current { color: var(--shop-ink); }
.order-progress-step.is-done::after { background: #b9c95d; }
.order-progress-step.is-done .order-progress-marker, .order-progress-step.is-current .order-progress-marker { border-color: #b9c95d; background: var(--shop-olive-soft); color: #68752f; }
.order-progress-step.is-current .order-progress-marker { box-shadow: 0 0 0 4px rgba(174,193,61,.16); }
.order-progress-step.is-special, .order-progress-step.is-special .order-progress-marker { color: var(--shop-red); }
.order-progress-step.is-special .order-progress-marker { border-color: #e4aaa1; background: #fff1ef; }
.order-progress-status { display: flex; align-items: center; gap: 8px; margin: 13px 0 0; padding-top: 11px; border-top: 1px solid #eeece6; font-size: 11px; }
.order-progress-status span { color: var(--shop-muted); }
.order-progress-status strong { color: var(--shop-red); }
.order-submit-body { width: min(1040px, 100%); max-height: min(88vh, 920px); overflow: auto; }
.order-meta-grid { align-items: start; }
.submission-mode-tabs { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--shop-line); border-radius: 14px; background: #f2f1ec; }
.submission-mode-tabs button { flex: 1; border: 0; border-radius: 10px; background: transparent; color: var(--shop-muted); padding: 10px 13px; font-size: 12px; font-weight: 850; cursor: pointer; }
.submission-mode-tabs button.active { background: var(--shop-ink); color: var(--shop-olive); }
.submission-hint { margin: 0; }
.submission-groups { display: grid; gap: 12px; }
.submission-group { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--shop-line); border-radius: 18px; background: #fbfaf7; }
.submission-group.has-duplicate { border-color: #e4c18d; box-shadow: 0 0 0 3px rgba(228,193,141,.16); }
.submission-group.has-error { border-color: #e4aaa1; }
.submission-group-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid #eeece6; }
.submission-group-head > div { display: grid; gap: 3px; }
.submission-group-head strong { color: var(--shop-ink); font-size: 13px; }
.submission-group-head small { color: var(--shop-muted); font-size: 10px; }
.submission-field { display: grid; gap: 6px; min-width: 0; }
.submission-field-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.submission-field-label label, .submission-fallback-target > span { color: #555c4d; font-size: 11px; font-weight: 850; }
.submission-field-label em, .submission-fallback-target em { color: var(--shop-red); font-style: normal; }
.submission-field-label code, .field code { color: var(--shop-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; font-weight: 700; }
.submission-default-field { padding: 12px; border: 1px solid #dce6ae; border-radius: 13px; background: #f8fae9; }
.submission-default-field textarea { min-height: 72px; }
.submission-field-actions, .submission-target-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.submission-field input, .submission-field select, .submission-field textarea, .submission-fallback-target textarea { width: 100%; border: 1px solid #dedbd1; border-radius: 11px; background: #fff; color: var(--shop-ink); outline: 0; padding: 10px 11px; font-size: 12px; }
.submission-field textarea, .submission-fallback-target textarea { min-height: 80px; resize: vertical; }
.submission-field input:focus, .submission-field select:focus, .submission-field textarea:focus, .submission-fallback-target textarea:focus { border-color: #aec13d; box-shadow: 0 0 0 3px rgba(174,193,61,.16); }
.submission-field .field-note { margin: 0; }
.field-error { color: var(--shop-red); font-size: 10px; font-weight: 800; }
.field-duplicate-warning { border: 1px solid #efd9b8; border-radius: 10px; background: #fff8ec; color: #8b642e; padding: 8px 10px; font-size: 10px; font-weight: 750; }
.submission-fallback-target { position: relative; }
.submission-target-actions { margin-top: 2px; }
.submission-derived-target { display: grid; gap: 4px; padding: 9px 11px; border-radius: 10px; background: #f1f7d9; color: #68752f; font-size: 10px; }
.submission-derived-target strong { color: var(--shop-ink); overflow-wrap: anywhere; font-size: 11px; }
.image-input-row { display: flex; align-items: center; gap: 7px; min-width: 0; }
.image-input-row input { min-width: 0; flex: 1; }
.submission-image-preview { width: 88px; height: 88px; border: 1px solid var(--shop-line); border-radius: 12px; object-fit: cover; background: #fff; }
.batch-tools, .spreadsheet-import-panel, .submission-results { display: grid; gap: 11px; padding: 14px; border: 1px dashed #d9dfaa; border-radius: 16px; background: #fbfced; }
.batch-tools > .wide { width: 100%; border-style: dashed; }
.batch-input-panel { display: grid; gap: 8px; padding: 12px; border: 1px solid #e5e8c9; border-radius: 13px; background: #fff; }
.batch-input-panel textarea { width: 100%; border: 1px solid var(--shop-line); border-radius: 10px; padding: 10px; resize: vertical; font-size: 12px; }
.batch-qr-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.section-title.compact { min-height: auto; padding: 0; border: 0; }
.section-title.compact h3 { font-size: 13px; }
.section-title.compact p { margin-top: 4px; font-size: 10px; }
.file-button { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.spreadsheet-import-panel { border-color: #c9d9ed; background: #f7fbff; }
.spreadsheet-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.spreadsheet-controls > strong { align-self: center; max-width: 240px; overflow-wrap: anywhere; color: var(--shop-ink); font-size: 11px; }
.spreadsheet-controls .filter-field { min-width: 145px; }
.spreadsheet-preview { display: grid; gap: 5px; }
.spreadsheet-preview > p { margin: 0; color: var(--shop-muted); font-size: 10px; }
.spreadsheet-preview .table-wrap { max-height: 210px; border: 1px solid var(--shop-line); border-radius: 10px; }
.spreadsheet-preview table { min-width: 620px; }
.spreadsheet-preview th, .spreadsheet-preview td { padding: 7px 9px; font-size: 10px; }
.duplicate-summary { display: block; margin-top: 4px; overflow-wrap: anywhere; font-size: 10px; }
.submission-results { border-style: solid; border-color: #dce6ae; background: #f8fae9; }
.submission-result { display: grid; grid-template-columns: 70px 48px minmax(0,1fr); gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: #fff; font-size: 11px; }
.submission-result strong { font-size: 10px; }
.submission-result small { overflow-wrap: anywhere; color: var(--shop-muted); }
.order-primary-cell { display: grid; gap: 3px; }
.order-primary-cell strong { overflow-wrap: anywhere; }
.detail-extra-fields { display: grid; grid-template-columns: 105px minmax(0,1fr); gap: 8px; padding-top: 7px; font-size: 11px; }
.detail-extra-fields > div { min-width: 0; }
.detail-extra-fields p { margin-top: 0; }
.result-success strong { color: #68752f; }
.result-failed strong { color: var(--shop-red); }
.result-pending strong { color: #8b642e; }
.result-skipped strong { color: var(--shop-muted); }
.qr-scanner-layer { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(32,37,27,.55); }
.qr-scanner-card { width: min(560px, 100%); max-height: 92vh; overflow: auto; padding: 18px; border: 1px solid var(--shop-line); border-radius: 22px; background: #fff; box-shadow: 0 24px 70px rgba(32,37,27,.28); }
.qr-video-wrap { position: relative; overflow: hidden; min-height: 280px; border-radius: 14px; background: #10140d; }
.qr-video-wrap video { display: block; width: 100%; min-height: 280px; max-height: 58vh; object-fit: cover; }
.qr-scan-frame { position: absolute; inset: 18% 18%; border: 2px solid rgba(221,235,120,.92); border-radius: 18px; box-shadow: 0 0 0 999px rgba(16,20,13,.22); pointer-events: none; }
.btn.tiny { min-height: 27px; padding: 5px 8px; font-size: 10px; }
.btn.subtle { border-color: transparent; background: #fff1ef; color: var(--shop-red); }
@media (max-width: 760px) {
  .shop-topbar { padding: 11px 14px; }
  .shop-topbar .brand small { display: none; }
  .top-user > span:not(.user-dot) { display: none; }
  .shop-main { padding: 22px 14px 45px; }
  .shop-page-head { align-items: flex-start; flex-direction: column; }
  .shop-stats.stats-three, .shop-stats { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
  .shop-stats .stat { min-height: 110px; padding: 13px; }
  .shop-stats .stat-value { font-size: 22px; }
  .filterbar { align-items: stretch; flex-direction: column; }
  .filter-field, .filter-field.keyword { flex-basis: auto; min-width: 0; }
  .filterbar > .btn { width: 100%; }
  .detail-grid, .detail-groups { grid-template-columns: 1fr; }
  .detail-group-wide { grid-column: auto; }
  .order-progress { grid-template-columns: 1fr; gap: 0; padding: 4px 0 0; }
  .order-progress-step { grid-template-columns: 30px minmax(0, 1fr); justify-items: start; min-height: 49px; padding: 2px 0; text-align: left; }
  .order-progress-step:not(:last-child)::after { top: 31px; right: auto; bottom: -1px; left: 14px; width: 2px; height: auto; }
  .order-progress-copy { align-self: center; }
  .auth-card { padding: 25px 20px; }
  .auth-startup { padding: 25px 20px; }
  .modal-body .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .submission-field-label { align-items: flex-start; flex-direction: column; }
  .submission-field-actions { justify-content: flex-start; }
  .submission-result { grid-template-columns: 58px 45px minmax(0,1fr); }
  .spreadsheet-controls { align-items: stretch; flex-direction: column; }
  .spreadsheet-controls .filter-field { min-width: 0; }
}
