/* Unboxy web app real layout v20260914-real-blocks */

:root {
  color-scheme: light;
  --ink: #071d1a;
  --ink-strong: #031411;
  --muted: #5f716d;
  --soft: #f4faf7;
  --surface: #ffffff;
  --line: #d6e6df;
  --green: #47f060;
  --green-strong: #23d861;
  --green-dark: #05735f;
  --deep: #042c26;
  --deep-2: #021f1c;
  --navy: #071b3f;
  --blue: #1d64ff;
  --warning: #a45f12;
  --danger: #b42318;
  --success: #087443;
  --shadow: 0 28px 80px rgba(3, 31, 28, 0.16);
  --soft-shadow: 0 18px 42px rgba(3, 31, 28, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  background: #f5fbf8;
  color: var(--ink);
}

body,
button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
}

.ui-icon {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, #ffffff 0%, #d9fbe8 42%, #0b5b4f 100%);
  color: #073d36;
  font-size: 22px;
  font-weight: 950;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.brand-word {
  color: inherit;
  font-size: 24px;
  font-weight: 950;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  font-weight: 900;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-strong) 48%, #13b78a 100%);
  color: #06231e;
  box-shadow: 0 18px 40px rgba(35, 216, 97, 0.24);
}

.btn-secondary {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--navy);
  box-shadow: none;
}

.btn-large {
  min-height: 58px;
  padding-inline: 26px;
}

.btn-full {
  width: 100%;
}

.link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.eyebrow {
  display: block;
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(71, 240, 96, 0.12), transparent 28%),
    radial-gradient(circle at 95% 15%, rgba(29, 100, 255, 0.08), transparent 22%),
    linear-gradient(180deg, #063c32 0%, #052c28 41%, #f7fbf9 41%, #f7fbf9 100%);
}

.site-header {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 18px;
  color: #ffffff;
}

.site-brand {
  display: inline-flex;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 38px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 800;
}

.site-nav a:hover {
  color: #ffffff;
}

.header-cta {
  min-height: 46px;
  padding-inline: 22px;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(28px, 6vw, 74px) 0 clamp(42px, 7vw, 84px);
  color: #ffffff;
}

.hero-copy {
  max-width: 630px;
}

.hero-copy .eyebrow {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(71, 240, 96, 0.14);
  color: #afffbd;
}

.hero-copy h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 0.98;
}

.hero-copy h1 span {
  color: var(--green);
}

.hero-subtitle {
  max-width: 520px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
}

.hero-actions small {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 750;
}

.hero-visual,
.value-visual,
.cta-visual {
  min-width: 0;
}

.integrations-strip {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px clamp(18px, 4vw, 44px);
  border-radius: 0 0 18px 18px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  text-align: center;
}

.integrations-strip p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 42px);
}

.logo-text {
  color: #214842;
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 950;
}

.logo-text.bling { color: #1dae72; }
.logo-text.mercado { color: #1d4ed8; }
.logo-text.shopee { color: #ee4d2d; }
.logo-text.amazon { color: #111827; }
.logo-text.magalu { color: #1783ff; }
.logo-text.nuvem { color: #1e3a8a; }

.value-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1fr);
  align-items: center;
  gap: clamp(30px, 6vw, 76px);
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 96px) 0;
}

.value-copy h2,
.final-cta h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.05;
}

.value-copy p,
.final-cta p {
  max-width: 520px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.benefit-grid div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(3, 31, 28, 0.05);
  color: var(--ink);
  font-weight: 850;
}

.benefit-grid .ui-icon {
  flex: 0 0 auto;
  color: var(--green-dark);
  font-size: 22px;
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(300px, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 54px;
  padding: clamp(30px, 5vw, 54px);
  border: 1px solid rgba(71, 240, 96, 0.2);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 18%, rgba(71, 240, 96, 0.2), transparent 32%),
    linear-gradient(135deg, #073d36 0%, #052923 100%);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.final-cta h2,
.final-cta p {
  color: #ffffff;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 26px;
}

.visual-placeholder {
  position: relative;
  overflow: hidden;
  min-height: clamp(280px, 42vw, 480px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 72% 16%, rgba(71, 240, 96, 0.22), transparent 25%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    #083a33;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.26);
}

.value-section .visual-placeholder {
  border-color: var(--line);
  background:
    radial-gradient(circle at 72% 16%, rgba(71, 240, 96, 0.24), transparent 25%),
    linear-gradient(145deg, #ffffff, #eaf8f1);
  box-shadow: var(--soft-shadow);
}

.placeholder-glow {
  position: absolute;
  inset: 12% 11%;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(71, 240, 96, 0.14), rgba(29, 100, 255, 0.08));
}

.placeholder-window {
  position: absolute;
  left: 10%;
  top: 12%;
  right: 10%;
  display: flex;
  gap: 7px;
  height: 48px;
  align-items: center;
  padding: 0 18px;
  border-radius: 16px 16px 0 0;
  background: rgba(255, 255, 255, 0.78);
}

.placeholder-window span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #13b78a;
}

.placeholder-body {
  position: absolute;
  left: 10%;
  top: calc(12% + 48px);
  right: 10%;
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 0 0 18px 18px;
  background: rgba(255, 255, 255, 0.9);
}

.placeholder-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 74px;
  align-items: center;
  gap: 14px;
}

.placeholder-row i,
.placeholder-row b,
.placeholder-row em {
  display: block;
  min-width: 0;
  border-radius: 999px;
}

.placeholder-row i {
  width: 34px;
  height: 34px;
  background: #dff7ea;
}

.placeholder-row b {
  width: var(--w);
  height: 14px;
  background: #c8ddd5;
}

.placeholder-row em {
  height: 28px;
  background: #47f060;
}

.placeholder-accent-card {
  position: absolute;
  right: 8%;
  bottom: 10%;
  display: grid;
  min-width: 116px;
  min-height: 86px;
  place-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  color: var(--ink-strong);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

.placeholder-accent-card strong {
  font-size: 28px;
  line-height: 1;
}

.placeholder-accent-card small {
  color: var(--muted);
  font-weight: 850;
  text-transform: uppercase;
}

/* E2 Premium compacto: autenticacao e painel interno */

.auth-page,
.panel-shell,
.loading {
  --ux-ink: #12213b;
  --ux-ink-strong: #0b1730;
  --ux-muted: #71809b;
  --ux-muted-strong: #52617a;
  --ux-accent: #0a9660;
  --ux-accent-hover: #087b50;
  --ux-accent-pressed: #066d47;
  --ux-accent-soft: #e4f4ed;
  --ux-accent-faint: #f1faf6;
  --ux-page: #f4f7f9;
  --ux-surface: #ffffff;
  --ux-surface-subtle: #f8fbfa;
  --ux-line: #d4dde7;
  --ux-line-strong: #bfcdd8;
  --ux-danger: #b42318;
  --ux-warning: #a45f12;
  --ux-shadow: 0 10px 28px rgba(18, 33, 59, 0.07);
  color: var(--ux-ink);
}

.loading {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  background: var(--ux-page);
  color: var(--ux-muted);
  font-size: 14px;
  font-weight: 650;
}

.app-brand {
  display: inline-flex;
  align-items: baseline;
}

.app-brand-word {
  color: var(--ux-ink-strong);
  font-size: 27px;
  font-weight: 800;
  line-height: 1;
}

.app-brand-word span {
  color: var(--ux-accent);
}

.auth-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow-x: hidden;
  padding: 24px 14px;
  background: var(--ux-page);
}

.auth-shell {
  width: min(100%, 470px);
}

.auth-card {
  width: 100%;
  padding: 28px;
  border: 1px solid var(--ux-line);
  border-radius: 8px;
  background: var(--ux-surface);
  box-shadow: var(--ux-shadow);
}

.auth-card > .app-brand {
  width: 100%;
  justify-content: center;
  margin-bottom: 24px;
}

.auth-card h1 {
  margin: 0;
  color: var(--ux-ink-strong);
  font-size: 34px;
  font-weight: 750;
  line-height: 1.12;
  text-align: center;
}

.auth-card > p:not(.privacy-note) {
  margin: 6px 0 20px;
  color: var(--ux-muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.auth-kicker {
  display: block;
  margin: -8px 0 8px;
  color: var(--ux-accent-hover);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.google-btn {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--ux-line);
  border-radius: 5px;
  background: var(--ux-surface);
  color: var(--ux-ink);
  font-size: 13px;
  font-weight: 700;
  transition: border-color 160ms ease-out, background-color 160ms ease-out, transform 140ms ease-out;
}

.google-mark {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--ux-muted);
  font-size: 12px;
  font-weight: 650;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--ux-line);
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-page .field {
  display: grid;
  gap: 6px;
}

.auth-page .field > span {
  color: var(--ux-muted-strong);
  font-size: 13px;
  font-weight: 650;
}

.auth-page .field input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--ux-line);
  border-radius: 5px;
  outline: 0;
  background: var(--ux-surface);
  color: var(--ux-ink);
  font-size: 14px;
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}

.auth-page .field input::placeholder {
  color: #94a0b4;
}

.auth-page .field input:focus {
  border-color: var(--ux-accent);
  box-shadow: 0 0 0 3px rgba(10, 150, 96, 0.13);
}

.auth-page .btn {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: none;
}

.auth-page .btn-primary {
  border: 1px solid var(--ux-accent);
  background: var(--ux-accent);
  color: #ffffff;
}

.auth-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--ux-muted);
  font-size: 13px;
}

.auth-page .link-button {
  color: var(--ux-accent-hover);
  font-size: 13px;
  font-weight: 700;
}

.privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 20px 0 0;
  color: var(--ux-muted);
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}

.privacy-note .ui-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--ux-accent-hover);
}

.alert {
  display: none;
  min-height: 38px;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.4;
}

.alert:not(:empty) {
  display: flex;
}

.alert.error {
  border-color: rgba(180, 35, 24, 0.24);
  background: #fff7f6;
  color: var(--ux-danger);
}

.alert.success {
  border-color: rgba(10, 150, 96, 0.24);
  background: var(--ux-accent-faint);
  color: var(--ux-accent-hover);
}

.onboarding-card .auth-kicker {
  margin-top: -4px;
}

.onboarding-card .link-button {
  display: block;
  margin: 18px auto 0;
}

.panel-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  background: var(--ux-page);
}

.panel-sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 100dvh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 20px 12px 14px;
  border-right: 1px solid var(--ux-line);
  background: var(--ux-surface);
}

.panel-brand {
  display: grid;
  gap: 5px;
  padding: 0 10px 20px;
}

.panel-brand .app-brand-word {
  font-size: 25px;
}

.panel-brand small {
  color: var(--ux-muted);
  font-size: 11px;
  font-weight: 500;
}

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

.panel-nav-item {
  position: relative;
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--ux-muted-strong);
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  transition: color 150ms ease-out, background-color 150ms ease-out, border-color 150ms ease-out, transform 140ms ease-out;
}

.panel-nav-item .ui-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.panel-nav-item.active {
  border-color: #d6ebe2;
  background: var(--ux-accent-soft);
  color: var(--ux-accent-hover);
}

.panel-nav-item.active::before {
  content: "";
  position: absolute;
  left: -12px;
  width: 3px;
  height: 20px;
  border-radius: 0 2px 2px 0;
  background: var(--ux-accent);
}

.panel-logout {
  margin-top: auto;
}

.panel-main {
  min-width: 0;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 0 24px 24px;
}

.panel-topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid var(--ux-line);
}

.panel-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--ux-accent-hover);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.panel-topbar h1 {
  margin: 0;
  color: var(--ux-ink-strong);
  font-size: 28px;
  font-weight: 750;
  line-height: 1.15;
}

.panel-topbar p {
  margin: 4px 0 0;
  color: var(--ux-muted);
  font-size: 12px;
}

.panel-account {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-status {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid #cfe8dc;
  border-radius: 5px;
  background: var(--ux-accent-faint);
  color: var(--ux-accent-hover);
  font-size: 12px;
  font-weight: 650;
}

.account-status i,
.status-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ux-accent);
}

.account-chip {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 8px 4px 5px;
  border: 1px solid var(--ux-line);
  border-radius: 6px;
  background: var(--ux-surface);
}

.account-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ux-ink-strong);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.account-chip strong,
.account-chip small {
  display: block;
}

.account-chip strong {
  max-width: 170px;
  overflow: hidden;
  color: var(--ux-ink);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-chip small {
  margin-top: 1px;
  color: var(--ux-muted);
  font-size: 10px;
}

.panel-mobile-nav {
  display: none;
}

.panel-context-line {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  padding: 0 12px;
  border: 1px solid var(--ux-line);
  border-radius: 6px;
  background: var(--ux-surface);
  color: var(--ux-muted);
  font-size: 12px;
}

.panel-context-line strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ux-ink);
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-content {
  animation: e2-view-enter 160ms ease-out both;
}

@keyframes e2-view-enter {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 12px;
  border: 1px solid var(--ux-line);
  border-radius: 6px;
  background: var(--ux-surface);
  box-shadow: var(--ux-shadow);
}

.summary-item {
  min-width: 0;
  padding: 13px 16px;
  border-right: 1px solid var(--ux-line);
}

.summary-item:last-child {
  border-right: 0;
}

.summary-item span,
.summary-item strong {
  display: block;
}

.summary-item span {
  margin-bottom: 5px;
  color: var(--ux-muted);
  font-size: 11px;
}

.summary-item strong {
  overflow: hidden;
  color: var(--ux-ink);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-item strong .status-dot {
  margin-right: 7px;
}

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

.span-5 {
  grid-column: span 5;
}

.span-7 {
  grid-column: span 7;
}

.panel-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--ux-line);
  border-radius: 6px;
  background: var(--ux-surface);
  box-shadow: var(--ux-shadow);
}

.card-header {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ux-line);
}

.card-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.card-title .ui-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--ux-accent);
}

.card-title h2,
.panel-card h3,
.section-heading h2 {
  margin: 0;
  color: var(--ux-ink-strong);
}

.card-title h2 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.compact-button {
  min-height: 36px;
  flex: 0 0 auto;
  padding: 0 12px;
  border: 1px solid var(--ux-line);
  border-radius: 5px;
  background: var(--ux-surface);
  color: var(--ux-accent-hover);
  font-size: 12px;
  font-weight: 700;
  transition: border-color 150ms ease-out, background-color 150ms ease-out, transform 140ms ease-out;
}

.compact-empty {
  min-height: 128px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 16px;
  border: 1px dashed var(--ux-line-strong);
  border-radius: 6px;
  background: var(--ux-surface-subtle);
}

.compact-empty strong {
  color: var(--ux-ink);
  font-size: 13px;
}

.compact-empty p,
.panel-card p,
.section-heading p,
.download-card p {
  margin: 5px 0 0;
  color: var(--ux-muted);
  font-size: 12px;
  line-height: 1.5;
}

.empty-icon,
.product-icon,
.tutorial-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--ux-accent-hover);
  background: var(--ux-accent-soft);
}

.empty-icon {
  width: 38px;
  height: 38px;
  border-radius: 6px;
}

.empty-icon .ui-icon,
.product-icon .ui-icon,
.tutorial-icon .ui-icon {
  width: 19px;
  height: 19px;
}

.product-line {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 12px 0;
}

.product-icon {
  width: 44px;
  height: 44px;
  border-radius: 6px;
}

.product-icon--windows {
  background: #edf6fc;
  color: #0078d4;
}

.windows-mark {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
}

.product-line strong,
.product-line small {
  display: block;
}

.product-line strong {
  color: var(--ux-ink);
  font-size: 13px;
}

.product-line small {
  margin-top: 3px;
  color: var(--ux-muted);
  font-size: 11px;
}

.panel-shell .btn {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 5px;
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
}

.panel-shell .btn-primary {
  border: 1px solid var(--ux-accent);
  background: var(--ux-accent);
  color: #ffffff;
}

.panel-shell .btn-secondary {
  border: 1px solid var(--ux-line);
  background: var(--ux-surface);
  color: var(--ux-ink);
}

.compact-list {
  margin-top: 4px;
}

.compact-list > div {
  min-height: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--ux-line);
  color: var(--ux-ink);
  font-size: 12px;
}

.compact-list > div:last-child {
  border-bottom: 0;
}

.compact-list small {
  color: var(--ux-muted);
  font-size: 11px;
}

.account-summary {
  margin: 4px 0 0;
}

.account-summary > div {
  min-height: 40px;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--ux-line);
}

.account-summary > div:last-child {
  border-bottom: 0;
}

.account-summary dt {
  color: var(--ux-muted);
  font-size: 11px;
}

.account-summary dd {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  color: var(--ux-ink);
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-heading {
  min-height: 64px;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 2px;
}

.section-heading h2 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.details-card {
  padding: 0 16px;
}

.detail-row {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(140px, 0.35fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--ux-line);
}

.detail-row:last-child {
  border-bottom: 0;
}

.detail-row span {
  color: var(--ux-muted);
  font-size: 12px;
}

.detail-row strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ux-ink);
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-state-card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.empty-state-card .empty-icon {
  margin-bottom: 12px;
}

.empty-state-card h3 {
  font-size: 16px;
  font-weight: 700;
}

.empty-state-card p {
  max-width: 460px;
}

.empty-state-card .btn {
  margin-top: 16px;
}

.tutorial-list {
  padding-block: 4px;
}

.tutorial-row {
  min-height: 64px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--ux-line);
}

.tutorial-row:last-child {
  border-bottom: 0;
}

.tutorial-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
}

.tutorial-row h3 {
  font-size: 13px;
  font-weight: 700;
}

.tutorial-row p {
  margin-top: 2px;
}

.neutral-pill,
.download-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--ux-line);
  border-radius: 5px;
  background: var(--ux-page);
  color: var(--ux-muted-strong);
  font-size: 11px;
  font-weight: 650;
}

.download-card {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.download-card .product-line {
  margin: 0;
}

.download-card h3 {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 700;
}

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

.orders-view-loading {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--ux-muted);
  font-size: 13px;
}

.orders-heading {
  margin-bottom: 8px;
}

.orders-filter-card {
  margin-bottom: 12px;
  padding: 14px 16px;
}

.orders-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1.8fr) minmax(120px, 0.65fr) minmax(190px, 1.15fr) minmax(160px, 0.9fr) 90px auto;
  align-items: end;
  gap: 10px;
}

.orders-filters label,
.custom-date-fields label {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.orders-filters label > span,
.custom-date-fields label > span,
.orders-date-filter > span {
  color: var(--ux-muted-strong);
  font-size: 11px;
  font-weight: 650;
}

.orders-filters input,
.orders-filters select,
.custom-date-fields input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--ux-line);
  border-radius: 5px;
  background: var(--ux-surface);
  color: var(--ux-ink);
  font: inherit;
  font-size: 12px;
  outline: 0;
}

.orders-filters input,
.custom-date-fields input {
  padding: 0 10px;
}

.orders-filters select {
  padding: 0 28px 0 9px;
}

.orders-filters input:focus,
.orders-filters select:focus,
.custom-date-fields input:focus {
  border-color: var(--ux-accent);
  box-shadow: 0 0 0 3px rgba(10, 150, 96, 0.13);
}

.orders-search > div {
  position: relative;
}

.orders-search .ui-icon {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 17px;
  height: 17px;
  color: var(--ux-muted);
  pointer-events: none;
}

.orders-search input {
  padding-left: 34px;
}

.orders-filter-actions {
  display: flex;
  gap: 6px;
}

.orders-filter-actions .btn {
  white-space: nowrap;
}

.orders-date-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--ux-line);
}

.date-preset-group {
  display: inline-flex;
  gap: 4px;
}

.date-preset {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--ux-line);
  border-radius: 5px;
  background: var(--ux-surface);
  color: var(--ux-muted-strong);
  font-size: 11px;
  font-weight: 650;
  transition: color 150ms ease-out, background-color 150ms ease-out, border-color 150ms ease-out, transform 140ms ease-out;
}

.date-preset.active {
  border-color: #cfe8dc;
  background: var(--ux-accent-soft);
  color: var(--ux-accent-hover);
}

.custom-date-fields {
  display: flex;
  align-items: end;
  gap: 8px;
  margin-left: auto;
}

.custom-date-fields input {
  width: 138px;
}

.orders-results-card {
  padding: 0;
  overflow: hidden;
}

.orders-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.orders-table {
  width: 100%;
  min-width: 970px;
  border-collapse: collapse;
  table-layout: fixed;
}

.orders-table th {
  height: 38px;
  padding: 0 10px;
  border-bottom: 1px solid var(--ux-line);
  background: var(--ux-surface-subtle);
  color: var(--ux-muted-strong);
  font-size: 11px;
  font-weight: 650;
  text-align: left;
}

.orders-table th:nth-child(1) { width: 124px; }
.orders-table th:nth-child(2) { width: 160px; }
.orders-table th:nth-child(3) { width: 20%; }
.orders-table th:nth-child(4) { width: 18%; }
.orders-table th:nth-child(5) { width: 100px; }
.orders-table th:nth-child(6) { width: 13%; }
.orders-table th:nth-child(7) { width: 76px; }
.orders-table th:nth-child(8) { width: 108px; }

.orders-table td {
  height: 52px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--ux-line);
  color: var(--ux-ink);
  font-size: 12px;
  vertical-align: middle;
}

.orders-table tr:last-child td {
  border-bottom: 0;
}

.orders-table td strong,
.orders-table td small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orders-table td strong {
  font-size: 12px;
  font-weight: 650;
}

.orders-table td small {
  margin-top: 2px;
  color: var(--ux-muted);
  font-size: 10px;
}

.orders-customer {
  max-width: 240px;
}

.store-placeholder {
  color: var(--ux-muted);
}

.status-badge {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0 7px;
  overflow: hidden;
  border: 1px solid var(--ux-line);
  border-radius: 5px;
  background: var(--ux-page);
  color: var(--ux-muted-strong);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-success {
  border-color: #cfe8dc;
  background: var(--ux-accent-faint);
  color: var(--ux-accent-hover);
}

.status-warning {
  border-color: #eadac7;
  background: #fff9f1;
  color: var(--ux-warning);
}

.status-danger {
  border-color: #efd3d0;
  background: #fff7f6;
  color: var(--ux-danger);
}

.orders-action {
  text-align: right;
}

.orders-mobile-list {
  display: none;
}

.orders-pagination {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-top: 1px solid var(--ux-line);
  color: var(--ux-muted);
  font-size: 11px;
}

.orders-pagination > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.orders-empty,
.orders-error {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.orders-empty .empty-icon {
  margin-bottom: 10px;
}

.orders-empty strong,
.orders-error strong {
  color: var(--ux-ink);
  font-size: 14px;
}

.orders-empty p,
.orders-error p {
  margin: 5px 0 0;
  color: var(--ux-muted);
  font-size: 12px;
}

.orders-empty .btn,
.orders-error .btn {
  margin-top: 14px;
}

.orders-loading {
  padding: 8px 12px;
}

.orders-skeleton {
  min-height: 52px;
  display: grid;
  grid-template-columns: 120px 1fr 160px 110px;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--ux-line);
}

.orders-skeleton span {
  height: 10px;
  border-radius: 4px;
  background: #e8eef2;
  animation: orders-pulse 1.2s ease-in-out infinite alternate;
}

@keyframes orders-pulse {
  to { opacity: 0.45; }
}

.devices-loading {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--ux-muted);
  font-size: 13px;
}

.devices-heading {
  margin-bottom: 8px;
}

.devices-feedback {
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid var(--ux-line);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 650;
}

.devices-feedback.success {
  border-color: rgba(10, 150, 96, 0.24);
  background: var(--ux-accent-faint);
  color: var(--ux-accent-hover);
}

.devices-feedback.error {
  border-color: #efd3d0;
  background: #fff7f6;
  color: var(--ux-danger);
}

.devices-card {
  padding: 0;
  overflow: hidden;
}

.devices-empty {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.devices-empty .empty-icon {
  margin-bottom: 10px;
}

.devices-empty strong {
  color: var(--ux-ink);
  font-size: 14px;
}

.devices-empty p {
  margin-top: 5px;
}

.devices-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.devices-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  table-layout: fixed;
}

.devices-table th {
  height: 38px;
  padding: 0 10px;
  border-bottom: 1px solid var(--ux-line);
  background: var(--ux-surface-subtle);
  color: var(--ux-muted-strong);
  font-size: 11px;
  font-weight: 650;
  text-align: left;
}

.devices-table th:nth-child(1) { width: 22%; }
.devices-table th:nth-child(2) { width: 14%; }
.devices-table th:nth-child(3) { width: 12%; }
.devices-table th:nth-child(4) { width: 96px; }
.devices-table th:nth-child(5) { width: 150px; }
.devices-table th:nth-child(6) { width: 150px; }
.devices-table th:nth-child(7) { width: 116px; }

.devices-table td {
  height: 50px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--ux-line);
  color: var(--ux-ink);
  font-size: 12px;
  vertical-align: middle;
}

.devices-table tr:last-child td {
  border-bottom: 0;
}

.devices-table td strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-status {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--ux-line);
  border-radius: 5px;
  background: var(--ux-page);
  color: var(--ux-muted-strong);
  font-size: 10px;
  font-weight: 700;
}

.device-status.active {
  border-color: #cfe8dc;
  background: var(--ux-accent-faint);
  color: var(--ux-accent-hover);
}

.device-status.blocked {
  border-color: #efd3d0;
  background: #fff7f6;
  color: var(--ux-danger);
}

.device-action {
  width: 100%;
}

.device-action.danger {
  border-color: #efd3d0;
  color: var(--ux-danger);
}

.devices-mobile-list {
  display: none;
}

.order-dialog {
  width: min(780px, calc(100% - 28px));
  max-height: min(820px, calc(100dvh - 32px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--ux-line);
  border-radius: 8px;
  background: var(--ux-surface);
  color: var(--ux-ink);
  box-shadow: 0 24px 64px rgba(18, 33, 59, 0.2);
}

.order-dialog::backdrop {
  background: rgba(11, 23, 48, 0.5);
}

.order-dialog-shell {
  max-height: min(820px, calc(100dvh - 32px));
  overflow-y: auto;
  padding: 18px;
}

.order-dialog-header {
  position: sticky;
  top: -18px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -18px -18px 14px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--ux-line);
  background: var(--ux-surface);
}

.order-dialog-header h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.icon-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--ux-line);
  border-radius: 5px;
  background: var(--ux-surface);
  color: var(--ux-muted-strong);
}

.icon-button .ui-icon {
  width: 18px;
  height: 18px;
}

.dialog-loading {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--ux-muted);
  font-size: 12px;
}

.order-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--ux-line);
  border-radius: 6px;
}

.order-detail-grid > div {
  min-width: 0;
  min-height: 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9px 12px;
  border-right: 1px solid var(--ux-line);
  border-bottom: 1px solid var(--ux-line);
}

.order-detail-grid > div:nth-child(2n) {
  border-right: 0;
}

.order-detail-grid > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.order-detail-grid span,
.order-item-row span {
  color: var(--ux-muted);
  font-size: 10px;
}

.order-detail-grid strong {
  margin-top: 3px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-detail-grid .order-key {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.order-key > span {
  grid-column: 1 / -1;
}

.order-key .compact-button {
  grid-column: 2;
  grid-row: 2;
  min-height: 30px;
}

.order-detail-section {
  margin-top: 18px;
}

.order-detail-section h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.order-items-list {
  border: 1px solid var(--ux-line);
  border-radius: 6px;
}

.order-item-row {
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 120px 100px auto;
  align-items: center;
  gap: 12px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--ux-line);
}

.order-item-row:last-child {
  border-bottom: 0;
}

.order-item-row strong,
.order-item-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-item-row strong {
  margin-top: 2px;
  font-size: 12px;
}

.order-item-row small {
  margin-top: 2px;
  color: var(--ux-muted);
  font-size: 10px;
}

.order-events-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.order-events-list li {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--ux-line);
}

.order-events-list li:last-child {
  border-bottom: 0;
}

.event-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border: 2px solid var(--ux-accent);
  border-radius: 50%;
  background: var(--ux-surface);
}

.order-events-list strong,
.order-events-list small {
  display: block;
}

.order-events-list strong {
  font-size: 12px;
}

.order-events-list small,
.details-empty-copy {
  margin-top: 2px;
  color: var(--ux-muted);
  font-size: 10px;
}

.history-device-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.history-device-list > div {
  max-width: 100%;
  padding: 7px 9px;
  overflow-wrap: anywhere;
  border: 1px solid var(--ux-line);
  border-radius: 5px;
  background: var(--ux-page);
  color: var(--ux-muted-strong);
  font-size: 11px;
}

.history-recordings-list {
  display: grid;
  gap: 8px;
}

.history-recording {
  padding: 10px;
  border: 1px solid var(--ux-line);
  border-radius: 6px;
  background: var(--ux-page);
}

.history-recording-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.history-recording-heading > strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.history-recording dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 10px 0 0;
}

.history-recording dt {
  color: var(--ux-muted);
  font-size: 10px;
}

.history-recording dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
  color: var(--ux-ink);
  font-size: 11px;
  font-weight: 600;
}

.history-recording-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.history-recording-player {
  display: block;
  width: 100%;
  max-height: 420px;
  aspect-ratio: 16 / 9;
  margin-top: 10px;
  border: 1px solid var(--ux-line);
  border-radius: 5px;
  background: #101820;
}

.history-recording-actions a.compact-button {
  display: inline-flex;
  align-items: center;
  color: var(--ux-primary, #1769d2);
  text-decoration: none;
}

.history-recording-actions [role="alert"] {
  color: var(--ux-danger, #b42318);
  font-size: 11px;
}

.history-recording-actions button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.status-neutral {
  border-color: var(--ux-line);
  background: var(--ux-page);
  color: var(--ux-muted-strong);
}

@media (max-width: 1280px) {
  .hero-section,
  .value-section,
  .final-cta,
  .integrations-strip,
  .site-header {
    width: min(1120px, calc(100% - 36px));
  }

  .hero-copy h1 {
    font-size: clamp(42px, 6.5vw, 68px);
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 18px;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-section,
  .value-section,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .panel-shell {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .panel-sidebar {
    padding-inline: 8px;
  }

  .panel-brand {
    justify-items: center;
    padding-inline: 0;
  }

  .panel-brand .app-brand-word {
    width: 30px;
    overflow: hidden;
    font-size: 0;
  }

  .panel-brand .app-brand-word::first-letter {
    font-size: 24px;
  }

  .panel-brand small,
  .panel-nav-item span {
    display: none;
  }

  .panel-nav-item {
    justify-content: center;
    padding: 0;
  }

  .panel-nav-item.active::before {
    left: -8px;
  }

  .panel-main {
    padding-inline: 18px;
  }

  .span-5,
  .span-7 {
    grid-column: span 6;
  }

  .orders-filters {
    grid-template-columns: minmax(260px, 2fr) repeat(3, minmax(110px, 1fr));
  }

  .orders-filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .orders-date-filter {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .custom-date-fields {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 680px) {
  .site-page {
    background:
      linear-gradient(180deg, #063c32 0%, #052c28 46%, #f7fbf9 46%, #f7fbf9 100%);
  }

  .site-header,
  .hero-section,
  .value-section,
  .final-cta,
  .integrations-strip {
    width: min(100% - 28px, 640px);
  }

  .header-cta {
    min-height: 42px;
    padding-inline: 14px;
  }

  .brand-word {
    font-size: 20px;
  }

  .hero-section {
    padding-top: 26px;
  }

  .hero-copy h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .auth-page {
    padding: 14px;
  }

  .auth-card {
    padding: 20px;
    box-shadow: none;
  }

  .auth-card > .app-brand {
    margin-bottom: 20px;
  }

  .auth-card h1 {
    font-size: 30px;
  }

  .panel-shell {
    display: block;
  }

  .panel-sidebar {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 58px;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 9px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--ux-line);
  }

  .panel-brand {
    display: block;
    padding: 0;
  }

  .panel-brand .app-brand-word {
    width: auto;
    font-size: 23px;
  }

  .panel-brand small,
  .panel-nav {
    display: none;
  }

  .panel-logout {
    width: 40px;
    margin: 0 0 0 auto;
  }

  .panel-logout span {
    display: none;
  }

  .panel-main {
    width: 100%;
    padding: 0 14px 20px;
  }

  .panel-topbar {
    min-height: 72px;
  }

  .panel-topbar h1 {
    font-size: 24px;
  }

  .panel-topbar p,
  .account-status,
  .account-chip > div {
    display: none;
  }

  .panel-mobile-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    margin: 10px -14px;
    padding: 0 14px 4px;
    scrollbar-width: none;
  }

  .panel-mobile-nav::-webkit-scrollbar {
    display: none;
  }

  .panel-mobile-tab {
    min-height: 38px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 0 11px;
    border: 1px solid var(--ux-line);
    border-radius: 5px;
    background: var(--ux-surface);
    color: var(--ux-muted-strong);
    font-size: 12px;
    font-weight: 650;
  }

  .panel-mobile-tab .ui-icon {
    width: 16px;
    height: 16px;
  }

  .panel-mobile-tab.active {
    border-color: #cfe8dc;
    background: var(--ux-accent-soft);
    color: var(--ux-accent-hover);
  }

  .panel-context-line {
    margin-top: 8px;
  }

  .summary-strip {
    grid-template-columns: 1fr;
  }

  .summary-item {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    align-items: center;
    padding-block: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--ux-line);
  }

  .summary-item:last-child {
    border-bottom: 0;
  }

  .summary-item span {
    margin: 0;
  }

  .e2-grid {
    grid-template-columns: 1fr;
  }

  .span-5,
  .span-7 {
    grid-column: 1;
  }

  .section-heading {
    min-height: 58px;
  }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 9px 0;
  }

  .tutorial-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .tutorial-row .neutral-pill {
    grid-column: 2;
    justify-self: start;
  }

  .download-card {
    align-items: stretch;
    flex-direction: column;
  }

  .download-card .btn {
    width: 100%;
  }

  .orders-heading {
    min-height: 64px;
  }

  .orders-filter-card {
    padding: 12px;
  }

  .orders-filters {
    grid-template-columns: 1fr 1fr;
  }

  .orders-search {
    grid-column: 1 / -1;
  }

  .orders-filter-actions {
    grid-column: 1 / -1;
  }

  .orders-filter-actions .btn {
    flex: 1;
  }

  .orders-date-filter {
    display: grid;
    gap: 8px;
  }

  .date-preset-group {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .date-preset-group::-webkit-scrollbar {
    display: none;
  }

  .date-preset {
    flex: 0 0 auto;
  }

  .custom-date-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .custom-date-fields input {
    width: 100%;
  }

  .custom-date-fields .compact-button {
    grid-column: 1 / -1;
  }

  .orders-table-wrap {
    display: none;
  }

  .orders-mobile-list {
    display: grid;
  }

  .devices-table-wrap {
    display: none;
  }

  .devices-mobile-list {
    display: grid;
  }

  .device-mobile-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid var(--ux-line);
  }

  .device-mobile-card:last-child {
    border-bottom: 0;
  }

  .device-mobile-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
  }

  .device-mobile-card header strong,
  .device-mobile-card header small {
    display: block;
  }

  .device-mobile-card header strong {
    color: var(--ux-ink);
    font-size: 13px;
  }

  .device-mobile-card header small {
    margin-top: 2px;
    color: var(--ux-muted);
    font-size: 10px;
  }

  .device-mobile-card dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    margin: 0;
  }

  .device-mobile-card dt {
    color: var(--ux-muted);
    font-size: 10px;
  }

  .device-mobile-card dd {
    margin: 2px 0 0;
    color: var(--ux-ink);
    font-size: 12px;
    font-weight: 650;
  }

  .device-mobile-card .compact-button {
    width: 100%;
  }

  .order-mobile-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid var(--ux-line);
  }

  .order-mobile-card:last-child {
    border-bottom: 0;
  }

  .order-mobile-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
  }

  .order-mobile-card header strong,
  .order-mobile-card header small {
    display: block;
  }

  .order-mobile-card header strong {
    color: var(--ux-ink);
    font-size: 13px;
  }

  .order-mobile-card header small {
    margin-top: 2px;
    color: var(--ux-muted);
    font-size: 10px;
  }

  .order-mobile-card dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    margin: 0;
  }

  .order-mobile-card dl div {
    min-width: 0;
  }

  .order-mobile-card dt {
    color: var(--ux-muted);
    font-size: 10px;
  }

  .order-mobile-card dd {
    overflow: hidden;
    margin: 2px 0 0;
    color: var(--ux-ink);
    font-size: 12px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .order-mobile-card .compact-button {
    justify-self: stretch;
  }

  .orders-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .orders-pagination > div {
    justify-content: space-between;
  }

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

  .order-detail-grid > div,
  .order-detail-grid > div:nth-child(2n),
  .order-detail-grid > div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--ux-line);
  }

  .order-detail-grid > div:last-child {
    border-bottom: 0;
  }

  .order-item-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .order-item-row > div:nth-child(2),
  .order-item-row > div:nth-child(3) {
    grid-column: 1;
  }

  .order-item-row .status-badge {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 430px) {
  .site-header,
  .hero-section,
  .value-section,
  .final-cta,
  .integrations-strip {
    width: min(100% - 22px, 390px);
  }

  .site-header {
    padding-top: 18px;
  }

  .hero-copy h1,
  .value-copy h2,
  .final-cta h2 {
    font-size: clamp(34px, 10.5vw, 44px);
  }

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }

  .visual-placeholder {
    min-height: 260px;
  }

  .placeholder-row {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .placeholder-row em {
    display: none;
  }
}

@media (max-width: 390px) {
  .auth-page {
    padding-inline: 10px;
  }

  .auth-card {
    padding: 18px 16px;
  }

  .auth-card h1 {
    font-size: 28px;
  }

  .auth-switch {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .panel-main {
    padding-inline: 10px;
  }

  .card-header {
    align-items: flex-start;
  }

  .compact-button {
    min-height: 34px;
    padding-inline: 9px;
  }

  .compact-empty {
    grid-template-columns: 1fr;
  }

  .account-summary > div {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .orders-filters {
    grid-template-columns: 1fr;
  }

  .orders-search,
  .orders-filter-actions {
    grid-column: 1;
  }

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

  .custom-date-fields .compact-button {
    grid-column: 1;
  }

  .order-dialog {
    width: calc(100% - 18px);
    max-height: calc(100dvh - 18px);
  }

  .order-dialog-shell {
    max-height: calc(100dvh - 18px);
    padding: 14px;
  }

  .order-dialog-header {
    top: -14px;
    margin: -14px -14px 12px;
    padding: 12px 14px;
  }

  .history-recording-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (hover: hover) and (pointer: fine) {
  .auth-page .btn-primary:hover,
  .panel-shell .btn-primary:hover {
    border-color: var(--ux-accent-hover);
    background: var(--ux-accent-hover);
  }

  .google-btn:hover,
  .compact-button:hover,
  .panel-shell .btn-secondary:hover {
    border-color: var(--ux-accent);
    background: var(--ux-accent-faint);
  }

  .panel-nav-item:hover {
    background: var(--ux-page);
    color: var(--ux-ink);
  }

  .date-preset:hover,
  .icon-button:hover {
    border-color: var(--ux-accent);
    background: var(--ux-accent-faint);
  }
}

.google-btn:active,
.compact-button:active,
.auth-page .btn:active,
.panel-shell .btn:active,
.panel-nav-item:active,
.panel-mobile-tab:active {
  transform: scale(0.98);
}

.date-preset:active,
.icon-button:active {
  transform: scale(0.98);
}

.google-btn:focus-visible,
.compact-button:focus-visible,
.auth-page .btn:focus-visible,
.panel-shell .btn:focus-visible,
.panel-nav-item:focus-visible,
.panel-mobile-tab:focus-visible,
.auth-page .link-button:focus-visible {
  outline: 2px solid var(--ux-accent);
  outline-offset: 2px;
}

.date-preset:focus-visible,
.icon-button:focus-visible,
.orders-filters input:focus-visible,
.orders-filters select:focus-visible,
.custom-date-fields input:focus-visible {
  outline: 2px solid var(--ux-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .panel-content {
    animation: none;
  }

  .google-btn,
  .compact-button,
  .auth-page .btn,
  .panel-shell .btn,
  .panel-nav-item,
  .panel-mobile-tab {
    transition-duration: 0.01ms;
  }

  .date-preset,
  .icon-button {
    transition-duration: 0.01ms;
  }

  .orders-skeleton span {
    animation: none;
  }
}
