:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  --primary: #1677ff;
  --primary-soft: #eaf3ff;
  --success: #15966b;
  --danger: #dc3f4e;
  --warning: #d98b16;
  --ink: #162033;
  --muted: #748197;
  --line: #e3e8f0;
  --surface: #ffffff;
  --background: #f3f6fa;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; background: var(--background); color: var(--ink); }
body { overflow: hidden; }
button, input, textarea { font: inherit; letter-spacing: 0; }
button { -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.login-screen {
  min-height: 100dvh;
  padding: calc(var(--safe-top) + 48px) 24px calc(var(--safe-bottom) + 28px);
  background: linear-gradient(180deg, #f1f7ff 0, #fff 38%, #fff 100%);
}
.login-brand { display: flex; align-items: center; gap: 12px; max-width: 420px; margin: 0 auto 58px; }
.brand-mark {
  display: block;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(22, 119, 255, .2);
}
.login-brand strong { display: block; font-size: 20px; line-height: 1.35; }
.login-brand span:last-child { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.login-form { width: 100%; max-width: 420px; margin: 0 auto; }
.login-form header { margin-bottom: 28px; }
.login-form h1 { margin: 0; font-size: 26px; line-height: 1.25; }
.login-form header p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.login-form label { display: block; margin-top: 18px; }
.login-form label > span { display: block; margin-bottom: 8px; color: #40506a; font-size: 14px; font-weight: 600; }
.login-form input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid #ccd5e2;
  border-radius: 7px;
  outline: none;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
}
.login-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22, 119, 255, .12); }
.form-error { min-height: 21px; margin: 10px 0 8px; color: var(--danger); font-size: 13px; line-height: 1.6; }
.primary-button {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 7px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}
.primary-button:disabled { opacity: .55; }

.mobile-app { width: 100%; max-width: 520px; height: 100dvh; margin: 0 auto; background: var(--background); position: relative; overflow: hidden; }
.app-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: calc(62px + var(--safe-top));
  padding: var(--safe-top) 12px 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
}
.app-header-title { min-width: 0; display: flex; align-items: center; }
.app-header-title h1 { margin: 0; font-size: 17px; line-height: 1.2; font-weight: 700; }

.app-content {
  --pull-offset: 0px;
  --pull-rotation: 0deg;
  position: absolute;
  inset: calc(62px + var(--safe-top)) 0 calc(60px + var(--safe-bottom));
  overflow: hidden;
}
.mobile-view {
  display: none;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}
.mobile-view.active {
  display: block;
  transform: translate3d(0, var(--pull-offset), 0);
  transition: transform .24s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}
.app-content.is-pulling .mobile-view.active { transition: none; }
.pull-refresh-indicator {
  position: absolute;
  z-index: 8;
  top: 8px;
  left: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 224, 234, .9);
  border-radius: 50%;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 4px 14px rgba(31, 49, 74, .14);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, calc(var(--pull-offset) - 50px), 0);
  transition: transform .24s cubic-bezier(.22, 1, .36, 1), opacity .16s ease;
}
.app-content.is-pulling .pull-refresh-indicator,
.app-content.is-refreshing .pull-refresh-indicator { opacity: 1; }
.app-content.is-pulling .pull-refresh-indicator { transition: none; }
.pull-refresh-spinner {
  width: 19px;
  height: 19px;
  border: 2px solid #d9e0ea;
  border-top-color: var(--primary);
  border-radius: 50%;
  transform: rotate(var(--pull-rotation));
}
.app-content.is-armed .pull-refresh-spinner { border-right-color: var(--primary); }
.app-content.is-refreshing .pull-refresh-spinner { animation: pull-refresh-spin .72s linear infinite; }
@keyframes pull-refresh-spin { to { transform: rotate(360deg); } }
.home-content { padding: 14px 12px 26px; }
.page-loading { padding: 72px 20px; color: var(--muted); text-align: center; font-size: 14px; }
.inline-error { margin: 12px; padding: 10px 12px; border: 1px solid #f6cbd0; border-radius: 7px; background: #fff2f3; color: #b72938; font-size: 13px; line-height: 1.5; }

.turnover-card {
  padding: 17px 16px 15px;
  border: 1px solid #d7e5f8;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 4px 16px rgba(32, 60, 96, .06);
}
.turnover-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.turnover-card header p { margin: 0; color: #46556c; font-size: 14px; font-weight: 600; }
.turnover-card header span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.date-control input {
  width: 126px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid #d6deea;
  border-radius: 6px;
  outline: none;
  background: #fff;
  color: #40506a;
  font-size: 13px;
}
.turnover-card > strong { display: block; margin-top: 13px; color: #116ed8; font-size: 30px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.turnover-foot { min-width: 0; margin-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; }
.turnover-foot > span:last-child { min-width: 0; color: var(--muted); text-align: right; overflow-wrap: anywhere; }
.compare { white-space: nowrap; font-style: normal; }
.compare.up { color: var(--success); }
.compare.down { color: var(--danger); }
.compare.flat { color: var(--muted); }

.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 9px; }
.metric-card {
  min-width: 0;
  min-height: 124px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.metric-card > span { color: #526077; font-size: 13px; font-weight: 600; }
.metric-card > strong { display: block; margin-top: 10px; color: var(--ink); font-size: 21px; line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric-card.refund > strong { color: var(--danger); }
.metric-card.effective > strong { color: var(--success); }
.metric-card.ad > strong { color: var(--warning); }
.metric-card footer { margin-top: 12px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.metric-card footer span { display: block; margin-top: 3px; overflow-wrap: anywhere; }

.fulfillment-strip {
  min-height: 76px;
  margin-top: 9px;
  padding: 12px 8px;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.fulfillment-strip > div { display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: 4px; padding: 0 12px; }
.fulfillment-strip span { color: #526077; font-size: 13px; }
.fulfillment-strip strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.fulfillment-strip em { color: var(--muted); font-size: 12px; font-style: normal; }
.fulfillment-strip i { width: 1px; height: 34px; background: var(--line); }

.content-section { margin-top: 20px; }
.section-heading { padding: 0 3px 10px; display: flex; align-items: end; justify-content: space-between; }
.section-heading h2 { margin: 0; font-size: 16px; line-height: 1.35; }
.section-heading p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.shop-list { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.shop-row { padding: 14px; border-bottom: 1px solid #edf0f5; }
.shop-row:last-child { border-bottom: 0; }
.shop-row-header { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shop-identity { min-width: 0; display: flex; align-items: center; gap: 9px; }
.platform-logo { width: 25px; height: 25px; flex: 0 0 auto; border-radius: 5px; object-fit: contain; }
.shop-identity strong { display: block; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-identity span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.shop-row-header > strong { flex: 0 0 auto; color: #116ed8; font-size: 17px; font-variant-numeric: tabular-nums; }
.shop-row-metrics { margin-top: 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.shop-row-metrics div { min-width: 0; }
.shop-row-metrics span { display: block; color: #8a94a5; font-size: 10px; }
.shop-row-metrics strong { display: block; margin-top: 4px; color: #3f4c61; font-size: 12px; line-height: 1.3; font-weight: 600; overflow-wrap: anywhere; }
.shop-empty { padding: 34px 16px; color: var(--muted); text-align: center; font-size: 13px; }

.trend-chart { min-height: 190px; overflow-x: auto; overflow-y: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface);}
.trend-chart svg { display: block; width: 660px; height: 190px; }
.trend-grid { stroke: #e8edf4; stroke-width: 1; }
.trend-bar { fill: #2f91ef; opacity: .9; }
.trend-bar.today { fill: var(--success); }
.trend-axis { fill: #7d899b; font-size: 10px; }
.trend-empty { height: 190px; display: grid; place-items: center; color: var(--muted); font-size: 13px; }

.mobile-report-view {
  padding: 12px 12px 24px;
  background: var(--background);
}
.mobile-report-search {
  position: sticky;
  z-index: 4;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 8px;
  padding: 2px 0 10px;
  background: var(--background);
}
.mobile-report-search input {
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
}
.mobile-report-search input:focus {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}
.mobile-report-search button {
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.mobile-report-content { min-height: 120px; }
.mobile-report-summary {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
  color: var(--muted);
  font-size: 12px;
}
.mobile-report-list { display: grid; gap: 8px; }
.mobile-report-card {
  min-width: 0;
  padding: 13px 14px;
  border: 0;
  border-radius: 8px;
  background: #fdfdfc;
  box-shadow:
    0 12px 28px rgb(29 36 48 / 8%),
    0 0 44px 12px rgb(255 255 255 / 58%);
}
.mobile-report-card header,
.mobile-report-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mobile-report-card-head { min-height: 24px; }
.mobile-report-platform-logo {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 5px;
  object-fit: contain;
}
.mobile-report-card-shop { font-weight: 600; }
.mobile-report-card-head .mobile-report-card-shop img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.mobile-report-card-product {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e3e8f0;
}
.mobile-report-product-summary {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: #40506a;
  font-size: 12px;
  line-height: 18px;
}
.mobile-report-product-code {
  min-width: 0;
  overflow: hidden;
  color: #4b5b72;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mobile-report-product-amount {
  align-self: center;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mobile-report-order-details {
  min-width: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.mobile-report-order-details > div {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}
.mobile-report-order-details dt {
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}
.mobile-report-order-details dd {
  min-width: 0;
  margin: 0;
  color: #40506a;
  font-size: 12px;
  line-height: 18px;
  overflow-wrap: anywhere;
}
.mobile-report-card-order {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e3e8f0;
}
.mobile-report-card-main {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}
.mobile-report-card-main.is-without-product-image { grid-template-columns: minmax(0, 1fr); }
.mobile-report-card-copy { min-width: 0; }
.mobile-report-product-image {
  width: 60px;
  height: 60px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid #e3e8f0;
  border-radius: 8px;
  background: #f3f6fa;
}
.mobile-report-product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mobile-report-product-image.is-empty {
  color: #9aa4b4;
  font-size: 10px;
}
.mobile-report-shop {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #4b5b72;
  font-size: 12px;
}
.mobile-report-shop img { width: 20px; height: 20px; border-radius: 4px; object-fit: cover; }
.mobile-report-shop span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-report-status {
  flex: 0 0 auto;
  max-width: 42%;
  overflow: hidden;
  padding: 0;
  background: transparent;
  color: #4b5b72;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mobile-report-card h3 {
  margin: 12px 0 5px;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mobile-report-card p {
  min-height: 19px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 19px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mobile-report-card footer { margin-top: 11px; color: var(--muted); font-size: 12px; }
.mobile-report-card footer strong { color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.mobile-report-empty {
  padding: 72px 20px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}
.mobile-report-auto-loading {
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}

.assistant-view { overflow: hidden; background: #f4f7fb; }
.assistant-messages { position: absolute; inset: 0 0 68px; overflow-y: auto; padding: 14px 12px 24px; }
.assistant-welcome { padding: 52px 12px 20px; text-align: center; }
.assistant-welcome .welcome-mark { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 8px; background: var(--primary); color: #fff; font-weight: 700; }
.assistant-welcome h2 { margin: 16px 0 6px; font-size: 18px; }
.assistant-welcome p { margin: 0; color: var(--muted); font-size: 13px; }
.assistant-suggestions { margin-top: 24px; display: grid; gap: 9px; }
.assistant-suggestions button { min-height: 44px; padding: 10px 13px; border: 1px solid #d9e2ee; border-radius: 7px; background: #fff; color: #33445e; text-align: left; font-size: 13px; }
.load-older { display: block; margin: 0 auto 15px; padding: 7px 12px; border: 0; background: transparent; color: #5d6b7f; font-size: 12px; }
.chat-message { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 16px; }
.chat-message.user { flex-direction: row-reverse; }
.chat-avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; border-radius: 6px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; }
.chat-message.user .chat-avatar { background: var(--success); }
.chat-body { max-width: calc(100% - 54px); }
.chat-bubble { padding: 10px 12px; border: 1px solid #dde4ee; border-radius: 8px; background: #fff; color: #26364e; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; box-shadow: 0 2px 7px rgba(31, 52, 79, .04); }
.chat-message.user .chat-bubble { border-color: var(--primary); background: var(--primary); color: #fff; }
.chat-bubble strong { font-weight: 700; }
.chat-time { display: block; margin-top: 4px; color: #9aa4b4; font-size: 10px; }
.chat-message.user .chat-time { text-align: right; }
.typing-dots { display: flex; gap: 4px; padding: 4px 0; }
.typing-dots i { width: 6px; height: 6px; border-radius: 50%; background: #94a1b3; animation: typing 1s infinite ease-in-out; }
.typing-dots i:nth-child(2) { animation-delay: .14s; }
.typing-dots i:nth-child(3) { animation-delay: .28s; }
@keyframes typing { 0%, 70%, 100% { transform: translateY(0); opacity: .45; } 35% { transform: translateY(-3px); opacity: 1; } }
.assistant-composer {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 68px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 1fr 62px;
  align-items: end;
  gap: 8px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .98);
}
.assistant-composer textarea { width: 100%; min-height: 42px; max-height: 108px; padding: 10px 12px; resize: none; border: 1px solid #ccd6e3; border-radius: 7px; outline: none; color: var(--ink); font-size: 15px; line-height: 20px; }
.assistant-composer textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(22, 119, 255, .1); }
.assistant-composer button { height: 42px; border: 0; border-radius: 7px; background: var(--primary); color: #fff; font-size: 14px; font-weight: 600; }
.assistant-composer button:disabled { opacity: .55; }

.bottom-nav {
  position: fixed;
  z-index: 30;
  left: 50%;
  width: min(100%, 520px);
  bottom: 0;
  height: calc(60px + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .98);
  overscroll-behavior: none;
  touch-action: none;
  transform: translate3d(-50%, 0, 0);
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}
.bottom-nav button { min-width: 0; border: 0; background: transparent; color: #7d8899; display: grid; place-items: center; align-content: center; gap: 3px; font-size: 11px; }
.bottom-nav img { width: 22px; height: 22px; opacity: .72; }
.nav-ai-icon { display: inline-grid; place-items: center; width: 23px; height: 23px; border: 1.5px solid currentColor; border-radius: 5px; font-size: 9px; font-weight: 800; }
.nav-account-avatar { display: inline-grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: var(--primary-soft); color: #1264d5; font-size: 10px; font-weight: 700; }
.bottom-nav button.active { color: var(--primary); }
.bottom-nav button.active img { filter: invert(43%) sepia(97%) saturate(2692%) hue-rotate(203deg) brightness(99%) contrast(105%); opacity: 1; }
.bottom-nav button.menu-open { color: var(--primary); }
.bottom-nav button.menu-open img { filter: invert(43%) sepia(97%) saturate(2692%) hue-rotate(203deg) brightness(99%) contrast(105%); opacity: 1; }
.bottom-nav button.menu-open .nav-account-avatar { background: var(--primary); color: #fff; }

.report-menu-dialog {
  width: min(100%, 520px);
  max-width: none;
  margin: auto auto 0;
  padding: 10px 12px calc(14px + var(--safe-bottom));
  border: 0;
  border-radius: 12px 12px 0 0;
  background: #fff;
  opacity: 0;
  transform: translateY(100%);
  transition: transform .24s cubic-bezier(.22, 1, .36, 1), opacity .18s ease;
}
.report-menu-dialog.is-open { opacity: 1; transform: translateY(0); }
.report-menu-dialog::backdrop { background: rgba(17, 28, 45, .38); }
.report-menu-dialog header {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 8px;
}
.report-menu-dialog h2 { margin: 0; font-size: 17px; font-weight: 700; }
.report-menu-dialog header button {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #657187;
  font-size: 25px;
  line-height: 1;
}
.report-menu-dialog header button:active { background: #edf1f6; }
.report-menu-options { display: grid; gap: 4px; }
.report-menu-options button {
  position: relative;
  width: 100%;
  height: 52px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #33445e;
  text-align: left;
  font-size: 15px;
}
.report-menu-options button:active,
.report-menu-options button.is-current { background: var(--primary-soft); color: #1264d5; }
.report-menu-options img { width: 22px; height: 22px; opacity: .72; }
.report-menu-options button.is-current img { filter: invert(43%) sepia(97%) saturate(2692%) hue-rotate(203deg) brightness(99%) contrast(105%); opacity: 1; }
.report-menu-options i {
  width: 8px;
  height: 8px;
  justify-self: end;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.account-dialog { width: min(100%, 520px); margin: auto auto 0; padding: 10px 16px calc(14px + var(--safe-bottom)); border: 0; border-radius: 8px 8px 0 0; background: #fff; }
.account-dialog::backdrop { background: rgba(17, 28, 45, .38); }
.dialog-grabber { width: 38px; height: 4px; margin: 0 auto 18px; border-radius: 4px; background: #d8dee8; }
.account-dialog header { display: flex; align-items: center; gap: 12px; padding: 0 4px 18px; }
.dialog-avatar { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--primary-soft); color: #1264d5; font-weight: 700; }
.account-dialog header strong, .account-dialog header small { display: block; }
.account-dialog header strong { font-size: 15px; }
.account-dialog header small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.notification-setting { min-height: 58px; margin-bottom: 8px; padding: 9px 10px 9px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.notification-setting div { min-width: 0; }
.notification-setting strong, .notification-setting small { display: block; }
.notification-setting strong { font-size: 14px; }
.notification-setting small { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.25; }
.notification-setting button { flex: 0 0 auto; min-width: 64px; height: 34px; padding: 0 13px; border: 0; border-radius: 6px; background: var(--primary); color: #fff; font-size: 13px; }
.notification-setting button:disabled { background: #d7dee8; color: #7b8798; }
.test-notification-button { width: 100%; height: 42px; margin-bottom: 8px; border: 1px solid #cfe0f7; border-radius: 7px; background: var(--primary-soft); color: #1264d5; }
.logout-button { width: 100%; height: 46px; border: 0; border-radius: 7px; background: #f4f6f9; }
.dialog-close { width: 100%; height: 46px; border: 0; border-radius: 7px; color: #33445e; }
.logout-button { color: var(--danger); }
.dialog-close { margin-top: 8px; background: #fff; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: calc(82px + var(--safe-bottom)); max-width: calc(100% - 40px); transform: translateX(-50%); padding: 9px 13px; border-radius: 6px; background: rgba(22, 32, 51, .92); color: #fff; font-size: 12px; box-shadow: 0 7px 22px rgba(15, 23, 42, .2); }

@media (min-width: 521px) {
  body { background: #e9eef5; }
  .mobile-app, .login-screen { box-shadow: 0 0 30px rgba(32, 50, 76, .12); }
  .login-screen { max-width: 520px; margin: 0 auto; }
}

@media (max-width: 350px) {
  .home-content { padding-left: 8px; padding-right: 8px; }
  .turnover-card > strong { font-size: 27px; }
  .date-control input { width: 118px; }
  .metric-card { padding: 12px; }
  .metric-card > strong { font-size: 19px; }
  .shop-row-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
