:root {
  color-scheme: light;
  --page: #f6f8fa;
  --screen: #f6f8f9;
  --card: rgb(255 255 255 / 66%);
  --card-soft: rgb(255 255 255 / 54%);
  --text: #17191c;
  --muted: #6b7280;
  --subtle: #9aa1aa;
  --line: rgb(255 255 255 / 78%);
  --red: #ff5b63;
  --red-dark: #ef3f46;
  --green: #29bf72;
  --green-dark: #1fa55f;
  --orange: #ff9f2d;
  --blue: #4d9cff;
  --cyan: #39c7d7;
  --purple: #7f67e8;
  --shadow-card: 0 18px 46px rgb(28 35 45 / 9%);
  --shadow-soft: 0 10px 24px rgb(28 35 45 / 7%);
  --glass-blur: blur(24px) saturate(165%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 24% -4%, rgb(255 255 255 / 96%) 0, transparent 34%),
    radial-gradient(circle at 84% 18%, rgb(210 242 232 / 42%) 0, transparent 30%),
    linear-gradient(180deg, #f7f8fa, #eef2f1);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.phone-shell {
  position: relative;
  width: min(100%, 430px);
  min-height: 100dvh;
  margin: 0 auto;
  background:
    radial-gradient(circle at 12% 5%, rgb(255 255 255 / 80%) 0, transparent 30%),
    radial-gradient(circle at 88% 18%, rgb(208 238 232 / 45%) 0, transparent 34%),
    var(--screen);
  overflow: hidden;
}

@media (min-width: 720px) {
  body {
    padding: 0;
  }

  .phone-shell {
    min-height: 100dvh;
    box-shadow: 0 18px 48px rgb(19 23 29 / 8%);
  }
}

.screen {
  display: none;
  min-height: 100dvh;
  padding: 10px 18px 26px;
  background:
    radial-gradient(circle at 20% 0%, rgb(255 255 255 / 88%) 0, transparent 34%),
    radial-gradient(circle at 92% 18%, rgb(224 245 239 / 42%) 0, transparent 32%),
    var(--screen);
}

.screen.active {
  display: block;
}

.detail-screen {
  padding-bottom: 96px;
}

#homeScreen,
.top-tab-screen {
  padding-bottom: 108px;
}

.home-title,
.detail-nav {
  display: grid;
  align-items: center;
  min-height: 64px;
}

.home-title {
  grid-template-columns: 1fr 44px;
  text-align: left;
}

.detail-nav {
  grid-template-columns: 44px 1fr 44px;
  margin-bottom: 8px;
  text-align: center;
}

.home-title h1,
.detail-nav h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.home-title p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.app-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.plain-icon,
.invisible-button,
.text-button,
.link-button {
  background: transparent;
  color: var(--text);
}

.plain-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  color: #111318;
}

.plain-icon svg,
.send-icon svg,
.checked svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plain-icon:active,
.function-item:active,
.reminder-card:active {
  transform: scale(0.985);
}

.invisible-button {
  visibility: hidden;
}

.text-button,
.link-button {
  font-size: 14px;
}

.link-button {
  color: #3a3f46;
}

.soft-card {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.soft-card h2,
.detail-content h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.home-reminder-list {
  display: grid;
  gap: 14px;
}

.reminder-card {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 112px;
  padding: 16px;
  border: 1px solid rgb(255 255 255 / 82%);
  border-radius: 22px;
  background: linear-gradient(135deg, rgb(255 255 255 / 72%) 0%, rgb(255 244 246 / 56%) 100%);
  text-align: left;
  box-shadow: 0 12px 30px rgb(28 35 45 / 6%);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.reminder-card:nth-child(2) {
  background: linear-gradient(135deg, rgb(255 255 255 / 72%) 0%, rgb(239 253 247 / 58%) 100%);
}

.reminder-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.reminder-copy b {
  font-size: 18px;
}

.reminder-copy span {
  color: #31343a;
  font-size: 14px;
}

.reminder-copy small {
  color: var(--muted);
  font-size: 13px;
}

.count-badge {
  align-self: start;
  min-width: 34px;
  padding: 5px 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff6c73, var(--red-dark));
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.gradient-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  color: #fff;
  box-shadow: 0 12px 24px rgb(28 35 45 / 8%);
  overflow: hidden;
  background: transparent;
}

.gradient-icon::before {
  content: none;
}

.gradient-icon svg {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.05;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gradient-icon img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
}

.gradient-birthday,
.gradient-customer {
  background: transparent;
}

.gradient-expiry,
.gradient-box {
  background: transparent;
}

.gradient-bag {
  background: transparent;
}

.gradient-camera {
  background: transparent;
}

.gradient-order {
  background: transparent;
}

.gradient-chart {
  background: transparent;
}

.function-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 22px;
  margin-top: 18px;
}

.function-item {
  display: grid;
  justify-items: center;
  gap: 9px;
  min-height: 92px;
  padding: 0;
  background: transparent;
  color: var(--text);
}

.function-item .gradient-icon {
  width: 70px;
  height: 70px;
  border-radius: 22px;
}

.function-item .gradient-icon svg {
  width: 30px;
  height: 30px;
}

.function-item b {
  font-size: 14px;
}

.home-bottom-nav {
  position: fixed;
  right: max(18px, calc((100vw - 430px) / 2 + 18px));
  bottom: 14px;
  left: max(18px, calc((100vw - 430px) / 2 + 18px));
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  min-height: 74px;
  margin-top: 0;
  padding: 8px 10px 10px;
  border: 1px solid rgb(255 255 255 / 82%);
  border-radius: 22px;
  background: linear-gradient(180deg, rgb(255 255 255 / 72%), rgb(255 255 255 / 46%));
  box-shadow:
    0 18px 42px rgb(20 26 32 / 11%),
    inset 0 1px 0 rgb(255 255 255 / 88%);
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
}

.nav-item {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 58px;
  border-radius: 16px;
  background: transparent;
  color: #68707a;
}

.nav-item span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item b {
  overflow: hidden;
  max-width: 100%;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-item.active {
  color: var(--red-dark);
  background: rgb(255 255 255 / 58%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 64%);
}

.nav-item:active {
  transform: scale(0.97);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.metric-card {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-height: 86px;
  padding: 13px 6px;
  border: 1px solid rgb(255 255 255 / 78%);
  border-radius: 18px;
  background: rgb(255 255 255 / 58%);
  box-shadow: var(--shadow-soft);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.metric-card span,
.metric-card small {
  color: #5f6873;
  font-size: 12px;
}

.metric-card b {
  color: var(--red-dark);
  font-size: 26px;
  line-height: 1;
}

.metric-card.green b {
  color: var(--green-dark);
}

.metric-card.amber b {
  color: #f28d16;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 4px 0 16px;
}

.shortcut-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 82px;
  padding: 12px;
  border: 1px solid rgb(255 255 255 / 78%);
  border-radius: 18px;
  background: rgb(255 255 255 / 62%);
  color: var(--text);
  text-align: left;
  box-shadow: var(--shadow-soft);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.shortcut-card .gradient-icon {
  width: 52px;
  height: 52px;
  border-radius: 17px;
  box-shadow: none;
}

.shortcut-card b,
.task-row b {
  display: block;
  font-size: 14px;
}

.shortcut-card small,
.task-row small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.action-list {
  display: grid;
  gap: 10px;
}

.task-row {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 64px;
  padding: 12px;
  border: 1px solid rgb(255 255 255 / 80%);
  border-radius: 14px;
  background: rgb(255 255 255 / 64%);
  color: var(--text);
  text-align: left;
}

.task-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgb(255 159 45 / 12%);
}

.task-dot.high {
  background: var(--red-dark);
  box-shadow: 0 0 0 4px rgb(239 63 70 / 12%);
}

.task-row em {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgb(255 91 99 / 10%);
  color: var(--red-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.profile-hero {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgb(255 255 255 / 82%);
  border-radius: 22px;
  background: linear-gradient(135deg, rgb(255 255 255 / 70%), rgb(236 250 246 / 58%));
  box-shadow: var(--shadow-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #31c27c, #63c8df);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 10px 18px rgb(31 165 95 / 14%);
}

.profile-hero h2 {
  margin: 0;
  font-size: 19px;
}

.profile-hero p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.status-pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgb(41 191 114 / 12%);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.profile-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgb(255 255 255 / 62%);
}

.profile-row span {
  color: var(--muted);
  font-size: 13px;
}

.profile-row b {
  overflow: hidden;
  font-size: 13px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-hero {
  display: grid;
  grid-template-columns: 58px 1fr 82px;
  gap: 14px;
  align-items: center;
  min-height: 112px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgb(255 255 255 / 78%);
  background: linear-gradient(135deg, rgb(255 229 233 / 78%), rgb(255 255 255 / 58%));
  box-shadow: var(--shadow-soft);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.avatar-face {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #2b2f35, #a87566);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 8px 16px rgb(28 35 45 / 16%);
}

.avatar-face.small {
  width: 46px;
  height: 46px;
  border-width: 2px;
  font-size: 18px;
}

.customer-list,
.catalog-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.customer-row,
.catalog-row {
  display: grid;
  gap: 10px;
  align-items: center;
  min-height: 74px;
  padding: 12px;
  border: 1px solid rgb(255 255 255 / 80%);
  border-radius: 16px;
  background: rgb(255 255 255 / 62%);
  box-shadow: 0 8px 20px rgb(28 35 45 / 4%);
}

.customer-row {
  grid-template-columns: 46px 1fr auto;
}

.catalog-row {
  grid-template-columns: 58px 1fr auto;
}

.customer-row h3,
.catalog-row h3 {
  margin: 0 0 5px;
  font-size: 15px;
}

.customer-row p,
.catalog-row p {
  margin: 0;
  color: #606873;
  font-size: 12px;
  line-height: 1.4;
}

.customer-row small,
.catalog-row small {
  display: block;
  margin-top: 4px;
  color: var(--subtle);
  font-size: 12px;
}

.customer-row > span,
.catalog-row > span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgb(41 191 114 / 10%);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.catalog-row > span.danger {
  background: rgb(255 91 99 / 10%);
  color: var(--red-dark);
}

.catalog-row .product-thumb {
  width: 54px;
  height: 54px;
  border-radius: 13px;
}

.report-bars {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.report-bar {
  display: grid;
  gap: 8px;
}

.report-bar div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #5f6873;
  font-size: 13px;
}

.report-bar b {
  color: var(--text);
}

.report-bar i {
  position: relative;
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(230 235 238 / 76%);
}

.report-bar i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #6dd9c0);
}

.report-bar.amber i::after {
  background: linear-gradient(90deg, #ffb557, #ff8f38);
}

.report-bar.blue i::after {
  background: linear-gradient(90deg, #57a7ff, #67d0dd);
}

.customer-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.customer-name-row h2 {
  margin: 0;
  font-size: 20px;
}

.customer-name-row span {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.customer-copy p {
  margin: 8px 0 0;
  color: #7b3937;
  font-size: 14px;
}

.date-chip {
  display: grid;
  place-items: center;
  min-height: 74px;
  border-radius: 12px;
  background: rgb(255 255 255 / 78%);
  color: var(--red-dark);
}

.date-chip b {
  font-size: 17px;
}

.date-chip small {
  font-size: 12px;
}

.detail-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 -18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.detail-tabs button {
  position: relative;
  height: 54px;
  background: transparent;
  color: #555c65;
  font-size: 16px;
  font-weight: 700;
}

.detail-tabs button.active {
  color: var(--red-dark);
}

.detail-tabs button.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 999px;
  background: var(--red-dark);
  transform: translateX(-50%);
}

.detail-content {
  padding-top: 18px;
}

.field {
  position: relative;
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.field span {
  font-size: 15px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid #dfe3e8;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  outline: none;
}

input {
  height: 44px;
  padding: 0 12px;
}

textarea {
  min-height: 118px;
  padding: 14px;
  resize: vertical;
  line-height: 1.55;
}

#marketingCopy {
  min-height: 96px;
}

.field small {
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: var(--muted);
}

#posterCanvas {
  width: 100%;
  margin: 12px 0 16px;
  aspect-ratio: 1.52 / 1;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

.send-method {
  display: grid;
  grid-template-columns: 42px 1fr 26px;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #ffd1d4;
  border-radius: 13px;
  background: rgb(255 255 255 / 70%);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.send-icon,
.checked {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.send-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(145deg, #ddf8e9, #baf0d1);
  color: var(--green-dark);
  font-weight: 900;
}

.send-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.send-method b {
  display: block;
  font-size: 14px;
}

.send-method p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.checked {
  width: 22px;
  height: 22px;
  background: var(--red);
  color: #fff;
}

.checked svg {
  width: 15px;
  height: 15px;
  stroke-width: 3;
}

.fixed-primary {
  position: fixed;
  right: max(18px, calc((100vw - 430px) / 2 + 18px));
  bottom: 14px;
  left: max(18px, calc((100vw - 430px) / 2 + 18px));
  z-index: 4;
  min-height: 52px;
  margin-top: 16px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ff6f70, #ff4b4f);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 12px 22px rgb(255 75 79 / 20%);
}

.fixed-primary.green {
  margin-top: 18px;
  background: linear-gradient(180deg, #32cf83, #1fae63);
  box-shadow: 0 12px 22px rgb(31 174 99 / 20%);
}

.expiry-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 10px 0 18px;
}

.stat-card {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-height: 108px;
  padding: 14px 6px;
  border: 1px solid rgb(255 255 255 / 78%);
  border-radius: 12px;
  background: rgb(244 251 248 / 70%);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.stat-card.amber {
  background: #fff8ed;
}

.stat-card.red {
  background: #fff3f3;
}

.stat-card span,
.stat-card small {
  color: #2d333a;
  font-size: 13px;
}

.stat-card b {
  color: var(--green-dark);
  font-size: 30px;
}

.stat-card.amber b {
  color: #f28d16;
}

.stat-card.red b {
  color: var(--red-dark);
}

.product-list {
  display: grid;
  gap: 12px;
}

.product-card {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 122px;
  padding: 14px;
  border: 1px solid rgb(255 255 255 / 80%);
  border-radius: 18px;
  background: rgb(255 255 255 / 68%);
  box-shadow: var(--shadow-soft);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.product-thumb {
  width: 78px;
  height: 78px;
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 80%), rgb(255 255 255 / 20%)),
    linear-gradient(135deg, #7c4e2d, #fff3d9);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 5%);
}

.product-0 {
  background:
    linear-gradient(145deg, rgb(255 255 255 / 80%), rgb(255 255 255 / 18%)),
    linear-gradient(135deg, #f0d7bf, #fff7ec 48%, #ffd99f);
}

.product-1 {
  background:
    linear-gradient(145deg, rgb(255 255 255 / 80%), rgb(255 255 255 / 15%)),
    linear-gradient(135deg, #dce8ef, #ffffff 48%, #c2c8ce);
}

.product-2 {
  background:
    linear-gradient(145deg, rgb(255 255 255 / 76%), rgb(255 255 255 / 18%)),
    linear-gradient(135deg, #e8f2ff, #ffffff 48%, #bcd8ff);
}

.product-info {
  min-width: 0;
}

.product-info h3 {
  margin: 0 0 9px;
  font-size: 15px;
  line-height: 1.35;
}

.product-info p {
  margin: 4px 0;
  color: #606873;
  font-size: 13px;
}

.product-days {
  display: grid;
  justify-items: end;
  gap: 4px;
  min-width: 58px;
}

.product-days span {
  color: #606873;
  font-size: 13px;
}

.product-days b {
  color: #ff851b;
  font-size: 24px;
  line-height: 1.1;
}

.product-days small {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff2e7;
  color: #ff851b;
  font-size: 12px;
  white-space: nowrap;
}

.suggestion-card {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgb(255 255 255 / 72%), rgb(247 250 248 / 60%));
  box-shadow: var(--shadow-soft);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.suggestion-card b {
  font-size: 16px;
}

.suggestion-card p {
  margin: 8px 0 0;
  color: #606873;
  font-size: 14px;
  line-height: 1.55;
}

.camera-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 14px;
  align-items: center;
}

.camera-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.form-card h2 {
  margin-bottom: 6px;
}

.form-hint {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.capture-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 14px;
}

.capture-actions button,
.capture-actions label {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid #dfe6ef;
  border-radius: 12px;
  background: #fff;
  color: #2566b7;
  font-weight: 800;
}

.capture-actions input {
  display: none;
}

.camera-preview {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 18px;
  background: transparent;
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.camera-preview img {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.file-picker {
  display: grid;
  place-items: center;
  min-height: 44px;
  border: 1px dashed #c7d4e2;
  border-radius: 12px;
  background: #fff;
  color: #2566b7;
  font-weight: 800;
}

.file-picker input {
  display: none;
}

.recognition-card {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgb(245 251 248 / 72%);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: #606873;
  font-size: 13px;
}

.recognition-card b {
  color: var(--green-dark);
}

.mini-button {
  min-width: 54px;
  min-height: 34px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 10px 0 16px;
}

.ops-tile {
  min-height: 90px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgb(255 255 255 / 70%);
  box-shadow: var(--shadow-soft);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.ops-tile b {
  display: block;
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 28px;
}

.ops-tile span {
  color: var(--muted);
  font-size: 13px;
}

.timeline {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.timeline-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  background: #f7f8f8;
}

.timeline-item b {
  font-size: 14px;
}

.timeline-item span {
  color: var(--muted);
  font-size: 12px;
}

.empty {
  padding: 18px;
  border-radius: 14px;
  background: #fff;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 370px) {
  .screen {
    padding-inline: 14px;
  }

  .function-grid {
    gap: 14px 12px;
  }

  .product-card {
    grid-template-columns: 72px 1fr;
  }

  .product-days {
    grid-column: 2;
    justify-items: start;
  }
}
