body[data-role="merchant"] { --brand: #00ae53; --ink: #242824; --muted: #737b76; color: var(--ink); background: #f2f5f3; }
body[data-role="merchant"] .app-shell { display: block; background: transparent; }
body[data-role="merchant"] .main { padding: 0; }
body[data-role="merchant"] .topbar { display: none; }
.s-app { max-width: 760px; min-height: 100dvh; margin: auto; background: white; padding-bottom: 108px; }
.s-app *, .s-dialog * { letter-spacing: 0; }
.s-app button, .s-dialog button { color: inherit; background: none; font: inherit; }
.s-app button:disabled, .s-dialog button:disabled { opacity: .45; cursor: not-allowed; }
.s-app button:focus-visible, .s-dialog button:focus-visible { outline: 3px solid #1881cf; outline-offset: 3px; }
.s-app svg, .s-dialog svg { width: 24px; height: 24px; stroke-width: 1.8; flex: 0 0 auto; vertical-align: middle; }
.s-app h1, .s-app h2, .s-app h3, .s-dialog h2 { margin: 0; overflow-wrap: anywhere; line-height: 1.4; }
.s-app h1 { font-size: 28px; }
.s-app h2, .s-dialog h2 { font-size: 22px; }
.s-app h3 { font-size: 17px; }
.s-app p, .s-dialog p { line-height: 1.6; }
.s-app img { display: block; object-fit: cover; background: #eef4f0; }
.s-icon { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; display: inline-grid; place-items: center; padding: 0; }
.s-icon:hover { background: #eff8f4; }
.s-store-banner { display: flex; gap: 10px; align-items: center; padding: 24px; min-height: 86px; font-size: 15px; }
.s-store-banner.closed { background: #ffd4cc; color: #3e241f; }
.s-store-banner.closed > svg { color: #c53120; }
.s-store-banner.open { background: #e2f7eb; color: #1c5540; }
.s-store-banner > span { flex: 1; min-width: 0; }
.s-store-banner > button { color: #0069b4; font-weight: 650; min-height: 42px; flex-shrink: 0; padding: 6px; }
.s-preview { padding: 7px 24px; font-size: 11px; color: #788078; background: #f7f9f7; }
.s-header { display: flex; align-items: center; gap: 10px; padding: 24px 22px 16px; }
.s-header h1 { flex: 1; min-width: 0; }
.s-location { display: flex; align-items: center; gap: 8px; padding: 18px 24px 0; position: relative; }
.s-location > strong { font-size: 16px; font-weight: 500; flex: 1; overflow-wrap: anywhere; }
.s-notification { position: absolute; top: 14px; right: 23px; min-width: 19px; height: 19px; padding: 1px 4px; border-radius: 15px; background: #cf2c17; color: white; font-size: 11px; text-align: center; }
.s-section { padding: 20px 24px; }
.s-section > h2 { margin-bottom: 20px; }
.s-performance { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 30px; }
.s-performance > button { border: 1px solid #e5e8e5; border-radius: 8px; min-height: 195px; padding: 18px; text-align: left; display: flex; flex-direction: column; align-items: start; }
.s-performance > .s-preparing { background: #05784c; color: white; border-color: transparent; }
.s-performance > .s-preparing.paused { background: #d52c17; }
.s-performance strong { display: block; font-size: 29px; margin-top: auto; line-height: 1.4; }
.s-performance small { font-size: 13px; opacity: .75; margin-top: 3px; }
.s-state-pill { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 24px; background: white; color: #434a43; font-size: 14px; }
.s-state-pill > span { width: 10px; height: 10px; border-radius: 50%; background: #079753; }
.paused .s-state-pill > span { background: #d52c17; }
.s-state-pill svg { width: 16px; height: 16px; }
.s-sales > span { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.s-sales > span svg { color: #999ea4; padding: 8px; background: #f7f8fa; border-radius: 50%; width: 40px; height: 40px; }
.s-promo { display: flex; width: 100%; align-items: center; gap: 16px; min-height: 130px; border: 1px solid #f2f3f2; border-radius: 8px; box-shadow: 0 5px 18px #16362309; padding: 18px; text-align: left; }
.s-promo > span:nth-child(2) { flex: 1; min-width: 0; }
.s-promo small { display: block; margin-top: 6px; color: #727972; line-height: 1.6; font-size: 13px; }
.s-promo-icon svg { width: 38px; height: 38px; color: #13a0d0; }
.s-shortcuts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 30px 10px; margin: 35px 0 10px; }
.s-shortcuts button { padding: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.s-shortcuts button > span { width: 52px; height: 52px; border: 1px solid #e4e8e5; border-radius: 8px; display: grid; place-items: center; color: #47606b; }
.s-shortcuts button > small { font-size: 12px; text-align: center; overflow-wrap: anywhere; }
.s-shortcuts svg { width: 27px; height: 27px; }
.s-bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 760px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: #fffffff7; border-top: 1px solid #ecefeb; padding: 10px 8px max(14px, env(safe-area-inset-bottom)); z-index: 10; }
.s-bottom-nav button { display: flex; align-items: center; flex-direction: column; gap: 5px; color: #7c817c; min-height: 48px; padding: 0; }
.s-bottom-nav .active { color: #00a94f; font-weight: 700; }
.s-bottom-nav .active svg { stroke-width: 2.6; }
.s-bottom-nav small { font-size: 11px; }
.s-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid #e5e8e6; scrollbar-width: none; }
.s-tabs > button { min-width: max-content; flex: 1; padding: 17px 18px; border-bottom: 2px solid transparent; font-size: 14px; }
.s-tabs > .active { color: #005d40; border-bottom-color: #007c51; font-weight: 700; }
.s-empty { padding: 38px 16px; text-align: center; color: #828982; }
.s-empty > svg { width: 35px; height: 35px; color: #acb9b0; margin-bottom: 16px; }
.s-empty h3 { font-size: 16px; font-weight: 500; }
.s-empty p { font-size: 13px; }
.s-link-row { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; padding: 24px 0; border-bottom: 1px solid #eceeeb; }
.s-link-row > span:nth-child(2) { flex: 1; min-width: 0; }
.s-link-row strong, .s-link-row small { display: block; overflow-wrap: anywhere; }
.s-link-row small { color: #7a817a; font-size: 13px; margin-top: 7px; line-height: 1.5; }
.s-symbol { width: 42px; height: 42px; background: #f0faf5; border-radius: 50%; display: grid; place-items: center; color: #197450; flex-shrink: 0; }
.s-link-row > svg { width: 18px; }
.s-spaced { margin-top: 28px !important; margin-bottom: 10px !important; }
.s-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.s-between > * { min-width: 0; overflow-wrap: anywhere; }
.s-muted { color: #7b847b; font-size: 13px; overflow-wrap: anywhere; }
.s-order { border: 1px solid #dfe5df; border-radius: 8px; padding: 18px; margin: 12px 0; }
.s-order > small { display: block; margin-top: 8px; }
.s-status { color: #008253; font-size: 12px; flex-shrink: 0; }
.s-order ul { padding: 0; margin: 20px 0; list-style: none; }
.s-order li { display: flex; gap: 8px; flex-wrap: wrap; padding: 6px 0; font-size: 14px; }
.s-order li > span { flex: 1; }
.s-order li small { flex: 0 0 100%; color: #b76a1c; overflow-wrap: anywhere; }
.s-primary { background: #00ae53 !important; color: white !important; font-weight: 650 !important; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 26px; border: 0; }
.s-primary:hover { background: #009545 !important; }
.s-order .s-primary { font-size: 13px; min-height: 40px; padding: 9px 15px; }
.s-filters { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 14px; scrollbar-width: none; }
.s-chip { display: inline-flex; gap: 8px; align-items: center; padding: 10px 14px; border: 1px solid #cdd4ce; border-radius: 24px; min-height: 42px; flex-shrink: 0; font-size: 14px !important; }
.s-chip.active { color: #007b4c; border-color: #007b4c; font-weight: 650; }
.s-chip select { background: transparent; border: 0; color: #434e45; min-width: 0; max-width: 180px; font: inherit; }
.s-search { display: flex; align-items: center; gap: 10px; background: #f7f8f6; border-radius: 8px; padding: 10px 14px; margin: 6px 0 18px; }
.s-search > svg { color: #8d968e; width: 19px; }
.s-search input { width: 100%; min-width: 0; background: transparent; border: 0; font: inherit; outline: 0; font-size: 16px; }
.s-search:focus-within { outline: 2px solid #008958; }
.s-category { margin: 10px 0; }
.s-category-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 16px 2px; }
.s-category-title h2 { font-size: 21px; text-align: left; }
.s-category-title > span { border-radius: 50%; background: #eefaf5; width: 34px; height: 34px; display: grid; place-items: center; color: #005c44; flex-shrink: 0; }
.s-category-title svg { width: 18px; }
.s-menu-item { display: flex; gap: 14px; padding: 10px; align-items: center; border: 1px solid #dce1db; border-radius: 8px; margin: 10px 0; }
.s-menu-open { display: flex; gap: 14px; align-items: center; flex: 1; min-width: 0; text-align: left; padding: 0; }
.s-menu-open img { width: 64px; height: 64px; border-radius: 6px; flex-shrink: 0; }
.s-menu-open > span { min-width: 0; }
.s-menu-open strong { display: block; font-size: 15px; overflow-wrap: anywhere; }
.s-menu-open small { display: block; font-size: 13px; color: #727b72; margin-top: 6px; }
.s-switch { width: 38px; height: 23px; background: #bdc4bd !important; border-radius: 14px; padding: 0; flex-shrink: 0; position: relative; }
.s-switch::after { content: ""; position: absolute; left: 3px; top: 3px; height: 17px; width: 17px; border-radius: 50%; background: white; box-shadow: 0 1px 3px #12332233; }
.s-switch.on { background: #00b257 !important; }
.s-switch.on::after { left: 18px; }
.s-fab { position: fixed; bottom: 100px; width: min(100%, 760px); left: 50%; transform: translateX(-50%); padding: 0 24px; display: flex; justify-content: end; pointer-events: none; z-index: 9; }
.s-fab button { display: flex; gap: 12px; align-items: center; justify-content: center; background: #00583e; color: white; border-radius: 32px; height: 60px; width: 98px; box-shadow: 0 5px 20px #07322112; pointer-events: auto; }
.s-fab svg:last-child { width: 16px; }
.s-edit-view { padding-bottom: 130px; }
.s-edit-view .s-header > .s-icon:first-of-type { order: -1; }
.s-step { color: #738175; font-size: 12px; margin-bottom: 20px; }
.s-field { display: flex; flex-direction: column; gap: 10px; margin: 0 0 24px; border: 0; padding: 0; min-width: 0; }
.s-field > span, .s-field legend { font-size: 14px; color: #525c54; }
.s-field b { color: #cb3924; font-weight: 500; }
.s-field input, .s-field textarea, .s-field select { display: block; width: 100%; min-width: 0; padding: 15px; border: 1px solid #d2d9d2; background: white; border-radius: 8px; color: #2e3830; font: inherit; font-size: 16px; }
.s-field textarea { resize: vertical; line-height: 1.5; }
.s-field small { font-size: 12px; color: #8a938b; }
#descriptionCount { text-align: right; }
.s-photo-list { display: flex; flex-wrap: wrap; gap: 12px; margin: 5px 0; }
.s-photo { position: relative; width: 114px; height: 114px; }
.s-photo img { width: 100%; height: 100%; border-radius: 8px; }
.s-photo > div { position: absolute; bottom: 4px; right: 4px; display: flex; gap: 4px; }
.s-photo .s-icon { background: white; width: 32px; height: 32px; flex-basis: 32px; }
.s-photo .s-icon svg { width: 18px; }
.s-photo-add { border: 1px dashed #b9c4ba; border-radius: 8px; width: 114px; height: 114px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; cursor: pointer; position: relative; overflow: hidden; }
.s-photo-add strong { font-size: 12px; }
.s-photo-add input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.s-photo-add:focus-within { outline: 3px solid #1881cf; }
.s-checkboxes { display: flex; gap: 20px; align-items: center; padding: 10px 0; }
.s-checkboxes label { display: flex; gap: 8px; align-items: center; }
.s-checkboxes input { width: 18px; height: 18px; accent-color: #00aa55; }
.s-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.s-edit-bottom { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 760px); display: flex; align-items: center; gap: 14px; padding: 20px 24px max(24px, env(safe-area-inset-bottom)); background: #fffffff5; box-shadow: 0 -5px 20px #163a1a09; z-index: 10; }
.s-edit-bottom > .s-primary { flex: 1; min-height: 54px; }
.s-edit-bottom > .s-icon:first-child { color: #bb2b20; background: #fff3f1; }
.s-info { display: flex; gap: 16px; align-items: center; padding: 18px; background: #edfafc; border: 1px solid #d4eef1; border-radius: 8px; font-size: 14px; margin-bottom: 20px; }
.s-info > span { flex: 1; min-width: 0; line-height: 1.6; }
.s-info strong, .s-info small { display: block; }
.s-info small { color: #718381; line-height: 1.6; margin-top: 5px; }
.s-green { background: #f0fcf3; border-color: #edf9ee; }
.s-text { color: #006caf !important; font-size: 14px !important; display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; }
.s-info .s-text { display: block; margin-top: 8px; font-weight: 650; }
.s-finance-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 30px 4px; min-height: 220px; }
.s-finance-hero > div > span { color: #8a928a; font-size: 14px; }
.s-finance-hero strong { display: block; font-size: 28px; margin: 4px 0 24px; }
.s-finance-hero strong small { font-size: 13px; font-weight: 400; color: #879487; }
.s-wallet { display: grid; place-items: center; width: 130px; height: 130px; background: #e9faf0; border-radius: 50%; transform: rotate(-12deg); color: #00ac59; }
.s-wallet svg { width: 76px; height: 76px; stroke-width: 1.5; }
.s-summary { border-block: 1px solid #e4e9e3; padding: 24px 0; margin-bottom: 26px; }
.s-summary h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.s-summary dl { margin: 0; }
.s-summary dl > div { display: flex; justify-content: space-between; gap: 15px; padding: 9px 0; font-size: 14px; }
.s-summary dd { margin: 0; }
.s-download { border-top: 1px solid #ecf0e9; padding-top: 26px; margin-top: 22px; }
.s-download h2 { margin-bottom: 16px; }
.s-download small { display: block; margin-top: 18px; line-height: 1.6; }
.s-transaction { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 0; border-bottom: 1px solid #e4e8e1; font-size: 14px; }
.s-transaction > span { min-width: 0; overflow-wrap: anywhere; }
.s-transaction small { display: block; color: #7c897d; font-size: 12px; margin-top: 8px; }
.s-feedback-summary { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; background: #edfaf9; border-radius: 8px; margin: 24px 0 32px; padding: 22px; }
.s-feedback-summary > div > span { font-size: 13px; color: #778d84; }
.s-feedback-summary strong { display: block; font-size: 28px; margin-top: 10px; }
.s-feedback-summary > svg { width: 58px; height: 58px; color: #009775; }
.s-feedback-summary .s-text { flex: 0 0 100%; border-top: 1px solid #d0e9e4; padding-top: 16px; justify-content: space-between; }
.s-star { color: #e5b300; }
.s-image-row { display: flex; align-items: center; gap: 16px; width: 100%; padding: 24px 0; text-align: left; border-bottom: 1px solid #eceeeb; }
.s-image-row img { width: 95px; height: 95px; border-radius: 8px; }
.s-image-row > span { flex: 1; min-width: 0; }
.s-image-row small { display: block; margin-top: 8px; color: #7c877d; font-size: 13px; line-height: 1.5; }
.s-employee { display: flex; align-items: center; width: 100%; gap: 14px; text-align: left; padding: 24px 0; border-bottom: 1px solid #edf0eb; }
.s-avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #eefaf7; font-size: 23px; color: #18594c; flex-shrink: 0; }
.s-employee > span:nth-child(2) { flex: 1; min-width: 0; }
.s-employee strong, .s-employee small { display: block; overflow-wrap: anywhere; }
.s-employee small { margin-top: 5px; color: #849087; font-size: 13px; }
.s-dialog { border: none; border-radius: 8px; padding: 24px; width: min(480px, calc(100% - 28px)); max-height: calc(100dvh - 40px); color: #242c26; }
.s-dialog::backdrop { background: #15281fb0; }
.s-dialog > .s-icon { float: right; margin: -10px -10px 4px 8px; }
.s-dialog h2 { margin: 6px 0 24px; font-size: 21px; }
.s-dialog form { clear: both; }
.s-dialog .s-primary { width: 100%; }
.s-bottom-nav, .s-edit-bottom { background: #fff; }
.s-danger { background: #ce3426 !important; color: white !important; padding: 14px 24px; border-radius: 24px; width: 100%; }
.s-app details { border-bottom: 1px solid #e7ece5; padding: 20px 0; }
.s-app summary { cursor: pointer; font-size: 16px; }
.s-app details p { font-size: 14px; color: #737f74; }
body[data-role="merchant"] .toast { bottom: 110px; max-width: calc(100% - 32px); white-space: normal; z-index: 30; }
@media (min-width: 1000px) { .s-app { border-inline: 1px solid #e6ebe4; } .s-performance > button { min-height: 220px; } .s-section { padding-inline: 28px; } }
@media (max-width: 480px) {
  .s-section { padding: 18px 16px; }
  .s-header { padding: 20px 16px 12px; }
  .s-header h1 { font-size: 25px; }
  .s-store-banner { padding: 16px; min-height: 76px; font-size: 13px; gap: 8px; }
  .s-preview { padding-inline: 16px; }
  .s-location { padding: 14px 16px 0; }
  .s-notification { right: 16px; }
  .s-performance { gap: 10px; }
  .s-performance > button { padding: 12px; min-height: 170px; }
  .s-performance strong { font-size: 25px; }
  .s-sales > span { font-size: 13px; gap: 6px; }
  .s-sales > span svg { width: 32px; height: 32px; padding: 6px; }
  .s-state-pill { padding: 8px 10px; gap: 6px; font-size: 12px; }
  .s-shortcuts { gap: 26px 6px; }
  .s-shortcuts button > span { width: 46px; height: 46px; }
  .s-shortcuts button > small { font-size: 10px; }
  .s-promo { padding: 16px 12px; gap: 12px; }
  .s-promo strong { font-size: 15px; }
  .s-promo small { font-size: 12px; }
  .s-promo-icon svg { width: 30px; height: 30px; }
  .s-tabs > button { padding-inline: 14px; font-size: 13px; }
  .s-menu-item { gap: 10px; }
  .s-menu-open { gap: 10px; }
  .s-menu-open img { width: 52px; height: 58px; }
  .s-menu-open strong { font-size: 14px; }
  .s-menu-open small { font-size: 12px; }
  .s-edit-bottom { padding-inline: 16px; }
  .s-feedback-summary { gap: 12px; padding: 18px; }
  .s-feedback-summary > svg { width: 44px; height: 44px; }
  .s-link-row strong { font-size: 16px; }
  .s-wallet { width: 100px; height: 100px; }
  .s-wallet svg { width: 60px; height: 60px; }
}
