:root {
  --ink: #111a2e;
  --muted: #64748b;
  --line: #d7e2ee;
  --paper: #eff4f9;
  --white: #ffffff;
  --lime: #67ecd0;
  --green: #078b93;
  --red: #c34c64;
  --soft-red: #fff0f2;
  --font-body: "DM Sans", sans-serif;
  --font-display: "Manrope", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  color: #17243b;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at 82% 4%, #75d9e21c, transparent 33rem),
    linear-gradient(#92a9c014 1px, transparent 1px),
    linear-gradient(90deg, #92a9c014 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
}

.dashboard-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-stat-grid.has-storage-stats {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.invoice-recommendation {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
  padding: 18px 20px;
  border: 1px solid #cce9e3;
  border-radius: 14px;
  background: linear-gradient(115deg, #f8fffc, #eaf8f6);
  box-shadow: 0 8px 24px #2c6e6910;
}

.invoice-recommendation-mark {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  place-items: center;
  border-radius: 13px;
  color: #eafffa;
  background: linear-gradient(145deg, #123f53, #087f8c);
  font: 800 14px var(--font-display);
  letter-spacing: -.5px;
}

.invoice-recommendation-copy {
  min-width: 0;
  flex: 1;
}

.invoice-recommendation-copy .eyebrow {
  font-size: 8px;
}

.invoice-recommendation-copy h2 {
  margin: 3px 0;
  color: #18394a;
  font: 800 15px var(--font-display);
}

.invoice-recommendation-copy p {
  margin: 0;
  color: #5d7881;
  font-size: 10px;
}

.invoice-recommendation > .button {
  flex: none;
  font-size: 10px;
}

@media (max-width: 980px) {
  .dashboard-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-stat-grid.has-storage-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .dashboard-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-stat-grid.has-storage-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .invoice-recommendation {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 11px;
    padding: 15px;
  }

  .invoice-recommendation-copy {
    flex-basis: calc(100% - 55px);
  }

  .invoice-recommendation > .button {
    width: 100%;
  }
}

::selection {
  color: #071523;
  background: #67ecd0;
}

.button {
  border-radius: 11px;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s, background .22s, border-color .22s;
}

.button-dark {
  color: #071923;
  background: linear-gradient(135deg, #8af3d9, #50cfcc);
  box-shadow: 0 7px 18px #168d8a26, inset 0 1px #ffffffa6;
}

.admin-plan-controls {
  flex-wrap: wrap;
  min-width: 220px;
}

.admin-date-input {
  width: 142px;
  max-width: none;
  padding-inline: 5px;
}

.subscription-dates {
  min-width: 150px;
}

.subscription-dates small,
.subscription-dates small b {
  display: block;
}

.subscription-dates small {
  margin-top: 4px;
  color: #7d8b91;
  font-size: 9px;
}

.subscription-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
}

.button-dark:hover {
  color: #071923;
  background: linear-gradient(135deg, #a4ffe9, #62e4de);
  box-shadow: 0 12px 25px #168d8a36;
  transform: translateY(-2px);
}

.button-light {
  color: #24334d;
  background: #f7fbff;
  border-color: #cfdeec;
  box-shadow: 0 3px 9px #2949670a;
}

.button-light:hover {
  border-color: #75cdd0;
  background: #ffffff;
  box-shadow: 0 8px 18px #29496714;
}

.admin-role-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.access-denied-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.access-denied-card {
  width: min(460px, 100%);
  padding: 34px;
  border: 1px solid #ffffffb8;
  border-radius: 16px;
  background: #f9fcffed;
  box-shadow: 0 18px 55px #24425c14;
}

.access-denied-card .brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 34px;
  font-size: 15px;
  font-weight: 700;
}

.access-denied-card h1 {
  margin: 8px 0;
  font: 800 30px var(--font-display);
}

.access-denied-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.access-countdown {
  margin: 22px 0;
}

.access-denied-card .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
}

.button-lime {
  color: #071923;
  background: linear-gradient(135deg, #96f2dc, #58d7d0);
}

.brand {
  color: #14213a;
}

.brand-mark {
  color: #082331;
  background: linear-gradient(145deg, #8cf5db, #43c4d2);
  box-shadow: 0 5px 16px #36bbbf3d;
}

.eyebrow {
  color: #087f8c;
}

.site-header {
  position: relative;
  z-index: 3;
  height: 74px;
  margin-top: 12px;
  padding: 0 25px;
  border: 1px solid #ffffffb8;
  border-radius: 17px;
  background: #f9fcffdb;
  box-shadow: 0 9px 30px #24425c0b, inset 0 1px #fff;
  backdrop-filter: blur(18px);
}

.theme-toggle {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border: 1px solid #cfe0eb;
  border-radius: 11px;
  color: #087f8c;
  background: linear-gradient(145deg, #fff, #eaf5fa);
  box-shadow: 0 3px 10px #173a5b12;
  font-size: 17px;
  line-height: 1;
  transition: transform .2s, box-shadow .2s, border-color .2s, background .2s;
}

.theme-toggle:hover {
  transform: translateY(-2px) rotate(8deg);
  border-color: #75cdd0;
  box-shadow: 0 8px 18px #173a5b1c;
}

.theme-toggle-floating {
  position: fixed;
  z-index: 20;
  top: 20px;
  right: 24px;
}

.topbar-context,
.topbar-title {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.topbar-kicker,
.topbar-title > span {
  color: #078b93;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.15px;
}

.topbar-context .breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
}

.topbar-context .breadcrumb > span {
  margin: 0;
}

.topbar-title > b {
  color: #22334c;
  font: 700 12px var(--font-display);
}

.topbar-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #3a7884;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .75px;
  white-space: nowrap;
}

.topbar-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #19b897;
  box-shadow: 0 0 0 4px #19b8971a;
  animation: signal-pulse 2.4s ease-in-out infinite;
}

.topbar-right {
  gap: 13px;
}

.app-topbar .topbar-right,
.admin-topbar .topbar-right {
  flex-shrink: 0;
}

.admin-topbar {
  justify-content: flex-start;
  gap: 16px;
}

.admin-topbar .topbar-right {
  margin-left: auto;
}

.admin-secure-label {
  padding: 6px 9px;
  border: 1px solid #65cdb333;
  border-radius: 20px;
  background: #e4faf4;
  white-space: nowrap;
}

.signup-plan-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 4px 0 15px;
}

.signup-plan-fields[hidden] {
  display: none;
}

.signup-plan-fields .field-label {
  display: block;
}

.signup-plan-fields .text-input {
  width: 100%;
}

.signup-plan-note {
  grid-column: 1 / -1;
  margin: -4px 0 0;
  color: #71839a;
  font-size: 10px;
  line-height: 1.5;
}

.admin-search {
  width: min(280px, 42%);
}

.admin-search .text-input {
  width: 100%;
  min-height: 38px;
}

.admin-stat-grid-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 720px;
}

.admin-report-finance {
  margin: 14px 0;
}

.admin-scope-label {
  color: #078b93 !important;
  font-size: 22px !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.site-nav a,
.text-link {
  color: #50627b;
  transition: color .2s, transform .2s;
}

.site-nav a:hover,
.text-link:hover {
  color: #078b93;
  transform: translateY(-1px);
}

.hero {
  position: relative;
  isolation: isolate;
}

.hero-copy {
  animation: theme-enter .75s both;
}

.hero h1 {
  color: #111a2e;
  text-wrap: balance;
}

.hero h1 span,
.auth-story h1 span {
  color: #078b93;
}

.hero-description,
.section-heading > p,
.workflow-inner p {
  color: #64758e;
}

.hero-visual {
  perspective: 1200px;
  animation: theme-enter .8s .12s both;
}

.preview-window {
  border-color: #d8e6f0;
  box-shadow: 0 32px 80px #173a5b24, 0 4px 14px #173a5b0d;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s;
}

.hero-visual:hover .preview-window {
  transform: rotateY(-3deg) rotateX(2deg) translateY(-5px);
  box-shadow: 0 38px 90px #173a5b2b, 0 4px 14px #173a5b0d;
}

.preview-stat,
.feature-card,
.plan-card {
  border-color: #dce7f0;
  box-shadow: 0 10px 28px #1a3b5b0b;
}

.preview-stat strong {
  color: #14213a;
}

.chart-bars i {
  animation: chart-rise 1s cubic-bezier(.16,1,.3,1) both;
  animation-delay: calc(var(--h) * .003);
}

.float-note {
  border-color: #d9e6ef;
  box-shadow: 0 18px 38px #15385320;
  animation: float-orbit 5s ease-in-out infinite;
}

.decoration-one {
  border: 1px solid #82dad64d;
  background: radial-gradient(circle at 35% 35%, #c1fbeb, #dce9f8 70%);
  box-shadow: 0 0 50px #63d8d044;
}

.decoration-two {
  background: radial-gradient(circle at 35% 35%, #ffe1b9, #f8c8e04d 74%);
  animation: float-orbit 6s ease-in-out infinite reverse;
}

.feature-section {
  position: relative;
}

.feature-card {
  border-radius: 15px;
  background: linear-gradient(155deg, #ffffff, #f6faff);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}

.feature-card:hover {
  transform: perspective(900px) rotateX(var(--tilt-x, 2deg)) rotateY(var(--tilt-y, 0deg)) translateY(-7px) scale(1.015);
  border-color: #81d8d5;
  box-shadow: 0 22px 40px #173b591c;
}

.feature-card,
.plan-card,
.stat-card {
  transform-style: preserve-3d;
  will-change: transform;
}

.feature-icon,
.plan-card > *,
.stat-card > * {
  transform: translateZ(8px);
}

.feature-card h3,
.section-heading h2 {
  color: #14213a;
}

.feature-card p {
  color: #677991;
}

.workflow-section {
  position: relative;
  overflow: hidden;
  color: #f4fbff;
  background:
    radial-gradient(ellipse at 84% 50%, #087f8c55, transparent 35%),
    linear-gradient(115deg, #101b31, #172b43 65%, #102438);
}

.workflow-section::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 42%;
  height: 100%;
  content: "";
  pointer-events: none;
  opacity: .24;
  background-image: linear-gradient(#93d9ed2b 1px, transparent 1px), linear-gradient(90deg, #93d9ed2b 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(90deg, transparent, #000);
}

.workflow-inner {
  position: relative;
  z-index: 1;
}

.workflow-inner .eyebrow {
  color: #7eedd8;
}

.workflow-inner p {
  color: #bdcbdc;
}

.site-footer {
  color: #687a91;
}

.site-footer .brand {
  color: #14213a;
}

.auth-page {
  background-color: #eff4f9;
}

.auth-story {
  color: #f5fbff;
  background:
    radial-gradient(ellipse at 80% 20%, #138e9c66, transparent 45%),
    linear-gradient(140deg, #111b31, #1d3650);
}

.auth-story .eyebrow,
.auth-story h1 {
  color: #f5fbff;
}

.auth-story h1 span {
  color: #82efda;
}

.auth-story p,
.auth-story-footer {
  color: #c2d0df;
}

.auth-panel {
  background:
    radial-gradient(ellipse at 100% 0, #b6f1e62b, transparent 42%),
    #f7faff;
}

.auth-card {
  border: 1px solid #dce7f0;
  border-radius: 20px;
  box-shadow: 0 24px 70px #173b591a, inset 0 1px #fff;
}

.app-page {
  min-height: 100vh;
  color: #18253b;
  background-color: #edf3f8;
  background-image:
    radial-gradient(ellipse at 78% 0%, #72d9d817, transparent 36rem),
    linear-gradient(#7796b214 1px, transparent 1px),
    linear-gradient(90deg, #7796b214 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
}

.app-shell {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 48px);
}

.sidebar {
  width: 258px;
  padding: 23px 15px 15px;
  border: 0;
  border-right: 1px solid #6be6d41c;
  background:
    radial-gradient(ellipse at 8% 0%, #167d8954, transparent 35%),
    linear-gradient(165deg, #111c31, #14253d 65%, #102337);
  box-shadow: 12px 0 40px #10213b17;
}

.sidebar::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 36%;
  content: "";
  pointer-events: none;
  opacity: .16;
  background-image: linear-gradient(#93d9ed24 1px, transparent 1px), linear-gradient(90deg, #93d9ed24 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: linear-gradient(transparent, #000);
}

.sidebar-brand {
  position: relative;
  z-index: 1;
  gap: 11px;
  margin: 0 0 37px 5px;
}

.sidebar-brand .brand-mark {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.brand-name {
  display: inline-flex;
  flex-direction: column;
  color: #f5faff;
  font-size: 12px;
  letter-spacing: -.2px;
}

.brand-name small {
  margin-top: 4px;
  color: #8fa8bf;
  font: 500 9px var(--font-body);
  letter-spacing: .3px;
}

.workspace-label {
  color: #7691aa;
}

.side-nav,
.sidebar-bottom {
  position: relative;
  z-index: 1;
}

.side-nav {
  gap: 6px;
}

.side-nav a,
.sidebar-bottom > a,
.logout-button {
  position: relative;
  min-height: 45px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #c1d0df;
  transition: color .22s, background .22s, border-color .22s, transform .22s, box-shadow .22s;
}

.side-nav a:hover,
.sidebar-bottom > a:hover,
.logout-button:hover {
  transform: translateX(3px);
  border-color: #75e9d125;
  color: #f4ffff;
  background: #ffffff0b;
}

.side-nav a.active,
.sidebar-bottom > a.active {
  border-color: #6ce6d43d;
  color: #081b2a;
  background: linear-gradient(110deg, #8af3dc, #58d5d6);
  box-shadow: 0 8px 22px #38bfc330, inset 0 1px #ffffffa6;
}

.side-nav a.active span,
.sidebar-bottom > a.active span {
  color: #087f8c;
}

.sidebar-bottom {
  gap: 5px;
}

.sidebar-user {
  margin-top: 11px;
  border-color: #ffffff17;
  background: #ffffff08;
}

.user-avatar {
  color: #092337;
  background: linear-gradient(145deg, #92f5de, #5fc7d6);
}

.user-meta b {
  color: #f4f8fc;
}

.user-meta small,
.user-menu {
  color: #90a6bb;
}

.app-main {
  margin-left: 258px;
  width: calc(100% - 258px);
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  height: 72px;
  padding: 0 clamp(20px, 3.2vw, 48px);
  border-color: #cfdeea;
  background: #f6faffd9;
  box-shadow: 0 5px 25px #173a5b0b;
  backdrop-filter: blur(18px) saturate(1.3);
}

.app-topbar::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, #42c8c0aa, #83b9ee88, transparent);
}

.breadcrumb {
  color: #74849a;
  font-size: 11px;
  letter-spacing: .15px;
}

.breadcrumb b {
  color: #24344e;
}

.today-label {
  color: #70849a;
}

.topbar-avatar {
  border: 1px solid #c0e8e4;
  color: #086c7b;
  background: linear-gradient(145deg, #e1fbf3, #e6f0ff);
  box-shadow: 0 0 0 4px #52cdc10e;
}

.page-content {
  max-width: 1440px;
  padding: 38px clamp(20px, 3.2vw, 48px) 56px;
  animation: theme-enter .55s both;
}

.page-title-row {
  margin-bottom: 25px;
}

.page-title-row .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid #67cfc532;
  border-radius: 6px;
  color: #07838c;
  background: #e2fbf5a6;
  font-size: 9px;
  letter-spacing: 1.2px;
}

.page-title-row .eyebrow::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
  background: #1bb7a7;
  box-shadow: 0 0 0 3px #1bb7a71b;
  animation: signal-pulse 2.4s ease-in-out infinite;
}

.page-title-row h1 {
  color: #14213a;
  font-size: clamp(29px, 3vw, 38px);
  letter-spacing: -1.5px;
}

.page-title-row p {
  color: #74839a;
}

.panel,
.stat-card,
.report-highlight {
  border: 1px solid #d7e3ed;
  border-radius: 16px;
  background: linear-gradient(145deg, #ffffff, #f8fbff);
  box-shadow: 0 12px 35px #183d5a0b, inset 0 1px #fff;
}

.panel {
  position: relative;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}

.panel:hover {
  border-color: #b6d9e2;
  box-shadow: 0 17px 40px #183d5a12, inset 0 1px #fff;
}

.panel-heading h2 {
  color: #1c2a43;
}

.panel-heading p,
.stat-card > small,
.report-highlight span,
.report-highlight small {
  color: #75859a;
}

.stat-card {
  position: relative;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.stat-card::after {
  position: absolute;
  top: 0;
  right: 16px;
  left: 16px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, #60d9c6, #7a9ce9, #e8b866);
  opacity: .85;
}

.stat-card:hover {
  transform: perspective(850px) rotateX(var(--tilt-x, 1deg)) rotateY(var(--tilt-y, 0deg)) translateY(-4px);
  border-color: #b3d8e0;
  box-shadow: 0 20px 40px #193e5d17;
}

.stat-card > strong,
.report-highlight strong {
  color: #14213a;
}

.stat-icon {
  border: 1px solid #dce9f2;
  box-shadow: inset 0 1px #ffffffa6;
  animation: icon-breathe 4s ease-in-out infinite;
}

.tint-lime {
  color: #078b83;
  background: #e0faf0;
}

.tint-blue {
  color: #2874aa;
  background: #e5f3ff;
}

.tint-peach {
  color: #bf7840;
  background: #fff2e4;
}

.tint-lavender {
  color: #7662b6;
  background: #f0edff;
}

.table-wrap {
  border-radius: 11px;
}

table thead {
  background: #f2f7fb;
}

table th {
  color: #75869b;
}

table td {
  color: #35465e;
}

tbody tr {
  transition: background .18s;
}

tbody tr:hover {
  background: #effaf8;
}

.text-input,
.select-input,
.search-wrap {
  border-color: #d4e0ea;
  border-radius: 10px;
  background-color: #fbfdff;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.text-input:focus,
.select-input:focus,
.search-wrap:focus-within {
  border-color: #46bfc0;
  background-color: #fff;
  box-shadow: 0 0 0 4px #51c7c21a;
  outline: 0;
}

.field-label {
  color: #31435b;
}

.location-item {
  padding: 15px 10px;
  border-top-color: #e7eef4;
  border-radius: 10px;
  transition: background .2s, transform .2s;
}

.location-item:hover {
  transform: translateX(2px);
  background: #f4f9fc;
}

.support-email-line {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: baseline;
  padding: 10px 12px;
  border: 1px solid #d6e8ed;
  border-radius: 9px;
  background: #f2fbfb;
}

.support-email-line a {
  color: #087f8c;
  font-weight: 700;
  transition: color .2s, text-shadow .2s;
}

.support-email-line a:hover {
  color: #075b77;
  text-shadow: 0 0 14px #42c8c055;
}

.location-item b {
  color: #24344c;
}

.location-item small {
  color: #77889b;
}

.location-actions,
.location-form-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.location-edit,
.location-delete {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #d6e4ed;
  border-radius: 8px;
  color: #187d8c;
  background: #f7fbfe;
  font-size: 11px;
  font-weight: 700;
  transition: transform .18s, color .18s, border-color .18s, background .18s;
}

.location-edit:hover {
  transform: translateY(-1px);
  border-color: #7bcfc7;
  background: #e9fbf5;
}

.location-delete {
  color: #a4475e;
  background: #fff7f8;
}

.location-delete:hover {
  transform: translateY(-1px);
  border-color: #e7aab5;
  background: #fff0f2;
}

.app-dialog {
  border: 1px solid #cadbe9;
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, #f5faff);
  box-shadow: 0 35px 100px #10243d47;
}

.app-dialog::backdrop {
  background: #0c1934a6;
  backdrop-filter: blur(5px);
}

.secondary-footer {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-top: 1px solid #cddde9;
  color: #73869b;
  background: #e8f0f7;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: .15px;
  text-align: center;
}

.app-secondary-footer {
  margin-left: 258px;
  min-height: 48px;
  color: #a7bfd2;
  border-top-color: #8ca9be26;
  background: linear-gradient(90deg, #111c31, #182d46);
}

.auth-footer {
  border-top: 1px solid #d7e3ed;
  color: #657991;
  background: #f7faff;
}

.footer-support,
.auth-footer a {
  color: #078b93;
}

.support-faq details {
  border-color: #dbe5ed;
}

.support-faq summary:after {
  color: #078b93;
}

.support-contact {
  border: 1px solid #d7e3ed;
  border-radius: 16px;
  box-shadow: 0 15px 40px #183d5a12;
}

.plan-card {
  border-color: #d7e3ed;
}

.plan-card:hover {
  transform: perspective(900px) rotateX(var(--tilt-x, 1deg)) rotateY(var(--tilt-y, 0deg)) translateY(-7px) scale(1.015);
  border-color: #6ecfc8;
  box-shadow: 0 22px 48px #123c5b20;
}

.plan-featured {
  border-color: #27b4aa;
  box-shadow: 0 14px 40px #087f8c20;
}

.plan-badge {
  color: #087f8c;
  background: #dff9f3;
}

.comparison-wrap {
  border-color: #d7e3ed;
}

.comparison-table thead th {
  color: #61758b;
  background: #f2f7fb;
}

.admin-sidebar .side-nav a.active {
  color: #081b2a;
  background: linear-gradient(110deg, #8af3dc, #58d5d6);
}

.admin-secure-label {
  color: #078b83;
}

@keyframes theme-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes chart-rise {
  from {
    transform: scaleY(.1);
    transform-origin: bottom;
    opacity: .3;
  }
  to {
    transform: scaleY(1);
    transform-origin: bottom;
    opacity: 1;
  }
}

@keyframes icon-breathe {
  0%, 100% {
    box-shadow: inset 0 1px #ffffffa6, 0 0 0 0 #53cfc600;
  }
  50% {
    box-shadow: inset 0 1px #ffffffa6, 0 0 0 5px #53cfc610;
  }
}

@media (max-width: 900px) {
  .sidebar {
    width: 220px;
  }

  .app-main {
    width: calc(100% - 220px);
    margin-left: 220px;
  }

  .app-secondary-footer {
    margin-left: 220px;
  }

  .topbar-live {
    display: none;
  }
}

@media (max-width: 680px) {
  .site-header {
    gap: 3px;
    padding-inline: 8px;
    border-radius: 13px;
  }

  .site-header > .brand {
    width: 110px;
    max-width: 110px;
    gap: 6px;
    flex-shrink: 1;
    overflow: hidden;
    font-size: 9px;
    letter-spacing: -.3px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .site-header > .brand .brand-mark {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    font-size: 13px;
  }

  .header-actions {
    flex: 0 0 auto;
    gap: 4px;
  }

  .header-actions .button {
    min-height: 36px;
    flex-shrink: 0;
    gap: 4px;
    padding-inline: 4px;
    font-size: 9px;
    white-space: nowrap;
  }

  .header-actions .text-link {
    font-size: 10px;
  }

  .header-actions .button > span {
    flex: 0 0 auto;
  }

  .hero {
    gap: 22px;
  }

  .sidebar {
    width: min(290px, 86vw);
    background:
      radial-gradient(ellipse at 8% 0%, #167d8954, transparent 35%),
      linear-gradient(165deg, #111c31, #14253d 65%, #102337);
  }

  .app-main {
    width: 100%;
    margin-left: 0;
  }

  .app-topbar {
    height: 62px;
    background: #f6faffed;
  }

  .topbar-kicker {
    display: none;
  }

  .admin-topbar {
    gap: 8px;
  }

  .admin-topbar .topbar-title > b {
    font-size: 10px;
  }

  .admin-secure-label {
    display: none;
  }

  .admin-search {
    width: 100%;
  }

  .mobile-menu {
    width: 37px;
    height: 37px;
    margin-right: 9px;
    border: 1px solid #cfe0eb;
    border-radius: 10px;
    color: #087f8c;
    background: linear-gradient(145deg, #fff, #eaf5fa);
    box-shadow: 0 3px 10px #173a5b12;
    transition: transform .2s, box-shadow .2s;
  }

  .mobile-menu:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 15px #173a5b1c;
  }

  .app-secondary-footer {
    margin-left: 0;
    padding-inline: 16px;
    font-size: 9px;
  }

  .location-actions {
    align-self: flex-start;
  }

  .location-item {
    flex-direction: column;
  }

  .secondary-footer {
    min-height: 54px;
    padding: 11px 16px;
    font-size: 9px;
  }

  .theme-toggle {
    width: 33px;
    height: 33px;
    flex-basis: 33px;
    border-radius: 10px;
  }

  .theme-toggle-floating {
    top: 14px;
    right: 14px;
  }

  .signup-plan-fields {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf5ff;
  --muted: #9aacc2;
  --line: #30425a;
  --paper: #0c1525;
  --white: #152238;
}

html[data-theme="dark"] body,
html[data-theme="dark"] body.app-page {
  color: #dce8f6;
  background-color: #0c1525;
  background-image:
    radial-gradient(ellipse at 82% 4%, #43d5d01a, transparent 33rem),
    linear-gradient(#98b4d00b 1px, transparent 1px),
    linear-gradient(90deg, #98b4d00b 1px, transparent 1px);
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .app-topbar {
  border-color: #314259;
  background: #111d30e8;
  box-shadow: 0 8px 28px #02071145;
}

html[data-theme="dark"] .auth-story {
  background:
    radial-gradient(ellipse at 80% 20%, #138e9c66, transparent 45%),
    linear-gradient(140deg, #090f1d, #172b43);
}

html[data-theme="dark"] .auth-footer {
  background: #111d30;
}

html[data-theme="dark"] .feature-section,
html[data-theme="dark"] .plans-section,
html[data-theme="dark"] .support-content,
html[data-theme="dark"] .support-hero {
  color: #dce8f6;
}

html[data-theme="dark"] .support-faq details p,
html[data-theme="dark"] .support-contact > p {
  color: #9aacc2;
}

html[data-theme="dark"] .support-email-line {
  border-color: #31536a;
  background: #142b3c;
}

html[data-theme="dark"] .workflow-inner h2 {
  color: #eff7ff;
}

html[data-theme="dark"] .admin-text-button {
  color: #69dcd0;
}

html[data-theme="dark"] .admin-data-note,
html[data-theme="dark"] .admin-pagination,
html[data-theme="dark"] .admin-user-cell small {
  color: #92a5ba;
}

html[data-theme="dark"] .admin-notice.notice-info,
html[data-theme="dark"] .notice-info {
  border-color: #31536a;
  color: #b7d7e8;
  background: #172f43;
}

html[data-theme="dark"] .status-pill.status-ok {
  color: #8af0cf;
  background: #17473d;
}

html[data-theme="dark"] .status-pill.status-low {
  color: #ffd18b;
  background: #493725;
}

html[data-theme="dark"] .status-pill.status-out {
  color: #ffabb7;
  background: #4a2935;
}

html[data-theme="dark"] .product-avatar {
  color: #8cebd9;
  background: #183c48;
}

html[data-theme="dark"] .admin-inline-select option,
html[data-theme="dark"] .text-input option,
html[data-theme="dark"] select option {
  color: #e3edf8;
  background: #16243a;
}

html[data-theme="dark"] .brand,
html[data-theme="dark"] .site-footer .brand,
html[data-theme="dark"] .hero h1,
html[data-theme="dark"] .section-heading h2,
html[data-theme="dark"] .feature-card h3,
html[data-theme="dark"] .page-title-row h1,
html[data-theme="dark"] .panel-heading h2,
html[data-theme="dark"] .stat-card > strong,
html[data-theme="dark"] .report-highlight strong,
html[data-theme="dark"] .location-item b,
html[data-theme="dark"] .topbar-title > b {
  color: #edf5ff;
}

html[data-theme="dark"] .site-nav a,
html[data-theme="dark"] .text-link,
html[data-theme="dark"] .hero-description,
html[data-theme="dark"] .section-heading > p,
html[data-theme="dark"] .feature-card p,
html[data-theme="dark"] .page-title-row p,
html[data-theme="dark"] .panel-heading p,
html[data-theme="dark"] .stat-card > small,
html[data-theme="dark"] .report-highlight span,
html[data-theme="dark"] .report-highlight small,
html[data-theme="dark"] .location-item small,
html[data-theme="dark"] .today-label,
html[data-theme="dark"] .breadcrumb,
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .support-hero > p {
  color: #9aacc2;
}

html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .plan-card,
html[data-theme="dark"] .preview-window,
html[data-theme="dark"] .preview-stat,
html[data-theme="dark"] .float-note,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .report-highlight,
html[data-theme="dark"] .support-contact,
html[data-theme="dark"] .comparison-wrap {
  border-color: #30435b;
  color: #dce8f6;
  background: linear-gradient(145deg, #17253a, #111e31);
  box-shadow: 0 14px 36px #02071035, inset 0 1px #ffffff08;
}

html[data-theme="dark"] .feature-card:hover,
html[data-theme="dark"] .plan-card:hover,
html[data-theme="dark"] .panel:hover,
html[data-theme="dark"] .stat-card:hover {
  border-color: #3d858c;
  box-shadow: 0 20px 46px #02071055;
}

html[data-theme="dark"] .preview-topbar,
html[data-theme="dark"] .preview-activity,
html[data-theme="dark"] .location-item,
html[data-theme="dark"] .support-faq details,
html[data-theme="dark"] .comparison-table th,
html[data-theme="dark"] .comparison-table td {
  border-color: #304258;
}

html[data-theme="dark"] .preview-stat > span,
html[data-theme="dark"] .preview-stat small,
html[data-theme="dark"] .preview-chart-head span,
html[data-theme="dark"] .preview-activity small,
html[data-theme="dark"] .preview-activity time,
html[data-theme="dark"] .preview-chart-labels {
  color: #9aacc2;
}

html[data-theme="dark"] .preview-stat strong {
  color: #eff7ff;
}

html[data-theme="dark"] .workflow-section {
  background:
    radial-gradient(ellipse at 84% 50%, #087f8c55, transparent 35%),
    linear-gradient(115deg, #070e1b, #101c30 65%, #0c1a2c);
}

html[data-theme="dark"] .auth-page,
html[data-theme="dark"] .auth-panel {
  color: #e6effc;
  background: #0c1525;
}

html[data-theme="dark"] .auth-card {
  border-color: #30435b;
  color: #e6effc;
  background: linear-gradient(145deg, #17253a, #101c30);
  box-shadow: 0 24px 70px #02071055;
}

html[data-theme="dark"] .text-input,
html[data-theme="dark"] .select-input,
html[data-theme="dark"] .search-wrap,
html[data-theme="dark"] .admin-inline-select,
html[data-theme="dark"] .location-edit,
html[data-theme="dark"] .button-light {
  border-color: #3a4d66;
  color: #e3edf8;
  background-color: #16243a;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: #8193aa;
}

html[data-theme="dark"] .field-label,
html[data-theme="dark"] .breadcrumb b {
  color: #cbd9e9;
}

html[data-theme="dark"] table thead {
  background: #19283d;
}

html[data-theme="dark"] table th {
  color: #9aacc2;
  border-color: #304258;
}

html[data-theme="dark"] table td {
  color: #d4e0ee;
  border-color: #283a50;
}

html[data-theme="dark"] tbody tr:hover,
html[data-theme="dark"] .location-item:hover {
  background: #1b3042;
}

html[data-theme="dark"] .comparison-table thead th {
  color: #9aacc2;
  background: #18273b;
}

html[data-theme="dark"] .comparison-table tbody th,
html[data-theme="dark"] .comparison-table td {
  color: #c5d3e2;
}

html[data-theme="dark"] .plan-kicker,
html[data-theme="dark"] .plan-description,
html[data-theme="dark"] .plan-card li,
html[data-theme="dark"] .plan-price span,
html[data-theme="dark"] .plan-price span small {
  color: #a7b8cb;
}

html[data-theme="dark"] .plan-note {
  color: #8e9fb3;
}

html[data-theme="dark"] .plan-featured {
  border-color: #40bdb3;
  box-shadow: 0 15px 40px #087f8c30;
}

html[data-theme="dark"] .app-dialog {
  border-color: #354a63;
  color: #e6effc;
  background: linear-gradient(145deg, #19283d, #101d31);
}

html[data-theme="dark"] .secondary-footer,
html[data-theme="dark"] .auth-footer {
  border-color: #2b3c53;
  color: #91a4ba;
  background: #111d30;
}

html[data-theme="dark"] .app-secondary-footer {
  background: #091321;
}

html[data-theme="dark"] .theme-toggle {
  border-color: #3a526a;
  color: #83eedb;
  background: linear-gradient(145deg, #1a2b41, #102035);
}

html[data-theme="dark"] .signup-plan-fields .field-label {
  color: #cbd9e9;
}

html[data-theme="dark"] .signup-plan-note {
  color: #9aacc2;
}

html[data-theme="dark"] .admin-secure-label {
  border-color: #42bfb446;
  color: #7de8d1;
  background: #133342;
}

html[data-theme="dark"] .support-faq summary,
html[data-theme="dark"] .support-contact h2,
html[data-theme="dark"] .support-faq h2 {
  color: #e5eefb;
}

html[data-theme="dark"] .code-preview-stage {
  border-color: #3a4d66;
  background: #101b2c;
}

html[data-theme="dark"] .code-empty-preview b {
  color: #dce8f6;
}

html[data-theme="dark"] .code-empty-preview small,
html[data-theme="dark"] .code-field-help,
html[data-theme="dark"] .code-image-note {
  color: #9aacc2;
}

html[data-theme="dark"] .code-preview-stage canvas {
  border-radius: 4px;
}

.stock-entry-panel {
  margin-bottom: 16px;
  padding: 19px;
}

.stock-entry-panel .panel-heading {
  padding-bottom: 14px;
}

.stock-entry-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 12px;
}

.stock-entry-form .text-input {
  margin-bottom: 0;
}

.panel-heading-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.stock-entry-form .form-error {
  grid-column: 1 / -1;
  margin: 0;
}

.stock-entry-form > .button {
  min-height: 40px;
  white-space: nowrap;
}

.sale-entry-panel {
  max-width: 860px;
  padding: 22px;
}

.sale-entry-panel [data-sale-form] {
  display: grid;
  gap: 14px;
}

.sale-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.sale-form-grid .form-span-two {
  grid-column: 1 / -1;
}

.sale-field-help {
  display: block;
  margin-top: 5px;
  color: #92988e;
  font-size: 9px;
}

.sale-product-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  margin-top: 9px;
  padding: 7px;
  border: 1px solid #e8eee1;
  border-radius: 7px;
  background: #fafbf8;
}

.sale-product-preview-image {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  flex: 0 0 50px;
  overflow: hidden;
  border-radius: 6px;
  background: #eff3e8;
  color: #718a45;
  font-size: 21px;
}

.sale-product-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sale-product-preview-copy {
  min-width: 0;
}

.sale-product-preview-copy b,
.sale-product-preview-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sale-product-preview-copy b {
  color: #394438;
  font-size: 10px;
}

.sale-product-preview-copy small {
  margin-top: 3px;
  color: #92988e;
  font-size: 9px;
}

.sale-availability {
  margin: 0;
  padding: 11px 13px;
  border: 1px solid #e8eee1;
  border-radius: 7px;
  color: #607543;
  background: #f5f8ee;
  font-size: 11px;
}

.sale-entry-panel [data-sale-form] textarea {
  min-height: 72px;
  resize: vertical;
}

.sale-entry-panel .product-form-actions {
  margin-top: 0;
}

.inventory-location b,
.inventory-location small {
  display: block;
}

.inventory-location small {
  margin-top: 3px;
  color: #92988e;
  font-size: 9px;
}

html[data-theme="dark"] .inventory-location small {
  color: #9aacc2;
}

html[data-theme="dark"] .sale-field-help {
  color: #9aacc2;
}

html[data-theme="dark"] .sale-availability {
  border-color: #31544e;
  color: #a7dfca;
  background: #17352f;
}

html[data-theme="dark"] .sale-product-preview {
  border-color: #31544e;
  background: #172a27;
}

html[data-theme="dark"] .sale-product-preview-image {
  background: #243d35;
  color: #a7c77c;
}

html[data-theme="dark"] .sale-product-preview-copy b {
  color: #e1e9df;
}

html[data-theme="dark"] .sale-product-preview-copy small {
  color: #9aacc2;
}

[data-transfer-form] {
  display: grid;
  gap: 12px;
}

[data-transfer-form] .text-input {
  margin-bottom: 0;
}

[data-transfer-form] .product-form-actions {
  margin-top: 4px;
}

.auth-forgot-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.auth-forgot-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #087f8c;
  font-size: 11px;
  font-weight: 700;
}

.auth-forgot-button:disabled {
  opacity: .6;
  cursor: wait;
}

@media (max-width: 900px) {
  .stock-entry-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .stock-entry-form {
    grid-template-columns: 1fr;
  }

  .panel-heading-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .stock-entry-form .form-error {
    grid-column: auto;
  }

  .sale-entry-panel {
    padding: 16px;
  }

  .sale-form-grid {
    grid-template-columns: 1fr;
  }

  .sale-form-grid .form-span-two {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .topbar-live i {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

:root {
  --ink: #1f2937;
  --muted: #64748b;
  --line: rgba(15, 23, 42, .08);
  --paper: #f7f8fc;
  --white: #ffffff;
  --lime: #2f5dff;
  --green: #16a34a;
  --red: #ef4444;
  --soft-red: #fff1f2;
  --surface: #ffffff;
  --surface-strong: #eef1fb;
  --surface-muted: #f8fafc;
  --primary: #2f5dff;
  --primary-strong: #1022d7;
  --border: rgba(15, 23, 42, .08);
  --shadow: 0 18px 48px rgba(15, 23, 42, .08);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f3f7ff;
  --muted: #9fb0cc;
  --line: rgba(156, 178, 214, .18);
  --paper: #060b16;
  --white: #101827;
  --lime: #5b7cff;
  --green: #37d67a;
  --red: #ff6b7d;
  --soft-red: #351b2a;
  --surface: #101827;
  --surface-strong: #18253d;
  --surface-muted: #0d1425;
  --primary: #5b7cff;
  --primary-strong: #8fb2ff;
  --border: rgba(156, 178, 214, .18);
  --shadow: 0 20px 48px rgba(2, 6, 23, .5);
}

html,
body {
  background-color: var(--paper);
  color: var(--ink);
}

body,
body.app-page {
  background:
    radial-gradient(circle at 15% 10%, rgba(47, 93, 255, .08), transparent 25%),
    radial-gradient(circle at 85% 20%, rgba(79, 70, 229, .06), transparent 25%),
    linear-gradient(180deg, var(--paper), var(--surface-muted));
  color: var(--ink);
}

html[data-theme="dark"] body,
html[data-theme="dark"] body.app-page {
  background:
    radial-gradient(circle at 15% 10%, rgba(91, 124, 255, .18), transparent 25%),
    radial-gradient(circle at 85% 20%, rgba(55, 214, 122, .1), transparent 25%),
    linear-gradient(180deg, var(--paper), var(--surface-muted));
  color: var(--ink);
}

.site-header,
.app-topbar,
.sidebar,
.panel,
.stat-card,
.report-highlight,
.auth-card,
.support-contact,
.feature-card,
.plan-card,
.comparison-wrap,
.preview-window,
.float-note,
.product-dialog,
.app-dialog,
.admin-user-card,
.access-denied-card,
.cookie-policy-content,
.code-form-panel,
.code-preview-panel {
  border-color: var(--border);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.site-header,
.app-topbar {
  border-color: var(--border);
  background: var(--surface);
}

.brand,
.site-nav a,
.text-link,
.breadcrumb b,
.page-title-row h1,
.panel-heading h2,
.stat-card > strong,
.report-highlight strong,
.feature-card h3,
.section-heading h2,
.location-item b,
.auth-heading h2,
.support-contact h2,
.admin-user-summary h4,
.cookie-policy-content h1,
.cookie-policy-content h2 {
  color: var(--ink);
}

.page-title-row p,
.panel-heading p,
.stat-card > small,
.report-highlight span,
.report-highlight small,
.today-label,
.breadcrumb,
.site-footer,
.auth-heading p,
.cookie-policy-content p,
.support-contact > p {
  color: var(--muted);
}

.button-dark,
.button-lime {
  border-color: transparent;
  color: #ffffff;
  background: linear-gradient(135deg, #2f5dff, #1022d7);
  box-shadow: 0 8px 20px rgba(47, 93, 255, .2);
}

.button-dark:hover,
.button-lime:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #4a73ff, #243be7);
  box-shadow: 0 12px 26px rgba(47, 93, 255, .28);
}

.button-light,
.icon-button,
.location-edit,
.theme-toggle {
  border-color: var(--border);
  color: var(--ink);
  background: var(--surface-strong);
}

.button-light:hover,
.icon-button:hover,
.location-edit:hover,
.theme-toggle:hover {
  border-color: rgba(47, 93, 255, .35);
  color: var(--primary-strong);
  background: var(--surface);
}

.side-nav a,
.sidebar-bottom > a,
.logout-button {
  color: var(--muted);
}

.side-nav a:hover,
.sidebar-bottom > a:hover,
.logout-button:hover,
.side-nav a.active,
.sidebar-bottom > a.active,
.admin-sidebar .side-nav a.active {
  color: var(--primary-strong);
  background: rgba(47, 93, 255, .09);
}

.side-nav a.active span,
.sidebar-bottom > a.active span,
.eyebrow,
.topbar-kicker,
.topbar-title > span,
.admin-scope-label {
  color: var(--primary-strong);
}

.brand-mark,
.feature-icon,
.stat-icon,
.product-avatar,
.sale-product-preview-image {
  color: var(--primary-strong);
  background: linear-gradient(140deg, #eef1fb, #e2eaff);
  box-shadow: none;
}

.brand-mark {
  color: #ffffff;
  background: linear-gradient(135deg, #2f5dff, #1022d7);
}

.icon-lime,
.tint-lime,
.icon-blue,
.tint-blue,
.icon-peach,
.tint-peach,
.icon-lavender,
.tint-lavender {
  color: var(--primary-strong);
  background: rgba(47, 93, 255, .1);
}

.auth-story {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(47, 93, 255, .12), transparent 45%),
    linear-gradient(140deg, #eef1fb, #f7f8fc);
}

.hero h1 span,
.auth-story h1 span,
.site-nav a:hover,
.text-link:hover,
.auth-forgot-button,
.eyebrow-dot,
.title-spark,
.preview-greeting h2 span,
.admin-text-button,
.footer-support,
.auth-footer a,
.support-faq summary::after,
.subtle-link,
.low-stock-link,
.empty-icon {
  color: var(--primary-strong);
}

.eyebrow-dot {
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(47, 93, 255, .12);
}

.decoration-one,
.decoration-two {
  background: radial-gradient(circle at 35% 35%, #dce6ff, #edf1fb);
}

.chart-bars i {
  background: #dce6ff;
}

.chart-bars i::after {
  background: #2f5dff;
}

.float-check,
.activity-icon,
.user-avatar,
.topbar-avatar,
.preview-user {
  color: #1022d7;
  background: #e8edff;
}

.feature-section::before {
  background: rgba(47, 93, 255, .09);
}

.proof-avatars i {
  color: #1022d7;
  background: #dce6ff;
}

.proof-avatars i:nth-child(2) {
  background: #e8edff;
}

.proof-avatars i:nth-child(3) {
  background: #d6e1ff;
}

.preview-stat small {
  color: #2f5dff;
}

.warning-text,
.stock-warning {
  color: #ef4444;
}

.topbar-live i {
  background: #2f5dff;
  box-shadow: 0 0 0 4px rgba(47, 93, 255, .12);
}

.attention-count {
  color: #1022d7;
  background: #e8edff;
}

.plan-featured {
  border-color: rgba(47, 93, 255, .5);
  box-shadow: 0 16px 40px rgba(47, 93, 255, .12);
}

.plan-card:hover,
.feature-card:hover,
.panel:hover,
.stat-card:hover {
  border-color: rgba(47, 93, 255, .3);
}

.support-email-line,
.admin-scope-label {
  border-color: rgba(47, 93, 255, .2);
  color: var(--primary-strong) !important;
  background: rgba(47, 93, 255, .08);
}

.workflow-section {
  background:
    radial-gradient(ellipse at 84% 50%, rgba(47, 93, 255, .28), transparent 35%),
    linear-gradient(115deg, #060b16, #1022d7 70%, #18253d);
}

.billing-promo {
  border-color: rgba(47, 93, 255, .15);
  background: linear-gradient(130deg, #ffffff 4%, #eef1fb 100%);
}

.plan-featured {
  border-color: rgba(47, 93, 255, .5);
  box-shadow: 0 16px 40px rgba(47, 93, 255, .12);
}

.plan-badge,
.admin-user-meta span,
.notice-info,
.signup-plan-note,
.sale-availability {
  border-color: rgba(47, 93, 255, .16);
  color: var(--primary-strong);
  background: rgba(47, 93, 255, .08);
}

.text-input,
.select-input,
.admin-inline-select,
.search-wrap,
.location-edit {
  border-color: var(--border);
  color: var(--ink);
  background-color: var(--surface);
}

.text-input:focus,
.select-input:focus,
.admin-inline-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 93, 255, .14);
}

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

.table-wrap th,
table th {
  color: var(--muted);
  border-color: var(--border);
  background: var(--surface-muted);
}

.table-wrap td,
table td {
  color: var(--ink);
  border-color: var(--border);
}

.table-wrap td:first-child {
  color: var(--ink);
}

.table-wrap tbody tr:hover,
.location-item:hover {
  background: rgba(47, 93, 255, .045);
}

.status-pill.status-ok {
  color: #15803d;
  background: #e8f7ed;
}

.status-pill.status-low {
  color: #a16207;
  background: #fff5dc;
}

.status-pill.status-out,
.form-error,
.notice-error {
  color: #b42335;
  background: #fff1f2;
}

.admin-secure-label {
  border-color: rgba(47, 93, 255, .2);
  color: var(--primary-strong);
  background: rgba(47, 93, 255, .08);
}

.theme-toggle {
  color: var(--primary-strong);
}

.toast {
  background: #1022d7;
}

.toast.error {
  background: #b42335;
}

.app-secondary-footer,
.secondary-footer,
.auth-footer {
  border-color: var(--border);
  color: var(--muted);
  background: var(--surface);
}

.cookie-consent {
  position: fixed;
  z-index: 10000;
  inset: auto 20px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 18px 48px rgba(2, 6, 23, .24);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent-copy {
  min-width: 0;
}

.cookie-consent-copy strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
}

.cookie-consent-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.cookie-consent-copy a,
.cookie-policy-content a,
.cookie-consent-links a {
  color: var(--primary);
  font-weight: 700;
}

.cookie-consent-actions,
.cookie-consent-links {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-consent-links {
  justify-content: center;
  margin-left: 12px;
  font-size: 10px;
}

.cookie-consent-links a,
.cookie-consent-links button {
  white-space: nowrap;
}

.cookie-settings-link {
  padding: 0;
  border: 0;
  color: var(--primary);
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cookie-settings-link:hover,
.cookie-consent-copy a:hover,
.cookie-policy-content a:hover {
  text-decoration: underline;
}

.cookie-policy-header {
  max-width: 1000px;
  margin: 22px auto 0;
}

.cookie-policy-content {
  max-width: 1000px;
  margin: 24px auto;
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid var(--border);
  border-radius: 24px;
  line-height: 1.7;
}

.cookie-policy-content h1 {
  margin: 8px 0;
  font: 800 32px var(--font-display);
  letter-spacing: -1px;
}

.cookie-policy-content h2 {
  margin-top: 28px;
  font: 700 18px var(--font-display);
}

.cookie-policy-updated {
  font-size: 12px;
}

.app-main-footer {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-left: 258px;
  padding: 10px 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface);
  font-size: 10px;
}

.app-main-footer .brand {
  font-size: 13px;
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .app-topbar,
html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .report-highlight,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .support-contact,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .plan-card,
html[data-theme="dark"] .comparison-wrap,
html[data-theme="dark"] .preview-window,
html[data-theme="dark"] .float-note,
html[data-theme="dark"] .product-dialog,
html[data-theme="dark"] .app-dialog,
html[data-theme="dark"] .admin-user-card,
html[data-theme="dark"] .access-denied-card,
html[data-theme="dark"] .cookie-policy-content {
  border-color: var(--border);
  background: linear-gradient(135deg, #101827, #18253d);
  color: var(--ink);
  box-shadow: var(--shadow);
}

html[data-theme="dark"] .button-light,
html[data-theme="dark"] .icon-button,
html[data-theme="dark"] .location-edit,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .text-input,
html[data-theme="dark"] .select-input,
html[data-theme="dark"] .admin-inline-select,
html[data-theme="dark"] .search-wrap,
html[data-theme="dark"] .auth-tabs {
  border-color: var(--border);
  color: var(--ink);
  background: var(--surface-strong);
}

html[data-theme="dark"] .button-dark,
html[data-theme="dark"] .button-lime {
  color: #ffffff;
  background: linear-gradient(135deg, #5b7cff, #2f5dff);
}

html[data-theme="dark"] .button-light:hover,
html[data-theme="dark"] .icon-button:hover,
html[data-theme="dark"] .theme-toggle:hover {
  color: var(--primary-strong);
  background: #1b2842;
}

html[data-theme="dark"] .side-nav a,
html[data-theme="dark"] .sidebar-bottom > a,
html[data-theme="dark"] .logout-button {
  color: var(--muted);
}

html[data-theme="dark"] .side-nav a:hover,
html[data-theme="dark"] .sidebar-bottom > a:hover,
html[data-theme="dark"] .logout-button:hover,
html[data-theme="dark"] .side-nav a.active,
html[data-theme="dark"] .sidebar-bottom > a.active,
html[data-theme="dark"] .admin-sidebar .side-nav a.active {
  color: var(--primary-strong);
  background: rgba(91, 124, 255, .2);
}

html[data-theme="dark"] .brand,
html[data-theme="dark"] .site-nav a,
html[data-theme="dark"] .text-link,
html[data-theme="dark"] .breadcrumb b,
html[data-theme="dark"] .page-title-row h1,
html[data-theme="dark"] .panel-heading h2,
html[data-theme="dark"] .stat-card > strong,
html[data-theme="dark"] .report-highlight strong,
html[data-theme="dark"] .feature-card h3,
html[data-theme="dark"] .section-heading h2,
html[data-theme="dark"] .location-item b,
html[data-theme="dark"] .auth-heading h2,
html[data-theme="dark"] .cookie-policy-content h1,
html[data-theme="dark"] .cookie-policy-content h2 {
  color: var(--ink);
}

html[data-theme="dark"] .page-title-row p,
html[data-theme="dark"] .panel-heading p,
html[data-theme="dark"] .stat-card > small,
html[data-theme="dark"] .report-highlight span,
html[data-theme="dark"] .report-highlight small,
html[data-theme="dark"] .today-label,
html[data-theme="dark"] .breadcrumb,
html[data-theme="dark"] .feature-card p,
html[data-theme="dark"] .cookie-policy-content p {
  color: var(--muted);
}

html[data-theme="dark"] .table-wrap th,
html[data-theme="dark"] table th {
  color: var(--muted);
  background: #0d1425;
}

html[data-theme="dark"] .table-wrap td,
html[data-theme="dark"] table td {
  color: var(--ink);
}

html[data-theme="dark"] .table-wrap tbody tr:hover,
html[data-theme="dark"] .location-item:hover {
  background: rgba(91, 124, 255, .1);
}

html[data-theme="dark"] .text-input option,
html[data-theme="dark"] select option {
  color: var(--ink);
  background: var(--surface-strong);
}

html[data-theme="dark"] .feature-icon,
html[data-theme="dark"] .stat-icon,
html[data-theme="dark"] .product-avatar,
html[data-theme="dark"] .user-avatar,
html[data-theme="dark"] .topbar-avatar,
html[data-theme="dark"] .preview-user,
html[data-theme="dark"] .float-check,
html[data-theme="dark"] .activity-icon {
  border-color: var(--border);
  color: #c6d3ff;
  background: rgba(91, 124, 255, .18);
}

html[data-theme="dark"] .plan-featured {
  border-color: rgba(91, 124, 255, .5);
  box-shadow: 0 16px 40px rgba(2, 6, 23, .5);
}

html[data-theme="dark"] .plan-badge,
html[data-theme="dark"] .admin-secure-label {
  border-color: rgba(91, 124, 255, .25);
  color: #c6d3ff;
  background: rgba(91, 124, 255, .16);
}

html[data-theme="dark"] .sale-product-preview {
  border-color: var(--border);
  background: var(--surface-strong);
}

html[data-theme="dark"] .sale-product-preview-image {
  color: #c6d3ff;
  background: rgba(91, 124, 255, .18);
}

html[data-theme="dark"] .sale-product-preview-copy b {
  color: var(--ink);
}

html[data-theme="dark"] .dialog-close {
  color: var(--ink);
  background: var(--surface-strong);
}

html[data-theme="dark"] .status-pill.status-ok {
  color: #a7f3c0;
  background: rgba(55, 214, 122, .18);
}

html[data-theme="dark"] .status-pill.status-low {
  color: #ffe3a3;
  background: rgba(245, 158, 11, .18);
}

html[data-theme="dark"] .status-pill.status-out,
html[data-theme="dark"] .form-error,
html[data-theme="dark"] .notice-error {
  color: #ffb4bf;
  background: rgba(255, 107, 125, .16);
}

html[data-theme="dark"] .notice-info,
html[data-theme="dark"] .signup-plan-note,
html[data-theme="dark"] .sale-availability,
html[data-theme="dark"] .plan-badge,
html[data-theme="dark"] .admin-user-meta span {
  border-color: rgba(91, 124, 255, .25);
  color: #c6d3ff;
  background: rgba(91, 124, 255, .16);
}

html[data-theme="dark"] .auth-story {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(91, 124, 255, .2), transparent 45%),
    linear-gradient(140deg, #060b16, #18253d);
}

html[data-theme="dark"] .workflow-section {
  background:
    radial-gradient(ellipse at 84% 50%, rgba(91, 124, 255, .3), transparent 35%),
    linear-gradient(115deg, #060b16, #1022d7 70%, #18253d);
}

html[data-theme="dark"] .billing-promo {
  border-color: var(--border);
  background: linear-gradient(135deg, #101827, #18253d);
}

html[data-theme="dark"] .app-secondary-footer,
html[data-theme="dark"] .secondary-footer,
html[data-theme="dark"] .auth-footer {
  border-color: var(--border);
  color: var(--muted);
  background: #101827;
}

html[data-theme="dark"] .cookie-consent {
  border-color: var(--border);
  background: #101827;
  color: var(--ink);
}

html[data-theme="dark"] .cookie-consent-copy strong {
  color: var(--ink);
}

html[data-theme="dark"] .cookie-consent-copy p {
  color: var(--muted);
}

html[data-theme="dark"] .app-main-footer {
  border-color: var(--border);
  color: var(--muted);
  background: var(--surface);
}

html:not([data-theme="dark"]) .auth-story {
  color: var(--ink);
  background:
    radial-gradient(ellipse at 80% 20%, rgba(47, 93, 255, .12), transparent 45%),
    linear-gradient(140deg, #eef1fb, #f7f8fc);
}

html:not([data-theme="dark"]) .auth-story .eyebrow {
  color: #1022d7;
  background: rgba(255, 255, 255, .7);
}

html:not([data-theme="dark"]) .auth-story h1 {
  color: #1f2937;
}

html:not([data-theme="dark"]) .auth-story h1 span {
  color: #2f5dff;
}

html:not([data-theme="dark"]) .auth-story p,
html:not([data-theme="dark"]) .auth-story-footer {
  color: #64748b;
}

html:not([data-theme="dark"]) .auth-story::after {
  border-color: rgba(47, 93, 255, .18);
  box-shadow:
    0 0 0 34px rgba(238, 241, 251, .9),
    0 0 0 35px rgba(47, 93, 255, .1),
    0 0 0 75px rgba(238, 241, 251, .9),
    0 0 0 76px rgba(47, 93, 255, .08);
}

@media (max-width: 700px) {
  .cookie-consent {
    inset: auto 12px 12px;
    align-items: stretch;
    flex-direction: column;
    padding: 16px;
  }

  .cookie-consent-actions {
    width: 100%;
  }

  .cookie-consent-actions .button {
    flex: 1 1 140px;
  }

  .cookie-consent-links {
    margin: 8px 0 0;
  }

  .cookie-policy-header {
    width: calc(100% - 32px);
  }

  .cookie-policy-content {
    width: calc(100% - 32px);
    margin: 16px auto;
  }

  .app-main-footer {
    min-height: 54px;
    margin-left: 0;
    padding: 10px 16px;
    font-size: 9px;
  }
}

html:not([data-theme="dark"]) .sidebar {
  border-right-color: #d7e3ef;
  background: linear-gradient(165deg, #f8fbff, #edf4fa 65%, #e8f1f8);
  box-shadow: 8px 0 30px rgba(28, 55, 84, .08);
}

html:not([data-theme="dark"]) .sidebar::after {
  opacity: .14;
  background-image:
    linear-gradient(rgba(8, 127, 140, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 127, 140, .09) 1px, transparent 1px);
}

html:not([data-theme="dark"]) .sidebar .brand-name,
html:not([data-theme="dark"]) .sidebar .user-meta b {
  color: #1c2d45;
}

html:not([data-theme="dark"]) .sidebar .brand-name small,
html:not([data-theme="dark"]) .sidebar .workspace-label,
html:not([data-theme="dark"]) .sidebar .user-meta small,
html:not([data-theme="dark"]) .sidebar .user-menu {
  color: #718198;
}

html:not([data-theme="dark"]) .side-nav a,
html:not([data-theme="dark"]) .sidebar-bottom > a,
html:not([data-theme="dark"]) .sidebar .logout-button {
  color: #53657d;
}

html:not([data-theme="dark"]) .side-nav a:hover,
html:not([data-theme="dark"]) .sidebar-bottom > a:hover,
html:not([data-theme="dark"]) .sidebar .logout-button:hover {
  border-color: #087f8c1c;
  color: #1c5260;
  background: #dcecf4;
}

html:not([data-theme="dark"]) .side-nav a.active,
html:not([data-theme="dark"]) .sidebar-bottom > a.active {
  border-color: #59bfc044;
  color: #075d68;
  background: linear-gradient(110deg, #d9f6f0, #d5edf4);
  box-shadow: 0 5px 15px rgba(8, 127, 140, .12), inset 0 1px #ffffffd9;
}

html:not([data-theme="dark"]) .side-nav a.active span,
html:not([data-theme="dark"]) .sidebar-bottom > a.active span {
  color: #087f8c;
}

html:not([data-theme="dark"]) .sidebar-user {
  border-color: #d5e1ec;
  background: rgba(255, 255, 255, .68);
}

.app-secondary-footer,
.app-main-footer {
  display: none !important;
}

.inventory-story-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(36px, 7vw, 92px);
  padding: 78px 0 96px;
}

.inventory-story-copy h2 {
  max-width: 520px;
  margin: 15px 0 13px;
  color: #14213a;
  font: 800 clamp(34px, 4vw, 48px)/1.12 var(--font-display);
  letter-spacing: -2px;
  text-wrap: balance;
}

.inventory-story-copy > p {
  max-width: 485px;
  color: #64758e;
  font-size: 13px;
  line-height: 1.8;
}

.story-check-list {
  display: grid;
  gap: 8px;
  margin: 23px 0;
}

.story-check-list p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #465a72;
  font-size: 11px;
}

.story-check-list p span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  color: #087f8c;
  background: #dff8ef;
  font-size: 10px;
  font-weight: 800;
}

.story-text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #087f8c;
  font-size: 11px;
  font-weight: 800;
}

.story-text-link span {
  transition: transform .2s ease;
}

.story-text-link:hover span {
  transform: translateX(4px);
}

.inventory-story-visual {
  position: relative;
  display: grid;
  min-height: 420px;
  place-items: center;
  isolation: isolate;
}

.inventory-story-visual::before {
  position: absolute;
  z-index: -2;
  width: min(78%, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(103, 236, 208, .23), rgba(103, 236, 208, 0) 70%);
  content: "";
  filter: blur(7px);
}

.story-orbit {
  position: absolute;
  z-index: -1;
  width: 350px;
  max-width: 88%;
  aspect-ratio: 1;
  border: 1px solid rgba(8, 127, 140, .12);
  border-radius: 50%;
  pointer-events: none;
}

.story-orbit-one {
  animation: orbit-slow 32s linear infinite;
}

.story-orbit-two {
  width: 285px;
  border-style: dashed;
  border-color: rgba(8, 127, 140, .16);
  animation: orbit-slow 25s linear infinite reverse;
}

.story-stock-panel {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  padding: 21px 22px 14px;
  border: 1px solid #d8e6f0;
  border-radius: 17px;
  background: linear-gradient(150deg, #fff, #f5f9ff);
  box-shadow: 0 24px 65px rgba(23, 58, 91, .15), 0 3px 12px rgba(23, 58, 91, .06);
  transition: transform .35s ease, box-shadow .35s ease;
  will-change: transform;
}

.story-stock-panel:hover {
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-4px);
  box-shadow: 0 32px 75px rgba(23, 58, 91, .2);
}

.story-panel-heading,
.story-product-heading,
.story-location-row,
.story-panel-footer {
  display: flex;
  align-items: center;
}

.story-panel-heading {
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid #e8eef5;
}

.story-overline {
  color: #76869b;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
}

.story-sample-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  border-radius: 20px;
  color: #687b91;
  background: #edf3f8;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .7px;
}

.story-sample-tag i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d79851;
}

.story-product-heading {
  gap: 10px;
  padding: 15px 0 13px;
}

.story-product-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #126d7c;
  background: #e4f7f5;
  font: 800 13px var(--font-display);
}

.story-product-heading b,
.story-product-heading small,
.story-location-row small,
.story-location-row b,
.story-movement-card b,
.story-movement-card small,
.story-stock-note b,
.story-stock-note small {
  display: block;
}

.story-product-heading b {
  color: #17243b;
  font-size: 11px;
}

.story-product-heading small {
  margin-top: 3px;
  color: #8a98aa;
  font-size: 8px;
}

.story-product-menu {
  margin-left: auto;
  color: #92a0b0;
  letter-spacing: 2px;
}

.story-location-row {
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid #edf1f5;
}

.story-location-row small {
  color: #738399;
  font-size: 9px;
}

.story-location-row b {
  margin-top: 4px;
  color: #263852;
  font-size: 11px;
}

.story-stock-bar {
  width: 125px;
  height: 7px;
  overflow: hidden;
  border-radius: 9px;
  background: #e9f0f5;
}

.story-stock-bar i {
  display: block;
  width: var(--bar-width);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #61d9c7, #138b9c);
  transform: scaleX(0);
  transform-origin: left;
  animation: story-bar-fill 1.2s cubic-bezier(.16, 1, .3, 1) .18s forwards;
}

.story-stock-bar-peach i {
  background: linear-gradient(90deg, #f2c99a, #e28d75);
  animation-delay: .34s;
}

.story-panel-footer {
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid #e8eef5;
  color: #8795a7;
  font-size: 8px;
}

.story-panel-footer span:last-child {
  color: #087f8c;
  font-weight: 700;
}

.story-movement-card,
.story-stock-note {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #dce8f0;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 15px 38px rgba(23, 58, 91, .15);
  backdrop-filter: blur(12px);
}

.story-movement-card {
  right: -6px;
  bottom: 36px;
  padding: 11px 13px;
  border-radius: 12px;
  animation: story-float 5s ease-in-out infinite;
}

.story-movement-icon,
.story-note-check {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 9px;
  color: #087f8c;
  background: #e5f7f2;
  font-size: 13px;
}

.story-movement-card b,
.story-stock-note b {
  color: #263852;
  font-size: 9px;
}

.story-movement-card small,
.story-stock-note small {
  margin-top: 3px;
  color: #8795a7;
  font-size: 7px;
}

.story-movement-card strong {
  margin-left: 4px;
  color: #087f8c;
  font-size: 9px;
  white-space: nowrap;
}

.story-stock-note {
  top: 28px;
  right: -6px;
  padding: 9px 11px;
  border-radius: 11px;
  animation: story-float 6s ease-in-out .2s infinite reverse;
}

.story-note-check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #167c65;
  background: #e3f7ea;
  font-size: 10px;
  font-weight: 800;
}

.phone-field-note {
  margin: 7px 0 0;
  color: #7b8797;
  font-size: 10px;
}

.workflow-inner {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: 46px;
}

.workflow-intro,
.workflow-steps {
  position: relative;
  z-index: 1;
}

.workflow-intro h2 {
  max-width: 340px;
  text-wrap: balance;
}

.workflow-intro > p {
  max-width: 330px;
  line-height: 1.75;
}

.workflow-intro .button {
  margin-top: 20px;
}

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

.workflow-step {
  position: relative;
  min-height: 218px;
  overflow: hidden;
  padding: 19px 16px;
  border: 1px solid rgba(194, 231, 244, .16);
  border-radius: 13px;
  background: rgba(255, 255, 255, .055);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}

.workflow-step:hover {
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-5px);
  border-color: rgba(103, 236, 208, .5);
  background: rgba(255, 255, 255, .09);
}

.workflow-step::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #67ecd0, #2f5dff, transparent);
  content: "";
  transform: scaleX(.24);
  transform-origin: left;
  animation: workflow-line 4.5s ease-in-out infinite;
}

.workflow-step:nth-child(2)::after {
  animation-delay: .7s;
}

.workflow-step:nth-child(3)::after {
  animation-delay: 1.4s;
}

.workflow-step-number {
  color: #67ecd0;
  font: 800 10px var(--font-display);
  letter-spacing: .8px;
}

.workflow-step h3 {
  margin: 27px 0 8px;
  color: #f4fbff;
  font: 700 13px var(--font-display);
}

.workflow-step p {
  margin: 0;
  color: #b6c7d7;
  font-size: 9px;
  line-height: 1.75;
}

.stock-report-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.report-month-field {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.report-month-field .text-input {
  width: 145px;
  min-height: 34px;
  padding: 0 8px;
  font-size: 10px;
}

.stock-opening-balance {
  text-align: right;
}

.stock-opening-balance span,
.stock-opening-balance strong,
.stock-opening-balance small {
  display: block;
}

.stock-opening-balance span,
.stock-opening-balance small {
  color: var(--muted);
  font-size: 9px;
}

.stock-opening-balance strong {
  margin: 3px 0;
  color: var(--ink);
  font: 700 17px var(--font-display);
  white-space: nowrap;
}

.report-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -4px 0 20px;
}

.report-subnav-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  font: 600 10px var(--font-body);
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
}

.report-subnav-button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.report-subnav-button.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.report-subnav-button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.product-report-summary {
  margin: 0 0 15px;
}

.product-report-summary .report-highlight strong {
  font-size: 21px;
}

@media (max-width: 700px) {
  .stock-report-heading {
    flex-direction: column;
  }

  .stock-report-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .report-subnav {
    gap: 6px;
  }

  .report-subnav-button {
    flex: 1 1 145px;
  }
}

@keyframes story-bar-fill {
  to { transform: scaleX(1); }
}

@keyframes story-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes workflow-line {
  0%, 100% { transform: scaleX(.24); }
  55% { transform: scaleX(1); }
}

html[data-theme="dark"] .inventory-story-copy h2 {
  color: #edf4ff;
}

html[data-theme="dark"] .inventory-story-copy > p,
html[data-theme="dark"] .story-check-list p {
  color: #b6c7d7;
}

html[data-theme="dark"] .story-stock-panel {
  border-color: rgba(157, 181, 207, .2);
  background: linear-gradient(145deg, #18253d, #101827);
}

html[data-theme="dark"] .story-panel-heading,
html[data-theme="dark"] .story-location-row,
html[data-theme="dark"] .story-panel-footer {
  border-color: rgba(157, 181, 207, .14);
}

html[data-theme="dark"] .story-product-heading b,
html[data-theme="dark"] .story-location-row b,
html[data-theme="dark"] .story-movement-card b,
html[data-theme="dark"] .story-stock-note b {
  color: #edf4ff;
}

html[data-theme="dark"] .story-sample-tag {
  color: #c5d3e2;
  background: #263852;
}

html[data-theme="dark"] .story-movement-card,
html[data-theme="dark"] .story-stock-note {
  border-color: rgba(157, 181, 207, .2);
  background: rgba(24, 37, 61, .96);
}

html[data-theme="dark"] .story-orbit {
  border-color: rgba(103, 236, 208, .18);
}

html[data-theme="dark"] .story-text-link {
  color: #67ecd0;
}

@media (max-width: 920px) {
  .inventory-story-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .inventory-story-copy {
    max-width: 620px;
  }

  .inventory-story-visual {
    width: min(100%, 620px);
    margin-inline: auto;
  }

  .workflow-inner {
    grid-template-columns: 1fr;
    gap: 29px;
  }

  .workflow-intro h2,
  .workflow-intro > p {
    max-width: 550px;
  }
}

@media (max-width: 680px) {
  .inventory-story-section {
    gap: 17px;
    padding: 55px 0 68px;
  }

  .inventory-story-copy h2 {
    font-size: 35px;
    letter-spacing: -1.6px;
  }

  .inventory-story-visual {
    min-height: 375px;
  }

  .story-orbit {
    width: 180px;
    max-width: 70%;
  }

  .story-orbit-two {
    width: 145px;
  }

  .story-stock-panel {
    padding: 18px 16px 13px;
  }

  .story-stock-bar {
    width: 96px;
  }

  .story-stock-note {
    top: 12px;
    right: 0;
  }

  .story-movement-card {
    right: 0;
    bottom: 13px;
    max-width: calc(100% - 8px);
  }

  .workflow-inner {
    gap: 25px;
  }

  .workflow-steps {
    grid-template-columns: 1fr;
  }

  .workflow-step {
    min-height: 0;
    padding: 18px;
  }

  .workflow-step h3 {
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-orbit,
  .story-stock-bar i,
  .story-movement-card,
  .story-stock-note,
  .workflow-step::after {
    animation: none !important;
  }

  .story-stock-bar i {
    transform: scaleX(1);
  }
}
.brand-mark {
  overflow: hidden;
  background: #fff url("../MI-logo.png") center / cover no-repeat;
  color: transparent;
  font-size: 0;
  box-shadow: none;
}

.app-page:not(.admin-page) .sidebar-user {
  border: 0;
  border-radius: 12px;
  margin: 14px 0 0;
  padding: 11px 9px;
  color: #f2fff9;
  background: linear-gradient(135deg, #0d766d, #174c43);
  box-shadow: 0 6px 16px #0b493a30;
  transition: background .18s, transform .18s, box-shadow .18s;
}

.app-page:not(.admin-page) .sidebar-user:hover {
  color: #fff;
  background: linear-gradient(135deg, #0b8d7f, #1d5e51);
  box-shadow: 0 8px 20px #0b493a45;
  transform: translateY(-1px);
}

.app-page:not(.admin-page) .sidebar-user:focus-visible {
  outline: 3px solid #67ecd0;
  outline-offset: 2px;
}

.app-page:not(.admin-page) .sidebar-user .user-meta small,
.app-page:not(.admin-page) .sidebar-user .user-menu {
  color: #c4e7d9;
}

.app-page:not(.admin-page) .sidebar-user .user-avatar {
  color: #0c584d;
  background: #b8f1dc;
}

.app-page:not(.admin-page) .sidebar-user .user-menu {
  font-size: 0;
}

.app-page:not(.admin-page) .sidebar-user .user-menu::after {
  content: "⚙";
  font-size: 14px;
}

.count-content {
  max-width: 1480px;
}

.count-business-banner {
  margin: -5px 0 17px;
  padding: 12px 15px;
  border: 1px solid #cfe7df;
  border-radius: 10px;
  color: #42615b;
  background: #effaf5;
  font-size: 11px;
}

.count-business-banner b {
  color: #155e54;
}

.count-inventory-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, .8fr);
  align-items: start;
  gap: 15px;
}

.count-panel,
.count-history-panel {
  padding: 20px;
}

.count-panel > .button {
  margin-bottom: 12px;
}

.count-scanner {
  padding: 15px;
  border: 1px solid #dfe9e5;
  border-radius: 10px;
  background: #f7fbf9;
}

.count-camera-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.count-camera-actions > span,
.count-scan-help {
  color: #72817d;
  font-size: 10px;
}

.count-camera-video:not([hidden]) {
  display: block;
  width: 100%;
  max-height: 430px;
  margin: 13px 0;
  border-radius: 9px;
  background: #101a2b;
  object-fit: cover;
}

.count-scan-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.count-scan-input-row .text-input {
  margin: 0;
}

.count-scan-help {
  display: block;
  margin-top: 7px;
  line-height: 1.5;
}

.count-status {
  margin: 12px 0;
  padding: 9px 11px;
  border-radius: 7px;
  color: #28685c;
  background: #eaf8f1;
  font-size: 11px;
}

.count-status.error {
  color: #a33c50;
  background: #ffedef;
}

.count-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 17px 0 10px;
}

.count-summary > span {
  padding: 12px;
  border: 1px solid #e6eeeb;
  border-radius: 9px;
  background: #fbfdfc;
}

.count-summary small,
.count-summary b {
  display: block;
}

.count-summary small {
  color: #778681;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .8px;
}

.count-summary b {
  margin-top: 4px;
  color: #1d3940;
  font-size: 20px;
}

.count-items,
.count-history-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.count-item,
.count-history-record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 2px;
  border-top: 1px solid #edf1ef;
}

.count-item b,
.count-item small,
.count-history-record b,
.count-history-record small {
  display: block;
}

.count-item b,
.count-history-record b {
  color: #263d40;
  font-size: 11px;
}

.count-item small,
.count-history-record small {
  margin-top: 3px;
  color: #82908c;
  font-size: 9px;
}

.count-item strong {
  flex: none;
  color: #087f72;
  font-size: 12px;
}

.count-empty,
.count-history-error {
  padding: 15px 2px;
  color: #84908c;
  font-size: 10px;
}

.count-history-list {
  max-height: 560px;
  overflow: auto;
}

.count-history-record > div {
  min-width: 0;
}

.count-history-record > .button {
  flex: none;
}

.count-finished {
  margin-top: 15px;
  padding: 15px;
  border: 1px solid #cfe7df;
  border-radius: 10px;
  background: #effaf5;
}

.count-finished-copy > b {
  color: #155e54;
  font-size: 13px;
}

.count-finished-copy p {
  margin: 5px 0 13px;
  color: #627772;
  font-size: 10px;
}

.count-finished-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.count-actions {
  position: sticky;
  z-index: 4;
  bottom: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 15px;
  padding: 10px;
  border: 1px solid #dce8e4;
  border-radius: 12px;
  background: #fffffff2;
  box-shadow: 0 8px 26px #173a5b1c;
  backdrop-filter: blur(12px);
}

.count-actions[hidden],
.count-finished[hidden],
.count-scanner[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .count-inventory-grid {
    grid-template-columns: minmax(0, 1fr) minmax(240px, .8fr);
  }
}

@media (max-width: 680px) {
  .count-inventory-grid {
    grid-template-columns: 1fr;
  }

  .count-panel,
  .count-history-panel {
    padding: 15px;
  }

  .count-scan-input-row {
    grid-template-columns: 1fr;
  }

  .count-scan-input-row .button,
  .count-finished-actions .button {
    width: 100%;
  }

  .count-actions {
    bottom: calc(8px + env(safe-area-inset-bottom));
  }
}
