:root {
  --rem-bg: #ffffff;
  --rem-surface: #fafafd;
  --rem-ink: #111126;
  --rem-text: #29283c;
  --rem-muted: #6f6e82;
  --rem-subtle: #9796a8;
  --rem-border: #e7e6ef;
  --rem-violet: #5b36f2;
  --rem-violet-hover: #4b2ae0;
  --rem-lilac: #f1eeff;
  --rem-lilac-strong: #e5deff;
  --rem-success: #168653;
  --rem-success-bg: #eaf8ef;
  --rem-warning: #c76613;
  --rem-warning-bg: #fff5e9;
  --rem-danger: #dc3f4d;
  --rem-danger-bg: #fff0f1;
  --rem-radius: 16px;
  --rem-shadow: 0 8px 28px rgba(24, 20, 62, .08);
  --sidebar: 230px;
}

html,
body.remeslo-pro-app,
body.remeslo-login-body {
  background: var(--rem-bg);
  color: var(--rem-text);
  font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.remeslo-pro-app {
  overflow-x: hidden;
}

.remeslo-pro-app .app-shell {
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  background: var(--rem-bg);
}

.remeslo-pro-app .sidebar {
  width: var(--sidebar);
  padding: 25px 16px 18px;
  border-right: 1px solid var(--rem-border);
  background: #fff;
}

.remeslo-pro-app .brand {
  height: auto;
  min-height: 42px;
  padding: 0;
  border: 0;
  gap: 11px;
  color: var(--rem-ink);
}

.remeslo-pro-app .brand img {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 9px 13px rgba(91, 54, 242, .2));
}

.remeslo-pro-app .brand span {
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .08em;
}

.remeslo-pro-app .brand small {
  margin-left: -4px;
  padding: 4px 7px;
  border-radius: 7px;
  color: var(--rem-violet);
  background: var(--rem-lilac);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .05em;
}

.remeslo-pro-app .nav {
  margin-top: 25px;
  padding: 0;
  gap: 3px;
}

.remeslo-pro-app .nav-group-label {
  padding: 6px 12px;
  color: var(--rem-subtle);
  font-size: 9px;
}

.remeslo-pro-app .nav-item {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 11px;
  color: var(--rem-muted);
  font-size: 13px;
  font-weight: 600;
}

.remeslo-pro-app .nav-item svg {
  width: 19px;
  height: 19px;
}

.remeslo-pro-app .nav-item:hover,
.remeslo-pro-app .nav-advanced summary:hover,
.remeslo-pro-app .nav-advanced a:hover {
  color: var(--rem-violet);
  background: var(--rem-lilac);
}

.remeslo-pro-app .nav-item.active {
  color: var(--rem-violet);
  background: var(--rem-lilac);
  box-shadow: none;
  font-weight: 800;
}

.remeslo-pro-app .nav-advanced {
  border-color: var(--rem-border);
  color: var(--rem-muted);
}

.remeslo-pro-app .nav-advanced summary,
.remeslo-pro-app .nav-advanced a {
  border-radius: 10px;
}

.remeslo-pro-app .sidebar-workspace {
  margin-top: auto;
  padding: 13px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--rem-border);
  border-radius: 12px;
  color: var(--rem-text);
  background: #fff;
}

.remeslo-pro-app .sidebar-workspace small,
.remeslo-pro-app .sidebar-workspace span {
  color: var(--rem-muted);
  font-size: 10px;
}

.remeslo-pro-app .sidebar-workspace strong {
  color: var(--rem-ink);
  font-size: 12px;
}

.remeslo-pro-app .sidebar-logout {
  margin: 10px 0 0;
  border-color: var(--rem-border);
  border-radius: 10px;
  color: var(--rem-muted);
}

.remeslo-pro-app .sidebar-collapse {
  display: none;
}

.remeslo-pro-app .main-column {
  background: #fff;
}

.remeslo-pro-app .topbar {
  min-height: 72px;
  height: 72px;
  grid-template-columns: minmax(240px, 620px) 42px auto 1fr;
  gap: 12px;
  padding: 14px 32px;
  border-bottom: 1px solid var(--rem-border);
  background: rgba(255, 255, 255, .96);
}

.remeslo-pro-app .global-search {
  height: 44px;
  border-color: var(--rem-border);
  border-radius: 12px;
  box-shadow: none;
}

.remeslo-pro-app .global-search:focus-within {
  border-color: var(--rem-violet);
  box-shadow: 0 0 0 3px rgba(91, 54, 242, .1);
}

.remeslo-pro-app .global-search svg,
.remeslo-pro-app .global-search kbd {
  color: var(--rem-subtle);
}

.remeslo-pro-app .notification-bell {
  width: 42px;
  height: 42px;
  border-color: var(--rem-border);
  border-radius: 12px;
  color: var(--rem-text);
}

.remeslo-pro-app .topbar > .primary-button,
.remeslo-pro-app .primary-button {
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: var(--rem-violet);
  box-shadow: 0 8px 22px rgba(91, 54, 242, .2);
}

.remeslo-pro-app .primary-button:hover {
  background: var(--rem-violet-hover);
}

.remeslo-pro-app .secondary-button {
  border-color: var(--rem-border);
  border-radius: 11px;
  color: var(--rem-violet);
  background: #fff;
}

.remeslo-pro-app .secondary-button:hover {
  border-color: var(--rem-lilac-strong);
  background: var(--rem-lilac);
}

.remeslo-pro-app .operator {
  color: var(--rem-ink);
}

.remeslo-pro-app .operator small,
.remeslo-pro-app .operator a {
  color: var(--rem-muted);
}

.remeslo-pro-app .content {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 32px 62px;
}

.local-preview-banner {
  min-height: 34px;
  padding: 7px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7d4a0d;
  background: var(--rem-warning-bg);
  border-bottom: 1px solid #f5d8b4;
  font-size: 11px;
  font-weight: 750;
  text-align: center;
}

.remeslo-pro-app .page-header {
  min-height: 64px;
  margin-bottom: 18px;
}

.remeslo-pro-app .page-header h1 {
  color: var(--rem-ink);
  font-size: 28px;
  letter-spacing: -.035em;
}

.remeslo-pro-app .page-header p {
  color: var(--rem-muted);
}

.remeslo-pro-app .eyebrow,
.remeslo-pro-app .owner-page-header .eyebrow,
.remeslo-pro-app .owner-card-kicker {
  color: var(--rem-muted);
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 600;
}

.remeslo-pro-app .panel,
.remeslo-pro-app .viz-panel,
.remeslo-pro-app .owner-list-card,
.remeslo-pro-app .owner-summary-grid article,
.remeslo-pro-app .effective-state-grid article,
.remeslo-pro-app .analytics-kpi-grid article,
.remeslo-pro-app .decision-card,
.remeslo-pro-app .quick-actions a,
.remeslo-pro-app .table-wrap {
  border-color: var(--rem-border);
  border-radius: var(--rem-radius);
  background: #fff;
  box-shadow: none;
}

.remeslo-pro-app .panel:hover,
.remeslo-pro-app .owner-list-card:hover,
.remeslo-pro-app .decision-card:hover {
  border-color: var(--rem-lilac-strong);
  box-shadow: var(--rem-shadow);
}

.remeslo-pro-app .panel-header,
.remeslo-pro-app .viz-panel > header {
  border-color: var(--rem-border);
}

.remeslo-pro-app .panel-header h2,
.remeslo-pro-app .viz-panel h2,
.remeslo-pro-app .owner-card-main h2,
.remeslo-pro-app th {
  color: var(--rem-ink);
}

.remeslo-pro-app table,
.remeslo-pro-app td,
.remeslo-pro-app th {
  border-color: var(--rem-border);
}

.remeslo-pro-app th {
  color: var(--rem-muted);
  background: var(--rem-surface);
}

.remeslo-pro-app tbody tr:hover {
  background: var(--rem-lilac);
}

.remeslo-pro-app input,
.remeslo-pro-app select,
.remeslo-pro-app textarea {
  border-color: var(--rem-border);
  border-radius: 11px;
}

.remeslo-pro-app input:focus,
.remeslo-pro-app select:focus,
.remeslo-pro-app textarea:focus {
  border-color: var(--rem-violet);
  box-shadow: 0 0 0 3px rgba(91, 54, 242, .1);
  outline: 0;
}

.remeslo-pro-app .status.success,
.remeslo-pro-app .status-pill.success {
  color: var(--rem-success);
  background: var(--rem-success-bg);
}

.remeslo-pro-app .status.warning,
.remeslo-pro-app .status-pill.warning {
  color: var(--rem-warning);
  background: var(--rem-warning-bg);
}

.remeslo-pro-app .status.danger,
.remeslo-pro-app .status-pill.danger {
  color: var(--rem-danger);
  background: var(--rem-danger-bg);
}

.remeslo-pro-app .statusbar {
  border-color: var(--rem-border);
  color: var(--rem-subtle);
  background: #fff;
}

.remeslo-period-card {
  min-height: 58px;
  margin: 2px 0 9px;
  padding: 8px 9px 8px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--rem-border);
  border-radius: 14px;
  background: #fff;
}

.remeslo-period-card > span {
  display: grid;
  gap: 2px;
}

.remeslo-period-card small {
  color: var(--rem-muted);
  font-size: 10px;
}

.remeslo-period-card strong {
  color: var(--rem-ink);
  font-size: 13px;
}

.remeslo-period-card a {
  min-height: 40px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 10px;
  color: var(--rem-violet);
  background: var(--rem-lilac);
  font-size: 12px;
  font-weight: 800;
}

.remeslo-tomorrow-plan {
  min-height: 42px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--rem-lilac-strong);
  border-radius: 12px;
  color: var(--rem-violet);
  background: var(--rem-lilac);
  font-size: 12px;
  font-weight: 800;
}

.remeslo-pulse-hero {
  min-height: 300px;
  margin: 0 0 18px;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 1fr auto;
  gap: 20px;
  overflow: hidden;
  border-radius: 24px;
  color: #fff;
  background-color: #3520a7;
  background-image: url('/static/img/remeslo-pulse-violet.png');
  background-size: cover;
  background-position: center;
  box-shadow: 0 22px 55px rgba(48, 27, 139, .18);
}

.remeslo-pulse-hero-copy {
  display: grid;
  align-content: start;
  gap: 7px;
}

.remeslo-pulse-hero-copy small,
.remeslo-pulse-hero-copy span,
.remeslo-pulse-facts small {
  color: rgba(255, 255, 255, .72);
}

.remeslo-pulse-hero-copy strong {
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1;
  letter-spacing: -.055em;
  font-variant-numeric: tabular-nums;
}

.remeslo-pulse-hero-copy span {
  font-size: 12px;
}

.remeslo-pulse-hero-actions a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 13px;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  font-size: 20px;
}

.remeslo-pulse-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.remeslo-pulse-facts span {
  min-width: 0;
  padding: 18px 16px 0 0;
  display: grid;
  gap: 4px;
}

.remeslo-pulse-facts small {
  font-size: 10px;
}

.remeslo-pulse-facts b {
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remeslo-pro-app .owner-action-grid {
  margin-bottom: 18px;
  gap: 10px;
}

.remeslo-pro-app .attention-heading h2 {
  color: var(--rem-ink);
}

.remeslo-pro-app .owner-action-card {
  border-color: var(--rem-border);
  border-radius: 14px;
  background: #fff;
}

.remeslo-pro-app .owner-action-card.is-urgent {
  border-color: #f5d8b4;
  background: var(--rem-warning-bg);
}

.remeslo-pro-app .owner-action-card strong,
.remeslo-pro-app .analytics-kpi-grid strong,
.remeslo-pro-app .decision-card strong {
  color: var(--rem-ink);
}

.remeslo-pro-app .dashboard-kpis article {
  min-height: 126px;
  padding: 18px;
}

.remeslo-pro-app .metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.remeslo-pro-app .metric-grid article {
  min-width: 0;
  min-height: 126px;
  padding: 18px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  border: 1px solid var(--rem-border);
  border-radius: var(--rem-radius);
  background: #fff;
}

.remeslo-pro-app .metric-grid span,
.remeslo-pro-app .metric-grid small {
  display: block;
  color: var(--rem-muted);
}

.remeslo-pro-app .metric-grid strong {
  display: block;
  color: var(--rem-ink);
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}

.remeslo-pro-app .analysis-warning {
  display: grid;
  grid-template-columns: minmax(150px, .42fr) minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 15px 16px;
  border-color: #f5d8b4;
  border-radius: 14px;
  color: #7d4a0d;
  background: var(--rem-warning-bg);
}

.remeslo-pro-app .analysis-warning span {
  color: #7d5b3d;
}

.remeslo-pro-app .filter-tabs {
  display: flex;
  gap: 6px;
  padding: 13px 14px;
  overflow-x: auto;
  border-bottom: 1px solid var(--rem-border);
  scrollbar-width: thin;
}

.remeslo-pro-app .filter-tabs a {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--rem-border);
  border-radius: 10px;
  color: var(--rem-muted);
  background: #fff;
  font-size: 11px;
  font-weight: 750;
}

.remeslo-pro-app .filter-tabs a.active {
  border-color: var(--rem-violet);
  color: #fff;
  background: var(--rem-violet);
}

.remeslo-pro-app .kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
  border: 0;
}

.remeslo-pro-app .kpis article,
.remeslo-pro-app .kpis article:first-child,
.remeslo-pro-app .kpis article:last-child {
  min-width: 0;
  min-height: 118px;
  padding: 17px;
  border: 1px solid var(--rem-border);
  border-radius: var(--rem-radius);
  background: #fff;
}

.remeslo-pro-app .kpis span,
.remeslo-pro-app .kpis small {
  color: var(--rem-muted);
}

.remeslo-pro-app .kpis strong {
  color: var(--rem-ink);
  font-size: clamp(20px, 2vw, 28px);
}

.remeslo-pro-app .sales-workspace-links {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.remeslo-pro-app .sales-workspace-links a {
  min-height: 94px;
  padding: 15px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px solid var(--rem-border);
  border-radius: 13px;
  background: #fff;
}

.remeslo-pro-app .sales-workspace-links a:hover {
  border-color: var(--rem-lilac-strong);
  background: var(--rem-lilac);
}

.remeslo-pro-app .sales-workspace-links strong {
  color: var(--rem-ink);
  font-size: 14px;
}

.remeslo-pro-app .sales-workspace-links small {
  color: var(--rem-muted);
  font-size: 11px;
}

.remeslo-pro-app .supplier-cost-panel {
  overflow: hidden;
}

.remeslo-pro-app .supplier-cost-heading {
  gap: 14px;
  flex-wrap: wrap;
}

.remeslo-pro-app .supplier-cost-grid article,
.remeslo-pro-app .supplier-payment-list article {
  border-color: var(--rem-border);
  background: #fff;
}

.remeslo-pro-app .supplier-cost-workspace,
.remeslo-pro-app .supplier-payment-block,
.remeslo-pro-app .supplier-delivery-block {
  border-color: var(--rem-border);
}

.remeslo-pro-app .supplier-delivery-block {
  background: var(--rem-surface);
}

.remeslo-pro-app .dashboard-kpis article:first-child,
.remeslo-pro-app .dashboard-kpis article:last-child {
  background: var(--rem-surface);
}

.remeslo-pro-app .hbar-row i,
.remeslo-pro-app .stack-track i {
  background: var(--rem-violet);
}

.remeslo-pro-app .quick-icon,
.remeslo-pro-app .owner-card-avatar {
  color: var(--rem-violet);
  background: var(--rem-lilac);
}

.remeslo-bottom-nav,
.sidebar-scrim {
  display: none;
}

.remeslo-launch[hidden] {
  display: none;
}

.remeslo-launch {
  position: fixed;
  z-index: 300;
  inset: 0;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 30px;
  opacity: 0;
  background: #fff;
  transition: opacity .28s ease;
}

.remeslo-launch.is-visible {
  opacity: 1;
}

.remeslo-launch.is-leaving {
  opacity: 0;
}

.remeslo-launch-card {
  width: min(100%, 520px);
  min-height: 420px;
  border: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 24px;
  color: var(--rem-ink);
  text-align: center;
  background: transparent;
  cursor: pointer;
}

.remeslo-launch-card img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 22px 32px rgba(91, 54, 242, .24));
}

.remeslo-launch-copy {
  display: grid;
  gap: 8px;
}

.remeslo-launch-copy small {
  color: var(--rem-violet);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.remeslo-launch-copy strong {
  font-size: clamp(30px, 7vw, 48px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.remeslo-launch-copy span,
.remeslo-launch-hint {
  color: var(--rem-muted);
}

.remeslo-launch-hint {
  margin-top: 16px;
  font-size: 11px;
}

.remeslo-login-body {
  background: #fff;
}

.remeslo-login-body .login-shell {
  padding: 28px;
  background: #fff;
}

.remeslo-login-body .login-shell::before {
  display: none;
}

.remeslo-login-body .login-card {
  width: min(100%, 480px);
  padding: 34px;
  border-color: var(--rem-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--rem-shadow);
}

.remeslo-login-body .login-brand {
  border-color: var(--rem-border);
}

.remeslo-login-body .login-brand img {
  width: 54px;
  height: 54px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 12px 18px rgba(91, 54, 242, .2));
}

.remeslo-login-body .login-brand strong {
  color: var(--rem-ink);
  font-size: 16px;
  font-weight: 850;
  letter-spacing: .08em;
}

.remeslo-login-body .login-copy > span {
  color: var(--rem-violet);
  background: var(--rem-lilac);
}

.remeslo-login-body .login-copy h1 {
  color: var(--rem-ink);
  font-size: clamp(30px, 6vw, 42px);
}

.remeslo-login-body .login-copy p,
.remeslo-login-body .login-footnote {
  color: var(--rem-muted);
}

.remeslo-login-body .login-form input {
  border-color: var(--rem-border);
  border-radius: 11px;
}

.remeslo-login-body .login-form input:focus {
  border-color: var(--rem-violet);
  box-shadow: 0 0 0 3px rgba(91, 54, 242, .1);
}

.remeslo-login-body .login-form button {
  border-radius: 11px;
  background: var(--rem-violet);
  box-shadow: 0 12px 28px rgba(91, 54, 242, .24);
}

@media (max-width: 1100px) {
  .remeslo-pro-app .topbar {
    grid-template-columns: minmax(220px, 1fr) 42px auto auto;
  }

  .remeslo-pro-app .operator {
    display: none;
  }

  .remeslo-pro-app .metric-grid,
  .remeslo-pro-app .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .remeslo-pro-app .app-shell {
    display: block;
    overflow-x: clip;
  }

  .remeslo-pro-app .sidebar {
    position: fixed;
    z-index: 90;
    inset: 0 0 0 auto;
    width: min(380px, 90vw);
    height: 100dvh;
    padding: max(22px, env(safe-area-inset-top)) 16px max(22px, env(safe-area-inset-bottom));
    border: 0;
    box-shadow: -14px 0 40px rgba(24, 20, 62, .16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease;
  }

  .remeslo-pro-app .sidebar.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .sidebar-scrim {
    position: fixed;
    z-index: 80;
    inset: 0;
    border: 0;
    display: none;
    background: rgba(17, 17, 38, .28);
  }

  .remeslo-menu-open .sidebar-scrim {
    display: block;
  }

  .remeslo-pro-app .topbar {
    min-height: 64px;
    height: 64px;
    grid-template-columns: minmax(0, 1fr) 40px 40px;
    gap: 8px;
    padding: 10px 16px;
  }

  .remeslo-pro-app .mobile-menu,
  .remeslo-pro-app .topbar > .primary-button,
  .remeslo-pro-app .topbar .operator {
    display: none;
  }

  .remeslo-pro-app .global-search {
    grid-column: 1;
  }

  .remeslo-pro-app .notification-bell {
    grid-column: 2;
  }

  .remeslo-pro-app .content {
    padding: 20px 20px calc(106px + env(safe-area-inset-bottom));
  }

  .local-preview-banner {
    padding-inline: 16px;
  }

  .remeslo-pro-app .statusbar {
    display: none;
  }

  .remeslo-bottom-nav {
    position: fixed;
    z-index: 50;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: calc(72px + env(safe-area-inset-bottom));
    padding: 6px max(10px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(10px, env(safe-area-inset-left));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    border-top: 1px solid var(--rem-border);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(18px);
  }

  .remeslo-bottom-nav a,
  .remeslo-bottom-nav button {
    height: 58px;
    padding: 3px;
    border: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    color: var(--rem-muted);
    background: transparent;
    font-size: 10px;
  }

  .remeslo-bottom-nav a.active {
    color: var(--rem-violet);
    font-weight: 800;
  }

  .remeslo-bottom-nav .quick-add {
    width: 54px;
    height: 54px;
    margin: 0 auto;
    border-radius: 18px;
    color: #fff;
    background: var(--rem-violet);
    box-shadow: 0 9px 24px rgba(91, 54, 242, .28);
    transform: translateY(-10px);
  }

  .remeslo-bottom-nav .quick-add svg {
    width: 27px;
    height: 27px;
  }

  .remeslo-pro-app .remeslo-pulse-header {
    align-items: flex-start;
  }

  .remeslo-pro-app .remeslo-pulse-header .secondary-button {
    display: none;
  }

  .remeslo-pro-app .remeslo-pulse-hero {
    min-height: 306px;
    padding: 20px 16px 16px;
    border-radius: 21px;
  }

  .remeslo-pro-app .analytics-kpi-grid,
  .remeslo-pro-app .decision-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .remeslo-pro-app .analysis-warning {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .remeslo-pro-app .viz-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .remeslo-pro-app .topbar {
    grid-template-columns: minmax(0, 1fr) 38px;
  }

  .remeslo-pro-app .notification-bell {
    grid-column: 2;
  }

  .remeslo-pro-app .topbar > .primary-button {
    display: none;
  }

  .remeslo-pro-app .content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .remeslo-pro-app .page-header h1 {
    font-size: 26px;
  }

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

  .remeslo-period-card a {
    justify-content: center;
  }

  .remeslo-pulse-hero-copy strong {
    font-size: 38px;
  }

  .remeslo-pulse-facts {
    grid-template-columns: 1fr 1fr;
  }

  .remeslo-pulse-facts span:last-child {
    display: none;
  }

  .remeslo-pro-app .owner-action-grid,
  .remeslo-pro-app .analytics-kpi-grid,
  .remeslo-pro-app .decision-grid,
  .remeslo-pro-app .metric-grid,
  .remeslo-pro-app .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .remeslo-pro-app .owner-action-card,
  .remeslo-pro-app .dashboard-kpis article,
  .remeslo-pro-app .decision-card {
    min-height: 118px;
    padding: 14px;
  }

  .remeslo-pro-app .owner-action-card strong,
  .remeslo-pro-app .dashboard-kpis strong {
    font-size: 21px;
  }

  .remeslo-pro-app .quick-actions {
    grid-template-columns: 1fr;
  }

  .remeslo-pro-app .sales-workspace-links {
    grid-template-columns: 1fr;
  }

  .remeslo-pro-app .sales-workspace-links a {
    min-height: 78px;
  }

  .remeslo-login-body .login-shell {
    padding: 0;
    align-items: stretch;
  }

  .remeslo-login-body .login-card {
    width: 100%;
    min-height: 100dvh;
    padding: max(42px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (max-width: 370px) {
  .remeslo-pro-app .content {
    padding-left: 12px;
    padding-right: 12px;
  }

  .remeslo-pro-app .owner-action-grid,
  .remeslo-pro-app .analytics-kpi-grid,
  .remeslo-pro-app .decision-grid {
    grid-template-columns: 1fr;
  }
}

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