/* 品牌层与粮专家对齐：温州粮仓蓝 / 玻璃面 / 系统字体
   交互层仍为手机端：底栏 + 子页返回 */
:root {
  --bg0: 245 245 247;
  --bg1: 242 242 247;
  --card: 255 255 255;
  --text: 29 29 31;
  --muted: 110 110 115;
  --line: 210 210 215;
  --brand: 0 113 227;
  --brand-hover: 0 102 204;
  --brand2: 41 151 255;
  --ok: 52 199 89;
  --warn: 255 159 10;
  --bad: 255 69 58;
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.04);
  --shadow-md: 0 2px 8px rgba(0,0,0,.04), 0 12px 40px rgba(0,0,0,.07);
  --glass-bg: rgba(255,255,255,.78);
  --glass-border: rgba(255,255,255,.65);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --nav-h: 62px;
  --phone-w: 390px;
  --phone-h: 780px;
  --touch: 46px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: rgb(var(--text));
  -webkit-font-smoothing: antialiased;
  background: #0b1220;
}

.m-app {
  min-height: 100%;
  min-height: 100dvh;
}

.phone-shell {
  position: relative;
  width: 100%;
  max-width: var(--phone-w);
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(900px 420px at 8% -8%, rgb(var(--brand) / .1), transparent 55%),
    radial-gradient(700px 380px at 96% 0%, rgb(var(--brand2) / .08), transparent 50%),
    linear-gradient(180deg, rgb(var(--bg0)), rgb(var(--bg1)));
}

.atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.atm-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 50% at 12% -5%, rgb(var(--brand) / .12), transparent 55%),
    radial-gradient(70% 45% at 100% 0%, rgb(var(--brand2) / .1), transparent 50%);
}
.atm-grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}
.atm-field {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -12%;
  height: 38%;
  background:
    radial-gradient(60% 80% at 50% 100%, rgb(var(--brand) / .22), transparent 70%);
  filter: blur(2px);
  animation: field-drift 12s var(--ease) infinite alternate;
}
@keyframes field-drift {
  from { transform: translateY(0); opacity: 0.85; }
  to { transform: translateY(-12px); opacity: 1; }
}

.desktop-tip {
  display: none;
  text-align: center;
  color: rgba(255,255,255,0.45);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  margin: 0.65rem 0 0;
}

@media (min-width: 520px) {
  body.m-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px;
    min-height: 100vh;
    min-height: 100dvh;
    background:
      radial-gradient(70% 45% at 50% 0%, rgb(var(--brand) / .35), transparent 55%),
      #0b1220;
  }
  .phone-shell {
    height: var(--phone-h);
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    min-height: 640px;
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow:
      0 1px 0 rgba(255,255,255,.08) inset,
      0 30px 70px rgba(0,0,0,.45);
  }
  .desktop-tip { display: block; }
}

@media (max-width: 519px) {
  .phone-shell {
    max-width: none;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    border-radius: 0;
  }
  .desktop-tip { display: none !important; }
  body.m-app {
    background:
      radial-gradient(900px 420px at 8% -8%, rgb(var(--brand) / .1), transparent 55%),
      linear-gradient(180deg, rgb(var(--bg0)), rgb(var(--bg1)));
  }
}

.status-bar {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(8px + var(--safe-t)) 20px 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgb(var(--text));
  letter-spacing: -0.01em;
}
.status-bar-light { color: rgba(255,255,255,.88); }
.status-dots { opacity: 0.5; font-size: 0.68rem; font-weight: 500; }

.eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: rgb(var(--muted));
}
.muted { color: rgb(var(--muted)); }
.hint { font-size: 0.76rem; color: rgb(var(--muted)); line-height: 1.5; }
.hidden { display: none !important; }
.stack { display: grid; gap: 0.85rem; }

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: rgb(var(--text));
  font-weight: 500;
}
label > span { letter-spacing: -0.01em; color: rgb(var(--muted)); }

.field, select.field, textarea {
  width: 100%;
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgb(var(--line) / .9);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 16px;
  color: rgb(var(--text));
  background: rgba(255,255,255,.92);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field:focus, select.field:focus, textarea:focus {
  outline: none;
  border-color: rgb(var(--brand) / .45);
  box-shadow: 0 0 0 3px rgb(var(--brand) / .12);
}

.btn {
  min-height: var(--touch);
  border: 1px solid rgb(var(--line) / .9);
  background: rgb(var(--card) / .92);
  color: rgb(var(--text));
  border-radius: 12px;
  padding: 0.75rem 1.15rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.15s var(--ease), background 0.2s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: rgb(var(--brand));
  border-color: transparent;
  color: #fff;
}
.btn-primary:active { background: rgb(var(--brand-hover)); }
.btn-ghost {
  background: transparent;
  border-color: rgb(var(--line) / .9);
}
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; }
.form-error { color: rgb(var(--bad)); font-size: 0.85rem; }

.icon-btn {
  min-width: 40px;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: rgb(var(--muted));
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0.2rem;
}
.nav-back {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: rgb(var(--brand));
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

/* —— Login —— */
.login-page .phone-shell {
  background:
    radial-gradient(900px 480px at 10% -10%, rgb(var(--brand) / .35), transparent 55%),
    radial-gradient(700px 400px at 100% 0%, rgb(var(--brand2) / .28), transparent 50%),
    linear-gradient(180deg, #0f1724, #0b1220 60%, #0a101c);
}
.login-page .atm-wash { background: transparent; }
.login-stage {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.login-hero {
  padding: 1.5rem 1.35rem 1.1rem;
  color: #fff;
  animation: hero-in 0.7s var(--ease) both;
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.brand-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,.65);
}
.brand-title {
  margin: 0.45rem 0 0.3rem;
  font-weight: 700;
  font-size: clamp(1.85rem, 8vw, 2.25rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.brand-sub {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,.58);
  letter-spacing: -0.01em;
}
.login-sheet {
  margin: 0.4rem 0.85rem calc(1rem + var(--safe-b));
  padding: 1.25rem 1.1rem 1.15rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: calc(var(--radius) + 4px);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
  animation: sheet-up 0.65s 0.08s var(--ease) both;
}
@keyframes sheet-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
.demo-hint { margin-top: 0.85rem; }
.reg-box {
  margin-top: 0.85rem;
  border-top: 1px solid rgb(var(--line) / .7);
  padding-top: 0.55rem;
}
.reg-box summary {
  cursor: pointer;
  color: rgb(var(--brand));
  font-size: 0.92rem;
  min-height: var(--touch);
  display: flex;
  align-items: center;
  list-style: none;
}
.reg-box summary::-webkit-details-marker { display: none; }

/* —— App chrome —— */
.app-header {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  min-height: 54px;
  padding: 0.2rem 0.7rem 0.45rem 0.75rem;
}
.header-main { flex: 1; min-width: 0; }
.app-header h1 {
  margin: 0.08rem 0 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panels {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.35rem 0.9rem 0.9rem;
  overscroll-behavior: contain;
}
.panel { display: none; }
.panel.active { display: block; animation: panel-in 0.28s var(--ease); }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.bottom-nav {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: calc(var(--nav-h) + var(--safe-b));
  padding: 0.35rem 0.25rem calc(0.4rem + var(--safe-b));
  background: var(--glass-bg);
  border-top: 1px solid rgb(var(--line) / .7);
  backdrop-filter: blur(16px);
}
.bottom-nav button {
  border: 0;
  background: transparent;
  color: rgb(var(--muted));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  min-height: var(--touch);
  font: inherit;
  font-size: 0.66rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  padding: 0.15rem;
  position: relative;
}
.bottom-nav button .nav-ico {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
}
.bottom-nav button.active {
  color: rgb(var(--brand));
  font-weight: 600;
}
.bottom-nav button.active::before {
  content: "";
  position: absolute;
  top: 2px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: rgb(var(--brand));
}

.phone-shell.subpage .bottom-nav { display: none; }
.phone-shell.subpage .panels {
  padding-bottom: calc(1rem + var(--safe-b));
}

/* —— Content —— */
.section {
  margin-bottom: 1.15rem;
  animation: panel-in 0.4s var(--ease) both;
}
.section:nth-child(2) { animation-delay: 0.04s; }
.section:nth-child(3) { animation-delay: 0.08s; }
.section:nth-child(4) { animation-delay: 0.12s; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.section-head h2,
.section-head h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-head .linkish {
  border: 0;
  background: none;
  color: rgb(var(--brand));
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
}

.hero-block {
  position: relative;
  padding: 0.55rem 0.15rem 1rem;
  overflow: hidden;
}
.hero-block::after {
  content: "粮";
  position: absolute;
  right: -0.1rem;
  top: -0.4rem;
  font-size: 6.2rem;
  font-weight: 700;
  color: rgb(var(--brand) / .06);
  line-height: 1;
  pointer-events: none;
  letter-spacing: -0.06em;
  animation: mark-fade 1.1s var(--ease) both;
}
@keyframes mark-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.hero-block .hello {
  position: relative;
  margin: 0;
  font-size: 0.72rem;
  color: rgb(var(--muted));
  letter-spacing: 0.04em;
}
.hero-block .name {
  position: relative;
  margin: 0.3rem 0 0.25rem;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.hero-block .role-line {
  position: relative;
  margin: 0;
  max-width: 17rem;
  font-size: 0.86rem;
  color: rgb(var(--muted));
  line-height: 1.45;
}
.cta-strip {
  margin-top: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgb(var(--brand)), rgb(var(--brand-hover)));
  color: #fff;
  border: 0;
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 10px 28px rgb(var(--brand) / .28);
}
.cta-strip strong {
  display: block;
  font-size: 1rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.15rem;
}
.cta-strip span { font-size: 0.78rem; opacity: 0.82; }
.cta-strip .cta-arrow {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 1.1rem;
}

.grid-mods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.grid-mods.is-sorting {
  user-select: none;
  touch-action: none;
}
.grid-mods.is-sorting .mod:not(.is-drag-source) {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease;
}
.mod {
  position: relative;
  text-align: left;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  border-radius: var(--radius);
  padding: 0.95rem 0.9rem 0.85rem;
  min-height: 92px;
  cursor: pointer;
  font: inherit;
  touch-action: manipulation;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), opacity 0.15s ease;
  will-change: transform;
}
.mod:active { transform: scale(0.98); }
.mod.is-drag-source {
  opacity: 0.35;
  transform: scale(0.98);
  box-shadow: none;
  border-style: dashed;
  border-color: rgb(var(--brand) / .35);
  background: rgb(var(--brand) / .04);
  cursor: grabbing;
  touch-action: none;
  pointer-events: none;
}
.mod.is-dragging { cursor: grabbing; }
.mod-ghost {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  margin: 0;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.96);
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgb(var(--brand) / .28);
  box-shadow: 0 18px 40px rgba(0,113,227,.28), 0 4px 12px rgba(0,0,0,.08);
  transition: opacity 0.16s var(--ease), box-shadow 0.16s ease;
  will-change: transform, opacity;
}
.mod-ghost.is-active {
  opacity: 0.98;
}
.mod-ghost.is-dropping {
  box-shadow: 0 4px 12px rgba(0,113,227,.12);
}
.mod .mod-grip {
  position: absolute;
  top: 0.45rem;
  right: 0.4rem;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #c7c7cc;
  font-size: 0;
  line-height: 0;
  cursor: grab;
  touch-action: none;
  z-index: 2;
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s var(--ease);
}
.mod .mod-grip:active {
  cursor: grabbing;
  color: rgb(var(--brand));
  background: rgb(var(--brand) / .08);
  transform: scale(1.08);
}
.mod .mod-ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgb(var(--brand) / .1);
  color: rgb(var(--brand));
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}
.mod strong {
  display: block;
  margin-bottom: 0.18rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.mod span {
  color: rgb(var(--muted));
  font-size: 0.74rem;
  line-height: 1.35;
}

.list { display: grid; gap: 0.55rem; }
.item {
  border-top: 1px solid rgb(var(--line) / .7);
  padding: 0.8rem 0.1rem;
  background: transparent;
}
.item:first-child { border-top: 0; padding-top: 0.2rem; }
.item .title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}
.item p {
  margin: 0.2rem 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgb(var(--text) / .82);
}
.meta { font-size: 0.75rem; color: rgb(var(--muted)); }

.surface-block {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.badge {
  display: inline-block;
  font-size: 0.68rem;
  padding: 0.12rem 0.4rem;
  border-radius: 6px;
  background: rgb(var(--brand) / .1);
  color: rgb(var(--brand));
  vertical-align: middle;
}
.badge.warn { background: rgb(var(--warn) / .14); color: #b36b00; }
.badge.high { background: rgb(var(--bad) / .12); color: #d70015; }
.badge.full { background: rgba(0,0,0,.06); color: #666; }

.composer { display: grid; gap: 0.65rem; }
.composer textarea { min-height: 104px; resize: vertical; }
.answer {
  margin-top: 0.75rem;
  white-space: pre-wrap;
  background: rgb(var(--brand) / .06);
  border-left: 2px solid rgb(var(--brand));
  border-radius: 0 12px 12px 0;
  padding: 0.85rem 0.95rem;
  font-size: 0.92rem;
  line-height: 1.6;
}

.steps { display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 0.65rem;
  align-items: start;
  padding: 0.65rem 0;
  font-size: 0.9rem;
  position: relative;
}
.step::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 0.3rem;
  border-radius: 50%;
  border: 1.5px solid rgb(var(--line));
  background: #fff;
  justify-self: center;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 1.35rem;
  bottom: 0;
  width: 1px;
  background: rgb(var(--line) / .9);
}
.step.done::before {
  background: rgb(var(--ok));
  border-color: rgb(var(--ok));
}
.step.running::before {
  background: rgb(var(--brand));
  border-color: rgb(var(--brand));
  box-shadow: 0 0 0 3px rgb(var(--brand) / .16);
}
.step .meta { align-self: center; }

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.55rem;
  align-items: center;
}
.row-actions .field { margin: 0; flex: 1; min-width: 0; }
.empty { color: rgb(var(--muted)); font-size: 0.88rem; padding: 0.4rem 0; }
.slot-btn { font-size: 0.84rem; padding: 0.55rem 0.8rem; min-height: 40px; }

.price-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.price-card .price {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: rgb(var(--brand));
}
.queue-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(0,0,0,.03);
  margin-bottom: 0.45rem;
}
.queue-pill {
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}
.queue-pill.ok { background: rgb(var(--ok) / .15); color: #248a3d; }
.queue-pill.warn { background: rgb(var(--warn) / .18); color: #c93400; }
.queue-pill.full { background: rgba(0,0,0,.08); color: #6e6e73; }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}
.hero-cta .btn {
  min-height: 36px;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  border-radius: 999px;
}
.hero-cta .btn-light {
  background: rgba(255,255,255,.2);
  border-color: transparent;
  color: #fff;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0 0.2rem; }
.chip-btn {
  border: 1px solid rgb(var(--line));
  background: #fff;
  color: rgb(var(--brand));
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}
.push-item {
  background: rgba(0,0,0,.03);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
}
.sale-meta { font-size: 0.75rem; color: rgb(var(--muted)); margin-top: 0.25rem; }

/* 售粮进度 */
.sale-page { margin-top: 0.15rem; }
.sale-list { display: grid; gap: 0.65rem; }
.sale-more-label {
  margin: 1.1rem 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgb(var(--muted));
  letter-spacing: 0.02em;
}
.sale-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  padding: 1rem 1.05rem 1.05rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 8px 24px rgba(0,0,0,.04);
}
.sale-card.is-featured {
  border-color: rgb(var(--brand) / .18);
  box-shadow: 0 1px 2px rgba(0,113,227,.04), 0 12px 32px rgba(0,113,227,.1);
}
.sale-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}
.sale-id {
  font-size: 0.68rem;
  font-weight: 500;
  color: rgb(var(--muted));
  letter-spacing: 0.02em;
  margin-bottom: 0.2rem;
}
.sale-card-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: rgb(var(--text));
}
.status-pill {
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
  margin-top: 0.1rem;
}
.status-pill.st-blue { background: rgb(var(--brand) / .12); color: rgb(var(--brand)); }
.status-pill.st-orange { background: rgba(255,149,0,.14); color: #c93400; }
.status-pill.st-purple { background: rgba(88,86,214,.12); color: #3634a3; }
.status-pill.st-green { background: rgba(52,199,89,.14); color: #248a3d; }
.status-pill.st-gray { background: rgba(142,142,147,.14); color: #6e6e73; }

.sale-timeline {
  position: relative;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.sale-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 0.65rem;
  padding-bottom: 0.85rem;
}
.sale-timeline li:last-child { padding-bottom: 0; }
.sale-timeline li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 5.5px;
  top: 12px;
  bottom: 0;
  width: 1.5px;
  background: rgba(0,0,0,.08);
}
.sale-timeline li.done:not(:last-child)::before {
  background: rgb(var(--brand) / .35);
}
.tl-dot {
  width: 12px;
  height: 12px;
  margin-top: 3px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,.12);
  background: #fff;
  z-index: 1;
  justify-self: center;
}
.sale-timeline li.done .tl-dot {
  border-color: rgb(var(--brand));
  background: rgb(var(--brand));
  box-shadow: 0 0 0 3px rgb(var(--brand) / .12);
}
.sale-timeline li.now .tl-dot {
  border-color: rgb(var(--brand));
  background: #fff;
  box-shadow: 0 0 0 3px rgb(var(--brand) / .16);
}
.tl-body { min-width: 0; }
.tl-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.tl-step {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgb(var(--text));
}
.sale-timeline li.todo .tl-step { color: #aeaeb2; font-weight: 500; }
.tl-at {
  margin-top: 0.12rem;
  font-size: 0.72rem;
  color: #8e8e93;
}
.sale-timeline li.todo .tl-at { color: #c7c7cc; }
.tl-push {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgb(var(--brand));
  background: rgb(var(--brand) / .1);
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
}

.sale-settle {
  margin-top: 0.95rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgb(var(--brand) / .08), rgb(var(--brand2) / .06));
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
}
.sale-settle span {
  font-size: 0.75rem;
  color: rgb(var(--muted));
}
.sale-settle strong {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgb(var(--brand));
}
.sale-settle em {
  font-style: normal;
  font-size: 0.75rem;
  color: rgb(var(--muted));
}
.sale-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
}
.sale-chips span {
  font-size: 0.68rem;
  font-weight: 500;
  color: rgb(var(--brand));
  background: rgb(var(--brand) / .07);
  border: 1px solid rgb(var(--brand) / .12);
  padding: 0.22rem 0.5rem;
  border-radius: 8px;
}

.sale-card:not(.is-featured) {
  padding: 0.85rem 0.95rem;
  box-shadow: none;
}
.sale-card:not(.is-featured) .sale-card-title { font-size: 0.92rem; }
.sale-card:not(.is-featured) .sale-timeline { margin-top: 0.75rem; }
.sale-card:not(.is-featured) .tl-step { font-size: 0.8rem; }

.card {
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.card > h2,
.card > h3 {
  margin: 0 0 0.55rem;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}
.card > p { margin: 0.25rem 0; line-height: 1.45; font-size: 0.92rem; }
.card > p.muted { margin-top: 0; }
.card .item {
  border-top: 1px solid rgb(var(--line) / .7);
  padding: 0.75rem 0;
}
.card .item:first-child { border-top: 0; padding-top: 0; }
.card .list .item:last-child { padding-bottom: 0; }

/* —— Premium panels (对齐售粮进度质感) —— */
.panel-card {
  margin-bottom: 0.85rem;
  padding: 1rem 1.05rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 8px 24px rgba(0,0,0,.04);
  animation: panel-in 0.4s var(--ease) both;
}
.panel-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgb(var(--muted));
  margin-bottom: 0.45rem;
  text-transform: none;
}

.home-hero {
  position: relative;
  margin: 0.15rem 0 0.9rem;
  padding: 1.25rem 1.15rem 1.2rem;
  border-radius: 20px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(120% 80% at 100% 0%, rgb(var(--brand2) / .55), transparent 55%),
    linear-gradient(145deg, #0b3d91 0%, rgb(var(--brand)) 48%, #0058b8 100%);
  box-shadow: 0 14px 36px rgb(var(--brand) / .28);
  animation: panel-in 0.45s var(--ease) both;
}
.home-hero::after {
  content: "粮";
  position: absolute;
  right: -0.15rem;
  top: -0.55rem;
  font-size: 6.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  color: rgba(255,255,255,.08);
  pointer-events: none;
}
.home-hero-kicker {
  position: relative;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,.62);
}
.home-hero-title {
  position: relative;
  margin: 0.4rem 0 0.25rem;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.home-hero-sub {
  position: relative;
  margin: 0;
  font-size: 0.84rem;
  color: rgba(255,255,255,.68);
  line-height: 1.45;
  max-width: 16rem;
}
.home-hero-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.btn-on-dark,
.btn-on-dark-ghost {
  min-height: 40px;
  padding: 0.55rem 1.05rem;
  font-size: 0.84rem;
  border-radius: 999px;
}
.btn-on-dark {
  background: #fff;
  border-color: transparent;
  color: rgb(var(--brand));
  font-weight: 600;
}
.btn-on-dark:active { background: rgba(255,255,255,.9); }
.btn-on-dark-ghost {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.22);
  color: #fff;
}

.progress-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin: 0 0 0.85rem;
  padding: 0.95rem 1rem;
  text-align: left;
  border: 1px solid rgb(var(--brand) / .16);
  border-radius: 16px;
  background: linear-gradient(135deg, rgb(var(--brand) / .08), #fff 55%);
  box-shadow: 0 8px 24px rgba(0,113,227,.08);
  font: inherit;
  cursor: pointer;
  animation: panel-in 0.4s 0.04s var(--ease) both;
}
.progress-banner:active { transform: scale(0.99); }
.pb-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgb(var(--brand));
  margin-bottom: 0.2rem;
}
.pb-title {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: rgb(var(--text));
}
.pb-sub {
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: rgb(var(--muted));
}
.pb-arrow {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgb(var(--brand) / .1);
  color: rgb(var(--brand));
  font-size: 1.15rem;
  font-weight: 500;
}

.price-panel .price-row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin: 0.15rem 0 0.25rem;
}
.price-num {
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: rgb(var(--brand));
  line-height: 1;
}
.price-unit {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgb(var(--muted));
}
.price-inline {
  margin-top: 0.55rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgb(var(--brand));
}
.price-inline small {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgb(var(--muted));
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(0,0,0,.05);
}
.info-row:first-of-type { border-top: 0; padding-top: 0.15rem; }
.info-row:last-child { padding-bottom: 0.1rem; }
.info-row-title {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.12rem;
}

.notice-list,
.alert-list,
.dryer-list,
.depot-list,
.mini-list,
.ticket-list,
.push-list,
.faq-list {
  display: grid;
  gap: 0.65rem;
}
.notice-card {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(0,0,0,.06);
  background: #fff;
  border-radius: 16px;
  padding: 0.95rem 1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 8px 24px rgba(0,0,0,.04);
  font: inherit;
  cursor: pointer;
  color: inherit;
  transition: transform 0.15s var(--ease);
}
.notice-card.static { cursor: default; }
.notice-card:not(.static):active { transform: scale(0.99); }
.notice-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.tag-pill {
  font-size: 0.65rem;
  font-weight: 650;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgb(var(--brand) / .1);
  color: rgb(var(--brand));
  letter-spacing: 0.02em;
}
.notice-title {
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: rgb(var(--text));
}
.notice-body {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgb(var(--muted));
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  align-items: center;
}
.search-bar .field { margin: 0; padding: 0.75rem 0.9rem; }
.search-bar .btn { min-height: 44px; padding: 0.65rem 1rem; }

/* —— 智能问答：全高聊天态 —— */
.panels:has([data-panel="ask"].active) {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}
.panel[data-panel="ask"].active {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  animation: none;
}

.ask-shell {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  margin: 0 -0.15rem;
  position: relative;
}
.ask-toolbar {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.45rem;
  padding: 0.15rem 0.05rem 0.35rem;
}
.ask-toolbar-title {
  min-width: 0;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: rgb(var(--text));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 0.2rem;
}
.ask-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-height: 34px;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 999px;
  background: #fff;
  color: rgb(var(--text));
  font: inherit;
  font-size: 0.74rem;
  font-weight: 550;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
  transition: transform 0.15s var(--ease), background 0.15s ease;
}
.ask-tool-btn:active { transform: scale(0.97); }
.ask-tool-btn span { line-height: 1; }
.ask-tool-primary {
  border-color: rgb(var(--brand) / .2);
  background: rgb(var(--brand) / .08);
  color: rgb(var(--brand));
}
.ask-history[hidden] { display: none !important; }
.ask-history {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.ask-history-mask {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(15, 23, 36, .35);
  backdrop-filter: blur(2px);
  cursor: pointer;
}
.ask-history-sheet {
  position: relative;
  z-index: 1;
  max-height: 78%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 40px rgba(0,0,0,.16);
  padding: 0.85rem 0.95rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  animation: ask-sheet-up 0.28s var(--ease);
}
@keyframes ask-sheet-up {
  from { transform: translateY(18px); opacity: 0.85; }
  to { transform: none; opacity: 1; }
}
.ask-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}
.ask-history-head strong {
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}
.ask-history-close {
  border: 0;
  background: transparent;
  color: rgb(var(--brand));
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem 0.2rem;
}
.ask-history-new {
  width: 100%;
  min-height: 44px;
  margin-bottom: 0.65rem;
  border: 1px dashed rgb(var(--brand) / .35);
  border-radius: 14px;
  background: rgb(var(--brand) / .05);
  color: rgb(var(--brand));
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
}
.ask-history-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: grid;
  gap: 0.45rem;
  padding-bottom: 0.2rem;
}
.ask-history-empty {
  margin: 1.2rem 0;
  text-align: center;
  color: rgb(var(--muted));
  font-size: 0.86rem;
}
.ask-history-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  gap: 0.35rem;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  background: #fafafa;
  overflow: hidden;
}
.ask-history-item.is-active {
  border-color: rgb(var(--brand) / .28);
  background: rgb(var(--brand) / .06);
}
.ask-history-open {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.75rem 0.8rem;
  font: inherit;
  cursor: pointer;
  min-width: 0;
}
.ask-history-open strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin-bottom: 0.18rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ask-history-open .meta {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ask-history-del {
  border: 0;
  border-left: 1px solid rgba(0,0,0,.06);
  background: transparent;
  color: #d70015;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 550;
  padding: 0 0.75rem;
  cursor: pointer;
}
.ask-thread {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.25rem 0.15rem 0.85rem;
  overscroll-behavior: contain;
}

.ask-welcome {
  margin: 0.35rem 0.1rem 0.2rem;
  padding: 1.35rem 1.15rem 1.2rem;
  border-radius: 20px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgb(var(--brand2) / .18), transparent 55%),
    #fff;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 12px 32px rgba(0,113,227,.08);
  text-align: center;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}
.ask-welcome.is-hidden {
  display: none;
}
.ask-welcome-mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.75rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, rgb(var(--brand)), rgb(var(--brand-hover)));
  box-shadow: 0 10px 24px rgb(var(--brand) / .3);
}
.ask-welcome h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.ask-welcome > p {
  margin: 0.4rem auto 0;
  max-width: 16.5rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgb(var(--muted));
}
.ask-suggest-label {
  margin: 1.05rem 0 0.55rem;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  color: rgb(var(--muted));
}
.ask-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
}
.chip-btn {
  border: 1px solid rgb(var(--brand) / .16);
  background: rgb(var(--brand) / .06);
  color: rgb(var(--brand));
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 550;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s var(--ease);
}
.chip-btn:active {
  background: rgb(var(--brand) / .14);
  transform: scale(0.98);
}

.ask-row {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  max-width: 100%;
  animation: panel-in 0.28s var(--ease);
}
.ask-row.me {
  justify-content: flex-end;
}
.ask-row.bot {
  justify-content: flex-start;
}
.ask-avatar {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, rgb(var(--brand)), rgb(var(--brand-hover)));
  box-shadow: 0 4px 12px rgb(var(--brand) / .22);
  margin-bottom: 0.1rem;
}
.ask-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  max-width: calc(100% - 38px);
  min-width: 0;
}
.ask-bubble {
  padding: 0.8rem 0.95rem;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.ask-bubble.bot {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-bottom-left-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,.04);
  color: rgb(var(--text));
}
.ask-bubble.bot strong {
  font-weight: 700;
  color: rgb(var(--brand));
  letter-spacing: -0.02em;
}
.ask-bubble.bot.muted {
  color: rgb(var(--muted));
  min-width: 3.2rem;
}
.ask-bubble.me {
  max-width: 88%;
  background: linear-gradient(145deg, rgb(var(--brand)), rgb(var(--brand-hover)));
  color: #fff;
  border-bottom-right-radius: 6px;
  box-shadow: 0 8px 20px rgb(var(--brand) / .25);
}
.ask-meta {
  font-size: 0.68rem;
  color: #aeaeb2;
  padding-left: 0.2rem;
  letter-spacing: 0.01em;
}
.ask-handoff {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgb(var(--brand) / .16);
  background: linear-gradient(135deg, rgb(var(--brand) / .07), #fff);
  color: rgb(var(--text));
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s var(--ease);
}
.ask-handoff:active { transform: scale(0.99); }
.ask-handoff span {
  font-size: 0.82rem;
  font-weight: 650;
  color: rgb(var(--brand));
  letter-spacing: -0.01em;
}
.ask-handoff em {
  font-style: normal;
  font-size: 0.72rem;
  color: rgb(var(--muted));
}

.ask-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 1.1em;
  padding: 0.1rem 0.15rem;
}
.ask-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(var(--brand) / .45);
  animation: ask-dot 1.1s ease-in-out infinite;
}
.ask-typing i:nth-child(2) { animation-delay: 0.15s; }
.ask-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes ask-dot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40% { transform: translateY(-3px); opacity: 1; }
}

.ask-dock {
  flex: 0 0 auto;
  padding: 0.55rem 0.1rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
  background:
    linear-gradient(180deg, rgba(245,245,247,0), rgb(var(--bg0)) 28%);
  border-top: 1px solid rgba(0,0,0,.04);
}
.ask-composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: end;
  padding: 0.45rem 0.45rem 0.45rem 0.65rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 22px;
  box-shadow: 0 8px 28px rgba(0,0,0,.06);
}
.ask-composer textarea {
  min-height: 44px;
  max-height: 112px;
  resize: none;
  margin: 0;
  padding: 0.65rem 0.2rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 16px;
  line-height: 1.4;
  overflow: auto;
  scrollbar-width: none;
}
.ask-composer textarea:focus {
  outline: none;
  border: 0;
  box-shadow: none;
}
.ask-composer textarea::-webkit-scrollbar { display: none; }
.ask-send {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgb(var(--brand));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 16px rgb(var(--brand) / .28);
  transition: transform 0.15s var(--ease), background 0.15s ease, opacity 0.15s ease;
}
.ask-send:active { transform: scale(0.96); }
.ask-send:disabled,
.ask-send.is-busy {
  opacity: 0.45;
  cursor: not-allowed;
}

.form-card .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 0.7rem;
}
.form-card label { margin: 0; }
.form-card .span-2 { grid-column: 1 / -1; }
.form-card .field { padding: 0.75rem 0.85rem; }

.depot-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  padding: 1rem 1.05rem;
  margin-bottom: 0.7rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 8px 24px rgba(0,0,0,.04);
  animation: panel-in 0.4s var(--ease) both;
}
.depot-card.is-closed { opacity: 0.72; }
.depot-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}
.depot-name {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 0.15rem;
}
.depot-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  margin: 0.75rem 0 0.85rem;
  font-size: 0.78rem;
  color: rgb(var(--muted));
}
.depot-stats b {
  color: rgb(var(--text));
  font-weight: 650;
}
.slot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.slot-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgb(var(--brand) / .18);
  background: rgb(var(--brand) / .05);
  color: rgb(var(--text));
  font: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, transform 0.15s var(--ease);
}
.slot-chip span {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.slot-chip em {
  font-style: normal;
  font-size: 0.7rem;
  color: rgb(var(--brand));
  font-weight: 550;
}
.slot-chip:active:not(.disabled) {
  transform: scale(0.98);
  background: rgb(var(--brand) / .12);
}
.slot-chip.disabled,
.slot-chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  border-color: rgba(0,0,0,.08);
  background: rgba(0,0,0,.03);
}
.slot-chip.disabled em { color: rgb(var(--muted)); }

.day-switch {
  display: flex;
  gap: 0.45rem;
  margin: 0.15rem 0 0.85rem;
}
.day-chip {
  flex: 1;
  min-height: 40px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  background: #f5f5f7;
  color: rgb(var(--muted));
  font: inherit;
  font-size: 0.86rem;
  font-weight: 550;
  cursor: pointer;
}
.day-chip.is-on {
  border-color: rgb(var(--brand) / .28);
  background: rgb(var(--brand) / .08);
  color: rgb(var(--brand));
  font-weight: 650;
}
.check-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgb(var(--text));
  font-weight: 500;
}
.check-row input { margin-top: 0.2rem; flex: 0 0 auto; }
.check-row span { color: rgb(var(--text)); line-height: 1.4; }
.dry-appt-card {
  grid-template-columns: 1fr auto;
  position: relative;
}
.dry-appt-card .dry-cancel {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 0.15rem;
  border: 0;
  background: none;
  color: #d70015;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0;
}

.mini-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 0.65rem;
  align-items: start;
  padding: 0.85rem 0.95rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.mini-title {
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  grid-column: 1;
}
.mini-card .meta { grid-column: 1; }
.mini-card .status-pill { grid-column: 2; grid-row: 1 / span 2; align-self: center; }

.faq-item {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px;
  padding: 0.15rem 0.85rem;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgb(var(--text));
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "›";
  margin-left: auto;
  color: rgb(var(--muted));
  font-size: 1.1rem;
  transform: rotate(90deg);
  transition: transform 0.2s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(-90deg); }
.faq-item p {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgb(var(--muted));
  border-top: 1px solid rgba(0,0,0,.05);
  padding-top: 0.65rem;
}

.ticket-card { margin-bottom: 0.7rem; }
.ticket-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
}
.reply-line {
  margin-top: 0.45rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: rgba(0,0,0,.03);
  font-size: 0.8rem;
  line-height: 1.45;
}
.reply-line b {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.72rem;
  color: rgb(var(--brand));
}
.ticket-actions {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.45rem;
  margin-top: 0.75rem;
  align-items: center;
}
.ticket-actions .field { padding: 0.65rem 0.75rem; margin: 0; }
.ticket-actions .btn { min-height: 42px; padding: 0.5rem 0.75rem; font-size: 0.82rem; }

.dryer-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  padding: 1rem 1.05rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 8px 24px rgba(0,0,0,.04);
}
.dryer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem;
}
.dryer-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin: 0.85rem 0 0.55rem;
}
.dryer-metrics > div {
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  background: linear-gradient(160deg, rgb(var(--brand) / .07), rgba(0,0,0,.02));
}
.dryer-metrics b {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: rgb(var(--brand));
  line-height: 1.15;
}
.dryer-metrics span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.7rem;
  color: rgb(var(--muted));
}

.alert-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  padding: 0.95rem 1rem 1rem 1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 8px 24px rgba(0,0,0,.04);
  overflow: hidden;
}
.alert-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgb(var(--brand));
}
.alert-card.warn::before { background: rgb(var(--warn)); }
.alert-card.high::before { background: rgb(var(--bad)); }
.alert-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}
.alert-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgb(var(--brand));
}
.alert-card.warn .alert-dot { background: rgb(var(--warn)); }
.alert-card.high .alert-dot { background: rgb(var(--bad)); }
.alert-cat {
  font-size: 0.68rem;
  font-weight: 650;
  color: rgb(var(--muted));
  letter-spacing: 0.02em;
  flex: 1;
}
.alert-card .notice-title { padding-left: 0.15rem; }
.alert-card .notice-body { -webkit-line-clamp: 4; }

.profile-hero {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  margin: 0.15rem 0 0.9rem;
  padding: 1.15rem 1.1rem;
  border-radius: 20px;
  background:
    radial-gradient(90% 80% at 100% 0%, rgb(var(--brand2) / .2), transparent 55%),
    #fff;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 12px 32px rgba(0,113,227,.08);
  animation: panel-in 0.4s var(--ease) both;
}
.profile-hero .avatar {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, rgb(var(--brand)), rgb(var(--brand-hover)));
  box-shadow: 0 8px 20px rgb(var(--brand) / .3);
}
.profile-name {
  margin: 0 0 0.2rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: rgb(var(--text));
  line-height: 1.2;
}
.profile-hero .meta + .meta { margin-top: 0.1rem; }

.push-card {
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
}
.push-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.push-top strong {
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.push-top .channel {
  flex: 0 0 auto;
  font-size: 0.65rem;
  font-weight: 650;
  padding: 0.16rem 0.45rem;
  border-radius: 999px;
  background: rgb(var(--brand) / .1);
  color: rgb(var(--brand));
}
.push-card p {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgb(var(--muted));
}

.grid-mods .mod {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 8px 24px rgba(0,0,0,.04);
}
.grid-mods .mod .mod-ico {
  background: linear-gradient(145deg, rgb(var(--brand) / .14), rgb(var(--brand2) / .1));
}
