:root {
  --ink: #121826;
  --muted: rgba(18, 24, 38, 0.65);
  --surface: rgba(255, 251, 249, 0.94);
  --surface-strong: #fffbfa;
  --accent: #db2777;
  --accent-2: #be185d;
  --accent-3: #e11d48;
  --stroke: rgba(190, 24, 93, 0.12);
  --shadow: 0 20px 60px rgba(190, 24, 93, 0.08);
  --card-blue: linear-gradient(135deg, #3b82f6, #2563eb);
  --card-teal: linear-gradient(135deg, #0f766e, #14b8a6);
  --card-orange: linear-gradient(135deg, #f97316, #ea580c);
  --card-green: linear-gradient(135deg, #10b981, #059669);
  --card-red: linear-gradient(135deg, #ef4444, #dc2626);
  --card-purple: linear-gradient(135deg, #7c3aed, #6d28d9);
}

[data-theme="dark"] {
  --ink: #f1f5f9;
  --muted: rgba(241, 245, 249, 0.65);
  --surface: rgba(35, 22, 32, 0.92);
  --surface-strong: #231620;
  --stroke: rgba(251, 113, 133, 0.14);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Changa", "El Messiri", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 0%, rgba(251, 113, 133, 0.28), transparent 42%),
    radial-gradient(circle at 10% 20%, rgba(251, 146, 60, 0.32), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(253, 186, 116, 0.22), transparent 45%),
    linear-gradient(180deg, #fff1f2 0%, #ffedd5 42%, #fff7ed 100%);
  padding: 16px 14px 48px;
}

[data-theme="dark"] body {
  background:
    radial-gradient(circle at 90% 0%, rgba(190, 24, 93, 0.14), transparent 42%),
    radial-gradient(circle at 10% 20%, rgba(120, 53, 15, 0.12), transparent 40%),
    linear-gradient(180deg, #1a1218 0%, #15101a 45%, #120d14 100%);
}

/* ===== Appearance: Classic (cool) — optional override ===== */
[data-appearance="classic"] {
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --accent: #0ea5e9;
  --accent-2: #0f766e;
  --stroke: rgba(18, 24, 38, 0.12);
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
}

[data-appearance="classic"] body {
  background:
    radial-gradient(circle at 15% 20%, rgba(14, 165, 233, 0.2), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(15, 118, 110, 0.18), transparent 45%),
    linear-gradient(120deg, #eff6ff 0%, #f8fafc 45%, #ecfdf5 100%);
}

[data-appearance="classic"][data-theme="dark"] {
  --surface: rgba(15, 23, 42, 0.88);
  --surface-strong: #1e293b;
  --stroke: rgba(255, 255, 255, 0.1);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

[data-appearance="classic"][data-theme="dark"] body {
  background:
    radial-gradient(circle at 15% 20%, rgba(14, 165, 233, 0.12), transparent 45%),
    linear-gradient(120deg, #0f172a 0%, #1e293b 100%);
}

[data-appearance="classic"] .ambient {
  background: radial-gradient(circle, rgba(14, 165, 233, 0.35), transparent 70%);
  opacity: 0.45;
}

[data-appearance="classic"] .app-header {
  border-color: var(--stroke);
}

[data-appearance="classic"] .login-screen {
  background: linear-gradient(180deg, #bae6fd 0%, #f0f9ff 48%, #f1f5f9 100%);
}

[data-appearance="classic"] .login-decor--top {
  background: rgba(2, 132, 199, 0.12);
}

[data-appearance="classic"] .login-card {
  background: rgba(240, 249, 255, 0.96);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.16);
}

[data-appearance="classic"] .login-outlined-field {
  border-color: rgba(14, 165, 233, 0.5);
  background: #bae6fd;
}

[data-appearance="classic"] .login-outlined-field:focus-within {
  border-color: #0284c7;
  background: #7dd3fc;
  box-shadow: 0 0 0 1px rgba(2, 132, 199, 0.15);
}

[data-appearance="classic"] .login-field-icon,
[data-appearance="classic"] .login-saved-toggle,
[data-appearance="classic"] .login-password-toggle {
  color: #0284c7;
}

[data-appearance="classic"] .header-brand-title {
  background: linear-gradient(
    90deg,
    #db2777 0%,
    #ea580c 22%,
    #0ea5e9 44%,
    #8b5cf6 66%,
    #db2777 88%
  );
  background-size: 280% 100%;
  -webkit-background-clip: text;
  background-clip: text;
}

[data-appearance="classic"] .home-banner-cta {
  background: rgba(13, 148, 136, 0.92);
}

[data-appearance="classic"] .home-banner-cta:hover {
  background: rgba(13, 148, 136, 0.96);
}

[data-appearance="classic"] .home-banner-dot.active {
  background: #0ea5a4;
}

[data-appearance="classic"] .login-field-label {
  color: #6366f1;
}

[data-appearance="classic"] .login-badge,
[data-appearance="classic"] .login-about-badge {
  background: linear-gradient(135deg, #0284c7, #ef8f2f);
}

[data-appearance="classic"] .login-submit {
  color: #0f172a;
  background: linear-gradient(90deg, #0284c7, #ef8f2f);
}

[data-appearance="classic"] .login-saved-item:hover {
  background: rgba(2, 132, 199, 0.06);
}

[data-appearance="classic"] .login-saved-item-icon {
  color: #0284c7;
}

[data-appearance="classic"] .co-gov-item.active {
  background: color-mix(in srgb, var(--accent-2) 18%, var(--surface-strong));
  border-color: color-mix(in srgb, var(--accent-2) 42%, var(--stroke));
}

.ambient {
  position: fixed;
  inset: -20% auto auto -10%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(251, 113, 133, 0.28), transparent 70%);
  filter: blur(12px);
  opacity: 0.35;
  pointer-events: none;
}

.app-shell {
  max-width: 960px;
  margin: 0 auto;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.login-brand {
  text-align: center;
  margin: 24px 0 20px;
}

/* ===== Login screen (matches Android LoginScreen) ===== */
body.login-active {
  padding: 0;
  overflow: hidden;
}

body.login-active .ambient {
  display: none;
}

#login-view.active {
  display: block;
}

.login-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 440px);
}

.login-stack .login-card {
  width: 100%;
}

.login-hero {
  width: 100%;
  text-align: center;
  margin-bottom: 24px;
  min-height: 128px;
}

.login-hero-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-hero-split-enter {
  display: inline-block;
  animation: login-hero-enter 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes login-hero-enter {
  0% {
    opacity: 0;
    transform: scale(0.88) translateY(10px);
  }
  70% {
    transform: scale(1.04) translateY(-2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.login-hero-tagline {
  margin: 8px 0 0;
  font-size: 15px;
  color: rgba(15, 23, 42, 0.62);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.login-hero-tagline.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.login-hero-split {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.login-hero-split-line {
  display: block;
  font-family: "El Messiri", "Changa", sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

.login-hero-split-line--1 {
  font-size: clamp(28px, 7.5vw, 40px);
}

.login-hero-split-line--2 {
  position: relative;
  font-size: clamp(42px, 12vw, 64px);
}

#login-hero-line2 {
  display: inline-block;
  font-weight: 800;
}

.login-screen #login-hero-line1,
.login-screen .login-hero-split-line--1 {
  color: #be185d;
}

.login-screen #login-hero-line2 {
  color: #500724;
  -webkit-text-fill-color: #500724;
}

.login-screen .login-hero-tagline {
  color: rgba(15, 23, 42, 0.62);
}

[data-theme="dark"] .login-screen {
  background: linear-gradient(180deg, #4a1942 0%, #2d1528 48%, #1a1018 100%);
}

[data-theme="dark"] .login-screen #login-hero-line1,
[data-theme="dark"] .login-screen .login-hero-split-line--1 {
  color: #f9a8d4;
}

[data-theme="dark"] .login-screen #login-hero-line2 {
  color: #fff7f5;
  -webkit-text-fill-color: #fff7f5;
}

[data-theme="dark"] .login-screen .login-hero-tagline {
  color: rgba(255, 247, 245, 0.72);
}

[data-theme="dark"] .login-card {
  background: rgba(58, 24, 48, 0.94);
  border: 1px solid rgba(251, 113, 133, 0.18);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.38);
}

[data-theme="dark"] .login-title {
  color: #fce7f3;
}

[data-theme="dark"] .login-subtitle {
  color: rgba(252, 231, 243, 0.78);
}

[data-theme="dark"] .login-outlined-field {
  border-color: rgba(244, 114, 182, 0.38);
  background: rgba(131, 24, 67, 0.42);
}

[data-theme="dark"] .login-outlined-field:focus-within {
  border-color: #f472b6;
  background: rgba(157, 23, 77, 0.55);
  box-shadow: 0 0 0 1px rgba(244, 114, 182, 0.2);
}

[data-theme="dark"] .login-field-label {
  color: #fbcfe8;
}

[data-theme="dark"] .login-outlined-field input {
  color: #fff1f2;
}

[data-theme="dark"] .login-outlined-field input::placeholder {
  color: rgba(255, 241, 242, 0.45);
}

[data-theme="dark"] .login-field-icon,
[data-theme="dark"] .login-saved-toggle,
[data-theme="dark"] .login-password-toggle {
  color: #f9a8d4;
}

[data-theme="dark"] .login-link-btn,
[data-theme="dark"] .login-footer-btn {
  color: #fbcfe8;
}

.login-hero-split-underline {
  display: block;
  height: 5px;
  width: 0;
  margin: 10px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #d97706, #fbbf24, #f59e0b, #fbbf24, #d97706);
  background-size: 200% 100%;
  box-shadow: 0 2px 12px rgba(251, 191, 36, 0.5);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.login-hero-split-underline.is-visible {
  width: min(100%, 280px);
  animation: login-hero-gold-shimmer 3s ease-in-out infinite;
}

@keyframes login-hero-gold-shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-hero-split-enter,
  .login-hero-split-underline.is-visible {
    animation: none !important;
    transition: none !important;
  }
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 20px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 15% 12%, rgba(251, 146, 60, 0.28), transparent 38%),
    radial-gradient(circle at 85% 18%, rgba(244, 114, 182, 0.32), transparent 40%),
    linear-gradient(180deg, #fb7185 0%, #fbcfe8 30%, #ffedd5 62%, #fff7ed 100%);
}

.login-decor {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.login-decor--top {
  top: 28px;
  inset-inline-start: 10px;
  width: 160px;
  height: 160px;
  background: rgba(236, 72, 153, 0.14);
}

.login-decor--bottom {
  inset-inline-end: 6px;
  bottom: 44px;
  width: 220px;
  height: 220px;
  background: rgba(242, 156, 56, 0.1);
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  padding: 24px 20px;
  border-radius: 28px;
  background: rgba(255, 247, 237, 0.96);
  border: 1px solid rgba(251, 113, 133, 0.16);
  box-shadow: 0 16px 48px rgba(190, 24, 93, 0.16);
  text-align: center;
}

.login-badge {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: #0f172a;
  background: linear-gradient(135deg, #db2777, #ef8f2f);
}

.login-badge svg {
  color: #0f172a;
}

.login-title {
  margin: 16px 0 4px;
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
}

.login-subtitle {
  margin: 0 0 20px;
  font-size: 15px;
  color: rgba(15, 23, 42, 0.72);
}

.login-form {
  text-align: start;
}

.login-field-box {
  position: relative;
  margin-bottom: 12px;
}

.login-outlined-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 12px;
  border-radius: 16px;
  border: 1px solid rgba(219, 39, 119, 0.35);
  background: #fce7f3;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.login-outlined-field:focus-within {
  border-color: #db2777;
  background: #fbcfe8;
  box-shadow: 0 0 0 1px rgba(219, 39, 119, 0.15);
}

.login-field-icon {
  flex: 0 0 auto;
  color: #db2777;
  display: grid;
  place-items: center;
}

.login-field-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.login-field-label {
  font-size: 12px;
  font-weight: 600;
  color: #be185d;
  line-height: 1.2;
}

.login-outlined-field input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #1e1b4b;
}

.login-outlined-field input::placeholder {
  color: rgba(30, 27, 75, 0.45);
}

.login-saved-toggle,
.login-password-toggle {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  color: #db2777;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.login-saved-toggle:hover,
.login-password-toggle:hover {
  background: rgba(219, 39, 119, 0.08);
}

.login-saved-menu {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 4px);
  z-index: 5;
  max-height: 220px;
  overflow-y: auto;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
  text-align: start;
}

.login-saved-menu-label {
  padding: 8px 16px 6px;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.62);
}

.login-saved-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 10px 16px;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: #0f172a;
  cursor: pointer;
  text-align: start;
}

.login-saved-item:hover {
  background: rgba(219, 39, 119, 0.06);
}

.login-saved-item-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.login-saved-item-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.login-saved-item-icon {
  color: #db2777;
  display: grid;
  place-items: center;
}

.login-saved-remove {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  color: #b3261e;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.login-saved-lock {
  color: rgba(15, 23, 42, 0.55);
  font-size: 14px;
}

.login-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #ffece9;
  color: #b3261e;
  font-size: 13px;
  line-height: 1.5;
}

.login-error.hidden {
  display: none;
}

.login-submit {
  width: 100%;
  height: 56px;
  margin-top: 20px;
  border: none;
  border-radius: 16px;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(90deg, #db2777, #ea580c);
  display: grid;
  place-items: center;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.login-submit:hover:not(:disabled) {
  transform: translateY(-1px);
}

.login-submit:disabled {
  opacity: 0.72;
  cursor: wait;
}

.login-submit-loading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.login-submit-loading.hidden,
.login-submit-default.hidden {
  display: none;
}

.login-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(15, 23, 42, 0.25);
  border-top-color: #0f172a;
  border-radius: 50%;
  animation: login-spin 0.8s linear infinite;
}

@keyframes login-spin {
  to {
    transform: rotate(360deg);
  }
}

.login-quick-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-evenly;
  gap: 8px;
  margin-top: 20px;
}

.login-quick-btn {
  flex: 1 1 0;
  border: none;
  background: transparent;
  font: inherit;
  color: #0f172a;
  cursor: pointer;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.login-quick-btn span:last-child {
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

.login-quick-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.login-about-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #db2777, #ef8f2f);
}

.login-about-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.login-dialog {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: rgba(15, 23, 42, 0.45);
}

.login-dialog.hidden {
  display: none;
}

.login-dialog-sheet {
  width: min(100%, 520px);
  max-height: min(88vh, 720px);
  overflow-y: auto;
  padding: 24px;
  border-radius: 24px;
  background: #f0f9ff;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2);
  text-align: start;
}

.login-dialog-sheet h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.login-dialog-body {
  font-size: 15px;
  line-height: 1.7;
  color: #0f172a;
  white-space: pre-wrap;
}

.login-dialog-close {
  margin-top: 16px;
  margin-inline-start: auto;
  display: block;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #0284c7;
  cursor: pointer;
  padding: 8px 12px;
}

.hidden {
  display: none !important;
}

.login-brand h1 {
  margin: 12px 0 6px;
  font-size: 26px;
}

.login-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.brand-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #0ea5e9, #0f766e);
  box-shadow: var(--shadow);
}

.panel {
  background: var(--surface);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(10px);
}

.login-panel {
  max-width: 420px;
  margin: 0 auto;
}

.panel-title {
  font-size: 20px;
  font-weight: 700;
}

.panel-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.6;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  margin-bottom: 14px;
}

.field input,
.search,
.select-compact {
  border-radius: 12px;
  border: 1px solid var(--stroke);
  padding: 11px 12px;
  font-family: inherit;
  font-size: 14px;
  background: var(--surface-strong);
  color: var(--ink);
}

.primary-button,
.ghost-button,
.icon-button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}

.primary-button {
  width: 100%;
  padding: 12px 16px;
  color: #fff;
  background: linear-gradient(135deg, #0ea5e9, #0f766e);
}

.ghost-button {
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  color: var(--ink);
}

.icon-button {
  width: 40px;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  color: var(--ink);
  margin-left: 8px;
}

.hidden {
  display: none !important;
}

.status-line {
  min-height: 20px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--accent-3);
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 14px;
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid rgba(251, 113, 133, 0.14);
  box-shadow: var(--shadow);
}

.header-start {
  display: flex;
  align-items: center;
  min-width: 0;
}

.app-header h2 {
  margin: 0;
  font-size: 18px;
}

.header-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
  justify-self: end;
}

.app-header.is-home {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.app-header.is-home .header-actions {
  grid-column: 3;
}

.header-brand {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  pointer-events: none;
  user-select: none;
}

.header-brand.hidden {
  display: none;
}

.header-brand-logo {
  display: grid;
  place-items: center;
  filter: drop-shadow(0 6px 14px rgba(219, 39, 119, 0.22));
  animation: brand-logo-float 4s ease-in-out infinite;
}

@keyframes brand-logo-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.header-brand-title {
  margin: 0;
  font-size: clamp(17px, 4.5vw, 21px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
  background: linear-gradient(
    90deg,
    #be185d 0%,
    #db2777 20%,
    #ea580c 40%,
    #f472b6 60%,
    #be185d 80%
  );
  background-size: 280% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brand-title-shimmer 7s ease-in-out infinite;
}

[data-theme="dark"] .header-brand-title {
  background: linear-gradient(
    90deg,
    #f9a8d4 0%,
    #fb923c 25%,
    #38bdf8 50%,
    #c4b5fd 75%,
    #f9a8d4 100%
  );
  background-size: 280% 100%;
  -webkit-background-clip: text;
  background-clip: text;
}

@keyframes brand-title-shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.header-icon-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  line-height: 1;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

/* ===== Home — Boutique Trust ===== */
.home-screen.active,
.home-boutique.active {
  padding-bottom: 12px;
}

.boutique-hero {
  position: relative;
  overflow: hidden;
  padding: 22px 18px 20px;
  margin-bottom: 14px;
  border-radius: 24px;
  border: 1px solid rgba(251, 113, 133, 0.18);
  background: linear-gradient(145deg, #fce7f3 0%, #fff7ed 52%, #ffffff 100%);
  box-shadow: 0 14px 36px rgba(190, 24, 93, 0.08);
  text-align: center;
}

[data-theme="dark"] .boutique-hero {
  border-color: rgba(251, 113, 133, 0.22);
  background: linear-gradient(145deg, #2a1524 0%, #1f1520 100%);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.25);
}

.boutique-hero-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(251, 207, 232, 0.45);
  top: -70px;
  inset-inline-end: -40px;
  pointer-events: none;
}

[data-theme="dark"] .boutique-hero-glow {
  background: rgba(190, 24, 93, 0.15);
}

.boutique-hero-badge {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #db2777, #be185d);
  box-shadow: 0 10px 24px rgba(219, 39, 119, 0.28);
}

.boutique-hero-kicker {
  position: relative;
  z-index: 1;
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: #be185d;
  letter-spacing: 0.03em;
}

[data-theme="dark"] .boutique-hero-kicker {
  color: #f9a8d4;
}

.boutique-hero-name {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  color: #4a044e;
}

[data-theme="dark"] .boutique-hero-name {
  color: #fce7f3;
}

.boutique-hero-sub {
  position: relative;
  z-index: 1;
  margin: 8px auto 0;
  max-width: 280px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(74, 4, 78, 0.72);
}

[data-theme="dark"] .boutique-hero-sub {
  color: rgba(252, 231, 243, 0.75);
}

.boutique-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.boutique-trust-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 72px;
  padding: 10px 6px;
  border: 1px solid rgba(251, 113, 133, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  color: #831843;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

[data-theme="dark"] .boutique-trust-btn {
  background: rgba(42, 21, 36, 0.92);
  border-color: rgba(251, 113, 133, 0.25);
  color: #fbcfe8;
}

.boutique-trust-btn:hover {
  background: #fff7fa;
  border-color: rgba(219, 39, 119, 0.32);
  transform: translateY(-1px);
}

[data-theme="dark"] .boutique-trust-btn:hover {
  background: rgba(251, 113, 133, 0.14);
  border-color: rgba(251, 113, 133, 0.38);
  color: #fce7f3;
}

.boutique-trust-btn:active {
  transform: translateY(0);
}

.boutique-trust-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.boutique-trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #db2777, #ea580c);
}

.boutique-trust-icon img {
  width: 20px;
  height: 20px;
}

/* Home banner carousel — matches Android HomeImageBanner */
.home-banner {
  margin-bottom: 14px;
}

.home-banner-frame {
  position: relative;
  width: 100%;
  height: 146px;
  border-radius: 16px;
  overflow: hidden;
}

.home-banner-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.home-banner-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.home-banner-slide.active {
  opacity: 1;
}

.home-banner-cta {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  border: none;
  border-radius: 12px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: rgba(219, 39, 119, 0.92);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
  max-width: calc(100% - 24px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-banner-cta:hover {
  background: rgba(190, 24, 93, 0.96);
}

.home-banner-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.home-banner-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #b6c6d8;
  cursor: pointer;
  transition: width 0.15s ease, height 0.15s ease, background 0.15s ease;
}

.home-banner-dot.active {
  width: 9px;
  height: 9px;
  background: #db2777;
}

[data-theme="dark"] .home-banner-dot {
  background: rgba(148, 163, 184, 0.45);
}

.boutique-cta {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  margin-bottom: 14px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(90deg, #be185d, #db2777 45%, #0f766e);
  box-shadow: 0 12px 28px rgba(190, 24, 93, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.boutique-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(190, 24, 93, 0.28);
}

.boutique-cta:active {
  transform: scale(0.99);
}

.boutique-cta-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  background: rgba(255, 255, 255, 0.22);
}

.boutique-cta-heading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.boutique-cta-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.boutique-cta-text strong {
  font-size: 16px;
  font-weight: 800;
}

.boutique-cta-text small {
  font-size: 12px;
  opacity: 0.9;
}

.boutique-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.boutique-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 108px;
  padding: 14px 10px;
  border: 1px solid rgba(251, 113, 133, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(190, 24, 93, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

[data-theme="dark"] .boutique-tile {
  background: rgba(35, 22, 32, 0.95);
  border-color: rgba(251, 113, 133, 0.2);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.boutique-tile--wide {
  grid-column: 1 / -1;
  min-height: 88px;
  flex-direction: row;
  justify-content: center;
  gap: 12px;
  padding-inline: 16px;
  text-align: center;
}

.boutique-tile--wide .boutique-tile-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  flex: 0 1 auto;
  min-width: 0;
}

.boutique-tile--wide .boutique-tile-sub {
  max-width: none;
}

.boutique-tile:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--tile-accent) 35%, rgba(251, 113, 133, 0.2));
  box-shadow: 0 12px 28px color-mix(in srgb, var(--tile-accent) 12%, transparent);
}

.boutique-tile:active {
  transform: scale(0.98);
}

.boutique-tile.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.boutique-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--tile-accent);
  background: color-mix(in srgb, var(--tile-accent) 12%, #fff7f5);
}

.boutique-tile-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.boutique-tile-sub {
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
  max-width: 120px;
}

.boutique-footnote {
  margin: 16px 8px 0;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
  color: #9d174d;
  background: rgba(251, 207, 232, 0.35);
  border: 1px solid rgba(251, 113, 133, 0.15);
}

[data-theme="dark"] .boutique-footnote {
  color: #fbcfe8;
  background: rgba(190, 24, 93, 0.12);
  border-color: rgba(251, 113, 133, 0.2);
}

.home-note {
  margin: 18px 6px 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.search {
  flex: 1 1 200px;
}

.select-compact {
  min-width: 120px;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.chip {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--surface);
  border: 1px solid var(--stroke);
}

.toggle-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 14px;
}

.product-card {
  background: var(--surface);
  border: 2px solid rgba(14, 165, 233, 0.12);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.product-card--app .product-image-wrap {
  position: relative;
}

.product-image {
  aspect-ratio: 1.14;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.12), var(--surface));
  display: grid;
  place-items: center;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.product-image-empty span:first-child {
  font-size: 34px;
  opacity: 0.35;
}

.product-image-count {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  border-radius: 12px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
}

.product-image-fallback {
  font-size: 28px;
  opacity: 0.35;
}

.product-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-stock-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.product-stock-badge.status-in_stock {
  background: linear-gradient(90deg, #dcfce7, #bbf7d0);
  color: #166534;
}

.product-stock-badge.status-low_stock {
  background: linear-gradient(90deg, #fef3c7, #fde68a);
  color: #92400e;
}

.product-stock-badge.status-out_of_stock {
  background: linear-gradient(90deg, #fee2e2, #fecaca);
  color: #991b1b;
}

.product-stock-badge.status-pending_stock_confirmation {
  background: linear-gradient(90deg, #fef9c3, #fde68a);
  color: #854d0e;
}

.product-stock-qty-label {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.85;
}

.product-stock-qty-value {
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.product-stock-text {
  line-height: 1.35;
}

.product-name {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-size-chip {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(14, 165, 233, 0.45);
  background: rgba(14, 165, 233, 0.14);
  font-size: 11px;
  font-weight: 700;
}

.product-prices-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.product-price-box {
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 68px;
}

.product-price-retail {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(14, 165, 233, 0.08));
}

.product-price-wholesale {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(16, 185, 129, 0.08));
}

.product-price-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.product-price-box strong {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.35;
}

.product-prices {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}

.product-prices strong {
  color: var(--ink);
}

[data-theme="dark"] .product-card {
  border-color: rgba(56, 189, 248, 0.18);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .product-stock-badge.status-in_stock {
  background: linear-gradient(90deg, rgba(22, 101, 52, 0.35), rgba(22, 101, 52, 0.2));
  color: #86efac;
}

[data-theme="dark"] .product-stock-badge.status-low_stock {
  background: linear-gradient(90deg, rgba(146, 64, 14, 0.35), rgba(146, 64, 14, 0.2));
  color: #fcd34d;
}

[data-theme="dark"] .product-stock-badge.status-out_of_stock {
  background: linear-gradient(90deg, rgba(153, 27, 27, 0.35), rgba(153, 27, 27, 0.2));
  color: #fca5a5;
}

[data-theme="dark"] .product-stock-badge.status-pending_stock_confirmation {
  background: linear-gradient(90deg, rgba(133, 77, 14, 0.35), rgba(133, 77, 14, 0.2));
  color: #fde047;
}

.status-badge {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.status-in_stock {
  background: #dcfce7;
  color: #166534;
}

.status-low_stock {
  background: #fef3c7;
  color: #92400e;
}

.status-out_of_stock {
  background: #fee2e2;
  color: #991b1b;
}

.status-pending_stock_confirmation {
  background: #fef9c3;
  color: #854d0e;
}

[data-theme="dark"] .status-in_stock {
  background: rgba(22, 101, 52, 0.25);
  color: #86efac;
}

[data-theme="dark"] .status-low_stock {
  background: rgba(146, 64, 14, 0.25);
  color: #fcd34d;
}

[data-theme="dark"] .status-out_of_stock {
  background: rgba(153, 27, 27, 0.25);
  color: #fca5a5;
}

[data-theme="dark"] .status-pending_stock_confirmation {
  background: rgba(133, 77, 14, 0.25);
  color: #fde047;
}

.hub-returned-tabs {
  margin-bottom: 12px;
}
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.status-tab {
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

.status-tab.active {
  background: linear-gradient(135deg, #0ea5e9, #0f766e);
  color: #fff;
  border-color: transparent;
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.order-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.order-title {
  font-size: 15px;
  font-weight: 700;
}

.order-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.order-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  font-size: 12px;
  margin-bottom: 10px;
}

.order-meta strong {
  color: var(--muted);
  font-weight: 600;
}

.order-products {
  border-top: 1px solid var(--stroke);
  padding-top: 10px;
}

.order-products-title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.product-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  font-size: 12px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--stroke);
}

.product-line:last-child {
  border-bottom: none;
}

.empty-state {
  text-align: center;
  padding: 32px 16px;
  color: var(--muted);
  font-size: 14px;
}

.placeholder-panel {
  max-width: 420px;
  margin: 40px auto;
  text-align: center;
}

.placeholder-icon {
  font-size: 40px;
  margin-bottom: 8px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: none;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 13px;
  z-index: 100;
  max-width: calc(100vw - 32px);
  text-align: center;
}

.form-panel {
  margin-bottom: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.field-full {
  grid-column: 1 / -1;
}

.field textarea {
  border-radius: 12px;
  border: 1px solid var(--stroke);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  background: var(--surface-strong);
  color: var(--ink);
  resize: vertical;
}

.panel-divider {
  height: 1px;
  background: var(--stroke);
  margin: 16px 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.form-actions {
  margin-top: 8px;
}

.order-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.order-line-row {
  display: grid;
  grid-template-columns: 1fr repeat(3, minmax(70px, 90px)) auto;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--surface-strong);
}

@media (max-width: 640px) {
  .order-line-row {
    grid-template-columns: 1fr 1fr;
  }
  .order-line-row .line-remove {
    grid-column: 2;
    justify-self: end;
  }
}

.line-remove {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: #fee2e2;
  color: #991b1b;
  cursor: pointer;
  font-family: inherit;
}

.bucket-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.hub-bucket-card {
  min-height: 120px;
  gap: 4px;
}

.hub-bucket-card.selected {
  border-color: color-mix(in srgb, var(--tile-accent) 45%, rgba(251, 113, 133, 0.2));
  box-shadow: 0 12px 28px color-mix(in srgb, var(--tile-accent) 18%, transparent);
  background: color-mix(in srgb, var(--tile-accent) 7%, rgba(255, 255, 255, 0.92));
}

[data-theme="dark"] .hub-bucket-card.selected {
  background: color-mix(in srgb, var(--tile-accent) 12%, rgba(35, 22, 32, 0.95));
}

.hub-bucket-count {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--tile-accent);
}

.profit-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.profit-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.profit-card-label {
  font-size: 12px;
  color: var(--muted);
}

.profit-card-value {
  font-size: 22px;
  font-weight: 700;
  margin-top: 6px;
}

.profit-card-subtitle {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.profit-card-count {
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
  color: var(--muted);
}

.profit-card-expected {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.12), var(--surface));
}

.profit-card-earned,
.profit-card-withdrawable {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.12), var(--surface));
}

.profit-card-added {
  border-color: rgba(14, 116, 144, 0.25);
}

.profit-card-pending {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08), var(--surface));
}

.profit-order-profit {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #059669;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.action-button {
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.action-primary {
  background: #0f766e;
  color: #fff;
}

.action-secondary {
  background: var(--surface-strong);
  border: 1px solid var(--stroke);
  color: var(--ink);
}

.photo-preview-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.photo-preview-row img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--stroke);
}

/* ── Create Order (matches Android layout) ── */
.create-order-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 24px;
}

.co-section {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 12px;
  box-shadow: var(--shadow);
}

.co-section-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
}

.co-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.co-product-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: var(--surface-strong);
}

.co-product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.co-product-card-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 28px;
  color: var(--muted);
}

.co-product-card-edit {
  position: absolute;
  top: 4px;
  inset-inline-end: 4px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.co-empty-products {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 10px;
}

.co-add-product-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 56px;
  border: none;
  border-radius: 14px;
  background: #0f766e;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.co-add-product-icon {
  font-size: 20px;
  line-height: 1;
}

.co-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.co-field-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.co-field input,
.co-field textarea,
.co-field select {
  border-radius: 14px;
  border: 1px solid var(--stroke);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  background: var(--surface-strong);
  color: var(--ink);
}

.co-field-hint,
.co-field-note {
  font-size: 11px;
  color: var(--muted);
}

.co-rep-order-row {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--surface-strong);
  padding: 0 12px;
}

.co-rep-prefix {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.co-rep-order-row input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 0;
  font-family: inherit;
  font-size: 14px;
}

.co-picker-btn {
  width: 100%;
  min-height: 56px;
  margin-bottom: 10px;
  border-radius: 14px;
  border: 1.3px solid var(--stroke);
  background: var(--surface-strong);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: start;
  padding: 0 14px;
  cursor: pointer;
  color: var(--ink);
}

.co-submit-btn {
  width: 100%;
  min-height: 58px;
  border: none;
  border-radius: 18px;
  background: #0f766e;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.co-submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.co-validation-hint {
  margin: 0;
  font-size: 12px;
  color: #d32f2f;
}

.co-profit-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid #16a34a;
  background: #dcfce7;
  color: #166534;
  font-size: 14px;
}

.co-profit-preview strong {
  font-size: 18px;
}

.co-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
}

.co-modal.hidden {
  display: none;
}

.co-modal-sheet {
  width: min(100%, 520px);
  max-height: 85vh;
  overflow: auto;
  background: var(--surface);
  border-radius: 18px;
  padding: 12px;
  box-shadow: var(--shadow);
}

.co-modal-sheet-sm {
  max-height: 70vh;
}

.co-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.co-modal-head h3,
.co-modal-sheet > h3 {
  margin: 0;
  font-size: 17px;
  color: var(--ink);
}

.co-modal-sheet .search {
  width: 100%;
  margin-bottom: 4px;
  color: var(--ink);
  background: var(--surface-strong);
}

.co-modal-sheet .search::placeholder {
  color: var(--muted);
  opacity: 1;
}

.co-modal-subtitle {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.co-modal-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.co-outline-btn,
.co-accent-btn {
  border-radius: 12px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.co-outline-btn {
  flex: 1;
  border: 1.3px solid var(--stroke);
  background: var(--surface-strong);
  color: var(--ink);
}

.co-accent-btn {
  border: none;
  background: #0f766e;
  color: #fff;
  min-width: 72px;
}

.co-outline-btn.co-multi-active {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.14);
}

.co-picker-step {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
}

.co-category-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 8px;
}

.co-category-chip {
  flex: 0 0 auto;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: var(--surface-strong);
  padding: 8px 12px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

.co-category-chip.active {
  border-color: #0f766e;
  background: rgba(15, 118, 110, 0.14);
}

.co-results-bar {
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: var(--surface-strong);
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.co-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.co-picker-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  padding: 0;
  background: var(--surface-strong);
  cursor: pointer;
}

.co-picker-item.selected {
  border: 2.5px solid #22c55e;
}

.co-picker-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.co-picker-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 24px;
  color: var(--muted);
}

.co-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.co-modal-foot {
  display: flex;
  gap: 10px;
}

.co-modal-foot .co-outline-btn,
.co-modal-foot .co-accent-btn {
  flex: 1;
  min-height: 50px;
}

.co-modal-cancel {
  width: 100%;
  margin-top: 8px;
}

.co-governorate-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 320px;
  overflow: auto;
  margin: 10px 0;
}

.co-gov-item {
  width: 100%;
  text-align: start;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: var(--surface-strong);
  color: var(--ink);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.co-gov-item:hover {
  background: color-mix(in srgb, var(--accent-2) 12%, var(--surface-strong));
  border-color: color-mix(in srgb, var(--accent-2) 32%, var(--stroke));
}

.co-gov-item.active {
  background: color-mix(in srgb, var(--accent-2) 18%, var(--surface-strong));
  border-color: color-mix(in srgb, var(--accent-2) 42%, var(--stroke));
  color: var(--ink);
  font-weight: 700;
}

.co-menu-item {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  cursor: pointer;
}

.co-menu-danger {
  color: #b91c1c;
  background: #fee2e2;
}

@media (max-width: 480px) {
  .co-product-grid,
  .co-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* My Orders — matches Android MyOrdersScreen */
#screen-orders.active {
  padding-top: 4px;
}

.mo-status-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.mo-status-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mo-status-card {
  min-height: 128px;
  gap: 4px;
}

.mo-status-card--wide {
  width: 100%;
  min-height: 88px;
  flex-direction: row;
  justify-content: center;
  gap: 12px;
  padding-inline: 16px;
}

.mo-status-card-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.mo-status-card--wide .boutique-tile-sub {
  max-width: none;
}

.mo-status-card.selected {
  border-color: color-mix(in srgb, var(--tile-accent) 45%, rgba(251, 113, 133, 0.2));
  box-shadow: 0 12px 28px color-mix(in srgb, var(--tile-accent) 18%, transparent);
  background: color-mix(in srgb, var(--tile-accent) 7%, rgba(255, 255, 255, 0.92));
}

[data-theme="dark"] .mo-status-card.selected {
  background: color-mix(in srgb, var(--tile-accent) 12%, rgba(35, 22, 32, 0.95));
}

.mo-status-count {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--tile-accent);
}

.mo-orders-list {
  margin-top: 4px;
}

.mo-order-card {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--stroke) 70%, transparent);
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.mo-order-summary {
  cursor: pointer;
  user-select: none;
}

.mo-order-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.mo-order-rep {
  font-size: 16px;
  font-weight: 700;
  color: #203040;
  line-height: 1.35;
}

[data-theme="dark"] .mo-order-rep {
  color: var(--ink);
}

.mo-date-chip {
  flex-shrink: 0;
  font-size: 12px;
  color: #4b6075;
  background: #f1f6fd;
  border: 1px solid #d5e2f0;
  border-radius: 12px;
  padding: 6px 10px;
}

[data-theme="dark"] .mo-date-chip {
  color: var(--ink);
  background: var(--surface-strong);
  border-color: var(--stroke);
}

.mo-chip-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.mo-chip {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  border-radius: 12px;
  padding: 8px 10px;
  border: 1px solid transparent;
}

.mo-chip-customer {
  background: color-mix(in srgb, #0ea5e9 14%, var(--surface-strong));
  border-color: color-mix(in srgb, #0ea5e9 30%, transparent);
  color: color-mix(in srgb, #0284c7 55%, var(--ink));
}

.mo-chip-location {
  background: var(--surface);
  border-color: color-mix(in srgb, var(--stroke) 60%, transparent);
  color: var(--ink);
}

.mo-chip-total {
  background: color-mix(in srgb, #0ea5e9 14%, var(--surface));
  border-color: color-mix(in srgb, #0ea5e9 28%, transparent);
  color: #0f4c5c;
  font-weight: 700;
}

.mo-chip-profit {
  background: color-mix(in srgb, #a855f7 12%, var(--surface));
  border-color: color-mix(in srgb, #a855f7 28%, transparent);
  color: #5b21b6;
  font-weight: 700;
}

.mo-chip-status {
  display: flex;
  align-items: center;
  gap: 6px;
  background: color-mix(in srgb, #f59e0b 12%, var(--surface));
  border-color: color-mix(in srgb, #f59e0b 26%, transparent);
  color: #92400e;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 4px;
}

[data-theme="dark"] .mo-chip-total,
[data-theme="dark"] .mo-chip-profit,
[data-theme="dark"] .mo-chip-status {
  color: var(--ink);
}

.mo-processing-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.mo-btn-outline-danger {
  border: 1px solid rgba(220, 38, 38, 0.44);
  background: #fef2f2;
  color: #b91c1c;
  border-radius: 12px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

[data-theme="dark"] .mo-btn-outline-danger {
  background: rgba(127, 29, 29, 0.25);
  color: #fca5a5;
}

.mo-collapse-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
}

.mo-order-expanded {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--stroke);
}

.mo-products-panel {
  background: color-mix(in srgb, var(--surface-strong) 55%, transparent);
  border: 1px solid color-mix(in srgb, var(--stroke) 55%, transparent);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 10px;
}

.mo-products-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.mo-product-line {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--stroke) 45%, transparent);
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.mo-product-line:last-child {
  margin-bottom: 0;
}

.mo-product-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 8px;
  display: block;
}

.mo-product-img-placeholder {
  width: 100%;
  height: 80px;
  border-radius: 12px;
  background: var(--surface-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 8px;
}

.mo-product-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.mo-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}

.mo-product-meta span:last-child {
  color: #1d4ed8;
  font-weight: 600;
}

.mo-empty-products {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.mo-order-actions {
  display: flex;
  gap: 8px;
}

.mo-btn-send {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  background: #1d4ed8;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.mo-btn-send:disabled {
  opacity: 0.65;
  cursor: wait;
}

.mo-processing-order-preview {
  background: #f3f8ff;
  border: 1px solid #d7e4f4;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

[data-theme="dark"] .mo-processing-order-preview {
  background: var(--surface-strong);
  border-color: var(--stroke);
}

.mo-processing-preview-title {
  font-size: 15px;
  font-weight: 700;
}

.mo-processing-preview-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.mo-processing-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mo-processing-action {
  width: 100%;
  text-align: right;
  border: none;
  border-radius: 14px;
  padding: 12px 14px;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mo-processing-action strong {
  font-size: 15px;
}

.mo-processing-action span {
  font-size: 12px;
  opacity: 0.9;
  line-height: 1.45;
}

.mo-processing-action-green {
  background: #ddf3e9;
  color: #0f5a3e;
}

.mo-processing-action-blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.mo-processing-action-danger {
  background: #ffe8e6;
  color: #b3261e;
}

[data-theme="dark"] .mo-processing-action-green {
  background: rgba(6, 78, 59, 0.35);
  color: #86efac;
}

[data-theme="dark"] .mo-processing-action-blue {
  background: rgba(30, 58, 95, 0.45);
  color: #93c5fd;
}

[data-theme="dark"] .mo-processing-action-danger {
  background: rgba(127, 29, 29, 0.35);
  color: #fca5a5;
}

/* Processing Orders — matches Android ProcessingOrdersScreen */
#screen-processing.active {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 120px);
}

.po-top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--stroke) 70%, transparent);
  border-radius: 16px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.po-count {
  font-size: 16px;
  font-weight: 700;
  color: #1d4ed8;
}

.po-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.po-chip-btn {
  border: 1px solid color-mix(in srgb, #1d4ed8 35%, var(--stroke));
  background: var(--surface-strong);
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.po-chip-btn-accent {
  background: color-mix(in srgb, #1d4ed8 12%, var(--surface));
  color: #1d4ed8;
}

.po-chip-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.po-main-action {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 8px;
  background: #1d4ed8;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.po-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 10px;
  margin-bottom: 6px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #bae6fd;
  flex: 0 0 auto;
}

.po-search-wrap:focus-within {
  border-color: #0f172a;
  background: #7dd3fc;
}

.po-search-icon {
  flex: 0 0 auto;
  color: #1d4ed8;
  display: grid;
  place-items: center;
  line-height: 0;
}

.po-search-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 20px;
  border: none;
  outline: none;
  background: transparent;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
  color: #111111;
  -webkit-appearance: none;
  appearance: none;
}

.po-search-input::placeholder {
  color: #64748b;
  font-size: 14px;
}

.po-search-input::-webkit-search-cancel-button,
.po-search-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.po-search-clear {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #1d4ed8;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.po-search-clear:hover {
  background: rgba(29, 78, 216, 0.08);
}

[data-theme="dark"] .po-search-wrap {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(14, 165, 233, 0.18);
}

[data-theme="dark"] .po-search-wrap:focus-within {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(14, 165, 233, 0.28);
}

[data-theme="dark"] .po-search-input {
  color: var(--ink);
}

[data-theme="dark"] .po-search-input::placeholder {
  color: var(--muted);
}

.po-error {
  margin-bottom: 8px;
  color: #b3261e;
}

.po-orders-panel {
  flex: 1;
  border: 1px solid color-mix(in srgb, #1d4ed8 22%, var(--stroke));
  border-radius: 16px;
  padding: 10px 12px;
  min-height: 240px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow);
}

.po-orders-list {
  gap: 10px;
}

.po-order-card {
  background: var(--surface);
  border: 1.5px solid color-mix(in srgb, #1d4ed8 30%, var(--stroke));
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.po-order-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.po-order-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}

.po-order-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.po-index-chip {
  font-size: 11px;
  font-weight: 700;
  color: #1d4ed8;
  background: color-mix(in srgb, #1d4ed8 12%, var(--surface));
  border-radius: 8px;
  padding: 3px 8px;
}

.po-edit-btn {
  border: none;
  border-radius: 10px;
  padding: 6px 10px;
  background: #dc2626;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.po-status-badge {
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.po-status-preparing {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid color-mix(in srgb, #1d4ed8 26%, transparent);
}

[data-theme="dark"] .po-status-preparing {
  background: rgba(29, 78, 216, 0.25);
  color: #93c5fd;
}

.po-info-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
  line-height: 1.45;
}

.po-copy-btn {
  border: none;
  background: color-mix(in srgb, #1d4ed8 10%, var(--surface));
  color: #1d4ed8;
  border-radius: 8px;
  padding: 2px 8px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.po-amount-date-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.po-amount-chip,
.po-date-chip {
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.po-amount-chip {
  background: linear-gradient(90deg, #ffe8a3, #ffd166);
  border: 1.2px solid color-mix(in srgb, #d97706 70%, transparent);
  color: #7c2d12;
}

.po-date-chip {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--surface-strong) 80%, #e2e8f0),
    color-mix(in srgb, var(--surface-strong) 60%, #e2e8f0)
  );
  color: var(--ink);
}

[data-theme="dark"] .po-amount-chip {
  background: linear-gradient(90deg, #5a3500, #7a4b00);
  color: #fff7d6;
  border-color: color-mix(in srgb, #fcd34d 65%, transparent);
}

.po-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--muted);
}

.po-empty p {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
}

.po-outline-btn {
  border: 1px solid var(--stroke);
  background: var(--surface-strong);
  border-radius: 12px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.po-picker-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
}

.po-picker-item {
  width: 100%;
  text-align: right;
  border: 1px solid #d5e3f4;
  background: #f3f8ff;
  border-radius: 12px;
  padding: 10px 12px;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.po-picker-item strong {
  font-size: 14px;
  color: #254466;
}

.po-picker-item span {
  font-size: 12px;
  color: #5c6f84;
}

[data-theme="dark"] .po-picker-item {
  background: var(--surface-strong);
  border-color: var(--stroke);
}

[data-theme="dark"] .po-picker-item strong,
[data-theme="dark"] .po-picker-item span {
  color: var(--ink);
}
