:root {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #153b6f;
  --brand-navy: #153b6f;
  --brand-blue: #5ca5f1;
  --brand-blue-soft: #afccea;
  --brand-surface: #f1f6fa;
  --surface: #ffffff;
  --surface-muted: #f7fbff;
  --surface-border: rgba(21, 59, 111, 0.14);
  --text-strong: #153b6f;
  --text-muted: #5d738f;
  --action: #5ca5f1;
  --action-strong: #153b6f;
  --shadow-soft: 0 18px 42px rgba(21, 59, 111, 0.12);
}

body[data-theme="dark"] {
  color: #e8f0fb;
  --brand-navy: #5ca5f1;
  --brand-blue: #5ca5f1;
  --brand-blue-soft: #355779;
  --brand-surface: #111b28;
  --surface: #182434;
  --surface-muted: #223246;
  --surface-border: rgba(175, 204, 234, 0.18);
  --text-strong: #eef4fc;
  --text-muted: #9cb3cb;
  --action: #5ca5f1;
  --action-strong: #2e6fb3;
  --shadow-soft: 0 18px 42px rgba(3, 9, 16, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  min-height: 100%;
  margin: 0;
}

body,
button,
input,
textarea,
select {
  font: inherit;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(175, 204, 234, 0.7), transparent 34%),
    linear-gradient(180deg, #f8fbfe 0%, #e8f0f8 100%);
}

body[data-theme="dark"] {
  background:
    radial-gradient(circle at top, rgba(92, 165, 241, 0.18), transparent 30%),
    linear-gradient(180deg, #0b121b 0%, #162230 100%);
}

h1,
h2,
h3,
p {
  margin: 0;
}

.auth-mobile-shell,
.dashboard-mobile-shell {
  width: min(100%, 420px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--brand-surface);
}

.settings-shell {
  width: min(100%, 420px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 0 1.5rem;
  background: var(--brand-surface);
}

.settings-shell-blue {
  background: linear-gradient(180deg, var(--brand-blue-soft) 0%, var(--brand-surface) 100%);
}

.admin-shell {
  width: min(100%, 1380px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 2rem 1.25rem 2.5rem;
}

.admin-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--surface-border);
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at top right, rgba(92, 165, 241, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 246, 250, 0.98) 100%);
  box-shadow: var(--shadow-soft);
}

.admin-title {
  color: var(--text-strong);
  font-size: clamp(2rem, 3vw, 3.35rem);
  line-height: 0.95;
}

.admin-subtitle {
  margin-top: 0.55rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.admin-dashboard-page {
  padding-top: 1.25rem;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.95fr);
  gap: 1rem;
  margin-top: 1rem;
  align-items: start;
}

.admin-panel {
  margin-top: 0;
}

.admin-panel-wide {
  grid-column: 1 / -1;
}

.admin-form {
  width: 100%;
  margin: 0;
}

.admin-form .field input,
.admin-form .field select,
.admin-form .field textarea {
  min-height: 3.25rem;
  border-radius: 0.9rem;
}

.admin-form .field textarea {
  min-height: 7rem;
}

.admin-form-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-form-actions .create-filter-button,
.admin-form-actions .install-banner-dismiss {
  width: auto;
  margin: 0;
}

.admin-field-full {
  grid-column: 1 / -1;
}

.admin-toggle {
  min-height: 3.25rem;
  padding: 0 1rem;
  border: 1px solid var(--surface-border);
  border-radius: 0.9rem;
  background: var(--surface-muted);
}

.admin-product-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.admin-product-card {
  height: 100%;
}

.admin-card-title {
  word-break: break-word;
}

.admin-meta-grid {
  display: grid;
  gap: 0.2rem;
}

.admin-users-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-user-search {
  width: min(100%, 32rem);
  margin-bottom: 0;
}

.admin-table-wrap {
  overflow: auto;
  border: 1px solid var(--surface-border);
  border-radius: 1rem;
  background: var(--surface);
}

.admin-user-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-user-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0.95rem 1rem;
  background: linear-gradient(180deg, rgba(92, 165, 241, 0.16) 0%, rgba(241, 246, 250, 0.96) 100%);
  color: var(--text-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.admin-user-table tbody td {
  padding: 1rem;
  border-top: 1px solid rgba(21, 59, 111, 0.08);
  color: var(--text-strong);
  vertical-align: top;
}

.admin-user-table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.96);
}

.admin-user-table tbody tr:nth-child(even) {
  background: rgba(241, 246, 250, 0.96);
}

.admin-user-table tbody tr:hover {
  background: rgba(175, 204, 234, 0.22);
}

.admin-user-primary {
  display: grid;
  gap: 0.25rem;
}

.admin-user-primary strong {
  font-size: 1rem;
}

.admin-user-primary span {
  color: var(--text-muted);
  font-size: 0.8rem;
  word-break: break-word;
}

.admin-products-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.05fr);
  gap: 1rem;
  align-items: start;
}

.admin-products-layout-single {
  grid-template-columns: 1fr;
}

.admin-product-form {
  position: sticky;
  top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 0.85rem;
}

.admin-product-list-wrap {
  min-width: 0;
}

.admin-product-card {
  overflow: hidden;
}

.admin-product-card .saved-filter-actions.admin-product-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: stretch;
  margin-top: 0.85rem;
}

.admin-product-card .saved-filter-primary.admin-product-primary,
.admin-product-card .saved-filter-secondary.admin-delete-button {
  min-width: 0;
  min-height: 2.85rem;
  padding: 0 1rem;
  border-radius: 0.9rem;
  font-size: 0.95rem;
  line-height: 1.1;
  white-space: nowrap;
}

.admin-product-card .saved-filter-primary.admin-product-primary {
  width: 100%;
  font-weight: 700;
}

.admin-product-card .saved-filter-secondary.admin-delete-button {
  width: auto;
  min-width: 6.8rem;
  padding-inline: 1rem;
  font-weight: 700;
}

.admin-products-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.admin-table-action {
  min-height: 2.4rem;
  padding: 0 0.85rem;
  font-size: 0.85rem;
  border-radius: 999px;
}

.admin-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(8, 17, 28, 0.42);
  backdrop-filter: blur(6px);
}

.admin-modal-card {
  width: min(100%, 1080px);
  max-height: min(90vh, 980px);
  overflow: auto;
  border: 1px solid var(--surface-border);
  border-radius: 1.35rem;
  background: var(--surface);
  box-shadow: 0 28px 60px rgba(9, 20, 36, 0.28);
}

.admin-modal-card-narrow {
  width: min(100%, 720px);
}

.admin-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 0;
}

.admin-modal-close {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text-strong);
  font-size: 1.35rem;
  cursor: pointer;
}

.admin-modal-body {
  padding: 1rem 1.25rem 1.25rem;
}

.admin-product-form-modal {
  position: static;
}

.admin-section-heading {
  margin-bottom: 0.9rem;
}

.admin-user-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.admin-user-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 1rem;
}

.admin-user-editor,
.admin-user-actions-panel {
  padding: 1rem;
  border: 1px solid var(--surface-border);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 246, 250, 0.96) 100%);
}

.admin-user-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 0.85rem;
}

.admin-user-stats-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.2rem 0 0.8rem;
}

.admin-inline-stat {
  display: grid;
  gap: 0.15rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--surface-border);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.94);
  text-align: center;
}

.admin-inline-stat strong {
  color: var(--text-strong);
  font-size: 1.35rem;
  line-height: 1;
}

.admin-inline-stat span {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-user-helper {
  margin-top: 0.9rem;
}

.admin-product-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 11rem;
  margin-bottom: 0.9rem;
  border: 1px solid var(--surface-border);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(241, 246, 250, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.admin-product-image {
  display: block;
  width: 100%;
  max-height: 9.5rem;
  object-fit: contain;
}

.admin-product-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 1.2rem;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-navy) 100%);
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
}

.admin-product-card {
  display: grid;
  gap: 0;
}

.install-banner-button,
.install-banner-dismiss,
.saved-filter-primary,
.saved-filter-secondary,
.create-filter-button {
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

.install-banner-button:hover,
.saved-filter-primary:hover,
.create-filter-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(21, 59, 111, 0.22);
}

.install-banner-dismiss:hover,
.saved-filter-secondary:hover {
  border-color: rgba(21, 59, 111, 0.28);
  background: rgba(241, 246, 250, 0.95);
}

.admin-login-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

.admin-login-card {
  width: min(100%, 680px);
  padding: 2.4rem;
  border: 1px solid var(--surface-border);
  border-radius: 1.6rem;
  background:
    radial-gradient(circle at top right, rgba(92, 165, 241, 0.2), transparent 36%),
    rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-soft);
}

.admin-login-title {
  color: var(--text-strong);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.95;
}

.admin-login-button {
  margin-left: 0;
}

.install-banner {
  position: fixed;
  right: max(0.9rem, calc((100vw - 420px) / 2 + 0.9rem));
  bottom: 0.9rem;
  left: max(0.9rem, calc((100vw - 420px) / 2 + 0.9rem));
  z-index: 80;
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid var(--surface-border);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(21, 59, 111, 0.2);
  backdrop-filter: blur(14px);
}

.install-banner-title {
  color: var(--text-strong);
  font-size: 1rem;
  font-weight: 700;
}

.install-banner-eyebrow,
.install-sheet-eyebrow {
  margin: 0 0 0.3rem;
  color: var(--brand-blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.install-banner-text {
  margin-top: 0.2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.install-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.install-banner-button {
  flex: 1 1 auto;
  min-height: 2.9rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-navy) 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.install-banner-dismiss {
  flex: 0 0 auto;
  min-height: 2.9rem;
  padding: 0 0.95rem;
  border: 1px solid var(--surface-border);
  border-radius: 0.9rem;
  background: var(--surface);
  color: var(--text-strong);
  font-weight: 600;
}

.install-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  background: rgba(8, 14, 22, 0.48);
}

.install-sheet {
  position: relative;
  width: min(100%, 420px);
  padding: 1.2rem 1rem 1rem;
  border-radius: 1.4rem 1.4rem 1rem 1rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.install-sheet-close {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text-strong);
  font-size: 1.4rem;
  line-height: 1;
}

.install-sheet-title {
  color: var(--text-strong);
  font-size: 1.2rem;
  font-weight: 700;
}

.install-sheet-copy {
  margin-top: 0.55rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.install-sheet-steps {
  margin: 0.9rem 0 0;
  padding-left: 1.2rem;
  color: var(--text-strong);
  line-height: 1.5;
}

.install-sheet-actions {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.install-sheet-button {
  width: 100%;
}

.install-sheet-dismiss {
  width: 100%;
}

body[data-theme="dark"] .install-banner,
body[data-theme="dark"] .install-sheet {
  background: rgba(24, 36, 52, 0.98);
}

body[data-theme="dark"] .install-sheet-overlay {
  background: rgba(3, 8, 14, 0.7);
}

.login-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.25rem 1.5rem 1rem;
}

.login-logo {
  width: min(100%, 320px);
  object-fit: contain;
}

.login-card {
  width: min(100% - 1.6rem, 352px);
  margin: 0 auto;
  padding: 1rem 1rem 1.5rem;
  border: 1.5px solid var(--surface-border);
  border-radius: 1.8rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.login-card-title {
  color: var(--text-strong);
  font-size: 3rem;
  text-align: center;
  line-height: 1;
  margin-bottom: 1rem;
}

.login-form {
  display: grid;
  gap: 1rem;
}

.login-input {
  min-height: 3.35rem;
  padding: 0 0.9rem;
  border: 1.5px solid var(--surface-border);
  border-radius: 0.8rem;
  background: var(--surface);
  color: var(--text-strong);
}

.login-input::placeholder {
  color: var(--text-muted);
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-strong);
  font-size: 0.9rem;
}

.remember-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.remember-toggle input {
  width: 1.35rem;
  height: 1.35rem;
}

.text-link,
.create-account-link,
.secondary-action,
.icon-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.text-link,
.create-account-link {
  color: var(--brand-navy);
}

.create-account-link {
  display: block;
  margin: 1.2rem auto 0;
  font-size: 0.95rem;
}

.continue-button {
  width: min(100%, 280px);
  min-height: 3.2rem;
  margin: 1rem auto 0;
  border: 0;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-navy) 100%);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.1;
  box-shadow: 0 14px 28px rgba(21, 59, 111, 0.2);
}

.continue-button:disabled,
.submit-button:disabled,
.create-filter-button:disabled,
.install-banner-button:disabled,
.install-banner-dismiss:disabled,
.create-account-link:disabled,
.secondary-action:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.auth-form-panel {
  padding: 1rem 1rem 2rem;
}

.auth-form-panel-mobile {
  min-height: calc(100vh - 2rem);
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--brand-blue);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-header {
  max-width: 34rem;
  margin: 0 auto 1.5rem;
  width: 100%;
}

.auth-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.auth-subtitle {
  margin-top: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.auth-form {
  width: min(100%, 34rem);
  margin: 0 auto;
}

.field,
.field-row {
  display: grid;
  gap: 0.55rem;
}

.field {
  margin-bottom: 1rem;
}

.field-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field span {
  color: var(--text-strong);
  font-size: 0.95rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 4rem;
  padding: 0 1rem;
  border: 1.5px solid var(--surface-border);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-strong);
  outline: none;
}

.field textarea {
  min-height: 8rem;
  padding: 1rem;
  resize: vertical;
}

.filter-option-list {
  display: grid;
  gap: 0.7rem;
}

.filter-option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  width: 100%;
  min-height: 4.6rem;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--surface-border);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-strong);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(21, 59, 111, 0.06);
}

.filter-option-card-active {
  border-color: var(--brand-blue);
  background: rgba(175, 204, 234, 0.22);
  box-shadow: 0 0 0 1px rgba(92, 165, 241, 0.12);
}

.filter-option-name {
  flex: 1;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.filter-option-thumb {
  flex-shrink: 0;
  width: 3.35rem;
  height: 3.35rem;
  object-fit: contain;
  object-position: center right;
}

.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--brand-navy) 50%),
    linear-gradient(135deg, var(--brand-navy) 50%, transparent 50%);
  background-position:
    calc(100% - 1.45rem) calc(50% - 0.15rem),
    calc(100% - 0.95rem) calc(50% - 0.15rem);
  background-size: 0.55rem 0.55rem, 0.55rem 0.55rem;
  background-repeat: no-repeat;
}

.form-error {
  margin: 0 0 1rem;
  color: #c23737;
  font-size: 0.95rem;
}

.form-error-dark {
  margin-bottom: 0;
}

.demo-hint {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.submit-button {
  width: 100%;
  min-height: 4rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--action) 0%, var(--action-strong) 100%);
  color: white;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 20px 40px rgba(21, 59, 111, 0.24);
}

.secondary-action {
  display: block;
  margin: 1rem auto 0;
  color: var(--brand-navy);
}

.dashboard-topbar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  background: var(--brand-navy);
  color: white;
}

body[data-theme="dark"] .dashboard-topbar {
  background: #1a2a3d;
  color: #f7fbff;
}

.settings-header {
  display: grid;
  grid-template-columns: 2.2rem 1fr 2.2rem;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.75rem 0.5rem;
}

.settings-back,
.about-back {
  border: 0;
  background: transparent;
  color: var(--text-strong);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.settings-title {
  font-size: 1.2rem;
  text-align: center;
}

.settings-spacer {
  width: 2.2rem;
}

.icon-button {
  color: inherit;
  font-size: 2rem;
  line-height: 1;
}

.dashboard-brand-block {
  text-align: center;
}

.dashboard-brand {
  font-size: 1.15rem;
  font-weight: 700;
}

.dashboard-brand-meta {
  margin-top: 0.15rem;
  font-size: 0.68rem;
  opacity: 0.9;
}

.dashboard-content {
  padding: 0.9rem;
  color: var(--text-strong);
}

.dashboard-heading {
  margin-bottom: 1rem;
}

.dashboard-title {
  color: var(--text-strong);
  font-size: 3rem;
  line-height: 0.95;
}

.dashboard-subtitle {
  max-width: 19rem;
  margin-top: 0.45rem;
  font-size: 1rem;
  line-height: 1.15;
}

.dashboard-welcome {
  margin-top: 0.6rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.dashboard-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-action-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.7rem;
  border: 1px solid rgba(92, 165, 241, 0.18);
  border-radius: 0.55rem;
  background: linear-gradient(135deg, var(--brand-blue) 0%, #7eb8f4 100%);
  color: #fff;
  box-shadow: 0 10px 18px rgba(92, 165, 241, 0.2);
  cursor: pointer;
}

.browse-shell {
  padding-bottom: 1rem;
}

.browse-page {
  padding: 0 0.85rem 1rem;
}

.browse-frame-card {
  display: grid;
  gap: 0.9rem;
  padding: 0.95rem;
  border: 1.5px solid var(--surface-border);
  border-radius: 1.4rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.browse-frame-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
}

.browse-frame-title {
  color: var(--text-strong);
  font-size: 1.15rem;
  font-weight: 700;
}

.browse-frame-copy {
  margin-top: 0.28rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.browse-open-site {
  flex-shrink: 0;
  min-height: 2.6rem;
  padding: 0 0.95rem;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--brand-navy);
  font-weight: 700;
}

.browse-frame-wrap {
  overflow: hidden;
  min-height: calc(100vh - 13rem);
  border: 1px solid var(--surface-border);
  border-radius: 1rem;
  background: var(--surface-muted);
}

.browse-frame {
  width: 100%;
  height: calc(100vh - 13rem);
  border: 0;
  background: #fff;
}

body[data-theme="dark"] .browse-open-site {
  background: var(--surface-muted);
  color: var(--text-strong);
}

.dashboard-action-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.dashboard-status-list {
  display: grid;
  gap: 0.85rem;
}

.saved-filters-panel {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(34, 50, 58, 0.12);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(14, 31, 52, 0.08);
}

.saved-filters-empty {
  text-align: center;
}

.saved-filters-header {
  margin-bottom: 0.75rem;
}

.saved-filters-title {
  font-size: 1.05rem;
}

.saved-filters-copy {
  margin-top: 0.3rem;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.saved-filters-list {
  display: grid;
  gap: 0.9rem;
}

.saved-filter-card {
  padding: 0.85rem;
  border: 1px solid rgba(21, 59, 111, 0.16);
  border-radius: 1rem;
  background: var(--surface-muted);
  box-shadow: 0 10px 22px rgba(21, 59, 111, 0.08);
}

.saved-filter-top {
  display: grid;
  grid-template-columns: 5.4rem 1fr;
  gap: 0.8rem;
  align-items: start;
}

.saved-filter-thumb {
  width: 5.4rem;
  height: 5.4rem;
  padding: 0.35rem;
  border: 1px solid var(--surface-border);
  border-radius: 0.8rem;
  background: var(--surface);
  object-fit: contain;
}

.saved-filter-main {
  min-width: 0;
}

.saved-filter-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.6rem;
}

.saved-filter-icon-button {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-strong);
  font-size: 1rem;
  cursor: pointer;
}

.saved-filter-name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.15;
}

.saved-filter-dates {
  margin-top: 0.45rem;
  display: grid;
  gap: 0.15rem;
}

.saved-filter-date-line {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.saved-filter-date-line strong {
  color: var(--text-strong);
}

.saved-filter-meta {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.saved-filter-status {
  margin-top: 0.8rem;
  padding: 0.9rem 0.8rem;
  border-radius: 0.85rem;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
}

.saved-filter-status-overdue {
  background: #fde8ea;
  color: #b3263a;
}

.saved-filter-status-due-soon {
  background: #fff3dc;
  color: #9a6b00;
}

.saved-filter-status-good {
  background: #e6f5ea;
  color: #2f7a3e;
}

.saved-filter-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.2rem auto;
  gap: 0.75rem;
  margin-top: 0.9rem;
  align-items: stretch;
}

.saved-filter-primary {
  min-height: 3.25rem;
  border: 0;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--brand-blue) 0%, #4d7fe8 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.saved-filter-secondary {
  min-height: 3.25rem;
  border: 1px solid var(--surface-border);
  border-radius: 0.75rem;
  background: var(--surface);
  color: var(--text-strong);
  font-size: 1.35rem;
  cursor: pointer;
}

.saved-filter-actions .delete-filter-button {
  min-width: 6.75rem;
  padding: 0 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #9f1f1f;
  border-color: rgba(159, 31, 31, 0.22);
  background: rgba(255, 242, 242, 0.96);
}

.status-detail-panel {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--surface-border);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 10px 22px rgba(21, 59, 111, 0.08);
}

.status-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.status-detail-close {
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--brand-navy);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.status-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.status-filter-tile {
  padding: 0.8rem 0.75rem;
  border-radius: 0.95rem;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-muted) 100%);
  box-shadow: inset 0 0 0 1px var(--surface-border);
}

.status-filter-image {
  display: block;
  width: 100%;
  height: 5.5rem;
  object-fit: contain;
}

.status-filter-name {
  margin-top: 0.55rem;
  color: var(--brand-navy);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.status-card {
  padding: 0;
  border: 1px solid var(--surface-border);
  border-radius: 0.6rem;
  box-shadow: 0 8px 16px rgba(21, 59, 111, 0.08);
}

.status-card-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.8rem 1rem;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.status-card-overdue {
  background: #fdebec;
  color: #7b2131;
}

.status-card-due-soon {
  background: #fff4d8;
  color: #7a5600;
}

.status-card-good {
  background: #e1f4e4;
  color: #1f6a31;
}

.status-label {
  font-size: 1.05rem;
}

.status-count {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
}

.status-count-overdue {
  background: #ff4c49;
}

.status-count-due-soon {
  background: #d7c524;
}

.status-count-good {
  background: #57e447;
}

.settings-list {
  margin-top: 3rem;
}

.settings-item {
  display: flex;
  width: calc(100% - 2rem);
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 0.3rem;
  border: 0;
  border-bottom: 1px solid var(--surface-border);
  background: transparent;
  color: var(--text-strong);
  cursor: pointer;
}

.settings-item-left {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.98rem;
}

.settings-item-icon {
  display: inline-flex;
  width: 2rem;
  justify-content: center;
  font-size: 1.45rem;
}

.settings-item-arrow {
  font-size: 2rem;
  line-height: 1;
}

.profile-card {
  width: calc(100% - 1rem);
  margin: 2.5rem auto 0;
  padding: 2.2rem 1rem 1.25rem;
  border-radius: 1.8rem 1.8rem 0 0;
  background: rgba(255, 255, 255, 0.96);
}

.compact-field {
  margin-bottom: 0.8rem;
}

.compact-field input,
.compact-field select {
  min-height: 2.1rem;
  border-radius: 0.55rem;
  padding: 0 0.5rem;
}

.compact-field span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.profile-password-button {
  margin-top: 1rem;
  min-height: 2.1rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

.notifications-page {
  padding: 2rem 1rem 1rem;
}

.notification-permission-card {
  margin-bottom: 1.2rem;
  padding: 1rem;
  border: 1px solid var(--surface-border);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 10px 22px rgba(21, 59, 111, 0.08);
}

.notification-permission-eyebrow {
  margin: 0 0 0.35rem;
  color: var(--brand-blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notification-permission-title {
  color: var(--text-strong);
  font-size: 1.05rem;
}

.notification-permission-text {
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.notification-permission-error {
  margin-top: 0.7rem;
  margin-bottom: 0;
}

.notification-permission-actions {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.95rem;
}

.notification-permission-button,
.notification-permission-secondary {
  width: 100%;
}

.notification-section {
  margin-top: 2rem;
}

.notification-heading {
  margin: 0 0 0.55rem 0.5rem;
  font-size: 1rem;
  font-weight: 400;
}

.notification-block {
  padding: 0.25rem 0.5rem;
  border-radius: 0.2rem;
  background: rgba(175, 204, 234, 0.34);
}

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

.stacked-block {
  padding-top: 0;
  padding-bottom: 0;
}

.notification-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.25rem;
}

.notification-label.strong {
  font-size: 0.88rem;
  font-weight: 700;
}

.notification-divider {
  height: 1px;
  background: rgba(17, 17, 17, 0.25);
}

.toggle {
  position: relative;
  width: 3.35rem;
  height: 1.7rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #8f8f8f;
  cursor: pointer;
}

.toggle-on {
  background: var(--brand-blue);
}

.toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  background: #f7f7f7;
  transition: transform 160ms ease;
}

.toggle-on .toggle-knob {
  transform: translateX(1.65rem);
}

.support-page {
  padding: 1.75rem 1rem 1rem;
  text-align: center;
}

.support-icon {
  font-size: 6.5rem;
  line-height: 1;
  color: var(--brand-blue);
}

.support-title {
  margin-top: 1rem;
  font-size: 1.8rem;
  font-weight: 500;
}

.support-copy {
  margin: 0.75rem auto 0;
  max-width: 28rem;
  color: var(--muted-text);
  line-height: 1.5;
}

.support-actions {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.support-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 5.2rem;
  border: 0;
  border-radius: 0.45rem;
  background: var(--surface);
  box-shadow: 0 10px 22px rgba(21, 59, 111, 0.1);
  font-size: 1.15rem;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
  padding: 1rem;
}

.support-card-button {
  width: 100%;
  cursor: pointer;
}

.support-card-label {
  display: block;
}

.support-card-detail {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted-text);
}

.faq-page {
  padding: 1.5rem 1rem 2rem;
}

.faq-intro {
  margin: 0 auto 1.25rem;
  max-width: 34rem;
  color: var(--muted-text);
  line-height: 1.5;
}

.faq-section + .faq-section {
  margin-top: 1.75rem;
}

.faq-section-title {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-blue);
}

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-card {
  background: var(--surface);
  border-radius: 0.8rem;
  padding: 1rem;
  box-shadow: 0 10px 22px rgba(21, 59, 111, 0.1);
}

.faq-question {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.faq-answer {
  margin-top: 0.55rem;
  color: var(--muted-text);
  line-height: 1.55;
}

.faq-answer p {
  margin: 0;
}

.faq-answer p + p {
  margin-top: 0.55rem;
}

.about-shell {
  position: relative;
  background:
    linear-gradient(135deg, var(--brand-navy) 0 12%, transparent 12%) top right / 100% 8rem no-repeat,
    linear-gradient(180deg, var(--brand-blue) 0%, var(--brand-navy) 100%);
}

.about-back {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  color: var(--text-strong);
}

.about-card {
  width: calc(100% - 2rem);
  margin: 2rem auto 0;
  padding: 2rem 1.4rem;
  background: rgba(255, 255, 255, 0.96);
}

.about-title {
  font-size: 2rem;
  text-align: center;
}

.about-copy {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  line-height: 1.28;
  text-align: center;
}

.placeholder-page {
  padding: 2rem 1rem;
}

.placeholder-card {
  padding: 1.2rem;
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(21, 59, 111, 0.08);
}

.placeholder-title {
  font-size: 1.5rem;
}

.theme-picker {
  display: grid;
  gap: 0.9rem;
}

.theme-option {
  display: grid;
  gap: 0.35rem;
  width: 100%;
  padding: 1rem 1rem 1.05rem;
  border: 1px solid var(--surface-border);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, var(--surface-muted) 100%);
  color: var(--brand-navy);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(21, 59, 111, 0.08);
}

.theme-option-active {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 1px rgba(92, 165, 241, 0.18), 0 10px 20px rgba(21, 59, 111, 0.1);
}

.theme-option-title {
  font-size: 1rem;
  font-weight: 700;
}

.theme-option-copy {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.filter-info-card {
  width: calc(100% - 1rem);
  margin: 1rem auto;
  padding: 0.8rem 0.85rem 1rem;
  border: 1.5px solid rgba(21, 59, 111, 0.18);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.filter-method-card {
  padding-bottom: 1.2rem;
}

.filter-method-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.filter-method-option {
  display: grid;
  gap: 0.35rem;
  width: 100%;
  padding: 1rem 1rem 1.05rem;
  border: 1px solid var(--surface-border);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, var(--surface-muted) 100%);
  color: var(--brand-navy);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(21, 59, 111, 0.08);
}

.filter-method-title {
  font-size: 1rem;
  font-weight: 700;
}

.filter-method-copy {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.filter-info-topbar {
  display: grid;
  grid-template-columns: 2rem 1fr 2rem;
  align-items: center;
}

.filter-help {
  width: 1.85rem;
  height: 1.85rem;
  border: 1.5px solid rgba(21, 59, 111, 0.22);
  border-radius: 999px;
  background: var(--surface-muted);
  font-weight: 700;
}

.filter-product-visual {
  display: flex;
  justify-content: center;
  margin-top: 0.65rem;
}

.filter-heading {
  margin-top: 0.2rem;
  padding: 0 0.2rem;
}

.filter-heading .dashboard-title {
  font-size: 2.55rem;
}

.filter-heading .dashboard-subtitle {
  max-width: 18rem;
}

.info-guide-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 3.2rem;
  background: rgba(0, 0, 0, 0.12);
  z-index: 30;
}

.info-guide-modal {
  position: relative;
  width: min(calc(100% - 3rem), 16rem);
  padding: 1rem 1.1rem 1rem;
  border: 1.5px solid var(--surface-border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.info-guide-close {
  position: absolute;
  top: 0.4rem;
  right: 0.55rem;
  border: 0;
  background: transparent;
  font-size: 1.3rem;
  cursor: pointer;
}

.info-guide-title {
  font-size: 1.1rem;
  text-align: center;
}

.info-guide-list {
  margin: 0.9rem 0 0;
  padding-left: 1rem;
  font-size: 0.82rem;
  line-height: 1.25;
}

.info-guide-list li + li {
  margin-top: 0.9rem;
}

.filter-product-frame {
  width: min(100%, 15rem);
  padding: 0.9rem 0.9rem 0.8rem;
  border: 1px solid var(--surface-border);
  border-radius: 1rem;
  background: linear-gradient(180deg, var(--surface) 0%, var(--brand-surface) 100%);
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(21, 59, 111, 0.08);
}

.filter-product-image {
  display: block;
  width: 100%;
  height: 9.5rem;
  object-fit: contain;
}

.filter-product-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 9.5rem;
  border-radius: 0.85rem;
  background: linear-gradient(180deg, rgba(175, 204, 234, 0.18) 0%, rgba(241, 246, 250, 0.88) 100%);
}

.filter-product-empty-copy {
  max-width: 11rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.filter-product-title {
  padding-top: 0.8rem;
  text-align: center;
  color: var(--brand-navy);
  font-size: 0.98rem;
  font-weight: 700;
}

.qr-picked-filter,
.qr-defaults-panel {
  margin-bottom: 1rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--surface-border);
  border-radius: 0.95rem;
  background: var(--surface-muted);
}

.qr-picked-title {
  color: var(--brand-navy);
  font-size: 0.88rem;
  font-weight: 700;
}

.qr-picked-copy {
  margin-top: 0.28rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.selected-filter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.selected-filter-label {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wrong-filter-button {
  min-height: 2.25rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--brand-navy);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.shower-user-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.shower-user-button {
  min-height: 2.9rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--surface-border);
  border-radius: 0.95rem;
  background: var(--surface-muted);
  color: var(--brand-navy);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.shower-user-button:active {
  transform: translateY(1px);
}

.shower-user-button-active {
  border-color: rgba(92, 165, 241, 0.58);
  background: linear-gradient(180deg, rgba(92, 165, 241, 0.16) 0%, rgba(175, 204, 234, 0.34) 100%);
  box-shadow: 0 10px 20px rgba(21, 59, 111, 0.12);
}

.add-filter-form {
  margin-top: 0.7rem;
}

.filter-entry-actions {
  margin-bottom: 1rem;
}

.qr-scan-button {
  width: 100%;
  min-height: 3.1rem;
  border: 1px solid rgba(92, 165, 241, 0.24);
  border-radius: 0.95rem;
  background: linear-gradient(135deg, rgba(92, 165, 241, 0.12) 0%, rgba(175, 204, 234, 0.3) 100%);
  color: var(--brand-navy);
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
}

.qr-scan-copy {
  margin-top: 0.45rem;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.qr-scanner-modal {
  width: min(calc(100% - 2rem), 20rem);
  border-radius: 1rem;
}

.qr-scanner-copy {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.qr-scanner-video {
  display: block;
  width: 100%;
  min-height: 14rem;
  margin-top: 0.9rem;
  border-radius: 0.9rem;
  background: #0f1720;
  object-fit: cover;
}

body[data-theme="dark"] .support-card,
body[data-theme="dark"] .placeholder-card,
body[data-theme="dark"] .about-card,
body[data-theme="dark"] .profile-card,
body[data-theme="dark"] .info-guide-modal,
body[data-theme="dark"] .qr-scanner-modal,
body[data-theme="dark"] .filter-info-card,
body[data-theme="dark"] .admin-header,
body[data-theme="dark"] .admin-login-card,
body[data-theme="dark"] .login-card {
  color: var(--text-strong);
}

body[data-theme="dark"] .filter-info-card,
body[data-theme="dark"] .filter-method-option,
body[data-theme="dark"] .filter-option-card,
body[data-theme="dark"] .filter-product-frame,
body[data-theme="dark"] .qr-picked-filter,
body[data-theme="dark"] .qr-defaults-panel,
body[data-theme="dark"] .unknown-install-group,
body[data-theme="dark"] .selected-filter-summary,
body[data-theme="dark"] .wrong-filter-button,
body[data-theme="dark"] .shower-user-button,
body[data-theme="dark"] .theme-option {
  background: var(--surface);
  color: var(--text-strong);
}

body[data-theme="dark"] .admin-header,
body[data-theme="dark"] .admin-login-card {
  background:
    radial-gradient(circle at top right, rgba(92, 165, 241, 0.16), transparent 34%),
    rgba(24, 36, 52, 0.98);
}

body[data-theme="dark"] .admin-table-wrap {
  background: var(--surface);
}

body[data-theme="dark"] .admin-modal-card {
  background: rgba(24, 36, 52, 0.99);
}

body[data-theme="dark"] .admin-user-editor,
body[data-theme="dark"] .admin-user-actions-panel,
body[data-theme="dark"] .admin-inline-stat,
body[data-theme="dark"] .admin-product-visual {
  background: rgba(24, 36, 52, 0.96);
}

body[data-theme="dark"] .admin-user-table thead th {
  background: linear-gradient(180deg, rgba(92, 165, 241, 0.2) 0%, rgba(24, 36, 52, 0.98) 100%);
}

body[data-theme="dark"] .admin-user-table tbody tr:nth-child(odd) {
  background: rgba(24, 36, 52, 0.96);
}

body[data-theme="dark"] .admin-user-table tbody tr:nth-child(even) {
  background: rgba(34, 50, 70, 0.96);
}

body[data-theme="dark"] .admin-user-table tbody tr:hover {
  background: rgba(92, 165, 241, 0.16);
}

body[data-theme="dark"] .filter-method-option,
body[data-theme="dark"] .theme-option {
  background: linear-gradient(180deg, #1c2938 0%, #223246 100%);
}

body[data-theme="dark"] .filter-option-card {
  background: #1c2938;
}

body[data-theme="dark"] .field input,
body[data-theme="dark"] .field select,
body[data-theme="dark"] .field textarea,
body[data-theme="dark"] .login-input,
body[data-theme="dark"] .saved-filter-thumb,
body[data-theme="dark"] .saved-filter-icon-button,
body[data-theme="dark"] .saved-filter-secondary {
  background: #223246;
  color: var(--text-strong);
}

body[data-theme="dark"] .filter-product-empty {
  background: linear-gradient(180deg, rgba(92, 165, 241, 0.12) 0%, rgba(34, 50, 70, 0.92) 100%);
}

body[data-theme="dark"] .qr-scan-button {
  background: linear-gradient(135deg, rgba(92, 165, 241, 0.2) 0%, rgba(34, 50, 70, 0.88) 100%);
}

body[data-theme="dark"] .filter-heading .dashboard-title,
body[data-theme="dark"] .filter-heading .dashboard-subtitle,
body[data-theme="dark"] .filter-method-title,
body[data-theme="dark"] .filter-method-copy,
body[data-theme="dark"] .filter-option-name,
body[data-theme="dark"] .selected-filter-label,
body[data-theme="dark"] .wrong-filter-button,
body[data-theme="dark"] .shower-user-button,
body[data-theme="dark"] .qr-picked-title,
body[data-theme="dark"] .qr-picked-copy,
body[data-theme="dark"] .field span {
  color: var(--text-strong);
}

body[data-theme="dark"] .filter-method-copy,
body[data-theme="dark"] .qr-picked-copy,
body[data-theme="dark"] .selected-filter-label {
  color: var(--text-muted);
}

body[data-theme="dark"] .unknown-install-toggle {
  color: var(--text-strong);
}

body[data-theme="dark"] .shower-user-button-active {
  border-color: rgba(92, 165, 241, 0.58);
  background: linear-gradient(180deg, rgba(92, 165, 241, 0.2) 0%, rgba(34, 50, 70, 0.9) 100%);
}

body[data-theme="dark"] .dashboard-brand-meta {
  color: rgba(247, 251, 255, 0.78);
}

body[data-theme="dark"] .support-title,
body[data-theme="dark"] .about-title,
body[data-theme="dark"] .about-copy,
body[data-theme="dark"] .notification-label.strong,
body[data-theme="dark"] .notification-heading,
body[data-theme="dark"] .catalog-item-name,
body[data-theme="dark"] .catalog-item-meta {
  color: var(--text-strong);
}

.qr-file-input {
  width: 100%;
  margin-top: 0.8rem;
}

.qr-scanner-actions {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.qr-scanner-secondary {
  min-height: 2.9rem;
  border: 1px solid var(--surface-border);
  border-radius: 0.85rem;
  background: var(--surface-muted);
  color: var(--brand-navy);
  font-weight: 700;
  cursor: pointer;
}

.qr-scan-status {
  margin-top: 0.75rem;
  color: var(--brand-navy);
  font-size: 0.8rem;
  font-weight: 700;
}

.qr-scan-error {
  margin-top: 0.6rem;
}

.flow-compare-panel {
  margin-top: 0.9rem;
  padding: 0.9rem;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 0.85rem;
  background: #ffffff;
}

.flow-compare-eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a6f80;
}

.flow-compare-title {
  margin: 0.2rem 0 0;
  font-size: 1rem;
}

.flow-compare-text {
  margin: 0.3rem 0 0;
  color: #4d5963;
  font-size: 0.84rem;
  line-height: 1.35;
}

.flow-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.flow-toggle-button {
  min-height: 2.75rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(17, 17, 17, 0.16);
  border-radius: 0.75rem;
  background: #f1f4f6;
  color: #29404f;
  font-weight: 700;
}

.flow-toggle-button-active {
  border-color: var(--brand-blue);
  background: rgba(175, 204, 234, 0.34);
  color: var(--brand-navy);
}

.room-first-panel {
  margin-bottom: 1rem;
  padding: 0.85rem;
  border: 1px solid rgba(47, 114, 197, 0.22);
  border-radius: 0.85rem;
  background: linear-gradient(180deg, rgba(220, 236, 255, 0.75) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.room-first-header {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.room-first-eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-blue);
}

.room-first-title {
  margin: 0.18rem 0 0;
  font-size: 1rem;
}

.room-first-preview {
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.92);
}

.room-first-preview-label {
  display: block;
  margin-bottom: 0.2rem;
  color: #5b6872;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.room-tag-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.room-tag-card {
  display: grid;
  gap: 0.2rem;
  min-height: 4.8rem;
  padding: 0.75rem;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.88);
  text-align: left;
}

.room-tag-card-active {
  border-color: var(--brand-blue);
  background: rgba(175, 204, 234, 0.22);
  box-shadow: 0 0 0 1px rgba(92, 165, 241, 0.12);
}

.room-tag-name {
  font-size: 0.94rem;
  font-weight: 700;
  color: #14395d;
}

.room-tag-hint {
  color: #5b6872;
  font-size: 0.76rem;
  line-height: 1.3;
}

.unknown-install-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #173653;
}

.unknown-install-toggle input {
  width: 1.1rem;
  height: 1.1rem;
}

.unknown-install-group {
  margin: 0 0 1rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--surface-border);
  border-radius: 0.85rem;
  background: var(--surface);
}

.unknown-install-legend {
  padding: 0;
  color: var(--brand-navy);
  font-size: 0.86rem;
  font-weight: 700;
}

.unknown-install-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(92, 165, 241, 0.16);
  border-radius: 0.85rem;
  background: var(--surface-muted);
  color: var(--text-strong);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.unknown-install-option input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  flex-shrink: 0;
}

.unknown-install-option:has(input:checked) {
  border-color: var(--brand-blue);
  background: rgba(175, 204, 234, 0.3);
  box-shadow: 0 0 0 1px rgba(92, 165, 241, 0.12);
}

.unknown-install-option span {
  flex: 1;
}

.unknown-install-option:active {
  background: rgba(175, 204, 234, 0.42);
}

.filter-setup-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.filter-lifecycle {
  margin-top: 0.8rem;
}

.filter-lifecycle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.filter-lifecycle-label,
.filter-lifecycle-value {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.filter-lifecycle-track {
  position: relative;
  height: 0.8rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #7ecf8a 0 64%, #f0d464 64% 88%, #e97777 88% 100%);
  box-shadow: inset 0 0 0 1px rgba(21, 59, 111, 0.08);
}

.filter-lifecycle-track::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
}

.filter-lifecycle-marker {
  position: absolute;
  top: 50%;
  width: 1rem;
  height: 1rem;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--brand-navy);
  box-shadow: 0 4px 10px rgba(21, 59, 111, 0.24);
  transform: translate(-50%, -50%);
}

.filter-lifecycle-track-due-soon .filter-lifecycle-marker {
  background: #b78608;
}

.filter-lifecycle-track-overdue .filter-lifecycle-marker {
  background: #b64545;
}

.replace-by-summary-field {
  margin-top: 0.9rem;
}

.replace-by-summary-input {
  min-height: 3.2rem;
  border-color: rgba(21, 59, 111, 0.08) !important;
  background: rgba(241, 246, 250, 0.9) !important;
  color: rgba(21, 59, 111, 0.58) !important;
  font-size: 0.94rem;
  pointer-events: none;
}

.replace-by-summary-input::-webkit-calendar-picker-indicator {
  opacity: 0.28;
}

.create-filter-button {
  display: block;
  width: min(100%, 11rem);
  min-height: 3.6rem;
  margin: 0.9rem auto 0;
  border: 0;
  border-radius: 0.6rem;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-navy) 100%);
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
}

.catalog-panel {
  display: none;
  margin-top: 1.2rem;
  border-top: 1px solid rgba(17, 17, 17, 0.15);
  padding-top: 1rem;
}

.catalog-title {
  font-size: 1rem;
  margin-bottom: 0.65rem;
}

.catalog-list {
  display: grid;
  gap: 0.55rem;
}

.catalog-item {
  padding: 0.7rem 0.8rem;
  border-radius: 0.65rem;
  background: #ececeb;
}

.catalog-item-name {
  font-size: 0.9rem;
  font-weight: 700;
}

.catalog-item-meta {
  margin-top: 0.2rem;
  color: #5b5b5b;
  font-size: 0.8rem;
}

@media (max-width: 800px) {
  .admin-shell {
    padding: 1rem 0.85rem 1.5rem;
  }

  .admin-header {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-header-actions {
    width: 100%;
    flex-direction: column;
  }

  .admin-header-actions .install-banner-button,
  .admin-header-actions .install-banner-dismiss {
    width: 100%;
  }

  .admin-stats-grid,
  .admin-grid,
  .admin-products-layout,
  .admin-product-form {
    grid-template-columns: 1fr;
  }

  .admin-product-form {
    position: static;
  }

  .admin-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-form-actions .create-filter-button,
  .admin-form-actions .install-banner-dismiss {
    width: 100%;
  }

  .admin-login-shell {
    padding: 1rem;
  }

  .admin-login-card {
    padding: 1.5rem;
  }

  .admin-users-toolbar {
    display: block;
  }

  .admin-user-search {
    width: 100%;
  }

  .admin-user-detail-grid {
    grid-template-columns: 1fr;
  }

  .admin-user-modal-layout,
  .admin-user-form,
  .admin-user-stats-strip {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .date-row {
    grid-template-columns: 1fr;
  }

  .auth-title {
    font-size: 2.25rem;
  }
}

@media (max-width: 420px) {
  .admin-stats-grid,
  .admin-user-grid,
  .admin-product-grid {
    grid-template-columns: 1fr;
  }

  .install-banner-actions {
    flex-direction: column;
  }

  .install-banner-button,
  .install-banner-dismiss {
    width: 100%;
  }

  .flow-toggle,
  .room-tag-grid {
    grid-template-columns: 1fr;
  }
}
