:root {
  --primary: #ea7f99;
  --primary-soft: #f4a8b7;
  --primary-hover: #f69aad;
  --accent-peach: #ffd7cd;
  --bg: #fff1f5;
  --bg-soft-lavender: #fff0f4;
  --bg-soft-cream: #fff7ef;
  --card-bg: rgba(255, 253, 251, 0.82);
  --card-border: rgba(255, 255, 255, 0.68);
  --panel-border: rgba(238, 203, 210, 0.72);
  --text-main: #4d4043;
  --text-sub: #8a767a;
  --border: #ead3d8;
  --danger: #e97887;
  --landing-container-width: 420px;
  --service-container-width: 920px;
  --app-container-padding: 24px;
  --app-card-radius: 20px;
  --app-card-padding: 20px;
  --app-card-shadow: 0 18px 42px rgba(149, 91, 101, 0.11);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(1200px 420px at 50% -180px, #ffffff 0%, transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, #f8f2f9 45%, #f7f2f6 100%);
  min-height: 100svh;
  color: var(--text-main);
}

body.service-mode {
  padding: 24px var(--app-container-padding);
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

body.landing-mode {
  padding: 0;
}

.demo-mode-banner {
  width: min(100%, var(--service-container-width));
  margin: 0 auto 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #fff4c2;
  border: 1px solid #f1c85a;
  color: #6f4a00;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 10px 24px rgba(130, 91, 0, 0.12);
}

body.landing-mode .demo-mode-banner {
  width: 100%;
  margin: 0;
  border-radius: 0;
}

.demo-toolbar {
  position: fixed;
  top: max(12px, env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1900;
}

.demo-reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(216, 164, 134, 0.9);
  background: rgba(255, 255, 255, 0.94);
  color: #9a4f37;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(153, 92, 58, 0.14);
  backdrop-filter: blur(8px);
}

@media (hover: hover) {
  .demo-reset-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(153, 92, 58, 0.18);
  }
}

.debug-reset-btn {
  position: fixed;
  top: max(12px, env(safe-area-inset-top, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  z-index: 1900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid rgba(37, 37, 37, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: rgba(46, 36, 31, 0.58);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.debug-reset-btn:disabled {
  cursor: wait;
  opacity: 0.48;
}

@media (hover: hover) {
  .debug-reset-btn:hover:not(:disabled) {
    border-color: rgba(37, 37, 37, 0.28);
    background: rgba(255, 255, 255, 0.72);
    color: rgba(46, 36, 31, 0.82);
  }
}

.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 251, 253, 0.88);
  padding: 12px 24px;
  border-bottom: 1px solid rgba(160, 140, 176, 0.15);
  backdrop-filter: blur(8px);
  margin: 0 0 16px;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(100%, var(--service-container-width));
  margin: 0 auto;
}

.dev-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.dev-control-btn {
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid #e2d7ec;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #5d4a70;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(117, 87, 138, 0.08);
}

@media (hover: hover) {
  .dev-control-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(117, 87, 138, 0.12);
  }
}

body.service-mode .nav {
  margin: -24px calc(var(--app-container-padding) * -1) 20px;
}

.subtitle {
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--text-sub);
  margin-top: 6px;
  margin-bottom: 0;
}

.view-switch {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 0;
}

.view-switch-btn {
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid #ddd0ef;
  background: rgba(255, 255, 255, 0.72);
  color: #6a5984;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(123, 77, 255, 0.05);
}

.view-switch-btn--active {
  border-color: #ccb9f3;
  background: linear-gradient(180deg, #faf6ff 0%, #f1e9ff 100%);
  color: #4d367d;
}

.nav-logout-btn {
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid rgba(112, 91, 84, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  color: #7f695d;
  font-size: 11px;
  font-weight: 700;
  box-shadow: none;
}

@media (hover: hover) {
  .view-switch-btn:hover {
    background: rgba(123, 77, 255, 0.08);
  }

  .nav-logout-btn:hover {
    background: rgba(255, 255, 255, 0.72);
  }
}

.nav-title {
  display: grid;
  gap: 4px;
}

.nav h1 {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  color: #5f4b85;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
}

.nav-title p {
  margin: 0 0 12px;
  color: #666;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

h3 {
  margin-top: 0;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-sub);
  gap: 8px;
}

.auth-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

button {
  max-width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  min-height: 48px;
  touch-action: manipulation;
  overflow-wrap: anywhere;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-secondary {
  background: #eee;
  color: #333;
}

.btn-help {
  background: transparent;
  color: #5f4f80;
  border: 1px solid #d9cdee;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
}

.btn-help:hover {
  background: rgba(123, 77, 255, 0.08);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--app-card-radius);
  padding: var(--app-card-padding);
  margin-bottom: 24px;
  box-shadow: var(--app-card-shadow);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  width: min(560px, 100%);
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-card:focus {
  outline: 2px solid rgba(123, 77, 255, 0.35);
  outline-offset: 2px;
}

.product-detail-modal-card {
  width: min(640px, 100%);
  max-height: min(82vh, 760px);
  overflow-y: auto;
}

.product-detail-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.product-detail-modal-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  color: #8a7a9f;
}

.product-detail-close-btn {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 7px 12px;
}

.first-product-success-modal-backdrop {
  background: rgba(42, 32, 58, 0.32);
  animation: modal-soft-fade-in 220ms ease;
}

.first-product-success-modal-card {
  width: min(408px, calc(100vw - 32px));
  padding: 20px 18px 16px;
  border: 1px solid #eadbf8;
  border-radius: 24px;
  background:
    radial-gradient(180px 88px at 0% 0%, rgba(255, 243, 232, 0.88) 0%, rgba(255, 243, 232, 0) 72%),
    linear-gradient(160deg, #fffefe 0%, #fbf6ff 58%, #f5eeff 100%);
  box-shadow: 0 22px 48px rgba(70, 49, 103, 0.22);
  animation: modal-card-rise-in 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.first-product-success-title {
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
  color: #4a396e;
}

.first-product-success-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #6d5f85;
}

.first-product-success-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.first-product-success-cta {
  min-height: 48px;
  border-radius: 16px;
  padding: 11px 14px;
  font-weight: 700;
  letter-spacing: 0;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.first-product-success-cta--primary {
  background: linear-gradient(180deg, #8b68ff 0%, #744bee 100%);
  box-shadow: 0 12px 22px rgba(123, 77, 255, 0.16);
}

.first-product-success-cta--secondary {
  border: 1px solid #dfd2f6;
  background: linear-gradient(180deg, #fffefe 0%, #f7f1ff 100%);
  color: #5a468a;
  box-shadow: 0 8px 18px rgba(117, 87, 138, 0.08);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.onboarding-section {
  margin-top: 12px;
}

.onboarding-intro {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.55;
  color: #5b4e66;
}

.onboarding-intro:last-child {
  margin-bottom: 0;
}

.onboarding-steps {
  display: grid;
  gap: 10px;
}

.onboarding-step {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: flex-start;
}

.onboarding-icon {
  font-size: 15px;
  line-height: 1.2;
  margin-top: 1px;
}

.onboarding-step-title {
  font-size: 13px;
  font-weight: 700;
  color: #4a3c63;
  margin-bottom: 2px;
}

.onboarding-step-desc {
  font-size: 12px;
  line-height: 1.5;
  color: #6f6281;
}

.onboarding-cta {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #553f84;
}

input,
select,
textarea {
  width: 100%;
  margin-bottom: 8px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fffefe;
  box-sizing: border-box;
  min-height: 48px;
}

textarea {
  min-height: 80px;
}

.event-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.inline-form {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: border-color 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.product-form-intro {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.45;
  color: #6f6183;
}

.product-form-optional {
  display: grid;
  gap: 8px;
  width: 100%;
  margin: 0 auto;
}

.product-optional-toggle {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: #674c98;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  box-shadow: none;
}

.product-optional-toggle::after {
  content: "+";
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.product-optional-toggle--expanded::after {
  content: "-";
}

.product-optional-toggle:disabled {
  color: #988db0;
  text-decoration: none;
}

.product-form-optional-field {
  width: 100%;
}

.sample-onboarding-banner {
  margin: 10px 0 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #e6d7bf;
  background:
    radial-gradient(140px 66px at 100% 0%, rgba(255, 230, 193, 0.56) 0%, rgba(255, 230, 193, 0) 72%),
    linear-gradient(180deg, #fffdf9 0%, #fff6ea 100%);
  box-shadow: 0 10px 22px rgba(184, 136, 63, 0.1);
}

.sample-onboarding-banner-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid #efcf9d;
  background: rgba(255, 248, 237, 0.92);
  color: #9a5d16;
  font-size: 11px;
  font-weight: 800;
}

.sample-onboarding-banner-message {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #674f2a;
}

.sample-onboarding-banner-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sample-onboarding-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 800;
}

.sample-onboarding-btn--primary {
  border-color: #d1822f;
  background: linear-gradient(180deg, #f0a953 0%, #db8729 100%);
  color: #fffdf8;
  box-shadow: 0 10px 18px rgba(190, 125, 39, 0.18);
}

.sample-onboarding-btn--secondary {
  border-color: #eadbc5;
  background: rgba(255, 255, 255, 0.82);
  color: #7d633f;
}

.product-form-shell {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
  max-height: 1500px;
  transition:
    opacity 300ms ease,
    transform 300ms ease,
    max-height 300ms ease;
}

.product-add-mode-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid #ead8c8;
  border-radius: 14px;
  background: rgba(255, 252, 249, 0.78);
}

.product-add-mode-btn {
  min-width: 0;
  min-height: 44px;
  padding: 9px 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #7a6a93;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  box-shadow: none;
}

.product-add-mode-btn--active {
  background: linear-gradient(135deg, #fff8f3 0%, #f7f1ff 100%);
  color: #4f3d73;
  box-shadow: 0 8px 16px rgba(117, 87, 138, 0.08);
}

.product-add-mode-btn:disabled {
  color: #a69aae;
  background: transparent;
  box-shadow: none;
}

.quick-add-panel {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px;
  padding: 13px;
  border: 1px solid #ead8c8;
  border-radius: 14px;
  background:
    radial-gradient(160px 72px at 100% 0%, rgba(255, 244, 232, 0.76) 0%, rgba(255, 244, 232, 0) 72%),
    linear-gradient(180deg, #fffefd 0%, #fff8f2 100%);
}

.quick-add-panel[hidden] {
  display: none;
}

.quick-add-copy {
  grid-column: 1 / -1;
}

.quick-product-textarea {
  grid-column: span 8;
  min-height: 122px;
  margin: 0;
  resize: vertical;
  border-color: #e2d7ec;
  background: #fff;
  font-size: 16px;
  line-height: 1.5;
}

.quick-add-preview {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #ead8c8;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
}

.quick-add-preview-title {
  color: #5f4e84;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.3;
}

.quick-add-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.quick-add-preview-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 32px;
  padding: 5px 6px 5px 10px;
  border: 1px solid #ead8c8;
  border-radius: 999px;
  background: #fffefd;
  color: #5f463d;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.quick-add-preview-chip span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.quick-add-preview-remove {
  min-height: 24px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.quick-add-options {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
}

.quick-add-options select {
  margin-bottom: 0;
}

.quick-add-start-type-group {
  padding: 10px;
}

.quick-add-start-type-group .product-start-type-options {
  grid-template-columns: 1fr;
}

.quick-add-actions {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
}

.product-form-explanation {
  padding: 14px 16px;
  border: 1px solid #ead8c8;
  border-radius: 14px;
  background:
    radial-gradient(160px 72px at 0% 0%, rgba(255, 244, 232, 0.92) 0%, rgba(255, 244, 232, 0) 72%),
    linear-gradient(180deg, #fffefd 0%, #fff7ef 100%);
  color: #5f463d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.product-form-explanation strong {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  color: #4c352e;
}

.product-form-explanation p {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  color: #8b6655;
}

.product-form-shell--collapsed {
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
}

.product-form-shell,
.product-form-shell * {
  pointer-events: auto;
}

.product-form-shell--collapsed,
.product-form-shell--collapsed * {
  pointer-events: none;
}

#sampleBannerMount,
#productEmptyState {
  position: relative;
  z-index: 1;
}

.product-form-submit,
#productInputContainer,
#addProductBtn {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

#productInputContainer input,
#productInputContainer select,
#productInputContainer button,
#quickAddPanel input,
#quickAddPanel select,
#quickAddPanel textarea,
#quickAddPanel button {
  pointer-events: auto;
}

.primary-app-sections {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  opacity: 1;
  transform: translateY(0);
  max-height: none;
  overflow: visible;
  transition:
    opacity 300ms ease,
    transform 300ms ease,
    max-height 300ms ease;
}

body.service-mode #homeScreen,
body.service-mode #historyScreen {
  width: 100%;
  max-width: var(--service-container-width);
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

body.service-mode .primary-app-sections > *,
body.service-mode #historyScreen > * {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body.service-mode .primary-app-sections > section,
body.service-mode .primary-app-sections > .card,
body.service-mode .primary-app-sections > .feedback-card,
body.service-mode .history-card {
  margin-bottom: 24px;
}

body.service-mode .secondary-insights-group .card {
  margin-bottom: 24px;
}

body.service-mode #productAddSection,
body.service-mode #productCreationCard {
  margin-bottom: 0;
}

body.service-mode .primary-app-sections > :last-child,
body.service-mode #historyScreen > :last-child {
  margin-bottom: 0;
}

body.service-mode .secondary-insights-group {
  display: grid;
  gap: 16px;
}

body.service-mode .primary-app-sections .card,
body.service-mode .today-overview-card,
body.service-mode .routine-progress,
body.service-mode .data-safety-notice,
body.service-mode .history-card {
  border-radius: var(--app-card-radius);
  padding: var(--app-card-padding);
  box-shadow: var(--app-card-shadow);
}

body.service-mode .today-status-card {
  border-radius: var(--app-card-radius);
  box-shadow: var(--app-card-shadow);
}

body.service-mode #productCreationCard {
  box-shadow: var(--app-card-shadow);
}

body.service-mode .today-overview-card,
body.service-mode .routine-progress {
  box-shadow: var(--app-card-shadow);
}

.primary-app-sections--collapsed {
  opacity: 0;
  transform: translateY(12px);
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
}

.product-form-field {
  min-width: 0;
}

.product-form-field--name {
  grid-column: 1 / -1;
}

.product-form-field--brand {
  grid-column: span 3;
}

.product-form-field--category {
  grid-column: span 3;
}

.product-form-field--routine {
  grid-column: span 3;
}

.product-form-field--total {
  grid-column: span 3;
}

.product-form-field--per-use {
  grid-column: span 3;
}

.product-start-type-group {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid #ead8c8;
  border-radius: 14px;
  background: rgba(255, 252, 249, 0.72);
}

.product-start-type-group legend {
  padding: 0;
}

.product-start-type-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.product-start-type-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid #ead8c8;
  border-radius: 12px;
  background: #fffefd;
  color: #5f4e6f;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.product-start-type-option input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
}

.product-start-type-option span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.product-step-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
}

.product-details-toggle-btn {
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid #e4d7ee;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffefe 0%, #f8f3ff 100%);
  color: #5f4690;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(117, 87, 138, 0.08);
}

.product-details-toggle-btn--expanded {
  border-color: #d6c4ef;
  background: #fff;
}

.product-details-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 2px;
}

.product-details-fields .product-form-optional,
.product-details-fields .usage-recommendation {
  grid-column: 1 / -1;
}

.product-details-fields .product-form-field {
  grid-column: auto;
}

.product-form-submit {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 4px 0 0;
}

.product-submit-btn {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid #d95434;
  background: linear-gradient(135deg, #e85d3f 0%, #f48c3a 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(232, 93, 63, 0.26);
  transition: transform 160ms ease, opacity 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.product-submit-btn:disabled {
  opacity: 1;
  color: #8b594a;
  border: 1px solid #ecd0c4;
  background: linear-gradient(180deg, #fffefd 0%, #fff3ea 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 10px 20px rgba(160, 117, 76, 0.08);
}

.product-submit-btn:focus-visible {
  outline: 3px solid rgba(232, 93, 63, 0.22);
  outline-offset: 2px;
}

@media (hover: hover) {
  .product-submit-btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(232, 93, 63, 0.32);
  }
}

.product-submit-btn:active,
.product-submit-btn.btn-press {
  transform: scale(0.985);
  opacity: 0.94;
  box-shadow: 0 8px 16px rgba(123, 77, 255, 0.12);
}

.product-form-status {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #7b6d90;
}

.product-form-status--ready {
  color: #5f4690;
}

.product-form-field--name .field-label {
  font-size: 13px;
  font-weight: 800;
  color: #442f73;
}

#productName {
  min-height: 50px;
  border-color: #cdbdf0;
  background: #fff;
  font-size: 16px;
  font-weight: 700;
  color: #2f263b;
}

#productName::placeholder {
  color: #9b8daf;
  font-weight: 600;
}

#productName:focus {
  border-color: #e85d3f;
  outline: 3px solid rgba(232, 93, 63, 0.14);
}

.product-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  margin: 0 auto 8px;
}

.product-list-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  padding-top: 2px;
}

.product-list-heading h3 {
  margin: 0;
  color: #463d50;
}

#product-section .first-action-guide-text {
  max-width: 560px;
  color: #746a7d;
}

.product-list-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

.product-sort-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 4px 8px 4px 10px;
  border: 1px solid #e4d8ec;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: #74617f;
  font-size: 11px;
  font-weight: 900;
}

.product-sort-control select {
  min-height: 36px;
  margin: 0;
  padding: 4px 22px 4px 6px;
  border: 0;
  background: transparent;
  color: #4f3d73;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
}

.product-sort-control select:focus {
  outline: 2px solid rgba(123, 77, 255, 0.16);
  outline-offset: 2px;
  border-radius: 8px;
}

.product-routine-filter {
  display: inline-flex;
  min-height: 40px;
  padding: 3px;
  border: 1px solid #e4d8ec;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.product-filter-btn {
  min-height: 36px;
  padding: 6px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #74617f;
  font-size: 12px;
  font-weight: 900;
  box-shadow: none;
}

.product-filter-btn--active {
  background: linear-gradient(180deg, #fff8f3 0%, #f7f1ff 100%);
  color: #5f4690;
  box-shadow: 0 4px 10px rgba(117, 87, 138, 0.08);
}

.product-list-empty-note {
  margin: 0;
  padding: 14px 4px;
  text-align: center;
}

.routine-product-group {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e8def1;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffefe 0%, #fffafc 100%);
  box-shadow: 0 7px 16px rgba(117, 87, 138, 0.055);
}

.routine-product-group--morning {
  border-color: #efd7b0;
  background:
    radial-gradient(180px 72px at 100% 0%, rgba(255, 232, 190, 0.5) 0%, rgba(255, 232, 190, 0) 72%),
    linear-gradient(180deg, #fffefe 0%, #fff9f1 100%);
}

.routine-product-group--evening {
  border-color: #d9d0f0;
  background:
    radial-gradient(180px 72px at 100% 0%, rgba(230, 222, 250, 0.52) 0%, rgba(230, 222, 250, 0) 72%),
    linear-gradient(180deg, #fffefe 0%, #faf7ff 100%);
}

.routine-product-group--done {
  border-color: #cbe4d2;
  background:
    radial-gradient(180px 72px at 100% 0%, rgba(224, 245, 230, 0.48) 0%, rgba(224, 245, 230, 0) 72%),
    linear-gradient(180deg, #fffefe 0%, #f7fcf8 100%);
}

.routine-product-group-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.routine-product-group-title-wrap {
  min-width: 0;
}

.routine-product-group-title-wrap h4 {
  margin: 0;
  color: #3f3354;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.3;
}

.routine-product-group-title-wrap p {
  margin: 4px 0 0;
  color: #746a7d;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

.routine-product-group-status {
  display: grid;
  justify-items: end;
  gap: 7px;
  flex-shrink: 0;
}

.routine-product-group-status strong {
  color: #5f4e84;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.routine-group-use-btn {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #d95434;
  border-radius: 12px;
  background: linear-gradient(135deg, #e85d3f 0%, #f48c3a 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 10px 18px rgba(232, 93, 63, 0.18);
}

.routine-group-use-btn:disabled {
  border-color: #d9cee9;
  background: #f8f3ff;
  color: #746a7d;
  box-shadow: none;
}

.routine-product-group-progress {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(222, 210, 236, 0.72);
}

.routine-product-group-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e85d3f 0%, #f4a03a 100%);
  transition: width 260ms ease;
}

.routine-product-group--done .routine-product-group-progress span {
  background: linear-gradient(90deg, #61b978 0%, #8fd2a0 100%);
}

.routine-product-checklist {
  display: grid;
  gap: 8px;
}

.product-section-heading > div {
  min-width: 0;
}

.product-form-toggle-btn {
  flex-shrink: 0;
  min-height: 48px;
  padding: 11px 16px;
  border: 1px solid #d95434;
  border-radius: 14px;
  background: linear-gradient(135deg, #e85d3f 0%, #f48c3a 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 14px 24px rgba(232, 93, 63, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.product-form-toggle-btn--expanded {
  border-color: #e4d6f6;
  background: linear-gradient(180deg, #fffefd 0%, #f8f3ff 100%);
  color: #5f4690;
  box-shadow: 0 8px 18px rgba(117, 87, 138, 0.08);
}

.product-form-toggle-btn:disabled {
  opacity: 0.68;
  cursor: not-allowed;
}

@media (hover: hover) {
  .product-form-toggle-btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(232, 93, 63, 0.28);
  }

  .product-form-toggle-btn--expanded:not(:disabled):hover {
    box-shadow: 0 12px 22px rgba(117, 87, 138, 0.12);
  }
}

.product-card-list {
  display: grid;
  gap: 10px;
  margin-bottom: 0;
}

@media (min-width: 760px) {
  .product-card-list {
    grid-template-columns: 1fr;
  }
}

.product-card-list > .hint {
  grid-column: 1 / -1;
  margin: 0;
  padding: var(--app-card-padding);
  border: 1px solid var(--card-border);
  border-radius: var(--app-card-radius);
  background: var(--card-bg);
  box-shadow: var(--app-card-shadow);
}

.product-list-more-btn {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 320px);
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid #e1d4ec;
  background: linear-gradient(180deg, #fffefe 0%, #f8f3ff 100%);
  color: #5f4690;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(117, 87, 138, 0.08);
}

@media (hover: hover) {
  .product-list-more-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(117, 87, 138, 0.12);
  }
}

.first-action-guide-text {
  margin: 0 0 10px;
  max-width: 420px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  color: #5f4891;
}

.empty-state-onboarding {
  display: flex;
  justify-content: center;
  margin: 18px 0 8px;
}

.empty-state-onboarding-card {
  position: relative;
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 22px 22px 20px;
  border: 1px solid #e8dbf8;
  border-radius: 24px;
  background:
    radial-gradient(180px 88px at 0% 0%, rgba(255, 244, 234, 0.9) 0%, rgba(255, 244, 234, 0) 72%),
    linear-gradient(135deg, #fffefe 0%, #fbf6ff 50%, #f4edff 100%);
  box-shadow: 0 12px 26px rgba(117, 87, 138, 0.08);
  overflow: hidden;
  text-align: center;
}

.empty-state-onboarding-card--compact {
  padding: 20px 22px 18px;
}

.empty-state-onboarding-card::after {
  content: "";
  position: absolute;
  top: -34px;
  right: -26px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(214, 193, 247, 0.24);
  pointer-events: none;
}

.empty-state-onboarding-title,
.empty-state-onboarding-desc,
.empty-state-onboarding-steps {
  position: relative;
  z-index: 1;
}

.empty-state-onboarding-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
  color: #4f3f76;
}

.empty-state-onboarding-title + .empty-state-onboarding-cta {
  margin-top: 14px;
}

.empty-state-onboarding-desc {
  margin: 10px auto 0;
  max-width: 360px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  color: #6f6285;
}

.empty-state-onboarding-steps {
  list-style: none;
  margin: 16px auto 0;
  max-width: 380px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.empty-state-onboarding-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(228, 219, 247, 0.92);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  text-align: left;
}

.empty-state-onboarding-step-number {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #f2e9ff 0%, #e9deff 100%);
  color: #5b4591;
  font-size: 12px;
  font-weight: 800;
}

.empty-state-onboarding-step-text {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  color: #564474;
}

.empty-state-onboarding-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  margin: 18px auto 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: linear-gradient(180deg, #8a68ff 0%, #7752f1 100%);
  box-shadow: 0 12px 22px rgba(123, 77, 255, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

@media (hover: hover) {
  .empty-state-onboarding-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(123, 77, 255, 0.2);
  }
}

@media (hover: hover) {
  .first-product-success-cta:hover {
    transform: translateY(-1px);
  }

  .first-product-success-cta--primary:hover {
    box-shadow: 0 14px 24px rgba(123, 77, 255, 0.2);
  }

  .first-product-success-cta--secondary:hover {
    border-color: #d5c5f3;
    box-shadow: 0 10px 20px rgba(117, 87, 138, 0.11);
  }
}

.hero-section {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  padding-top: 0;
  margin-bottom: 16px;
}

#product-section {
  width: 100%;
  display: grid;
  gap: 16px;
}

#productAddSection {
  width: 100%;
  display: grid;
}

#productCreationCard {
  width: 100%;
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding: var(--app-card-padding);
}

.cta-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  max-width: var(--service-container-width);
  width: 100%;
  margin: 0 auto;
  padding: var(--app-card-padding);
  border: 1px solid rgba(238, 214, 190, 0.9);
  border-radius: 18px;
  background:
    radial-gradient(260px 120px at 100% 0%, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0) 72%),
    linear-gradient(180deg, #fffdf9 0%, #fff4e9 100%);
  text-align: left;
  box-shadow: var(--app-card-shadow);
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
  transition: opacity 240ms ease, transform 280ms ease, filter 240ms ease, box-shadow 240ms ease;
}

.cta-box[data-mode="soon-depletion"] {
  background:
    radial-gradient(180px 96px at 12% 0%, rgba(255, 234, 214, 0.82) 0%, rgba(255, 234, 214, 0) 74%),
    linear-gradient(135deg, #fff8f1 0%, #feefe1 100%);
  box-shadow: 0 18px 34px rgba(188, 111, 61, 0.14);
}

.cta-box[data-mode="add-product"] {
  background:
    radial-gradient(180px 96px at 0% 0%, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 74%),
    linear-gradient(135deg, #fff9f3 0%, #fff3e7 100%);
  box-shadow: 0 18px 34px rgba(160, 117, 76, 0.13);
}

.cta-label {
  margin: 0;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(226, 185, 150, 0.72);
  background: rgba(255, 255, 255, 0.68);
  color: #9a533f;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.cta-text {
  max-width: 100%;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  color: #2d2326;
  margin: 0;
}

.cta-subtext {
  font-size: 52px;
  line-height: 0.95;
  color: #d4463e;
  margin: 0;
  max-width: 100%;
  font-weight: 900;
}

#cta-btn {
  width: 100%;
  max-width: 100%;
  background: linear-gradient(135deg, #d73820 0%, #f16d22 100%);
  color: white;
  padding: 17px 20px;
  min-height: 60px;
  border-radius: 14px;
  border: 1px solid #b9321f;
  font-weight: 900;
  font-size: 16px;
  line-height: 1.35;
  cursor: pointer;
  box-shadow: 0 18px 32px rgba(209, 71, 35, 0.34);
  transition: transform 120ms ease, box-shadow 160ms ease, background 160ms ease;
}

.hero-proof-shell {
  width: 100%;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid rgba(236, 210, 185, 0.86);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.hero-proof-label {
  margin-bottom: 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.05em;
  color: #94624b;
}

.hero-proof-list {
  width: 100%;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.hero-proof-list--single {
  grid-template-columns: 1fr;
}

.hero-proof-card {
  min-width: 0;
  padding: 16px 16px 15px;
  border: 1px solid rgba(237, 188, 166, 0.92);
  border-radius: 18px;
  background:
    radial-gradient(120px 72px at 100% 0%, rgba(255, 226, 220, 0.78) 0%, rgba(255, 226, 220, 0) 74%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, #fff7f3 100%);
  text-align: left;
  box-shadow: 0 10px 20px rgba(204, 98, 78, 0.1);
}

.hero-proof-card--urgent {
  border-color: #efb1a5;
}

.hero-proof-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hero-proof-card-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  color: #472c27;
}

.hero-proof-card-badge {
  flex-shrink: 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fee9e5;
  color: #c45147;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.hero-proof-card-dday {
  margin-top: 14px;
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  color: #d4463e;
}

.hero-proof-card-copy {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  color: #7f332f;
}

.hero-proof-card-note {
  margin: 8px 0 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  color: #9a7368;
}

body.landing-mode #homeScreen {
  width: 100%;
  min-height: 100svh;
  display: block;
  padding: 16px;
  box-sizing: border-box;
}

body.landing-mode .empty-landing {
  width: 100%;
  max-width: var(--landing-container-width);
  min-height: calc(100svh - 32px);
  margin: 0 auto;
  justify-content: center;
  align-items: stretch;
  padding: 0;
  box-sizing: border-box;
}

.empty-landing-shell {
  width: 100%;
  display: grid;
  gap: 16px;
  align-content: center;
}

.empty-landing-copy h2 {
  margin: 0;
  color: #2d2326;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 0;
}

.empty-landing-copy p {
  margin: 10px 0 0;
  color: #7a5d54;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
}

.landing-demo-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(237, 188, 166, 0.92);
  border-radius: 18px;
  background: #fff8f3;
  box-shadow: 0 14px 26px rgba(204, 98, 78, 0.1);
}

.landing-demo-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.landing-demo-card-head strong {
  color: #472c27;
  font-size: 16px;
  font-weight: 900;
}

.landing-demo-card-head span {
  flex-shrink: 0;
  padding: 5px 8px;
  border-radius: 999px;
  background: #fee9e5;
  color: #c45147;
  font-size: 11px;
  font-weight: 900;
}

.landing-demo-dday {
  color: #d4463e;
  font-size: 50px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.landing-demo-card p {
  margin: 0;
  color: #7f332f;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.landing-flow-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-flow-step {
  min-width: 0;
  min-height: 56px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  justify-items: stretch;
  align-content: center;
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(232, 216, 199, 0.9);
  border-radius: 14px;
  background: rgba(255, 253, 250, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  text-align: left;
}

.landing-flow-number {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fee9e5;
  color: #c45147;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.landing-flow-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.landing-flow-copy strong {
  color: #44312c;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.landing-flow-copy span {
  color: #80645b;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.landing-primary-cta,
.landing-start-btn {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 900;
}

.landing-primary-cta {
  border: 0;
  background: linear-gradient(180deg, #f06f50 0%, #e85d3f 62%, #d94d38 100%);
  color: #fff;
  font-weight: 900;
  box-shadow:
    0 14px 26px rgba(232, 93, 63, 0.24),
    0 6px 12px rgba(153, 65, 47, 0.16);
  transform-origin: center;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  animation: landing-cta-pulse 1120ms ease-out 420ms 1;
}

@media (hover: hover) {
  .landing-primary-cta:hover:not(:disabled) {
    transform: scale(1.03);
    filter: brightness(1.02);
    box-shadow:
      0 18px 32px rgba(232, 93, 63, 0.3),
      0 8px 16px rgba(153, 65, 47, 0.2);
  }
}

.landing-primary-cta:active:not(:disabled) {
  transform: scale(0.99);
}

.landing-input-flow {
  margin: 0 0 8px;
  color: #888;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.demo-login-prompt {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #f0c56a;
  border-radius: 16px;
  background: #fff7d6;
  box-shadow: 0 10px 22px rgba(124, 86, 0, 0.1);
}

.demo-login-prompt p {
  margin: 0;
  color: #704a00;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
  text-align: center;
}

.demo-login-prompt-value {
  color: #c04a18;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.4;
  text-align: center;
}

.demo-login-prompt-actions {
  display: grid;
  gap: 8px;
}

@keyframes landing-cta-pulse {
  0% {
    transform: scale(1);
    box-shadow:
      0 14px 26px rgba(232, 93, 63, 0.24),
      0 6px 12px rgba(153, 65, 47, 0.16);
  }

  45% {
    transform: scale(1.035);
    box-shadow:
      0 20px 36px rgba(232, 93, 63, 0.34),
      0 0 0 6px rgba(232, 93, 63, 0.12);
  }

  100% {
    transform: scale(1);
    box-shadow:
      0 14px 26px rgba(232, 93, 63, 0.24),
      0 6px 12px rgba(153, 65, 47, 0.16);
  }
}

.empty-landing--leaving {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.landing-start-actions {
  display: grid;
  gap: 10px;
}

.landing-start-btn--google {
  border: 1px solid #e3d6cf;
  background: #fff;
  color: #352d2b;
}

.landing-start-btn--anon {
  border: 1px solid #e8d8c7;
  background: #fff8f1;
  color: #68473b;
}

.landing-secondary-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.landing-link-btn,
.landing-feedback-link,
.active-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: #6f5f59;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  box-shadow: none;
}

body.landing-mode #primaryAppSections {
  display: none;
}

body.landing-transitioning .cta-box,
.cta-box--launching {
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
  filter: blur(6px);
  box-shadow: 0 10px 20px rgba(168, 111, 58, 0.1);
}

body.landing-mode .cta-note {
  display: none;
}

body.service-mode .hero-section--service-hidden {
  display: none;
}

.primary-app-sections--entering {
  animation: service-sections-rise-in 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.primary-app-sections--product-focus > :not(#productAddSection):not(.feedback-card) {
  display: none;
}

.primary-app-sections--home-mode {
  gap: 18px;
}

.primary-app-sections--home-mode > :not(#todayActionSection):not(#soonDepletionSection):not(#routineScoreCard):not(#monthlyUsageSummaryCard):not(#activeTodayCtaSection):not(#product-section):not(#productAddSection):not(.routine-progress-section):not(.secondary-insights-group):not(.feedback-card) {
  display: none;
}

.primary-app-sections--home-mode #product-section {
  margin-top: 0;
}

body.service-mode .primary-app-sections--home-mode #soonDepletionSection {
  margin-bottom: 0;
}

body.service-mode .primary-app-sections--home-mode #routineScoreCard {
  display: grid;
}

body.service-mode .primary-app-sections--home-mode #monthlyUsageSummaryCard {
  display: grid;
}

.primary-app-sections--home-mode .secondary-insights-group {
  margin-top: 0;
}

.primary-app-sections--record-mode {
  gap: 0;
}

.primary-app-sections--record-mode > :not(#productAddSection):not(.routine-progress-section) {
  display: none;
}

.primary-app-sections--record-mode #productCreationCard,
.primary-app-sections--record-mode .routine-progress {
  box-shadow: var(--app-card-shadow);
}

.primary-app-sections--demo-product > :not(#product-section):not(#productAddSection) {
  display: none;
}

.primary-app-sections--demo-warning > :not(#soonDepletionSection) {
  display: none;
}

.primary-app-sections--product-focus #productAddSection {
  animation: product-entry-rise-in 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.primary-app-sections--demo-product #product-section,
.primary-app-sections--demo-product #productAddSection,
.primary-app-sections--demo-warning #soonDepletionSection {
  animation: product-entry-rise-in 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.primary-app-sections--product-focus #productCreationCard {
  max-width: 100%;
  margin: 0 auto;
  border-color: #ebd8c7;
  box-shadow: var(--app-card-shadow);
}

.primary-app-sections--demo-product #productCreationCard,
.primary-app-sections--demo-warning #soonDepletionSection {
  max-width: 100%;
  margin: 0 auto;
}

.primary-app-sections--demo-product #sampleBannerMount {
  display: none;
}

.primary-app-sections--product-focus .product-section-heading {
  margin-bottom: 6px;
}

.hero-flow-list {
  width: min(100%, 620px);
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  outline: none;
}

.hero-flow-step {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 11px 12px;
  border: 1px solid rgba(228, 205, 182, 0.92);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.hero-flow-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff1e5 0%, #ffe5d2 100%);
  color: #8c5038;
  font-size: 12px;
  font-weight: 800;
}

.hero-flow-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.hero-flow-title {
  display: block;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  color: #43312d;
}

.hero-flow-desc {
  display: block;
  font-size: 11px;
  line-height: 1.4;
  color: #7b645e;
}

.hero-quick-guide--highlight .hero-flow-step {
  border-color: #f0bb8b;
  box-shadow: 0 0 0 3px rgba(240, 187, 139, 0.22);
}

@media (hover: hover) {
  #cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 38px rgba(209, 71, 35, 0.42);
  }
}

.cta-note {
  margin: 10px 0 0;
  max-width: 420px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  color: #8a706b;
}

.cta-helper {
  margin: 0;
  color: #8a4d39;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.active-priority-card .cta-helper {
  padding: 9px 10px;
  border-left: 3px solid #e85d3f;
  border-radius: 10px;
  background: rgba(255, 247, 241, 0.82);
  color: #7a3b2c;
}

.today-action-panel .cta-helper {
  padding: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
  color: #7a3b2c;
  font-size: 15px;
}

.today-action-panel .cta-note {
  width: max-content;
  max-width: 100%;
  margin: 2px 0 0;
  padding: 6px 9px;
  border: 1px solid rgba(224, 102, 76, 0.18);
  border-radius: 999px;
  background: rgba(255, 241, 233, 0.92);
  color: #973f33;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.active-priority-card #cta-btn {
  min-height: 62px;
  font-size: 17px;
}

.hero-auth-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.hero-auth-btn {
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid rgba(165, 132, 112, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: #6a554f;
  font-size: 12px;
  font-weight: 700;
  box-shadow: none;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.hero-auth-btn--help {
  background: rgba(255, 255, 255, 0.42);
  color: #7b6254;
  border-color: rgba(187, 153, 128, 0.24);
}

.hero-auth-btn--logout {
  background: rgba(255, 255, 255, 0.45);
  color: #7f695d;
  border-style: dashed;
  box-shadow: none;
}

@media (hover: hover) {
  .hero-auth-btn:hover {
    background: #fff;
    transform: translateY(-1px);
  }
}

#cta-btn.attention {
  animation: bounce 0.8s ease 2;
}

@media (prefers-reduced-motion: reduce) {
  #cta-btn {
    transition: none;
  }

  #cta-btn:hover {
    transform: none;
  }

  #cta-btn.attention {
    animation: none;
  }

  .product-form-shell,
  .primary-app-sections {
    transition: none;
  }

  .purchase-cta-btn--urgent {
    animation: none;
  }
}

.pulse {
  animation: pulse 1s infinite;
}

.data-safety-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #f0c56a;
  border-radius: 18px;
  background: #fff7d6;
  box-shadow: 0 10px 22px rgba(124, 86, 0, 0.1);
}

.data-safety-notice-copy {
  min-width: 0;
}

.data-safety-notice-title,
.data-safety-notice-desc {
  margin: 0;
}

.data-safety-notice-title {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
  color: #704a00;
}

.data-safety-notice-desc {
  display: none;
}

.data-safety-notice-cta {
  flex-shrink: 0;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  color: #9a4f00;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  box-shadow: none;
}

.usage-streak-summary {
  margin: 0;
}

.today-overview-section {
  margin-bottom: 24px;
}

.today-overview-card {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid #eadff7;
  background: linear-gradient(180deg, #fffefe 0%, #f8f4ff 100%);
  box-shadow: 0 10px 24px rgba(117, 87, 138, 0.08);
  transform-origin: center top;
  will-change: transform;
}

.today-overview-card--compact {
  padding: 14px 16px;
  border-radius: 18px;
  border-color: #efe7f5;
  background: linear-gradient(180deg, #fffefe 0%, #fbf9fe 100%);
  box-shadow: 0 6px 16px rgba(117, 87, 138, 0.05);
}

.today-overview-header {
  margin-bottom: 12px;
}

.today-overview-card--compact .today-overview-header {
  margin-bottom: 10px;
}

.today-overview-title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  color: #40315f;
}

.today-overview-subtitle {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
  color: #817196;
}

.today-overview-card--compact .today-overview-subtitle {
  margin-top: 5px;
}

.today-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.today-overview-card--compact .today-overview-grid {
  gap: 8px;
}

.today-overview-item {
  padding: 12px 13px;
  border-radius: 16px;
  border: 1px solid #ece3f8;
  background: rgba(255, 255, 255, 0.82);
}

.today-overview-card--compact .today-overview-item {
  padding: 10px 12px;
  border-radius: 14px;
}

.today-overview-item--done {
  border-color: #d1e6d9;
  background: linear-gradient(180deg, #fbfffc 0%, #effaf2 100%);
}

.today-overview-item--pending {
  border-color: #f0dec2;
  background: linear-gradient(180deg, #fffdfa 0%, #fff6ea 100%);
}

.today-overview-item--alert {
  border-color: #efc6c6;
  background: linear-gradient(180deg, #fffdfd 0%, #fff3f3 100%);
}

.today-overview-item--calm {
  border-color: #d8e2ef;
  background: linear-gradient(180deg, #fdfefe 0%, #f3f8ff 100%);
}

.today-overview-item-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  color: #837396;
}

.today-overview-item-value {
  display: block;
  margin-top: 7px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  color: #44355f;
}

.today-overview-card--compact .today-overview-item-value {
  margin-top: 6px;
  font-size: 17px;
}

.today-overview-item--done .today-overview-item-value {
  color: #2f7d55;
}

.today-overview-item--pending .today-overview-item-value {
  color: #9a6423;
}

.today-overview-item--alert .today-overview-item-value {
  color: #b84c4c;
}

.today-overview-item--calm .today-overview-item-value {
  color: #47678a;
}

.today-overview-card--routine-updated {
  animation: routine-status-card-pulse 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.usage-streak-card {
  position: relative;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid #eadff7;
  background: linear-gradient(180deg, #fffdfd 0%, #f8f4ff 100%);
  box-shadow: 0 10px 24px rgba(117, 87, 138, 0.08);
  color: #5c4c7e;
  overflow: hidden;
  transform-origin: center top;
  will-change: transform;
}

.usage-streak-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, rgba(123, 77, 255, 0.3) 0%, rgba(123, 77, 255, 0.06) 100%);
}

.usage-streak-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #8b7ba5;
  text-transform: uppercase;
}

.usage-streak-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 10px;
}

.usage-streak-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #f6efff 0%, #efe7ff 100%);
  font-size: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.usage-streak-copy {
  min-width: 0;
}

.usage-streak-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  color: #4a3b69;
  letter-spacing: 0;
}

.usage-streak-helper {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.5;
  color: #7b6d90;
}

.usage-streak-card--active {
  border-color: #edd8d8;
  background:
    radial-gradient(140px 74px at 0% 0%, rgba(255, 236, 220, 0.82) 0%, rgba(255, 236, 220, 0) 72%),
    linear-gradient(180deg, #fffaf8 0%, #f7f2ff 100%);
  color: #694a70;
}

.usage-streak-card--active::before {
  background: linear-gradient(180deg, rgba(255, 160, 85, 0.76) 0%, rgba(123, 77, 255, 0.18) 100%);
}

.usage-streak-card--active .usage-streak-icon {
  background: linear-gradient(180deg, #fff0e5 0%, #f7e9ff 100%);
}

.usage-streak-card--active .usage-streak-title {
  color: #5e4469;
}

.usage-streak-card--empty,
.usage-streak-card--muted {
  color: #7a6b93;
}

.usage-streak-card--empty {
  background: linear-gradient(180deg, #fffefe 0%, #faf7ff 100%);
}

.usage-streak-card--empty::before {
  background: linear-gradient(180deg, rgba(168, 129, 235, 0.4) 0%, rgba(168, 129, 235, 0.08) 100%);
}

.usage-streak-card--empty .usage-streak-icon {
  background: linear-gradient(180deg, #faf4ff 0%, #f3ebff 100%);
}

.usage-streak-card--muted {
  background: linear-gradient(180deg, #fffefe 0%, #f8f4ff 100%);
}

.usage-streak-card--muted .usage-streak-icon {
  background: linear-gradient(180deg, #f5efff 0%, #efe9ff 100%);
}

.usage-streak-card--routine-updated {
  animation: routine-status-card-pulse 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes routine-status-card-pulse {
  0% {
    transform: scale(1);
  }

  32% {
    transform: scale(0.975);
  }

  64% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1);
  }
}

.today-action-card,
.soon-depletion-card {
  margin-bottom: 16px;
  padding: 18px 18px 16px;
  border-radius: 20px;
  border-color: #f1a35f;
  border-width: 1px;
  background:
    radial-gradient(180px 96px at 0% 0%, rgba(255, 226, 198, 0.92) 0%, rgba(255, 226, 198, 0) 72%),
    linear-gradient(180deg, #fffdfb 0%, #fff3e8 100%);
  box-shadow: 0 18px 34px rgba(219, 124, 59, 0.14);
}

.today-action-card {
  background:
    radial-gradient(180px 96px at 100% 0%, rgba(244, 234, 255, 0.78) 0%, rgba(244, 234, 255, 0) 72%),
    linear-gradient(180deg, #fffefd 0%, #fff8f3 100%);
}

.routine-score-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 18px;
  padding: 20px 22px;
  border: 1px solid #ead8cf;
  border-radius: var(--app-card-radius);
  border-color: #ead8cf;
  background:
    radial-gradient(220px 98px at 100% 0%, rgba(255, 226, 233, 0.58) 0%, rgba(255, 226, 233, 0) 72%),
    linear-gradient(180deg, #fffdfb 0%, #fff8f4 100%);
  box-shadow: 0 12px 26px rgba(149, 91, 101, 0.08);
}

.routine-score-label {
  margin: 0;
  color: #6a514a;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0;
}

.routine-score-desc {
  grid-column: 1 / -1;
  margin: 0;
  color: #8b746e;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.routine-score-status {
  grid-column: 1 / -1;
  margin: -2px 0 0;
  color: #9a6d61;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
}

.routine-score-value {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 6px;
  min-width: 94px;
  justify-content: flex-end;
  color: #c45a78;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.routine-score-value strong {
  font-size: 42px;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
}

.routine-score-badge {
  align-self: center;
  padding: 5px 8px;
  border: 1px solid rgba(190, 132, 51, 0.28);
  border-radius: 999px;
  background: rgba(255, 250, 226, 0.84);
  color: #9a6235;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.routine-score-card--empty .routine-score-value {
  color: #a9939a;
}

.monthly-usage-summary-card {
  display: grid;
  gap: 22px;
  padding: 28px;
  border: 1px solid #eccfc9;
  border-radius: var(--app-card-radius);
  background:
    radial-gradient(280px 126px at 100% 0%, rgba(255, 216, 226, 0.68) 0%, rgba(255, 216, 226, 0) 72%),
    radial-gradient(240px 116px at 0% 100%, rgba(255, 246, 217, 0.82) 0%, rgba(255, 246, 217, 0) 74%),
    linear-gradient(180deg, #fffdfa 0%, #fff6f0 100%);
  box-shadow: 0 18px 38px rgba(149, 91, 101, 0.12);
}

.monthly-usage-summary-header {
  display: grid;
  gap: 8px;
}

.monthly-usage-summary-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.monthly-usage-summary-header h3 {
  margin: 0;
  color: #4c352e;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
}

.monthly-usage-summary-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 5px 9px;
  border: 1px solid rgba(204, 130, 151, 0.22);
  border-radius: 999px;
  background: rgba(255, 245, 248, 0.78);
  color: #b55370;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
}

.monthly-usage-summary-header p {
  margin: 0;
  color: #8b6a61;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.monthly-usage-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.monthly-usage-summary-item {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 12px;
  min-width: 0;
  min-height: 118px;
  padding: 18px 18px 17px;
  border: 1px solid rgba(235, 204, 196, 0.86);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 250, 247, 0.72) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 10px 22px rgba(149, 91, 101, 0.07);
}

.monthly-usage-summary-item::before {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(226, 190, 181, 0.72);
  border-radius: 50%;
  background: rgba(255, 246, 240, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1;
}

.monthly-usage-summary-item:nth-child(1)::before {
  content: "🧴";
}

.monthly-usage-summary-item:nth-child(2)::before {
  content: "📅";
}

.monthly-usage-summary-item:nth-child(3)::before {
  content: "⏰";
}

.monthly-usage-summary-item:nth-child(4)::before {
  content: "⭐";
}

.monthly-usage-summary-label {
  display: block;
  color: #a4867f;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.25;
}

.monthly-usage-summary-value {
  display: block;
  min-width: 0;
  color: #bf3f66;
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.monthly-usage-summary-unit {
  margin-left: 2px;
  color: #a75f72;
  font-size: 0.54em;
  font-weight: 900;
  line-height: 1;
}

.monthly-usage-summary-value--product {
  color: #3f2f46;
  font-size: 24px;
  line-height: 1.16;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.monthly-usage-summary-card--empty .monthly-usage-summary-value {
  color: #a9939a;
}

.active-priority-card {
  display: grid;
  gap: 12px;
}

#soonDepletionSection.today-action-hub-card {
  padding: 24px 28px 24px;
  border-color: #eead83;
  background:
    radial-gradient(320px 150px at 100% 0%, rgba(255, 223, 196, 0.82) 0%, rgba(255, 223, 196, 0) 70%),
    linear-gradient(180deg, #fffdfb 0%, #fff1e6 100%);
  box-shadow: 0 22px 42px rgba(197, 112, 58, 0.14);
}

#soonDepletionSection.today-action-hub-card .home-section-heading h3 {
  font-size: 22px;
  line-height: 1.15;
}

.today-status-card {
  position: relative;
  padding: var(--app-card-padding);
  overflow: hidden;
}

.today-summary-card {
  border-color: #eadfd7;
  background:
    radial-gradient(160px 72px at 100% 0%, rgba(255, 244, 235, 0.88) 0%, rgba(255, 244, 235, 0) 72%),
    linear-gradient(180deg, #fffefd 0%, #fffaf6 100%);
  box-shadow: 0 10px 24px rgba(117, 87, 138, 0.08);
}

.today-status-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(280px 130px at 100% 0%, rgba(255, 235, 216, 0.88) 0%, rgba(255, 235, 216, 0) 68%),
    radial-gradient(220px 100px at 0% 100%, rgba(244, 234, 255, 0.78) 0%, rgba(244, 234, 255, 0) 72%);
  pointer-events: none;
}

.today-status-card > * {
  position: relative;
  z-index: 1;
}

.today-status-eyebrow {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  color: #d4593e;
}

.home-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.home-section-heading--compact {
  margin-bottom: 8px;
}

.home-section-heading h3 {
  margin: 0;
  color: #4c352e;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0;
}

.home-section-heading--compact h3 {
  font-size: 18px;
}

.home-status-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.today-status-card #soonDepletionList,
.today-status-card .today-status-footer,
.today-status-card .soon-depletion-note {
  display: none;
}

.active-priority-card #soonDepletionList {
  display: block;
}

.today-action-hub {
  display: grid;
  gap: 14px;
}

.today-action-panel {
  min-height: 0;
  padding: 20px 22px 18px;
  border: 1px solid #f0c7a7;
  border-radius: 20px;
  background:
    radial-gradient(320px 160px at 100% 0%, rgba(255, 210, 177, 0.94) 0%, rgba(255, 210, 177, 0) 74%),
    radial-gradient(220px 120px at 0% 100%, rgba(255, 241, 231, 0.74) 0%, rgba(255, 241, 231, 0) 76%),
    linear-gradient(180deg, #fffaf5 0%, #ffeedf 100%);
  box-shadow: 0 16px 30px rgba(197, 112, 58, 0.12);
  gap: 10px;
}

.today-action-copy {
  display: grid;
  gap: 6px;
}

.today-action-copy strong {
  color: #4c352e;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.today-action-buttons {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.36fr);
  gap: 10px;
  align-items: stretch;
  margin: 10px 0 8px;
  padding: 10px;
  border: 1px solid rgba(236, 171, 142, 0.48);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.64) 0%, rgba(255, 239, 227, 0.92) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 8px 18px rgba(197, 112, 58, 0.08);
}

.today-action-hub-card #cta-btn {
  min-height: 58px;
  padding: 14px 18px;
  border-radius: 16px;
  border-color: #c3476c;
  background: linear-gradient(135deg, #ff83a8 0%, #f16f93 42%, #d94b77 100%);
  color: #fffaf8;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
  box-shadow:
    0 12px 22px rgba(210, 108, 132, 0.18),
    0 18px 34px rgba(201, 77, 114, 0.28);
  transform: none;
  transition:
    transform 140ms ease,
    box-shadow 180ms ease,
    filter 180ms ease,
    background 180ms ease;
}

.today-action-hub-card .today-action-buttons .top-secondary-action-btn {
  min-width: 0;
  min-height: 50px;
  padding: 10px 12px;
  border: 1px solid rgba(143, 126, 132, 0.26);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.28);
  color: rgba(114, 96, 101, 0.68);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: none;
  opacity: 0.72;
}

@media (hover: hover) {
  .today-action-hub-card #cta-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    filter: saturate(1.08) brightness(1.02);
    box-shadow:
      0 24px 42px rgba(210, 108, 132, 0.26),
      0 38px 64px rgba(201, 77, 114, 0.46);
  }

  .today-action-hub-card .today-action-buttons .top-secondary-action-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.44);
    color: rgba(114, 96, 101, 0.86);
    opacity: 0.92;
    box-shadow: 0 8px 16px rgba(149, 91, 101, 0.06);
  }
}

.today-representative-block {
  display: grid;
  gap: 12px;
}

.today-representative-label {
  color: #6f5e78;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.today-representative-desc {
  margin-top: -6px;
  color: #9a7c72;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.today-action-hub-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 16px 16px;
  border: 1px solid #eadfd4;
  border-radius: 18px;
  background:
    radial-gradient(180px 84px at 100% 0%, rgba(255, 244, 235, 0.84) 0%, rgba(255, 244, 235, 0) 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 248, 242, 0.92) 100%);
  box-shadow: 0 12px 24px rgba(149, 91, 101, 0.08);
}

.today-summary-heading {
  grid-column: 1 / -1;
  margin: 0;
  color: #6b574f;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.active-cta-section {
  width: 100%;
}

.home-primary-cta {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: 0;
}

.active-secondary-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 4px 0 0;
  background: transparent;
  box-shadow: none;
  border: 0;
}

.today-action-hub-card .home-status-stat {
  min-width: 0;
  padding: 14px 12px;
  border: 1px solid #eadfd4;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.home-status-stat-label {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  color: #8a6355;
}

.today-action-hub-card .home-status-stat strong {
  display: block;
  color: #3f2f46;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.today-action-hub-card .home-priority-card {
  display: grid;
  gap: 14px;
  min-height: 190px;
  padding: 28px 30px;
  border: 1px solid #edb078;
  border-radius: 24px;
  background:
    radial-gradient(260px 130px at 100% 0%, rgba(255, 225, 190, 0.76) 0%, rgba(255, 225, 190, 0) 72%),
    linear-gradient(145deg, #fffdf9 0%, #fff0e4 100%);
  box-shadow: 0 24px 44px rgba(197, 112, 58, 0.18);
}

.home-priority-card--warning {
  border-color: #e8c99b;
}

.home-priority-card--safe {
  border-color: #efc89d;
  background:
    radial-gradient(260px 130px at 100% 0%, rgba(255, 231, 201, 0.78) 0%, rgba(255, 231, 201, 0) 72%),
    linear-gradient(145deg, #fffefd 0%, #fff4e9 100%);
}

.today-action-hub-card .home-priority-card--empty {
  border-color: #e5d8f1;
  min-height: 0;
  background: linear-gradient(180deg, #fffefe 0%, #faf7ff 100%);
}

.home-priority-empty-copy {
  color: #766983;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.home-priority-product {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.home-priority-kicker {
  width: max-content;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(232, 93, 63, 0.22);
  background: rgba(255, 246, 239, 0.78);
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  color: #b0442e;
}

.home-priority-action {
  display: grid;
  justify-items: end;
  align-content: end;
  gap: 7px;
  text-align: right;
}

.home-priority-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.home-priority-card h4 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 24px;
  line-height: 1.2;
  color: #3d2e42;
}

.home-priority-product-name {
  font-weight: 900;
  letter-spacing: 0;
}

.home-priority-brand {
  color: #7f695d;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.home-priority-remaining {
  color: #7a5e54;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.home-priority-card p {
  margin: 0;
}

.home-priority-message {
  color: #8d3428;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: 0;
}

.home-priority-dday {
  min-width: 0;
  text-align: right;
  color: #d54e37;
  font-size: 88px;
  font-weight: 900;
  line-height: 1;
}

.home-priority-progress-block {
  display: grid;
  gap: 6px;
  margin-top: 2px;
}

.home-priority-progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #7a5e54;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
}

.home-priority-progress-label strong {
  flex-shrink: 0;
  color: #4f3d73;
  font-size: 11px;
  font-weight: 900;
}

.home-priority-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-priority-fact {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #efddd2;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.home-priority-fact span {
  display: block;
  margin-bottom: 6px;
  color: #8a6355;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.home-priority-fact strong {
  display: block;
  color: #3f2f46;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.home-priority-metrics,
.home-priority-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #6f5e78;
  font-size: 13px;
  font-weight: 800;
}

.home-priority-metrics strong {
  color: #4f3d73;
}

.home-priority-progress {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  border: 1px solid transparent;
  background-color: rgba(99, 65, 48, 0.13);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
  box-sizing: border-box;
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.home-priority-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background-color: #d97706;
  transition: width 720ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 220ms ease;
}

.home-priority-cta {
  min-height: 54px;
  border: 1px solid #d95434;
  border-radius: 15px;
  background: linear-gradient(135deg, #e85d3f 0%, #f48c3a 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 16px 30px rgba(232, 93, 63, 0.25);
}

@media (hover: hover) {
  .home-priority-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 36px rgba(232, 93, 63, 0.3);
  }
}

.today-status-actions {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
}

.today-status-footer {
  display: none;
  justify-content: center;
  margin-top: 18px;
}

.today-status-primary-cta {
  width: min(100%, 420px);
  min-height: 56px;
  padding: 15px 20px;
  border-radius: 16px;
  border: 1px solid #d95434;
  background: linear-gradient(135deg, #e85d3f 0%, #f48c3a 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 18px 32px rgba(232, 93, 63, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.today-status-primary-cta:disabled {
  opacity: 0.72;
  cursor: wait;
}

@media (hover: hover) {
  .today-status-primary-cta:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 38px rgba(232, 93, 63, 0.34);
  }
}

.popular-products-section {
  display: grid;
  gap: 14px;
  background:
    radial-gradient(180px 84px at 0% 0%, rgba(255, 243, 232, 0.76) 0%, rgba(255, 243, 232, 0) 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #fffaf6 100%);
}

.secondary-insights-group {
  margin-bottom: 16px;
}

.skin-event-card {
  padding: 14px;
  margin-bottom: 12px;
  border-color: #ece3f1;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffefe 0%, #faf8fc 100%);
  box-shadow: 0 6px 16px rgba(117, 87, 138, 0.05);
}

.skin-event-card h3 {
  margin-bottom: 8px;
  color: #554b66;
}

.skin-event-card .hint {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
}

.skin-event-card textarea {
  min-height: 72px;
  margin-top: 10px;
}

.skin-event-card .event-actions {
  margin-top: 10px;
  gap: 6px;
}

.skin-event-action-btn {
  border: 1px solid #ddd4ef;
  border-radius: 10px;
  background: linear-gradient(180deg, #f5f1ff 0%, #ede7fb 100%);
  color: #56447e;
  font-size: 12px;
  font-weight: 700;
  box-shadow: none;
}

.skin-event-card--recent {
  margin-bottom: 0;
}

.primary-app-sections--home-mode .skin-event-card--recent {
  padding: 16px;
  border-color: rgba(234, 223, 216, 0.86);
  background: rgba(255, 253, 251, 0.72);
  box-shadow: 0 8px 18px rgba(149, 91, 101, 0.06);
}

.primary-app-sections--home-mode .skin-event-card--recent h3 {
  margin-bottom: 8px;
  color: #6a514a;
  font-size: 16px;
}

.feedback-card {
  margin-bottom: 0;
}

.popular-products-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.popular-products-header h3 {
  margin-bottom: 0;
}

.popular-products-subtitle {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #7d6f93;
}

.popular-products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.popular-product-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #efe2d9;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 20px rgba(117, 87, 138, 0.06);
}

.popular-product-rank {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff1e4;
  color: #9a5b2b;
  font-size: 11px;
  font-weight: 800;
}

.popular-product-name {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  color: #392b48;
}

.popular-product-brand {
  font-size: 13px;
  line-height: 1.4;
  color: #7b6d90;
}

.popular-product-meta {
  font-size: 12px;
  color: #8f7e9b;
}

.popular-product-buy-btn {
  min-height: 48px;
  margin-top: 4px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffefe2, #fde6d8);
  color: #603f65;
  box-shadow: inset 0 0 0 1px rgba(180, 124, 81, 0.14);
}

.popular-product-buy-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(180, 124, 81, 0.14),
    0 10px 18px rgba(117, 87, 138, 0.1);
}

.popular-products-empty {
  padding-top: 4px;
}

.engagement-empty-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 20px 16px 18px;
  border-radius: 16px;
  text-align: center;
}

.engagement-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 22px;
  line-height: 1;
}

.engagement-empty-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
}

.engagement-empty-desc {
  max-width: 360px;
  font-size: 13px;
  line-height: 1.55;
}

.engagement-empty-cta {
  min-width: 160px;
  min-height: 48px;
  margin-top: 4px;
  padding: 11px 18px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(232, 120, 60, 0.2);
}

@media (hover: hover) {
  .engagement-empty-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 26px rgba(232, 120, 60, 0.25);
  }
}

.soon-depletion-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.soon-depletion-header h3 {
  margin-bottom: 0;
  color: #5a2b1f;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

.soon-depletion-subtitle {
  margin: 4px 0 0;
  max-width: 420px;
  font-size: 13px;
  line-height: 1.55;
  color: #8d5a38;
}

#soonDepletionList {
  display: grid;
  gap: 12px;
}

.today-status-card #soonDepletionList {
  gap: 14px;
}

.soon-depletion-item {
  padding: 16px 16px 15px;
  border-radius: 16px;
  border: 1px solid #f0c6a1;
  background:
    radial-gradient(140px 68px at 100% 0%, rgba(255, 234, 220, 0.72) 0%, rgba(255, 234, 220, 0) 72%),
    linear-gradient(180deg, #fffefe 0%, #fff8f3 100%);
  box-shadow: 0 12px 22px rgba(197, 112, 58, 0.1);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.today-status-card .soon-depletion-item:first-child {
  padding: var(--app-card-padding);
  border-radius: var(--app-card-radius);
  box-shadow: var(--app-card-shadow);
}

.today-status-card .soon-depletion-item:first-child .soon-depletion-item-title {
  font-size: 18px;
}

.today-status-card .soon-depletion-item:first-child .soon-depletion-item-dday {
  min-width: 112px;
  font-size: 58px;
}

.today-status-card .soon-depletion-item:first-child .soon-depletion-item-days-text {
  font-size: 18px;
}

.soon-depletion-item--warning {
  border-color: #f1ba83;
  background:
    radial-gradient(140px 68px at 100% 0%, rgba(255, 221, 188, 0.48) 0%, rgba(255, 221, 188, 0) 72%),
    linear-gradient(180deg, #fffdf9 0%, #fff5ee 100%);
  box-shadow: 0 12px 24px rgba(214, 125, 33, 0.12);
}

.soon-depletion-item--preview {
  position: relative;
  border-style: dashed;
}

.soon-depletion-item--demo {
  border-style: solid;
}

.soon-depletion-empty-card + .soon-depletion-item--preview {
  margin-top: 4px;
}

.soon-depletion-item--urgent {
  border-color: #e58875;
  background:
    radial-gradient(150px 72px at 100% 0%, rgba(255, 214, 200, 0.56) 0%, rgba(255, 214, 200, 0) 72%),
    linear-gradient(180deg, #fffaf8 0%, #fff1ec 100%);
  box-shadow: 0 14px 28px rgba(209, 90, 63, 0.18);
}

@media (hover: hover) {
  .soon-depletion-item:hover {
    transform: translateY(-2px);
    border-color: #e89062;
    box-shadow: 0 18px 30px rgba(209, 90, 63, 0.16);
  }
}

.soon-depletion-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.soon-depletion-item-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.soon-depletion-item-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  color: #4d2a25;
}

.soon-depletion-item-meta {
  margin-top: 8px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.soon-depletion-item-copy {
  min-width: 0;
}

.soon-depletion-item-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.soon-depletion-item-days {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  line-height: 1.35;
}

.soon-depletion-item-days--safe {
  font-weight: 600;
  color: #6f6482;
}

.soon-depletion-item-days--warning {
  font-weight: 700;
  color: #9a541b;
}

.soon-depletion-item-days--urgent {
  font-weight: 700;
  color: #be4936;
}

.soon-depletion-item-dday {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.soon-depletion-item-dday--warning {
  color: #c45454;
}

.soon-depletion-item-dday--urgent {
  color: #d33f3f;
}

.soon-depletion-item-days-text {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 800;
  color: #6a4a43;
}

.soon-depletion-item-remaining {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(233, 185, 162, 0.9);
  background: rgba(255, 255, 255, 0.68);
  color: #855143;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.soon-depletion-item-warning {
  margin-top: 9px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.soon-depletion-item-warning--safe {
  color: #7b6d90;
}

.soon-depletion-item-warning--warning {
  color: #9a4c0e;
}

.soon-depletion-item-warning--urgent {
  color: #b6453e;
}

.soon-depletion-item-solution {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.soon-depletion-item-solution--warning {
  color: #a34c4c;
}

.soon-depletion-item-solution--urgent {
  color: #b6453e;
}

.soon-depletion-item-support {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.45;
  color: #8e6046;
  font-weight: 700;
  text-align: right;
  max-width: 220px;
}

.soon-depletion-item--warning .soon-depletion-item-support {
  color: #9a555d;
}

.soon-depletion-item--urgent .soon-depletion-item-support {
  color: #a14955;
}

.soon-depletion-purchase-cta {
  min-width: 160px;
  min-height: 48px;
  padding: 11px 18px;
  white-space: nowrap;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
}

.soon-depletion-purchase-options.purchase-options--open {
  margin-top: 10px;
}

.soon-depletion-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.soon-depletion-status--safe {
  background: #f2edf7;
  color: #6f6285;
}

.soon-depletion-status--warning {
  border-color: #f0c6c6;
  background: #fff2f2;
  color: #bc4d4d;
}

.soon-depletion-status--urgent {
  border-color: #efb1b1;
  background: #fee6e6;
  color: #c94343;
}

.soon-depletion-action {
  flex-shrink: 0;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid #e0d3f5;
  background: linear-gradient(180deg, #fffefe 0%, #f6efff 100%);
  color: #5e478e;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(144, 109, 201, 0.08);
}

.soon-depletion-action--ready {
  border-color: #e0d3f5;
  background: linear-gradient(180deg, #fffefe 0%, #f6efff 100%);
  color: #5e478e;
}

.soon-depletion-empty-card {
  border-radius: 16px;
  border: 1px dashed #e9b786;
  background:
    radial-gradient(140px 72px at 50% 0%, rgba(255, 240, 226, 0.92) 0%, rgba(255, 240, 226, 0) 72%),
    linear-gradient(180deg, #fffdfa 0%, #fff6ef 100%);
}

.soon-depletion-empty-icon {
  background: rgba(255, 239, 226, 0.92);
  color: #d56741;
}

.soon-depletion-empty-title {
  color: #5a3022;
}

.soon-depletion-empty-desc {
  color: #8a665d;
}

.soon-depletion-empty-cta {
  background: linear-gradient(135deg, #ef7a43 0%, #f39a3d 100%);
  color: #fff;
}

.soon-depletion-preview-btn {
  min-width: 160px;
  border-color: #e7d7f6;
  background: linear-gradient(180deg, #fffefe 0%, #f5efff 100%);
  color: #6b549a;
  box-shadow: 0 8px 16px rgba(117, 87, 138, 0.08);
  cursor: default;
  pointer-events: none;
}

.soon-depletion-preview-cta {
  justify-self: center;
  min-width: min(100%, 320px);
  margin-top: 16px;
  padding: 12px 18px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #ef7a43 0%, #f39a3d 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  box-shadow: 0 12px 22px rgba(232, 120, 60, 0.2);
}

.soon-depletion-preview-helper {
  margin-top: 10px;
  text-align: center;
}

.soon-depletion-preview-helper p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #8a7c76;
}

.soon-depletion-preview-helper p + p {
  margin-top: 2px;
}

.soon-depletion-preview-note {
  max-width: 180px;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 700;
  color: #8b6a61;
  text-align: right;
}

.soon-depletion-note {
  margin: 14px 0 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  color: #8a685d;
}

.popular-products-empty-card {
  border: 1px dashed #ebd9cc;
  background:
    radial-gradient(140px 72px at 50% 0%, rgba(255, 244, 234, 0.92) 0%, rgba(255, 244, 234, 0) 72%),
    linear-gradient(180deg, #fffefd 0%, #fff9f4 100%);
}

.popular-products-empty-icon {
  background: rgba(255, 242, 231, 0.95);
  color: #bf7642;
}

.popular-products-empty-title {
  color: #5a3d2b;
}

.popular-products-empty-desc {
  color: #8a6e62;
}

.popular-products-empty-cta {
  background: linear-gradient(135deg, #e99053 0%, #f1b063 100%);
  color: #fff;
}

.routine-actions-panel {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #eadff8;
  border-radius: 16px;
  background:
    radial-gradient(140px 70px at 10% 0%, rgba(255, 244, 231, 0.8) 0%, rgba(255, 244, 231, 0) 72%),
    linear-gradient(180deg, #fffdfd 0%, #f7f2ff 100%);
  box-shadow: 0 10px 24px rgba(123, 77, 255, 0.08);
}

.routine-progress--cta .routine-actions-panel {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.routine-actions-help {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: #6a558d;
  letter-spacing: 0;
}

.routine-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.routine-action-btn {
  min-height: 52px;
  padding: 13px 16px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: 0 10px 20px rgba(123, 77, 255, 0.12);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.routine-action-btn--morning {
  border-color: #efd8df;
  background:
    linear-gradient(180deg, #fff8f2 0%, #f6ecff 100%);
  color: #6c486d;
}

.routine-action-btn--evening {
  border-color: #d9cff2;
  background:
    linear-gradient(180deg, #f6f0ff 0%, #ece5fb 100%);
  color: #513a7f;
}

@media (hover: hover) {
  .routine-action-btn--morning:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: #e7c7d2;
    box-shadow: 0 14px 24px rgba(162, 111, 138, 0.16);
  }

  .routine-action-btn--evening:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: #ccbff0;
    box-shadow: 0 14px 24px rgba(97, 72, 156, 0.18);
  }

  .data-safety-notice-cta:hover:not(:disabled) {
    color: #5737d6;
  }
}

.routine-action-btn:disabled {
  opacity: 0.6;
  box-shadow: none;
}

.routine-guidance-section {
  margin-bottom: 14px;
}

.routine-guidance-card {
  padding: 14px 16px;
  border: 1px solid #eadff4;
  border-radius: 18px;
  background:
    radial-gradient(140px 72px at 0% 0%, rgba(255, 244, 234, 0.82) 0%, rgba(255, 244, 234, 0) 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, #faf7ff 100%);
  box-shadow: 0 8px 20px rgba(117, 87, 138, 0.06);
}

.routine-guidance-label {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  color: #8a7a9f;
}

.routine-guidance-message {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0;
  color: #4b3b6b;
}

.routine-guidance-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(164, 143, 208, 0.16);
}

.routine-guidance-helper-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #7b6d90;
}

.routine-guidance-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #ddd0f4;
  background: linear-gradient(180deg, #fffefe 0%, #f4edff 100%);
  color: #5e478f;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(123, 77, 255, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.routine-guidance-card--pending {
  border-color: #eadff4;
}

.routine-guidance-card--morning {
  border-color: #ddd4f5;
  background:
    radial-gradient(140px 72px at 0% 0%, rgba(244, 240, 255, 0.92) 0%, rgba(244, 240, 255, 0) 72%),
    linear-gradient(180deg, #fffefe 0%, #f4f0ff 100%);
}

.routine-guidance-card--morning .routine-guidance-message {
  color: #544183;
}

.routine-guidance-card--evening {
  border-color: #efdfd6;
  background:
    radial-gradient(140px 72px at 0% 0%, rgba(255, 246, 235, 0.92) 0%, rgba(255, 246, 235, 0) 72%),
    linear-gradient(180deg, #fffefd 0%, #fff6f5 100%);
}

.routine-guidance-card--evening .routine-guidance-message {
  color: #7a4e4b;
}

.routine-guidance-card--done {
  border-color: #d4e9dc;
  background:
    radial-gradient(140px 72px at 0% 0%, rgba(238, 249, 242, 0.96) 0%, rgba(238, 249, 242, 0) 72%),
    linear-gradient(180deg, #fdfefd 0%, #f2faf5 100%);
}

  .routine-guidance-card--done .routine-guidance-message {
    color: #2f7a52;
  }

.routine-guidance-card--done .routine-guidance-actions {
  border-top-color: rgba(123, 77, 255, 0.14);
}

.routine-guidance-card--done .routine-guidance-helper-text {
  color: #6f6184;
}

  .routine-guidance-card--done .routine-guidance-cta {
    border-color: #d8c9f3;
    background: linear-gradient(180deg, #fffefe 0%, #f4edff 100%);
    color: #5d448e;
  }

@media (hover: hover) {
  .routine-guidance-cta:hover {
    transform: translateY(-1px);
    border-color: #d2c1f0;
    box-shadow: 0 8px 16px rgba(123, 77, 255, 0.1);
  }
}

.routine-progress-section {
  margin-bottom: 24px;
}

.routine-progress {
  padding: 16px;
  border: 1px solid #eadff4;
  border-radius: 20px;
  background:
    radial-gradient(140px 72px at 0% 0%, rgba(255, 241, 230, 0.84) 0%, rgba(255, 241, 230, 0) 72%),
    linear-gradient(180deg, #fffefe 0%, #faf6ff 100%);
  box-shadow: 0 10px 24px rgba(117, 87, 138, 0.08);
}

.routine-progress--cta {
  padding: 18px;
  border-radius: 22px;
  border-color: #e2d5f6;
  box-shadow: 0 14px 30px rgba(117, 87, 138, 0.1);
}

.routine-progress--spotlight {
  border-color: #d8c7f8;
  box-shadow: 0 0 0 4px rgba(190, 167, 241, 0.24), 0 16px 30px rgba(123, 77, 255, 0.12);
  animation: routine-section-spotlight 1.8s ease;
}

.routine-progress-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.routine-progress-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  color: #4b3b6b;
}

.routine-progress-helper {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #7b6d90;
}

.routine-progress-list {
  display: grid;
  gap: 8px;
}

.routine-progress--cta .routine-progress-list {
  gap: 10px;
}

.routine-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 11px 12px;
  border: 1px solid #efe7f7;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 120ms ease, background 180ms ease;
}

.routine-progress-row::before {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 2px solid #d7c9e9;
  background: #fff;
}

.routine-progress-row--done::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: #86c99b;
  background: #eefaf2;
  color: #2f7d55;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.routine-progress-row[aria-disabled="true"] {
  cursor: default;
}

.routine-progress-row:focus-visible {
  outline: 3px solid rgba(232, 93, 63, 0.18);
  outline-offset: 2px;
}

@media (hover: hover) {
  .routine-progress-row[aria-disabled="false"]:hover {
    transform: translateY(-1px);
    border-color: #e7b58f;
    box-shadow: 0 10px 20px rgba(211, 105, 50, 0.1);
  }
}

.routine-progress-label {
  font-size: 13px;
  font-weight: 700;
  color: #5e4a80;
}

.routine-progress-value {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 800;
  color: #57456f;
  white-space: nowrap;
}

.routine-progress-row--pending {
  border-color: #efe7f7;
}

.routine-progress-row--active {
  border-color: #eadcf8;
  background: linear-gradient(180deg, #fffafc 0%, #fbf7ff 100%);
}

.routine-progress-row--active .routine-progress-value {
  color: #6b4f8b;
}

.routine-progress-row--done {
  border-color: #cfead9;
  background: linear-gradient(180deg, #fdfefd 0%, #f0faf4 100%);
}

.routine-progress-row--done .routine-progress-value {
  color: #2f7a52;
}

.routine-progress-row--empty {
  border-style: dashed;
  background: linear-gradient(180deg, #fffefe 0%, #faf7ff 100%);
}

.routine-progress-row--empty .routine-progress-value {
  color: #8c7da2;
}

.routine-progress-actions-block {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(164, 143, 208, 0.16);
}

.routine-progress--cta .usage-streak-card {
  padding: 14px 16px;
  border-radius: 18px;
  box-shadow: none;
}

.routine-progress--cta .usage-streak-main {
  margin-top: 8px;
}

.routine-progress--cta .usage-streak-title {
  font-size: 16px;
}

.usage-config-group {
  min-width: 0;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: var(--bg-soft-lavender);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.usage-config-group.product-form-field--name {
  padding: 14px;
  border-color: #d7c6f3;
  background: linear-gradient(180deg, #fffefe 0%, #fbf8ff 100%);
  box-shadow: 0 10px 22px rgba(117, 87, 138, 0.07);
}

.usage-config-group--error {
  border-color: #e9bfd3;
  background: linear-gradient(180deg, #fffafb 0%, #fff5f8 100%);
}

.usage-config-group--error input {
  border-color: #db9bb6;
}

.product-form-field input,
.product-form-field select {
  margin-bottom: 0;
}

.usage-config-group select {
  margin-bottom: 0;
}

.field-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #5f4e84;
  margin-bottom: 6px;
}

.usage-input-control {
  position: relative;
}

.usage-input-control input {
  margin-bottom: 0;
  padding-right: 34px;
}

.usage-input-unit {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 700;
  color: #786894;
  pointer-events: none;
}

.ml-preset-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.ml-preset-chip {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid #efd7dd;
  border-radius: 999px;
  background: #fff8f5;
  color: #7d5f66;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: none;
}

.ml-preset-chip--selected {
  border-color: #e88fa3;
  background: #ffe9ee;
  color: #9a4055;
  box-shadow: inset 0 0 0 1px rgba(232, 143, 163, 0.22);
}

@media (hover: hover) {
  .ml-preset-chip:hover:not(:disabled) {
    background: #fff0f2;
    color: #8d4b5c;
    box-shadow: 0 6px 12px rgba(149, 91, 101, 0.08);
  }
}

.usage-input-help {
  margin: 6px 0 0;
  font-size: 11px;
  color: #7a6a93;
  line-height: 1.35;
}

.usage-input-error {
  margin: 6px 0 0;
  font-size: 11px;
  font-weight: 700;
  color: #b34d76;
  line-height: 1.35;
}

.usage-input-auto-help {
  margin: 3px 0 0;
  font-size: 11px;
  color: #6f5a8f;
  line-height: 1.35;
}

.history-card {
  min-height: 320px;
  padding: 20px 18px;
  background: linear-gradient(180deg, #fffefd 0%, #fcf8ff 100%);
}

.history-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.history-filter-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid #eadff5;
  background: #faf6ff;
  flex-shrink: 0;
}

.history-filter-btn {
  padding: 7px 12px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #7b6d90;
  font-size: 12px;
  font-weight: 700;
}

.history-filter-btn--active {
  background: linear-gradient(180deg, #ffffff 0%, #f3ecff 100%);
  color: #59458a;
  box-shadow: 0 4px 10px rgba(123, 77, 255, 0.08);
}

.history-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #7b6d90;
}

.usage-calendar-section {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
  padding: 14px;
  border: 1px solid #f0dce3;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffefd 0%, #fff7f6 100%);
  box-shadow: 0 10px 22px rgba(149, 91, 101, 0.06);
}

.usage-calendar-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.usage-calendar-header h4 {
  margin: 0;
  color: #4c352e;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
}

.usage-calendar-subtitle {
  margin: 4px 0 0;
  color: #8f7477;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.usage-calendar-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.usage-calendar-nav-btn {
  width: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border: 1px solid #ecd5dc;
  border-radius: 999px;
  background: #fff8f5;
  color: #845f68;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  box-shadow: none;
}

.usage-calendar-month-label {
  min-width: 86px;
  color: #5b4550;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.usage-calendar-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.usage-calendar-summary-item {
  min-width: 0;
  padding: 10px 8px;
  border: 1px solid #f0dfe2;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.usage-calendar-summary-item span {
  display: block;
  margin-bottom: 5px;
  color: #9a747f;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
}

.usage-calendar-summary-item strong {
  display: block;
  min-width: 0;
  color: #4b3542;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.usage-calendar-summary-item--product strong {
  font-size: 12px;
  line-height: 1.3;
}

.usage-calendar-weekdays,
.usage-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.usage-calendar-weekdays span {
  color: #9a7b84;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.usage-calendar-day {
  position: relative;
  min-width: 0;
  min-height: 38px;
  padding: 5px 2px;
  border: 1px solid #f0e2e6;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  color: #5c4750;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: none;
}

.usage-calendar-day--blank {
  border-color: transparent;
  background: transparent;
}

.usage-calendar-day--has-record {
  border-color: #efc8d3;
  background: #fff4f6;
}

.usage-calendar-day--today {
  border-color: #e899aa;
  box-shadow: inset 0 0 0 1px rgba(232, 143, 163, 0.22);
}

.usage-calendar-day--selected {
  border-color: #d96b86;
  background: #ffe7ee;
  color: #893d53;
  box-shadow: 0 8px 14px rgba(210, 108, 132, 0.14);
}

.usage-calendar-day-marker {
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #e05f85;
  transform: translateX(-50%);
}

.usage-calendar-day-detail {
  min-width: 0;
}

.usage-calendar-detail-card {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid #efd9df;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.usage-calendar-detail-card--empty {
  color: #8f7477;
  text-align: center;
}

.usage-calendar-detail-card--empty p {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
}

.usage-calendar-detail-date {
  color: #4c352e;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
}

.usage-calendar-detail-list {
  display: grid;
  gap: 8px;
}

.usage-calendar-detail-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border-radius: 13px;
  background: #fff8f5;
}

.usage-calendar-detail-item strong,
.usage-calendar-detail-item span {
  display: block;
}

.usage-calendar-detail-item strong {
  color: #4f3a45;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.usage-calendar-detail-item span {
  margin-top: 3px;
  color: #8d6f78;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.usage-calendar-detail-meta {
  flex-shrink: 0;
  text-align: right;
}

.history-day-group + .history-day-group {
  margin-top: 34px;
}

.history-day-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.history-day-label-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.history-day-label {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid #daccef;
  background: linear-gradient(180deg, #fbf7ff 0%, #f5eeff 100%);
  font-size: 14px;
  font-weight: 800;
  color: #5c4990;
  box-shadow: 0 4px 12px rgba(123, 77, 255, 0.05);
}

.history-day-count {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f6f1fb;
  color: #8a7ba2;
  font-size: 11px;
  font-weight: 700;
}

.history-day-divider {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(184, 162, 230, 0.55) 0%, rgba(184, 162, 230, 0.08) 100%);
}

.history-day-list {
  position: relative;
  display: grid;
  gap: 18px;
  padding-left: 34px;
}

.history-day-list::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 6px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(166, 145, 218, 0.72) 0%, rgba(184, 162, 230, 0.22) 100%);
}

.history-entry {
  --history-accent: #bea6ef;
  --history-accent-soft: rgba(190, 166, 239, 0.24);
  position: relative;
  padding: 17px 18px 16px;
  border-radius: 18px;
  border: 1px solid #efe7f5;
  background: #fffdfd;
  box-shadow: 0 8px 18px rgba(117, 87, 138, 0.06);
}

.history-entry::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 23px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--history-accent);
  box-shadow:
    0 0 0 6px var(--history-accent-soft),
    0 0 0 7px rgba(255, 255, 255, 0.92);
}

.history-entry::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 18px 0 0 18px;
  background: linear-gradient(180deg, var(--history-accent) 0%, rgba(255, 255, 255, 0) 100%);
  opacity: 0.45;
}

.history-entry--morning {
  --history-accent: #efbb74;
  --history-accent-soft: rgba(239, 187, 116, 0.22);
}

.history-entry--evening {
  --history-accent: #8f83e6;
  --history-accent-soft: rgba(143, 131, 230, 0.22);
}

.history-entry--individual {
  --history-accent: #d993c2;
  --history-accent-soft: rgba(217, 147, 194, 0.22);
}

.history-entry-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.history-entry-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #e5daf6;
  background: #f7f2ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  color: #614792;
}

.history-entry-badge--routine {
  border-color: #dccccf;
  background: #fff6ec;
  color: #9a5c18;
}

.history-entry-badge--individual {
  border-color: #e7d8ef;
  background: #fdf3fb;
  color: #944b77;
}

.history-entry-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #3f3354;
  line-height: 1.42;
}

.history-entry-summary {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: #5f516f;
}

.history-entry-detail {
  margin-top: 6px;
  font-size: 12px;
  color: #8b7b9b;
}

.history-entry-time {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  color: #8c7da2;
  white-space: nowrap;
}

.history-empty-state {
  padding: 30px 18px;
  border-radius: 18px;
  border: 1px dashed #e6dcf1;
  background: linear-gradient(180deg, #fffefe 0%, #faf7ff 100%);
  text-align: center;
}

.history-empty-title {
  font-size: 14px;
  font-weight: 700;
  color: #5d4c79;
}

.history-empty-desc {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: #867897;
}

.usage-recommendation {
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #ecd9cb;
  background:
    radial-gradient(120px 52px at 0% 0%, rgba(255, 244, 231, 0.76) 0%, rgba(255, 244, 231, 0) 72%),
    var(--bg-soft-cream);
  color: #6d5667;
  font-size: 12px;
  line-height: 1.55;
}

.product-row,
.event-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-row {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  position: relative;
  border: 1px solid #eee7f0;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 0;
  background: linear-gradient(180deg, #fffefe 0%, #fffafc 100%);
  box-shadow: 0 6px 14px rgba(117, 87, 138, 0.055);
  cursor: pointer;
  height: auto;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease,
    transform 180ms ease;
}

.product-row--priority {
  border-color: #e5d8f0;
  box-shadow: 0 7px 16px rgba(117, 87, 138, 0.07);
}

.product-row--setup-needed {
  border-color: #efcf9d;
  background:
    radial-gradient(180px 76px at 100% 0%, rgba(255, 238, 204, 0.48) 0%, rgba(255, 238, 204, 0) 72%),
    linear-gradient(180deg, #fffefe 0%, #fffaf4 100%);
}

.product-row--setup-editing {
  border-color: #d6c4ef;
  box-shadow: 0 10px 24px rgba(117, 87, 138, 0.1);
}

.product-row--priority::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: -1px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #cdbdf0 0%, #f0dcc0 100%);
}

.product-row--newly-added {
  border-color: #ddd1f4;
  background: linear-gradient(180deg, #fffefe 0%, #fcf9ff 100%);
  box-shadow: 0 10px 24px rgba(123, 77, 255, 0.12);
  animation: product-row-appear 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-row--recently-used {
  border-color: #ddd0f7;
  background-color: #faf7ff;
  box-shadow: 0 10px 22px rgba(123, 77, 255, 0.12);
}

.product-row--routine-complete {
  border-color: #cbe4d2;
  background:
    radial-gradient(180px 72px at 100% 0%, rgba(224, 245, 230, 0.42) 0%, rgba(224, 245, 230, 0) 72%),
    linear-gradient(180deg, #ffffff 0%, #f7fdf8 100%);
  box-shadow: 0 10px 22px rgba(84, 153, 111, 0.1);
  animation: product-row-routine-complete 780ms cubic-bezier(0.22, 1, 0.36, 1);
}

.product-row--sample {
  border-style: dashed;
  border-color: #f0d6ac;
  background:
    radial-gradient(160px 72px at 100% 0%, rgba(255, 231, 198, 0.4) 0%, rgba(255, 231, 198, 0) 72%),
    linear-gradient(180deg, #fffefd 0%, #fff9f1 100%);
  box-shadow: 0 10px 22px rgba(186, 140, 68, 0.08);
}

.product-row.card-danger {
  border: 1.5px solid #fecaca;
  background: #fff5f5;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease,
    transform 180ms ease;
}

@keyframes product-row-appear {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
    box-shadow: 0 6px 16px rgba(123, 77, 255, 0.08);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    box-shadow: 0 10px 24px rgba(123, 77, 255, 0.12);
  }
}

@keyframes product-row-routine-complete {
  0% {
    transform: scale(0.992);
    box-shadow: 0 8px 18px rgba(84, 153, 111, 0.08);
  }

  45% {
    transform: scale(1.006);
    box-shadow: 0 18px 34px rgba(84, 153, 111, 0.16);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 14px 30px rgba(84, 153, 111, 0.12);
  }
}

@media (hover: hover) {
  .product-row:hover {
    transform: translateY(-1px);
    border-color: #e6daf5;
    box-shadow: 0 12px 24px rgba(146, 108, 146, 0.1);
  }

  .product-row--routine-complete:hover {
    border-color: #c3ddca;
    box-shadow: 0 14px 26px rgba(84, 153, 111, 0.14);
  }
}

.event-row {
  gap: 10px;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
}

.event-row--timeline {
  align-items: flex-start;
  gap: 10px;
  border-color: #ece3f8;
  background: #fdfbff;
}

.timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-top: 6px;
  background: #9f83e9;
  box-shadow: 0 0 0 3px rgba(159, 131, 233, 0.16);
  flex-shrink: 0;
}

.timeline-content {
  flex: 1;
  min-width: 0;
}

.timeline-content strong {
  display: block;
  font-size: 13px;
  color: #413358;
  margin-bottom: 2px;
}

.timeline-expand-btn {
  margin-top: 6px;
  padding: 4px 0;
  border: none;
  background: transparent;
  color: #6b51a6;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.timeline-products {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.timeline-products li {
  font-size: 11px;
  color: #6d5f7f;
  line-height: 1.5;
}

.product-main {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 8px;
}

.product-list-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.product-list-topline--checklist {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.routine-product-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: -2px 0 0;
  border-radius: 999px;
}

.routine-product-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.routine-product-check span {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #d9c9ea;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.routine-product-check input:checked + span {
  border-color: #e85d3f;
  background: linear-gradient(135deg, #e85d3f 0%, #f48c3a 100%);
}

.routine-product-check input:checked + span::after {
  content: "";
  width: 8px;
  height: 13px;
  margin-top: -2px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(45deg);
}

.routine-product-check input:disabled + span {
  border-color: #d7d0dc;
  background: #f4f0f5;
  opacity: 0.72;
}

.routine-product-check:focus-within span {
  outline: 3px solid rgba(232, 93, 63, 0.22);
  outline-offset: 2px;
}

.product-title-stack {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.product-title-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
}

.product-title-row strong {
  min-width: 0;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  color: #2f2433;
  overflow-wrap: anywhere;
}

.product-routine-editor {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
  margin-bottom: 4px;
}

.routine-select {
  margin-bottom: 0;
  max-width: 170px;
}

.product-routine-actions {
  grid-column: 1 / -1;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-today-status {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 0;
  padding: 10px 11px 10px 13px;
  border-radius: 12px;
  border: 1px solid #e3d2f5;
  background:
    radial-gradient(120px 48px at 100% 0%, rgba(255, 226, 196, 0.38) 0%, rgba(255, 230, 196, 0) 72%),
    linear-gradient(180deg, #fffefe 0%, #f7f1ff 100%);
  box-shadow: inset 3px 0 0 rgba(123, 77, 255, 0.34);
}

.product-row--routine-complete .product-today-status {
  border-color: #d7eadf;
  background:
    radial-gradient(150px 64px at 100% 0%, rgba(229, 246, 234, 0.52) 0%, rgba(229, 246, 234, 0) 72%),
    linear-gradient(180deg, #fffefe 0%, #f7fcf8 100%);
}

.product-today-status-label {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  color: #513680;
}

.product-today-status-list {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.product-today-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.product-today-status-pill--done {
  border-color: #cfe6d8;
  background: #eefaf2;
  color: #2f7d55;
}

.product-today-status-pill--pending {
  border-color: #f0dcc0;
  background: #fff7ed;
  color: #9a6423;
}

.product-today-status-streak {
  margin: 0 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.45;
  color: #786792;
}

.product-setup-prompt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 11px;
  border: 1px solid #efd2a3;
  border-radius: 12px;
  background:
    radial-gradient(120px 52px at 100% 0%, rgba(255, 234, 196, 0.58) 0%, rgba(255, 234, 196, 0) 72%),
    linear-gradient(180deg, #fffdf9 0%, #fff7ec 100%);
}

.product-setup-prompt-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.product-setup-badge {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #efcf9d;
  background: #fff8ed;
  color: #9a5d16;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.product-setup-prompt p {
  margin: 0;
  color: #7a5a35;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
}

.product-setup-open-btn {
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid #e3c084;
  border-radius: 11px;
  background: #fff8ed;
  color: #895512;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 6px 12px rgba(171, 114, 32, 0.08);
}

.product-setup-editor {
  display: grid;
  gap: 10px;
  padding: 11px;
  border: 1px solid #d9caef;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffefe 0%, #faf7ff 100%);
}

.product-setup-editor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.product-setup-field {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.product-setup-field span,
.product-setup-field legend {
  margin: 0;
  padding: 0;
  color: #5f4e84;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.25;
}

.product-setup-start-field {
  margin: 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}

.product-setup-start-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
}

.product-setup-start-option {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 8px;
  border: 1px solid #ded2ef;
  border-radius: 10px;
  background: #fff;
  color: #5f4e84;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.product-setup-start-option input {
  width: 14px;
  height: 14px;
  margin: 0;
}

.product-setup-start-option span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.product-setup-field select,
.product-setup-field input:not([type="radio"]) {
  min-height: 42px;
  margin: 0;
  border-color: #ded2ef;
  font-size: 16px;
}

.product-setup-input-with-unit {
  position: relative;
}

.product-setup-input-with-unit input {
  padding-right: 30px;
}

.product-setup-input-with-unit em {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #7a6a93;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  pointer-events: none;
}

.product-setup-error {
  margin: 0;
  color: #b34d45;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.4;
}

.product-setup-editor-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 8px;
}

.product-identity-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid #ead8c8;
  border-radius: 12px;
  background: rgba(255, 253, 250, 0.72);
}

.product-identity-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.product-identity-item {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.product-identity-item span,
.product-identity-field span {
  color: #7a6a93;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.25;
}

.product-identity-item strong {
  color: #4c352e;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.product-identity-open-btn {
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.product-card-edit-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.product-setup-open-btn--compact {
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
}

.product-identity-editor {
  display: grid;
  gap: 10px;
  padding: 11px;
  border: 1px solid #d9caef;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffefe 0%, #faf7ff 100%);
}

.product-identity-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.product-identity-field {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.product-identity-input {
  min-height: 42px;
  margin: 0;
  border-color: #ded2ef;
  font-size: 16px;
}

.product-identity-editor-actions {
  display: flex;
  justify-content: flex-end;
}

.product-identity-save-btn {
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 900;
}

.product-setup-cancel-btn,
.product-setup-save-btn {
  min-height: 44px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 900;
}

.product-setup-save-btn {
  border: 1px solid #d95434;
  background: linear-gradient(135deg, #e85d3f 0%, #f48c3a 100%);
  color: #fff;
  box-shadow: 0 10px 18px rgba(232, 93, 63, 0.18);
}

.product-routine-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1 1 150px;
  gap: 6px;
  padding: 6px 7px;
  border-radius: 10px;
  border: 1px solid #ece3f8;
  background: linear-gradient(180deg, #fdfbff 0%, #faf6ff 100%);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.product-routine-row--done {
  border-color: #cfe4d8;
  background: linear-gradient(180deg, #f8fff9 0%, #eefaf1 100%);
}

.product-routine-row--celebrate {
  animation: product-routine-row-celebrate 520ms ease;
}

.product-routine-indicator {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  color: #4b3c72;
}

.product-routine-use-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 0;
  min-height: 38px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid #ddd0ff;
  background: #f5efff;
  color: #4d367d;
  font-size: 11px;
  font-weight: 800;
  transition: transform 0.12s ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
  will-change: transform;
}

.product-routine-use-btn__label {
  white-space: nowrap;
}

.product-routine-use-btn__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(47, 125, 85, 0.12);
  color: #2f7d55;
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
  transform: scale(0.72);
  animation: routine-button-check-in 280ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.product-routine-use-btn--primary {
  border-color: #de8a31;
  background: linear-gradient(180deg, #ffb454 0%, #f19024 100%);
  color: #fffdfa;
  box-shadow: 0 10px 20px rgba(214, 125, 33, 0.22);
}

.product-routine-use-btn--done {
  border-color: #cfe1d7;
  background: linear-gradient(180deg, #f7fff8 0%, #eef9f1 100%);
  color: #2f7d55;
  box-shadow: 0 8px 16px rgba(84, 153, 111, 0.12);
}

.product-routine-use-btn--celebrate {
  animation: routine-button-complete-pop 620ms cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 16px 28px rgba(214, 125, 33, 0.24);
}

.product-routine-feedback {
  margin-top: 10px;
  margin-bottom: 4px;
  position: relative;
  overflow: hidden;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid #c7e3d0;
  background:
    radial-gradient(160px 72px at 100% 0%, rgba(226, 246, 232, 0.56) 0%, rgba(226, 246, 232, 0) 72%),
    linear-gradient(180deg, #fcfffd 0%, #eefaf2 100%);
  box-shadow: 0 14px 26px rgba(84, 153, 111, 0.12);
  animation: routine-feedback-pop 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition: opacity 320ms ease, transform 320ms ease, filter 320ms ease;
}

.product-routine-feedback::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.84);
}

.product-routine-feedback-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 4px;
}

.product-routine-feedback-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #effcf3 0%, #dff4e6 100%);
  color: #2f7d55;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.product-routine-feedback-title {
  font-size: 13px;
  font-weight: 800;
  color: #256f4b;
  line-height: 1.35;
}

.product-routine-feedback-subtitle {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  color: #4b775e;
}

.product-routine-feedback-line {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.45;
  color: #3f6b55;
}

.product-routine-feedback-streak {
  margin-top: 7px;
  font-size: 11px;
  font-weight: 800;
  color: #5f4f8d;
}

.product-routine-feedback--exiting {
  opacity: 0;
  transform: translateY(-4px) scale(0.985);
  filter: saturate(0.88);
}

@keyframes routine-feedback-pop {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes routine-button-check-in {
  0% {
    opacity: 0;
    transform: scale(0.72);
  }

  70% {
    opacity: 1;
    transform: scale(1.12);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes routine-button-press-bounce {
  0% {
    transform: scale(1);
  }

  26% {
    transform: scale(0.95);
  }

  62% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes routine-button-complete-pop {
  0% {
    transform: scale(0.95);
    filter: brightness(1);
  }

  45% {
    transform: scale(1.05);
    filter: brightness(1.05);
  }

  75% {
    transform: scale(0.985);
  }

  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

@keyframes product-routine-row-celebrate {
  0% {
    transform: scale(0.985);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }

  60% {
    transform: scale(1.01);
    box-shadow: 0 14px 24px rgba(84, 153, 111, 0.12);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
}

.product-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(72px, auto);
  gap: 8px;
  align-items: stretch;
  align-self: stretch;
  margin-top: 0;
  padding-top: 9px;
  border-top: 1px solid rgba(232, 222, 238, 0.82);
}

.sample-product-note {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  padding: 10px 12px;
  border: 1px solid #ebd6ba;
  border-radius: 12px;
  background: rgba(255, 251, 244, 0.92);
  color: #7b6244;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.product-next-step-guide {
  grid-column: 1 / -1;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e2d8f5;
  background: linear-gradient(180deg, #fbf8ff 0%, #f6f1ff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  opacity: 1;
  transition: opacity 420ms ease;
}

.product-next-step-guide-title {
  font-size: 12px;
  font-weight: 700;
  color: #5c4595;
  line-height: 1.35;
}

.product-next-step-guide-desc {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.45;
  color: #786792;
}

.product-next-step-guide--fadeout {
  opacity: 0;
}

.use-product-btn {
  width: 100%;
  min-height: 52px;
  padding: 11px 14px;
  border: 1px solid #d95434;
  border-radius: 12px;
  background: linear-gradient(135deg, #e85d3f 0%, #f48c3a 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 14px 24px rgba(232, 93, 63, 0.24);
  transition: transform 0.12s ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
  will-change: transform;
}

.stop-product-btn {
  min-height: 52px;
  padding: 9px 12px;
  border: 1px solid #f0c5ca;
  border-radius: 12px;
  background: #fff5f6;
  color: #b33a45;
  font-size: 12px;
  font-weight: 900;
  box-shadow: none;
}

.use-product-btn--guided {
  background: linear-gradient(180deg, #8b68ff 0%, #744bee 100%);
  color: #fff;
  box-shadow: 0 12px 22px rgba(123, 77, 255, 0.16);
  animation: guided-use-button-pulse 0.95s ease-out 2;
}

.use-product-btn--daily-prompt {
  background: linear-gradient(180deg, #ffb454 0%, #f19024 100%);
  color: #fffdf9;
  box-shadow: 0 14px 24px rgba(214, 125, 33, 0.22);
  animation: daily-action-button-pulse 1s ease-out 2;
}

.use-product-btn:disabled {
  opacity: 0.72;
}

@media (hover: hover) {
  .use-product-btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(232, 93, 63, 0.27);
  }

  .product-routine-use-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(214, 125, 33, 0.26);
  }

  .product-routine-use-btn--done:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(84, 153, 111, 0.16);
  }
}

.use-product-btn:active,
.use-product-btn.btn-press {
  transform: scale(0.96);
}

.product-routine-use-btn:active,
.routine-action-btn:active {
  transform: scale(0.97);
}

.product-routine-use-btn.btn-press,
.routine-action-btn.btn-press {
  animation: routine-button-press-bounce 420ms cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 6px 14px rgba(123, 77, 255, 0.1);
}

.product-main .meta {
  font-size: 11px;
  color: #85738a;
  line-height: 1.45;
}

.product-detail-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #ede3f8;
  background: linear-gradient(180deg, #fffefe 0%, #f9f5ff 100%);
}

.product-detail-name {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: #342652;
}

.product-detail-brand {
  margin-top: 5px;
  font-size: 13px;
  color: #6d5f80;
}

.product-detail-sample-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #efd7ad;
  background: #fff8ee;
  color: #9a5d16;
  font-size: 11px;
  font-weight: 800;
}

.product-detail-category {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #917fb1;
}

.product-detail-depletion {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #dccff4;
  background: #f6f0ff;
  font-size: 12px;
  font-weight: 700;
  color: #5a4690;
}

.product-detail-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.product-detail-stat {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #eee5f7;
  background: #fff;
}

.product-detail-stat-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  color: #8a7a9f;
}

.product-detail-stat-value {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  color: #3c2f57;
}

.product-detail-log-section {
  margin-top: 16px;
}

.product-detail-section-title {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 800;
  color: #4e3f72;
}

.product-detail-log-list {
  display: grid;
  gap: 8px;
}

.product-detail-log-item {
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid #ece3f8;
  background: linear-gradient(180deg, #fffefe 0%, #faf7ff 100%);
}

.product-detail-log-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-detail-log-session {
  font-size: 12px;
  font-weight: 800;
  color: #51407a;
}

.product-detail-log-time {
  font-size: 12px;
  color: #817196;
  white-space: nowrap;
}

.product-detail-log-meta {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.45;
  color: #685a7d;
}

.product-detail-log-pending {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #8b7aa3;
}

.product-detail-log-empty {
  padding: 18px 14px;
  border-radius: 14px;
  border: 1px dashed #e7ddf2;
  background: linear-gradient(180deg, #fffefe 0%, #faf7ff 100%);
  font-size: 12px;
  text-align: center;
  color: #7b6d90;
}

.purchase-recommendation {
  display: grid;
  gap: 10px;
  align-items: start;
  margin-top: 10px;
  margin-bottom: 0;
  padding: 14px 14px 15px;
  border-radius: 16px;
  border: 1px solid rgba(236, 204, 211, 0.9);
  background:
    radial-gradient(180px 82px at 100% 0%, rgba(244, 240, 250, 0.72) 0%, rgba(244, 240, 250, 0) 74%),
    linear-gradient(180deg, #fffefe 0%, #f9f5fb 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 12px 22px rgba(117, 87, 138, 0.1);
}

.purchase-recommendation--warning {
  border-color: #efbe84;
  background:
    radial-gradient(180px 84px at 100% 0%, rgba(255, 212, 156, 0.58) 0%, rgba(255, 212, 156, 0) 74%),
    linear-gradient(180deg, #fffdf8 0%, #fff0dc 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 12px 24px rgba(186, 140, 68, 0.14);
}

.purchase-recommendation--urgent {
  border-color: #ea9690;
  background:
    radial-gradient(190px 88px at 100% 0%, rgba(255, 182, 178, 0.64) 0%, rgba(255, 182, 178, 0) 74%),
    linear-gradient(180deg, #fff9f8 0%, #ffe6df 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 14px 28px rgba(199, 95, 73, 0.18);
}

.purchase-recommendation-title {
  display: none;
  order: 2;
  margin-top: -2px;
  margin-bottom: 0;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: center;
}

.purchase-recommendation-sub {
  order: 1;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #6f6482;
}

.purchase-recommendation-note {
  order: 4;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.45;
  color: #7a6f8d;
  font-weight: 600;
  text-align: center;
  opacity: 0.72;
}

.depletion-notify-form {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 0;
}

.depletion-notify-toggle {
  justify-self: start;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid rgba(218, 155, 174, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #a34f69;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 16px rgba(149, 91, 101, 0.08);
}

.depletion-notify-form--priority .depletion-notify-toggle {
  border-color: rgba(211, 91, 91, 0.42);
  background: linear-gradient(135deg, #fff4d7 0%, #ffe5eb 100%);
  color: #bd4b61;
  box-shadow: 0 12px 22px rgba(195, 91, 81, 0.15);
}

.depletion-notify-form--urgent .depletion-notify-toggle {
  border-color: rgba(208, 67, 81, 0.5);
  background: linear-gradient(135deg, #ffedf0 0%, #ffd7de 100%);
  color: #b9354c;
}

.depletion-notify-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  box-shadow: none;
}

.depletion-notify-panel {
  display: grid;
  gap: 9px;
  padding: 13px 14px 14px;
  border: 1px solid rgba(236, 204, 211, 0.9);
  border-radius: 16px;
  background:
    radial-gradient(160px 76px at 100% 0%, rgba(255, 231, 201, 0.56) 0%, rgba(255, 231, 201, 0) 74%),
    linear-gradient(180deg, #fffefe 0%, #fff8f4 100%);
}

.depletion-notify-label {
  color: #6f514c;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.depletion-notify-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.depletion-notify-input {
  min-width: 0;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid rgba(220, 190, 198, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text-main);
  font-size: 13px;
}

.depletion-notify-input:focus {
  outline: 2px solid rgba(234, 127, 153, 0.26);
  border-color: rgba(218, 108, 134, 0.7);
}

.depletion-notify-btn {
  min-height: 40px;
  padding: 10px 13px;
  border: 1px solid rgba(195, 71, 108, 0.42);
  border-radius: 12px;
  background: linear-gradient(135deg, #ff89a8 0%, #e95f86 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 10px 18px rgba(201, 77, 114, 0.18);
}

.depletion-notify-btn:disabled {
  cursor: wait;
  opacity: 0.62;
}

.depletion-notify-status {
  min-height: 16px;
  margin: 0;
  color: #8a767a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.depletion-notify-status--success {
  color: #4f7b54;
}

.depletion-notify-status--error {
  color: #c45261;
}

.purchase-quick-links {
  order: 5;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
  width: 100%;
}

.purchase-quick-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(184, 157, 192, 0.52);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  color: #6a5382;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 8px 16px rgba(117, 87, 138, 0.08);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
}

.purchase-quick-link-btn[data-platform="coupang"] {
  border-color: rgba(225, 117, 74, 0.42);
  background: rgba(255, 240, 232, 0.92);
  color: #8f3b2f;
  box-shadow: 0 10px 18px rgba(210, 108, 132, 0.12);
}

.purchase-quick-link-btn:not([data-platform="coupang"]) {
  border-color: rgba(184, 157, 192, 0.42);
  background: rgba(255, 255, 255, 0.36);
  color: rgba(106, 83, 130, 0.88);
  opacity: 0.8;
  box-shadow: none;
}

@media (hover: hover) {
  .purchase-quick-link-btn:hover {
    transform: translateY(-1px) scale(1.005);
    border-color: rgba(184, 157, 192, 0.72);
    background: rgba(255, 255, 255, 0.82);
    opacity: 1;
    box-shadow: none;
  }

  .purchase-quick-link-btn[data-platform="coupang"]:hover {
    transform: translateY(-1px) scale(1.02);
    border-color: rgba(225, 117, 74, 0.58);
    background: rgba(255, 235, 224, 0.98);
    box-shadow: 0 16px 28px rgba(210, 108, 132, 0.18);
  }

  .purchase-quick-link-btn:not([data-platform="coupang"]):hover {
    border-color: rgba(184, 157, 192, 0.56);
    background: rgba(255, 255, 255, 0.5);
    opacity: 0.92;
    box-shadow: none;
  }
}

.purchase-recommendation--warning .purchase-recommendation-title {
  color: #8f4b0f;
}

.purchase-recommendation--warning .purchase-recommendation-sub,
.purchase-recommendation--warning .purchase-recommendation-note {
  color: #9a5314;
}

.purchase-recommendation.purchase-recommendation--urgent .purchase-recommendation-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid rgba(248, 113, 113, 0.28);
  border-radius: 999px;
  background: rgba(254, 226, 226, 0.92);
  color: #b91c1c;
  text-shadow: 0 0 10px rgba(220, 38, 38, 0.08);
}

.purchase-recommendation--urgent .purchase-recommendation-sub,
.purchase-recommendation--urgent .purchase-recommendation-note {
  color: #a24b1c;
}

.purchase-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 9px 14px;
  border: 1px solid #d9cdea;
  background: linear-gradient(180deg, #fffefe 0%, #f6efff 100%);
  color: #5e478e;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(117, 87, 138, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 160ms ease, background 180ms ease;
}

.purchase-recommendation .purchase-cta-btn--card {
  order: 3;
  width: 100%;
  min-height: 56px;
  margin-top: 2px;
  padding: 14px 18px;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  box-shadow:
    0 14px 24px rgba(210, 108, 132, 0.18),
    0 8px 16px rgba(117, 87, 138, 0.08);
}

.purchase-cta-btn--warning {
  border-color: #df8c2b;
  background: linear-gradient(180deg, #ffbf63 0%, #f19024 100%);
  color: #fffdfd;
  box-shadow: 0 14px 26px rgba(214, 125, 33, 0.26);
}

.purchase-cta-btn--urgent {
  border-color: #cf584d;
  background: linear-gradient(180deg, #fb8f7b 0%, #df5538 100%);
  box-shadow: 0 16px 28px rgba(209, 90, 63, 0.3);
  color: #fffdfd;
  animation: purchase-urgent-pulse 1.2s ease-in-out infinite;
}

.purchase-recommendation.purchase-recommendation--urgent .purchase-cta-btn--urgent {
  border-color: #991b1b;
  background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
  box-shadow:
    0 20px 36px rgba(153, 27, 27, 0.34),
    0 0 0 1px rgba(153, 27, 27, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  animation:
    purchase-urgent-pulse 1.6s ease-in-out infinite,
    purchase-cta-urgent-glow 2.2s ease-in-out infinite;
}

.product-row.card-danger .purchase-cta-btn--danger-emphasis {
  transform: scale(1.02);
  box-shadow:
    0 20px 36px rgba(153, 27, 27, 0.34),
    0 0 0 6px rgba(239, 68, 68, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

@media (hover: hover) {
  .purchase-cta-btn:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 16px 28px rgba(117, 87, 138, 0.18);
  }

  .purchase-cta-btn--warning:hover {
    box-shadow: 0 16px 28px rgba(214, 125, 33, 0.3);
  }

  .purchase-cta-btn--urgent:hover {
    box-shadow: 0 18px 32px rgba(209, 90, 63, 0.34);
  }

  .purchase-recommendation.purchase-recommendation--urgent .purchase-cta-btn--urgent:hover {
    transform: translateY(-1px) scale(1.05);
    background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
    box-shadow:
      0 24px 40px rgba(153, 27, 27, 0.4),
      0 0 0 8px rgba(239, 68, 68, 0.12);
  }
}

.purchase-options {
  order: 6;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition:
    max-height 220ms ease,
    opacity 180ms ease,
    transform 220ms ease,
    margin-top 220ms ease;
}

.purchase-options--open {
  margin-top: 8px;
  max-height: 180px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.purchase-options-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.purchase-options-label {
  min-width: 0;
  font-size: 11px;
  font-weight: 700;
  color: #6a5890;
}

.purchase-options-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #e5dafb;
  background: rgba(255, 255, 255, 0.88);
  color: #7b6a9e;
  font-size: 11px;
  font-weight: 600;
}

.purchase-option-btn {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 999px;
  background: #f3ecff;
  color: #4b3479;
  border: 1px solid #ddd0ff;
  font-weight: 600;
}

.purchase-recommendation .purchase-options-close-btn,
.purchase-recommendation .purchase-option-btn {
  border: 1px solid rgba(180, 154, 188, 0.52);
  background: rgba(255, 255, 255, 0.3);
  color: rgba(91, 69, 108, 0.84);
  box-shadow: none;
  opacity: 0.72;
}

@media (hover: hover) {
  .purchase-recommendation .purchase-options-close-btn:hover,
  .purchase-recommendation .purchase-option-btn:hover {
    opacity: 0.92;
    background: rgba(255, 255, 255, 0.46);
    box-shadow: none;
  }
}

.purchase-options-modal-backdrop {
  background: rgba(48, 36, 57, 0.36);
  animation: modal-soft-fade-in 180ms ease;
}

.purchase-options-modal-card {
  width: min(420px, 100%);
  padding: 18px;
  border: 1px solid #eadfd3;
  border-radius: 20px;
  background: linear-gradient(180deg, #fffefe 0%, #fff8f1 100%);
  box-shadow: 0 22px 44px rgba(68, 48, 38, 0.18);
  animation: modal-card-rise-in 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.purchase-options-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.purchase-options-modal-label {
  margin-bottom: 3px;
  font-size: 11px;
  font-weight: 800;
  color: #9a7561;
}

.purchase-options-modal-card h3 {
  margin: 0;
  color: #4f3e35;
  font-size: 20px;
  line-height: 1.3;
}

.purchase-options-modal-product {
  margin: 6px 0 0;
  color: #7b675d;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.purchase-options-modal-close-btn {
  flex-shrink: 0;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #eadfd3;
  background: rgba(255, 255, 255, 0.72);
  color: #7a665d;
}

.purchase-options-modal-actions {
  display: grid;
  gap: 10px;
}

.purchase-options-modal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid #ead7c8;
  background: #fff;
  color: #4b3b33;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 10px 18px rgba(124, 86, 62, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.purchase-options-modal-btn--coupang {
  border-color: #f5c5a8;
  background: linear-gradient(180deg, #fffaf6 0%, #fff0e8 100%);
}

.purchase-options-modal-btn--naver {
  border-color: #bde5c9;
  background: linear-gradient(180deg, #fbfffc 0%, #effbf3 100%);
}

.purchase-options-modal-btn--oliveyoung {
  border-color: #d8dfb2;
  background: linear-gradient(180deg, #fffefa 0%, #f5f8e8 100%);
}

@media (hover: hover) {
  .purchase-options-modal-btn:hover {
    transform: translateY(-1px);
    border-color: #d99066;
    box-shadow: 0 14px 24px rgba(124, 86, 62, 0.14);
  }
}

@media (max-width: 780px) {
  .purchase-options-modal-backdrop {
    align-items: flex-end;
    padding: 12px;
  }

  .purchase-options-modal-card {
    width: 100%;
    max-height: calc(100vh - 24px);
    border-radius: 20px 20px 14px 14px;
    padding: 18px 16px 16px;
    overflow-y: auto;
  }

  .purchase-options-modal-header {
    margin-bottom: 12px;
  }

  .purchase-options-modal-card h3 {
    font-size: 18px;
  }

  .purchase-options-modal-btn {
    min-height: 56px;
  }
}

.sample-product-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid #d5e2f5;
  background: #f2f7ff;
  color: #55729b;
  font-size: 11px;
  font-weight: 700;
}

.sample-product-badge--card {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 3px 8px;
  font-size: 10px;
  letter-spacing: 0;
  z-index: 1;
  pointer-events: none;
}

.sample-product-badge--compact {
  padding: 2px 7px;
  font-size: 10px;
}

.sample-product-badge--preview {
  padding: 1px 6px;
  font-size: 9px;
  letter-spacing: 0;
  color: #6a7f9f;
}

.product-row--sample .product-title-row {
  padding-right: 72px;
}

.product-row--sample .product-list-topline {
  padding-right: 72px;
}

.low-stock-badge {
  display: inline-block;
  border: 1px solid #ffc8a6;
  background: #fff5ec;
  color: #b4531c;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
}

.low-stock-badge--critical {
  border-color: #f7a3bb;
  background: #fff1f6;
  color: #b32752;
}

.low-stock-badge--pending {
  border-color: #dec7ff;
  background: #f7f1ff;
  color: #6743a6;
}

.low-stock-badge--priority {
  border-color: #efb77e;
  background: #fff4e8;
  color: #9d4620;
}

.low-stock-badge--setup {
  border-color: #efcf9d;
  background: #fff8ed;
  color: #9a5d16;
}

.low-stock-badge--done {
  border-color: #bfe1c9;
  background: #f2fbf4;
  color: #2d8050;
}

.depletion-hint {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #b0672f;
  line-height: 1.4;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.depletion-hint--critical {
  color: #c03a63;
}

.depletion-hint--spotlight {
  animation: depletion-copy-spotlight 1.4s ease;
}

.product-depletion-primary {
  margin-top: 0;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
  color: #756680;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.product-progress-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 10px;
  margin-top: 0;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid #e8def1;
  background:
    radial-gradient(130px 58px at 100% 0%, rgba(244, 237, 255, 0.58) 0%, rgba(244, 237, 255, 0) 72%),
    linear-gradient(180deg, #fffefe 0%, #f9f5ff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.product-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.product-progress-block .progress-track {
  grid-column: 1 / -1;
  height: 13px;
}

.product-progress-label {
  min-width: 0;
  color: #6f607d;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.product-progress-percent {
  flex-shrink: 0;
  color: #3f2f70;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  transition: color 220ms ease;
}

.product-row .progress-track,
.product-row .progress-track--safe,
.product-row .progress-track--warning,
.product-row .progress-track--danger,
.product-row .progress-track--routine-updated {
  border-color: #d7e0ea;
  background-color: #f1f5f9;
  box-shadow:
    inset 0 1px 2px rgba(148, 163, 184, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.28);
}

.product-row .progress-fill {
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.18);
}

.product-row .progress-fill--safe,
.product-row .progress-fill.good {
  background-color: #22c55e;
}

.product-row .progress-fill--safe-strong {
  background-color: #16a34a;
}

.product-row .progress-fill--warning,
.product-row .progress-fill.warning {
  background-color: #f59e0b;
}

.product-row .progress-fill--danger,
.product-row .progress-fill.danger {
  background-color: #dc2626;
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.18),
    0 0 8px rgba(220, 38, 38, 0.45);
  animation: progress-danger-pulse 1.5s ease-in-out infinite;
  opacity: 1;
}

.product-progress-percent.progress-text--safe-strong {
  color: #16a34a;
}

.product-progress-percent.progress-text--safe {
  color: #15803d;
}

.product-progress-percent.progress-text--warning {
  color: #b45309;
}

.product-progress-percent.progress-text--danger {
  color: #dc2626;
  font-size: 20px;
  font-weight: 700;
}

.product-result-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 3px 6px;
  margin-top: 0;
  max-width: 220px;
  text-align: right;
}

.product-dday-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #d8c8f0;
  background: #f7f2ff;
  color: #5f4690;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.product-dday-chip--list {
  justify-self: end;
  min-height: 32px;
  padding: 7px 10px;
  border-color: #efc4b2;
  background: #fff3eb;
  color: #b54830;
  font-size: 14px;
  box-shadow: 0 6px 12px rgba(197, 112, 58, 0.1);
}

.product-dday-chip--urgent {
  border-color: #efc4b2;
  background: #fff3eb;
  color: #b54830;
}

.product-depletion-primary--critical {
  color: #b03f62;
}

.product-depletion-primary--spotlight {
  text-shadow: 0 0 18px rgba(123, 77, 255, 0.16);
  animation: depletion-copy-spotlight 1.4s ease;
}

.product-depletion-date {
  margin-top: 2px;
  font-size: 9px;
  line-height: 1.45;
  color: #94879c;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.product-depletion-date--spotlight {
  text-shadow: 0 0 16px rgba(123, 77, 255, 0.14);
  animation: depletion-copy-spotlight 1.4s ease;
}

.progress-track {
  width: 100%;
  height: 16px;
  margin-top: 0;
  border-radius: 999px;
  position: relative;
  border: 1px solid rgba(90, 69, 150, 0.14);
  background-color: rgba(63, 52, 77, 0.13);
  overflow: hidden;
  transition: border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

.progress-track--safe {
  border-color: rgba(39, 139, 84, 0.24);
  background-color: rgba(47, 159, 98, 0.14);
}

.progress-track--warning {
  border-color: rgba(190, 101, 19, 0.24);
  background-color: rgba(217, 119, 6, 0.15);
}

.progress-track--danger {
  border-color: rgba(196, 52, 76, 0.26);
  background-color: rgba(220, 38, 38, 0.13);
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  transform-origin: left center;
  will-change: width, transform;
  background-color: #d97706;
  transition:
    width 720ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 220ms ease,
    transform 220ms ease,
    filter 220ms ease;
}

.progress-fill--safe,
.progress-fill.good {
  background-color: #2f9f62;
}

.progress-fill--safe-strong {
  background-color: #16a34a;
}

.progress-fill--warning,
.progress-fill.warning {
  background-color: #d97706;
}

.progress-fill--danger,
.progress-fill.danger {
  background-color: #dc2626;
}

.progress-text--safe {
  color: #247a4e;
}

.progress-text--safe-strong {
  color: #16a34a;
}

.progress-text--warning {
  color: #9a4d10;
}

.progress-text--danger {
  color: #b32642;
}

.progress-track--routine-updated {
  border-color: #c4dfcd;
  background: rgba(84, 153, 111, 0.12);
  box-shadow: 0 0 0 4px rgba(84, 153, 111, 0.08);
}

.progress-track--routine-updated .progress-fill {
  animation: progress-fill-routine-drop 760ms cubic-bezier(0.22, 1, 0.36, 1);
}

.product-row .progress-track--routine-updated .progress-fill--danger,
.product-row .progress-track--routine-updated .progress-fill.danger {
  animation:
    progress-fill-routine-drop 760ms cubic-bezier(0.22, 1, 0.36, 1),
    progress-danger-pulse 1.5s ease-in-out infinite;
}

@keyframes progress-danger-pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.8;
  }
}

@keyframes progress-fill-routine-drop {
  0% {
    filter: brightness(1.05);
    transform: scaleY(1);
  }

  35% {
    filter: brightness(1.16);
    transform: scaleY(1.18);
  }

  100% {
    filter: brightness(1);
    transform: scaleY(1);
  }
}

.meta {
  font-size: 12px;
  color: var(--text-sub);
}

.event-product-list {
  padding-left: 20px;
  margin: 10px 0 0;
}

.candidate-chip {
  display: inline-block;
  margin-left: 8px;
  background: #fff2f2;
  color: #b42318;
  border: 1px solid #ffd0d0;
  border-radius: 999px;
  font-size: 11px;
  padding: 2px 8px;
}

.hint {
  font-size: 13px;
  color: var(--text-sub);
}

.hidden {
  display: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(8px);
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(52, 45, 60, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #fff;
  box-shadow: 0 6px 16px rgba(29, 23, 40, 0.2);
  opacity: 0;
  pointer-events: none;
  z-index: 3000;
  transition: opacity 220ms ease, transform 220ms ease;
}

.toast--top {
  top: 78px;
  bottom: auto;
  transform: translateX(-50%) translateY(-8px);
}

.toast--success {
  padding: 10px 14px;
  border-radius: 18px;
  border: 1px solid #eadcf8;
  background:
    radial-gradient(120px 52px at 0% 0%, rgba(255, 244, 231, 0.74) 0%, rgba(255, 244, 231, 0) 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #f6f0ff 100%);
  color: #4f3d73;
  box-shadow: 0 14px 28px rgba(117, 87, 138, 0.14);
}

.toast--success .toast-desc {
  color: #7b6d90;
}

.toast:not(.toast--top).toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast:not(.toast--top).toast-hide {
  opacity: 0;
  transform: translateX(-50%) translateY(6px);
}

.toast--top.toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast--top.toast-hide {
  opacity: 0;
  transform: translateX(-50%) translateY(-6px);
}

.toast-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.toast-desc {
  margin-top: 1px;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
}

.routine-toast-card {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 3200;
  width: min(320px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid #c9e3d2;
  background:
    radial-gradient(140px 64px at 0% 0%, rgba(255, 243, 227, 0.82) 0%, rgba(255, 243, 227, 0) 72%),
    linear-gradient(180deg, #ffffff 0%, #eefaf2 100%);
  box-shadow: 0 18px 36px rgba(70, 117, 86, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(20px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.routine-toast-card--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.routine-toast-card--hiding {
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
}

.routine-toast-card__title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  color: #256f4b;
}

.routine-toast-card__desc {
  margin-top: 3px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  color: #5d7c6a;
}

@keyframes guided-use-button-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(123, 77, 255, 0.22), 0 12px 22px rgba(123, 77, 255, 0.16);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(123, 77, 255, 0), 0 14px 24px rgba(123, 77, 255, 0.12);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(123, 77, 255, 0), 0 12px 22px rgba(123, 77, 255, 0.16);
  }
}

@keyframes daily-action-button-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(241, 144, 36, 0.24), 0 14px 24px rgba(214, 125, 33, 0.22);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(241, 144, 36, 0), 0 16px 26px rgba(214, 125, 33, 0.16);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(241, 144, 36, 0), 0 14px 24px rgba(214, 125, 33, 0.22);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-4px) scale(1.015);
  }
}

@keyframes purchase-urgent-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(209, 90, 63, 0.22), 0 12px 22px rgba(209, 90, 63, 0.24);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(209, 90, 63, 0), 0 14px 24px rgba(209, 90, 63, 0.2);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(209, 90, 63, 0), 0 12px 22px rgba(209, 90, 63, 0.24);
  }
}

@keyframes purchase-cta-urgent-glow {
  0%,
  100% {
    filter: saturate(1) brightness(1);
  }

  50% {
    filter: saturate(1.08) brightness(1.04);
  }
}

@keyframes depletion-copy-spotlight {
  0% {
    transform: translateY(0);
    text-shadow: 0 0 0 rgba(123, 77, 255, 0);
  }

  35% {
    transform: translateY(-1px);
    text-shadow: 0 0 18px rgba(123, 77, 255, 0.16);
  }

  100% {
    transform: translateY(0);
    text-shadow: 0 0 0 rgba(123, 77, 255, 0);
  }
}

@keyframes modal-soft-fade-in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes modal-card-rise-in {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes routine-section-spotlight {
  0% {
    box-shadow: 0 0 0 0 rgba(190, 167, 241, 0), 0 10px 24px rgba(117, 87, 138, 0.08);
  }

  35% {
    box-shadow: 0 0 0 5px rgba(190, 167, 241, 0.24), 0 18px 32px rgba(123, 77, 255, 0.14);
  }

  100% {
    box-shadow: 0 0 0 4px rgba(190, 167, 241, 0.24), 0 16px 30px rgba(123, 77, 255, 0.12);
  }
}

@keyframes service-sections-rise-in {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes product-entry-rise-in {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.985);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 780px) {
  :root {
    --app-container-padding: 16px;
    --app-card-radius: 14px;
    --app-card-padding: 16px;
    --app-card-shadow: 0 8px 18px rgba(117, 87, 138, 0.08);
  }

  body.service-mode {
    width: 100%;
    padding: 16px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }

  .primary-app-sections {
    gap: 16px;
  }

  body.service-mode .primary-app-sections > section,
  body.service-mode .primary-app-sections > .card,
  body.service-mode .primary-app-sections > .feedback-card,
  body.service-mode .history-card,
  body.service-mode .secondary-insights-group .card {
    margin-bottom: 0;
  }

  body.service-mode #homeScreen,
  body.service-mode #historyScreen,
  body.service-mode .hero-section,
  body.service-mode .cta-box,
  .product-form-shell,
  .product-form-optional,
  .product-form-optional-field {
    width: 100%;
    max-width: none;
  }

  .today-status-card {
    padding: var(--app-card-padding);
    border-radius: var(--app-card-radius);
  }

  .routine-score-card {
    align-items: flex-start;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    padding: 16px 14px;
  }

  .routine-score-label {
    font-size: 16px;
  }

  .routine-score-desc {
    font-size: 11px;
  }

  .routine-score-status {
    font-size: 11px;
  }

  .routine-score-value {
    min-width: 82px;
  }

  .routine-score-value strong {
    font-size: 36px;
  }

  .routine-score-value {
    font-size: 11px;
  }

  .routine-score-badge {
    padding: 5px 8px;
    font-size: 10px;
  }

  .monthly-usage-summary-card {
    gap: 18px;
    padding: 22px 16px;
  }

  .monthly-usage-summary-title-row {
    gap: 8px;
  }

  .monthly-usage-summary-header h3 {
    font-size: 21px;
  }

  .monthly-usage-summary-badge {
    min-height: 22px;
    padding: 5px 8px;
    font-size: 9px;
  }

  .monthly-usage-summary-header p {
    font-size: 12px;
  }

  .monthly-usage-summary-grid {
    gap: 12px;
  }

  .monthly-usage-summary-item {
    min-height: 112px;
    padding: 15px 13px 14px;
    border-radius: 14px;
    gap: 10px;
  }

  .monthly-usage-summary-item::before {
    width: 25px;
    height: 25px;
    font-size: 12px;
  }

  .monthly-usage-summary-label {
    min-height: 24px;
    font-size: 9px;
    line-height: 1.3;
  }

  .monthly-usage-summary-value {
    font-size: 31px;
  }

  .monthly-usage-summary-value--product {
    font-size: 17px;
    line-height: 1.22;
  }

  #soonDepletionSection.today-action-hub-card {
    padding: 18px 14px 16px;
  }

  .today-action-panel {
    min-height: 0;
    padding: 14px 14px 12px;
    gap: 8px;
  }

  #soonDepletionSection.today-action-hub-card .home-section-heading h3 {
    font-size: 20px;
  }

  .today-action-copy strong {
    font-size: 18px;
  }

  .today-action-buttons {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin: 8px 0 6px;
    padding: 8px;
    border-radius: 16px;
  }

  .today-action-hub-card #cta-btn {
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 16px;
  }

  .today-action-hub-card .today-action-buttons .top-secondary-action-btn {
    min-height: 44px;
    padding: 8px 10px;
    font-size: 12px;
    opacity: 0.68;
  }

  .today-status-footer {
    margin-top: 16px;
  }

  .home-status-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .today-action-hub-summary {
    padding: 12px 10px 12px;
  }

  .today-action-hub-card .home-status-stat {
    min-width: 0;
    padding: 12px 8px;
    border-radius: 14px;
  }

  .home-status-stat-label {
    min-height: 28px;
    margin-bottom: 5px;
    font-size: 10px;
    line-height: 1.3;
  }

  .home-status-stat strong {
    font-size: 22px;
  }

  .today-action-hub-card .home-priority-card {
    gap: 12px;
    min-height: 0;
    padding: 22px 18px;
  }

  .home-priority-main,
  .home-priority-metrics,
  .home-priority-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-priority-dday {
    min-width: 0;
    text-align: left;
    font-size: 72px;
  }

  .home-priority-card h4 {
    font-size: 22px;
  }

  .home-priority-message {
    font-size: 14px;
  }

  .home-priority-action {
    justify-items: start;
    text-align: left;
  }

  .home-priority-facts {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .home-priority-fact {
    padding: 12px;
  }

  .soon-depletion-header {
    flex-direction: column;
    align-items: stretch;
  }

  .home-section-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .today-status-actions,
  .today-status-primary-cta {
    width: 100%;
  }

  .today-status-card .soon-depletion-item:first-child {
    padding: 16px 14px;
  }

  .today-status-card .soon-depletion-item:first-child .soon-depletion-item-dday {
    min-width: 84px;
    font-size: 44px;
  }

  #productCreationCard {
    padding: var(--app-card-padding);
  }

  .product-section-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .product-list-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .product-list-controls {
    justify-content: flex-start;
    width: 100%;
  }

  .routine-product-group {
    padding: 10px;
  }

  .routine-product-group-header {
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
  }

  .routine-product-group-status {
    justify-items: stretch;
  }

  .routine-group-use-btn {
    width: 100%;
  }

  .product-sort-control {
    flex: 1 1 170px;
  }

  .product-sort-control select {
    flex: 1;
  }

  .product-routine-filter {
    flex: 1 1 160px;
  }

  .product-filter-btn {
    flex: 1;
  }

  .product-form-toggle-btn {
    width: 100%;
  }

  body.landing-mode {
    padding: 0;
  }

  body.landing-mode #homeScreen {
    padding: 16px;
  }

  body.landing-mode .empty-landing {
    min-height: calc(100svh - 32px);
  }

  .empty-landing-shell {
    gap: 14px;
  }

  .empty-landing-copy h2 {
    font-size: 28px;
  }

  .landing-demo-card {
    padding: 16px;
  }

  .landing-flow-list {
    gap: 6px;
  }

  .landing-flow-step {
    min-height: 54px;
    gap: 5px;
    padding: 8px 6px;
  }

  .landing-flow-number {
    width: 21px;
    height: 21px;
  }

  .landing-flow-copy strong {
    font-size: 11px;
  }

  .demo-toolbar {
    top: max(10px, env(safe-area-inset-top, 0px));
  }

  .demo-reset-btn {
    min-height: 38px;
    padding: 9px 14px;
  }

  .nav {
    margin: 0 0 14px;
    padding: 10px 16px;
  }

  body.service-mode .nav {
    margin: -16px -16px 14px;
  }

  .nav h1 {
    margin: 0;
    padding: 0;
    font-size: 15px;
  }

  .nav-logout-btn {
    min-height: 48px;
    padding: 7px 9px;
  }

  .subtitle {
    font-size: 11px;
    margin-top: 5px;
  }

  .top-bar {
    font-size: 11px;
  }

  .toast--top {
    top: 70px;
  }

  .event-actions {
    grid-template-columns: 1fr;
  }

  .skin-event-card {
    padding: 12px;
    margin-bottom: 10px;
  }

  .skin-event-card textarea {
    min-height: 64px;
  }

  .inline-form {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .product-add-mode-btn {
    padding-right: 8px;
    padding-left: 8px;
  }

  .quick-add-panel {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .quick-product-textarea,
  .quick-add-options,
  .quick-add-actions {
    grid-column: 1 / -1;
  }

  .quick-product-textarea {
    min-height: 116px;
  }

  .today-action-buttons {
    grid-template-columns: 1fr;
  }

  .product-start-type-options {
    grid-template-columns: 1fr;
  }

  .product-form-field,
  .product-form-submit,
  .product-step-actions,
  .product-details-fields,
  .product-details-fields .product-form-field {
    grid-column: 1 / -1;
  }

  .product-details-fields {
    grid-template-columns: 1fr;
  }

  .product-form-submit {
    padding: 2px 0 0;
  }

  .usage-streak-card {
    padding: 14px 15px;
  }

  .today-overview-card--compact {
    padding: 13px 14px;
  }

  .today-overview-card {
    padding: 14px 15px;
  }

  .today-overview-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding-top: 0;
    margin-bottom: 16px;
  }

  .cta-box {
    margin: 0;
    padding: 18px 16px 16px;
    border-radius: 16px;
  }

  .cta-text {
    width: 100%;
    font-size: 22px;
    margin-bottom: 0;
    overflow-wrap: anywhere;
  }

  .cta-subtext {
    width: 100%;
    font-size: 48px;
    margin-bottom: 0;
    overflow-wrap: anywhere;
  }

  #cta-btn {
    width: 100%;
    max-width: 100%;
    min-height: 60px;
    padding: 15px 18px;
    font-size: 16px;
  }

  .cta-helper {
    font-size: 13px;
  }

  .hero-proof-shell {
    width: 100%;
    margin: 0 0 14px;
    padding: 12px 12px 11px;
    border-radius: 18px;
  }

  .hero-proof-label {
    margin-bottom: 8px;
  }

  .hero-proof-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-proof-card {
    padding: 14px 14px 13px;
    border-radius: 14px;
  }

  .hero-proof-card-title {
    font-size: 14px;
  }

  .hero-proof-card-dday {
    margin-top: 10px;
    font-size: 40px;
  }

  .hero-proof-card-copy {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.35;
  }

  .hero-proof-card-note {
    margin-top: 7px;
    font-size: 10px;
  }

  .cta-note {
    margin-top: 10px;
    font-size: 11px;
  }

  .hero-auth-actions {
    width: 100%;
    justify-content: center;
  }

  .hero-auth-btn {
    width: auto;
    min-width: calc(50% - 4px);
  }

  .routine-guidance-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .routine-guidance-cta {
    width: 100%;
  }

  .first-product-success-modal-card {
    padding: 20px 16px 16px;
    border-radius: 22px;
  }

  .first-product-success-title {
    font-size: 22px;
  }

  .first-product-success-actions {
    grid-template-columns: 1fr;
  }

  .empty-state-onboarding-card {
    padding: 16px 15px 14px;
    border-radius: 20px;
  }

  .empty-state-onboarding-title {
    font-size: 20px;
  }

  .empty-state-onboarding-step {
    align-items: flex-start;
  }

  .empty-state-onboarding-cta {
    width: 100%;
    justify-content: center;
  }

  .data-safety-notice {
    align-items: flex-start;
    flex-direction: column;
  }

  .usage-streak-main {
    gap: 10px;
  }

  .usage-streak-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 18px;
  }

  .usage-streak-title {
    font-size: 16px;
  }

  .soon-depletion-card {
    padding: 15px 14px 14px;
  }

  .popular-products-grid {
    grid-template-columns: 1fr;
  }

  .popular-product-card {
    padding: 13px;
  }

  .sample-onboarding-banner {
    padding: 13px 14px;
  }

  .sample-onboarding-banner-actions {
    flex-direction: column;
  }

  .sample-onboarding-btn {
    width: 100%;
  }

  .soon-depletion-item {
    padding: 14px 13px;
  }

  .soon-depletion-item-row {
    align-items: center;
    flex-direction: row;
  }

  .soon-depletion-item-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .soon-depletion-purchase-cta {
    min-width: 100%;
    width: 100%;
  }

  .soon-depletion-empty-card {
    padding: 18px 14px 16px;
  }

  .soon-depletion-empty-cta {
    width: 100%;
  }

  .engagement-empty-card {
    padding: 18px 14px 16px;
  }

  .engagement-empty-cta {
    width: 100%;
  }

  .soon-depletion-note {
    margin-top: 12px;
    font-size: 11px;
  }

  .routine-progress {
    padding: 14px;
  }

  .routine-progress--cta {
    padding: 15px;
  }

  .routine-progress-row {
    padding: 10px 11px;
  }

  .routine-progress-actions-block {
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
  }

  .product-detail-modal-header {
    align-items: stretch;
    flex-direction: column;
  }

  .product-detail-summary {
    flex-direction: column;
  }

  .product-detail-depletion {
    align-self: flex-start;
  }

  .product-detail-stats {
    grid-template-columns: 1fr;
  }

  .view-switch {
    flex-wrap: wrap;
  }

  .routine-actions {
    grid-template-columns: 1fr;
  }

  .top-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .history-header {
    flex-direction: column;
  }

  .history-day-heading {
    gap: 10px;
  }

  .history-day-label-wrap {
    gap: 6px;
  }

  .history-filter-tabs {
    align-self: flex-start;
  }

  .usage-calendar-section {
    padding: 12px;
    border-radius: 16px;
  }

  .usage-calendar-header {
    flex-direction: column;
    gap: 10px;
  }

  .usage-calendar-nav {
    width: 100%;
    justify-content: space-between;
  }

  .usage-calendar-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .usage-calendar-weekdays,
  .usage-calendar-grid {
    gap: 4px;
  }

  .usage-calendar-day {
    min-height: 34px;
    border-radius: 10px;
    font-size: 11px;
  }

  .usage-calendar-detail-item {
    flex-direction: column;
    gap: 6px;
  }

  .usage-calendar-detail-meta {
    text-align: left;
  }

  .history-day-list {
    padding-left: 28px;
  }

  .history-entry {
    padding: 16px 15px 15px;
  }

  .history-entry::before {
    left: -28px;
  }

  .history-entry-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-row {
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    padding: 11px;
  }

  .product-list-topline {
    gap: 8px;
  }

  .product-title-row {
    align-items: flex-start;
  }

  .product-title-row strong {
    font-size: 15px;
    overflow-wrap: anywhere;
  }

  .product-routine-actions {
    display: none;
  }

  .purchase-recommendation:not(.hidden) {
    display: grid;
  }

  .product-result-summary {
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
    gap: 6px 8px;
    max-width: none;
    text-align: left;
  }

  .product-progress-block {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 9px 10px;
  }

  .product-dday-chip--list {
    min-height: 30px;
    padding: 6px 9px;
    font-size: 13px;
  }

  .product-actions {
    grid-template-columns: minmax(0, 1fr) minmax(68px, auto);
    justify-content: stretch;
    margin-top: 0;
  }

  .depletion-notify-controls {
    grid-template-columns: 1fr;
  }

  .product-setup-prompt {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .product-setup-open-btn {
    width: 100%;
  }

  .product-setup-editor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-routine-row {
    flex-wrap: wrap;
  }

  .product-routine-use-btn {
    width: 100%;
  }

  .auth-buttons {
    width: 100%;
    justify-content: flex-start;
  }

  .data-safety-notice-cta {
    align-self: flex-start;
  }

  #cta-btn.attention,
  .primary-app-sections--entering,
  .primary-app-sections--product-focus #productAddSection,
  .primary-app-sections--demo-product #product-section,
  .primary-app-sections--demo-product #productAddSection,
  .primary-app-sections--demo-warning #soonDepletionSection,
  .today-overview-card--routine-updated,
  .usage-streak-card--routine-updated,
  .routine-progress--spotlight,
  .product-row--newly-added,
  .product-row--routine-complete,
  .product-routine-row--celebrate,
  .product-routine-use-btn--celebrate,
  .use-product-btn--guided,
  .use-product-btn--daily-prompt,
  .purchase-cta-btn--urgent,
  .progress-track--routine-updated .progress-fill {
    animation: none;
  }

  .product-form-shell,
  .primary-app-sections,
  .product-row,
  .purchase-options,
  .routine-toast-card {
    transition-duration: 120ms;
  }
}

/* Vanity beauty theme override */
body {
  background: linear-gradient(160deg, #fff8fa 0%, #fde8ef 46%, #fff4ea 100%);
  color: var(--text-main);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 245, 248, 0.22) 44%, rgba(255, 239, 232, 0.28) 100%);
}

h1,
h2,
h3,
h4,
.empty-landing-copy h2,
.product-title-row strong,
.home-section-heading h3,
.routine-progress-title,
.today-overview-title,
.purchase-recommendation-title,
.product-depletion-primary {
  color: #5a474c;
}

.subtitle,
.hint,
.empty-landing-copy p,
.first-action-guide-text,
.usage-input-help,
.product-progress-label,
.meta,
.purchase-recommendation-sub,
.purchase-recommendation-note,
.product-depletion-date {
  color: #8c777c;
}

.card,
.modal-card,
.first-product-success-modal-card,
.product-row,
.today-overview-card,
.routine-progress,
.usage-streak-card,
.soon-depletion-item,
.home-priority-card,
.skin-event-card,
.history-card,
.history-entry,
.data-safety-notice,
.product-add-card,
.product-progress-block,
.purchase-recommendation,
.quick-add-panel,
.usage-config-group,
.empty-state-onboarding-card,
.popular-products-section,
.popular-product-card,
.purchase-options-modal-card {
  border-radius: 20px;
  border-color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 253, 251, 0.82);
  box-shadow: 0 18px 42px rgba(149, 91, 101, 0.11);
  backdrop-filter: blur(14px);
}

.product-progress-block,
.purchase-recommendation,
.quick-add-panel,
.usage-config-group,
.today-overview-item,
.routine-progress-row,
.product-setup-editor,
.product-today-status,
.purchase-options,
.history-filter-tabs {
  border-color: rgba(238, 203, 210, 0.72);
  background: rgba(255, 247, 247, 0.72);
  box-shadow: 0 10px 26px rgba(149, 91, 101, 0.07);
  backdrop-filter: blur(10px);
}

button,
.landing-primary-cta,
.landing-start-btn,
.product-submit-btn,
.product-form-toggle-btn,
.product-details-toggle-btn,
.product-optional-toggle,
.product-add-mode-btn--active,
.empty-state-onboarding-cta,
#cta-btn,
.home-primary-cta button,
.home-priority-cta,
.today-status-primary-cta,
.routine-group-use-btn,
.routine-action-btn,
.product-routine-use-btn,
.use-product-btn,
.purchase-cta-btn,
.purchase-options-modal-btn,
.purchase-option-btn,
.soon-depletion-empty-cta,
.soon-depletion-preview-cta,
.popular-products-empty-cta,
.data-safety-notice-cta,
.first-product-success-cta--primary,
.sample-onboarding-btn--primary,
.view-switch-btn--active,
.history-filter-btn--active {
  border: 1px solid #edc8bc;
  border-radius: 16px;
  background: linear-gradient(135deg, #f5a9b8 0%, #ea7f99 100%);
  color: #fffdfb;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(210, 108, 132, 0.2);
}

.btn-secondary,
.landing-start-btn--google,
.product-add-mode-btn,
.soon-depletion-preview-btn,
.first-product-success-cta--secondary,
.sample-onboarding-btn--secondary,
.view-switch-btn,
.history-filter-btn,
.purchase-options-close-btn {
  border-color: rgba(236, 204, 211, 0.82);
  border-radius: 16px;
  background: rgba(255, 249, 247, 0.86);
  color: #7d656a;
  box-shadow: 0 8px 20px rgba(149, 91, 101, 0.07);
}

.btn-danger,
.purchase-cta-btn--urgent,
.stop-product-btn {
  border-color: #ee9faa;
  border-radius: 16px;
  background: linear-gradient(135deg, #ee9ba7 0%, #e97887 100%);
  color: #fffdfb;
  box-shadow: 0 12px 26px rgba(201, 103, 119, 0.18);
}

.purchase-cta-btn--warning,
.soon-depletion-purchase-cta.purchase-cta-btn--warning,
.low-stock-badge,
.product-dday-chip--list {
  border-color: #efbec8;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd5d9 0%, #f6a7b6 100%);
  color: #744f58;
}

.landing-primary-cta {
  background: linear-gradient(135deg, #f6a9b8 0%, #ea7f99 100%);
  box-shadow: 0 18px 36px rgba(210, 108, 132, 0.24);
}

@media (hover: hover) {
  button:hover:not(:disabled),
  .landing-primary-cta:hover:not(:disabled),
  .product-submit-btn:hover:not(:disabled),
  .product-form-toggle-btn:hover:not(:disabled),
  .empty-state-onboarding-cta:hover:not(:disabled),
  #cta-btn:hover:not(:disabled),
  .home-primary-cta button:hover:not(:disabled),
  .home-priority-cta:hover:not(:disabled),
  .today-status-primary-cta:hover:not(:disabled),
  .routine-group-use-btn:hover:not(:disabled),
  .routine-action-btn:hover:not(:disabled),
  .product-routine-use-btn:hover:not(:disabled),
  .use-product-btn:hover:not(:disabled),
  .purchase-cta-btn:hover:not(:disabled),
  .purchase-options-modal-btn:hover:not(:disabled),
  .purchase-option-btn:hover:not(:disabled),
  .soon-depletion-empty-cta:hover:not(:disabled),
  .soon-depletion-preview-cta:hover:not(:disabled),
  .popular-products-empty-cta:hover:not(:disabled),
  .data-safety-notice-cta:hover:not(:disabled) {
    background: linear-gradient(135deg, #f9bac6 0%, #f091a8 100%);
    box-shadow: 0 16px 32px rgba(210, 108, 132, 0.22);
    filter: none;
  }

  .btn-secondary:hover:not(:disabled),
  .landing-start-btn--google:hover:not(:disabled),
  .product-add-mode-btn:hover:not(:disabled),
  .view-switch-btn:hover:not(:disabled),
  .history-filter-btn:hover:not(:disabled) {
    background: rgba(255, 252, 250, 0.96);
    color: #6f585e;
    box-shadow: 0 12px 24px rgba(149, 91, 101, 0.09);
  }
}

.usage-calendar-section .usage-calendar-nav-btn {
  border: 1px solid #ecd5dc;
  border-radius: 999px;
  background: #fff8f5;
  color: #845f68;
  box-shadow: none;
}

.usage-calendar-section .usage-calendar-day {
  border: 1px solid #f0e2e6;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  color: #5c4750;
  box-shadow: none;
}

.usage-calendar-section .usage-calendar-day--blank {
  border-color: transparent;
  background: transparent;
}

.usage-calendar-section .usage-calendar-day--has-record {
  border-color: #efc8d3;
  background: #fff4f6;
}

.usage-calendar-section .usage-calendar-day--today {
  border-color: #e899aa;
  box-shadow: inset 0 0 0 1px rgba(232, 143, 163, 0.22);
}

.usage-calendar-section .usage-calendar-day--selected {
  border-color: #d96b86;
  background: #ffe7ee;
  color: #893d53;
  box-shadow: 0 8px 14px rgba(210, 108, 132, 0.14);
}

.usage-config-group .ml-preset-chip {
  border: 1px solid #efd7dd;
  border-radius: 999px;
  background: #fff8f5;
  color: #7d5f66;
  box-shadow: none;
}

.usage-config-group .ml-preset-chip--selected {
  border-color: #e88fa3;
  background: #ffe9ee;
  color: #9a4055;
  box-shadow: inset 0 0 0 1px rgba(232, 143, 163, 0.22);
}

@media (hover: hover) {
  .usage-calendar-section .usage-calendar-nav-btn:hover:not(:disabled),
  .usage-calendar-section .usage-calendar-day:hover:not(:disabled),
  .usage-config-group .ml-preset-chip:hover:not(:disabled) {
    background: #fff0f2;
    color: #8d4b5c;
    box-shadow: 0 6px 12px rgba(149, 91, 101, 0.08);
  }
}

.progress-fill--warning,
.progress-fill.warning,
.home-priority-progress span,
.routine-product-group-progress span,
.soon-depletion-status--warning {
  background-color: #f2a6a0;
}

.product-submit-btn:focus-visible,
.today-status-primary-cta:focus-visible,
.product-form-toggle-btn:focus-visible {
  outline-color: rgba(234, 127, 153, 0.26);
}

.progress-fill--danger,
.progress-fill.danger,
.soon-depletion-status--urgent {
  background-color: #e97887;
}

.progress-text--warning,
.soon-depletion-item-warning--warning,
.purchase-recommendation--warning .purchase-recommendation-title,
.purchase-recommendation--warning .purchase-recommendation-sub,
.purchase-recommendation--warning .purchase-recommendation-note {
  color: #a05f6a;
}

.progress-text--danger,
.depletion-hint--critical,
.purchase-recommendation--urgent .purchase-recommendation-title,
.purchase-recommendation--urgent .purchase-recommendation-sub,
.purchase-recommendation--urgent .purchase-recommendation-note {
  color: #b45a6a;
}

html {
  -webkit-text-size-adjust: 100%;
}

input,
textarea,
select,
button {
  font-size: 16px !important;
}
